@esri/solutions-components 1.2.0-next.90 → 1.2.0-next.91

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 (446) hide show
  1. package/dist/cdn/{ES35RROG.js → 24YP66HD.js} +2 -2
  2. package/dist/cdn/{6UEQ7GL4.js → 2EOBJOI3.js} +2 -2
  3. package/dist/cdn/{DTTWZ7H6.js → 2FFEMFF4.js} +2 -2
  4. package/dist/cdn/{TXBWV37Y.js → 2FTYFCSS.js} +2 -2
  5. package/dist/cdn/{SJFOQCOK.js → 2QXPV6MJ.js} +1 -1
  6. package/dist/cdn/{GBVMOEYO.js → 2SHZJ7M5.js} +2 -2
  7. package/dist/cdn/{ZZ4EVJYC.js → 2U3BTX4G.js} +2 -2
  8. package/dist/cdn/{UG7GIDW5.js → 2WTLMEZO.js} +2 -2
  9. package/dist/cdn/{MLI4DD2Y.js → 335IJWLK.js} +2 -2
  10. package/dist/cdn/{KRKY7L6D.js → 35TIXX6E.js} +2 -2
  11. package/dist/cdn/{54NCTYA3.js → 3AYHAOYG.js} +2 -2
  12. package/dist/cdn/{6UEDOVUE.js → 3GR2TJ22.js} +2 -2
  13. package/dist/cdn/{RHEQRC7M.js → 3LXMHZFT.js} +2 -2
  14. package/dist/cdn/{R5H6ISQO.js → 3MZL7XFY.js} +2 -2
  15. package/dist/cdn/3OR6MX3P.js +4 -0
  16. package/dist/cdn/{FWRP6SFW.js → 3VT5EBZR.js} +2 -2
  17. package/dist/cdn/{EHK6M3PO.js → 455TZ4RM.js} +2 -2
  18. package/dist/cdn/{6KDCVN3C.js → 47O2QMUF.js} +2 -2
  19. package/dist/cdn/{HCL54MB5.js → 4AVMV5PJ.js} +2 -2
  20. package/dist/cdn/{S3JYTDXM.js → 4BQ6HVUZ.js} +2 -2
  21. package/dist/cdn/4ECRO5MM.js +4 -0
  22. package/dist/cdn/{NHSUVW2K.js → 4F26IYVX.js} +1 -1
  23. package/dist/cdn/{FLL7JMNY.js → 4MPXXXMM.js} +2 -2
  24. package/dist/cdn/{3V2RJR5B.js → 4OQLRQ2K.js} +2 -2
  25. package/dist/cdn/{OPXAIIZK.js → 5BDXRQGC.js} +3 -3
  26. package/dist/cdn/{ZS2N2QPH.js → 5CPIHESU.js} +2 -2
  27. package/dist/cdn/{3IOEBEFM.js → 5GE6JEPN.js} +2 -2
  28. package/dist/cdn/{FAQVP6ZC.js → 5GR7PWCY.js} +2 -2
  29. package/dist/cdn/{SHXA6R3P.js → 5IR3Y7LC.js} +2 -2
  30. package/dist/cdn/{ZVMXERJF.js → 5LIADX65.js} +2 -2
  31. package/dist/cdn/{MQUZXM3X.js → 5XHD4KCD.js} +2 -2
  32. package/dist/cdn/{ML7AB5HA.js → 62UID2KL.js} +2 -2
  33. package/dist/cdn/{7VOXHW6N.js → 6AI7VUNC.js} +2 -2
  34. package/dist/cdn/{DLQCKDJU.js → 6AYIFITO.js} +2 -2
  35. package/dist/cdn/6B4DZ4TB.js +4 -0
  36. package/dist/cdn/6BNTXUKU.js +4 -0
  37. package/dist/cdn/{Y4CJMKXS.js → 6JDFBSAZ.js} +2 -2
  38. package/dist/cdn/6KJHU46H.js +4 -0
  39. package/dist/cdn/{BW4V7DAO.js → 6KV772TU.js} +2 -2
  40. package/dist/cdn/{SMUEGYQR.js → 6L3OX5TO.js} +1 -1
  41. package/dist/cdn/{E4E665CS.js → 6NQV3TXF.js} +2 -2
  42. package/dist/cdn/{6F5AJ345.js → 6QFVKB74.js} +2 -2
  43. package/dist/cdn/6S4J25PH.js +4 -0
  44. package/dist/cdn/{5O62RE3J.js → 6TCE3SXI.js} +2 -2
  45. package/dist/cdn/{C5P4T3HC.js → 6TY4OFVQ.js} +2 -2
  46. package/dist/cdn/{DPTE6D42.js → 6YHC3QYS.js} +2 -2
  47. package/dist/cdn/{P633UJ6M.js → 754T5F66.js} +2 -2
  48. package/dist/cdn/{KP77XLIZ.js → 76PLP63F.js} +2 -2
  49. package/dist/cdn/{NO7MCPKX.js → 7D7PPDEU.js} +2 -2
  50. package/dist/cdn/{E2MBDGQL.js → 7EF6FL4W.js} +3 -3
  51. package/dist/cdn/{K6QAFPLM.js → 7HZDK3W6.js} +2 -2
  52. package/dist/cdn/{3VU5735D.js → 7K4SONHA.js} +2 -2
  53. package/dist/cdn/7WMQRBLI.js +4 -0
  54. package/dist/cdn/{UQOUOSK6.js → 7WSQSV4F.js} +2 -2
  55. package/dist/cdn/{S7IDS6RG.js → A3GPHEIA.js} +2 -2
  56. package/dist/cdn/{Q5XLTBJZ.js → A4ODJX2H.js} +2 -2
  57. package/dist/cdn/{FAC3GWMW.js → ABFIG6NV.js} +2 -2
  58. package/dist/cdn/{PCVRSRUN.js → ABK5BSJI.js} +2 -2
  59. package/dist/cdn/{JQVW5XBI.js → AIHSOICZ.js} +2 -2
  60. package/dist/cdn/{S5WP5A3R.js → AKWORZTC.js} +2 -2
  61. package/dist/cdn/{LWVZYCKH.js → ALT3WNKP.js} +2 -2
  62. package/dist/cdn/{HXI3VCF2.js → ATHPXULU.js} +2 -2
  63. package/dist/cdn/{XCZZ5A6X.js → AYVB7B36.js} +2 -2
  64. package/dist/cdn/{IPG4H527.js → B2RDKFPI.js} +2 -2
  65. package/dist/cdn/{2G4AVSDU.js → B4LKY6M4.js} +2 -2
  66. package/dist/cdn/{SYZY7MTM.js → BEG2YWK2.js} +2 -2
  67. package/dist/cdn/{JR2J5EZZ.js → BISCMLCA.js} +2 -2
  68. package/dist/cdn/{LJ4N4TSK.js → BJMZEDFN.js} +2 -2
  69. package/dist/cdn/{KP5BNCA2.js → BNKZKRF6.js} +2 -2
  70. package/dist/cdn/{EXAJIRUW.js → BNLFD6W7.js} +2 -2
  71. package/dist/cdn/{3GA6VP4H.js → BOMGORIR.js} +2 -2
  72. package/dist/cdn/{ENUT3F7A.js → BUFVQ4I7.js} +2 -2
  73. package/dist/cdn/{Y73DSLSH.js → BVAJKPYO.js} +2 -2
  74. package/dist/cdn/{WEY5WEM2.js → BVRG4SP2.js} +1 -1
  75. package/dist/cdn/{6RXW57O2.js → C5KHG53E.js} +2 -2
  76. package/dist/cdn/{JFR473ZP.js → CCUH5T2M.js} +2 -2
  77. package/dist/cdn/{UZDWHWO7.js → CI4LKODO.js} +2 -2
  78. package/dist/cdn/{GJ76SZBE.js → CQDMLEO4.js} +2 -2
  79. package/dist/cdn/{BT45VWET.js → CS44V6JE.js} +2 -2
  80. package/dist/cdn/{RQT5M66L.js → CVLYQTVO.js} +2 -2
  81. package/dist/cdn/CXOJUQSB.js +4 -0
  82. package/dist/cdn/{2JFSJIGM.js → D45DV5MQ.js} +2 -2
  83. package/dist/cdn/{KJ6WUY47.js → DCWUWXLG.js} +2 -2
  84. package/dist/cdn/{CJNUHYLD.js → DOQLQLW2.js} +2 -2
  85. package/dist/cdn/{AZC4BG5V.js → DP5DN2BH.js} +1 -1
  86. package/dist/cdn/{MD7IJASL.js → DRRHK6OS.js} +2 -2
  87. package/dist/cdn/{TCKRUAEA.js → DTILSQW2.js} +2 -2
  88. package/dist/cdn/{7IEELXNA.js → DTQ2ZC3Q.js} +2 -2
  89. package/dist/cdn/{OE7IH3H2.js → DUUAISDM.js} +2 -2
  90. package/dist/cdn/{LSVMKIAC.js → DY64KZ3R.js} +2 -2
  91. package/dist/cdn/{2NVH2JPO.js → E25IHFHG.js} +2 -2
  92. package/dist/cdn/{IH3G33RD.js → E2QAHN5P.js} +2 -2
  93. package/dist/cdn/{HU3DPQFM.js → E7ZSHANN.js} +2 -2
  94. package/dist/cdn/{CYVYZCKE.js → EOLGJVXV.js} +2 -2
  95. package/dist/cdn/{CD2GWKRD.js → EQIYXW6E.js} +2 -2
  96. package/dist/cdn/{KQKIU33L.js → EU3U4CI4.js} +2 -2
  97. package/dist/cdn/{7AVUCP3P.js → F3XBVVTX.js} +2 -2
  98. package/dist/cdn/{PJ6FTG3Q.js → F7CCNWGC.js} +2 -2
  99. package/dist/cdn/FA3NONVN.js +4 -0
  100. package/dist/cdn/{GILAI7YC.js → FA55ENKG.js} +2 -2
  101. package/dist/cdn/{L2QSMQTM.js → FDOYG2PD.js} +2 -2
  102. package/dist/cdn/{FX4VFGG3.js → FE5XGORJ.js} +2 -2
  103. package/dist/cdn/{AVEIHSJE.js → FTDWNQUA.js} +1 -1
  104. package/dist/cdn/{L2OHUNRR.js → FU4IORKM.js} +2 -2
  105. package/dist/cdn/{4KVHI2XK.js → FVUTBX6V.js} +1 -1
  106. package/dist/cdn/{NEAEKX2Y.js → FZY7BVC4.js} +2 -2
  107. package/dist/cdn/{6J7LYDRT.js → G754OABR.js} +2 -2
  108. package/dist/cdn/{JOYFIW27.js → GA3HHDOK.js} +1 -1
  109. package/dist/cdn/{R5GWW6SV.js → GBF3DFQB.js} +2 -2
  110. package/dist/cdn/{4QQK366J.js → GGAY7G3R.js} +2 -2
  111. package/dist/cdn/{JKRFVPH4.js → GHE6NK55.js} +2 -2
  112. package/dist/cdn/{FDW5EIT3.js → GKB6B6KJ.js} +2 -2
  113. package/dist/cdn/{73W6TMEY.js → GL66XKZT.js} +2 -2
  114. package/dist/cdn/{2FDUZ45M.js → GM3UGM2R.js} +2 -2
  115. package/dist/cdn/{K2K5WA36.js → GRDF72BN.js} +1 -1
  116. package/dist/cdn/{5FSIXUAC.js → GSOQESO3.js} +2 -2
  117. package/dist/cdn/{IT57K2KI.js → GY72GYNG.js} +2 -2
  118. package/dist/cdn/{RYBYYHCE.js → GYLANBI7.js} +2 -2
  119. package/dist/cdn/{5CCMXBLO.js → H2CSTZQH.js} +2 -2
  120. package/dist/cdn/{Q2NZ3C7G.js → H32QCDC5.js} +2 -2
  121. package/dist/cdn/{OKYW6W3X.js → H3VKBHAM.js} +2 -2
  122. package/dist/cdn/HGI4MAOS.js +4 -0
  123. package/dist/cdn/{SFXG53ZK.js → HKYUXCW6.js} +1 -1
  124. package/dist/cdn/{S6P4OTDO.js → HN3D3O5Z.js} +2 -2
  125. package/dist/cdn/{VXCAU5U5.js → HO74JJRP.js} +2 -2
  126. package/dist/cdn/{OJ6L3AEH.js → HSBDJEFT.js} +2 -2
  127. package/dist/cdn/{MZZTD6PN.js → HSTKJ4EJ.js} +2 -2
  128. package/dist/cdn/{UC4INX3J.js → HTFZTAIR.js} +4 -4
  129. package/dist/cdn/{DVYVXJDF.js → I3ZRVEBN.js} +2 -2
  130. package/dist/cdn/{BUXHLRFO.js → I7O2CLE4.js} +2 -2
  131. package/dist/cdn/{4FLDKZDE.js → ID64ES5U.js} +2 -2
  132. package/dist/cdn/{T3C5XMUA.js → IDJ2MEE2.js} +2 -2
  133. package/dist/cdn/{6UHU3TNW.js → IJFP6IYJ.js} +1 -1
  134. package/dist/cdn/{OU3I5EN5.js → IMOD7IV2.js} +1 -1
  135. package/dist/cdn/{WYB6BTRP.js → IPN5XMV7.js} +1 -1
  136. package/dist/cdn/{5FLCZ6GZ.js → J7DYCFGG.js} +1 -1
  137. package/dist/cdn/{HL5NSTOI.js → JI462HEI.js} +2 -2
  138. package/dist/cdn/{GYXBIIEK.js → JJSXFI3E.js} +1 -1
  139. package/dist/cdn/{3KMTVTOQ.js → JKPPLWXK.js} +2 -2
  140. package/dist/cdn/{NDYMOQNQ.js → JLO7ORFB.js} +2 -2
  141. package/dist/cdn/{4DVLZR3O.js → JMWUJQK2.js} +2 -2
  142. package/dist/cdn/{SG6PAOPV.js → JO34YO2O.js} +1 -1
  143. package/dist/cdn/{7ZZXQDCK.js → JR4FDHJV.js} +1 -1
  144. package/dist/cdn/{MQGDYAN6.js → JR56GUWM.js} +2 -2
  145. package/dist/cdn/{MCIYK4Q4.js → JVQCHCLL.js} +1 -1
  146. package/dist/cdn/{BD4YSI7T.js → KAAYAMPB.js} +2 -2
  147. package/dist/cdn/{GX3XEWIG.js → KBMIAAKV.js} +2 -2
  148. package/dist/cdn/{D4N7366N.js → KGFRKTDV.js} +2 -2
  149. package/dist/cdn/{C2VECK3G.js → KIC5TMQZ.js} +2 -2
  150. package/dist/cdn/{SOGKMXIU.js → KJTQNESB.js} +2 -2
  151. package/dist/cdn/{67RROFY5.js → KKBMUBTD.js} +2 -2
  152. package/dist/cdn/{5ORZ2NKJ.js → KRBUSXWS.js} +1 -1
  153. package/dist/cdn/{W3JJS4RN.js → KRVVWCUC.js} +2 -2
  154. package/dist/cdn/{3VGGAZ7P.js → KS4OJ5HX.js} +2 -2
  155. package/dist/cdn/{TVP44LTM.js → KVRFGYRZ.js} +2 -2
  156. package/dist/cdn/{JQWETNA4.js → KWZFKLDN.js} +2 -2
  157. package/dist/cdn/{BC6NXR73.js → LC4BOPVU.js} +2 -2
  158. package/dist/cdn/{WUS73OAH.js → LDMBWRJ2.js} +2 -2
  159. package/dist/cdn/{4YGNBWKC.js → LDXAFNVE.js} +2 -2
  160. package/dist/cdn/{PDC5ZKSA.js → LJN6AZI3.js} +2 -2
  161. package/dist/cdn/LTP4KDHN.js +4 -0
  162. package/dist/cdn/{CROEKJYS.js → LVR4ESBC.js} +2 -2
  163. package/dist/cdn/{UUJ3JDES.js → LXPF3CRE.js} +2 -2
  164. package/dist/cdn/{QNZQ2S3Y.js → LZXQZANM.js} +2 -2
  165. package/dist/cdn/{6ZCVPZFA.js → MBKQH4XN.js} +2 -2
  166. package/dist/cdn/{IKLXPACQ.js → MBPPTLTP.js} +2 -2
  167. package/dist/cdn/{HEYQVTVN.js → MJTQGN6E.js} +2 -2
  168. package/dist/cdn/{L4EPQXPD.js → MMBZ5ATE.js} +2 -2
  169. package/dist/cdn/{INH376YU.js → MOIOUDYG.js} +1 -1
  170. package/dist/cdn/{XQSTOLPG.js → MYK4WL4X.js} +2 -2
  171. package/dist/cdn/{6CQAD7LC.js → N5FFLPE4.js} +1 -1
  172. package/dist/cdn/{PFOF7S3Q.js → NB3YPF2H.js} +2 -2
  173. package/dist/cdn/{TGBDMMGS.js → NGK5LXB4.js} +2 -2
  174. package/dist/cdn/{H56KVHCV.js → NLZXS7RS.js} +2 -2
  175. package/dist/cdn/{VTADEVDW.js → NM4BVJUA.js} +2 -2
  176. package/dist/cdn/{FGHFTERV.js → NMOS55FN.js} +2 -2
  177. package/dist/cdn/{QB3ELLRI.js → NOXBAPMJ.js} +1 -1
  178. package/dist/cdn/{76EVEFWQ.js → NP47GVHA.js} +2 -2
  179. package/dist/cdn/{J5QG3T5W.js → NTWR2ZWS.js} +2 -2
  180. package/dist/cdn/{5YZVE2ML.js → NUGVN2NT.js} +2 -2
  181. package/dist/cdn/{XQTT4MY4.js → NXIVNVM5.js} +2 -2
  182. package/dist/cdn/{WLRBC3N6.js → NY3J7Y2X.js} +2 -2
  183. package/dist/cdn/{HPN7MPQR.js → NZVAVBSY.js} +2 -2
  184. package/dist/cdn/{SXSNFA5F.js → OHYURBOM.js} +2 -2
  185. package/dist/cdn/OKZPVAJX.js +4 -0
  186. package/dist/cdn/OLARMEAY.js +4 -0
  187. package/dist/cdn/OLHYZPZ2.js +4 -0
  188. package/dist/cdn/{UFQPBNYK.js → OM4MEPSI.js} +2 -2
  189. package/dist/cdn/{7HO7HDA7.js → OM76I6BX.js} +2 -2
  190. package/dist/cdn/{OZP5KS6P.js → ON3LYFYX.js} +1 -1
  191. package/dist/cdn/{LNHUEXEL.js → OQHVVJDN.js} +2 -2
  192. package/dist/cdn/{PSOBDENI.js → OREO6VFN.js} +2 -2
  193. package/dist/cdn/{7H56PCCE.js → OY3DZINK.js} +2 -2
  194. package/dist/cdn/{PCM52HD3.js → OYKL2FMC.js} +2 -2
  195. package/dist/cdn/{HRCPNX3Z.js → P4YLC5YD.js} +2 -2
  196. package/dist/cdn/{M5KZ3T5O.js → PBDNDVW6.js} +2 -2
  197. package/dist/cdn/{AYZFWNRK.js → PE44UHT7.js} +2 -2
  198. package/dist/cdn/{NXIB2WBO.js → PGGOINZL.js} +2 -2
  199. package/dist/cdn/PGQJL6ID.js +4 -0
  200. package/dist/cdn/{T56B7CK3.js → PHQBDMAY.js} +2 -2
  201. package/dist/cdn/{L5V7TXJC.js → PHXS7HK2.js} +2 -2
  202. package/dist/cdn/{L3RBFJV7.js → PJWYTWC3.js} +2 -2
  203. package/dist/cdn/{34DPMEGK.js → PN2L2E7A.js} +2 -2
  204. package/dist/cdn/{WBVXLAEU.js → PNOYIYWI.js} +2 -2
  205. package/dist/cdn/{7MCFU7SN.js → PRG4Z24G.js} +2 -2
  206. package/dist/cdn/{BUNINAX5.js → PRSURI3I.js} +2 -2
  207. package/dist/cdn/{NBZBHOS7.js → PSDBZIFY.js} +2 -2
  208. package/dist/cdn/PVPF7AIK.js +4 -0
  209. package/dist/cdn/{5TMZFYV6.js → PW6WAQZ5.js} +2 -2
  210. package/dist/cdn/{SEAZXPKD.js → PXNRKXHH.js} +2 -2
  211. package/dist/cdn/{VCJRESCX.js → QBLPQUYO.js} +2 -2
  212. package/dist/cdn/{BBHHPMJZ.js → QCJZMWRY.js} +2 -2
  213. package/dist/cdn/{6HYTHBJO.js → QGNXX5AJ.js} +2 -2
  214. package/dist/cdn/{SAOWN6YU.js → QHWCDMUR.js} +2 -2
  215. package/dist/cdn/{KAYA4ZTC.js → QMSBJMWC.js} +2 -2
  216. package/dist/cdn/{4DRE4OE4.js → QPAWKN4K.js} +2 -2
  217. package/dist/cdn/{ZW2W6A7B.js → QPGO5ZMJ.js} +2 -2
  218. package/dist/cdn/{AN2WTXXJ.js → QQSSFODB.js} +2 -2
  219. package/dist/cdn/{MXPB23CW.js → QXLARMHL.js} +1 -1
  220. package/dist/cdn/{65LHCHMR.js → QXZJYYLH.js} +2 -2
  221. package/dist/cdn/{AJ7DU4V6.js → QZBLKYC7.js} +2 -2
  222. package/dist/cdn/{DWVIXHLT.js → QZWCLWPE.js} +2 -2
  223. package/dist/cdn/{53QIY2TP.js → R3A53BGW.js} +2 -2
  224. package/dist/cdn/{4L6O65TM.js → RBAA5WU7.js} +2 -2
  225. package/dist/cdn/{V2GNCEEX.js → RCJYQKFE.js} +2 -2
  226. package/dist/cdn/{ECUFPUPR.js → RGH2YLME.js} +1 -1
  227. package/dist/cdn/{I3IXSZ23.js → RGHHGDBP.js} +2 -2
  228. package/dist/cdn/{JNMOYSSY.js → RGNKZOFT.js} +1 -1
  229. package/dist/cdn/{IY75XSQK.js → RMFRZQGV.js} +2 -2
  230. package/dist/cdn/{3XLUQKLB.js → RW7VYC3T.js} +2 -2
  231. package/dist/cdn/{UQV2KI2R.js → S7H35KEN.js} +2 -2
  232. package/dist/cdn/{I2OT2UEW.js → SGZC7V7N.js} +3 -3
  233. package/dist/cdn/{2JR4DC3R.js → SHEH4QBZ.js} +2 -2
  234. package/dist/cdn/{HLSQMG5J.js → SJGI4QUN.js} +1 -1
  235. package/dist/cdn/{TROVOKKK.js → SJSJEZIS.js} +2 -2
  236. package/dist/cdn/{TT7FSL76.js → SLKLRC2B.js} +2 -2
  237. package/dist/cdn/{GRKEWE5D.js → SM4HOSWX.js} +2 -2
  238. package/dist/cdn/{QI6CKM7R.js → SND4E3UY.js} +2 -2
  239. package/dist/cdn/{3AHYLGJ6.js → SNYBJGQK.js} +2 -2
  240. package/dist/cdn/{6R4UL6YV.js → SO5HPTRA.js} +2 -2
  241. package/dist/cdn/SQQZSBAA.js +4 -0
  242. package/dist/cdn/{LMEKHDWJ.js → SR3UD4TQ.js} +1 -1
  243. package/dist/cdn/{AJDPIQ7R.js → SS3ZCFVV.js} +2 -2
  244. package/dist/cdn/{UNP66J7E.js → SSBA3DNF.js} +2 -2
  245. package/dist/cdn/{NDKXRGAW.js → ST3LSPOH.js} +2 -2
  246. package/dist/cdn/{5RCF2AR2.js → SUUT7NFJ.js} +2 -2
  247. package/dist/cdn/{T4E5DNEZ.js → SWEVKKF3.js} +2 -2
  248. package/dist/cdn/{XVFTS7OW.js → SWRVNVHJ.js} +2 -2
  249. package/dist/cdn/{O6AYFDZB.js → TBZAZX6H.js} +2 -2
  250. package/dist/cdn/{4ZKGOVT4.js → TD7GGVA7.js} +2 -2
  251. package/dist/cdn/{ESAGKCCH.js → TDDFAAEM.js} +2 -2
  252. package/dist/cdn/{GNNOBBMX.js → TFTMAAX5.js} +2 -2
  253. package/dist/cdn/{PHAMI5FW.js → TGIBP4E4.js} +2 -2
  254. package/dist/cdn/{QQBF3COK.js → TH3PLQUX.js} +2 -2
  255. package/dist/cdn/{HZWDEXZI.js → TI77ZOKU.js} +1 -1
  256. package/dist/cdn/{NS44CFNR.js → TOFXXIWL.js} +2 -2
  257. package/dist/cdn/TP4DQLXN.js +4 -0
  258. package/dist/cdn/{DVHGDF7C.js → TQLBVJGQ.js} +2 -2
  259. package/dist/cdn/{VRQ7ODLG.js → U3RXZWYP.js} +2 -2
  260. package/dist/cdn/{3L5NS2LQ.js → U5B74HAP.js} +2 -2
  261. package/dist/cdn/{D3CZ23RR.js → U6AJEYSB.js} +2 -2
  262. package/dist/cdn/{Y466GIHR.js → UBWJID5B.js} +2 -2
  263. package/dist/cdn/{ITOR4TVJ.js → UFZJ2FZI.js} +2 -2
  264. package/dist/cdn/{UCZOPUQK.js → UGJ6UATN.js} +2 -2
  265. package/dist/cdn/{QM73XLNF.js → ULDIXA26.js} +2 -2
  266. package/dist/cdn/{NA2OZOYX.js → ULV4RPG3.js} +1 -1
  267. package/dist/cdn/{RQCNLD7A.js → UNX5F7VT.js} +2 -2
  268. package/dist/cdn/UO3HK7SK.js +4 -0
  269. package/dist/cdn/{LTGSKJRM.js → URHBMEZ7.js} +2 -2
  270. package/dist/cdn/{PLXGMUAJ.js → UU7TFGJE.js} +2 -2
  271. package/dist/cdn/{RNHVM3F6.js → V3FO7DXS.js} +2 -2
  272. package/dist/cdn/{7MEPJA32.js → V6574AS5.js} +2 -2
  273. package/dist/cdn/{ILSL3BBF.js → V6OJBIYS.js} +2 -2
  274. package/dist/cdn/{D2Q7LLSN.js → V7KNKIV2.js} +2 -2
  275. package/dist/cdn/{IAELM2LM.js → VABJBM67.js} +2 -2
  276. package/dist/cdn/{2M7IYY6D.js → VDTFMVRT.js} +2 -2
  277. package/dist/cdn/{HCBEUCWD.js → VDZDQQZT.js} +2 -2
  278. package/dist/cdn/{QRNV6YUE.js → VEGSCYA3.js} +2 -2
  279. package/dist/cdn/{7RBMBNPM.js → VKOEH2Q7.js} +2 -2
  280. package/dist/cdn/{CXJ5QRWW.js → VN7UMJC7.js} +2 -2
  281. package/dist/cdn/{K4JRCKLV.js → VNSE5CSU.js} +2 -2
  282. package/dist/cdn/{SCVKYDI7.js → VO74HJAQ.js} +2 -2
  283. package/dist/cdn/{THMTOBDH.js → VP7HYRKK.js} +2 -2
  284. package/dist/cdn/{ILGE7MI4.js → VR7KALIX.js} +2 -2
  285. package/dist/cdn/{NICRYCTQ.js → VSVI5DIG.js} +2 -2
  286. package/dist/cdn/{IEZFIE6F.js → VYOVGNGV.js} +2 -2
  287. package/dist/cdn/VYRKHAH2.js +4 -0
  288. package/dist/cdn/{QQTQVTOP.js → WCUURKSN.js} +2 -2
  289. package/dist/cdn/{FBJBLQAG.js → WEDZZEHJ.js} +2 -2
  290. package/dist/cdn/{ZV7SFAOB.js → WK7YRQEW.js} +2 -2
  291. package/dist/cdn/{VHLCWVJH.js → WL4C7OQO.js} +2 -2
  292. package/dist/cdn/{4FOUEMNN.js → WL4QZECS.js} +2 -2
  293. package/dist/cdn/{WZBR7DWU.js → WQU6AA7M.js} +2 -2
  294. package/dist/cdn/{TSM6QFNU.js → WVVXEGCA.js} +2 -2
  295. package/dist/cdn/{E34MQ3PI.js → WZZGWV7P.js} +1 -1
  296. package/dist/cdn/{I6DCLW7G.js → X3NSSI3D.js} +2 -2
  297. package/dist/cdn/{ADVVOX3S.js → XA26INSI.js} +1 -1
  298. package/dist/cdn/{7QMEB4NV.js → XEH6HFGF.js} +2 -2
  299. package/dist/cdn/{Q6X7YRAE.js → XEOVVNPD.js} +2 -2
  300. package/dist/cdn/{224C2BIX.js → XFEANEFJ.js} +2 -2
  301. package/dist/cdn/{VXKB3GU2.js → XKV62TYR.js} +2 -2
  302. package/dist/cdn/{BN45HESL.js → XTQSQBYX.js} +2 -2
  303. package/dist/cdn/{MAV7W3II.js → XTSOTJW3.js} +2 -2
  304. package/dist/cdn/{SAFKV4BH.js → XUVASCHV.js} +2 -2
  305. package/dist/cdn/{5IVS3CN5.js → XV52D5P7.js} +2 -2
  306. package/dist/cdn/{EIY42CJG.js → YGBXTJXM.js} +2 -2
  307. package/dist/cdn/{4FJJIZBK.js → YMLBQ7QX.js} +2 -2
  308. package/dist/cdn/{CUFJQIOY.js → YN4TV4WT.js} +2 -2
  309. package/dist/cdn/{ICADG6J3.js → YOO6KYX2.js} +2 -2
  310. package/dist/cdn/{YYF4BJBQ.js → YP7YM2X3.js} +2 -2
  311. package/dist/cdn/{EA2FTJ26.js → YSTTIAQU.js} +2 -2
  312. package/dist/cdn/{MAXFPFLC.js → YWFHVXCU.js} +2 -2
  313. package/dist/cdn/{D7NMPZRF.js → YZFYDZRL.js} +2 -2
  314. package/dist/cdn/{S3U5C24U.js → YZHQ53UF.js} +2 -2
  315. package/dist/cdn/{3NSLEZV3.js → YZS3MPWP.js} +2 -2
  316. package/dist/cdn/{5MFKM4GZ.js → Z67SUIGB.js} +2 -2
  317. package/dist/cdn/{DW5DMDNV.js → Z6K4M5OQ.js} +2 -2
  318. package/dist/cdn/{5OUC2MND.js → ZAFMNGA6.js} +2 -2
  319. package/dist/cdn/{3YMRICGO.js → ZAPBLULV.js} +2 -2
  320. package/dist/cdn/{PIW3WEFA.js → ZDHGP7DT.js} +2 -2
  321. package/dist/cdn/{PQLQF6FF.js → ZGTUR4V5.js} +1 -1
  322. package/dist/cdn/{3B3OIZEK.js → ZGUWAA6F.js} +1 -1
  323. package/dist/cdn/{TZEJGGMP.js → ZKLHJ6UY.js} +3 -3
  324. package/dist/cdn/{NM5HF23K.js → ZKOH55HU.js} +2 -2
  325. package/dist/cdn/{BB523KD5.js → ZNG2SHDX.js} +2 -2
  326. package/dist/cdn/{WIKTDWGT.js → ZNIMR5V5.js} +2 -2
  327. package/dist/cdn/{YBROK33Q.js → ZPZHG3PJ.js} +1 -1
  328. package/dist/cdn/{C3CFFRNB.js → ZRLX6PFY.js} +2 -2
  329. package/dist/cdn/{JJFDULY3.js → ZRMBGS4Y.js} +1 -1
  330. package/dist/cdn/{O2BK5LD5.js → ZSOB2QMS.js} +2 -2
  331. package/dist/cdn/{WTAGTHJW.js → ZSSBKLW4.js} +2 -2
  332. package/dist/cdn/{B6WRCMVQ.js → ZU5DZLL3.js} +2 -2
  333. package/dist/cdn/{KJYC52L5.js → ZYOLEX2K.js} +2 -2
  334. package/dist/cdn/{AW35DPQK.js → ZZFSHCXN.js} +2 -2
  335. package/dist/cdn/ZZUP4X2F.js +4 -0
  336. package/dist/cdn/index.js +2 -2
  337. package/dist/chunks/Auth.js +1 -1
  338. package/dist/chunks/cardFetchingUtils.js +1 -1
  339. package/dist/chunks/cardsHelpers.js +1 -1
  340. package/dist/chunks/common.js +4 -4
  341. package/dist/chunks/deployAppContexts.js +1 -1
  342. package/dist/chunks/downloadUtils.js +1 -1
  343. package/dist/chunks/getItemIcon.js +1 -1
  344. package/dist/chunks/getRelatedInfos.js +1 -1
  345. package/dist/chunks/helpers.js +1 -1
  346. package/dist/chunks/interfaces.js +1 -1
  347. package/dist/chunks/mapViewUtils.js +1 -1
  348. package/dist/chunks/pciUtils.js +1 -1
  349. package/dist/chunks/popupUtils.js +1 -1
  350. package/dist/chunks/publicNotificationContext.js +1 -1
  351. package/dist/chunks/queryUtils.js +1 -1
  352. package/dist/chunks/runtime.js +1 -1
  353. package/dist/chunks/solution-deploy-dialog.js +1 -1
  354. package/dist/chunks/solutions-deploy-app-nav.js +3 -2
  355. package/dist/chunks/useT9n.js +1 -1
  356. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  357. package/dist/components/buffer-tools/customElement.js +1 -1
  358. package/dist/components/card-manager/customElement.js +1 -1
  359. package/dist/components/consent-manager/customElement.js +1 -1
  360. package/dist/components/create-feature/customElement.js +1 -1
  361. package/dist/components/create-related-feature/customElement.js +1 -1
  362. package/dist/components/crowdsource-manager/customElement.js +1 -1
  363. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  364. package/dist/components/deduct-calculator/customElement.js +1 -1
  365. package/dist/components/delete-button/customElement.js +1 -1
  366. package/dist/components/delete-dialog/customElement.js +1 -1
  367. package/dist/components/edit-card/customElement.js +1 -1
  368. package/dist/components/feature-details/customElement.js +1 -1
  369. package/dist/components/feature-list/customElement.js +1 -1
  370. package/dist/components/field-selection/customElement.js +1 -1
  371. package/dist/components/info-card/customElement.js +1 -1
  372. package/dist/components/layer-list/customElement.js +1 -1
  373. package/dist/components/layer-table/customElement.js +1 -1
  374. package/dist/components/map-basemap-gallery/customElement.js +1 -1
  375. package/dist/components/map-card/customElement.js +1 -1
  376. package/dist/components/map-draw-tools/customElement.js +1 -1
  377. package/dist/components/map-floor-filter/customElement.js +1 -1
  378. package/dist/components/map-fullscreen/customElement.js +1 -1
  379. package/dist/components/map-layer-picker/customElement.js +1 -1
  380. package/dist/components/map-legend/customElement.js +1 -1
  381. package/dist/components/map-picker/customElement.js +1 -1
  382. package/dist/components/map-search/customElement.js +1 -1
  383. package/dist/components/map-select-tools/customElement.js +1 -1
  384. package/dist/components/map-tools/customElement.js +1 -1
  385. package/dist/components/pci-calculator/customElement.js +1 -1
  386. package/dist/components/pdf-download/customElement.js +1 -1
  387. package/dist/components/public-notification/customElement.js +1 -1
  388. package/dist/components/refine-selection/customElement.js +1 -1
  389. package/dist/components/selection-tool/customElement.js +1 -1
  390. package/dist/components/solution-configure-titles/customElement.js +1 -1
  391. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  392. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  393. package/dist/components/solution-deployed-card/customElement.js +1 -1
  394. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  395. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  396. package/dist/components/solution-details-card/customElement.js +1 -1
  397. package/dist/components/solution-details-panel/customElement.js +18 -2
  398. package/dist/components/solution-item-accordion/customElement.js +1 -1
  399. package/dist/components/solution-item-diagram/customElement.js +1 -1
  400. package/dist/components/solution-item-icon/customElement.js +1 -1
  401. package/dist/components/solution-resource-card/customElement.js +1 -1
  402. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  403. package/dist/components/solution-social-share/customElement.js +1 -1
  404. package/dist/components/solutions-all-panel/customElement.js +1 -1
  405. package/dist/components/solutions-all-shell/customElement.js +1 -1
  406. package/dist/components/solutions-deploy-app/customElement.js +2 -1
  407. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  408. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  409. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  410. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  411. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  412. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  413. package/dist/components/solutions-resources/customElement.js +1 -1
  414. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  415. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  416. package/dist/docs/api.json +1 -1
  417. package/dist/docs/docs.json +1 -1
  418. package/dist/docs/web-types.json +1 -1
  419. package/dist/index.js +1 -1
  420. package/dist/loader.js +1 -1
  421. package/dist/solutions-components_commit.txt +7 -4
  422. package/dist/utils/CardsFetcher.d.ts +1 -1
  423. package/dist/utils/common.d.ts +1 -1
  424. package/dist/utils/interfaces.d.ts +1 -0
  425. package/package.json +1 -1
  426. package/dist/cdn/45N5HYFM.js +0 -4
  427. package/dist/cdn/4EPNRB6V.js +0 -4
  428. package/dist/cdn/4KSYGCHR.js +0 -4
  429. package/dist/cdn/7RCFEJZC.js +0 -4
  430. package/dist/cdn/BLCGLN6Z.js +0 -4
  431. package/dist/cdn/BOXHG3RL.js +0 -4
  432. package/dist/cdn/D6CV6VS2.js +0 -4
  433. package/dist/cdn/HEVHZYTY.js +0 -4
  434. package/dist/cdn/HHTBOLS2.js +0 -4
  435. package/dist/cdn/IOY4NJWB.js +0 -4
  436. package/dist/cdn/JZXLONOS.js +0 -4
  437. package/dist/cdn/OUQH2NKU.js +0 -4
  438. package/dist/cdn/P44IQTXD.js +0 -4
  439. package/dist/cdn/PRU2FZR5.js +0 -4
  440. package/dist/cdn/QGTKFTWK.js +0 -4
  441. package/dist/cdn/RBLEXE6D.js +0 -4
  442. package/dist/cdn/RHWUAYKL.js +0 -4
  443. package/dist/cdn/TWHQALQA.js +0 -4
  444. package/dist/cdn/VJRKUF6K.js +0 -4
  445. package/dist/cdn/Y6O74KIQ.js +0 -4
  446. package/dist/cdn/YPRQNFX4.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import"./3B3OIZEK.js";var a="Voc\xEA n\xE3o tem cr\xE9ditos o suficiente para executar esta opera\xE7\xE3o. Entre em contato com seu Administrador de Sistema do ArcGIS para ajuda.",e="Esta ferramenta foi publicada a partir de um notebook. O acesso ao ArcGIS Notebooks est\xE1 bloqueado para sua organiza\xE7\xE3o. Entre em contato com seu administrador para ajustar a configura\xE7\xE3o.",r="${ dataPath } n\xE3o deve ter ${ additionalProperty }.",o="${ dataPath } deve corresponder ao esquema de um destes: ${ schemaOptions }.",s="Tente salvar o mapa novamente.",t="Falha na estimativa de cr\xE9dito. Role para baixo, corrija os erros e estime os cr\xE9ditos novamente.",i="Ocorreu um erro ao executar a an\xE1lise.",d="${ dataPath } deve ser igual a um destes valores permitidos: ${ allowedValues }.",n="Falha ao salvar hist\xF3rico de an\xE1lise",m="O armazenamento de hist\xF3rias est\xE1 completo. Remova alguns itens do hist\xF3rico de an\xE1lises e tente salvar novamente.",l="O nome do servi\xE7o cont\xE9m um ou mais caracteres inv\xE1lidos.",c="A op\xE7\xE3o de salvar a camada tempor\xE1ria como uma camada de fei\xE7\xE3o hospedada n\xE3o foi conclu\xEDda.",u="Falha ao obter principais propriedades.",p="Falha ao carregar a camada.",v="A camada n\xE3o est\xE1 dispon\xEDvel",h="${ dataPath } n\xE3o deve ter mais de ${ limit } itens.",E="Ocorreu um erro ao salvar o modelo. Tentar salvar novamente.",f="${ dataPath } n\xE3o deve ter menos que ${ limit } itens.",F="${ dataPath } n\xE3o deve ser menor que ${ limit } caracteres.",y="Falha ao carregar o item do item. Certifique-se de que o modelo exista e que a permiss\xE3o de acesso foi concedida.",P="Falha ao concluir solicita\xE7\xE3o.",S="Voc\xEA n\xE3o tem permiss\xE3o para executar esta ferramenta. <calcite-link target='_blank' href='${ docLink }'>Saiba mais</calcite-link>",b="Falha ao entrar no portal.",$="Falha ao ler os dados de entrada.",x="${ dataPath } est\xE1 sem uma propriedade denominada ${ missingProperty }.",g="J\xE1 existe uma camada de resultado com este nome. As camadas resultantes devem ser exclusivas em toda a organiza\xE7\xE3o. Utilize um nome diferente.",k="O nome da sa\xEDda cont\xE9m um ou mais caracteres inv\xE1lidos. <a href='${docLink}' target='_blank'>Saiba mais.</a>",I="A publica\xE7\xE3o da camada tempor\xE1ria como camada hospedada falhou devido a um ou mais campos inv\xE1lidos. Execute novamente a ferramenta para criar uma camada com campos v\xE1lidos.",T="Falha ao enviar trabalho. Role para baixo, corrija os erros e execute a an\xE1lise novamente.",q="${ dataPath } deve ter pelo menos um caractere diferente de espa\xE7o em branco.",A={InsufficientCreditsError:a,accessBlocked:e,additionalProperty:r,anyOfValues:o,cannotWriteToItemResource:s,creditEstimationError:t,defaultError:i,enumValues:d,failedToSaveHistory:n,fullSessionStorage:m,hostedFeatureServiceInvalidTitle:l,hostedFeatureServicePublishDidNotComplete:c,keyPropertiesError:u,layerLoadFailure:p,layerUnavailable:v,maxItems:h,mbFailedToSave:E,minItems:f,minLength:F,modelNotFound:y,networkError:P,noPermissionToAccessTool:S,portalLoadError:b,queryFeaturesError:$,requiredProperty:x,serviceNameExistsError:g,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:I,toolValidationError:T,whiteSpacePattern:q};export{a as InsufficientCreditsError,e as accessBlocked,r as additionalProperty,o as anyOfValues,s as cannotWriteToItemResource,t as creditEstimationError,A as default,i as defaultError,d as enumValues,n as failedToSaveHistory,m as fullSessionStorage,l as hostedFeatureServiceInvalidTitle,c as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,p as layerLoadFailure,v as layerUnavailable,h as maxItems,E as mbFailedToSave,f as minItems,F as minLength,y as modelNotFound,P as networkError,S as noPermissionToAccessTool,b as portalLoadError,$ as queryFeaturesError,x as requiredProperty,g as serviceNameExistsError,k as specialCharactersInServiceNameError,I as temporaryLayerFieldsError,T as toolValidationError,q as whiteSpacePattern};
