@esri/solutions-components 1.0.4 → 1.0.5

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 (458) hide show
  1. package/dist/cdn/{NZJDAUCM.js → 22F7LFMG.js} +2 -2
  2. package/dist/cdn/{EKX5RPAU.js → 25FEJN5O.js} +2 -2
  3. package/dist/cdn/{RNVECRCO.js → 25JM7WUJ.js} +2 -2
  4. package/dist/cdn/{62OBHD7N.js → 2A6DDRTH.js} +2 -2
  5. package/dist/cdn/{O42JTMA4.js → 2BDPGGKC.js} +2 -2
  6. package/dist/cdn/{Y2GJJZVT.js → 2IRIOH44.js} +2 -2
  7. package/dist/cdn/{GPR4I62X.js → 2LVUHNL4.js} +2 -2
  8. package/dist/cdn/{B5TR3333.js → 2QFMILDU.js} +2 -2
  9. package/dist/cdn/{7KJZVI5W.js → 2RWXUIPE.js} +2 -2
  10. package/dist/cdn/2TT2EKLS.js +4 -0
  11. package/dist/cdn/{3KRHILOK.js → 2VXYY4NW.js} +1 -1
  12. package/dist/cdn/{DHOIKSPR.js → 33UPFZYZ.js} +2 -2
  13. package/dist/cdn/{3HR3VX4I.js → 34BPQSHF.js} +2 -2
  14. package/dist/cdn/{O5G3N4I4.js → 35ZVLYI7.js} +2 -2
  15. package/dist/cdn/36RPCHBW.js +18 -0
  16. package/dist/cdn/{V46NQTOH.js → 3IMXMLFS.js} +2 -2
  17. package/dist/cdn/3LJQBCLM.js +18 -0
  18. package/dist/cdn/{UZQC4ZVD.js → 3RLVYGV7.js} +2 -2
  19. package/dist/cdn/{JSML77IB.js → 43R5NRNV.js} +1 -1
  20. package/dist/cdn/{EOWZY5KN.js → 4527TPFQ.js} +1 -1
  21. package/dist/cdn/4HAO722I.js +4 -0
  22. package/dist/cdn/{NXZAIYZX.js → 4J5HYMPQ.js} +2 -2
  23. package/dist/cdn/{WB2FCUBE.js → 4SF42JCK.js} +2 -2
  24. package/dist/cdn/{XXJ2SGBR.js → 4UCCOTIL.js} +2 -2
  25. package/dist/cdn/{FTC6GK32.js → 4ULTYKHN.js} +2 -2
  26. package/dist/cdn/56FAI7QX.js +18 -0
  27. package/dist/cdn/{MIBMXAW4.js → 5CGYAFLG.js} +2 -2
  28. package/dist/cdn/{CSQMTZUS.js → 5JHZFHQW.js} +2 -2
  29. package/dist/cdn/{X63ISSA7.js → 5JYWXCER.js} +2 -2
  30. package/dist/cdn/{MN4AZD42.js → 5K5LGI4X.js} +2 -2
  31. package/dist/cdn/{HOQDPNYX.js → 5LOTR4DW.js} +2 -2
  32. package/dist/cdn/{P3ZGSTRY.js → 5QHONC74.js} +2 -2
  33. package/dist/cdn/5S2FZKYO.js +18 -0
  34. package/dist/cdn/{5KH5K5HP.js → 5TRSWX6M.js} +2 -2
  35. package/dist/cdn/{PSP2EVIP.js → 5WAZGRRD.js} +2 -2
  36. package/dist/cdn/{3HVOQ754.js → 5WNLR3DS.js} +2 -2
  37. package/dist/cdn/{UD6VCHUK.js → 64ETTMNQ.js} +2 -2
  38. package/dist/cdn/{EUZPXNNK.js → 65NNPWV7.js} +1 -1
  39. package/dist/cdn/6LUI2X3G.js +18 -0
  40. package/dist/cdn/{N7IUWXAA.js → 6N7ZWEZT.js} +2 -2
  41. package/dist/cdn/{2UH456LC.js → 6U4PV22I.js} +1 -1
  42. package/dist/cdn/{GCOXBUN5.js → 6XYUDJQ2.js} +1 -1
  43. package/dist/cdn/{C3OFPO6W.js → 7244YR36.js} +2 -2
  44. package/dist/cdn/{KNBDWSMQ.js → 76DZHGT4.js} +2 -2
  45. package/dist/cdn/{GAV3AXFW.js → 76JQ5L7D.js} +2 -2
  46. package/dist/cdn/{MEIVZYDH.js → 7ATYJT4O.js} +2 -2
  47. package/dist/cdn/{NDWOAOHX.js → 7B2MAX64.js} +1 -1
  48. package/dist/cdn/{O6DAQEXK.js → 7M5YUYGE.js} +2 -2
  49. package/dist/cdn/{EFKYF4YS.js → 7NDRZHL6.js} +2 -2
  50. package/dist/cdn/{CUKJYJQY.js → 7NMV3XFP.js} +1 -1
  51. package/dist/cdn/{IEEVFYKM.js → 7OEQCUDV.js} +1 -1
  52. package/dist/cdn/{PY6UCRJ4.js → 7OZSPB2F.js} +2 -2
  53. package/dist/cdn/{A3ZMYVXL.js → 7WZE34BF.js} +2 -2
  54. package/dist/cdn/{6M3KYJDD.js → 7YFBO4YO.js} +2 -2
  55. package/dist/cdn/{YXM7GNWW.js → A4L4EUDH.js} +2 -2
  56. package/dist/cdn/{DYEFEHAR.js → AC7K2P6S.js} +11 -11
  57. package/dist/cdn/{NZ6L23VR.js → AGGLKLN3.js} +2 -2
  58. package/dist/cdn/{3VRCHULS.js → AHHA6SMZ.js} +2 -2
  59. package/dist/cdn/{GGCVMVWS.js → AOOQAYSR.js} +2 -2
  60. package/dist/cdn/{7W5RZY7N.js → AQZ3QIKE.js} +2 -2
  61. package/dist/cdn/{XZQRI4EN.js → AXDYNDWC.js} +1 -1
  62. package/dist/cdn/{TFCVVUA3.js → AYBHICHM.js} +2 -2
  63. package/dist/cdn/{YF5TQNZI.js → AYDTR35F.js} +2 -2
  64. package/dist/cdn/AYND4SCK.js +4 -0
  65. package/dist/cdn/{7M4VGKUT.js → B2AAEHPJ.js} +2 -2
  66. package/dist/cdn/{M6I7SCR3.js → B4PHULG7.js} +2 -2
  67. package/dist/cdn/B5754CLI.js +4 -0
  68. package/dist/cdn/{3PNCQZNB.js → BRSXWNGO.js} +2 -2
  69. package/dist/cdn/{A6ZN7UQQ.js → C6WPV722.js} +2 -2
  70. package/dist/cdn/{SK6BPGF7.js → CBITJT5D.js} +4 -4
  71. package/dist/cdn/CDBDE4TC.js +18 -0
  72. package/dist/cdn/{F7N2K2CB.js → CFPXLHXR.js} +2 -2
  73. package/dist/cdn/{UHGKM2WA.js → CGZZGJLP.js} +2 -2
  74. package/dist/cdn/{DJ4ET7YE.js → CJFK6TKW.js} +2 -2
  75. package/dist/cdn/CXN63GPC.js +18 -0
  76. package/dist/cdn/{HPVZXEFN.js → CXOHKJLR.js} +1 -1
  77. package/dist/cdn/{UBNEDJDQ.js → CYHKUA3T.js} +2 -2
  78. package/dist/cdn/{H3QBALK4.js → D2SOXDMW.js} +2 -2
  79. package/dist/cdn/{SU5YNWLR.js → D2UIHI5N.js} +2 -2
  80. package/dist/cdn/D2XDABCT.js +20 -0
  81. package/dist/cdn/{ST5DNJ5A.js → D3RXCR6Q.js} +1 -1
  82. package/dist/cdn/{TIJ35HYZ.js → DC2VXLYA.js} +2 -2
  83. package/dist/cdn/{DBZRC2CE.js → DCYHSAL2.js} +2 -2
  84. package/dist/cdn/{S3O4R37V.js → DHVPMGLT.js} +2 -2
  85. package/dist/cdn/{U75KCBUY.js → DO5IRX2P.js} +2 -2
  86. package/dist/cdn/DP2E5JFM.js +4 -0
  87. package/dist/cdn/DSA7P4FN.js +18 -0
  88. package/dist/cdn/{7WWEF64M.js → DZ75SULS.js} +2 -2
  89. package/dist/cdn/{DNSJZC4P.js → E4626BS2.js} +2 -2
  90. package/dist/cdn/{NNED4X6O.js → EEECQWVR.js} +2 -2
  91. package/dist/cdn/{ADQGTHIK.js → EHUPQ5JP.js} +2 -2
  92. package/dist/cdn/{TZTD5Q2B.js → EJ7VKYZG.js} +2 -2
  93. package/dist/cdn/{NT3MKX5U.js → EL5KWKMD.js} +2 -2
  94. package/dist/cdn/{7UJMLOZS.js → EPYFVSXR.js} +2 -2
  95. package/dist/cdn/{MFRHP354.js → EV22N3KD.js} +2 -2
  96. package/dist/cdn/{GDUFF5HE.js → EW3T5VLB.js} +2 -2
  97. package/dist/cdn/{XTADI7OE.js → EX6HJQ4X.js} +2 -2
  98. package/dist/cdn/{MFHU7RCE.js → FDNO4BVO.js} +2 -2
  99. package/dist/cdn/{2IQPFNPX.js → FFJCM7BG.js} +2 -2
  100. package/dist/cdn/{ZQUJEICA.js → FKCBARKI.js} +2 -2
  101. package/dist/cdn/{XURZ7NUD.js → FLX4QZPY.js} +4 -4
  102. package/dist/cdn/{4QEWKLNG.js → FQTZU3Z2.js} +2 -2
  103. package/dist/cdn/{UFT52UFX.js → FZV7IALP.js} +2 -2
  104. package/dist/cdn/{EK6E5RV4.js → G2PAP4HL.js} +2 -2
  105. package/dist/cdn/{Q4EXL46G.js → G56M322A.js} +2 -2
  106. package/dist/cdn/{ROGVNZHG.js → G7LK4PDL.js} +2 -2
  107. package/dist/cdn/{FMIGRU3V.js → GE2KFI4B.js} +3 -3
  108. package/dist/cdn/{T2MYK67I.js → GFTGPFHL.js} +2 -2
  109. package/dist/cdn/{CFXL3A27.js → GFTMWJE2.js} +2 -2
  110. package/dist/cdn/{3M5E2W6J.js → GGBJCIO7.js} +2 -2
  111. package/dist/cdn/{QFODTZZX.js → GJ2UG6YP.js} +2 -2
  112. package/dist/cdn/{2N3SSEWE.js → GKBVNMEW.js} +2 -2
  113. package/dist/cdn/{ORKHRXHB.js → GUN44VYU.js} +2 -2
  114. package/dist/cdn/{OHWF5VUN.js → H36GDFY7.js} +1 -1
  115. package/dist/cdn/{P5WUMEFT.js → H3C4GIDZ.js} +2 -2
  116. package/dist/cdn/{J2SERNA3.js → H3FM5UM6.js} +1 -1
  117. package/dist/cdn/{VRFHYYVR.js → H4HFWY3H.js} +2 -2
  118. package/dist/cdn/{CHBTCIMS.js → H72WOGJ7.js} +2 -2
  119. package/dist/cdn/{I74ECT7N.js → HCCTS5WV.js} +2 -2
  120. package/dist/cdn/{VCK56OWN.js → HKKUMEH5.js} +1 -1
  121. package/dist/cdn/{UK42NUMO.js → HM7EBFPG.js} +2 -2
  122. package/dist/cdn/{AD654KDS.js → HNUCWI6T.js} +2 -2
  123. package/dist/cdn/{VY7KRQYG.js → HOTDMMJJ.js} +2 -2
  124. package/dist/cdn/{PKEJXERE.js → HPUAGDRV.js} +2 -2
  125. package/dist/cdn/{WNOY5N4R.js → HR2HFJXC.js} +1 -1
  126. package/dist/cdn/HRBMV6MS.js +18 -0
  127. package/dist/cdn/HZILY6RQ.js +18 -0
  128. package/dist/cdn/{A7PIN73K.js → I3SHQQXU.js} +2 -2
  129. package/dist/cdn/{Z2J6R7BH.js → I3ZD6IV4.js} +1 -1
  130. package/dist/cdn/{3PGLZBWX.js → IAHPQU5I.js} +2 -2
  131. package/dist/cdn/{CH7DLGUP.js → IFPYTV3R.js} +1 -1
  132. package/dist/cdn/{5FTGQPO5.js → IHQISHAM.js} +2 -2
  133. package/dist/cdn/{6QIO3AQD.js → IMFE25FS.js} +2 -2
  134. package/dist/cdn/IMYZB3YV.js +18 -0
  135. package/dist/cdn/{B5XYDLJB.js → IPXTSW43.js} +2 -2
  136. package/dist/cdn/{WG5YJAJK.js → IREZCPC5.js} +2 -2
  137. package/dist/cdn/{KC4KCTUH.js → IS4CHLDX.js} +2 -2
  138. package/dist/cdn/{DDOXQYTI.js → IVWP7URA.js} +2 -2
  139. package/dist/cdn/{DLQHSRI3.js → J252EEIH.js} +2 -2
  140. package/dist/cdn/{TPLOAFHX.js → JAMFZUE3.js} +2 -2
  141. package/dist/cdn/{UYA6RFIA.js → JJJAHCRO.js} +2 -2
  142. package/dist/cdn/{KEC5BNS2.js → JMMD7YBL.js} +2 -2
  143. package/dist/cdn/{JWLGFVVC.js → JOWT5YJ4.js} +2 -2
  144. package/dist/cdn/{5YJKRSII.js → JRMGFAZK.js} +2 -2
  145. package/dist/cdn/{PEHGGHQ4.js → JUVS4QTT.js} +2 -2
  146. package/dist/cdn/JYDRZHOB.js +4 -0
  147. package/dist/cdn/{MN5Q6VKW.js → KJOPUX6H.js} +2 -2
  148. package/dist/cdn/{YOTDGZIS.js → KQIW24JY.js} +2 -2
  149. package/dist/cdn/{ENKVILKY.js → KQPN7NFG.js} +2 -2
  150. package/dist/cdn/{PEPBVRCK.js → KUFJAMWI.js} +3 -3
  151. package/dist/cdn/{5QPBHI6N.js → LG2N3IDQ.js} +2 -2
  152. package/dist/cdn/{NM3XHUXJ.js → LIXHHHMQ.js} +1 -1
  153. package/dist/cdn/{KPNSWPLU.js → LUCYOE4G.js} +2 -2
  154. package/dist/cdn/{6DXOCCZA.js → M35TRRGF.js} +1 -1
  155. package/dist/cdn/{X6NXSOAM.js → M3L66GKK.js} +2 -2
  156. package/dist/cdn/{UJSAFWWD.js → M4VZ4CMY.js} +2 -2
  157. package/dist/cdn/{UJN2FPCY.js → M6GEH5RY.js} +2 -2
  158. package/dist/cdn/{EQQAWMKP.js → M7HD332R.js} +1 -1
  159. package/dist/cdn/{GOMTEPFA.js → MK7N6OTA.js} +1 -1
  160. package/dist/cdn/{DVIQ73JS.js → ML3FDA7I.js} +2 -2
  161. package/dist/cdn/{WRG6UGAU.js → MO5VIHBL.js} +2 -2
  162. package/dist/cdn/{3CQVKR4G.js → MTDAXKJA.js} +1 -1
  163. package/dist/cdn/{XE2T5GMW.js → MURI73WZ.js} +2 -2
  164. package/dist/cdn/{2XKHAKJH.js → MVAWCLJQ.js} +2 -2
  165. package/dist/cdn/N54CIKSY.js +4 -0
  166. package/dist/cdn/{4V3EN7XG.js → N5MNRNS4.js} +2 -2
  167. package/dist/cdn/{CBMM32W4.js → NNNUOKAQ.js} +2 -2
  168. package/dist/cdn/{PQ75UOOH.js → NTJ65ON3.js} +2 -2
  169. package/dist/cdn/NTSPFMPN.js +18 -0
  170. package/dist/cdn/{IQE4M5WS.js → O4U6ZUNI.js} +2 -2
  171. package/dist/cdn/{PPCFTYMM.js → ODVL6BLS.js} +2 -2
  172. package/dist/cdn/{2MCXJEIU.js → OG4FHSPI.js} +1 -1
  173. package/dist/cdn/{EI2SLBFR.js → OGRHFK6Y.js} +2 -2
  174. package/dist/cdn/{W7DEAFBS.js → ONL3NL26.js} +2 -2
  175. package/dist/cdn/{755YFLK2.js → OORGXTFY.js} +2 -2
  176. package/dist/cdn/{5GEHFK5G.js → OOX6G6UE.js} +2 -2
  177. package/dist/cdn/{ZFQ2JKAE.js → OQJGVRY2.js} +2 -2
  178. package/dist/cdn/{FFIBCVX2.js → OTYGSW7W.js} +2 -2
  179. package/dist/cdn/{ZEFYE6IH.js → OZWDP6Y7.js} +2 -2
  180. package/dist/cdn/{SQA4Z3HQ.js → PGB7D5V5.js} +2 -2
  181. package/dist/cdn/{H4R7X2AK.js → PJSBBGLJ.js} +2 -2
  182. package/dist/cdn/{ATGDZI46.js → PKKVL46F.js} +2 -2
  183. package/dist/cdn/{AI6YM633.js → PLTCACVO.js} +2 -2
  184. package/dist/cdn/{ZTWWXPZM.js → PNZFKJGE.js} +2 -2
  185. package/dist/cdn/PP6K5WOA.js +4 -0
  186. package/dist/cdn/{5GCZQ47Q.js → PSUWSWTK.js} +2 -2
  187. package/dist/cdn/{GJGBNYWB.js → PWM7PIST.js} +3 -3
  188. package/dist/cdn/{DC2E55EL.js → Q5QONQ6T.js} +2 -2
  189. package/dist/cdn/{PMRPPUOG.js → Q66CZJP6.js} +1 -1
  190. package/dist/cdn/{3O2FMCDB.js → QBIXFYYE.js} +1 -1
  191. package/dist/cdn/{PTLSOJ2V.js → QH2LKILS.js} +2 -2
  192. package/dist/cdn/{WGL2BCUM.js → QNXFXUZA.js} +2 -2
  193. package/dist/cdn/{AK2IOGVT.js → QP26HSVE.js} +1 -1
  194. package/dist/cdn/{QENLODCT.js → QQPQDFEM.js} +2 -2
  195. package/dist/cdn/{ERJCAGCH.js → QU55HNGY.js} +2 -2
  196. package/dist/cdn/{WMRXZUG4.js → QUCDVIOQ.js} +2 -2
  197. package/dist/cdn/{SISGIM4G.js → QVLJY52I.js} +2 -2
  198. package/dist/cdn/{HZDGJLAD.js → QYU6USHT.js} +2 -2
  199. package/dist/cdn/{5ZUU5HU5.js → QZAU4Z6W.js} +2 -2
  200. package/dist/cdn/{CJOWQ5NE.js → R5UFCXCH.js} +2 -2
  201. package/dist/cdn/{THC2GZPK.js → RC3IVWI3.js} +1 -1
  202. package/dist/cdn/{R4JBNSHM.js → RCDWSNVF.js} +2 -2
  203. package/dist/cdn/{MICSEU5B.js → RIQFARZP.js} +2 -2
  204. package/dist/cdn/{NCLWZM55.js → RMU2WXMJ.js} +2 -2
  205. package/dist/cdn/{5OKQHKMQ.js → RVTHLBJL.js} +2 -2
  206. package/dist/cdn/{KJROYCIQ.js → RWQELBMY.js} +2 -2
  207. package/dist/cdn/{L6PPOZ6H.js → RYQCNLW7.js} +2 -2
  208. package/dist/cdn/{SM2ZGXN2.js → S3AWAGTI.js} +2 -2
  209. package/dist/cdn/{R2IVNBNU.js → S5TXHJGZ.js} +2 -2
  210. package/dist/cdn/{NGN4GJ7L.js → S6GQFWK7.js} +2 -2
  211. package/dist/cdn/{525IK7S3.js → SBX54Z43.js} +2 -2
  212. package/dist/cdn/SCOCPPIV.js +383 -0
  213. package/dist/cdn/{PEJAYVXV.js → SH3RI2GK.js} +2 -2
  214. package/dist/cdn/{D22VRCQZ.js → SHWG5PCG.js} +2 -2
  215. package/dist/cdn/{TA7HLGDD.js → SMY4IACN.js} +2 -2
  216. package/dist/cdn/{DGN4U6I6.js → SUSAZ65X.js} +2 -2
  217. package/dist/cdn/{JYVM54WT.js → T6PMIZLP.js} +2 -2
  218. package/dist/cdn/{Z7DOTE4W.js → TA3ZXQAF.js} +2 -2
  219. package/dist/cdn/TBU33TUJ.js +18 -0
  220. package/dist/cdn/{W3Z2KVM3.js → TENNMXGF.js} +1 -1
  221. package/dist/cdn/{QVEKZTHX.js → TIUXVXYM.js} +2 -2
  222. package/dist/cdn/{M4VW4GKI.js → TKDGIQNC.js} +2 -2
  223. package/dist/cdn/{Z2BS6PDT.js → TNEFDIIG.js} +2 -2
  224. package/dist/cdn/{BII4KR4A.js → TTDNDVCB.js} +2 -2
  225. package/dist/cdn/{7XD5FYQH.js → TVGUICDI.js} +2 -2
  226. package/dist/cdn/{2QFAL42J.js → TXB56MNF.js} +2 -2
  227. package/dist/cdn/{QT25SZ3S.js → TYVJSPBM.js} +2 -2
  228. package/dist/cdn/{72A2Y2EQ.js → U4LWP3KK.js} +1 -1
  229. package/dist/cdn/{QPJLKOGU.js → UCI3QQAA.js} +1 -1
  230. package/dist/cdn/{XIWW264L.js → UDYWBQQB.js} +2 -2
  231. package/dist/cdn/UISRG6AV.js +18 -0
  232. package/dist/cdn/{4RUO65YZ.js → UITEOOYI.js} +1 -1
  233. package/dist/cdn/{LFX2BV5P.js → UMIQ4XRZ.js} +2 -2
  234. package/dist/cdn/{3MTECQIQ.js → UR7ODANG.js} +2 -2
  235. package/dist/cdn/{LEPX2J3T.js → UUY24OGE.js} +2 -2
  236. package/dist/cdn/{55MHSSEJ.js → UVRRN3AM.js} +2 -2
  237. package/dist/cdn/UZTSBHXN.js +294 -0
  238. package/dist/cdn/{S7TD37PA.js → V3XFBVJ2.js} +2 -2
  239. package/dist/cdn/VCL4EPUN.js +18 -0
  240. package/dist/cdn/VH4DOQZ4.js +4 -0
  241. package/dist/cdn/{EQ3E3UVU.js → VIRNYXF5.js} +2 -2
  242. package/dist/cdn/{YEE23JC2.js → VJF6Y7HU.js} +2 -2
  243. package/dist/cdn/{I7AMZQNZ.js → VLNWSZVR.js} +2 -2
  244. package/dist/cdn/{CIWLUKBJ.js → VOFDMTBC.js} +2 -2
  245. package/dist/cdn/{A7ABJL6C.js → VTS75E4I.js} +2 -2
  246. package/dist/cdn/{QH63BAVO.js → VUZA56M3.js} +2 -2
  247. package/dist/cdn/{ZVSLAQ5X.js → VXJY4QCS.js} +2 -2
  248. package/dist/cdn/{JSCLICIM.js → W3GV4JXP.js} +1 -1
  249. package/dist/cdn/{WT2FKAP6.js → W7HZRPHM.js} +2 -2
  250. package/dist/cdn/{7DEMXTPR.js → W7Z3ORQY.js} +2 -2
  251. package/dist/cdn/{YA3SBEXZ.js → WBAN3UIC.js} +2 -2
  252. package/dist/cdn/{CWSLTV67.js → WBRXMEMP.js} +2 -2
  253. package/dist/cdn/{46Z6LRFP.js → WCEUO2OS.js} +2 -2
  254. package/dist/cdn/{QLVKQU3N.js → WCVUN6XF.js} +2 -2
  255. package/dist/cdn/{Y7FST2QV.js → WFUAPKTB.js} +2 -2
  256. package/dist/cdn/{MEARRFPL.js → WIE3EFBI.js} +2 -2
  257. package/dist/cdn/{XZRHSLHF.js → WIVOL6CT.js} +1 -1
  258. package/dist/cdn/WN54HJON.js +4 -0
  259. package/dist/cdn/{XKQGFDT5.js → WNFUARBO.js} +2 -2
  260. package/dist/cdn/{X6LWFUFK.js → WQKEPPJH.js} +1 -1
  261. package/dist/cdn/{KYNAJJDV.js → WV2ZROZJ.js} +2 -2
  262. package/dist/cdn/{AQOENSWY.js → WZ764LLN.js} +1 -1
  263. package/dist/cdn/{KK3QWOG2.js → WZYGUEIV.js} +2 -2
  264. package/dist/cdn/{77SH6QGE.js → XFANWHPY.js} +2 -2
  265. package/dist/cdn/{WS42HFTU.js → XFM3FD2A.js} +2 -2
  266. package/dist/cdn/{2CQ66JGS.js → XK7SWBXE.js} +2 -2
  267. package/dist/cdn/{H57ZKHJ4.js → XU3KAISP.js} +1 -1
  268. package/dist/cdn/{4P2ED5MG.js → XXM424DO.js} +2 -2
  269. package/dist/cdn/{TW6H3Y5C.js → XYGVP2FK.js} +2 -2
  270. package/dist/cdn/{AROCXE5W.js → YC7HMH6M.js} +2 -2
  271. package/dist/cdn/{NF47PQ7Q.js → YEFAWRXP.js} +2 -2
  272. package/dist/cdn/YMUVFR3U.js +18 -0
  273. package/dist/cdn/{O27D4YVO.js → YQFYU4G2.js} +2 -2
  274. package/dist/cdn/YXHSDCRJ.js +4 -0
  275. package/dist/cdn/{MGAAWVDA.js → Z3XBAPZC.js} +1 -1
  276. package/dist/cdn/{MQWLMWGB.js → Z4FNCV4E.js} +2 -2
  277. package/dist/cdn/{SN7Y4QIQ.js → Z4WD3SG2.js} +1 -1
  278. package/dist/cdn/{GPO4L446.js → ZEPG4DE3.js} +2 -2
  279. package/dist/cdn/{ACYYQPGH.js → ZLTHON4G.js} +2 -2
  280. package/dist/cdn/{73W26K5Q.js → ZLU7K6TK.js} +2 -2
  281. package/dist/cdn/{45R5CD5E.js → ZRLT4TEH.js} +2 -2
  282. package/dist/cdn/{42AUJGFJ.js → ZUQZHS53.js} +2 -2
  283. package/dist/cdn/{D2RRQ3X4.js → ZV3QGDX6.js} +2 -2
  284. package/dist/cdn/{DSZ5WOHN.js → ZY74MRCW.js} +2 -2
  285. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +1 -1
  286. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +1 -1
  287. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.en.json +1 -1
  288. package/dist/cdn/assets/solution-delete-dialog/t9n/messages.json +1 -1
  289. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.en.json +1 -1
  290. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.json +1 -1
  291. package/dist/cdn/assets/solution-deployed-card/t9n/messages.en.json +1 -1
  292. package/dist/cdn/assets/solution-deployed-card/t9n/messages.json +1 -1
  293. package/dist/cdn/assets/solution-details-panel/t9n/messages.en.json +1 -1
  294. package/dist/cdn/assets/solution-details-panel/t9n/messages.json +1 -1
  295. package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
  296. package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
  297. package/dist/cdn/index.js +2 -2
  298. package/dist/cdn/main.css +1 -1
  299. package/dist/chunks/Auth.js +1 -1
  300. package/dist/chunks/appConfig.js +1 -1
  301. package/dist/chunks/cardFetchingUtils.js +3 -3
  302. package/dist/chunks/common.js +1 -1
  303. package/dist/chunks/deployAppContexts.js +1 -1
  304. package/dist/chunks/downloadUtils.js +1 -1
  305. package/dist/chunks/helpers.js +6 -6
  306. package/dist/chunks/index.js +1 -1
  307. package/dist/chunks/interfaces.js +23 -23
  308. package/dist/chunks/loadModules.js +1 -1
  309. package/dist/chunks/mapViewUtils.js +6 -6
  310. package/dist/chunks/pciUtils.js +1 -1
  311. package/dist/chunks/popupUtils.js +1 -1
  312. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  313. package/dist/chunks/privilegeUtils.js +143 -28
  314. package/dist/chunks/publicNotificationStore.js +1 -1
  315. package/dist/chunks/queryUtils.js +1 -1
  316. package/dist/chunks/runtime.js +1 -1
  317. package/dist/chunks/solution-store.js +4 -4
  318. package/dist/chunks/templates.js +1 -1
  319. package/dist/chunks/useT9n.js +1 -1
  320. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  321. package/dist/components/basemap-gallery/customElement.js +1 -1
  322. package/dist/components/buffer-tools/customElement.js +1 -1
  323. package/dist/components/card-manager/customElement.js +1 -1
  324. package/dist/components/consent-manager/customElement.js +1 -1
  325. package/dist/components/create-feature/customElement.js +1 -1
  326. package/dist/components/create-related-feature/customElement.js +1 -1
  327. package/dist/components/crowdsource-manager/customElement.js +4 -4
  328. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  329. package/dist/components/deduct-calculator/customElement.js +1 -1
  330. package/dist/components/delete-button/customElement.js +1 -1
  331. package/dist/components/delete-dialog/customElement.js +1 -1
  332. package/dist/components/edit-card/customElement.js +1 -1
  333. package/dist/components/feature-details/customElement.js +1 -1
  334. package/dist/components/feature-list/customElement.js +1 -1
  335. package/dist/components/field-selection/customElement.js +1 -1
  336. package/dist/components/floor-filter/customElement.js +1 -1
  337. package/dist/components/info-card/customElement.js +1 -1
  338. package/dist/components/json-editor/customElement.js +1 -1
  339. package/dist/components/layer-list/customElement.js +1 -1
  340. package/dist/components/layer-table/customElement.js +2 -2
  341. package/dist/components/map-card/customElement.js +2 -2
  342. package/dist/components/map-draw-tools/customElement.js +2 -2
  343. package/dist/components/map-fullscreen/customElement.js +1 -1
  344. package/dist/components/map-layer-picker/customElement.js +1 -1
  345. package/dist/components/map-legend/customElement.js +1 -1
  346. package/dist/components/map-picker/customElement.js +1 -1
  347. package/dist/components/map-search/customElement.js +1 -1
  348. package/dist/components/map-select-tools/customElement.js +2 -2
  349. package/dist/components/map-tools/customElement.js +1 -1
  350. package/dist/components/pci-calculator/customElement.js +1 -1
  351. package/dist/components/pdf-download/customElement.js +1 -1
  352. package/dist/components/public-notification/customElement.js +2 -2
  353. package/dist/components/refine-selection/customElement.js +2 -2
  354. package/dist/components/selection-tool/customElement.js +1 -1
  355. package/dist/components/solution-article-card/customElement.js +1 -1
  356. package/dist/components/solution-configuration/customElement.js +1 -1
  357. package/dist/components/solution-configure-dialog/customElement.d.ts +11 -0
  358. package/dist/components/solution-configure-dialog/customElement.js +78 -30
  359. package/dist/components/solution-configure-dialog/index.d.ts +6 -0
  360. package/dist/components/solution-configure-dialog/index.js +6 -0
  361. package/dist/components/solution-configure-titles/customElement.d.ts +5 -1
  362. package/dist/components/solution-configure-titles/customElement.js +22 -19
  363. package/dist/components/solution-contents/customElement.js +1 -1
  364. package/dist/components/solution-delete-dialog/customElement.d.ts +5 -0
  365. package/dist/components/solution-delete-dialog/customElement.js +66 -42
  366. package/dist/components/solution-deploy-dialog/customElement.d.ts +7 -2
  367. package/dist/components/solution-deploy-dialog/customElement.js +83 -113
  368. package/dist/components/solution-deployed-card/customElement.d.ts +11 -0
  369. package/dist/components/solution-deployed-card/customElement.js +45 -29
  370. package/dist/components/solution-deployed-card/index.d.ts +1 -1
  371. package/dist/components/solution-deployed-card/index.js +1 -1
  372. package/dist/components/solution-deploying-dialog/customElement.d.ts +24 -0
  373. package/dist/components/solution-deploying-dialog/customElement.js +71 -0
  374. package/dist/components/solution-details-card/customElement.js +2 -2
  375. package/dist/components/solution-details-panel/customElement.d.ts +1 -1
  376. package/dist/components/solution-details-panel/customElement.js +167 -76
  377. package/dist/components/solution-details-panel/index.d.ts +6 -0
  378. package/dist/components/solution-details-panel/index.js +6 -0
  379. package/dist/components/solution-item/customElement.js +1 -1
  380. package/dist/components/solution-item-accordion/customElement.d.ts +8 -6
  381. package/dist/components/solution-item-accordion/customElement.js +19 -11
  382. package/dist/components/solution-item-accordion/index.d.ts +1 -0
  383. package/dist/components/solution-item-accordion/index.js +1 -0
  384. package/dist/components/solution-item-details/customElement.js +1 -1
  385. package/dist/components/solution-item-diagram/customElement.d.ts +0 -1
  386. package/dist/components/solution-item-diagram/customElement.js +63 -66
  387. package/dist/components/solution-item-icon/customElement.d.ts +1 -1
  388. package/dist/components/solution-item-icon/customElement.js +1 -1
  389. package/dist/components/solution-item-sharing/customElement.js +1 -1
  390. package/dist/components/solution-organization-variables/customElement.js +1 -1
  391. package/dist/components/solution-resource-item/customElement.js +2 -2
  392. package/dist/components/solution-snapshot-gallery/customElement.d.ts +0 -5
  393. package/dist/components/solution-snapshot-gallery/customElement.js +14 -14
  394. package/dist/components/solution-spatial-ref/customElement.js +14 -14
  395. package/dist/components/solution-template-data/customElement.js +1 -1
  396. package/dist/components/solution-variables/customElement.js +1 -1
  397. package/dist/components/solutions-all-panel/customElement.js +35 -102
  398. package/dist/components/solutions-all-shell/customElement.d.ts +0 -2
  399. package/dist/components/solutions-all-shell/customElement.js +23 -41
  400. package/dist/components/solutions-article-panel/customElement.js +1 -1
  401. package/dist/components/solutions-articles/customElement.js +11 -14
  402. package/dist/components/solutions-articles-shell/customElement.js +13 -16
  403. package/dist/components/solutions-deployed-panel/customElement.d.ts +9 -8
  404. package/dist/components/solutions-deployed-panel/customElement.js +39 -26
  405. package/dist/components/solutions-deployed-shell/customElement.d.ts +0 -1
  406. package/dist/components/solutions-deployed-shell/customElement.js +23 -41
  407. package/dist/components/solutions-filter-panel/customElement.js +16 -19
  408. package/dist/components/spatial-ref/customElement.js +1 -1
  409. package/dist/components/store-manager/customElement.js +1 -1
  410. package/dist/docs/api.json +328 -65
  411. package/dist/docs/docs.json +318 -56
  412. package/dist/docs/vscode.html-custom-data.json +26 -10
  413. package/dist/docs/web-types.json +103 -31
  414. package/dist/index.d.ts +18 -4
  415. package/dist/index.js +1 -1
  416. package/dist/loader.js +8 -8
  417. package/dist/types/lumina.d.ts +10 -9
  418. package/dist/types/preact.d.ts +11 -10
  419. package/dist/types/react.d.ts +12 -11
  420. package/dist/types/stencil.d.ts +10 -9
  421. package/dist/utils/interfaces.d.ts +10 -0
  422. package/dist/utils/privilegeUtils.d.ts +7 -0
  423. package/package.json +1 -1
  424. package/dist/cdn/22U6FEYE.js +0 -18
  425. package/dist/cdn/3FJRQN27.js +0 -18
  426. package/dist/cdn/4QGW7XLZ.js +0 -18
  427. package/dist/cdn/5Q2JJCFF.js +0 -4
  428. package/dist/cdn/67776ZSV.js +0 -18
  429. package/dist/cdn/7GJVOL2K.js +0 -4
  430. package/dist/cdn/BRT757S3.js +0 -18
  431. package/dist/cdn/C5C4KHG2.js +0 -4
  432. package/dist/cdn/CKQRWDEZ.js +0 -18
  433. package/dist/cdn/EPWZGWQJ.js +0 -4
  434. package/dist/cdn/F2MMZAMU.js +0 -18
  435. package/dist/cdn/JUWCTKXD.js +0 -4
  436. package/dist/cdn/KLCMDGZK.js +0 -289
  437. package/dist/cdn/LCT3NQOR.js +0 -18
  438. package/dist/cdn/M53O7AL7.js +0 -18
  439. package/dist/cdn/MA6BHO3S.js +0 -4
  440. package/dist/cdn/MALVFH5T.js +0 -20
  441. package/dist/cdn/NJB5H6NT.js +0 -4
  442. package/dist/cdn/NK6VN5CV.js +0 -18
  443. package/dist/cdn/OBGLJ4AM.js +0 -18
  444. package/dist/cdn/TNZETMBZ.js +0 -18
  445. package/dist/cdn/WAN4LQ52.js +0 -18
  446. package/dist/cdn/WRLRDSID.js +0 -18
  447. package/dist/cdn/X57FB3KD.js +0 -18
  448. package/dist/cdn/XV4GT4PM.js +0 -4
  449. package/dist/cdn/YHIK3V5C.js +0 -18
  450. package/dist/cdn/YI47D7GW.js +0 -4
  451. package/dist/cdn/YPFDFW4X.js +0 -4
  452. package/dist/cdn/Z3NILA3R.js +0 -369
  453. package/dist/components/solution-deploying-panel/customElement.d.ts +0 -12
  454. package/dist/components/solution-deploying-panel/customElement.js +0 -77
  455. /package/dist/cdn/assets/{solution-deploying-panel → solution-deploying-dialog}/t9n/messages.en.json +0 -0
  456. /package/dist/cdn/assets/{solution-deploying-panel → solution-deploying-dialog}/t9n/messages.json +0 -0
  457. /package/dist/components/{solution-deploying-panel → solution-deploying-dialog}/index.d.ts +0 -0
  458. /package/dist/components/{solution-deploying-panel → solution-deploying-dialog}/index.js +0 -0