3
+ v1.2.0-next.90 */
4
+ import"./ZGUWAA6F.js";var a="Voc\xEA n\xE3o tem cr\xE9ditos o suficiente para executar esta opera\xE7\xE3o. Entre em contato com seu Administrador de Sistema do ArcGIS para ajuda.",e="Esta ferramenta foi publicada a partir de um notebook. O acesso ao ArcGIS Notebooks est\xE1 bloqueado para sua organiza\xE7\xE3o. Entre em contato com seu administrador para ajustar a configura\xE7\xE3o.",r="${ dataPath } n\xE3o deve ter ${ additionalProperty }.",o="${ dataPath } deve corresponder ao esquema de um destes: ${ schemaOptions }.",s="Tente salvar o mapa novamente.",t="Falha na estimativa de cr\xE9dito. Role para baixo, corrija os erros e estime os cr\xE9ditos novamente.",i="Ocorreu um erro ao executar a an\xE1lise.",d="${ dataPath } deve ser igual a um destes valores permitidos: ${ allowedValues }.",n="Falha ao salvar hist\xF3rico de an\xE1lise",m="O armazenamento de hist\xF3rias est\xE1 completo. Remova alguns itens do hist\xF3rico de an\xE1lises e tente salvar novamente.",l="O nome do servi\xE7o cont\xE9m um ou mais caracteres inv\xE1lidos.",c="A op\xE7\xE3o de salvar a camada tempor\xE1ria como uma camada de fei\xE7\xE3o hospedada n\xE3o foi conclu\xEDda.",u="Falha ao obter principais propriedades.",p="Falha ao carregar a camada.",v="A camada n\xE3o est\xE1 dispon\xEDvel",h="${ dataPath } n\xE3o deve ter mais de ${ limit } itens.",E="Ocorreu um erro ao salvar o modelo. Tentar salvar novamente.",f="${ dataPath } n\xE3o deve ter menos que ${ limit } itens.",F="${ dataPath } n\xE3o deve ser menor que ${ limit } caracteres.",y="Falha ao carregar o item do item. Certifique-se de que o modelo exista e que a permiss\xE3o de acesso foi concedida.",P="Falha ao concluir solicita\xE7\xE3o.",S="Voc\xEA n\xE3o tem permiss\xE3o para executar esta ferramenta. <calcite-link target='_blank' href='${ docLink }'>Saiba mais</calcite-link>",b="Falha ao entrar no portal.",$="Falha ao ler os dados de entrada.",x="${ dataPath } est\xE1 sem uma propriedade denominada ${ missingProperty }.",g="J\xE1 existe uma camada de resultado com este nome. As camadas resultantes devem ser exclusivas em toda a organiza\xE7\xE3o. Utilize um nome diferente.",k="O nome da sa\xEDda cont\xE9m um ou mais caracteres inv\xE1lidos. <a href='${docLink}' target='_blank'>Saiba mais.</a>",I="A publica\xE7\xE3o da camada tempor\xE1ria como camada hospedada falhou devido a um ou mais campos inv\xE1lidos. Execute novamente a ferramenta para criar uma camada com campos v\xE1lidos.",T="Falha ao enviar trabalho. Role para baixo, corrija os erros e execute a an\xE1lise novamente.",q="${ dataPath } deve ter pelo menos um caractere diferente de espa\xE7o em branco.",A={InsufficientCreditsError:a,accessBlocked:e,additionalProperty:r,anyOfValues:o,cannotWriteToItemResource:s,creditEstimationError:t,defaultError:i,enumValues:d,failedToSaveHistory:n,fullSessionStorage:m,hostedFeatureServiceInvalidTitle:l,hostedFeatureServicePublishDidNotComplete:c,keyPropertiesError:u,layerLoadFailure:p,layerUnavailable:v,maxItems:h,mbFailedToSave:E,minItems:f,minLength:F,modelNotFound:y,networkError:P,noPermissionToAccessTool:S,portalLoadError:b,queryFeaturesError:$,requiredProperty:x,serviceNameExistsError:g,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:I,toolValidationError:T,whiteSpacePattern:q};export{a as InsufficientCreditsError,e as accessBlocked,r as additionalProperty,o as anyOfValues,s as cannotWriteToItemResource,t as creditEstimationError,A as default,i as defaultError,d as enumValues,n as failedToSaveHistory,m as fullSessionStorage,l as hostedFeatureServiceInvalidTitle,c as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,p as layerLoadFailure,v as layerUnavailable,h as maxItems,E as mbFailedToSave,f as minItems,F as minLength,y as modelNotFound,P as networkError,S as noPermissionToAccessTool,b as portalLoadError,$ as queryFeaturesError,x as requiredProperty,g as serviceNameExistsError,k as specialCharactersInServiceNameError,I as temporaryLayerFieldsError,T as toolValidationError,q as whiteSpacePattern};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.90 */
4
+ import{a}from"./LXPF3CRE.js";import"./QQSSFODB.js";import"./QMSBJMWC.js";import"./76PLP63F.js";import"./ZNG2SHDX.js";import"./62UID2KL.js";import"./BVRG4SP2.js";import"./ZGUWAA6F.js";export{a as SolutionDeployingDialog};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import"./3B3OIZEK.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.2.0-next.90 */
4
+ import"./ZGUWAA6F.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.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{a as e}from"./7H56PCCE.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s as b};
3
+ v1.2.0-next.90 */
4
+ import{a as e}from"./OY3DZINK.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s 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.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{c as l}from"./WEY5WEM2.js";var r=class extends Event{constructor(t,e,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=n,this.subscribe=s??!1}};var a=class{constructor(t,e,n,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){let o=e;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=e,this.callback=n,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new r(this.context,this.host,this.t,this.subscribe))}};var u=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:n}]of this.subscriptions)e(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,e,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var d=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h=class extends u{constructor(t,e,n){super(e.context!==void 0?e.initialValue:n),this.onContextRequest=s=>{if(s.context!==this.context)return;let o=s.contextTarget??s.composedPath()[0];o!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,o,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let o=new Set;for(let[c,{consumerHost:x}]of this.subscriptions)o.has(c)||(o.add(c),x.dispatchEvent(new r(this.context,x,c,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new d(this.context,this.host))}};var A=i=>{let t=l(),e=new h(t.el,i);return t.addController(e),e},B=i=>{let t=l(),e=new a(t.el,i);return t.addController(e),e};var J="isMobile";var K="config";export{A as a,B as b,J as c,K as d};
3
+ v1.2.0-next.90 */
4
+ import{c as l}from"./BVRG4SP2.js";var r=class extends Event{constructor(t,e,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=n,this.subscribe=s??!1}};var a=class{constructor(t,e,n,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){let o=e;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=e,this.callback=n,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new r(this.context,this.host,this.t,this.subscribe))}};var u=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:n}]of this.subscriptions)e(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,e,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var d=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h=class extends u{constructor(t,e,n){super(e.context!==void 0?e.initialValue:n),this.onContextRequest=s=>{if(s.context!==this.context)return;let o=s.contextTarget??s.composedPath()[0];o!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,o,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let o=new Set;for(let[c,{consumerHost:x}]of this.subscriptions)o.has(c)||(o.add(c),x.dispatchEvent(new r(this.context,x,c,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new d(this.context,this.host))}};var A=i=>{let t=l(),e=new h(t.el,i);return t.addController(e),e},B=i=>{let t=l(),e=new a(t.el,i);return t.addController(e),e};var J="isMobile";var K="config";export{A as a,B as b,J as c,K 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.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import"./3B3OIZEK.js";var e="You do not have enough credits to perform this operation. Contact your ArcGIS System Administrator for assistance.",a="This tool was published from a notebook. Access to ArcGIS Notebooks is blocked for your organization. Contact your administrator to adjust the setting.",r="${ dataPath } must not have ${ additionalProperty }.",t="${ dataPath } must match the schema of one of these: ${ schemaOptions }.",o="Try saving the map again.",s="Credit Estimation failed. Scroll down, correct the errors, and estimate the credits again.",i="An error occurred while running analysis.",n="${ dataPath } must be equal to one of these allowed values: ${ allowedValues }.",l="Failed to save analysis history",d="The history storage is full. Remove some items from analysis history and try saving again.",m="The service name contains one or more invalid characters.",c="Saving the temporary layer as a hosted feature layer did not complete.",h="Failed to get key properties.",u="Failed to load the layer.",y="Layer is not available.",p="${ dataPath } must not have more than ${ limit } items.",v="An error occurred while saving the model. Try saving again.",f="${ dataPath } must not have fewer than ${ limit } items.",g="${ dataPath } must not be shorter than ${ limit } characters.",E="Failed to load the model item. Ensure that the model exists and that access permission has been granted.",P="Failed to complete request.",S="You do not have permission to run this tool. <calcite-link target='_blank' href='${ docLink }'>Learn more</calcite-link>",F="Failed to log in to portal.",b="Failed to read input data.",T="${ dataPath } is missing a property named ${ missingProperty }.",$="A result layer already exists with this name. Result layers must be named uniquely across the organization. Please use a different name.",k="The output name contains one or more invalid characters. <a href='${docLink}' target='_blank'>Learn more.</a>",w="Publishing the temporary layer as a hosted layer failed due to one or more invalid fields. Rerun the tool to create a layer with valid fields.",I="Job submission failed. Scroll down, correct the errors, and run the analysis again.",L="${ dataPath } must have at least one non-whitespace character.",A={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:c,keyPropertiesError:h,layerLoadFailure:u,layerUnavailable:y,maxItems:p,mbFailedToSave:v,minItems:f,minLength:g,modelNotFound:E,networkError:P,noPermissionToAccessTool:S,portalLoadError:F,queryFeaturesError:b,requiredProperty:T,serviceNameExistsError:$,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:w,toolValidationError:I,whiteSpacePattern:L};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,A as default,i as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,c as hostedFeatureServicePublishDidNotComplete,h as keyPropertiesError,u as layerLoadFailure,y as layerUnavailable,p as maxItems,v as mbFailedToSave,f as minItems,g as minLength,E as modelNotFound,P as networkError,S as noPermissionToAccessTool,F as portalLoadError,b as queryFeaturesError,T as requiredProperty,$ as serviceNameExistsError,k as specialCharactersInServiceNameError,w as temporaryLayerFieldsError,I as toolValidationError,L as whiteSpacePattern};
3
+ v1.2.0-next.90 */
4
+ import"./ZGUWAA6F.js";var e="You do not have enough credits to perform this operation. Contact your ArcGIS System Administrator for assistance.",a="This tool was published from a notebook. Access to ArcGIS Notebooks is blocked for your organization. Contact your administrator to adjust the setting.",r="${ dataPath } must not have ${ additionalProperty }.",t="${ dataPath } must match the schema of one of these: ${ schemaOptions }.",o="Try saving the map again.",s="Credit Estimation failed. Scroll down, correct the errors, and estimate the credits again.",i="An error occurred while running analysis.",n="${ dataPath } must be equal to one of these allowed values: ${ allowedValues }.",l="Failed to save analysis history",d="The history storage is full. Remove some items from analysis history and try saving again.",m="The service name contains one or more invalid characters.",c="Saving the temporary layer as a hosted feature layer did not complete.",h="Failed to get key properties.",u="Failed to load the layer.",y="Layer is not available.",p="${ dataPath } must not have more than ${ limit } items.",v="An error occurred while saving the model. Try saving again.",f="${ dataPath } must not have fewer than ${ limit } items.",g="${ dataPath } must not be shorter than ${ limit } characters.",E="Failed to load the model item. Ensure that the model exists and that access permission has been granted.",P="Failed to complete request.",S="You do not have permission to run this tool. <calcite-link target='_blank' href='${ docLink }'>Learn more</calcite-link>",F="Failed to log in to portal.",b="Failed to read input data.",T="${ dataPath } is missing a property named ${ missingProperty }.",$="A result layer already exists with this name. Result layers must be named uniquely across the organization. Please use a different name.",k="The output name contains one or more invalid characters. <a href='${docLink}' target='_blank'>Learn more.</a>",w="Publishing the temporary layer as a hosted layer failed due to one or more invalid fields. Rerun the tool to create a layer with valid fields.",I="Job submission failed. Scroll down, correct the errors, and run the analysis again.",L="${ dataPath } must have at least one non-whitespace character.",A={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:n,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:c,keyPropertiesError:h,layerLoadFailure:u,layerUnavailable:y,maxItems:p,mbFailedToSave:v,minItems:f,minLength:g,modelNotFound:E,networkError:P,noPermissionToAccessTool:S,portalLoadError:F,queryFeaturesError:b,requiredProperty:T,serviceNameExistsError:$,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:w,toolValidationError:I,whiteSpacePattern:L};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,A as default,i as defaultError,n as enumValues,l as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,c as hostedFeatureServicePublishDidNotComplete,h as keyPropertiesError,u as layerLoadFailure,y as layerUnavailable,p as maxItems,v as mbFailedToSave,f as minItems,g as minLength,E as modelNotFound,P as networkError,S as noPermissionToAccessTool,F as portalLoadError,b as queryFeaturesError,T as requiredProperty,$ as serviceNameExistsError,k as specialCharactersInServiceNameError,w as temporaryLayerFieldsError,I as toolValidationError,L as whiteSpacePattern};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{a as P}from"./BB523KD5.js";import{a as C,b as L,c as N,n as m,q as w,s as x}from"./WEY5WEM2.js";var _=(n,r)=>{let t=n;for(;t;){if(t===r)return!0;if(!t.parentNode)return!1;t.parentNode instanceof ShadowRoot?t=t.parentNode.host:t=t.parentNode}return!1},d=(n,r,t)=>{let e=D(r).subscribe;return e(o=>{o.some(s=>_(n,s.target))&&t()})},g={},D=n=>{let r=n.join(","),t=g[r];if(t!==void 0)return t;let e=new Set,o=new MutationObserver(s=>e.forEach(a=>a(s)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:n,subtree:!0});let i={subscribe:s=>(e.add(s),()=>{e.delete(s),e.size===0&&(o.disconnect(),g[r]=void 0)})};return g[r]=i,i},S=(n,r)=>{let t=n;for(;t;){let e=t.closest?.(r);if(e)return e;let o=t.getRootNode?.();if(o===globalThis.document)return;t=o.host}};var h=(n,r,t)=>S(n,`[${r}]`)?.getAttribute(r)??t;var j="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),F=new Set(j),f="en",z={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},V=async(n,r,t="")=>{let e=`${r}/${t}`,o=`${e}${n}.json`;return b[o]??(b[o]=O(n,e)),await b[o]},b={},O=async(n,r)=>{let t=`${r}${n}.json`;try{let e=await fetch(t);if(e.ok)return await e.json()}catch(e){return m("error","intl",`An unknown error occurred while fetching localization strings at ${t}`,{detail:{error:e}}),{}}return n===f?{}:await O(f,r)},v=n=>{let r=h(n,"lang",globalThis.navigator?.language||f);return{lang:r,t9nLocale:k(r)}},k=n=>{let[r,t]=n.split("-"),e=r.toLowerCase(),o=e;return t&&(o=`${e}-${t.toUpperCase()}`),o=z[o]??o,F.has(o)?o:t?k(e):f},T=(n,r,t,e)=>{let o,i=()=>G(n,r(),e).then(s=>{(o?.lang!==s.lang||o.t9nLocale!==s.t9nLocale||o.t9nStrings!==s.t9nStrings)&&t(s),o=s}).catch(s=>{m("error","intl","Error updating component locale state",{detail:{error:s}})});return queueMicrotask(i),d(n,["lang"],i)},G=async(n,r,t=n.localName.split("-").slice(1).join("-"))=>{let{lang:e,t9nLocale:o}=v(n),i=`${r}/${t}/t9n`,a=t===null?{}:await V(o,i,"messages.");return{lang:e,t9nLocale:o,t9nStrings:a}};var $=n=>R(void 0,n);var E=class extends x{constructor(r,t){super(r);let e=this.exports;try{L(this.component);let o=t(this.component,this),i=this.exports!==e;if(C(o)){i||this.setProvisionalExports(o);let s=o.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a)});this.onLoad(async()=>await s)}else(!i||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},R=P(E);var A="ltr",pt=()=>$((n,r)=>{r.exports=A,r.onLifecycle(()=>{let t=()=>{let e=h(n.el,"dir",A);r.exports=e==="rtl"?"rtl":"ltr"};return t(),d(n.el,["dir"],t)})}),dt=n=>(r={})=>$((t,e)=>{let o=v(t.el),i={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},s=t;e.onLifecycle(()=>T(t.el,()=>n("./assets"),({t9nLocale:c,t9nStrings:l,lang:u})=>{let p={...l,_lang:u,_t9nLocale:c,_loading:!1};e.exports=p;let y=l.componentLabel;typeof y=="string"&&"label"in t&&t.label==null&&(t.label??=y),a(s.messageOverrides)},r.name));let a=c=>{let l=e.exports,u=l._original??l,p=M(u,c);c&&(p._original=u),e.exports=p};return"messageOverrides"in s&&e.onUpdate(c=>{c.has("messageOverrides")&&a(s.messageOverrides)}),r.blocking?(e.setProvisionalExports(i,!1),e.ready):i}),M=(n,r)=>{if(!r)return n;let t={...n};return Object.entries(r).forEach(([e,o])=>{n[e]!==void 0&&(typeof o=="object"?t[e]=M(n[e],o):t[e]=o??n[e])}),t},ht=n=>H,U="arcgisPropertyChange",H=(...n)=>{let r=N(),t=w(U,void 0,r),e=!0;return r.manager.onUpdated(o=>{if(e||!r.el.isConnected){e=!1;return}for(let i of n)o.has(i)&&t.emit({name:i})}),t};export{pt as a,dt as b,ht as c};
3
+ v1.2.0-next.90 */
4
+ import{a as P}from"./ZNG2SHDX.js";import{a as C,b as L,c as N,n as m,q as w,s as x}from"./BVRG4SP2.js";var _=(n,r)=>{let t=n;for(;t;){if(t===r)return!0;if(!t.parentNode)return!1;t.parentNode instanceof ShadowRoot?t=t.parentNode.host:t=t.parentNode}return!1},d=(n,r,t)=>{let e=D(r).subscribe;return e(o=>{o.some(s=>_(n,s.target))&&t()})},g={},D=n=>{let r=n.join(","),t=g[r];if(t!==void 0)return t;let e=new Set,o=new MutationObserver(s=>e.forEach(a=>a(s)));globalThis.document&&o.observe(document.documentElement,{attributes:!0,attributeFilter:n,subtree:!0});let i={subscribe:s=>(e.add(s),()=>{e.delete(s),e.size===0&&(o.disconnect(),g[r]=void 0)})};return g[r]=i,i},S=(n,r)=>{let t=n;for(;t;){let e=t.closest?.(r);if(e)return e;let o=t.getRootNode?.();if(o===globalThis.document)return;t=o.host}};var h=(n,r,t)=>S(n,`[${r}]`)?.getAttribute(r)??t;var j="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),F=new Set(j),f="en",z={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},V=async(n,r,t="")=>{let e=`${r}/${t}`,o=`${e}${n}.json`;return b[o]??(b[o]=O(n,e)),await b[o]},b={},O=async(n,r)=>{let t=`${r}${n}.json`;try{let e=await fetch(t);if(e.ok)return await e.json()}catch(e){return m("error","intl",`An unknown error occurred while fetching localization strings at ${t}`,{detail:{error:e}}),{}}return n===f?{}:await O(f,r)},v=n=>{let r=h(n,"lang",globalThis.navigator?.language||f);return{lang:r,t9nLocale:k(r)}},k=n=>{let[r,t]=n.split("-"),e=r.toLowerCase(),o=e;return t&&(o=`${e}-${t.toUpperCase()}`),o=z[o]??o,F.has(o)?o:t?k(e):f},T=(n,r,t,e)=>{let o,i=()=>G(n,r(),e).then(s=>{(o?.lang!==s.lang||o.t9nLocale!==s.t9nLocale||o.t9nStrings!==s.t9nStrings)&&t(s),o=s}).catch(s=>{m("error","intl","Error updating component locale state",{detail:{error:s}})});return queueMicrotask(i),d(n,["lang"],i)},G=async(n,r,t=n.localName.split("-").slice(1).join("-"))=>{let{lang:e,t9nLocale:o}=v(n),i=`${r}/${t}/t9n`,a=t===null?{}:await V(o,i,"messages.");return{lang:e,t9nLocale:o,t9nStrings:a}};var $=n=>R(void 0,n);var E=class extends x{constructor(r,t){super(r);let e=this.exports;try{L(this.component);let o=t(this.component,this),i=this.exports!==e;if(C(o)){i||this.setProvisionalExports(o);let s=o.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a)});this.onLoad(async()=>await s)}else(!i||o!==void 0)&&(this.exports=o),queueMicrotask(()=>super.catchUpLifecycle())}catch(o){this.P.reject(o)}}catchUpLifecycle(){}},R=P(E);var A="ltr",pt=()=>$((n,r)=>{r.exports=A,r.onLifecycle(()=>{let t=()=>{let e=h(n.el,"dir",A);r.exports=e==="rtl"?"rtl":"ltr"};return t(),d(n.el,["dir"],t)})}),dt=n=>(r={})=>$((t,e)=>{let o=v(t.el),i={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},s=t;e.onLifecycle(()=>T(t.el,()=>n("./assets"),({t9nLocale:c,t9nStrings:l,lang:u})=>{let p={...l,_lang:u,_t9nLocale:c,_loading:!1};e.exports=p;let y=l.componentLabel;typeof y=="string"&&"label"in t&&t.label==null&&(t.label??=y),a(s.messageOverrides)},r.name));let a=c=>{let l=e.exports,u=l._original??l,p=M(u,c);c&&(p._original=u),e.exports=p};return"messageOverrides"in s&&e.onUpdate(c=>{c.has("messageOverrides")&&a(s.messageOverrides)}),r.blocking?(e.setProvisionalExports(i,!1),e.ready):i}),M=(n,r)=>{if(!r)return n;let t={...n};return Object.entries(r).forEach(([e,o])=>{n[e]!==void 0&&(typeof o=="object"?t[e]=M(n[e],o):t[e]=o??n[e])}),t},ht=n=>H,U="arcgisPropertyChange",H=(...n)=>{let r=N(),t=w(U,void 0,r),e=!0;return r.manager.onUpdated(o=>{if(e||!r.el.isConnected){e=!1;return}for(let i of n)o.has(i)&&t.emit({name:i})}),t};export{pt as a,dt as b,ht as c};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{a}from"./UFQPBNYK.js";import"./3B3OIZEK.js";export default a();
3
+ v1.2.0-next.90 */
4
+ import{a}from"./OM4MEPSI.js";import"./ZGUWAA6F.js";export default a();
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import t from"./Y73DSLSH.js";import s from"./BD4YSI7T.js";import"./TROVOKKK.js";import r from"./OPXAIIZK.js";import q from"./I2OT2UEW.js";import o from"./VRQ7ODLG.js";import n from"./AJ7DU4V6.js";import k from"./TZEJGGMP.js";import j from"./65LHCHMR.js";import i from"./MZZTD6PN.js";import"./UUJ3JDES.js";import h from"./7RCFEJZC.js";import e from"./EHK6M3PO.js";import"./YYF4BJBQ.js";import"./AN2WTXXJ.js";import c from"./LWVZYCKH.js";import b from"./WTAGTHJW.js";import{a as _,c as S,d as C}from"./DPTE6D42.js";import"./3L5NS2LQ.js";import{a as f}from"./KAYA4ZTC.js";import"./KP77XLIZ.js";import"./BB523KD5.js";import"./SJFOQCOK.js";import"./JQVW5XBI.js";import"./OZP5KS6P.js";import"./OU3I5EN5.js";import"./WUS73OAH.js";import"./HEYQVTVN.js";import"./KJ6WUY47.js";import"./JR2J5EZZ.js";import"./INH376YU.js";import"./MCIYK4Q4.js";import"./AZC4BG5V.js";import"./UQOUOSK6.js";import"./K4JRCKLV.js";import"./I3IXSZ23.js";import"./6CQAD7LC.js";import"./HLSQMG5J.js";import"./CXJ5QRWW.js";import"./JJFDULY3.js";import"./HZWDEXZI.js";import{b as v}from"./ML7AB5HA.js";import{F as a,G as l,H as g,J as p,h as m,i as u,r as d}from"./WEY5WEM2.js";import"./3B3OIZEK.js";export default $arcgis.t(([,,,{p:w,q:L,s:n},,,,{g:O,h:k},,{b:I},{a:b,b:x},,,{a:y}])=>{var E=m`/** @license
3
+ v1.2.0-next.90 */
4
+ import t from"./BVAJKPYO.js";import s from"./KAAYAMPB.js";import"./SJSJEZIS.js";import r from"./5BDXRQGC.js";import q from"./SGZC7V7N.js";import o from"./U3RXZWYP.js";import n from"./QZBLKYC7.js";import k from"./ZKLHJ6UY.js";import j from"./QXZJYYLH.js";import i from"./HSTKJ4EJ.js";import"./LXPF3CRE.js";import h from"./6BNTXUKU.js";import e from"./455TZ4RM.js";import"./YP7YM2X3.js";import"./QQSSFODB.js";import c from"./ALT3WNKP.js";import b from"./ZSSBKLW4.js";import{a as _,c as S,d as C}from"./6YHC3QYS.js";import"./U5B74HAP.js";import{a as f}from"./QMSBJMWC.js";import"./76PLP63F.js";import"./ZNG2SHDX.js";import"./2QXPV6MJ.js";import"./AIHSOICZ.js";import"./ON3LYFYX.js";import"./IMOD7IV2.js";import"./LDMBWRJ2.js";import"./MJTQGN6E.js";import"./DCWUWXLG.js";import"./BISCMLCA.js";import"./MOIOUDYG.js";import"./JVQCHCLL.js";import"./DP5DN2BH.js";import"./7WSQSV4F.js";import"./VNSE5CSU.js";import"./RGHHGDBP.js";import"./N5FFLPE4.js";import"./SJGI4QUN.js";import"./VN7UMJC7.js";import"./ZRMBGS4Y.js";import"./TI77ZOKU.js";import{b as v}from"./62UID2KL.js";import{F as a,G as l,H as g,J as p,h as m,i as u,r as d}from"./BVRG4SP2.js";import"./ZGUWAA6F.js";export default $arcgis.t(([,,,{p:w,q:L,s:n},,,,{g:x,h:O},,{b:I},{a:b,b:k},,,{a:y}])=>{var E=m`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -82,4 +82,4 @@ solution-deployed-card-panel {
82
82
 
83
83
  solution-details-panel {
84
84
  scroll-margin-top: 3rem;
85
- }`,T=class extends g{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._activeTab="all-solutions",this._translations=f({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${L}`,this._allCards=[],this._allShell=a(),this._allTab=a(),this._allTabTitle=a(),this._resourcesTab=a(),this._resourcesTabTitle=a(),this._categories=[],this._configContextProvider=_({context:C}),this._delay=!1,this._deployAppNav=a(),this._deployedCardPanel=a(),this._deployedCardTab=a(),this._deployedCardTabTitle=a(),this._detailsShell=a(),this._detailsTab=a(),this._detailsTabTitle=a(),this._forceInit=!1,this._getSuggested=!1,this._isMobileContextProvider=_({context:S}),this._mySolutionsShell=a(),this._mySolutionsTab=a(),this._mySolutionsTabTitle=a(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=d(),this.detailsCardSelected=d(),this.deployedCardSelected=d(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployProgressEnd",this._deployProgressEnd),this.listenOn(window,"navTabSelected",this._setActiveTab),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:[5,{},{type:Boolean}],authentication:[16,{},{state:!0}],_isLoaded:[16,{},{state:!0}],isMobile:[16,{},{state:!0}],_activeTab:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=E}get _telemetry(){return this._configContextProvider.value?.telemetrySession}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this._forceInit=!0,this._isLoaded=!1,this._cardsFetcherDeployed&&await this._getDeployedSolutions(),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(o=>o.id===t.tabTitleOrId?(s=o,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}break;case"details":if(this._allCards){let s=O(this._allCards,t.tabTitleOrId);s=s||k(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),!0}else return this._initTab=t,this._initFilters=e,!1}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){this.useLocalAppConfig&&(this.appConfig=I)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return u`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header .useLocalAppConfig=${this.useLocalAppConfig} ${l(this._deployAppNav)}></solutions-deploy-app-nav>${this._isSearchToolbarShowing()&&u`<div class="border" slot=header></div>`||""}<solutions-searchsort-toolbar .isMobile=${this.isMobile} slot=header></solutions-searchsort-toolbar><calcite-loader class=${p(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${p(e)} scale=l><calcite-tab-nav class="display-none" slot=title-group><calcite-tab-title ${l(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${l(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${l(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${l(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${l(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${l(this._allTab)}><solutions-all-shell class="height-100" ${l(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${l(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._resourcesTab)}><solutions-resources-shell class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${l(this._detailsTab)}><solution-details-panel class="height-100" ${l(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${l(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></calcite-shell>`}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=y.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardsFetcherDeployed=new b(e.locale,e.orgUrl,e.portalUrl),this._cardsFetcher=new b(e.locale,e.orgUrl,e.portalUrl),await this._getSolutions(e.primarySolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,await this._initializeTelemetry(),this._isLoaded=!0,this._initTab&&(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0)}_mediaQueryChange(t){this.isMobile=t.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setActiveTab(t){let i=t.detail.tabType,s=this._activeTab!==i;switch(this._activeTab=i,s&&this._logTabViewTelemetry(i),i){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}i!=="details"&&i!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(i),this.deployAppTabSelected.emit(i))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=n.ALL_SOLUTIONS;break;case"deployments":i=n.DEPLOYMENTS;break;case"resources":i=n.RESOURCES;break;case"details":i=n.SOLUTION_DETAILS;break;case"deployed-card":i=n.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let r=e;s.push(r.title||""),s.push(r.deployCommonId||""),s.push(r.deployVersion||"")}let o=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:o,dimensions:s.length>0?s:void 0})}}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard)}_deployProgressEnd(){this._activeTab="deployments",this._mySolutionsTabTitle.value.selected=!0,this._mySolutionsTab.value.selected=!0}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t){let e=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested},t,"",this._configContextProvider.value.userSession,{num:1e3});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards),this._allCards}async _getDeployedSolutions(){let t=this._configContextProvider.value.authentication,e=this._configContextProvider.value.userSession;t&&e&&t.IsSignedIn&&(this._deployedSolutions=await x(t,e,this._cardsFetcher,this._cardsFetcherDeployed,w,"created"))}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry,o=t.offerType,r=t.searchTerm,A="",c=t.sortField,h=t.owner;e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),r&&(e=e?{...e,searchTerm:r}:{searchTerm:r}),e&&(e={...e,displayValue:A}),c&&(e=e?{...e,sortType:c}:{sortType:c}),o&&(c=o.toLowerCase(),e=e?{...e,sortType:c}:{sortType:c}),h&&(e=e?{...e,owner:h}:{owner:h})}return e}};v("solutions-deploy-app",T);return T},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",b,c,e,h,i,j,k,n,o,q,r,s,t)
85
+ }`,T=class extends g{constructor(){super(),this.initTitleOrId="",this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._activeTab="all-solutions",this._translations=f({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${L}`,this._allCards=[],this._allShell=a(),this._allTab=a(),this._allTabTitle=a(),this._resourcesTab=a(),this._resourcesTabTitle=a(),this._categories=[],this._configContextProvider=_({context:C}),this._delay=!1,this._deployAppNav=a(),this._deployedCardPanel=a(),this._deployedCardTab=a(),this._deployedCardTabTitle=a(),this._detailsShell=a(),this._detailsTab=a(),this._detailsTabTitle=a(),this._forceInit=!1,this._getSuggested=!1,this._isMobileContextProvider=_({context:S}),this._mySolutionsShell=a(),this._mySolutionsTab=a(),this._mySolutionsTabTitle=a(),this._sortField="relevance",this._sortOrder="desc",this._telemetryManager=new y,this.deployAppTabSelected=d(),this.detailsCardSelected=d(),this.deployedCardSelected=d(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployProgressEnd",this._deployProgressEnd),this.listenOn(window,"navTabSelected",this._setActiveTab),this._mediaQueryChange=this._mediaQueryChange.bind(this)}static{this.properties={appConfig:1,initTab:1,initTitleOrId:1,sortType:1,useLocalAppConfig:[5,{},{type:Boolean}],authentication:[16,{},{state:!0}],_isLoaded:[16,{},{state:!0}],isMobile:[16,{},{state:!0}],_activeTab:[16,{},{state:!0}],_translations:[16,{},{state:!0}]}}static{this.styles=E}get _telemetry(){return this._configContextProvider.value?.telemetrySession}async selectTab(t,e){if(this._isLoaded||this._forceInit){let i=this._getDefaultSearchOptions(e);switch(t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,i&&await this._allShell.value?.searchSolutions(i);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":if(this._forceInit=!0,this._isLoaded=!1,this._cardsFetcherDeployed&&await this._getDeployedSolutions(),this._deployedSolutions?.cards?.length>0){let s;this._deployedSolutions.cards.some(o=>o.id===t.tabTitleOrId?(s=o,this.deployedCardSelected.emit({card:s}),!0):!1),this._isLoaded=!0,this._forceInit=!1}break;case"details":if(this._allCards){let s=x(this._allCards,t.tabTitleOrId);s=s||O(this._allCards,t.tabTitleOrId),s?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(s)):(t.tabType="all-solutions",this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0)}break;case"deployments":this._mySolutionsTab.value.selected=!0,this._mySolutionsTabTitle.value.selected=!0,i&&await this._mySolutionsShell.value?.searchSolutions(i);break}return this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs(),!0}else return this._initTab=t,this._initFilters=e,!1}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this._mediaQuery.addEventListener("change",this._mediaQueryChange),this._mediaQueryChange(this._mediaQuery)}async load(){this.useLocalAppConfig&&(this.appConfig=I)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return u`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} .initTab=${this.initTab} @authInit=${this._handleAuthInit} slot=header .useLocalAppConfig=${this.useLocalAppConfig} ${l(this._deployAppNav)}></solutions-deploy-app-nav>${this._isSearchToolbarShowing()&&u`<div class="border" slot=header></div>`||""}<solutions-searchsort-toolbar .isMobile=${this.isMobile} slot=header></solutions-searchsort-toolbar><calcite-loader class=${p(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${p(e)} scale=l><calcite-tab-nav class="display-none" slot=title-group><calcite-tab-title ${l(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title><calcite-tab-title ${l(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title><calcite-tab-title ${l(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${l(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${l(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${l(this._allTab)}><solutions-all-shell class="height-100" ${l(this._allShell)}></solutions-all-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${l(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._resourcesTab)}><solutions-resources-shell class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${l(this._detailsTab)}><solution-details-panel class="height-100" ${l(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${l(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${l(this._deployedCardPanel)}></solution-deployed-card-panel></calcite-tab></calcite-tabs></calcite-shell>`}disconnectedCallback(){super.disconnectedCallback(),this._mediaQuery?.removeEventListener("change",this._mediaQueryChange)}async _handleAuthInit(t){let e=t.detail;e.telemetrySession||(e.telemetrySession=y.getDisabledSession()),this._configContextProvider.setValue(e),e.authentication&&(this.authentication=e.authentication),this._cardsFetcherDeployed=new b(e.locale,e.orgUrl,e.portalUrl),this._cardsFetcher=new b(e.locale,e.orgUrl,e.portalUrl),await this._getSolutions(e.primarySolutionsGroupId),this._configContextProvider.value.allCards=this._allCards,this._configContextProvider.value.anonAgolSession=this._cardsFetcher.anonAgolSession,this._configContextProvider.value.agolPortalUrl=this._cardsFetcher.agolPortalUrl,await this._initializeTelemetry(),this._isLoaded=!0,this._initTab&&(this.selectTab(this._initTab,this._initFilters),this._logTabViewTelemetry(this._initTab.tabType),this._initTab=void 0,this._initFilters=void 0)}_mediaQueryChange(t){this.isMobile=t.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setActiveTab(t){let i=t.detail.tabType,s=this._activeTab!==i;switch(this._activeTab=i,s&&this._logTabViewTelemetry(i),i){case"all-solutions":this._allTabTitle.value?.click();break;case"deployments":this._mySolutionsTabTitle.value?.click();break;case"resources":this._resourcesTabTitle.value?.click();break;case"deployed-card":this._deployedCardTabTitle.value?.click();break;case"details":this._detailsTabTitle.value?.click();break}i!=="details"&&i!=="deployed-card"&&(this._deployAppNav.value.activateMenuItem(i),this.deployAppTabSelected.emit(i))}_logTabViewTelemetry(t,e){let i;switch(t){case"all-solutions":i=n.ALL_SOLUTIONS;break;case"deployments":i=n.DEPLOYMENTS;break;case"resources":i=n.RESOURCES;break;case"details":i=n.SOLUTION_DETAILS;break;case"deployed-card":i=n.DEPLOYMENTS;break}if(!((t==="details"||t==="deployed-card")&&!e)&&i){let s=[];if((t==="details"||t==="deployed-card")&&e){let r=e;s.push(r.title||""),s.push(r.deployCommonId||""),s.push(r.deployVersion||"")}let o=t==="deployed-card"?"Open":"View";this._telemetry?.logEvent({category:i,action:o,dimensions:s.length>0?s:void 0})}}_detailsCardSelected(t){this._activeTab="details",this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail&&(this._selectedDetailsCard=t.detail),this._logTabViewTelemetry("details",this._selectedDetailsCard)}_deployedCardSelected(t){this._activeTab="deployed-card",this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems(),t?.detail?.card&&(this._selectedDeployedCard=t.detail.card),this._logTabViewTelemetry("deployed-card",this._selectedDeployedCard)}_deployProgressEnd(){this._activeTab="deployments",this._mySolutionsTabTitle.value.selected=!0,this._mySolutionsTab.value.selected=!0}async _initializeTelemetry(){let t=this._configContextProvider.value;if(!this.authentication||!t)return;let e=await this._telemetryManager.initializeTelemetry(this.authentication,t);this._configContextProvider.value.telemetrySession=e}async _getSolutions(t){let e=await this._cardsFetcher?.requestAvailableSolutionCards({q:this._agoTerms,filter:"type:Solution",sortField:this._sortField,sortOrder:this._sortOrder,nextStart:-1,categories:this._categories,delay:this._delay,getSuggested:this._getSuggested},t,"",this._configContextProvider.value.userSession,{num:1e3});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards),this._allCards}async _getDeployedSolutions(){let t=this._configContextProvider.value.authentication,e=this._configContextProvider.value.userSession;t&&e&&t.IsSignedIn&&(this._deployedSolutions=await k(t,e,this._cardsFetcher,this._cardsFetcherDeployed,w,"created"))}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_isSearchToolbarShowing(){return this._activeTab==="all-solutions"||this._activeTab==="deployments"&&this.authentication?.IsSignedIn===!0}_getDefaultSearchOptions(t){let e;if(t){let i=t.domain,s=t.industry,o=t.offerType,r=t.searchTerm,A="",c=t.sortField,h=t.owner;e=i||s?{type:i?"domain":s?"industry":""}:void 0,i&&(e=e?{...e,domain:i}:{domain:i}),s&&(e=e?{...e,industry:s}:{industry:s}),r&&(e=e?{...e,searchTerm:r}:{searchTerm:r}),e&&(e={...e,displayValue:A}),c&&(e=e?{...e,sortType:c}:{sortType:c}),o&&(c=o.toLowerCase(),e=e?{...e,sortType:c}:{sortType:c}),h&&(e=e?{...e,owner:h}:{owner:h})}return e}};v("solutions-deploy-app",T);return T},"identity/IdentityManager","identity/OAuthInfo","portal/Portal",b,c,e,h,i,j,k,n,o,q,r,s,t)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import"./3B3OIZEK.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.2.0-next.90 */
4
+ import"./ZGUWAA6F.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.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import e from"./HXI3VCF2.js";import d from"./H56KVHCV.js";import b from"./JOYFIW27.js";import a from"./5YZVE2ML.js";import{a as l}from"./AN2WTXXJ.js";import{a as w}from"./HPN7MPQR.js";import{b as v}from"./TGBDMMGS.js";import"./KP77XLIZ.js";import"./BB523KD5.js";import{F as p,G as g,H as f,J as c,h,i as o,u as m}from"./WEY5WEM2.js";import"./3B3OIZEK.js";export default $arcgis.t(([n,_,b,L,,,{b:y},{t:u}])=>{var C=h`@layer{instant-apps-interactive-legend{display:block;height:100%}instant-apps-interactive-legend .esri-legend{height:100%;background-color:var(--calcite-color-foreground-1)!important;color:var(--calcite-color-text-1)!important}instant-apps-interactive-legend .esri-legend.esri-component.esri-widget.esri-widget--panel{margin:0}instant-apps-interactive-legend .esri-legend__layer,instant-apps-interactive-legend .esri-legend__layer-body{margin-left:0!important}instant-apps-interactive-legend .esri-legend__layer-row{box-sizing:border-box!important}}`,I={esri:{base:"esri-legend",widget:"esri-widget",widgetPanel:"esri-widget--panel",component:"esri-component"}},d=class extends f{constructor(){super(...arguments),this._messages=w({name:"instant-apps-interactive-legend"}),this.ref=p(),this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.compact=!1}static{this.properties={handles:16,legendvm:16,view:0,zoomTo:5,featureCount:5,filterMode:0,compact:5}}static{this.styles=C}static{this.shadowRootOptions=m}async load(){this.compactHandler(),new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0}),await this.initializeModules()}willUpdate(e){(e.has("handles")||e.has("view"))&&this.init(),e.has("compact")&&(this.hasUpdated||this.compact)&&this.compactHandler()}async initializeModules(){this.handles=new _;let e=new b({});return await n.whenOnce(()=>e?.messages),this._messages={...this._messages,...e.messages},await Promise.resolve()}async init(){if(!(!this.view||!this.handles))try{let{on:e,whenOnce:i}=n,s=this.view?.map?.allLayers?.map(async r=>await r.load());await Promise.allSettled(s),await i(()=>this.view?.ready);let t={view:this.view,respectLayerDefinitionExpression:!0},a=new L(t);this.legendvm=a,this.handles.add([e(()=>this.legendvm?.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this?.legendvm?.activeLayerInfos))])}catch(e){console.error('Failed at "init": ',e)}}compactHandler(){y.set("compact",this.compact)}_refreshActiveLayerInfos(e){e&&(this.handles.removeAll(),e.forEach(i=>this._renderOnActiveLayerInfoChange(i)))}render(){let{base:e,component:i,widget:s,widgetPanel:t}=I.esri,a=[e,i,s,t].filter(Boolean).map(r=>r).join(" ");return l("interactive-legend",o`<div class=${c(a)}>${this.legendvm?l("interactive-legend-classic",o`<instant-apps-interactive-legend-classic class=${c(u(this.el))} .legendvm=${this.legendvm} .zoomTo=${this.zoomTo} .filterMode=${this.filterMode} .featureCount=${this.featureCount} .messages=${this._messages} ${g(this.ref)}></instant-apps-interactive-legend-classic>`):null}</div>`)}_renderOnActiveLayerInfoChange(e){let{on:i}=n,s=i(()=>e.children,"change",()=>e.children.forEach(t=>this._renderOnActiveLayerInfoChange(t)));this.handles.add(s,`children_${e?.layer?.uid}`),e.children.forEach(t=>{this._renderOnActiveLayerInfoChange(t),t?.children?.length>0&&t?.children?.forEach(a=>this._renderOnActiveLayerInfoChange(a))})}};v("instant-apps-interactive-legend",d);return d},"core/reactiveUtils","core/Handles","widgets/Legend","widgets/Legend/LegendViewModel",a,b,d,e)
3
+ v1.2.0-next.90 */
4
+ import e from"./ATHPXULU.js";import d from"./NLZXS7RS.js";import b from"./GA3HHDOK.js";import a from"./NUGVN2NT.js";import{a as l}from"./QQSSFODB.js";import{a as w}from"./NZVAVBSY.js";import{b as v}from"./NGK5LXB4.js";import"./76PLP63F.js";import"./ZNG2SHDX.js";import{F as p,G as g,H as f,J as c,h,i as o,u as m}from"./BVRG4SP2.js";import"./ZGUWAA6F.js";export default $arcgis.t(([n,_,b,L,,,{b:y},{t:u}])=>{var C=h`@layer{instant-apps-interactive-legend{display:block;height:100%}instant-apps-interactive-legend .esri-legend{height:100%;background-color:var(--calcite-color-foreground-1)!important;color:var(--calcite-color-text-1)!important}instant-apps-interactive-legend .esri-legend.esri-component.esri-widget.esri-widget--panel{margin:0}instant-apps-interactive-legend .esri-legend__layer,instant-apps-interactive-legend .esri-legend__layer-body{margin-left:0!important}instant-apps-interactive-legend .esri-legend__layer-row{box-sizing:border-box!important}}`,I={esri:{base:"esri-legend",widget:"esri-widget",widgetPanel:"esri-widget--panel",component:"esri-component"}},d=class extends f{constructor(){super(...arguments),this._messages=w({name:"instant-apps-interactive-legend"}),this.ref=p(),this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.compact=!1}static{this.properties={handles:16,legendvm:16,view:0,zoomTo:5,featureCount:5,filterMode:0,compact:5}}static{this.styles=C}static{this.shadowRootOptions=m}async load(){this.compactHandler(),new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0}),await this.initializeModules()}willUpdate(e){(e.has("handles")||e.has("view"))&&this.init(),e.has("compact")&&(this.hasUpdated||this.compact)&&this.compactHandler()}async initializeModules(){this.handles=new _;let e=new b({});return await n.whenOnce(()=>e?.messages),this._messages={...this._messages,...e.messages},await Promise.resolve()}async init(){if(!(!this.view||!this.handles))try{let{on:e,whenOnce:i}=n,s=this.view?.map?.allLayers?.map(async r=>await r.load());await Promise.allSettled(s),await i(()=>this.view?.ready);let t={view:this.view,respectLayerDefinitionExpression:!0},a=new L(t);this.legendvm=a,this.handles.add([e(()=>this.legendvm?.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this?.legendvm?.activeLayerInfos))])}catch(e){console.error('Failed at "init": ',e)}}compactHandler(){y.set("compact",this.compact)}_refreshActiveLayerInfos(e){e&&(this.handles.removeAll(),e.forEach(i=>this._renderOnActiveLayerInfoChange(i)))}render(){let{base:e,component:i,widget:s,widgetPanel:t}=I.esri,a=[e,i,s,t].filter(Boolean).map(r=>r).join(" ");return l("interactive-legend",o`<div class=${c(a)}>${this.legendvm?l("interactive-legend-classic",o`<instant-apps-interactive-legend-classic class=${c(u(this.el))} .legendvm=${this.legendvm} .zoomTo=${this.zoomTo} .filterMode=${this.filterMode} .featureCount=${this.featureCount} .messages=${this._messages} ${g(this.ref)}></instant-apps-interactive-legend-classic>`):null}</div>`)}_renderOnActiveLayerInfoChange(e){let{on:i}=n,s=i(()=>e.children,"change",()=>e.children.forEach(t=>this._renderOnActiveLayerInfoChange(t)));this.handles.add(s,`children_${e?.layer?.uid}`),e.children.forEach(t=>{this._renderOnActiveLayerInfoChange(t),t?.children?.length>0&&t?.children?.forEach(a=>this._renderOnActiveLayerInfoChange(a))})}};v("instant-apps-interactive-legend",d);return d},"core/reactiveUtils","core/Handles","widgets/Legend","widgets/Legend/LegendViewModel",a,b,d,e)
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.90 */
4
+ import{a,b}from"./JMWUJQK2.js";import"./QXLARMHL.js";import"./LZXQZANM.js";import"./SR3UD4TQ.js";import"./IPN5XMV7.js";import"./ZGUWAA6F.js";export{a as EventEditorTypes,b as buildSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{d as c}from"./6CQAD7LC.js";import{a as y}from"./JJFDULY3.js";var u=t=>{let[[e,n],[r,o]]=t;return f(e,n,r,o)},g=t=>t.map(e=>e.join(", ")).join(", ");function f(t,e,n,r,o=4326){return{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:{wkid:o}}}function h(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var m={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function E(t){let e=t.portalSelf,n=e.defaultExtent,r=y(e,"helperServices.geometry.url");if(!r||!n)return Promise.resolve(m);let o=`${r}/project`,i={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),transformForward:!1,transformation:"",inSR:n.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(i.authentication=t.authentication),c(o,i).then(a=>{let x=a.geometries[0];return{xmin:x.xmin,ymin:x.ymin,xmax:x.xmax,ymax:x.ymax,spatialReference:{wkid:4326}}}).catch(a=>m)}var d=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);var S=t=>{let e=[].concat(...t);for(let n=0;n<e.length;n+=2){let[r,o]=[e[n],e[n+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},B=t=>{let e=1/0,n=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[i,a]of s)e=Math.min(e,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a);return[[e,n],[r,o]]};export{u as a,g as b,h as c,E as d,d as e,S as f,B as g};
3
+ v1.2.0-next.90 */
4
+ import{d as c}from"./N5FFLPE4.js";import{a as y}from"./ZRMBGS4Y.js";var u=t=>{let[[e,n],[r,o]]=t;return f(e,n,r,o)},g=t=>t.map(e=>e.join(", ")).join(", ");function f(t,e,n,r,o=4326){return{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:{wkid:o}}}function h(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var m={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function E(t){let e=t.portalSelf,n=e.defaultExtent,r=y(e,"helperServices.geometry.url");if(!r||!n)return Promise.resolve(m);let o=`${r}/project`,i={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),transformForward:!1,transformation:"",inSR:n.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(i.authentication=t.authentication),c(o,i).then(a=>{let x=a.geometries[0];return{xmin:x.xmin,ymin:x.ymin,xmax:x.xmax,ymax:x.ymax,spatialReference:{wkid:4326}}}).catch(a=>m)}var d=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);var S=t=>{let e=[].concat(...t);for(let n=0;n<e.length;n+=2){let[r,o]=[e[n],e[n+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},B=t=>{let e=1/0,n=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[i,a]of s)e=Math.min(e,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a);return[[e,n],[r,o]]};export{u as a,g as b,h as c,E as d,d as e,S as f,B as g};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{a as s}from"./IPG4H527.js";import{a as l,b as p}from"./5ORZ2NKJ.js";import{d as m}from"./6CQAD7LC.js";import"./CXJ5QRWW.js";import{a}from"./JJFDULY3.js";import"./3B3OIZEK.js";async function D(e){b(e);let{entity:t,format:o,context:r,progressCallback:n}=e;n&&n(p.PENDING);let c=w(e),{xmin:x,xmax:f,ymin:d,ymax:u}=c,{wkid:g}=c.spatialReference,i=Object.assign({},r.requestOptions);return i.httpMethod="GET",i.params={bbox:`${x},${d},${f},${u}`,bboxSR:`${g}`,f:"image",format:o,mosaicRule:'{"ascending":true,"mosaicMethod":"esriMosaicNorthwest","mosaicOperation":"MT_FIRST"}'},{type:"blob",blob:await m(`${t.url}/exportImage`,i),filename:h(t,o)}}function b(e){let{geometry:t}=e;if(t&&t.type!=="extent")throw new s("fetchExportImageDownloadFileUrl","Only extent geometric filters are supported for this type of download")}function w(e){let{entity:t,geometry:o}=e,r=a(t,"extendedProps.server.extent"),n=null;if(o?n=o:r&&(n=r),!n)throw new s("fetchExportImageDownloadFileUrl","Extent required for this download operation");return n}function h(e,t){let o=e.name||a(e,"extendedProps.server.name"),r=t.includes(l.PNG)?l.PNG:t;return`${o}.${r}`}export{D as fetchExportImageDownloadFile};
3
+ v1.2.0-next.90 */
4
+ import{a as s}from"./B2RDKFPI.js";import{a as l,b as p}from"./KRBUSXWS.js";import{d as m}from"./N5FFLPE4.js";import"./VN7UMJC7.js";import{a}from"./ZRMBGS4Y.js";import"./ZGUWAA6F.js";async function D(e){b(e);let{entity:t,format:o,context:r,progressCallback:n}=e;n&&n(p.PENDING);let c=w(e),{xmin:x,xmax:f,ymin:d,ymax:u}=c,{wkid:g}=c.spatialReference,i=Object.assign({},r.requestOptions);return i.httpMethod="GET",i.params={bbox:`${x},${d},${f},${u}`,bboxSR:`${g}`,f:"image",format:o,mosaicRule:'{"ascending":true,"mosaicMethod":"esriMosaicNorthwest","mosaicOperation":"MT_FIRST"}'},{type:"blob",blob:await m(`${t.url}/exportImage`,i),filename:h(t,o)}}function b(e){let{geometry:t}=e;if(t&&t.type!=="extent")throw new s("fetchExportImageDownloadFileUrl","Only extent geometric filters are supported for this type of download")}function w(e){let{entity:t,geometry:o}=e,r=a(t,"extendedProps.server.extent"),n=null;if(o?n=o:r&&(n=r),!n)throw new s("fetchExportImageDownloadFileUrl","Extent required for this download operation");return n}function h(e,t){let o=e.name||a(e,"extendedProps.server.name"),r=t.includes(l.PNG)?l.PNG:t;return`${o}.${r}`}export{D as fetchExportImageDownloadFile};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import h from"./76EVEFWQ.js";import{a as D}from"./SMUEGYQR.js";import e from"./UC4INX3J.js";import"./NA2OZOYX.js";import"./ECUFPUPR.js";import c from"./6UEDOVUE.js";import b from"./YBROK33Q.js";import a from"./WTAGTHJW.js";import{a as E}from"./DPTE6D42.js";import"./3L5NS2LQ.js";import{a as L}from"./KAYA4ZTC.js";import"./KP77XLIZ.js";import"./BB523KD5.js";import"./SJFOQCOK.js";import"./JQVW5XBI.js";import"./OZP5KS6P.js";import"./OU3I5EN5.js";import"./WUS73OAH.js";import"./HEYQVTVN.js";import"./KJ6WUY47.js";import"./JR2J5EZZ.js";import"./INH376YU.js";import"./MCIYK4Q4.js";import"./AZC4BG5V.js";import"./UQOUOSK6.js";import"./K4JRCKLV.js";import"./I3IXSZ23.js";import"./6CQAD7LC.js";import"./HLSQMG5J.js";import"./CXJ5QRWW.js";import"./JJFDULY3.js";import"./HZWDEXZI.js";import{b as x,c as k}from"./ML7AB5HA.js";import{F as p,G as g,H as $,J as d,h as y,i as o,l as f,r as S,s as w,u as v}from"./WEY5WEM2.js";import"./3B3OIZEK.js";export default $arcgis.t(([V,{g:l,i:c,j:r},,{g:T,j:C},{a:I,d:P}])=>{var N=y`@layer{
3
+ v1.2.0-next.90 */
4
+ import h from"./NP47GVHA.js";import{a as D}from"./6L3OX5TO.js";import e from"./HTFZTAIR.js";import"./ULV4RPG3.js";import"./RGH2YLME.js";import c from"./3GR2TJ22.js";import b from"./ZPZHG3PJ.js";import a from"./ZSSBKLW4.js";import{a as E}from"./6YHC3QYS.js";import"./U5B74HAP.js";import{a as L}from"./QMSBJMWC.js";import"./76PLP63F.js";import"./ZNG2SHDX.js";import"./2QXPV6MJ.js";import"./AIHSOICZ.js";import"./ON3LYFYX.js";import"./IMOD7IV2.js";import"./LDMBWRJ2.js";import"./MJTQGN6E.js";import"./DCWUWXLG.js";import"./BISCMLCA.js";import"./MOIOUDYG.js";import"./JVQCHCLL.js";import"./DP5DN2BH.js";import"./7WSQSV4F.js";import"./VNSE5CSU.js";import"./RGHHGDBP.js";import"./N5FFLPE4.js";import"./SJGI4QUN.js";import"./VN7UMJC7.js";import"./ZRMBGS4Y.js";import"./TI77ZOKU.js";import{b as x,c as k}from"./62UID2KL.js";import{F as p,G as g,H as $,J as d,h as y,i as o,l as f,r as S,s as w,u as v}from"./BVRG4SP2.js";import"./ZGUWAA6F.js";export default $arcgis.t(([V,{g:l,i:c,j:r},,{g:T,j:C},{a:I,d:P}])=>{var N=y`@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.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{a as e}from"./MQUZXM3X.js";import"./2NVH2JPO.js";import"./VTADEVDW.js";import"./L5V7TXJC.js";import"./2M7IYY6D.js";import"./4DVLZR3O.js";import"./MXPB23CW.js";import"./QNZQ2S3Y.js";import"./LMEKHDWJ.js";import"./7ZZXQDCK.js";import"./6KDCVN3C.js";import"./HZWDEXZI.js";import"./TCKRUAEA.js";import"./GRKEWE5D.js";import"./FDW5EIT3.js";import{a as t}from"./NHSUVW2K.js";import"./B6WRCMVQ.js";import"./DTTWZ7H6.js";import"./IT57K2KI.js";import"./C5P4T3HC.js";import"./7H56PCCE.js";import"./PQLQF6FF.js";import"./WYB6BTRP.js";import"./3B3OIZEK.js";var f=async(b,a,m)=>{let{themeColors:s}=a;return{type:"Layout",elements:[{type:"Section",labelKey:"statistic.sectionTitle",options:{section:"block",open:!0},elements:[{type:"Control",scope:"/properties/type",labelKey:"statistic.type.label",options:{control:"hub-field-input-tile-select",rules:[void 0,void 0,[{effect:e.SHOW,conditions:[!1]}]],enum:{i18nScope:"statistic.type.enum"}}},{labelKey:"statistic.displayValue",scope:"/properties/value",type:"Control",rule:n,options:{control:"hub-field-input-input"}},{scope:"/properties/dynamicMetric",type:"Control",labelKey:"statistic.dataSource",rule:o,options:{control:"hub-composite-input-service-query-metric"}},{type:"Section",labelKey:"formatting.sectionTitle",scope:"/properties/allowUnitFormatting",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},elements:[{labelKey:"formatting.unit.label",scope:"/properties/unit",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unit.helperText",placement:"bottom"}}},{labelKey:"formatting.unitPosition.label",scope:"/properties/unitPosition",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"formatting.unitPosition.enum"}}}]},{type:"Section",labelKey:"advancedConfig.label",options:{section:"subblock",scale:"m"},rule:o,elements:[{scope:"/properties/serverTimeout",labelKey:"advancedConfig.serverTimeout.label",type:"Control",rule:o,options:{control:"hub-field-input-input",type:"number",helperText:{labelKey:"advancedConfig.serverTimeout.helperText",placement:"bottom"},messages:[{type:"ERROR",keyword:"type",labelKey:"advancedConfig.serverTimeout.errors.type",icon:!0},{type:"ERROR",keyword:"minimum",labelKey:"advancedConfig.serverTimeout.errors.minimum",icon:!0},{type:"ERROR",keyword:"maximum",labelKey:"advancedConfig.serverTimeout.errors.maximum",icon:!0}]}}]}]},{type:"Section",labelKey:"details.sectionTitle",options:{section:"block"},elements:[{labelKey:"details.title",scope:"/properties/cardTitle",type:"Control"},{labelKey:"details.subtitle",scope:"/properties/subtitle",type:"Control"},{labelKey:"details.trailingText.label",scope:"/properties/trailingText",type:"Control",options:{helperText:{labelKey:"details.trailingText.helperText",placement:"bottom"}}},{type:"Section",labelKey:"details.link.sectionTitle",scope:"/properties/allowLink",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},rule:n,elements:[{labelKey:"details.link.sourceLink",scope:"/properties/sourceLink",type:"Control",rule:p,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"errors.sourceLink.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"errors.sourceLink.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"details.link.sourceTitle",scope:"/properties/sourceTitle",type:"Control",rule:p}]},{type:"Control",scope:"/properties/allowDynamicLink",labelKey:"details.allowDynamicLink",rule:o,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]},{type:"Section",labelKey:"appearance.sectionTitle",options:{section:"block"},elements:[{labelKey:"appearance.layout.label",scope:"/properties/layout",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.layout.enum"}}},{labelKey:"appearance.textAlign",scope:"/properties/textAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"appearance.valueColor",scope:"/properties/valueColor",type:"Control",options:{control:"hub-field-input-color",savedColors:s}},{labelKey:"appearance.dropShadow.label",scope:"/properties/dropShadow",type:"Control",rule:i,options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.dropShadow.enum"}}},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:c,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperVizText"}},elements:[{labelKey:"appearance.visualInterest.label",scope:"/properties/visualInterest",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.visualInterest.enum"}}},{labelKey:"appearance.icon.label",scope:"/properties/icon",type:"Control",rule:u,options:{control:"hub-field-input-combobox",items:[{value:t.caretUp,labelKey:"appearance.icon.caretUp.label",icon:t.caretUp},{value:t.caretDown,labelKey:"appearance.icon.caretDown.label",icon:t.caretDown},{value:t.caretDouble,labelKey:"appearance.icon.caretDouble.label",icon:t.caretDouble}],selectionMode:"single"}}]},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:l,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperInfoText"}},elements:[{labelKey:"appearance.popoverText.label",scope:"/properties/popoverText",type:"Control",rule:l,options:{control:"hub-field-input-input",type:"textarea",rows:4}},{labelKey:"appearance.publisherText.label",scope:"/properties/publisherText",type:"Control",rule:l,options:{control:"hub-field-input-input"}}]}]},{type:"Section",labelKey:"sharing.sectionTitle",options:{section:"block"},elements:[{labelKey:"sharing.showShareIcon",scope:"/properties/shareable",type:"Control",options:{helperText:{labelKey:"sharing.showShareIconHelperText"},control:"hub-field-input-switch",layout:"inline-space-between"}},{labelKey:"sharing.shareableByValue",scope:"/properties/shareableByValue",type:"Control",rule:i},{labelKey:"sharing.shareableOnHover.label",scope:"/properties/shareableOnHover",type:"Control",rule:y,options:{control:"hub-field-input-switch",helperText:{labelKey:"sharing.shareableOnHover.helperText.label"},layout:"inline-space-between"}}]}]}},i={effect:e.HIDE,condition:{scope:"/properties/type",schema:{enum:["static","dynamic","itemQuery"]}}},l={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"informational"}}},c={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"simple"}}},u={effect:e.SHOW,condition:{scope:"/properties/visualInterest",schema:{const:"icon"}}},o={condition:{scope:"/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},n={condition:{scope:"/properties/type",schema:{const:"static"}},effect:e.SHOW},y={condition:{scope:"/properties/shareable",schema:{const:!0}},effect:e.SHOW},r={condition:{schema:{const:!0},scope:"/properties/allowUnitFormatting"},effect:e.SHOW},p={condition:{schema:{properties:{type:{const:"static"},allowLink:{const:!0}}}},effect:e.SHOW};export{f as buildUiSchema};
3
+ v1.2.0-next.90 */
4
+ import{a as e}from"./5XHD4KCD.js";import"./E25IHFHG.js";import"./NM4BVJUA.js";import"./PHXS7HK2.js";import"./VDTFMVRT.js";import"./JMWUJQK2.js";import"./QXLARMHL.js";import"./LZXQZANM.js";import"./SR3UD4TQ.js";import"./JR4FDHJV.js";import"./47O2QMUF.js";import"./TI77ZOKU.js";import"./DTILSQW2.js";import"./SM4HOSWX.js";import"./GKB6B6KJ.js";import{a as t}from"./4F26IYVX.js";import"./ZU5DZLL3.js";import"./2FFEMFF4.js";import"./GY72GYNG.js";import"./6TY4OFVQ.js";import"./OY3DZINK.js";import"./ZGTUR4V5.js";import"./IPN5XMV7.js";import"./ZGUWAA6F.js";var f=async(b,a,m)=>{let{themeColors:s}=a;return{type:"Layout",elements:[{type:"Section",labelKey:"statistic.sectionTitle",options:{section:"block",open:!0},elements:[{type:"Control",scope:"/properties/type",labelKey:"statistic.type.label",options:{control:"hub-field-input-tile-select",rules:[void 0,void 0,[{effect:e.SHOW,conditions:[!1]}]],enum:{i18nScope:"statistic.type.enum"}}},{labelKey:"statistic.displayValue",scope:"/properties/value",type:"Control",rule:n,options:{control:"hub-field-input-input"}},{scope:"/properties/dynamicMetric",type:"Control",labelKey:"statistic.dataSource",rule:o,options:{control:"hub-composite-input-service-query-metric"}},{type:"Section",labelKey:"formatting.sectionTitle",scope:"/properties/allowUnitFormatting",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},elements:[{labelKey:"formatting.unit.label",scope:"/properties/unit",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unit.helperText",placement:"bottom"}}},{labelKey:"formatting.unitPosition.label",scope:"/properties/unitPosition",type:"Control",rule:r,options:{helperText:{labelKey:"formatting.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"formatting.unitPosition.enum"}}}]},{type:"Section",labelKey:"advancedConfig.label",options:{section:"subblock",scale:"m"},rule:o,elements:[{scope:"/properties/serverTimeout",labelKey:"advancedConfig.serverTimeout.label",type:"Control",rule:o,options:{control:"hub-field-input-input",type:"number",helperText:{labelKey:"advancedConfig.serverTimeout.helperText",placement:"bottom"},messages:[{type:"ERROR",keyword:"type",labelKey:"advancedConfig.serverTimeout.errors.type",icon:!0},{type:"ERROR",keyword:"minimum",labelKey:"advancedConfig.serverTimeout.errors.minimum",icon:!0},{type:"ERROR",keyword:"maximum",labelKey:"advancedConfig.serverTimeout.errors.maximum",icon:!0}]}}]}]},{type:"Section",labelKey:"details.sectionTitle",options:{section:"block"},elements:[{labelKey:"details.title",scope:"/properties/cardTitle",type:"Control"},{labelKey:"details.subtitle",scope:"/properties/subtitle",type:"Control"},{labelKey:"details.trailingText.label",scope:"/properties/trailingText",type:"Control",options:{helperText:{labelKey:"details.trailingText.helperText",placement:"bottom"}}},{type:"Section",labelKey:"details.link.sectionTitle",scope:"/properties/allowLink",options:{section:"subblock",scale:"m",toggleDisplay:"switch"},rule:n,elements:[{labelKey:"details.link.sourceLink",scope:"/properties/sourceLink",type:"Control",rule:p,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"errors.sourceLink.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"errors.sourceLink.formatError"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"details.link.sourceTitle",scope:"/properties/sourceTitle",type:"Control",rule:p}]},{type:"Control",scope:"/properties/allowDynamicLink",labelKey:"details.allowDynamicLink",rule:o,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]},{type:"Section",labelKey:"appearance.sectionTitle",options:{section:"block"},elements:[{labelKey:"appearance.layout.label",scope:"/properties/layout",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.layout.enum"}}},{labelKey:"appearance.textAlign",scope:"/properties/textAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"appearance.valueColor",scope:"/properties/valueColor",type:"Control",options:{control:"hub-field-input-color",savedColors:s}},{labelKey:"appearance.dropShadow.label",scope:"/properties/dropShadow",type:"Control",rule:i,options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.dropShadow.enum"}}},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:c,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperVizText"}},elements:[{labelKey:"appearance.visualInterest.label",scope:"/properties/visualInterest",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:"appearance.visualInterest.enum"}}},{labelKey:"appearance.icon.label",scope:"/properties/icon",type:"Control",rule:u,options:{control:"hub-field-input-combobox",items:[{value:t.caretUp,labelKey:"appearance.icon.caretUp.label",icon:t.caretUp},{value:t.caretDown,labelKey:"appearance.icon.caretDown.label",icon:t.caretDown},{value:t.caretDouble,labelKey:"appearance.icon.caretDouble.label",icon:t.caretDouble}],selectionMode:"single"}}]},{type:"Section",labelKey:"appearance.styleSpecificSettings.label",rule:l,options:{helperText:{labelKey:"appearance.styleSpecificSettings.helperInfoText"}},elements:[{labelKey:"appearance.popoverText.label",scope:"/properties/popoverText",type:"Control",rule:l,options:{control:"hub-field-input-input",type:"textarea",rows:4}},{labelKey:"appearance.publisherText.label",scope:"/properties/publisherText",type:"Control",rule:l,options:{control:"hub-field-input-input"}}]}]},{type:"Section",labelKey:"sharing.sectionTitle",options:{section:"block"},elements:[{labelKey:"sharing.showShareIcon",scope:"/properties/shareable",type:"Control",options:{helperText:{labelKey:"sharing.showShareIconHelperText"},control:"hub-field-input-switch",layout:"inline-space-between"}},{labelKey:"sharing.shareableByValue",scope:"/properties/shareableByValue",type:"Control",rule:i},{labelKey:"sharing.shareableOnHover.label",scope:"/properties/shareableOnHover",type:"Control",rule:y,options:{control:"hub-field-input-switch",helperText:{labelKey:"sharing.shareableOnHover.helperText.label"},layout:"inline-space-between"}}]}]}},i={effect:e.HIDE,condition:{scope:"/properties/type",schema:{enum:["static","dynamic","itemQuery"]}}},l={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"informational"}}},c={effect:e.SHOW,condition:{scope:"/properties/layout",schema:{const:"simple"}}},u={effect:e.SHOW,condition:{scope:"/properties/visualInterest",schema:{const:"icon"}}},o={condition:{scope:"/properties/type",schema:{const:"dynamic"}},effect:e.SHOW},n={condition:{scope:"/properties/type",schema:{const:"static"}},effect:e.SHOW},y={condition:{scope:"/properties/shareable",schema:{const:!0}},effect:e.SHOW},r={condition:{schema:{const:!0},scope:"/properties/allowUnitFormatting"},effect:e.SHOW},p={condition:{schema:{properties:{type:{const:"static"},allowLink:{const:!0}}}},effect:e.SHOW};export{f 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.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import"./3B3OIZEK.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.2.0-next.90 */
4
+ import"./ZGUWAA6F.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.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{c as i,d as f}from"./OU3I5EN5.js";import{l as g}from"./HEYQVTVN.js";import{a as o}from"./MCIYK4Q4.js";import{b as c}from"./UQOUOSK6.js";import{c as m,j as l,k as s,l as d,v as p}from"./I3IXSZ23.js";function P(e,t=""){return f(g(e),t,4)}function M(e,t){let r=e.filter(n=>!n.startsWith(`${i}|`));return r.push([i,t].join("|")),r}async function S(e,t){if(!e.slug)return[];let n={filter:`typekeywords:"${e.slug.startsWith(`${i}|`)?e.slug:[i,e.slug].join("|")}"`};return t.authentication?n.authentication=t.authentication:t.portal&&(n.portal=t.portal),e.exclude&&(n.q=`NOT id:${e.exclude}`),(await p(n)).results}function I(e,t,r=0){let n=r?[e.slug,r].join("-"):e.slug;return S({slug:n,exclude:e.existingId},t).then(a=>a.length?I(e,t,r+1):n).catch(a=>{throw Error(`Error in getUniqueSlug ${a}`)})}function U(e){let t=o(e.item);return t.text=JSON.stringify(e.data),t}function u(e){return e.params=Object.assign(Object.assign({},e.params),b(e.item)),e}function b(e){let t=JSON.parse(JSON.stringify(e));return t.data&&(typeof Blob<"u"&&e.data instanceof Blob||e.data.constructor.name==="ReadStream"?t.file=e.data:t.text=e.data,delete t.data),t}function x(...e){return l(u(e[0]))}function h(...e){return m(u(e[0]))}function y(e,t){return Promise.all([s(e,t),d(e,t)]).then(r=>({item:r[0],data:r[1]}))}async function D(e,t){let r=o(e.item);r.data=o(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent));let n=await x(Object.assign({item:r},t));return y(n.id,t)}function Y(e,t){let r=o(e.item);r.data=o(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent)),j(r)&&(t.params=Object.assign(Object.assign({},t.params),{clearEmptyFields:!0}));let n=Object.assign({item:r},t);return h(n).then(()=>r.data?y(r.id,t):s(r.id,t).then(a=>({item:a})))}function j(e){return["description","snippet","tags","categories","licenseInfo"].some(t=>{var r;return e[t]===""||((r=e[t])===null||r===void 0?void 0:r.length)===0})}export{U as a,x as b,h as c,P as d,M as e,I as f,y as g,D as h,Y as i};
3
+ v1.2.0-next.90 */
4
+ import{c as i,d as f}from"./IMOD7IV2.js";import{l as g}from"./MJTQGN6E.js";import{a as o}from"./JVQCHCLL.js";import{b as c}from"./7WSQSV4F.js";import{c as m,j as l,k as s,l as d,v as p}from"./RGHHGDBP.js";function P(e,t=""){return f(g(e),t,4)}function M(e,t){let r=e.filter(n=>!n.startsWith(`${i}|`));return r.push([i,t].join("|")),r}async function S(e,t){if(!e.slug)return[];let n={filter:`typekeywords:"${e.slug.startsWith(`${i}|`)?e.slug:[i,e.slug].join("|")}"`};return t.authentication?n.authentication=t.authentication:t.portal&&(n.portal=t.portal),e.exclude&&(n.q=`NOT id:${e.exclude}`),(await p(n)).results}function I(e,t,r=0){let n=r?[e.slug,r].join("-"):e.slug;return S({slug:n,exclude:e.existingId},t).then(a=>a.length?I(e,t,r+1):n).catch(a=>{throw Error(`Error in getUniqueSlug ${a}`)})}function U(e){let t=o(e.item);return t.text=JSON.stringify(e.data),t}function u(e){return e.params=Object.assign(Object.assign({},e.params),b(e.item)),e}function b(e){let t=JSON.parse(JSON.stringify(e));return t.data&&(typeof Blob<"u"&&e.data instanceof Blob||e.data.constructor.name==="ReadStream"?t.file=e.data:t.text=e.data,delete t.data),t}function x(...e){return l(u(e[0]))}function h(...e){return m(u(e[0]))}function y(e,t){return Promise.all([s(e,t),d(e,t)]).then(r=>({item:r[0],data:r[1]}))}async function D(e,t){let r=o(e.item);r.data=o(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent));let n=await x(Object.assign({item:r},t));return y(n.id,t)}function Y(e,t){let r=o(e.item);r.data=o(e.data),r.extent&&typeof r.extent!="string"&&(r.extent=c(r.extent)),j(r)&&(t.params=Object.assign(Object.assign({},t.params),{clearEmptyFields:!0}));let n=Object.assign({item:r},t);return h(n).then(()=>r.data?y(r.id,t):s(r.id,t).then(a=>({item:a})))}function j(e){return["description","snippet","tags","categories","licenseInfo"].some(t=>{var r;return e[t]===""||((r=e[t])===null||r===void 0?void 0:r.length)===0})}export{U as a,x as b,h as c,P as d,M as e,I as f,y as g,D as h,Y as i};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import{a as S}from"./SFXG53ZK.js";import{a as x}from"./AN2WTXXJ.js";import{a as L}from"./HPN7MPQR.js";import{b as I}from"./TGBDMMGS.js";import"./KP77XLIZ.js";import"./BB523KD5.js";import{F as $,G as v,H as k,J as p,h as F,i as l,l as h,r as b}from"./WEY5WEM2.js";import"./3B3OIZEK.js";export default $arcgis.t(([T,m])=>{var D="instant-apps-filter-list calcite-mode-light",P="instant-apps-filter-list calcite-mode-dark",y=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(f){return f.replaceAll("'","''")}function g(f,e=!1){if(f){let t=new Date(f),i=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(e){let s=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return`${i} ${s}`}else return i}}function _(f){if(f!=null){f.value=["",""];let e=f.shadowRoot?.querySelectorAll("calcite-input");if(e!=null)for(let t of e)t.value=""}}var O=F`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__time-picker-input-container{display:grid;grid-template-columns:auto 32px;width:100%}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:first-child{grid-column:1;grid-row:1}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:last-child{grid-column:1;grid-row:2}.instant-apps-filter-list__time-picker-input-container calcite-action{grid-column:2;grid-row:1/span 2;height:64px;width:33px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media(prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,d={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",timeInputContainer:"instant-apps-filter-list__time-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},C=class extends k{constructor(){super(...arguments),this._messages=L({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=$(),this.panelEl=$(),this.isLayerExpUpdated=!1,this.isInitUpdateComplete=!1,this.baseClass=D,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=b(),this.filterUpdate=b()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=O}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(s=>s.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.isInitUpdateComplete=!1,this.handleLayerExpressionsUpdate())}async load(){this.baseClass=S(this.el)==="dark"?P:D,!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(e){e.has("view")&&this.handleWhenView(),e.has("layerExpressions")&&(this.isInitUpdateComplete=!1,this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(d.operatorDesc)} .heading=${this._messages[t]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(e,t){let i=this.panelEl.value?.querySelector(`[id='${e.id}']`);i&&(_(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t))}handleResetTimePicker(e,t){this.resetTimePicker(e),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}resetTimePicker(e){let t=this.panelEl.value?.querySelector(`[id='${e.id}-min']`),i=this.panelEl.value?.querySelector(`[id='${e.id}-max']`);!t||!i||(t.value=e.min,i.value=e.max)}initInput(e,t){let{type:i,numDisplayOption:s,displayOption:n}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t);if(i==="time-only")return this.renderTimePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:s,displayOption:n}=t,a="";i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":i==="number"||i==="range"?a="numberRange":i==="time-only"&&(a="timePicker"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&_(s);break}case"numberRange":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=t.min,s.maxValue=t.max);break}case"timePicker":t.range=void 0,this.resetTimePicker(t)}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.value?.querySelector(`[id='${t}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(e=>{if(!y.includes(e.type))return;let t=e;if(t.type==="point-cloud"){if(!this.initPointCloudFilters)return;t.filters=this.initPointCloudFilters[t.id]}else if(t.type==="map-image")t.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[t.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;t.definitionExpression=this.initDefExpressions[t.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return i?(await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:i})=>i===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e);if(!i)return!1;let{field:s}=t;if(s!=null)if(this.setExpressionFormat(i,t,s),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(n[`min${s}`],t.format.places),t.max=this.roundMaxNumberUp(n[`max${s}`],t.format.places)):(t.min=n[`min${s}`],t.max=n[`max${s}`]),t?.range&&Object.keys(t.range).length){let{min:a,max:r}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=g(a[`min${i}`]),t.max=g(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} '${r??o}'`:t.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateTimeExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=a[`min${i}`],t.max=a[`max${i}`],s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} TIME '${r??o}'`:t.definitionExpression=`${i} BETWEEN TIME '${r}' AND TIME '${o}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(e);if(!s)return!1;await this.getFeatureAttributes(s,t);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(t.codedValues=n,this.sortCodedValues(t),t.selectedFields?.length){let a=t.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return t.definitionExpression=`${t.field} IN (${a})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:s}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,s&&Object.keys(s).length?(e.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,t)}isLayerSupported(e){return e&&y.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let s=t?.field;if(s){let n=this.getInitDefExprFromLayer(e);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let s=await this.queryForFeatures(e,t,t.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let s=this.getQueryCount(e,i);return e!=null&&t>s}async handlePagination(e,t,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let u=t.clone();u.num=i,u.start=c,o.push(this.queryForFeatures(e,u,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(u=>{u?.length&&a.fields&&a.fields.push(...u)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((u,E)=>u.localeCompare(E)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((u,E)=>u-E):a.type==="coded-value"&&a.codedValues?this.sortCodedValues(a):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(s=>{let n=s.attributes?.[i];return n!=null&&n!==""})?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!y.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}.geometry;if(s){let n="extent"in s?s:T.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===t.field),n=s?.domain?.type;t.type=n==="coded-value"||n==="range"?n:t.type,await this.updateExpression(e,t,s)}))}async updateExpression(e,t,i){let s=await this.handleExpressionType(e,t,i);this.requestUpdate(),s&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"time-only":return await this.updateTimeExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateTimeExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateTimeExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,s){let n=this.getInitDefExprFromLayerExpression(t);(s||s===0)&&(i||i===0)&&(s===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=n?`(${n}) AND ${e?.field} BETWEEN ${s} AND ${i}`:`${e?.field} BETWEEN ${s} AND ${i}`,e.active=!0)),e.range={min:s,max:i}}handleCheckboxChange(e,t,i){let s=i.target;t.active=s.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(e,t,s,n),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:n,type:a}=e;if(e.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);e.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):a==="time-only"?`${n} IN (${r.map(o=>`TIME ${o}`).join(",")})`:`${n} IN (${r.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let s=i.target,[n,a]=s.valueAsDate,r=n?g(Math.floor(n.getTime()),!0):void 0,o=a?g(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}handleTimePickerRangeChange(e,t,i,s){let n=s.target,a=n.value;e.range==null&&(e.range={min:void 0,max:void 0}),i?e.max&&a>e.max?(e.range.min=e.max,n.value=e.range.min):e.min&&a<e.min?(e.range.min=e.min,n.value=e.range.min):e.range.min=a:e.max&&a>e.max?(e.range.max=e.max,n.value=e.range.max):e.min&&a<e.min?(e.range.max=e.min,n.value=e.range.max):e.range.max=a,(e.range.min||e.range.max)&&(e.definitionExpression=this.constructTimeDefinitionExpression(e.field,e.range.min,e.range.max),e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}constructTimeDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN TIME '${t}' AND TIME '${i}'`:`${e} > TIME '${t}'`:`${e} < TIME '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(document.location.search).get("filter");if(!e){this.filterCount=0;return}let t=e.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(t)}applyFilters(e){let t=0;return e.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:s,selectedFields:n,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"||a==="time-only"?{type:"range",layerId:e.id,expressionId:i.toString(),range:s}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:s}=e,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(n,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(e),a=t?.length>0&&n!=null&&n!==""?`(${t.join(s)}) AND (${n})`:t.length>0?t.join(s):n;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),await this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.isInitUpdateComplete||!this.view?.ready||(this.updateInitExpressions(),this.handleURLParams(),this.initExpressions())}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.value?.querySelector(t),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(e){let t=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,i=t.type==="map-image"?t.findSublayerById(e.sublayerId):t;if(i&&i.type!=="point-cloud"&&y.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let s of e.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&t.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let s;if(!String(e).includes("e"))s=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[n,a]=String(e).split("e").map(o=>Number(o)),r=a+t;s=Math[i](+`${n}e${r}`)*Math.pow(10,-t)}return+s.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let s=e?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(t.format=s.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let t=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===e.id);return t?.type==="map-image"?t?.findSublayerById(e.sublayerId):t}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=m.convertDateFormatToIntlOptions("short-date-long-time");return m.formatDate(t,i)}if(e.type==="time-only"){let i=m.convertDateFormatToIntlOptions("long-time");return m.formatTimeOnly(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),s=new Date(e),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(!this.view?.map)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables.toArray()??[]).forEach(t=>{if(!y.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}}),this.isInitUpdateComplete=!0}sortCodedValues(e){typeof e.fields?.[0]=="number"?e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s-n}):e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s.localeCompare(n)})}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${v(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${x("filter-container",l`<div class=${p(d.filterContainer)}>${e}${t}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(e){let{id:t}=e;return e.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?x(`${t}-${s}`,l`<div class=${p(d.filterItemContainer)}><div class=${p(d.filterItemTitle)}><p>${i.name}</p></div><div class=${p(d.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??h} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,e,i)}></calcite-checkbox></div></div>`):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(e);return x(e.id,l`<calcite-block .heading=${e.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${t}</calcite-block>`)}renderCombobox(e,t){return x("combo-select",l`<label class=${p(d.filterUIItemContainer)}><span>${t.name}</span><calcite-combobox id=${t.id.toString()??h} @calciteComboboxChange=${this.handleComboSelect.bind(this,t,e)} .label=${t.name} .placeholder=${t.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${t.fields?.map((i,s)=>this.renderComboboxItem(t,i,s))}</calcite-combobox></label>`)}renderComboboxItem(e,t,i){let s=this.createLabel(e,t),n=e?.selectedFields?.includes(t)??!1;return x(`${s}-${i}`,l`<calcite-combobox-item .value=${t} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(e,t){let i=t?.min,s=t?.max,n=t?.step?t.step:1,a=i!=null&&s!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:s,u=[o,c];return a?x(t?.id.toString(),l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.numberInputContainer)}><calcite-slider id=${t?.id.toString()??h} @calciteSliderChange=${this.handleSliderChange.bind(this,t,e)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${u} .groupSeparator=${t?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(e,t){let{min:i,max:s}=t,n=[t?.range?.min,t?.range?.max];return i!=null&&s!=null?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.dateInputContainer)}><calcite-input-date-picker id=${t?.id.toString()??h} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,t,e)} .min=${i} .max=${s} calendars=1 overlay-positioning=fixed lang=${m.getLocale()??"en"??h} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??h} scale=s></calcite-action></div></label>`:void 0}renderTimePicker(e,t){let{min:i,max:s,range:n}=t,a=i!=null&&s!=null,r=n?.min!=null?n.min:i,o=n?.max!=null?n.max:s;return a?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.timeInputContainer)}><calcite-input-time-picker .id=${`${t?.id.toString()}-min`} .value=${r} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!0)}></calcite-input-time-picker><calcite-input-time-picker .id=${`${t?.id.toString()}-max`} .value=${o} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!1)}></calcite-input-time-picker><calcite-action @click=${this.handleResetTimePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetTimePicker} title=${this._messages.resetTimePicker??h} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let e=this.closeBtnText??this._messages.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(d.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${t} @click=${this.handleResetFilter} ${v(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${t} kind=brand @click=${this.closeBtnOnClick}>${e}</calcite-button>`:void 0}</div>`}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l`<calcite-action id=${t??h} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??h} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,e)}></calcite-action>`:void 0}};I("instant-apps-filter-list",C);return C},"geometry/support/jsonUtils","intl")
3
+ v1.2.0-next.90 */
4
+ import{a as S}from"./HKYUXCW6.js";import{a as x}from"./QQSSFODB.js";import{a as L}from"./NZVAVBSY.js";import{b as I}from"./NGK5LXB4.js";import"./76PLP63F.js";import"./ZNG2SHDX.js";import{F as $,G as v,H as k,J as p,h as F,i as l,l as h,r as b}from"./BVRG4SP2.js";import"./ZGUWAA6F.js";export default $arcgis.t(([T,m])=>{var D="instant-apps-filter-list calcite-mode-light",P="instant-apps-filter-list calcite-mode-dark",y=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(f){return f.replaceAll("'","''")}function g(f,e=!1){if(f){let t=new Date(f),i=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(e){let s=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return`${i} ${s}`}else return i}}function _(f){if(f!=null){f.value=["",""];let e=f.shadowRoot?.querySelectorAll("calcite-input");if(e!=null)for(let t of e)t.value=""}}var O=F`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__time-picker-input-container{display:grid;grid-template-columns:auto 32px;width:100%}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:first-child{grid-column:1;grid-row:1}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:last-child{grid-column:1;grid-row:2}.instant-apps-filter-list__time-picker-input-container calcite-action{grid-column:2;grid-row:1/span 2;height:64px;width:33px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media(prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,d={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",timeInputContainer:"instant-apps-filter-list__time-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},C=class extends k{constructor(){super(...arguments),this._messages=L({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=$(),this.panelEl=$(),this.isLayerExpUpdated=!1,this.isInitUpdateComplete=!1,this.baseClass=D,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=b(),this.filterUpdate=b()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=O}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(s=>s.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.isInitUpdateComplete=!1,this.handleLayerExpressionsUpdate())}async load(){this.baseClass=S(this.el)==="dark"?P:D,!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(e){e.has("view")&&this.handleWhenView(),e.has("layerExpressions")&&(this.isInitUpdateComplete=!1,this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(d.operatorDesc)} .heading=${this._messages[t]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(e,t){let i=this.panelEl.value?.querySelector(`[id='${e.id}']`);i&&(_(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t))}handleResetTimePicker(e,t){this.resetTimePicker(e),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}resetTimePicker(e){let t=this.panelEl.value?.querySelector(`[id='${e.id}-min']`),i=this.panelEl.value?.querySelector(`[id='${e.id}-max']`);!t||!i||(t.value=e.min,i.value=e.max)}initInput(e,t){let{type:i,numDisplayOption:s,displayOption:n}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t);if(i==="time-only")return this.renderTimePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:s,displayOption:n}=t,a="";i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":i==="number"||i==="range"?a="numberRange":i==="time-only"&&(a="timePicker"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&_(s);break}case"numberRange":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=t.min,s.maxValue=t.max);break}case"timePicker":t.range=void 0,this.resetTimePicker(t)}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.value?.querySelector(`[id='${t}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(e=>{if(!y.includes(e.type))return;let t=e;if(t.type==="point-cloud"){if(!this.initPointCloudFilters)return;t.filters=this.initPointCloudFilters[t.id]}else if(t.type==="map-image")t.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[t.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;t.definitionExpression=this.initDefExpressions[t.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return i?(await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:i})=>i===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e);if(!i)return!1;let{field:s}=t;if(s!=null)if(this.setExpressionFormat(i,t,s),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(n[`min${s}`],t.format.places),t.max=this.roundMaxNumberUp(n[`max${s}`],t.format.places)):(t.min=n[`min${s}`],t.max=n[`max${s}`]),t?.range&&Object.keys(t.range).length){let{min:a,max:r}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=g(a[`min${i}`]),t.max=g(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} '${r??o}'`:t.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateTimeExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=a[`min${i}`],t.max=a[`max${i}`],s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} TIME '${r??o}'`:t.definitionExpression=`${i} BETWEEN TIME '${r}' AND TIME '${o}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(e);if(!s)return!1;await this.getFeatureAttributes(s,t);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(t.codedValues=n,this.sortCodedValues(t),t.selectedFields?.length){let a=t.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return t.definitionExpression=`${t.field} IN (${a})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:s}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,s&&Object.keys(s).length?(e.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,t)}isLayerSupported(e){return e&&y.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let s=t?.field;if(s){let n=this.getInitDefExprFromLayer(e);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let s=await this.queryForFeatures(e,t,t.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let s=this.getQueryCount(e,i);return e!=null&&t>s}async handlePagination(e,t,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let u=t.clone();u.num=i,u.start=c,o.push(this.queryForFeatures(e,u,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(u=>{u?.length&&a.fields&&a.fields.push(...u)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((u,E)=>u.localeCompare(E)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((u,E)=>u-E):a.type==="coded-value"&&a.codedValues?this.sortCodedValues(a):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(s=>{let n=s.attributes?.[i];return n!=null&&n!==""})?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!y.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}.geometry;if(s){let n="extent"in s?s:T.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===t.field),n=s?.domain?.type;t.type=n==="coded-value"||n==="range"?n:t.type,await this.updateExpression(e,t,s)}))}async updateExpression(e,t,i){let s=await this.handleExpressionType(e,t,i);this.requestUpdate(),s&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"time-only":return await this.updateTimeExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateTimeExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateTimeExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,s){let n=this.getInitDefExprFromLayerExpression(t);(s||s===0)&&(i||i===0)&&(s===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=n?`(${n}) AND ${e?.field} BETWEEN ${s} AND ${i}`:`${e?.field} BETWEEN ${s} AND ${i}`,e.active=!0)),e.range={min:s,max:i}}handleCheckboxChange(e,t,i){let s=i.target;t.active=s.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(e,t,s,n),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:n,type:a}=e;if(e.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);e.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):a==="time-only"?`${n} IN (${r.map(o=>`TIME ${o}`).join(",")})`:`${n} IN (${r.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let s=i.target,[n,a]=s.valueAsDate,r=n?g(Math.floor(n.getTime()),!0):void 0,o=a?g(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}handleTimePickerRangeChange(e,t,i,s){let n=s.target,a=n.value;e.range==null&&(e.range={min:void 0,max:void 0}),i?e.max&&a>e.max?(e.range.min=e.max,n.value=e.range.min):e.min&&a<e.min?(e.range.min=e.min,n.value=e.range.min):e.range.min=a:e.max&&a>e.max?(e.range.max=e.max,n.value=e.range.max):e.min&&a<e.min?(e.range.max=e.min,n.value=e.range.max):e.range.max=a,(e.range.min||e.range.max)&&(e.definitionExpression=this.constructTimeDefinitionExpression(e.field,e.range.min,e.range.max),e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}constructTimeDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN TIME '${t}' AND TIME '${i}'`:`${e} > TIME '${t}'`:`${e} < TIME '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(document.location.search).get("filter");if(!e){this.filterCount=0;return}let t=e.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(t)}applyFilters(e){let t=0;return e.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:s,selectedFields:n,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"||a==="time-only"?{type:"range",layerId:e.id,expressionId:i.toString(),range:s}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:s}=e,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(n,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(e),a=t?.length>0&&n!=null&&n!==""?`(${t.join(s)}) AND (${n})`:t.length>0?t.join(s):n;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),await this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.isInitUpdateComplete||!this.view?.ready||(this.updateInitExpressions(),this.handleURLParams(),this.initExpressions())}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.value?.querySelector(t),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(e){let t=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,i=t.type==="map-image"?t.findSublayerById(e.sublayerId):t;if(i&&i.type!=="point-cloud"&&y.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let s of e.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&t.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let s;if(!String(e).includes("e"))s=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[n,a]=String(e).split("e").map(o=>Number(o)),r=a+t;s=Math[i](+`${n}e${r}`)*Math.pow(10,-t)}return+s.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let s=e?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(t.format=s.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let t=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===e.id);return t?.type==="map-image"?t?.findSublayerById(e.sublayerId):t}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=m.convertDateFormatToIntlOptions("short-date-long-time");return m.formatDate(t,i)}if(e.type==="time-only"){let i=m.convertDateFormatToIntlOptions("long-time");return m.formatTimeOnly(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),s=new Date(e),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(!this.view?.map)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables.toArray()??[]).forEach(t=>{if(!y.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}}),this.isInitUpdateComplete=!0}sortCodedValues(e){typeof e.fields?.[0]=="number"?e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s-n}):e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s.localeCompare(n)})}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${v(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${x("filter-container",l`<div class=${p(d.filterContainer)}>${e}${t}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(e){let{id:t}=e;return e.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?x(`${t}-${s}`,l`<div class=${p(d.filterItemContainer)}><div class=${p(d.filterItemTitle)}><p>${i.name}</p></div><div class=${p(d.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??h} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,e,i)}></calcite-checkbox></div></div>`):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(e);return x(e.id,l`<calcite-block .heading=${e.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${t}</calcite-block>`)}renderCombobox(e,t){return x("combo-select",l`<label class=${p(d.filterUIItemContainer)}><span>${t.name}</span><calcite-combobox id=${t.id.toString()??h} @calciteComboboxChange=${this.handleComboSelect.bind(this,t,e)} .label=${t.name} .placeholder=${t.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${t.fields?.map((i,s)=>this.renderComboboxItem(t,i,s))}</calcite-combobox></label>`)}renderComboboxItem(e,t,i){let s=this.createLabel(e,t),n=e?.selectedFields?.includes(t)??!1;return x(`${s}-${i}`,l`<calcite-combobox-item .value=${t} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(e,t){let i=t?.min,s=t?.max,n=t?.step?t.step:1,a=i!=null&&s!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:s,u=[o,c];return a?x(t?.id.toString(),l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.numberInputContainer)}><calcite-slider id=${t?.id.toString()??h} @calciteSliderChange=${this.handleSliderChange.bind(this,t,e)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${u} .groupSeparator=${t?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(e,t){let{min:i,max:s}=t,n=[t?.range?.min,t?.range?.max];return i!=null&&s!=null?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.dateInputContainer)}><calcite-input-date-picker id=${t?.id.toString()??h} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,t,e)} .min=${i} .max=${s} calendars=1 overlay-positioning=fixed lang=${m.getLocale()??"en"??h} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??h} scale=s></calcite-action></div></label>`:void 0}renderTimePicker(e,t){let{min:i,max:s,range:n}=t,a=i!=null&&s!=null,r=n?.min!=null?n.min:i,o=n?.max!=null?n.max:s;return a?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.timeInputContainer)}><calcite-input-time-picker .id=${`${t?.id.toString()}-min`} .value=${r} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!0)}></calcite-input-time-picker><calcite-input-time-picker .id=${`${t?.id.toString()}-max`} .value=${o} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!1)}></calcite-input-time-picker><calcite-action @click=${this.handleResetTimePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetTimePicker} title=${this._messages.resetTimePicker??h} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let e=this.closeBtnText??this._messages.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(d.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${t} @click=${this.handleResetFilter} ${v(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${t} kind=brand @click=${this.closeBtnOnClick}>${e}</calcite-button>`:void 0}</div>`}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l`<calcite-action id=${t??h} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??h} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,e)}></calcite-action>`:void 0}};I("instant-apps-filter-list",C);return C},"geometry/support/jsonUtils","intl")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.89 */
4
- import a from"./WTAGTHJW.js";import{ja as u,mb as l}from"./3L5NS2LQ.js";import{u as c}from"./I3IXSZ23.js";export default $arcgis.t(([,{r:f}])=>{function D(e){let t="",s="?";return e.forEach(n=>{n.k&&n.v&&(t+=s+n.k+"="+n.v,s="&")}),t}async function v(e,t){let s=t,n=await s.getUsername(),g={q:new c().match(e).in("title").and().match(n).in("owner"),filter:"type:Solution",authentication:s},d=(await l(g)).results.map(i=>i.title),{folders:h}=await u(s),p=h.map(i=>i.title),a=[...d,...p].map(i=>i.trim().toLowerCase()),o=e.toLowerCase(),w=a.filter(i=>i===o),y=a.filter(i=>i.startsWith(o));return{conflictingNames:w,similiarNames:y}}async function I(e,t){return S(e)?{status:!1,type:"empty"}:x(e)?{status:!1,type:"exceed length"}:E(e)?{status:!1,type:"special character"}:(await v(e.trim(),t)).conflictingNames.length>0?{status:!1,type:"not unique"}:{status:!0,type:""}}function S(e){return e.length<=0}function x(e){return e.length>f}function E(e){return/[/<>]/u.test(e)}function k(e){if(e){let t=e.trim();return t?"<div>"+t+"</div>":""}else return""}function T(e){let t="",s="?";return e.forEach(n=>{n.k&&n.v&&(t+=s+n.k+"="+n.v,s="&")}),t}function C(e,t,s,n){let r="";return t?r=n+"/sharing/rest/content/items/"+e+"/info/"+t+T([{k:"w",v:"400"}]):r=s,r}function b(e){let t=e?e.replace("https://","").replace("www.",""):"";return t.endsWith("devext.arcgis.com")||t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?e??"https://www.arcgis.com":"https://www.arcgis.com"}function U(e,t,s){return t.some(n=>n.wkid===e?(s=n.defaultExtent,!0):!1),s}function A(e,t){return m(t||e)}function M(e,t="en"){return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function F(e,t){let s="";return e.some(n=>n.startsWith(t)?(s=n.substring(t.length),!0):!1),s}function m(e){let t=e.replace("www.","");return t.endsWith("devext.arcgis.com")?"dev":t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?"qa":t==="arcgis.com"||t.endsWith(".arcgis.com")?"prod":"dev"}function O(e,t){let s=e?.reduce((n,r)=>(n.indexOf(r.id)<0&&n.push(r.id),n),[])||[];return t?s.sort((n,r)=>t.indexOf(n)-t.indexOf(r)):s}function _(e){return e.charAt(0).toUpperCase()+e.slice(1)}function B(e){return{relevance:"Relevance",title:"Title",new:"New",created:"Date deployed",updated:"Updated",suggested:"Suggested for you"}[e]||e}function G(e){if(!e)return"Unknown error";if(e.message)return e.message;try{let t=JSON.stringify(e);return t&&t!=="{}"?t:e.toString()}catch{return e.toString()}}function j(e){return e?parseFloat(((Date.now()-e)/1e3).toFixed(2)):0}return{a:D,b:v,c:I,d:E,e:k,f:T,g:C,h:b,i:U,j:A,k:M,l:F,m:O,n:_,o:B,p:G,q:j}},"intl",a)
3
+ v1.2.0-next.90 */
4
+ import a from"./ZSSBKLW4.js";import{ja as u,mb as l}from"./U5B74HAP.js";import{u as c}from"./RGHHGDBP.js";export default $arcgis.t(([,{r:f}])=>{function D(e){let t="",s="?";return e.forEach(n=>{n.k&&n.v&&(t+=s+n.k+"="+n.v,s="&")}),t}async function v(e,t){let s=t,n=await s.getUsername(),g={q:new c().match(e).in("title").and().match(n).in("owner"),filter:"type:Solution",authentication:s},d=(await l(g)).results.map(i=>i.title),{folders:h}=await u(s),p=h.map(i=>i.title),a=[...d,...p].map(i=>i.trim().toLowerCase()),o=e.toLowerCase(),w=a.filter(i=>i===o),y=a.filter(i=>i.startsWith(o));return{conflictingNames:w,similiarNames:y}}async function I(e,t){return S(e)?{status:!1,type:"empty"}:x(e)?{status:!1,type:"exceed length"}:E(e)?{status:!1,type:"special character"}:(await v(e.trim(),t)).conflictingNames.length>0?{status:!1,type:"not unique"}:{status:!0,type:""}}function S(e){return e.length<=0}function x(e){return e.length>f}function E(e){return/[/<>]/u.test(e)}function k(e){if(e){let t=e.trim();return t?"<div>"+t+"</div>":""}else return""}function T(e){let t="",s="?";return e.forEach(n=>{n.k&&n.v&&(t+=s+n.k+"="+n.v,s="&")}),t}function C(e,t,s,n){let r="";return t?r=n+"/sharing/rest/content/items/"+e+"/info/"+t+T([{k:"w",v:"400"}]):r=s,r}function b(e){let t=e?e.replace("https://","").replace("www.",""):"";return t.endsWith("devext.arcgis.com")||t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?e??"https://www.arcgis.com":"https://www.arcgis.com"}function U(e,t,s){return t.some(n=>n.wkid===e?(s=n.defaultExtent,!0):!1),s}function A(e,t){return m(t||e)}function M(e,t="en"){return new Intl.DateTimeFormat(t,{year:"numeric",month:"long",day:"numeric"}).format(e)}function F(e,t){let s="";return e.some(n=>n.startsWith(t)?(s=n.substring(t.length),!0):!1),s}function m(e){let t=e.replace("www.","");return t.endsWith("devext.arcgis.com")?"dev":t.endsWith("mapsqa.arcgis.com")||t.endsWith("qaext.arcgis.com")?"qa":t==="arcgis.com"||t.endsWith(".arcgis.com")?"prod":"dev"}function O(e,t){let s=e?.reduce((n,r)=>(n.indexOf(r.id)<0&&n.push(r.id),n),[])||[];return t?s.sort((n,r)=>t.indexOf(n)-t.indexOf(r)):s}function _(e){return e.charAt(0).toUpperCase()+e.slice(1)}function B(e){return{relevance:"Relevance",title:"Title",new:"New",created:"Date deployed",updated:"Updated",suggested:"Suggested for you"}[e]||e}function G(e){if(!e)return"Unknown error";if(e.message)return e.message;try{let t=JSON.stringify(e);return t&&t!=="{}"?t:e.toString()}catch{return e.toString()}}function j(e){return e?parseFloat(((Date.now()-e)/1e3).toFixed(2)):0}return{a:D,b:v,c:I,d:E,e:k,f:T,g:C,h:b,i:U,j:A,k:M,l:F,m:O,n:_,o:B,p:G,q:j}},"intl",a)