@@ -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.4 */
4
- import{a as g,b as E,c as p,d as I,e as f,f as r,i as y,j as S,l as k}from"./MEARRFPL.js";import"./EKX5RPAU.js";import"./RNVECRCO.js";import"./AK2IOGVT.js";import"./J2SERNA3.js";import{a as _,c as i,d as v,e as U,f as b,j as w}from"./DVIQ73JS.js";import"./4RUO65YZ.js";var A=`
3
+ v1.0.5 */
4
+ import{a as g,b as E,c as p,d as I,e as f,f as r,i as y,j as S,l as k}from"./WIE3EFBI.js";import"./25FEJN5O.js";import"./25JM7WUJ.js";import"./QP26HSVE.js";import"./H3FM5UM6.js";import{a as _,c as i,d as v,e as U,f as b,j as w}from"./ML3FDA7I.js";import"./UITEOOYI.js";var A=`
5
5
  .ck.ck-reset.ck-editor.ck-rounded-corners {
6
6
  margin-top: 10px !important;
7
7
  margin-left: 55px !important;
@@ -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.4 */
4
- import{a as o,b as l}from"./ZEFYE6IH.js";import{b as c}from"./6DXOCCZA.js";import{a as u}from"./Z7DOTE4W.js";import{D as h,c as n,d as i,n as s,y as r}from"./ST5DNJ5A.js";import"./4RUO65YZ.js";var m=n`/** @license
3
+ v1.0.5 */
4
+ import{a as o,b as l}from"./OZWDP6Y7.js";import{b as c}from"./M35TRRGF.js";import{a as u}from"./TA3ZXQAF.js";import{D as h,c as n,d as i,n as s,y as r}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var m=n`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -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.4 */
4
- import{d as g}from"./LFX2BV5P.js";import"./GAV3AXFW.js";import{b as m}from"./AQOENSWY.js";import{a as d,b as p}from"./ZEFYE6IH.js";import{a as u}from"./Z7DOTE4W.js";import{D as h,c as n,d as i,n as a,p as l,y as c}from"./ST5DNJ5A.js";import"./4RUO65YZ.js";var C=n`@layer{/** @license
3
+ v1.0.5 */
4
+ import{d as g}from"./UMIQ4XRZ.js";import"./76JQ5L7D.js";import{b as m}from"./WZ764LLN.js";import{a as d,b as p}from"./OZWDP6Y7.js";import{a as u}from"./TA3ZXQAF.js";import{D as h,c as n,d as i,n as a,p as l,y as c}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var C=n`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -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.4 */
4
- import{b as m,c as h}from"./SK6BPGF7.js";import"./XURZ7NUD.js";import"./Y2GJJZVT.js";import"./Z2J6R7BH.js";import"./MICSEU5B.js";import"./2N3SSEWE.js";import"./5FTGQPO5.js";import"./PMRPPUOG.js";import"./3KRHILOK.js";import"./T2MYK67I.js";import"./2MCXJEIU.js";import"./GOMTEPFA.js";import"./X6LWFUFK.js";import"./NNED4X6O.js";import"./R2IVNBNU.js";import"./7W5RZY7N.js";import"./7M4VGKUT.js";import"./XZRHSLHF.js";import"./JYVM54WT.js";import"./2UH456LC.js";import"./QPJLKOGU.js";import"./NDWOAOHX.js";import"./AQOENSWY.js";import{a as b,b as g}from"./ZEFYE6IH.js";import{b as d}from"./6DXOCCZA.js";import{a as c}from"./Z7DOTE4W.js";import{D as p,c as n,d as r,y as o}from"./ST5DNJ5A.js";import"./4RUO65YZ.js";var u=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),D=n`/** @license
3
+ v1.0.5 */
4
+ import{b as m,c as h}from"./CBITJT5D.js";import"./FLX4QZPY.js";import"./2IRIOH44.js";import"./I3ZD6IV4.js";import"./RIQFARZP.js";import"./GKBVNMEW.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import"./2VXYY4NW.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import"./7B2MAX64.js";import"./WZ764LLN.js";import{a as b,b as g}from"./OZWDP6Y7.js";import{b as d}from"./M35TRRGF.js";import{a as c}from"./TA3ZXQAF.js";import{D as p,c as n,d as r,y as o}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var u=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),D=n`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -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.4 */
4
- import{a as r}from"./DHOIKSPR.js";import"./WNOY5N4R.js";import"./XURZ7NUD.js";import"./Y2GJJZVT.js";import"./Z2J6R7BH.js";import"./MICSEU5B.js";import"./2N3SSEWE.js";import"./5FTGQPO5.js";import"./PMRPPUOG.js";import"./3KRHILOK.js";import"./T2MYK67I.js";import"./2MCXJEIU.js";import"./GOMTEPFA.js";import"./X6LWFUFK.js";import"./NNED4X6O.js";import"./R2IVNBNU.js";import"./7W5RZY7N.js";import"./7M4VGKUT.js";import"./XZRHSLHF.js";import"./JYVM54WT.js";import"./2UH456LC.js";import"./QPJLKOGU.js";import"./GAV3AXFW.js";import{a as d}from"./Z7DOTE4W.js";import{D as p,c as h,d as n,f as a,y as l}from"./ST5DNJ5A.js";import"./4RUO65YZ.js";var g=h`/** @license
3
+ v1.0.5 */
4
+ import{a as r}from"./33UPFZYZ.js";import"./HR2HFJXC.js";import"./FLX4QZPY.js";import"./2IRIOH44.js";import"./I3ZD6IV4.js";import"./RIQFARZP.js";import"./GKBVNMEW.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import"./2VXYY4NW.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import"./76JQ5L7D.js";import{a as d}from"./TA3ZXQAF.js";import{D as p,c as h,d as n,f as a,y as l}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var g=h`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -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.4 */
4
- import{a as w}from"./A7PIN73K.js";import"./WNOY5N4R.js";import{c as R,h as O,i as V}from"./LFX2BV5P.js";import{d as n,e as h,g as $}from"./GAV3AXFW.js";import{d as x}from"./AQOENSWY.js";import{a as g,b as _}from"./ZEFYE6IH.js";import{a as E}from"./Z7DOTE4W.js";import{D as L,c as I,d as p,n as m,p as k,y as v}from"./ST5DNJ5A.js";import"./4RUO65YZ.js";var A=I`@layer{/** @license
3
+ v1.0.5 */
4
+ import{a as w}from"./I3SHQQXU.js";import"./HR2HFJXC.js";import{c as R,h as O,i as V}from"./UMIQ4XRZ.js";import{d as n,e as h,g as $}from"./76JQ5L7D.js";import{d as E}from"./WZ764LLN.js";import{a as g,b as _}from"./OZWDP6Y7.js";import{a as x}from"./TA3ZXQAF.js";import{D as L,c as I,d as p,n as m,p as k,y as v}from"./D3RXCR6Q.js";import"./UITEOOYI.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");
@@ -15,4 +15,4 @@ import{a as w}from"./A7PIN73K.js";import"./WNOY5N4R.js";import{c as R,h as O,i 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}.div-visible{display:inherit}.div-not-visible{display:none!important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=rtl] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}.esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}.display-flex{display:flex}.font-bold{font-weight:700}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom: 0}.padding-start-1-2{padding-inline-start:.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,u=class extends v{constructor(){super(...arguments),this.enabledLayerIds=[],this.selectionSets=[],this._translations=E({name:"refine-selection",blocking:!0}),this._selectionMode=n.ADD,this._addEnabled=!0,this._drawTools=g(),this._refineSets=[],this._enabledLayerIds=[],this._layerPicker=g(),this._featuresCollection={},this.selectionLoadingChange=m(),this.selectionSetsChanged=m()}static{this.properties={addresseeLayer:0,enabledLayerIds:0,mapView:0,selectionSets:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,_translations:16,_selectionMode:16,_refineLayer:16}}static{this.styles=A}static{this.shadowRootOptions=k}async load(){this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){let e=this._enabledLayerIds.length>1?"display-block":"display-none";return p`<div class=${`${e} padding-top-sides-1`}><div class="display-flex"><calcite-label class="font-bold width-full label-margin-0"><div class="display-flex">${this._translations.inputLayer}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=refine-input-layer scale=s></calcite-icon></div><map-layer-picker .enabledLayerIds=${this._enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this._refineLayer?[this._refineLayer.layer.id]:[]} ${_(this._layerPicker)}></map-layer-picker></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=refine-input-layer><span class="tooltip-message">${this._translations.inputLayerTip}</span></calcite-popover></div></div><div class="padding-1"><div class="padding-bottom-1"><calcite-segmented-control class="w-100" width=full><calcite-segmented-control-item .checked=${this._addEnabled} class="w-50 word-wrap-anywhere" @click=${()=>this._setSelectionMode(n.ADD)} .value=${n.ADD}><span class="font-weight-500">${this._translations.add}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${!this._addEnabled} class="w-50 word-wrap-anywhere" @click=${()=>this._setSelectionMode(n.REMOVE)} .value=${n.REMOVE}><span class="font-weight-500">${this._translations.remove}</span></calcite-segmented-control-item></calcite-segmented-control></div><div><map-draw-tools active .drawMode=${$.REFINE} .mapView=${this.mapView} @drawRedo=${()=>this._redo()} @drawUndo=${()=>this._undo()} @sketchGraphicsChange=${this._sketchGraphicsChanged} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} .redoEnabled=${this._refineSelectionSet?.redoStack&&this._refineSelectionSet.redoStack.length>0} .undoEnabled=${this._refineSelectionSet?.undoStack&&this._refineSelectionSet.undoStack.length>0} ${_(this._drawTools)}></map-draw-tools></div><br>${p`<calcite-list class="list-border" label>${this._getRefineSelectionSetList()}</calcite-list>`}</div>`}_layerSelectionChange(e){let t=e.detail[0];this._setRefineSet(t)}_setSelectionMode(e){this._selectionMode=e}_sketchGraphicsChanged(e){let t=e.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce((e,t)=>{let i=t?.layerView?.layer.id;return i&&e.indexOf(i)<0?e.push(i):t.workflowType===h.REFINE&&Object.keys(t.refineInfos).forEach(s=>{e.indexOf(s)<0&&e.push(s)}),e},[])}async _setRefineSet(e){this.selectionSets.some(t=>t.workflowType===h.REFINE?(this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(e)>-1):!1)||await this._initRefineSet(e,this._refineSelectionSet),this._refineSelectionSet&&(this._refineLayer=this._refineSelectionSet.refineInfos[e].layerView)}async _initRefineSet(e,t){let i={};i[e]={addIds:[],removeIds:[],layerView:this.mapView&&await R(this.mapView,e)},t?t.refineInfos={...t.refineInfos,...i}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:h.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:i,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){if(this._refineSelectionSet){let e=this._refineSelectionSet.undoStack&&this._refineSelectionSet.undoStack.pop();e&&this._refineSelectionSet.redoStack&&this._updateIds(e.ids,e.mode===n.ADD?n.REMOVE:n.ADD,this._refineSelectionSet.redoStack,e.layerView)}}_redo(){if(this._refineSelectionSet){let e=this._refineSelectionSet.redoStack&&this._refineSelectionSet.redoStack.pop();e&&this._refineSelectionSet.undoStack&&this._updateIds(e.ids,e.mode===n.ADD?n.REMOVE:n.ADD,this._refineSelectionSet.undoStack,e.layerView)}}_getRefineSelectionSetList(){let e=this._getTotal(this.selectionSets),t;this.selectionSets.some(c=>c.workflowType===h.REFINE?(t=c,!0):!1);let i=0,s=0;t?.refineInfos&&Object.keys(t.refineInfos).forEach(c=>{i+=t.refineInfos[c].addIds.length,s+=t.refineInfos[c].removeIds.length});let l=this._translations.featuresAdded,S=this._translations.featuresRemoved,d=this._translations.totalSelected;return[p`<calcite-list-item .label=${l.replace("{{n}}",i.toString())}></calcite-list-item>`,p`<calcite-list-item .label=${S.replace("{{n}}",s.toString())}></calcite-list-item>`,p`<calcite-list-item .label=${d.replace("{{n}}",e.toString())}></calcite-list-item>`]}_getTotal(e){let t=V(e);return Object.keys(t).reduce((i,s)=>{let l=t[s];return i+=l.ids.length,i},0)}async _selectFeatures(e){if(this.selectionLoadingChange.emit(!0),this._refineLayer){this._featuresCollection[this._refineLayer?.layer.id]=[];let t=await x(0,this._refineLayer?.layer,e,this._featuresCollection);this.selectionLoadingChange.emit(!1);let i=[];Object.keys(t).forEach(l=>{l===this._refineLayer?.layer.id&&(i=i.concat(t[l]))});let s=Array.isArray(i)?i.map(l=>l.attributes[l?.layer?.objectIdField]):[];this._refineSelectionSet?.undoStack&&await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.value&&this._drawTools.value.clear()}}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await O(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(e,t,i,s){let l=!1,S=this._refineSelectionSet?.refineInfos,d=s.layer.id,c={};c[d]={addIds:[],removeIds:[],layerView:s};let a=S&&Object.keys(S).indexOf(d)>-1?S[d]:c[d];if(t===n.ADD)a.addIds=[...new Set([...e,...a.addIds])],a.addIds.length>0&&i.push({ids:e,mode:t,layerView:s}),a.removeIds.length>0&&(a.removeIds=a.removeIds.filter(y=>e.indexOf(y)<0));else{let y=this.selectionSets.reduce((r,o)=>(e.forEach(f=>{o.workflowType!==h.REFINE?o.selectedIds.indexOf(f)>-1&&r.push(f):Object.keys(o.refineInfos).some(D=>{let b=o.refineInfos[D];return b.layerView.layer.id===s.layer.id&&b.addIds.indexOf(f)>-1?(r.push(f),!0):!1})}),r),[]);a.removeIds=[...new Set([...y,...a.removeIds])],a.addIds=a.addIds.filter(r=>y.indexOf(r)<0),a.removeIds.length>0&&i.push({ids:y,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce((r,o)=>(o.workflowType!==h.REFINE&&o.layerView.layer.id===s.layer.id?(o.selectedIds=o.selectedIds.filter(f=>a.removeIds.indexOf(f)<0),o.selectedIds.length>0?r.push(o):l=!0):r.push(o),r),[])}this._refineSelectionSet&&(this._refineSelectionSet.refineInfos[d]=a),this.selectionSets=[...this.selectionSets],l&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}};L("refine-selection",u);export{u as RefineSelection};
18
+ */:host{display:block}.div-visible{display:inherit}.div-not-visible{display:none!important}.padding-top-1-2{padding-top:.5rem}.main-label{display:flex;float:left}html[dir=rtl] .main-label{display:flex;float:right}.border{outline:1px solid var(--calcite-color-border-input)}.margin-top-1{margin-top:1rem}.esri-sketch{display:flex;flex-flow:column wrap}.esri-widget{box-sizing:border-box;color:#323232;font-size:14px;font-family:Avenir Next,Helvetica Neue,Helvetica,Arial,sans-serif;line-height:1.3em;background-color:var(--calcite-color-foreground-1)}.esri-sketch__panel{align-items:center;display:flex;flex-flow:row nowrap;padding:0}.esri-sketch__tool-section{border-right:1px solid rgba(110,110,110,.3)}.esri-sketch__section{align-items:center;display:flex;flex-flow:row nowrap;padding:0 7px;margin:6px 0;border-right:1px solid rgba(110,110,110,.3)}.display-flex{display:flex}.font-bold{font-weight:700}.width-full{width:100%}.label-margin-0{--calcite-label-margin-bottom: 0}.padding-start-1-2{padding-inline-start:.5rem}.font-weight-500{font-weight:500}.word-wrap-anywhere{word-wrap:anywhere}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,u=class extends v{constructor(){super(...arguments),this.enabledLayerIds=[],this.selectionSets=[],this._translations=x({name:"refine-selection",blocking:!0}),this._selectionMode=n.ADD,this._addEnabled=!0,this._drawTools=g(),this._refineSets=[],this._enabledLayerIds=[],this._layerPicker=g(),this._featuresCollection={},this.selectionLoadingChange=m(),this.selectionSetsChanged=m()}static{this.properties={addresseeLayer:0,enabledLayerIds:0,mapView:0,selectionSets:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,_translations:16,_selectionMode:16,_refineLayer:16}}static{this.styles=A}static{this.shadowRootOptions=k}async load(){this._enabledLayerIds=this._getEnabledLayerIds(),await this._setRefineSet(this._enabledLayerIds[0])}render(){let e=this._enabledLayerIds.length>1?"display-block":"display-none";return p`<div class=${`${e} padding-top-sides-1`}><div class="display-flex"><calcite-label class="font-bold width-full label-margin-0"><div class="display-flex">${this._translations.inputLayer}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=refine-input-layer scale=s></calcite-icon></div><map-layer-picker .enabledLayerIds=${this._enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this._refineLayer?[this._refineLayer.layer.id]:[]} ${_(this._layerPicker)}></map-layer-picker></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=refine-input-layer><span class="tooltip-message">${this._translations.inputLayerTip}</span></calcite-popover></div></div><div class="padding-1"><div class="padding-bottom-1"><calcite-segmented-control class="w-100" width=full><calcite-segmented-control-item .checked=${this._addEnabled} class="w-50 word-wrap-anywhere" @click=${()=>this._setSelectionMode(n.ADD)} .value=${n.ADD}><span class="font-weight-500">${this._translations.add}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${!this._addEnabled} class="w-50 word-wrap-anywhere" @click=${()=>this._setSelectionMode(n.REMOVE)} .value=${n.REMOVE}><span class="font-weight-500">${this._translations.remove}</span></calcite-segmented-control-item></calcite-segmented-control></div><div><map-draw-tools active .drawMode=${$.REFINE} .mapView=${this.mapView} @drawRedo=${()=>this._redo()} @drawUndo=${()=>this._undo()} @sketchGraphicsChange=${this._sketchGraphicsChanged} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} .redoEnabled=${this._refineSelectionSet?.redoStack&&this._refineSelectionSet.redoStack.length>0} .undoEnabled=${this._refineSelectionSet?.undoStack&&this._refineSelectionSet.undoStack.length>0} ${_(this._drawTools)}></map-draw-tools></div><br>${p`<calcite-list class="list-border" label>${this._getRefineSelectionSetList()}</calcite-list>`}</div>`}_layerSelectionChange(e){let t=e.detail[0];this._setRefineSet(t)}_setSelectionMode(e){this._selectionMode=e}_sketchGraphicsChanged(e){let t=e.detail?.graphics[0].geometry;this._selectFeatures(t)}_getEnabledLayerIds(){return this.selectionSets.reduce((e,t)=>{let i=t?.layerView?.layer.id;return i&&e.indexOf(i)<0?e.push(i):t.workflowType===h.REFINE&&Object.keys(t.refineInfos).forEach(s=>{e.indexOf(s)<0&&e.push(s)}),e},[])}async _setRefineSet(e){this.selectionSets.some(t=>t.workflowType===h.REFINE?(this._refineSelectionSet=t,Object.keys(t.refineInfos).indexOf(e)>-1):!1)||await this._initRefineSet(e,this._refineSelectionSet),this._refineSelectionSet&&(this._refineLayer=this._refineSelectionSet.refineInfos[e].layerView)}async _initRefineSet(e,t){let i={};i[e]={addIds:[],removeIds:[],layerView:this.mapView&&await R(this.mapView,e)},t?t.refineInfos={...t.refineInfos,...i}:(this._refineSelectionSet={id:Date.now(),searchResult:void 0,buffer:void 0,distance:0,download:!0,unit:"feet",label:"Refine",selectedIds:[],layerView:void 0,geometries:[],graphics:[],selectLayers:[],workflowType:h.REFINE,searchDistanceEnabled:!1,useLayerFeaturesEnabled:!1,refineInfos:i,redoStack:[],undoStack:[],sketchGraphic:void 0},this.selectionSets.push(this._refineSelectionSet))}_undo(){if(this._refineSelectionSet){let e=this._refineSelectionSet.undoStack&&this._refineSelectionSet.undoStack.pop();e&&this._refineSelectionSet.redoStack&&this._updateIds(e.ids,e.mode===n.ADD?n.REMOVE:n.ADD,this._refineSelectionSet.redoStack,e.layerView)}}_redo(){if(this._refineSelectionSet){let e=this._refineSelectionSet.redoStack&&this._refineSelectionSet.redoStack.pop();e&&this._refineSelectionSet.undoStack&&this._updateIds(e.ids,e.mode===n.ADD?n.REMOVE:n.ADD,this._refineSelectionSet.undoStack,e.layerView)}}_getRefineSelectionSetList(){let e=this._getTotal(this.selectionSets),t;this.selectionSets.some(c=>c.workflowType===h.REFINE?(t=c,!0):!1);let i=0,s=0;t?.refineInfos&&Object.keys(t.refineInfos).forEach(c=>{i+=t.refineInfos[c].addIds.length,s+=t.refineInfos[c].removeIds.length});let l=this._translations.featuresAdded,S=this._translations.featuresRemoved,d=this._translations.totalSelected;return[p`<calcite-list-item .label=${l.replace("{{n}}",i.toString())}></calcite-list-item>`,p`<calcite-list-item .label=${S.replace("{{n}}",s.toString())}></calcite-list-item>`,p`<calcite-list-item .label=${d.replace("{{n}}",e.toString())}></calcite-list-item>`]}_getTotal(e){let t=V(e);return Object.keys(t).reduce((i,s)=>{let l=t[s];return i+=l.ids.length,i},0)}async _selectFeatures(e){if(this.selectionLoadingChange.emit(!0),this._refineLayer){this._featuresCollection[this._refineLayer?.layer.id]=[];let t=await E(0,this._refineLayer?.layer,e,this._featuresCollection);this.selectionLoadingChange.emit(!1);let i=[];Object.keys(t).forEach(l=>{l===this._refineLayer?.layer.id&&(i=i.concat(t[l]))});let s=Array.isArray(i)?i.map(l=>l.attributes[l?.layer?.objectIdField]):[];this._refineSelectionSet?.undoStack&&await this._updateIds(s,this._selectionMode,this._refineSelectionSet.undoStack,this._refineLayer),this._drawTools.value&&this._drawTools.value.clear()}}async _highlightFeatures(){this._clearHighlight(),w.highlightHandles=await O(this.selectionSets)}_clearHighlight(){w.removeHandles()}async _updateIds(e,t,i,s){let l=!1,S=this._refineSelectionSet?.refineInfos,d=s.layer.id,c={};c[d]={addIds:[],removeIds:[],layerView:s};let a=S&&Object.keys(S).indexOf(d)>-1?S[d]:c[d];if(t===n.ADD)a.addIds=[...new Set([...e,...a.addIds])],a.addIds.length>0&&i.push({ids:e,mode:t,layerView:s}),a.removeIds.length>0&&(a.removeIds=a.removeIds.filter(y=>e.indexOf(y)<0));else{let y=this.selectionSets.reduce((r,o)=>(e.forEach(f=>{o.workflowType!==h.REFINE?o.selectedIds.indexOf(f)>-1&&r.push(f):Object.keys(o.refineInfos).some(D=>{let b=o.refineInfos[D];return b.layerView.layer.id===s.layer.id&&b.addIds.indexOf(f)>-1?(r.push(f),!0):!1})}),r),[]);a.removeIds=[...new Set([...y,...a.removeIds])],a.addIds=a.addIds.filter(r=>y.indexOf(r)<0),a.removeIds.length>0&&i.push({ids:y,mode:t,layerView:s}),this.selectionSets=this.selectionSets.reduce((r,o)=>(o.workflowType!==h.REFINE&&o.layerView.layer.id===s.layer.id?(o.selectedIds=o.selectedIds.filter(f=>a.removeIds.indexOf(f)<0),o.selectedIds.length>0?r.push(o):l=!0):r.push(o),r),[])}this._refineSelectionSet&&(this._refineSelectionSet.refineInfos[d]=a),this.selectionSets=[...this.selectionSets],l&&this.selectionSetsChanged.emit(this.selectionSets),await this._highlightFeatures()}};L("refine-selection",u);export{u as RefineSelection};
@@ -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.4 */
4
- import{a as h}from"./7W5RZY7N.js";function i(t){if(typeof t=="string")return t.replace(/\/sharing\/rest\/?$/,"");if(typeof t=="object"){let e=t.portalSelf||t,{portalHostname:s,urlKey:o,customBaseUrl:n}=e;if(s||o&&n)return e.isPortal?`https://${e.portalHostname}`:`https://${e.urlKey}.${e.customBaseUrl}`}return i(h(t))}function _(t){let r="enterprise";return t.includes("arcgis.com")&&(r="production"),(t.includes("qaext.arcgis.com")||t.includes("mapsqa.arcgis.com"))&&(r="qaext"),(t.includes("devext.arcgis.com")||t.includes("mapsdev.arcgis.com"))&&(r="devext"),r}function S(t,r){return`${i(r)}/home/item.html?id=${t}`}var a="/apps/sites";function E(t,r){let e=i(r),s;/(devext|mapsdevext)\.arcgis\.com/.test(e)?s="https://hubdevcdn.arcgis.com/opendata-ui/assets":/(qaext|mapsqa)\.arcgis\.com/.test(e)?s="https://hubqacdn.arcgis.com/opendata-ui/assets":/(www|maps)\.arcgis\.com/.test(e)?s="https://hubcdn.arcgis.com/opendata-ui/assets":s=`${e}${a}`;let o=t.startsWith("/")?"":"/";return[s,t].join(o)}function R(t){let{host:r,path:e,query:s}=t,o=r.endsWith("/")?r:`${r}/`,n=new URL(e,o);return n.search=f(s),n.toString()}function f(t={}){let r=Object.keys(t).filter(e=>t[e]!==void 0).reduce((e,s)=>(e[s]=t[s],e),{});return new URLSearchParams(r).toString()}var u={devext:"https://hubdevcdn.arcgis.com",qaext:"https://hubqacdn.arcgis.com",www:"https://hubcdn.arcgis.com"};function q(t){if(t.isPortal)return`${i(t)}${a}`;{let r=t.portalHostname.split(".")[0];return`${u[r]||u.www}/opendata-ui/assets`}}function c(t){return`${i(t)}/sharing/rest`}function N(t){return t=t.toLowerCase(),t.includes("//")&&(t=t.split("//")[1]),t}function p(t){let r;return t.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="https://hubqa.arcgis.com":t.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="https://hubdev.arcgis.com":t.match(/(www|\.maps)\.arcgis.com/)&&(r="https://hub.arcgis.com"),r}function K(t){if(t.isPortal)throw new Error("Hub Url is not available in ArcGIS Enterprise");return p(t.portalHostname)}var V=(t,r,e)=>{let{id:s,access:o}=t,n=`${c(r)}/content/items/${s}`,l=new URLSearchParams({f:"json"});return o!=="public"&&e&&l.append("token",e),`${n}?${l.toString()}`};var m=/\/(map|feature)server/i,Q=t=>m.test(t);export{R as a,i as b,_ as c,q as d,c as e,N as f,p as g,K as h,S as i,V as j,E as k,Q as l};
3
+ v1.0.5 */
4
+ import{a as h}from"./AQZ3QIKE.js";function i(t){if(typeof t=="string")return t.replace(/\/sharing\/rest\/?$/,"");if(typeof t=="object"){let e=t.portalSelf||t,{portalHostname:s,urlKey:o,customBaseUrl:n}=e;if(s||o&&n)return e.isPortal?`https://${e.portalHostname}`:`https://${e.urlKey}.${e.customBaseUrl}`}return i(h(t))}function _(t){let r="enterprise";return t.includes("arcgis.com")&&(r="production"),(t.includes("qaext.arcgis.com")||t.includes("mapsqa.arcgis.com"))&&(r="qaext"),(t.includes("devext.arcgis.com")||t.includes("mapsdev.arcgis.com"))&&(r="devext"),r}function S(t,r){return`${i(r)}/home/item.html?id=${t}`}var a="/apps/sites";function E(t,r){let e=i(r),s;/(devext|mapsdevext)\.arcgis\.com/.test(e)?s="https://hubdevcdn.arcgis.com/opendata-ui/assets":/(qaext|mapsqa)\.arcgis\.com/.test(e)?s="https://hubqacdn.arcgis.com/opendata-ui/assets":/(www|maps)\.arcgis\.com/.test(e)?s="https://hubcdn.arcgis.com/opendata-ui/assets":s=`${e}${a}`;let o=t.startsWith("/")?"":"/";return[s,t].join(o)}function R(t){let{host:r,path:e,query:s}=t,o=r.endsWith("/")?r:`${r}/`,n=new URL(e,o);return n.search=f(s),n.toString()}function f(t={}){let r=Object.keys(t).filter(e=>t[e]!==void 0).reduce((e,s)=>(e[s]=t[s],e),{});return new URLSearchParams(r).toString()}var u={devext:"https://hubdevcdn.arcgis.com",qaext:"https://hubqacdn.arcgis.com",www:"https://hubcdn.arcgis.com"};function q(t){if(t.isPortal)return`${i(t)}${a}`;{let r=t.portalHostname.split(".")[0];return`${u[r]||u.www}/opendata-ui/assets`}}function c(t){return`${i(t)}/sharing/rest`}function N(t){return t=t.toLowerCase(),t.includes("//")&&(t=t.split("//")[1]),t}function p(t){let r;return t.match(/(qaext|\.mapsqa)\.arcgis.com/)?r="https://hubqa.arcgis.com":t.match(/(devext|\.mapsdevext)\.arcgis.com/)?r="https://hubdev.arcgis.com":t.match(/(www|\.maps)\.arcgis.com/)&&(r="https://hub.arcgis.com"),r}function K(t){if(t.isPortal)throw new Error("Hub Url is not available in ArcGIS Enterprise");return p(t.portalHostname)}var V=(t,r,e)=>{let{id:s,access:o}=t,n=`${c(r)}/content/items/${s}`,l=new URLSearchParams({f:"json"});return o!=="public"&&e&&l.append("token",e),`${n}?${l.toString()}`};var m=/\/(map|feature)server/i,Q=t=>m.test(t);export{R as a,i as b,_ as c,q as d,c as e,N as f,p as g,K as h,S as i,V as j,E as k,Q as l};
@@ -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.4 */
4
- import{e as o}from"./RNVECRCO.js";import"./AK2IOGVT.js";import"./J2SERNA3.js";import{a as n,c as t,d as r,e as i}from"./DVIQ73JS.js";import"./4RUO65YZ.js";var c=":host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:0.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:0.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:0.5rem 0.75rem 0.5rem 0.75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(even){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:0.5em 0.7em;font-weight:400}",l=c,h={content:"instant-apps-keyboard-shortcuts__content"},d=class{constructor(s){n(this,s),this.messages=void 0,this.view=void 0}render(){let s=this?.view?.type==="2d"||!this?.view?this._getMapViewCommands():this._getSceneViewCommands(),a=this._isMacLike()?"Option":"Alt";return t(r,{key:"84f9106dc025e1e2f72b3877c07f4f518f114451"},t("calcite-block",{key:"25201b23d1d74d25678b324db2d9ba8a19b65fe1",open:!0,class:h.content,heading:this?.messages?.generalShortcuts?.label},t("table",{key:"3eda56857013107bb19470f47b12c7a2296c6c51"},this.renderTableHeader(),t("tr",{key:"432311f662920cdc42f15f5d70b3ef9b93844cd0"},t("td",{key:"389c393270a40a0e9c7e0976d67a29154aa7b082"},`${a} + M`),t("td",{key:"e375dc8f8d69e75e20db9387d41dc2bd80862e06"},this?.messages?.generalShortcuts?.title))),t("calcite-label",{key:"5e770d6232fba18fb9a8bf64eadd713a417ec465"},this?.messages?.generalShortcuts?.title),t("table",{key:"6a16dbd6d987507dc024da5248ee3a4c5591fc7f"},this.renderTableHeader(),s.map(e=>t("tr",null,t("td",null,e.alias),t("td",null,e.title))))))}componentDidLoad(){o(this)}renderTableHeader(){return this?.messages?t("tr",null,t("th",null,this?.messages?.generalShortcuts.shortcut),t("th",null,this?.messages?.generalShortcuts.action)):null}_getMapViewCommands(){let s=this.view?.type==="2d"&&this.view.constraints.rotationEnabled,a=this?.messages?[{alias:this?.messages.mapShortcuts.arrowKeys,title:this?.messages.mapShortcuts.nudge,show:!0},{alias:"N",title:this?.messages.mapShortcuts.N,show:s},{alias:"A",title:this?.messages.mapShortcuts.A,show:s},{alias:"D",title:this?.messages.mapShortcuts.D,show:s},{alias:"+",title:this?.messages.mapShortcuts.plus,show:!0},{alias:"-",title:this?.messages.mapShortcuts.minus,show:!0}]:[];return this?.messages?a?.filter(e=>e.show):[]}_getSceneViewCommands(){let s=this.view?.type==="3d"&&this.view.viewingMode==="global",a=this?.messages?[{alias:this?.messages.mapShortcuts.arrowKeys,title:this?.messages.mapShortcuts.nudge,show:!!s},{alias:"P",title:this?.messages.sceneShortcuts.P,show:!0},{alias:"N",title:this?.messages.sceneShortcuts.N,show:!0},{alias:"W",title:this?.messages.sceneShortcuts.W,show:!0},{alias:"A",title:this?.messages.sceneShortcuts.A,show:!0},{alias:"D",title:this?.messages.sceneShortcuts.D,show:!0},{alias:"S",title:this?.messages.sceneShortcuts.S,show:!0},{alias:"J",title:this?.messages.sceneShortcuts.globalCommands.J,show:!!s},{alias:"U",title:this?.messages.sceneShortcuts.globalCommands.U,show:!!s}]:[];return this?.messages?a?.filter(e=>e.show):[]}_isMacLike(){return/(Mac)/iu.test(navigator.platform)}get el(){return i(this)}};d.style=l;export{d as instant_apps_keyboard_shortcuts};
3
+ v1.0.5 */
4
+ import{e as o}from"./25JM7WUJ.js";import"./QP26HSVE.js";import"./H3FM5UM6.js";import{a as n,c as t,d as r,e as i}from"./ML3FDA7I.js";import"./UITEOOYI.js";var c=":host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:0.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:0.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:0.5rem 0.75rem 0.5rem 0.75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(even){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:0.5em 0.7em;font-weight:400}",l=c,h={content:"instant-apps-keyboard-shortcuts__content"},d=class{constructor(s){n(this,s),this.messages=void 0,this.view=void 0}render(){let s=this?.view?.type==="2d"||!this?.view?this._getMapViewCommands():this._getSceneViewCommands(),a=this._isMacLike()?"Option":"Alt";return t(r,{key:"84f9106dc025e1e2f72b3877c07f4f518f114451"},t("calcite-block",{key:"25201b23d1d74d25678b324db2d9ba8a19b65fe1",open:!0,class:h.content,heading:this?.messages?.generalShortcuts?.label},t("table",{key:"3eda56857013107bb19470f47b12c7a2296c6c51"},this.renderTableHeader(),t("tr",{key:"432311f662920cdc42f15f5d70b3ef9b93844cd0"},t("td",{key:"389c393270a40a0e9c7e0976d67a29154aa7b082"},`${a} + M`),t("td",{key:"e375dc8f8d69e75e20db9387d41dc2bd80862e06"},this?.messages?.generalShortcuts?.title))),t("calcite-label",{key:"5e770d6232fba18fb9a8bf64eadd713a417ec465"},this?.messages?.generalShortcuts?.title),t("table",{key:"6a16dbd6d987507dc024da5248ee3a4c5591fc7f"},this.renderTableHeader(),s.map(e=>t("tr",null,t("td",null,e.alias),t("td",null,e.title))))))}componentDidLoad(){o(this)}renderTableHeader(){return this?.messages?t("tr",null,t("th",null,this?.messages?.generalShortcuts.shortcut),t("th",null,this?.messages?.generalShortcuts.action)):null}_getMapViewCommands(){let s=this.view?.type==="2d"&&this.view.constraints.rotationEnabled,a=this?.messages?[{alias:this?.messages.mapShortcuts.arrowKeys,title:this?.messages.mapShortcuts.nudge,show:!0},{alias:"N",title:this?.messages.mapShortcuts.N,show:s},{alias:"A",title:this?.messages.mapShortcuts.A,show:s},{alias:"D",title:this?.messages.mapShortcuts.D,show:s},{alias:"+",title:this?.messages.mapShortcuts.plus,show:!0},{alias:"-",title:this?.messages.mapShortcuts.minus,show:!0}]:[];return this?.messages?a?.filter(e=>e.show):[]}_getSceneViewCommands(){let s=this.view?.type==="3d"&&this.view.viewingMode==="global",a=this?.messages?[{alias:this?.messages.mapShortcuts.arrowKeys,title:this?.messages.mapShortcuts.nudge,show:!!s},{alias:"P",title:this?.messages.sceneShortcuts.P,show:!0},{alias:"N",title:this?.messages.sceneShortcuts.N,show:!0},{alias:"W",title:this?.messages.sceneShortcuts.W,show:!0},{alias:"A",title:this?.messages.sceneShortcuts.A,show:!0},{alias:"D",title:this?.messages.sceneShortcuts.D,show:!0},{alias:"S",title:this?.messages.sceneShortcuts.S,show:!0},{alias:"J",title:this?.messages.sceneShortcuts.globalCommands.J,show:!!s},{alias:"U",title:this?.messages.sceneShortcuts.globalCommands.U,show:!!s}]:[];return this?.messages?a?.filter(e=>e.show):[]}_isMacLike(){return/(Mac)/iu.test(navigator.platform)}get el(){return i(this)}};d.style=l;export{d as instant_apps_keyboard_shortcuts};
@@ -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.4 */
4
- import{a as S}from"./NZJDAUCM.js";import{a as d}from"./GPO4L446.js";import{a as U,b as x}from"./UD6VCHUK.js";import{d as j,g as L,h as C,i as N}from"./MICSEU5B.js";import{b as f,c as y}from"./7XD5FYQH.js";import{m as v,n as _}from"./2N3SSEWE.js";import{f as M}from"./JSML77IB.js";import"./5FTGQPO5.js";import"./PMRPPUOG.js";import"./3KRHILOK.js";import"./EUZPXNNK.js";import"./T2MYK67I.js";import"./2MCXJEIU.js";import{a as O}from"./GOMTEPFA.js";import"./X6LWFUFK.js";import"./NNED4X6O.js";import"./R2IVNBNU.js";import{s as I}from"./7W5RZY7N.js";import"./7M4VGKUT.js";import"./XZRHSLHF.js";import"./JYVM54WT.js";import"./2UH456LC.js";import"./QPJLKOGU.js";import"./4RUO65YZ.js";var $="Discussion",P={name:"",tags:[],typeKeywords:["Hub Discussion"],permissions:[],catalogs:[],schemaVersion:1,isDiscussable:!0},K={item:{type:$,title:"",description:"",snippet:"",tags:[],typeKeywords:["Hub Discussion"],properties:{slug:"",schemaVersion:1}},data:{catalogs:[],prompt:""}};function h(t){return t.httpMethod="POST",d("/settings",t)}function A(t){return t.httpMethod="PATCH",d(`/settings/${t.id}`,t)}function V(t){return t.httpMethod="DELETE",d(`/settings/${t.id}`,t)}var F={discussions:{allowedChannelIds:null,allowedLocations:null}},w={discussion:{type:M.CONTENT,settings:Object.assign({},F)},site:null,project:null,initiative:null,initiativeTemplate:null,page:null,content:null,organization:null,org:null,group:null,template:null,survey:null,event:null,user:null,channel:null};function T(t){if(!w[t])throw new Error(`no default entity settings defined for ${t}`);return{type:w[t].type,settings:Object.assign({},w[t].settings)}}function E(){let t=U();return t.push({entityKey:"prompt",storeKey:"data.prompt"}),t.push({entityKey:"location",storeKey:"item.properties.location"}),t}function b(t,e,i){let o;return i.authentication&&(o=i.authentication.token),e=x(t.item,e),e.thumbnailUrl=v(t.item,i,o),e}async function dt(t,e){var i,o;let s=Object.assign(Object.assign({},P),t);s.slug||(s.slug=j(s.name,s.orgUrlKey)),await S(s,e),s.typeKeywords=f(s.typeKeywords,s.isDiscussable);let c=new y(E()),r=c.entityToStore(s,O(K));r=await C(r,e);let u=T("discussion"),a=Object.assign(Object.assign({},u.settings),{discussions:Object.assign(Object.assign({},u.settings.discussions),s.discussionSettings)});!((i=a.discussions.allowedChannelIds)===null||i===void 0)&&i.length||(a.discussions.allowedChannelIds=null),!((o=a.discussions.allowedLocations)===null||o===void 0)&&o.length||(a.discussions.allowedLocations=null),r.entitySettings=await h(Object.assign({data:{id:r.item.id,type:u.type,settings:a}},e));let n=c.storeToEntity(r,{});return n=b(r,n,e),n}async function gt(t,e){var i,o,s;await S(t,e),t.typeKeywords=f(t.typeKeywords,t.isDiscussable);let c=await L(t.id,e),r=new y(E()),u=r.entityToStore(t,c),a=await N(u,e),n=r.storeToEntity(a,t);n=b(c,n,e);let g;try{g=((i=n.location.geometries)===null||i===void 0?void 0:i.map(m=>_(m)))||null}catch(m){g=null,console.warn("Esri JSON conversion failed",m)}let p=T("discussion"),l=Object.assign(Object.assign({},p.settings),{discussions:Object.assign(Object.assign(Object.assign({},p.settings.discussions),n.discussionSettings),{allowedLocations:g})});!((o=l.discussions.allowedChannelIds)===null||o===void 0)&&o.length||(l.discussions.allowedChannelIds=null),!((s=l.discussions.allowedLocations)===null||s===void 0)&&s.length||(l.discussions.allowedLocations=null);let D=n.entitySettingsId?await A(Object.assign({id:n.entitySettingsId,data:{settings:l}},e)):await h(Object.assign({data:{id:n.id,type:p.type,settings:l}},e));return n.entitySettingsId=D.id,n.discussionSettings=D.settings.discussions,n}async function pt(t,e){let i=Object.assign(Object.assign({},e),{id:t});try{await V(Object.assign({id:t},e))}catch{}await I(i)}export{dt as createDiscussion,pt as deleteDiscussion,gt as updateDiscussion};
3
+ v1.0.5 */
4
+ import{a as S}from"./22F7LFMG.js";import{a as d}from"./ZEPG4DE3.js";import{a as U,b as x}from"./64ETTMNQ.js";import{d as j,g as L,h as C,i as N}from"./RIQFARZP.js";import{b as f,c as y}from"./TVGUICDI.js";import{m as v,n as _}from"./GKBVNMEW.js";import{f as M}from"./43R5NRNV.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import"./2VXYY4NW.js";import"./65NNPWV7.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import{a as O}from"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import{s as I}from"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import"./UITEOOYI.js";var $="Discussion",P={name:"",tags:[],typeKeywords:["Hub Discussion"],permissions:[],catalogs:[],schemaVersion:1,isDiscussable:!0},K={item:{type:$,title:"",description:"",snippet:"",tags:[],typeKeywords:["Hub Discussion"],properties:{slug:"",schemaVersion:1}},data:{catalogs:[],prompt:""}};function h(t){return t.httpMethod="POST",d("/settings",t)}function A(t){return t.httpMethod="PATCH",d(`/settings/${t.id}`,t)}function V(t){return t.httpMethod="DELETE",d(`/settings/${t.id}`,t)}var F={discussions:{allowedChannelIds:null,allowedLocations:null}},w={discussion:{type:M.CONTENT,settings:Object.assign({},F)},site:null,project:null,initiative:null,initiativeTemplate:null,page:null,content:null,organization:null,org:null,group:null,template:null,survey:null,event:null,user:null,channel:null};function T(t){if(!w[t])throw new Error(`no default entity settings defined for ${t}`);return{type:w[t].type,settings:Object.assign({},w[t].settings)}}function E(){let t=U();return t.push({entityKey:"prompt",storeKey:"data.prompt"}),t.push({entityKey:"location",storeKey:"item.properties.location"}),t}function b(t,e,i){let o;return i.authentication&&(o=i.authentication.token),e=x(t.item,e),e.thumbnailUrl=v(t.item,i,o),e}async function dt(t,e){var i,o;let s=Object.assign(Object.assign({},P),t);s.slug||(s.slug=j(s.name,s.orgUrlKey)),await S(s,e),s.typeKeywords=f(s.typeKeywords,s.isDiscussable);let c=new y(E()),r=c.entityToStore(s,O(K));r=await C(r,e);let u=T("discussion"),a=Object.assign(Object.assign({},u.settings),{discussions:Object.assign(Object.assign({},u.settings.discussions),s.discussionSettings)});!((i=a.discussions.allowedChannelIds)===null||i===void 0)&&i.length||(a.discussions.allowedChannelIds=null),!((o=a.discussions.allowedLocations)===null||o===void 0)&&o.length||(a.discussions.allowedLocations=null),r.entitySettings=await h(Object.assign({data:{id:r.item.id,type:u.type,settings:a}},e));let n=c.storeToEntity(r,{});return n=b(r,n,e),n}async function gt(t,e){var i,o,s;await S(t,e),t.typeKeywords=f(t.typeKeywords,t.isDiscussable);let c=await L(t.id,e),r=new y(E()),u=r.entityToStore(t,c),a=await N(u,e),n=r.storeToEntity(a,t);n=b(c,n,e);let g;try{g=((i=n.location.geometries)===null||i===void 0?void 0:i.map(m=>_(m)))||null}catch(m){g=null,console.warn("Esri JSON conversion failed",m)}let p=T("discussion"),l=Object.assign(Object.assign({},p.settings),{discussions:Object.assign(Object.assign(Object.assign({},p.settings.discussions),n.discussionSettings),{allowedLocations:g})});!((o=l.discussions.allowedChannelIds)===null||o===void 0)&&o.length||(l.discussions.allowedChannelIds=null),!((s=l.discussions.allowedLocations)===null||s===void 0)&&s.length||(l.discussions.allowedLocations=null);let D=n.entitySettingsId?await A(Object.assign({id:n.entitySettingsId,data:{settings:l}},e)):await h(Object.assign({data:{id:n.id,type:p.type,settings:l}},e));return n.entitySettingsId=D.id,n.discussionSettings=D.settings.discussions,n}async function pt(t,e){let i=Object.assign(Object.assign({},e),{id:t});try{await V(Object.assign({id:t},e))}catch{}await I(i)}export{dt as createDiscussion,pt as deleteDiscussion,gt as updateDiscussion};
@@ -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.4 */
4
- import"./4RUO65YZ.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
3
+ v1.0.5 */
4
+ import"./UITEOOYI.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t 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.4 */
4
- import{a as S}from"./5FTGQPO5.js";import{b as d,c as g,i as y,j as N}from"./T2MYK67I.js";import{a as I}from"./GOMTEPFA.js";import{a as M,e as E,f as T,g as F}from"./NNED4X6O.js";import{a as $,b as R}from"./7W5RZY7N.js";import{d as l,e as p,f as c}from"./7M4VGKUT.js";import{a as A}from"./XZRHSLHF.js";import{a as x}from"./2UH456LC.js";var G=new RegExp(/.+(?:map|feature|image)server/i);function b(t){let e=t.match(G);return e?e[0]:J(t)}function J(t){let e=t.split("?")[0];return c(e)}function xe(t){return l(c(t.url),t)}function Ue(t,e){let r=`${c(t).replace("/rest/services","/rest/admin/services")}/updateDefinition`;return e.params=Object.assign({updateDefinition:{}},e.params),e.updateDefinition&&(e.params.updateDefinition=e.updateDefinition),l(r,e)}function Re(t,e){let r=`${c(t).replace("/rest/services","/rest/admin/services")}/addToDefinition`;return e.params=Object.assign({addToDefinition:{}},e.params),e.layers&&e.layers.length>0&&(e.params.addToDefinition.layers=e.layers),e.tables&&e.tables.length>0&&(e.params.addToDefinition.tables=e.tables),l(r,e)}function Ee(t){let e=`${c(t.url)}/applyEdits`,r=p(t,["adds","updates","deletes","useGlobalIds","attachments","gdbVersion","returnEditMoment","rollbackOnFailure","trueCurveClient"],{params:Object.assign({},t.params)});return l(e,r)}function Le(t){return R(t).then(e=>{let r=Object.assign(Object.assign({},t),{rawResponse:!1}),n=`${$(t)}/content/users/${e}`,a=!r.folderId||r.folderId==="/"?"":"/"+r.folderId,o=`${n}${a}/createService`;return r.params=Object.assign({createParameters:r.item,outputType:"featureService"},r.params),l(o,r)})}function at(t){let e=p(t,["where","objectIds","relationParam","time","distance","units","outFields","geometry","geometryType","spatialRel","returnGeometry","maxAllowableOffset","geometryPrecision","inSR","outSR","gdbVersion","returnDistinctValues","returnIdsOnly","returnCountOnly","returnExtentOnly","orderByFields","groupByFieldsForStatistics","outStatistics","returnZ","returnM","multipatchOption","resultOffset","resultRecordCount","quantizationParameters","returnCentroid","resultType","historicMoment","returnTrueCurves","sqlFormat","returnExceededLimitFeatures","f"],{httpMethod:"GET",params:Object.assign({where:"1=1",outFields:"*"},t.params)});return l(`${c(t.url)}/query`,e)}function st(t){let e=p(t,["objectIds","relationshipId","definitionExpression","outFields"],{httpMethod:"GET",params:Object.assign({definitionExpression:"1=1",outFields:"*",relationshipId:0},t.params)});return l(`${c(t.url)}/queryRelatedRecords`,e)}function L(t,e,r={},n=!1){let a=e.split("."),o=t,i=a.length-1;a.forEach((s,u)=>{!o.hasOwnProperty(s)||o[s]==null?u===i?o[s]=r:o[s]={}:u===i&&(typeof o[s]=="object"&&!Array.isArray(o[s])?n?o[s]=I(r):o[s]=Object.assign(o[s],I(r)):o[s]=r),o=o[s]})}function Lt(t,e,r,n=!1){Array.isArray(t)&&(t=t.join(".")),L(r,t,e,n)}var Z=function(e,r,n,a){var o=(a[0]-n[0])*(e[1]-n[1])-(a[1]-n[1])*(e[0]-n[0]),i=(r[0]-e[0])*(e[1]-n[1])-(r[1]-e[1])*(e[0]-n[0]),s=(a[1]-n[1])*(r[0]-e[0])-(a[0]-n[0])*(r[1]-e[1]);if(s!==0){var u=o/s,f=i/s;if(u>=0&&u<=1&&f>=0&&f<=1)return!0}return!1},Q=function(e,r){for(var n=!1,a=-1,o=e.length,i=o-1;++a<o;i=a)(e[a][1]<=r[1]&&r[1]<e[i][1]||e[i][1]<=r[1]&&r[1]<e[a][1])&&r[0]<(e[i][0]-e[a][0])*(r[1]-e[a][1])/(e[i][1]-e[a][1])+e[a][0]&&(n=!n);return n},K=function(e,r){for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0},j=function(e,r){for(var n=0;n<e.length-1;n++)for(var a=0;a<r.length-1;a++)if(Z(e[n],e[n+1],r[a],r[a+1]))return!0;return!1},U=function(e){return K(e[0],e[e.length-1])||e.push(e[0]),e},D=function(e){var r=0,n=0,a=e.length,o=e[n],i;for(n;n<a-1;n++)i=e[n+1],r+=(i[0]-o[0])*(i[1]+o[1]),o=i;return r>=0},z=function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r},Y=function(e,r){var n=j(e,r),a=Q(e,r[0]);return!!(!n&&a)},X=function(e){for(var r=[],n=[],a,o,i,s=0;s<e.length;s++){var u=U(e[s].slice(0));if(!(u.length<4))if(D(u)){var f=[u.slice().reverse()];r.push(f)}else n.push(u.slice().reverse())}for(var m=[];n.length;){i=n.pop();var k=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],Y(o,i)){r[a].push(i),k=!0;break}k||m.push(i)}for(;m.length;){i=m.pop();var w=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],j(o,i)){r[a].push(i),w=!0;break}w||r.push([i.reverse()])}return r.length===1?{type:"Polygon",coordinates:r[0]}:{type:"MultiPolygon",coordinates:r}},q=function(e,r){for(var n=r?[r,"OBJECTID","FID"]:["OBJECTID","FID"],a=0;a<n.length;a++){var o=n[a];if(o in e&&(typeof e[o]=="string"||typeof e[o]=="number"))return e[o]}throw Error("No valid id attribute found")},zt=function t(e,r){var n={};if(e.features){n.type="FeatureCollection",n.features=[];for(var a=0;a<e.features.length;a++)n.features.push(t(e.features[a],r))}if(typeof e.x=="number"&&typeof e.y=="number"&&(n.type="Point",n.coordinates=[e.x,e.y],typeof e.z=="number"&&n.coordinates.push(e.z)),e.points&&(n.type="MultiPoint",n.coordinates=e.points.slice(0)),e.paths&&(e.paths.length===1?(n.type="LineString",n.coordinates=e.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=e.paths.slice(0))),e.rings&&(n=X(e.rings.slice(0))),typeof e.xmin=="number"&&typeof e.ymin=="number"&&typeof e.xmax=="number"&&typeof e.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax]]]),(e.geometry||e.attributes)&&(n.type="Feature",n.geometry=e.geometry?t(e.geometry):null,n.properties=e.attributes?z(e.attributes):null,e.attributes))try{n.id=q(e.attributes,r)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),e.spatialReference&&e.spatialReference.wkid&&e.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(e.spatialReference)),n},B=function(e){var r=[],n=e.slice(0),a=U(n.shift().slice(0));if(a.length>=4){D(a)||a.reverse(),r.push(a);for(var o=0;o<n.length;o++){var i=U(n[o].slice(0));i.length>=4&&(D(i)&&i.reverse(),r.push(i))}}return r},ee=function(e){for(var r=[],n=0;n<e.length;n++)for(var a=B(e[n]),o=a.length-1;o>=0;o--){var i=a[o].slice(0);r.push(i)}return r},O=function t(e,r){r=r||"OBJECTID";var n={wkid:4326},a={},o;switch(e.type){case"Point":a.x=e.coordinates[0],a.y=e.coordinates[1],e.coordinates[2]!=null&&(a.z=e.coordinates[2]),a.spatialReference=n;break;case"MultiPoint":a.points=e.coordinates.slice(0),e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"LineString":a.paths=[e.coordinates.slice(0)],e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiLineString":a.paths=e.coordinates.slice(0),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Polygon":a.rings=B(e.coordinates.slice(0)),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiPolygon":a.rings=ee(e.coordinates.slice(0)),e.coordinates[0][0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Feature":e.geometry&&(a.geometry=t(e.geometry,r)),a.attributes=e.properties?z(e.properties):{},e.id&&(a.attributes[r]=e.id);break;case"FeatureCollection":for(a=[],o=0;o<e.features.length;o++)a.push(t(e.features[o],r));break;case"GeometryCollection":for(a=[],o=0;o<e.geometries.length;o++)a.push(t(e.geometries[o],r));break}return a};function h(t,e){return t.indexOf(e)!==-1}function Ht(t){return typeof t=="string"?t.trim().toLowerCase().replace(/ +/g,"-").replace(/[^\w-]/g,"").replace(/-+/g,"-"):t}function _t(t,e,r){if(!t||!t.thumbnail)return null;let{token:n,width:a}=r||{};!n&&typeof r=="string"&&(n=r);let o=N(t,e,n),[i,s]=o.split("?"),u=new URLSearchParams(s);u.delete("f"),a&&u.append("w",a+"");let f=u.toString(),m=`${i}/info/${t.thumbnail}`;return f?`${m}?${f}`:m}var H;(function(t){t.Continual="continual",t.Daily="daily",t.Weekly="weekly",t.Fortnightly="fortnightly",t.Monthly="monthly",t.Quarterly="quarterly",t.Biannually="biannually",t.Annually="annually",t.AsNeeded="as-needed",t.Irregular="irregular",t.NotPlanned="not-planned",t.Unknown="unknown",t.Semimonthly="semimonthly"})(H||(H={}));function C(t,e=[]){return t==="Site Application"||t==="Hub Site Application"||t==="Web Mapping Application"&&e.includes("hubSite")}function Qt(t={}){let e=t.type,r=t.typeKeywords||[];return C(t.type,r)&&(e="Hub Site Application"),(t.type==="Site Page"||t.type==="Web Mapping Application"&&h(r,"hubPage"))&&(e="Hub Page"),t.type==="Hub Initiative"&&h(r,"hubInitiativeTemplate")&&(e="Hub Initiative Template"),t.type==="Web Mapping Application"&&h(r,"hubSolutionTemplate")&&(e="Solution"),e}var v={devext:"dev",qaext:"qa",production:""};var te=t=>E(t)?Object.assign(Object.assign({},M(t)),{type:"extent"}):void 0,cr=t=>{let{properties:e,extent:r}=t,n=e?.location;if(n)return n;if(e?.boundary==="none")return{type:"none"};let a=te(r);if(a)return{type:C(t.type)?"org":"custom",extent:r,geometries:[a],spatialReference:a.spatialReference};try{let o=F(r),i={wkid:4326},s=Object.assign(Object.assign({type:"polygon"},O(r)),{spatialReference:T(o)?i:oe(t)||i});return{type:"custom",extent:o,geometries:[s],spatialReference:s.spatialReference}}catch{return{type:"none"}}};var ur=(t,e,r)=>{let n=ne(t,e,r)||ae(t,e,r),a=A(t);if(!n){let i=["app","dataset","document","map","template","project","initiative","discussion","event"],s="/content";a==="feedback"?s=e?"/feedback/surveys":"":re(t,r)?s="/pages":i.indexOf(a)>-1&&(s=`/${a}s`),n=e?`${s}/${e}`:`${s}`}return!e&&!["initiative","project"].includes(a)&&(n=""),n},re=(t,e=[])=>["Hub Page","Site Page"].includes(t)||e.includes("hubPage"),ne=(t,e,r)=>{let n;return t==="Solution"?r?.indexOf("Deployed")>-1?n=`/content/${e}/about`:n=`/templates/${e}/about`:t==="Web Mapping Application"&&r?.indexOf("hubSolutionTemplate")>-1&&(n=`/templates/${e}/about`),n},ae=(t,e,r)=>{if(t==="Hub Initiative"&&r?.indexOf("hubInitiativeTemplate")>-1||t==="Hub Initiative Template")return`/initiatives/templates/${e}/about`};var W;(function(t){t.Year="year",t.Month="month",t.Day="day",t.Time="time"})(W||(W={}));var oe=t=>{let e=t.spatialReference;if(!e||typeof e=="object")return e;let r=e+"",n=parseInt(r,10);return isNaN(n)?null:{wkid:n}},pr=(t,e,r)=>{let n=ie(e);return n&&n.map(a=>({name:a.orName,url:se(a,t,r),isDataSource:V(a,t)}))},ie=t=>{let e=[];return P(x(t,"metadata.distInfo")||[]).forEach(r=>{P(r.distTranOps||[]).forEach(n=>{P(n.onLineSrc||[]).forEach(a=>{e.push(a)})})}),e.length?e:null},P=t=>Array.isArray(t)?t:[t],V=(t,e)=>{let r=e.url&&b(e.url);return r&&t.linkage&&t.linkage.includes(r)},se=(t,e,r)=>{let n=t.linkage,a=x(r,"authentication.token");if(a&&V(t,e)){let o=new URL(t.linkage),i=new URLSearchParams(o.search);i.set("token",a),o.search=i.toString(),n=o.toString()}return n};var dr=(t,e)=>{let r;switch(le(t)){case"Dashboard":r=pe(t,e);break;case"Insights Workbook":r=me(t,e);break;case"Experience":r=ue(t,e);break;case"Web AppBuilder":r=de(t,e);break;case"Form":r=fe(t,e);break;case"StoryMap":r=ce(t,e);break;case"Urban Model":r=ge(t,e);break;default:r=y(t.id,e)}return r},le=t=>{let e=t.typeKeywords||[],r=t.type;return t.type==="StoryMap"||t.type==="Web Mapping Application"&&e.includes("Story Map")?r="StoryMap":t.type==="Insights Page"?r="Insights Page":t.type==="Insights Workbook"?r="Insights Workbook":t.type&&t.type.includes("Insights")?r="Insights":t.type==="Web Experience"||t.type==="Web Mapping Experience"&&e.includes("EXB Experience")?r="Experience":e.includes("Web AppBuilder")&&(r="Web AppBuilder"),r},ce=(t,e)=>{let r={devext:"storymapsdev",qaext:"storymapsqa",production:"storymaps"},n=d(e),a=g(n);return`${`https://${r[a]}.arcgis.com`}/stories/${t.id}/edit`},ue=(t,e)=>{let r=d(e),n=g(r);return`${`https://experience${v[n]}.arcgis.com`}/builder/?id=${t.id}`},pe=(t,e)=>{let r=d(e),n=`${r}/apps/opsdashboard/index.html#/${t.id}?mode=edit`;return t.typeKeywords&&t.typeKeywords.includes("ArcGIS Dashboards")&&(n=`${r}/apps/dashboards/${t.id}#mode=edit`),n},de=(t,e)=>`${d(e)}/apps/webappbuilder/index.html?id=${t.id}`,fe=(t,e)=>{let r=d(e),n=g(r),a=`https://survey123${v[n]}.arcgis.com`,o;return t.typeKeywords.includes("Survey123 Connect")?o=y(t.id,r):o=`${a}/surveys/${t.id}/design?portalUrl=${r}`,o},me=(t,e)=>{let r=d(e),n=g(r),a=`https://insights${v[n]}.arcgis.com`,o=y(t.id,r);return _(r)?o:`${a}/#/edit/${t.id}`},ge=(t,e)=>{let r=d(e),n=g(r),a=`https://urban${v[n]}.arcgis.com`,o=y(t.id,r);return _(r)?o:`${a}/?id=${t.id}`},_=t=>t.indexOf("arcgis.com")===-1;function fr(t,e){return`${ye(e)}/api/download/v1/items/${t}/schedule?token=${e.authentication.token}`}function ye(t){return S(t).replace(/\/api\/v3$/,"")}var mr=async(t,e)=>{let n=`${S(e)}/api/v3/jobs/item/${t}/forceUpdate`,a={method:"POST",headers:{"content-type":"application/json",authorization:e.authentication.token}};return(await fetch(n,a)).ok};export{Re as a,Ee as b,Le as c,b as d,xe as e,at as f,st as g,Ue as h,L as i,Lt as j,h as k,Ht as l,_t as m,zt as n,cr as o,ur as p,pr as q,dr as r,fr as s,mr as t,Qt as u};
3
+ v1.0.5 */
4
+ import{a as S}from"./IHQISHAM.js";import{b as d,c as g,i as y,j as N}from"./GFTGPFHL.js";import{a as I}from"./MK7N6OTA.js";import{a as M,e as E,f as T,g as F}from"./EEECQWVR.js";import{a as $,b as R}from"./AQZ3QIKE.js";import{d as l,e as p,f as c}from"./B2AAEHPJ.js";import{a as A}from"./WIVOL6CT.js";import{a as x}from"./6U4PV22I.js";var G=new RegExp(/.+(?:map|feature|image)server/i);function b(t){let e=t.match(G);return e?e[0]:J(t)}function J(t){let e=t.split("?")[0];return c(e)}function xe(t){return l(c(t.url),t)}function Ue(t,e){let r=`${c(t).replace("/rest/services","/rest/admin/services")}/updateDefinition`;return e.params=Object.assign({updateDefinition:{}},e.params),e.updateDefinition&&(e.params.updateDefinition=e.updateDefinition),l(r,e)}function Re(t,e){let r=`${c(t).replace("/rest/services","/rest/admin/services")}/addToDefinition`;return e.params=Object.assign({addToDefinition:{}},e.params),e.layers&&e.layers.length>0&&(e.params.addToDefinition.layers=e.layers),e.tables&&e.tables.length>0&&(e.params.addToDefinition.tables=e.tables),l(r,e)}function Ee(t){let e=`${c(t.url)}/applyEdits`,r=p(t,["adds","updates","deletes","useGlobalIds","attachments","gdbVersion","returnEditMoment","rollbackOnFailure","trueCurveClient"],{params:Object.assign({},t.params)});return l(e,r)}function Le(t){return R(t).then(e=>{let r=Object.assign(Object.assign({},t),{rawResponse:!1}),n=`${$(t)}/content/users/${e}`,a=!r.folderId||r.folderId==="/"?"":"/"+r.folderId,o=`${n}${a}/createService`;return r.params=Object.assign({createParameters:r.item,outputType:"featureService"},r.params),l(o,r)})}function at(t){let e=p(t,["where","objectIds","relationParam","time","distance","units","outFields","geometry","geometryType","spatialRel","returnGeometry","maxAllowableOffset","geometryPrecision","inSR","outSR","gdbVersion","returnDistinctValues","returnIdsOnly","returnCountOnly","returnExtentOnly","orderByFields","groupByFieldsForStatistics","outStatistics","returnZ","returnM","multipatchOption","resultOffset","resultRecordCount","quantizationParameters","returnCentroid","resultType","historicMoment","returnTrueCurves","sqlFormat","returnExceededLimitFeatures","f"],{httpMethod:"GET",params:Object.assign({where:"1=1",outFields:"*"},t.params)});return l(`${c(t.url)}/query`,e)}function st(t){let e=p(t,["objectIds","relationshipId","definitionExpression","outFields"],{httpMethod:"GET",params:Object.assign({definitionExpression:"1=1",outFields:"*",relationshipId:0},t.params)});return l(`${c(t.url)}/queryRelatedRecords`,e)}function L(t,e,r={},n=!1){let a=e.split("."),o=t,i=a.length-1;a.forEach((s,u)=>{!o.hasOwnProperty(s)||o[s]==null?u===i?o[s]=r:o[s]={}:u===i&&(typeof o[s]=="object"&&!Array.isArray(o[s])?n?o[s]=I(r):o[s]=Object.assign(o[s],I(r)):o[s]=r),o=o[s]})}function Lt(t,e,r,n=!1){Array.isArray(t)&&(t=t.join(".")),L(r,t,e,n)}var Z=function(e,r,n,a){var o=(a[0]-n[0])*(e[1]-n[1])-(a[1]-n[1])*(e[0]-n[0]),i=(r[0]-e[0])*(e[1]-n[1])-(r[1]-e[1])*(e[0]-n[0]),s=(a[1]-n[1])*(r[0]-e[0])-(a[0]-n[0])*(r[1]-e[1]);if(s!==0){var u=o/s,f=i/s;if(u>=0&&u<=1&&f>=0&&f<=1)return!0}return!1},Q=function(e,r){for(var n=!1,a=-1,o=e.length,i=o-1;++a<o;i=a)(e[a][1]<=r[1]&&r[1]<e[i][1]||e[i][1]<=r[1]&&r[1]<e[a][1])&&r[0]<(e[i][0]-e[a][0])*(r[1]-e[a][1])/(e[i][1]-e[a][1])+e[a][0]&&(n=!n);return n},K=function(e,r){for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0},j=function(e,r){for(var n=0;n<e.length-1;n++)for(var a=0;a<r.length-1;a++)if(Z(e[n],e[n+1],r[a],r[a+1]))return!0;return!1},U=function(e){return K(e[0],e[e.length-1])||e.push(e[0]),e},D=function(e){var r=0,n=0,a=e.length,o=e[n],i;for(n;n<a-1;n++)i=e[n+1],r+=(i[0]-o[0])*(i[1]+o[1]),o=i;return r>=0},z=function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r},Y=function(e,r){var n=j(e,r),a=Q(e,r[0]);return!!(!n&&a)},X=function(e){for(var r=[],n=[],a,o,i,s=0;s<e.length;s++){var u=U(e[s].slice(0));if(!(u.length<4))if(D(u)){var f=[u.slice().reverse()];r.push(f)}else n.push(u.slice().reverse())}for(var m=[];n.length;){i=n.pop();var k=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],Y(o,i)){r[a].push(i),k=!0;break}k||m.push(i)}for(;m.length;){i=m.pop();var w=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],j(o,i)){r[a].push(i),w=!0;break}w||r.push([i.reverse()])}return r.length===1?{type:"Polygon",coordinates:r[0]}:{type:"MultiPolygon",coordinates:r}},q=function(e,r){for(var n=r?[r,"OBJECTID","FID"]:["OBJECTID","FID"],a=0;a<n.length;a++){var o=n[a];if(o in e&&(typeof e[o]=="string"||typeof e[o]=="number"))return e[o]}throw Error("No valid id attribute found")},zt=function t(e,r){var n={};if(e.features){n.type="FeatureCollection",n.features=[];for(var a=0;a<e.features.length;a++)n.features.push(t(e.features[a],r))}if(typeof e.x=="number"&&typeof e.y=="number"&&(n.type="Point",n.coordinates=[e.x,e.y],typeof e.z=="number"&&n.coordinates.push(e.z)),e.points&&(n.type="MultiPoint",n.coordinates=e.points.slice(0)),e.paths&&(e.paths.length===1?(n.type="LineString",n.coordinates=e.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=e.paths.slice(0))),e.rings&&(n=X(e.rings.slice(0))),typeof e.xmin=="number"&&typeof e.ymin=="number"&&typeof e.xmax=="number"&&typeof e.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax]]]),(e.geometry||e.attributes)&&(n.type="Feature",n.geometry=e.geometry?t(e.geometry):null,n.properties=e.attributes?z(e.attributes):null,e.attributes))try{n.id=q(e.attributes,r)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),e.spatialReference&&e.spatialReference.wkid&&e.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(e.spatialReference)),n},B=function(e){var r=[],n=e.slice(0),a=U(n.shift().slice(0));if(a.length>=4){D(a)||a.reverse(),r.push(a);for(var o=0;o<n.length;o++){var i=U(n[o].slice(0));i.length>=4&&(D(i)&&i.reverse(),r.push(i))}}return r},ee=function(e){for(var r=[],n=0;n<e.length;n++)for(var a=B(e[n]),o=a.length-1;o>=0;o--){var i=a[o].slice(0);r.push(i)}return r},O=function t(e,r){r=r||"OBJECTID";var n={wkid:4326},a={},o;switch(e.type){case"Point":a.x=e.coordinates[0],a.y=e.coordinates[1],e.coordinates[2]!=null&&(a.z=e.coordinates[2]),a.spatialReference=n;break;case"MultiPoint":a.points=e.coordinates.slice(0),e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"LineString":a.paths=[e.coordinates.slice(0)],e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiLineString":a.paths=e.coordinates.slice(0),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Polygon":a.rings=B(e.coordinates.slice(0)),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiPolygon":a.rings=ee(e.coordinates.slice(0)),e.coordinates[0][0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Feature":e.geometry&&(a.geometry=t(e.geometry,r)),a.attributes=e.properties?z(e.properties):{},e.id&&(a.attributes[r]=e.id);break;case"FeatureCollection":for(a=[],o=0;o<e.features.length;o++)a.push(t(e.features[o],r));break;case"GeometryCollection":for(a=[],o=0;o<e.geometries.length;o++)a.push(t(e.geometries[o],r));break}return a};function h(t,e){return t.indexOf(e)!==-1}function Ht(t){return typeof t=="string"?t.trim().toLowerCase().replace(/ +/g,"-").replace(/[^\w-]/g,"").replace(/-+/g,"-"):t}function _t(t,e,r){if(!t||!t.thumbnail)return null;let{token:n,width:a}=r||{};!n&&typeof r=="string"&&(n=r);let o=N(t,e,n),[i,s]=o.split("?"),u=new URLSearchParams(s);u.delete("f"),a&&u.append("w",a+"");let f=u.toString(),m=`${i}/info/${t.thumbnail}`;return f?`${m}?${f}`:m}var H;(function(t){t.Continual="continual",t.Daily="daily",t.Weekly="weekly",t.Fortnightly="fortnightly",t.Monthly="monthly",t.Quarterly="quarterly",t.Biannually="biannually",t.Annually="annually",t.AsNeeded="as-needed",t.Irregular="irregular",t.NotPlanned="not-planned",t.Unknown="unknown",t.Semimonthly="semimonthly"})(H||(H={}));function C(t,e=[]){return t==="Site Application"||t==="Hub Site Application"||t==="Web Mapping Application"&&e.includes("hubSite")}function Qt(t={}){let e=t.type,r=t.typeKeywords||[];return C(t.type,r)&&(e="Hub Site Application"),(t.type==="Site Page"||t.type==="Web Mapping Application"&&h(r,"hubPage"))&&(e="Hub Page"),t.type==="Hub Initiative"&&h(r,"hubInitiativeTemplate")&&(e="Hub Initiative Template"),t.type==="Web Mapping Application"&&h(r,"hubSolutionTemplate")&&(e="Solution"),e}var v={devext:"dev",qaext:"qa",production:""};var te=t=>E(t)?Object.assign(Object.assign({},M(t)),{type:"extent"}):void 0,cr=t=>{let{properties:e,extent:r}=t,n=e?.location;if(n)return n;if(e?.boundary==="none")return{type:"none"};let a=te(r);if(a)return{type:C(t.type)?"org":"custom",extent:r,geometries:[a],spatialReference:a.spatialReference};try{let o=F(r),i={wkid:4326},s=Object.assign(Object.assign({type:"polygon"},O(r)),{spatialReference:T(o)?i:oe(t)||i});return{type:"custom",extent:o,geometries:[s],spatialReference:s.spatialReference}}catch{return{type:"none"}}};var ur=(t,e,r)=>{let n=ne(t,e,r)||ae(t,e,r),a=A(t);if(!n){let i=["app","dataset","document","map","template","project","initiative","discussion","event"],s="/content";a==="feedback"?s=e?"/feedback/surveys":"":re(t,r)?s="/pages":i.indexOf(a)>-1&&(s=`/${a}s`),n=e?`${s}/${e}`:`${s}`}return!e&&!["initiative","project"].includes(a)&&(n=""),n},re=(t,e=[])=>["Hub Page","Site Page"].includes(t)||e.includes("hubPage"),ne=(t,e,r)=>{let n;return t==="Solution"?r?.indexOf("Deployed")>-1?n=`/content/${e}/about`:n=`/templates/${e}/about`:t==="Web Mapping Application"&&r?.indexOf("hubSolutionTemplate")>-1&&(n=`/templates/${e}/about`),n},ae=(t,e,r)=>{if(t==="Hub Initiative"&&r?.indexOf("hubInitiativeTemplate")>-1||t==="Hub Initiative Template")return`/initiatives/templates/${e}/about`};var W;(function(t){t.Year="year",t.Month="month",t.Day="day",t.Time="time"})(W||(W={}));var oe=t=>{let e=t.spatialReference;if(!e||typeof e=="object")return e;let r=e+"",n=parseInt(r,10);return isNaN(n)?null:{wkid:n}},pr=(t,e,r)=>{let n=ie(e);return n&&n.map(a=>({name:a.orName,url:se(a,t,r),isDataSource:V(a,t)}))},ie=t=>{let e=[];return P(x(t,"metadata.distInfo")||[]).forEach(r=>{P(r.distTranOps||[]).forEach(n=>{P(n.onLineSrc||[]).forEach(a=>{e.push(a)})})}),e.length?e:null},P=t=>Array.isArray(t)?t:[t],V=(t,e)=>{let r=e.url&&b(e.url);return r&&t.linkage&&t.linkage.includes(r)},se=(t,e,r)=>{let n=t.linkage,a=x(r,"authentication.token");if(a&&V(t,e)){let o=new URL(t.linkage),i=new URLSearchParams(o.search);i.set("token",a),o.search=i.toString(),n=o.toString()}return n};var dr=(t,e)=>{let r;switch(le(t)){case"Dashboard":r=pe(t,e);break;case"Insights Workbook":r=me(t,e);break;case"Experience":r=ue(t,e);break;case"Web AppBuilder":r=de(t,e);break;case"Form":r=fe(t,e);break;case"StoryMap":r=ce(t,e);break;case"Urban Model":r=ge(t,e);break;default:r=y(t.id,e)}return r},le=t=>{let e=t.typeKeywords||[],r=t.type;return t.type==="StoryMap"||t.type==="Web Mapping Application"&&e.includes("Story Map")?r="StoryMap":t.type==="Insights Page"?r="Insights Page":t.type==="Insights Workbook"?r="Insights Workbook":t.type&&t.type.includes("Insights")?r="Insights":t.type==="Web Experience"||t.type==="Web Mapping Experience"&&e.includes("EXB Experience")?r="Experience":e.includes("Web AppBuilder")&&(r="Web AppBuilder"),r},ce=(t,e)=>{let r={devext:"storymapsdev",qaext:"storymapsqa",production:"storymaps"},n=d(e),a=g(n);return`${`https://${r[a]}.arcgis.com`}/stories/${t.id}/edit`},ue=(t,e)=>{let r=d(e),n=g(r);return`${`https://experience${v[n]}.arcgis.com`}/builder/?id=${t.id}`},pe=(t,e)=>{let r=d(e),n=`${r}/apps/opsdashboard/index.html#/${t.id}?mode=edit`;return t.typeKeywords&&t.typeKeywords.includes("ArcGIS Dashboards")&&(n=`${r}/apps/dashboards/${t.id}#mode=edit`),n},de=(t,e)=>`${d(e)}/apps/webappbuilder/index.html?id=${t.id}`,fe=(t,e)=>{let r=d(e),n=g(r),a=`https://survey123${v[n]}.arcgis.com`,o;return t.typeKeywords.includes("Survey123 Connect")?o=y(t.id,r):o=`${a}/surveys/${t.id}/design?portalUrl=${r}`,o},me=(t,e)=>{let r=d(e),n=g(r),a=`https://insights${v[n]}.arcgis.com`,o=y(t.id,r);return _(r)?o:`${a}/#/edit/${t.id}`},ge=(t,e)=>{let r=d(e),n=g(r),a=`https://urban${v[n]}.arcgis.com`,o=y(t.id,r);return _(r)?o:`${a}/?id=${t.id}`},_=t=>t.indexOf("arcgis.com")===-1;function fr(t,e){return`${ye(e)}/api/download/v1/items/${t}/schedule?token=${e.authentication.token}`}function ye(t){return S(t).replace(/\/api\/v3$/,"")}var mr=async(t,e)=>{let n=`${S(e)}/api/v3/jobs/item/${t}/forceUpdate`,a={method:"POST",headers:{"content-type":"application/json",authorization:e.authentication.token}};return(await fetch(n,a)).ok};export{Re as a,Ee as b,Le as c,b as d,xe as e,at as f,st as g,Ue as h,L as i,Lt as j,h as k,Ht as l,_t as m,zt as n,cr as o,ur as p,pr as q,dr as r,fr as s,mr as t,Qt as u};
@@ -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.4 */
4
- import"./4RUO65YZ.js";var o=async(e,r,t)=>({type:"Layout",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`}]}}]});export{o as buildUiSchema};
3
+ v1.0.5 */
4
+ import"./UITEOOYI.js";var o=async(e,r,t)=>({type:"Layout",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`}]}}]});export{o 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.4 */
3
+ v1.0.5 */
4
4
  var t="UserSession",o="isMobile",a="Auth";export{t as a,o as b,a as c};
@@ -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.4 */
4
- import{a as p,b as f,g as V,j as U,l as q,m as B,n as O,t as w,u as S,v as $,w as k}from"./I74ECT7N.js";import{a as E}from"./DC2E55EL.js";import"./EKX5RPAU.js";import{E as N,h as M,i as A}from"./AK2IOGVT.js";import{a as u,c as s,e as L,f as T,h as R}from"./DVIQ73JS.js";import"./4RUO65YZ.js";var X=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}",Y=X,D={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},ee=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption?.expanded}async componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){return s("div",{key:"cf9f8f643477fc66b5ab9d4f69faa3591664e1a0",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${D.service} ${D.groupLayer}`},s("instant-apps-interactive-legend-layer-element-caption",{key:"10339df7a9d65d87f20c6bf8f84f4bd578495085",ref:e=>this.layerCaption=e,class:$(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),s("div",{key:"c41488c758479a0c3820187641b27d97a7de824d",class:`${D.groupContent} ${this.expanded?"show":"hide"}`},s("slot",{key:"4778c2674ac10a464aa4cca6ec080dfbdca53afa",name:"content"})))}get el(){return L(this)}};ee.style=Y;var te=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}",ne=te,z={service:"esri-legend__service",groupLayerChild:"esri-legend__group-layer-child",layer:"esri-legend__layer"},ae=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){let e=this.activeLayerInfo.parent?` ${z.groupLayerChild}`:"";return s("div",{key:"aa39da1dd64aae1630988e2a1af8a2b7faea97d9",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${z.service}${e}`,tabIndex:0},s("instant-apps-interactive-legend-layer-element-caption",{key:"e7013faace5d61da9062c53c3336bddc3f87c1b4",ref:n=>{n&&(this.layerCaption=n)},legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:$(this.el)}),s("div",{key:"c54f12b6f0a1b1c17ff97c368fac17795e62e74a",id:`${this.activeLayerInfo?.layer?.id}-legend-layer`,class:`${z.layer}${this.expanded?" show":" hide"}`},s("slot",{key:"af29568610f22a76e2d9792c178b0b220cc0bb5d",name:"content"})))}get el(){return L(this)}};ae.style=ne;var ie=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}",se=ie,v={layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerTable:"esri-legend__layer-table",nestedUniqueSymbol:"instant-apps-interactive-legend__nested-unique-symbol",nonInteractive:"instant-apps-interactive-legend__non-interactive"},le=class{constructor(e){u(this,e),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText="",this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){let e=this.isChild?v.layerChildTable:v.layerTable,n=this.legendElement?.infos?.length===1&&!this.activeLayerInfo?.layer?.renderer?.field,t=(this.isSizeRamp||!this.isChild)&&!this.isColorRamp?` ${v.layerTableSizeRamp}`:"",a=this.isInteractive?"":` ${v.nonInteractive}`,i=w(this.activeLayerInfo)?` ${v.nestedUniqueSymbol}`:"",l=n&&!this.expanded&&!this.zoomTo?!0:this.expanded;if(this.isRelationshipRamp){let c=f.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id];l=c===void 0?!0:c}return s("div",{key:"cea3abec3b0d96dd275cadbf6c2446d92c4d39dd",class:`${e}${t}${a}${i}`},s("div",{key:"6124c13d37dee96cb88498f25b275196fd899af5",id:`${this.activeLayerInfo?.layer?.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&n?"hide":"show"},s("instant-apps-interactive-legend-legend-element-caption",{key:"2c89bf0cb37046f020bdfed08e15abadd6513a1c",ref:r=>{r&&(this.legendLayerCaption=r)},legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),s("div",{key:"content",id:`${this.activeLayerInfo?.layer?.id}-legend-element-content-${this.legendElementIndex}`,class:l?"show":"hide"},s("slot",{key:"3ddd3cfe429bcd1a21c020dccc307395d89ba5c9",name:"content"})))}};le.style=se;var re=".sc-instant-apps-interactive-legend-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption{--instant-apps-interactive-legend-ui-padding:5px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;justify-content:flex-end;width:100%}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__show-all-btn.sc-instant-apps-interactive-legend-legend-element-caption{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:0.75rem;padding-inline-start:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__zoom-to-btn.sc-instant-apps-interactive-legend-legend-element-caption{--calcite-icon-color:var(--calcite-ui-brand);--calcite-color-transparent-hover:transparent}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;font-size:0.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-legend-element-caption-h:dir(rtl) .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}",oe=re,b;(function(e){e.ZoomTo="magnifying-glass-plus",e.ShowAll="list-check-all"})(b||(b={}));var g={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},ce=class{constructor(e){u(this,e),this.showAllSelectedEvent=T(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=T(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){let e=w(this.activeLayerInfo),n=U(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:t}=this,a=f.get("compact"),i=a?` ${g.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText&&s("span",{class:g.layerCaptionText,title:this.titleText},this.titleText),r=(this.isInteractive||n)&&this.renderLegendElementCaptionControls();return s("div",{class:`${g.layerCaption}${i}`},s("calcite-action",{onClick:this.toggleExpanded(),icon:t?"chevron-down":"chevron-up",appearance:"transparent",text:t?this.messages?.collapse:this.messages?.expand,label:t?this.messages?.collapse:this.messages?.expand,scale:"s"}),a?[l,r]:[r,l])}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${g.layerCaptionBtnContainerNoText}`;return s("div",{key:"layer-caption-btn-container",class:`${g.layerCaptionBtnContainer}${e}`},this.renderShowAllZoomToButtons())}renderShowAllZoomToButtons(){return f.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="zoomToCompact",i=this.zoomTo&&[s("calcite-action",{id:a,class:g.zoomTo,onClick:this.handleZoomTo(),icon:b.ZoomTo,appearance:"transparent",scale:"s",text:this.messages?.zoomTo}),s("calcite-tooltip",{"reference-element":a,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)],l=t&&s("button",{onClick:this.handleShowAll(),class:g.showAll},this.messages?.showAll);return[i,l]}renderButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="showAll",i="zoomTo",l=t&&[s("calcite-button",{key:"show-all-button",id:a,label:this.messages?.showAll,onClick:this.handleShowAll(),iconStart:b.ShowAll,appearance:"outline",round:!0}),s("calcite-tooltip",{referenceElement:a,placement:"top",label:this.messages?.showAll},this.messages?.showAll)],r=this.zoomTo&&[s("calcite-button",{key:"zoom-to-button",id:i,label:this.messages?.zoomTo,onClick:this.handleZoomTo(),iconStart:b.ZoomTo,appearance:"outline",round:!0}),s("calcite-tooltip",{"reference-element":i,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)];return[l,r]}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(this.activeLayerInfo?.legendElements?.filter(n=>n.type==="relationship-ramp")).length>0&&f.set("relationshipRampExpandStates",{...p.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=V(this.layer),n=S(e,this.legendElement);O(e,this.legendvm.view,n)}}handleShowAll(){return()=>{let e=()=>{let i=B(t,this.legendElement.title);k({intLegendLayerData:i,layerId:this.layer.id})},n=()=>{let i=q(t);k({intLegendLayerData:i,layerId:this.layer.id})},t=p.data?.[this.layer?.id];if(S(t,this.legendElement)){e();return}n(),this.showAllSelectedEvent.emit()}}get el(){return L(this)}};ce.style=oe;var P=new Map([["HH",[1,0,3,2,null]],["LH",[3,2,1,0,4,null]],["LL",[2,3,0,1,null]]]),de=new Map([["HH",[2,1,0,5,4,3,8,7,6]],["LH",[8,7,6,5,4,3,2,1,0]],["LL",[6,7,8,3,void 0,void 0,0,1,2]]]),pe=new Map([["HH",[3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12]],["LH",[15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]],["LL",[12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3]]]);function he(e,n){return n===null?P.get("HH")[e]:P.get(n)?.[e]??null}function ge(e,n){return n===null?e:de.get(n)?.[e]??e}function J(e,n){return n===null?J(e,"HH"):pe.get(n)?.[e]??null}var ue=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}",me=ue,fe=".sc-instant-apps-interactive-legend-relationship svg",Z=".sc-instant-apps-interactive-legend-relationship svg g:first-of-type",ve=".sc-instant-apps-interactive-legend-relationship svg g:last-of-type",y="esri-interactive-legend--selected-cell",j="esri-interactive-legend--instructional-text",G=2,W=3,ye=4,be=Object.freeze({0:"L",1:"H"}),xe=Object.freeze({0:"L",1:"M",2:"H"}),Le=Object.freeze({0:"L",1:"M1",2:"M2",3:"H"}),Ie={instructionalText:"instant-apps-interactive-legend-relationship__instructional-text"},Ce=class{constructor(e){u(this,e),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){let e=p.data[this.activeLayerInfo.layer.id].queryExpressions.length===0,n=this.relationshipRamp.querySelector(Z),t=Array.from(n.children);e&&t?.forEach(a=>{a.removeAttribute("stroke"),a.removeAttribute("stroke-width"),a.removeAttribute("stroke-opacity"),a.setAttribute("aria-pressed","false"),a.classList.remove(y)})}async componentWillLoad(){let e=await N();this.symbolUtils=e}render(){return s("div",{key:"f5cf665a22adaa3f9e5529937fd96d7334e51933",ref:e=>{if(e&&!e?.querySelector("relationshipStyles")){let t=document.createElement("style");t.id="relationshipStyles",t.innerHTML=`
3
+ v1.0.5 */
4
+ import{a as p,b as f,g as V,j as U,l as q,m as B,n as O,t as w,u as S,v as $,w as k}from"./HCCTS5WV.js";import{a as E}from"./Q5QONQ6T.js";import"./25FEJN5O.js";import{E as N,h as M,i as A}from"./QP26HSVE.js";import{a as u,c as s,e as L,f as T,h as R}from"./ML3FDA7I.js";import"./UITEOOYI.js";var X=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}",Y=X,D={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},ee=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption?.expanded}async componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){return s("div",{key:"cf9f8f643477fc66b5ab9d4f69faa3591664e1a0",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${D.service} ${D.groupLayer}`},s("instant-apps-interactive-legend-layer-element-caption",{key:"10339df7a9d65d87f20c6bf8f84f4bd578495085",ref:e=>this.layerCaption=e,class:$(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),s("div",{key:"c41488c758479a0c3820187641b27d97a7de824d",class:`${D.groupContent} ${this.expanded?"show":"hide"}`},s("slot",{key:"4778c2674ac10a464aa4cca6ec080dfbdca53afa",name:"content"})))}get el(){return L(this)}};ee.style=Y;var te=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}",ne=te,z={service:"esri-legend__service",groupLayerChild:"esri-legend__group-layer-child",layer:"esri-legend__layer"},ae=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){let e=this.activeLayerInfo.parent?` ${z.groupLayerChild}`:"";return s("div",{key:"aa39da1dd64aae1630988e2a1af8a2b7faea97d9",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${z.service}${e}`,tabIndex:0},s("instant-apps-interactive-legend-layer-element-caption",{key:"e7013faace5d61da9062c53c3336bddc3f87c1b4",ref:n=>{n&&(this.layerCaption=n)},legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:$(this.el)}),s("div",{key:"c54f12b6f0a1b1c17ff97c368fac17795e62e74a",id:`${this.activeLayerInfo?.layer?.id}-legend-layer`,class:`${z.layer}${this.expanded?" show":" hide"}`},s("slot",{key:"af29568610f22a76e2d9792c178b0b220cc0bb5d",name:"content"})))}get el(){return L(this)}};ae.style=ne;var ie=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}",se=ie,v={layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerTable:"esri-legend__layer-table",nestedUniqueSymbol:"instant-apps-interactive-legend__nested-unique-symbol",nonInteractive:"instant-apps-interactive-legend__non-interactive"},le=class{constructor(e){u(this,e),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText="",this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){let e=this.isChild?v.layerChildTable:v.layerTable,n=this.legendElement?.infos?.length===1&&!this.activeLayerInfo?.layer?.renderer?.field,t=(this.isSizeRamp||!this.isChild)&&!this.isColorRamp?` ${v.layerTableSizeRamp}`:"",a=this.isInteractive?"":` ${v.nonInteractive}`,i=w(this.activeLayerInfo)?` ${v.nestedUniqueSymbol}`:"",l=n&&!this.expanded&&!this.zoomTo?!0:this.expanded;if(this.isRelationshipRamp){let c=f.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id];l=c===void 0?!0:c}return s("div",{key:"cea3abec3b0d96dd275cadbf6c2446d92c4d39dd",class:`${e}${t}${a}${i}`},s("div",{key:"6124c13d37dee96cb88498f25b275196fd899af5",id:`${this.activeLayerInfo?.layer?.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&n?"hide":"show"},s("instant-apps-interactive-legend-legend-element-caption",{key:"2c89bf0cb37046f020bdfed08e15abadd6513a1c",ref:r=>{r&&(this.legendLayerCaption=r)},legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),s("div",{key:"content",id:`${this.activeLayerInfo?.layer?.id}-legend-element-content-${this.legendElementIndex}`,class:l?"show":"hide"},s("slot",{key:"3ddd3cfe429bcd1a21c020dccc307395d89ba5c9",name:"content"})))}};le.style=se;var re=".sc-instant-apps-interactive-legend-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption{--instant-apps-interactive-legend-ui-padding:5px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;justify-content:flex-end;width:100%}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__show-all-btn.sc-instant-apps-interactive-legend-legend-element-caption{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:0.75rem;padding-inline-start:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__zoom-to-btn.sc-instant-apps-interactive-legend-legend-element-caption{--calcite-icon-color:var(--calcite-ui-brand);--calcite-color-transparent-hover:transparent}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;font-size:0.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-legend-element-caption-h:dir(rtl) .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}",oe=re,b;(function(e){e.ZoomTo="magnifying-glass-plus",e.ShowAll="list-check-all"})(b||(b={}));var g={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},ce=class{constructor(e){u(this,e),this.showAllSelectedEvent=T(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=T(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){let e=w(this.activeLayerInfo),n=U(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:t}=this,a=f.get("compact"),i=a?` ${g.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText&&s("span",{class:g.layerCaptionText,title:this.titleText},this.titleText),r=(this.isInteractive||n)&&this.renderLegendElementCaptionControls();return s("div",{class:`${g.layerCaption}${i}`},s("calcite-action",{onClick:this.toggleExpanded(),icon:t?"chevron-down":"chevron-up",appearance:"transparent",text:t?this.messages?.collapse:this.messages?.expand,label:t?this.messages?.collapse:this.messages?.expand,scale:"s"}),a?[l,r]:[r,l])}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${g.layerCaptionBtnContainerNoText}`;return s("div",{key:"layer-caption-btn-container",class:`${g.layerCaptionBtnContainer}${e}`},this.renderShowAllZoomToButtons())}renderShowAllZoomToButtons(){return f.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="zoomToCompact",i=this.zoomTo&&[s("calcite-action",{id:a,class:g.zoomTo,onClick:this.handleZoomTo(),icon:b.ZoomTo,appearance:"transparent",scale:"s",text:this.messages?.zoomTo}),s("calcite-tooltip",{"reference-element":a,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)],l=t&&s("button",{onClick:this.handleShowAll(),class:g.showAll},this.messages?.showAll);return[i,l]}renderButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="showAll",i="zoomTo",l=t&&[s("calcite-button",{key:"show-all-button",id:a,label:this.messages?.showAll,onClick:this.handleShowAll(),iconStart:b.ShowAll,appearance:"outline",round:!0}),s("calcite-tooltip",{referenceElement:a,placement:"top",label:this.messages?.showAll},this.messages?.showAll)],r=this.zoomTo&&[s("calcite-button",{key:"zoom-to-button",id:i,label:this.messages?.zoomTo,onClick:this.handleZoomTo(),iconStart:b.ZoomTo,appearance:"outline",round:!0}),s("calcite-tooltip",{"reference-element":i,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)];return[l,r]}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(this.activeLayerInfo?.legendElements?.filter(n=>n.type==="relationship-ramp")).length>0&&f.set("relationshipRampExpandStates",{...p.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=V(this.layer),n=S(e,this.legendElement);O(e,this.legendvm.view,n)}}handleShowAll(){return()=>{let e=()=>{let i=B(t,this.legendElement.title);k({intLegendLayerData:i,layerId:this.layer.id})},n=()=>{let i=q(t);k({intLegendLayerData:i,layerId:this.layer.id})},t=p.data?.[this.layer?.id];if(S(t,this.legendElement)){e();return}n(),this.showAllSelectedEvent.emit()}}get el(){return L(this)}};ce.style=oe;var P=new Map([["HH",[1,0,3,2,null]],["LH",[3,2,1,0,4,null]],["LL",[2,3,0,1,null]]]),de=new Map([["HH",[2,1,0,5,4,3,8,7,6]],["LH",[8,7,6,5,4,3,2,1,0]],["LL",[6,7,8,3,void 0,void 0,0,1,2]]]),pe=new Map([["HH",[3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12]],["LH",[15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]],["LL",[12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3]]]);function he(e,n){return n===null?P.get("HH")[e]:P.get(n)?.[e]??null}function ge(e,n){return n===null?e:de.get(n)?.[e]??e}function J(e,n){return n===null?J(e,"HH"):pe.get(n)?.[e]??null}var ue=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}",me=ue,fe=".sc-instant-apps-interactive-legend-relationship svg",Z=".sc-instant-apps-interactive-legend-relationship svg g:first-of-type",ve=".sc-instant-apps-interactive-legend-relationship svg g:last-of-type",y="esri-interactive-legend--selected-cell",j="esri-interactive-legend--instructional-text",G=2,W=3,ye=4,be=Object.freeze({0:"L",1:"H"}),xe=Object.freeze({0:"L",1:"M",2:"H"}),Le=Object.freeze({0:"L",1:"M1",2:"M2",3:"H"}),Ie={instructionalText:"instant-apps-interactive-legend-relationship__instructional-text"},Ce=class{constructor(e){u(this,e),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){let e=p.data[this.activeLayerInfo.layer.id].queryExpressions.length===0,n=this.relationshipRamp.querySelector(Z),t=Array.from(n.children);e&&t?.forEach(a=>{a.removeAttribute("stroke"),a.removeAttribute("stroke-width"),a.removeAttribute("stroke-opacity"),a.setAttribute("aria-pressed","false"),a.classList.remove(y)})}async componentWillLoad(){let e=await N();this.symbolUtils=e}render(){return s("div",{key:"f5cf665a22adaa3f9e5529937fd96d7334e51933",ref:e=>{if(e&&!e?.querySelector("relationshipStyles")){let t=document.createElement("style");t.id="relationshipStyles",t.innerHTML=`
5
5
  rect:hover {
6
6
  cursor: pointer;
7
7
  opacity: 0.8;
@@ -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.4 */
3
+ v1.0.5 */
4
4
  var l=new Map([["ar","ar"],["bg","bg"],["bs","bs"],["ca","ca"],["cs","cs"],["da","da"],["de","de"],["el","el"],["en","en"],["es","es"],["et","et"],["fi","fi"],["fr","fr"],["he","he"],["hr","hr"],["hu","hu"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["lt","lt"],["lv","lv"],["no","no"],["nb","no"],["nn","no"],["nl","nl"],["pl","pl"],["pt-br","pt-BR"],["pt-pt","pt-PT"],["ro","ro"],["ru","ru"],["sk","sk"],["sl","sl"],["sr","sr"],["sv","sv"],["th","th"],["tr","tr"],["uk","uk"],["vi","vi"],["zh-cn","zh-CN"],["zh-hk","zh-HK"],["zh-tw","zh-TW"]]);function h(t){return s(t,"dir","ltr")}function s(t,e,n){let r=t.closest(`[${e}]`);return r?r.getAttribute(e):n}export{l as a,h as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.4 */
4
- import{a as e}from"./YA3SBEXZ.js";import{b as t,g as s,m as i}from"./CH7DLGUP.js";var u=["hub:site:edit","hub:site:create","hub:site:followers","hub:site:discussions","hub:site:settings"],a=o=>Object.assign(Object.assign({$async:!0},e),{properties:Object.assign(Object.assign({},e.properties),{name:t,_discussions:s,telemetry:i,_urlInfo:{type:"object",isUniqueDomain:{siteId:o},required:["subdomain"],properties:{subdomain:{type:"string",format:"slug"}}}})});export{u as a,a as b};
3
+ v1.0.5 */
4
+ import{a as e}from"./WBAN3UIC.js";import{b as t,g as s,m as i}from"./IFPYTV3R.js";var u=["hub:site:edit","hub:site:create","hub:site:followers","hub:site:discussions","hub:site:settings"],a=o=>Object.assign(Object.assign({$async:!0},e),{properties:Object.assign(Object.assign({},e.properties),{name:t,_discussions:s,telemetry:i,_urlInfo:{type:"object",isUniqueDomain:{siteId:o},required:["subdomain"],properties:{subdomain:{type:"string",format:"slug"}}}})});export{u as a,a as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.4 */
4
- import{a as e,b as t}from"./IEEVFYKM.js";var n={if:{properties:{isAllDay:{const:!1}}},then:{required:["startTime","endTime"],properties:{endTime:{format:"timePickerTime",formatExclusiveMinimum:{$data:"1/startTime"}}}}},r={if:{properties:{attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineUrl"],properties:{onlineUrl:{format:"url"}}}},o={if:{properties:{onlineCapacityType:{const:t.Fixed},attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineCapacity"],properties:{onlineCapacity:{minimum:1}}}},p={if:{properties:{inPersonCapacityType:{const:t.Fixed},attendanceType:{enum:[e.InPerson,e.Both]}}},then:{required:["inPersonCapacity"],properties:{inPersonCapacity:{minimum:1}}}};export{n as a,r as b,o as c,p as d};
3
+ v1.0.5 */
4
+ import{a as e,b as t}from"./7OEQCUDV.js";var n={if:{properties:{isAllDay:{const:!1}}},then:{required:["startTime","endTime"],properties:{endTime:{format:"timePickerTime",formatExclusiveMinimum:{$data:"1/startTime"}}}}},r={if:{properties:{attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineUrl"],properties:{onlineUrl:{format:"url"}}}},o={if:{properties:{onlineCapacityType:{const:t.Fixed},attendanceType:{enum:[e.Online,e.Both]}}},then:{required:["onlineCapacity"],properties:{onlineCapacity:{minimum:1}}}},p={if:{properties:{inPersonCapacityType:{const:t.Fixed},attendanceType:{enum:[e.InPerson,e.Both]}}},then:{required:["inPersonCapacity"],properties:{inPersonCapacity:{minimum:1}}}};export{n as a,r as b,o as c,p 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.4 */
4
- import{a as O}from"./DC2E55EL.js";import{a as D}from"./EKX5RPAU.js";import{h as b,i as N}from"./AK2IOGVT.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?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 N({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 b({filter:await N({where:s,timeExtent:l}),includedEffect:y,excludedEffect:p})}return 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 b({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 be(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,be as y};
3
+ v1.0.5 */
4
+ import{a as O}from"./Q5QONQ6T.js";import{a as D}from"./25FEJN5O.js";import{h as b,i as N}from"./QP26HSVE.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?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 N({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 b({filter:await N({where:s,timeExtent:l}),includedEffect:y,excludedEffect:p})}return 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 b({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 be(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,be as y};
@@ -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.4 */
3
+ v1.0.5 */
4
4
  function o(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function m(r,e){let t=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"2-digit",day:"2-digit",timeZone:e??o()}).formatToParts(new Date(r));return[t[4].value,t[0].value,t[2].value].join("-")}function s(r,e){let t=new Intl.DateTimeFormat("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:e??o(),hourCycle:"h23"}).formatToParts(new Date(r));return[t[0].value,t[2].value,t[4].value].join(":")}var w=()=>{let e=new Date(Date.now()+36e5),t=new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours()),i=t.toISOString(),a=new Date(t.valueOf()+36e5).toISOString(),n=o(),u=m(i,n),D=m(a,n);return{startDate:u,startDateTime:new Date(i),startTime:s(i,n),endDate:D,endDateTime:new Date(a),endTime:s(a,n),timeZone:n}};export{m as a,w as b};
@@ -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.4 */
4
- import{b as g}from"./6DXOCCZA.js";import{a as b}from"./Z7DOTE4W.js";import{D as w,c as h,d as l,n as r,p as m,y as u,z as p}from"./ST5DNJ5A.js";import"./4RUO65YZ.js";var y=h`@layer{/**
3
+ v1.0.5 */
4
+ import{b as g}from"./M35TRRGF.js";import{a as b}from"./TA3ZXQAF.js";import{D as w,c as h,d as l,n as r,p as m,y as u,z as p}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var y=h`@layer{/**
5
5
  * @license
6
6
  * Copyright 2025 Esri
7
7
  *
@@ -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.4 */
4
- import{b as p,v as m}from"./I74ECT7N.js";import"./DC2E55EL.js";import"./EKX5RPAU.js";import{e as g}from"./RNVECRCO.js";import{c as o,t as c,u as d,y as l,z as h}from"./AK2IOGVT.js";import"./J2SERNA3.js";import{a as v,c as r,e as f,h as w}from"./DVIQ73JS.js";import"./4RUO65YZ.js";var u=".sc-instant-apps-interactive-legend-h{display:block;height:100%}.sc-instant-apps-interactive-legend-h .esri-legend.sc-instant-apps-interactive-legend{height:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1)}.sc-instant-apps-interactive-legend-h .esri-legend.esri-component.esri-widget.esri-widget--panel.sc-instant-apps-interactive-legend{margin:0}",y=u,L={esri:{base:"esri-legend",widget:"esri-widget",widgetPanel:"esri-widget--panel",component:"esri-component",iconLayerList:"esri-icon-layer-list"}},C=class{constructor(e){v(this,e),this.handles=void 0,this.reactiveUtils=void 0,this.legendvm=void 0,this.widget=void 0,this.view=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.compact=!1,this.messages=void 0}async componentWillLoad(){this.compactHandler(),new MutationObserver(()=>{w(this.el)}).observe(this.el,{attributes:!0}),await this.initializeModules()}async componentDidLoad(){await g(this)}async initializeModules(){let e=await h();this.handles=await o(),this.reactiveUtils=e,this.widget=await l({});let t=await c({});return await e.whenOnce(()=>t?.messages),this.messages={...this.messages,...t.messages},void await Promise.resolve()}async init(){if(!(!this.reactiveUtils||!this.view||!this.handles))try{let{on:e,whenOnce:t}=this.reactiveUtils,s=this.view?.map?.allLayers?.map(async a=>await a.load());await Promise.allSettled(s),await t(()=>this.view?.ready);let n={view:this.view,respectLayerDefinitionExpression:!0},i=await d(n);this.legendvm=i,this.handles.add([e(()=>this.legendvm?.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this?.legendvm?.activeLayerInfos,this.reactiveUtils))])}catch(e){console.error('Failed at "init": ',e)}}compactHandler(){p.set("compact",this.compact)}render(){let{base:e,component:t,widget:s,widgetPanel:n}=L.esri;return r("div",{key:"interactive-legend",class:this.widget?.classes(e,t,s,n)},this.legendvm?r("instant-apps-interactive-legend-classic",{key:"interactive-legend-classic",ref:i=>{i&&(this.ref=i)},class:m(this.el),legendvm:this.legendvm,"zoom-to":this.zoomTo,filterMode:this.filterMode,"feature-count":this.featureCount,messages:this.messages}):null)}_refreshActiveLayerInfos(e,t){e&&(this.handles.removeAll(),e.forEach(s=>this._renderOnActiveLayerInfoChange(s,t)))}_renderOnActiveLayerInfoChange(e,t){let{on:s}=this.reactiveUtils,n=s(()=>e.children,"change",()=>e.children.forEach(i=>this._renderOnActiveLayerInfoChange(i,t)));this.handles.add(n,`children_${e?.layer?.uid}`),e.children.forEach(i=>{this._renderOnActiveLayerInfoChange(i,t),i?.children?.length>0&&i?.children?.forEach(a=>this._renderOnActiveLayerInfoChange(a,t))})}get el(){return f(this)}static get watchers(){return{handles:["init"],reactiveUtils:["init"],view:["init"],compact:["compactHandler"]}}};C.style=y;export{C as instant_apps_interactive_legend};
3
+ v1.0.5 */
4
+ import{b as p,v as m}from"./HCCTS5WV.js";import"./Q5QONQ6T.js";import"./25FEJN5O.js";import{e as g}from"./25JM7WUJ.js";import{c as o,t as c,u as d,y as l,z as h}from"./QP26HSVE.js";import"./H3FM5UM6.js";import{a as v,c as r,e as f,h as w}from"./ML3FDA7I.js";import"./UITEOOYI.js";var u=".sc-instant-apps-interactive-legend-h{display:block;height:100%}.sc-instant-apps-interactive-legend-h .esri-legend.sc-instant-apps-interactive-legend{height:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1)}.sc-instant-apps-interactive-legend-h .esri-legend.esri-component.esri-widget.esri-widget--panel.sc-instant-apps-interactive-legend{margin:0}",y=u,L={esri:{base:"esri-legend",widget:"esri-widget",widgetPanel:"esri-widget--panel",component:"esri-component",iconLayerList:"esri-icon-layer-list"}},C=class{constructor(e){v(this,e),this.handles=void 0,this.reactiveUtils=void 0,this.legendvm=void 0,this.widget=void 0,this.view=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.compact=!1,this.messages=void 0}async componentWillLoad(){this.compactHandler(),new MutationObserver(()=>{w(this.el)}).observe(this.el,{attributes:!0}),await this.initializeModules()}async componentDidLoad(){await g(this)}async initializeModules(){let e=await h();this.handles=await o(),this.reactiveUtils=e,this.widget=await l({});let t=await c({});return await e.whenOnce(()=>t?.messages),this.messages={...this.messages,...t.messages},void await Promise.resolve()}async init(){if(!(!this.reactiveUtils||!this.view||!this.handles))try{let{on:e,whenOnce:t}=this.reactiveUtils,s=this.view?.map?.allLayers?.map(async a=>await a.load());await Promise.allSettled(s),await t(()=>this.view?.ready);let n={view:this.view,respectLayerDefinitionExpression:!0},i=await d(n);this.legendvm=i,this.handles.add([e(()=>this.legendvm?.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this?.legendvm?.activeLayerInfos,this.reactiveUtils))])}catch(e){console.error('Failed at "init": ',e)}}compactHandler(){p.set("compact",this.compact)}render(){let{base:e,component:t,widget:s,widgetPanel:n}=L.esri;return r("div",{key:"interactive-legend",class:this.widget?.classes(e,t,s,n)},this.legendvm?r("instant-apps-interactive-legend-classic",{key:"interactive-legend-classic",ref:i=>{i&&(this.ref=i)},class:m(this.el),legendvm:this.legendvm,"zoom-to":this.zoomTo,filterMode:this.filterMode,"feature-count":this.featureCount,messages:this.messages}):null)}_refreshActiveLayerInfos(e,t){e&&(this.handles.removeAll(),e.forEach(s=>this._renderOnActiveLayerInfoChange(s,t)))}_renderOnActiveLayerInfoChange(e,t){let{on:s}=this.reactiveUtils,n=s(()=>e.children,"change",()=>e.children.forEach(i=>this._renderOnActiveLayerInfoChange(i,t)));this.handles.add(n,`children_${e?.layer?.uid}`),e.children.forEach(i=>{this._renderOnActiveLayerInfoChange(i,t),i?.children?.length>0&&i?.children?.forEach(a=>this._renderOnActiveLayerInfoChange(a,t))})}get el(){return f(this)}static get watchers(){return{handles:["init"],reactiveUtils:["init"],view:["init"],compact:["compactHandler"]}}};C.style=y;export{C as instant_apps_interactive_legend};