@esri/solutions-components 1.2.0-next.20 → 1.2.0-next.22

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 (483) hide show
  1. package/dist/cdn/{I3DKKF5F.js → 2J76TI3Y.js} +1 -1
  2. package/dist/cdn/{XIEML7FT.js → 2LAEPCUT.js} +2 -2
  3. package/dist/cdn/{C6F4HO5U.js → 2NGTPAY6.js} +1 -1
  4. package/dist/cdn/{VIKALXXD.js → 3BA4TVKZ.js} +1 -1
  5. package/dist/cdn/{A7TYO73E.js → 3BSOZ44L.js} +2 -2
  6. package/dist/cdn/{ZIAGI22J.js → 3DII42GS.js} +2 -2
  7. package/dist/cdn/{UWAVF2GP.js → 3E5MUBDX.js} +2 -2
  8. package/dist/cdn/{WJAN6LLL.js → 3U6NZ374.js} +2 -2
  9. package/dist/cdn/{JE7GMEC2.js → 3WSM6NO6.js} +2 -2
  10. package/dist/cdn/43XU6K7E.js +18 -0
  11. package/dist/cdn/{3XMYR6AO.js → 47BR2SZD.js} +2 -2
  12. package/dist/cdn/{X7HNESXH.js → 4DVTM7ED.js} +2 -2
  13. package/dist/cdn/{ZFZ663TV.js → 4KD2CAOM.js} +1 -1
  14. package/dist/cdn/{6VXUORBY.js → 4N6YXJN2.js} +2 -2
  15. package/dist/cdn/{YKPVSW3B.js → 4NKIAU37.js} +2 -2
  16. package/dist/cdn/{NMG2ID6N.js → 4QQCA3U4.js} +1 -1
  17. package/dist/cdn/{KYROOFA3.js → 4T5OFFVJ.js} +2 -2
  18. package/dist/cdn/{5JWBQM5X.js → 4Z3G2C6M.js} +2 -2
  19. package/dist/cdn/{ZF2XHMQZ.js → 56MNA2VS.js} +1 -1
  20. package/dist/cdn/57N3RILQ.js +18 -0
  21. package/dist/cdn/{3J6DNKCB.js → 57YR4QF4.js} +2 -2
  22. package/dist/cdn/{T47XNO3L.js → 5A4CLVYZ.js} +1 -1
  23. package/dist/cdn/{P3BJE2HN.js → 5AFTWETY.js} +2 -2
  24. package/dist/cdn/{FF3XYEI3.js → 5GXSDMY4.js} +2 -2
  25. package/dist/cdn/{OK6VX227.js → 5IGBKFAS.js} +2 -2
  26. package/dist/cdn/{L5IXOZ6K.js → 5IGSIDCX.js} +2 -2
  27. package/dist/cdn/{UMFU7KU2.js → 5ISMY7M2.js} +2 -2
  28. package/dist/cdn/{YWYPENHD.js → 5NCBUEPR.js} +2 -2
  29. package/dist/cdn/{ZV5K3H2V.js → 5ON45F2D.js} +2 -2
  30. package/dist/cdn/{2KGL2KRL.js → 5UBEIDUY.js} +2 -2
  31. package/dist/cdn/{DGGOQ3L4.js → 5WF2EVNT.js} +1 -1
  32. package/dist/cdn/{VCA7V37B.js → 5WJ4J535.js} +2 -2
  33. package/dist/cdn/{ALEZMHWP.js → 5Y7G2BLZ.js} +2 -2
  34. package/dist/cdn/{NPAJ34CV.js → 63KS5ZBF.js} +2 -2
  35. package/dist/cdn/{MQUYDV5R.js → 67YVVSND.js} +1 -1
  36. package/dist/cdn/{ERJ3FGFF.js → 6GY47336.js} +2 -2
  37. package/dist/cdn/{VP76CX4U.js → 6IJ2366S.js} +2 -2
  38. package/dist/cdn/{WBZEJCYL.js → 6KLNSSNI.js} +2 -2
  39. package/dist/cdn/{2E2FE2UD.js → 6MLPFUBD.js} +1 -1
  40. package/dist/cdn/{L5L3D2MP.js → 6QELS3Z2.js} +2 -2
  41. package/dist/cdn/{5FQDPXO7.js → 6SZHNYTZ.js} +2 -2
  42. package/dist/cdn/{VZ2AGJN5.js → 6XC45ETQ.js} +2 -2
  43. package/dist/cdn/{CRA26J6U.js → 6ZQWYLNF.js} +2 -2
  44. package/dist/cdn/{RJBUFP4Z.js → 76CP2OWS.js} +1 -1
  45. package/dist/cdn/{KCUSGNOT.js → 7AMGNCI5.js} +2 -2
  46. package/dist/cdn/{KHN6DAWC.js → 7BZRS3T5.js} +1 -1
  47. package/dist/cdn/{JWKBLBHU.js → 7I6EJ6DQ.js} +2 -2
  48. package/dist/cdn/{BYHVLFM4.js → 7KWP5FHY.js} +2 -2
  49. package/dist/cdn/{5BCHBBEG.js → 7NF4C7Q6.js} +2 -2
  50. package/dist/cdn/7NGOIUPA.js +4 -0
  51. package/dist/cdn/{OL22QE26.js → 7OQQQ7DH.js} +2 -2
  52. package/dist/cdn/{MPEIFNG5.js → 7P2XP63S.js} +3 -3
  53. package/dist/cdn/{5Q45QLUW.js → 7RDNACQ2.js} +2 -2
  54. package/dist/cdn/{QEIXC65L.js → 7S22H73A.js} +2 -2
  55. package/dist/cdn/{CVPWFU5K.js → 7V4NDZHP.js} +2 -2
  56. package/dist/cdn/{XHXMDQDA.js → 7ZG66OFU.js} +1 -1
  57. package/dist/cdn/{GMXSVE5F.js → A3JNJEXJ.js} +1 -1
  58. package/dist/cdn/{WX6CMXEK.js → A3RFYTTG.js} +1 -1
  59. package/dist/cdn/{LLCAUOLE.js → A4LF2IU3.js} +2 -2
  60. package/dist/cdn/{VRYNGE64.js → ABU7II4P.js} +1 -1
  61. package/dist/cdn/{UNXBX2LJ.js → ALPEUENN.js} +2 -2
  62. package/dist/cdn/{OKERLMQE.js → ALSPCWO6.js} +2 -2
  63. package/dist/cdn/{Q5CNUDGT.js → AMEG6Y2U.js} +2 -2
  64. package/dist/cdn/{5CLHQWXO.js → ANBPB5IE.js} +2 -2
  65. package/dist/cdn/{TJBM3R6U.js → AOTY27J7.js} +2 -2
  66. package/dist/cdn/{GUBSZEOJ.js → ASZKILYC.js} +2 -2
  67. package/dist/cdn/{CNQYI77D.js → ATV7OCMV.js} +2 -2
  68. package/dist/cdn/{PSMIHRUH.js → AWZQ2TRC.js} +2 -2
  69. package/dist/cdn/{I5BUX6M6.js → AZBT7TRF.js} +2 -2
  70. package/dist/cdn/{WOC7MJRV.js → AZERSVAV.js} +2 -2
  71. package/dist/cdn/{I7DFBRAW.js → AZLSPTNN.js} +2 -2
  72. package/dist/cdn/B5FNHYSZ.js +18 -0
  73. package/dist/cdn/{CP4KQ5JU.js → BDGTGDFW.js} +2 -2
  74. package/dist/cdn/{PTF4V2H4.js → BDT5NRCH.js} +2 -2
  75. package/dist/cdn/{K5R7D36H.js → BDZD3CVH.js} +2 -2
  76. package/dist/cdn/{5Y5WZKXD.js → BIDEU7W3.js} +2 -2
  77. package/dist/cdn/{A2NUNLI7.js → BL7OQNJS.js} +2 -2
  78. package/dist/cdn/{YLYRRWJW.js → BOSFQLI6.js} +2 -2
  79. package/dist/cdn/{SRGIOXPX.js → BQG6YY27.js} +2 -2
  80. package/dist/cdn/BRKMDWXS.js +18 -0
  81. package/dist/cdn/{RT3O7MJA.js → BRZXGWDB.js} +3 -3
  82. package/dist/cdn/{AUEIJUOE.js → BSE6M452.js} +2 -2
  83. package/dist/cdn/{NOPHLD4K.js → BSVWOZY5.js} +2 -2
  84. package/dist/cdn/{HVJNKZ76.js → BWBSEHRI.js} +2 -2
  85. package/dist/cdn/{7GMOCOVS.js → BZJ6ESSC.js} +2 -2
  86. package/dist/cdn/{QFJYWPYF.js → BZNPKPP7.js} +2 -2
  87. package/dist/cdn/{Q62F7PR4.js → C2LPPIYP.js} +2 -2
  88. package/dist/cdn/{NPOGRCJT.js → CEJRXTAP.js} +2 -2
  89. package/dist/cdn/{24NXLO23.js → CIIVSICU.js} +2 -2
  90. package/dist/cdn/{RLZYJMK2.js → CJZQ6JFL.js} +2 -2
  91. package/dist/cdn/{44X6QKRO.js → COKCSW5M.js} +2 -2
  92. package/dist/cdn/{LHSOZNOH.js → CVDMNQMG.js} +2 -2
  93. package/dist/cdn/{DZVV6CD7.js → D64YWVBM.js} +2 -2
  94. package/dist/cdn/{T6EN2LQT.js → D7WRWG4G.js} +2 -2
  95. package/dist/cdn/{TXQG7PH5.js → DCNCQVZU.js} +2 -2
  96. package/dist/cdn/{LEJ63S6Y.js → DGD6AY26.js} +2 -2
  97. package/dist/cdn/{VLVHNMFY.js → DI7ZAJJN.js} +2 -2
  98. package/dist/cdn/{VHUKKY5C.js → DJOW4VU6.js} +2 -2
  99. package/dist/cdn/{LCJL63FQ.js → DKO57ZWW.js} +2 -2
  100. package/dist/cdn/{IP5RAZNL.js → DLFCYL32.js} +2 -2
  101. package/dist/cdn/{OJYHZLP5.js → DNJTQZGW.js} +2 -2
  102. package/dist/cdn/{OPR2BXKC.js → DPUIBCUX.js} +2 -2
  103. package/dist/cdn/{RFFJFE4V.js → DSWZRGSA.js} +2 -2
  104. package/dist/cdn/{3RRAETYC.js → DTGCP5A5.js} +2 -2
  105. package/dist/cdn/{3JEP4BL5.js → DTITQ4KX.js} +1 -1
  106. package/dist/cdn/{VZ4GI3Y5.js → E36E5442.js} +2 -2
  107. package/dist/cdn/{PNIMBHES.js → EFY33UCE.js} +2 -2
  108. package/dist/cdn/{NF4TQGZG.js → EGOO6T5E.js} +2 -2
  109. package/dist/cdn/{HETCA2TC.js → EKAMOWDX.js} +2 -2
  110. package/dist/cdn/{2LPVFJKJ.js → EMCKMG77.js} +2 -2
  111. package/dist/cdn/{7L3YSULP.js → ENZNXZL6.js} +2 -2
  112. package/dist/cdn/{CL2HUELG.js → EQVOII7W.js} +2 -2
  113. package/dist/cdn/{E3DHDSJM.js → ETBLUH5E.js} +2 -2
  114. package/dist/cdn/{7B2JUGRA.js → EU3IQK3Z.js} +2 -2
  115. package/dist/cdn/{4KVLYOZL.js → EZQK7BI4.js} +1 -1
  116. package/dist/cdn/{2I5JVFLV.js → FBBVBR5A.js} +2 -2
  117. package/dist/cdn/{ST3O4SWS.js → FIFGGEED.js} +2 -2
  118. package/dist/cdn/{UEBQNKZH.js → FLZL5MYI.js} +2 -2
  119. package/dist/cdn/{62MLOWEA.js → FNWAWKAT.js} +2 -2
  120. package/dist/cdn/{TS3DBIH4.js → FOBH7PYG.js} +2 -2
  121. package/dist/cdn/{QU42CF6F.js → FWGNWNBB.js} +2 -2
  122. package/dist/cdn/{ZUQRVCPO.js → FWSZLG4E.js} +2 -2
  123. package/dist/cdn/{MQ6QXIYX.js → FXUF5PDO.js} +2 -2
  124. package/dist/cdn/{DOFGLV3C.js → G36XD6KA.js} +2 -2
  125. package/dist/cdn/{7QNFIYHN.js → G6R3KQSS.js} +2 -2
  126. package/dist/cdn/{6TJU76R3.js → GBRE25RH.js} +1 -1
  127. package/dist/cdn/{YIXPGCUC.js → GG6OEQ4D.js} +2 -2
  128. package/dist/cdn/{5UKVAD54.js → GHAVCIL3.js} +2 -2
  129. package/dist/cdn/{4L4Y76VM.js → GIX2IW6Y.js} +2 -2
  130. package/dist/cdn/{XX4ZM5IC.js → GMMRDHZU.js} +2 -2
  131. package/dist/cdn/{5UFQVWVZ.js → GTCHPWOM.js} +2 -2
  132. package/dist/cdn/{2ALMQ2ZF.js → H7C3BRTP.js} +2 -2
  133. package/dist/cdn/{NQP4W34S.js → HB3S47XT.js} +2 -2
  134. package/dist/cdn/{6WZU5A27.js → HDHV7JZB.js} +2 -2
  135. package/dist/cdn/{UNXJMJFU.js → HUSG6A7E.js} +2 -2
  136. package/dist/cdn/{ABVF5BMO.js → HWECP5SJ.js} +2 -2
  137. package/dist/cdn/{VKQSUS2D.js → HX7JRDBY.js} +2 -2
  138. package/dist/cdn/{I7PYIEVL.js → HYKIFANV.js} +2 -2
  139. package/dist/cdn/{6HKQWPJC.js → HZAZFSYY.js} +2 -2
  140. package/dist/cdn/{AKYZ7MV4.js → I3MJVYAU.js} +2 -2
  141. package/dist/cdn/{A4BQL2K3.js → I6OCOHZ5.js} +2 -2
  142. package/dist/cdn/{I4PXPOT7.js → I7NZK7VA.js} +2 -2
  143. package/dist/cdn/{2A43GCOV.js → ICZLPAYA.js} +2 -2
  144. package/dist/cdn/{V272SPSH.js → IDFQGGDV.js} +1 -1
  145. package/dist/cdn/{7CGF4Q2X.js → IDY2HCL4.js} +2 -2
  146. package/dist/cdn/{C2NWD2IM.js → IGP55N3J.js} +2 -2
  147. package/dist/cdn/{GKEQBFSS.js → IKXRXOR4.js} +2 -2
  148. package/dist/cdn/IRMKTEGT.js +18 -0
  149. package/dist/cdn/{BHQ5RFLI.js → IRZC2FGR.js} +2 -2
  150. package/dist/cdn/{KI2VCUWI.js → ISSOGJCD.js} +2 -2
  151. package/dist/cdn/{Z3JRVSB5.js → ITEAXFL7.js} +2 -2
  152. package/dist/cdn/IVZFPQHF.js +4 -0
  153. package/dist/cdn/{GEUPVEDN.js → IX5DZANU.js} +2 -2
  154. package/dist/cdn/{5RB6LGBC.js → J5WQSJRQ.js} +2 -2
  155. package/dist/cdn/{KWTHKTQ3.js → J6I4CQUW.js} +2 -2
  156. package/dist/cdn/{DZPWOUEC.js → J6QQCPG3.js} +2 -2
  157. package/dist/cdn/{67PFFTBT.js → J7WGRAVD.js} +2 -2
  158. package/dist/cdn/{WO3K4V6S.js → JDGP7IH2.js} +2 -2
  159. package/dist/cdn/{PXQKI3CA.js → JDXOSH6W.js} +2 -2
  160. package/dist/cdn/{SKNE6RLM.js → JFWEV72O.js} +2 -2
  161. package/dist/cdn/{C3XGN444.js → JJMULAR6.js} +1 -1
  162. package/dist/cdn/{4W4KYXC7.js → JLFACBAC.js} +2 -2
  163. package/dist/cdn/{YESTJISJ.js → JOGLZRNT.js} +2 -2
  164. package/dist/cdn/{BP2CHTVW.js → JP2DX62F.js} +2 -2
  165. package/dist/cdn/{QFF7V4PQ.js → JRQYZJIL.js} +2 -2
  166. package/dist/cdn/{3SE34IUW.js → JRS2R7FM.js} +2 -2
  167. package/dist/cdn/{CDI76SS4.js → JUJMZFNA.js} +2 -2
  168. package/dist/cdn/{RYLMXGYK.js → K3B77KNR.js} +1 -1
  169. package/dist/cdn/{2CK7SB3E.js → K3I6QOKJ.js} +2 -2
  170. package/dist/cdn/{GKZFHOW2.js → K4OCUFNZ.js} +2 -2
  171. package/dist/cdn/{EJ6BXACD.js → K5E7SDHF.js} +2 -2
  172. package/dist/cdn/{J6IBYFB7.js → K6P572FU.js} +2 -2
  173. package/dist/cdn/{TZ4JYL26.js → K7EO7SCJ.js} +2 -2
  174. package/dist/cdn/{F3N33DMK.js → K7GBK475.js} +1 -1
  175. package/dist/cdn/{IXDDY2QM.js → KMFXZ7E6.js} +2 -2
  176. package/dist/cdn/{LEMWW4ED.js → KQEG2VSM.js} +1 -1
  177. package/dist/cdn/{WS4XMXPD.js → KRDDFDOO.js} +1 -1
  178. package/dist/cdn/{M7J53CH4.js → KU4LDDKR.js} +2 -2
  179. package/dist/cdn/{YKBX525C.js → KVWUHT6P.js} +2 -2
  180. package/dist/cdn/{OUD44QTO.js → KXZIEXP4.js} +2 -2
  181. package/dist/cdn/{D7VLL243.js → KYBUZUQT.js} +2 -2
  182. package/dist/cdn/{EM3ALNIJ.js → LJQD3F2H.js} +2 -2
  183. package/dist/cdn/{PFGY7OJD.js → LKPIRCG4.js} +1 -1
  184. package/dist/cdn/{3JTKRUV2.js → LMICKMZD.js} +2 -2
  185. package/dist/cdn/{KVXQDAG4.js → LOM2QEE7.js} +2 -2
  186. package/dist/cdn/{DMWBD2QY.js → LPRTYYSR.js} +2 -2
  187. package/dist/cdn/{QCFLEL57.js → LRRKW6H5.js} +2 -2
  188. package/dist/cdn/LSUPOGJI.js +18 -0
  189. package/dist/cdn/{B2WOMW43.js → LT3CRKFO.js} +2 -2
  190. package/dist/cdn/{WL5TY3AP.js → LVKU6CB5.js} +2 -2
  191. package/dist/cdn/{3SZISG5C.js → LY574EPN.js} +2 -2
  192. package/dist/cdn/{G2V4X4JH.js → M5L46EPB.js} +2 -2
  193. package/dist/cdn/{I6MYM6IJ.js → MBB7JMCL.js} +2 -2
  194. package/dist/cdn/{WXWPPR6B.js → ME7PTO3E.js} +2 -2
  195. package/dist/cdn/{WPRUSW2K.js → MHS63FKV.js} +2 -2
  196. package/dist/cdn/{7JBU7L6F.js → MIECMGBZ.js} +2 -2
  197. package/dist/cdn/{LSNSP3E4.js → MKN4Z56R.js} +2 -2
  198. package/dist/cdn/{ZE3EUHXG.js → MOV63G63.js} +2 -2
  199. package/dist/cdn/{W6PJINLH.js → MUW67XQT.js} +2 -2
  200. package/dist/cdn/{HWXHOMUP.js → N3SINIML.js} +2 -2
  201. package/dist/cdn/{ZFAAOHYX.js → NAWETRQ6.js} +2 -2
  202. package/dist/cdn/{EA2CRCAW.js → NAY26ZKT.js} +2 -2
  203. package/dist/cdn/{AFTQSX7I.js → NH67I2JP.js} +2 -2
  204. package/dist/cdn/{I3PEU4E4.js → NHC6L4QY.js} +2 -2
  205. package/dist/cdn/{C2HOCMY5.js → NK5RFP3X.js} +2 -2
  206. package/dist/cdn/{XYCXFP2Q.js → NPNHPZAS.js} +2 -2
  207. package/dist/cdn/{M67UKJWV.js → NTQTWQB6.js} +2 -2
  208. package/dist/cdn/{D6U22V3H.js → NVZ7ZC4O.js} +2 -2
  209. package/dist/cdn/{XOT6KGWE.js → O3BS4V4J.js} +2 -2
  210. package/dist/cdn/O7VEV6AV.js +4 -0
  211. package/dist/cdn/{5LCZHYVJ.js → O7W4WOJI.js} +2 -2
  212. package/dist/cdn/{C3V5DJBO.js → OA5YW6CR.js} +2 -2
  213. package/dist/cdn/{WGNE3DPP.js → OKHNCIUI.js} +2 -2
  214. package/dist/cdn/{73ILD7CJ.js → OQNBWIYI.js} +1 -1
  215. package/dist/cdn/{KM5ULZP3.js → ORFF3N7F.js} +2 -2
  216. package/dist/cdn/{Z56HKANV.js → OUIIIMBH.js} +2 -2
  217. package/dist/cdn/{RXAFOSW5.js → OYLG7NMH.js} +2 -2
  218. package/dist/cdn/{6JWFKDA2.js → P5L3Z4MM.js} +2 -2
  219. package/dist/cdn/{2AZTXL4Y.js → P5M23NUP.js} +2 -2
  220. package/dist/cdn/{OTUN2NKK.js → P7475IP6.js} +2 -2
  221. package/dist/cdn/{IW5AHPNH.js → PA4KJ3OT.js} +2 -2
  222. package/dist/cdn/{FDYQ2FKY.js → PEAGXXX7.js} +1 -1
  223. package/dist/cdn/{M2ZJDR4T.js → PEDZ3CZE.js} +2 -2
  224. package/dist/cdn/{HJMB6XLQ.js → PMAYORJM.js} +2 -2
  225. package/dist/cdn/{CCSUXK4Q.js → PQDXLQR7.js} +2 -2
  226. package/dist/cdn/{B53MK47Y.js → PRACR4OZ.js} +3 -3
  227. package/dist/cdn/{DTS4PRW6.js → PS2HCXPC.js} +2 -2
  228. package/dist/cdn/{T4BKHW4Q.js → PV2QCV7Z.js} +2 -2
  229. package/dist/cdn/{KHVQFIOO.js → QCJFS667.js} +2 -2
  230. package/dist/cdn/{LA57LCMB.js → QCXTCMEW.js} +2 -2
  231. package/dist/cdn/{7KMYAWJ5.js → QEMWXWF7.js} +2 -2
  232. package/dist/cdn/{X3CQIPF3.js → QEZQG4UJ.js} +2 -2
  233. package/dist/cdn/{KX5726AR.js → QJV2HXKI.js} +2 -2
  234. package/dist/cdn/QKCFMI7O.js +4 -0
  235. package/dist/cdn/{GLDIEU4P.js → QKKOOLCZ.js} +2 -2
  236. package/dist/cdn/{G7XF4ZJ4.js → QYW7MR6M.js} +2 -2
  237. package/dist/cdn/{FDRN4UNS.js → RAFE4Y2S.js} +2 -2
  238. package/dist/cdn/{XY6XTEZB.js → RBXB7VA5.js} +2 -2
  239. package/dist/cdn/{AHNRTMIR.js → RCYLKWSP.js} +2 -2
  240. package/dist/cdn/{DMHPJDKF.js → RDHTUBN7.js} +2 -2
  241. package/dist/cdn/{DPD4MWDN.js → RHCVCLZT.js} +2 -2
  242. package/dist/cdn/{XBNCRUBM.js → RHFWWEBY.js} +2 -2
  243. package/dist/cdn/{4KSQVRTW.js → RQLUKQEG.js} +2 -2
  244. package/dist/cdn/{HYVUWU6M.js → RRTLN7R4.js} +2 -2
  245. package/dist/cdn/{VX7VTV2U.js → RU6ANVFN.js} +2 -2
  246. package/dist/cdn/{LQHGJORU.js → RUT6CBUH.js} +1 -1
  247. package/dist/cdn/{SNAXFCRD.js → RWDN5N2Z.js} +2 -2
  248. package/dist/cdn/{KLYMYJXG.js → RZDW2F4Y.js} +2 -2
  249. package/dist/cdn/{A7N6WDBV.js → S44FPEJZ.js} +2 -2
  250. package/dist/cdn/{5K27OV6X.js → S7ZPZDLD.js} +2 -2
  251. package/dist/cdn/{PKJNXMVR.js → SCGPU45I.js} +1 -1
  252. package/dist/cdn/{S6R6G6MM.js → SDDG4ZNW.js} +1 -1
  253. package/dist/cdn/{3C4ETSRM.js → SF5F7OGC.js} +2 -2
  254. package/dist/cdn/{2R7AUPQI.js → SIGC4HV4.js} +1 -1
  255. package/dist/cdn/{NMIFRQTZ.js → SMH6JAXF.js} +2 -2
  256. package/dist/cdn/{J27HWMOU.js → SQWMQEXG.js} +2 -2
  257. package/dist/cdn/{SHFBCRKO.js → SSIC74L6.js} +2 -2
  258. package/dist/cdn/{6ZG44WOK.js → STRDFVCX.js} +2 -2
  259. package/dist/cdn/{YTTUHU2O.js → SVZ3OKM7.js} +2 -2
  260. package/dist/cdn/{6PHCJUDM.js → T7FLMBUP.js} +2 -2
  261. package/dist/cdn/{WPCGB26M.js → TAHGD2O4.js} +2 -2
  262. package/dist/cdn/{NL5HFA2J.js → TDOB3OYC.js} +2 -2
  263. package/dist/cdn/{D7VNUZC6.js → TFU6LP44.js} +2 -2
  264. package/dist/cdn/{SV5GS7VD.js → TIUHRZUS.js} +2 -2
  265. package/dist/cdn/{Z2XSUUH4.js → TIYTFD5S.js} +2 -2
  266. package/dist/cdn/{NFAELL2V.js → TJFMZ5AI.js} +2 -2
  267. package/dist/cdn/TNA4UKTA.js +4 -0
  268. package/dist/cdn/{VEILQFP2.js → TNLGNDJT.js} +2 -2
  269. package/dist/cdn/{5GMJ5YD4.js → TQQ5N2OO.js} +2 -2
  270. package/dist/cdn/TQUCYDON.js +4 -0
  271. package/dist/cdn/{KUAZYP5Z.js → TTI4XUEY.js} +2 -2
  272. package/dist/cdn/{4VB4MJKS.js → TTOAZGMT.js} +2 -2
  273. package/dist/cdn/{3UHWOBFU.js → TU2WGWTD.js} +2 -2
  274. package/dist/cdn/{BCVMTQ7X.js → TXCGA6H6.js} +2 -2
  275. package/dist/cdn/TYIKQWD7.js +18 -0
  276. package/dist/cdn/{5VCN4HJU.js → TYKGZHC7.js} +1 -1
  277. package/dist/cdn/{WX2Q5L3D.js → TZWUZYFQ.js} +2 -2
  278. package/dist/cdn/{Z2FUMODE.js → U5C4UNHM.js} +2 -2
  279. package/dist/cdn/{YRBA2ZGR.js → U6IOPARX.js} +2 -2
  280. package/dist/cdn/{ET53ODBH.js → UDOBEWPP.js} +2 -2
  281. package/dist/cdn/{4H5JZV3N.js → UENBDNEI.js} +1 -1
  282. package/dist/cdn/{YIFZSXOX.js → UEQV47GY.js} +2 -2
  283. package/dist/cdn/{Z2V2BGBO.js → UFVKB5BE.js} +2 -2
  284. package/dist/cdn/{X4HZQF3T.js → UHXHSSXB.js} +2 -2
  285. package/dist/cdn/{AWYWTRXR.js → UK3KUJMQ.js} +1 -1
  286. package/dist/cdn/{K2RFNUWO.js → UKS25OFJ.js} +2 -2
  287. package/dist/cdn/{CBW6ZCMO.js → ULCE466Z.js} +2 -2
  288. package/dist/cdn/{WTEOQ6IU.js → UWWHODFG.js} +2 -2
  289. package/dist/cdn/{HA4BRCZL.js → UX6HCXQS.js} +2 -2
  290. package/dist/cdn/{BZ4SCSVK.js → UZDUYYDY.js} +2 -2
  291. package/dist/cdn/V2SNCDR5.js +18 -0
  292. package/dist/cdn/{VMS64XK4.js → V2SZ77LE.js} +2 -2
  293. package/dist/cdn/{DEGZEHFA.js → V7HJUDXK.js} +2 -2
  294. package/dist/cdn/{IXMHUULQ.js → VJ3OBFSQ.js} +2 -2
  295. package/dist/cdn/{QTFLAIE5.js → VLKS5OXM.js} +2 -2
  296. package/dist/cdn/{4EKEBZDH.js → VMCWUHIT.js} +4 -4
  297. package/dist/cdn/VNWZKWFC.js +4 -0
  298. package/dist/cdn/{FJUDCABT.js → VRVJCGDV.js} +2 -2
  299. package/dist/cdn/{6TG2EO2Z.js → VRWUCH5D.js} +2 -2
  300. package/dist/cdn/VSJVIZGQ.js +63 -0
  301. package/dist/cdn/{LIXADYN2.js → VV26WPIK.js} +2 -2
  302. package/dist/cdn/{AMM6V7TB.js → VXLOZPRP.js} +2 -2
  303. package/dist/cdn/{IQ653RQE.js → VXMBJE2D.js} +2 -2
  304. package/dist/cdn/{7M2CWJFQ.js → VY3LCIKX.js} +2 -2
  305. package/dist/cdn/{CHWH5FGQ.js → W3D34FZA.js} +2 -2
  306. package/dist/cdn/{WEUFVO6F.js → W46D2COK.js} +2 -2
  307. package/dist/cdn/W5W7JFTZ.js +18 -0
  308. package/dist/cdn/{EDGKUXXH.js → WAQBAPR3.js} +2 -2
  309. package/dist/cdn/{UI7FKZHS.js → WD7VSNNZ.js} +1 -1
  310. package/dist/cdn/{UQHNT6NC.js → WE6HWGXJ.js} +2 -2
  311. package/dist/cdn/{EL22VV3P.js → WGR5GX2D.js} +2 -2
  312. package/dist/cdn/{GLAVWPYD.js → WKQ2RBCF.js} +2 -2
  313. package/dist/cdn/{NUYH6NTK.js → WPXB7ULE.js} +2 -2
  314. package/dist/cdn/{UHDBPQAZ.js → WU3PDZMB.js} +2 -2
  315. package/dist/cdn/{CA3G4QAA.js → WV4YBBNZ.js} +2 -2
  316. package/dist/cdn/{G577XEWY.js → WZB4BJD4.js} +2 -2
  317. package/dist/cdn/{W7I2RFAY.js → WZBY5ZWL.js} +2 -2
  318. package/dist/cdn/{NKYODIPR.js → WZHAHR26.js} +2 -2
  319. package/dist/cdn/{CEDUDGY3.js → X6ZQSZQU.js} +2 -2
  320. package/dist/cdn/{XHLRAGQ2.js → XEQPE5AQ.js} +2 -2
  321. package/dist/cdn/{XLNL32C3.js → XHLXBLDD.js} +2 -2
  322. package/dist/cdn/{IWS4I3HA.js → XJUYCZK6.js} +2 -2
  323. package/dist/cdn/{7MLWYGOM.js → XNTJWPM3.js} +2 -2
  324. package/dist/cdn/XUVQ6BRC.js +18 -0
  325. package/dist/cdn/{Y5GTJ73V.js → XVFKUURP.js} +2 -2
  326. package/dist/cdn/{2KDPEGNM.js → XYR6PESG.js} +2 -2
  327. package/dist/cdn/{HGSRS4G7.js → Y3M3ZSYR.js} +2 -2
  328. package/dist/cdn/{PYISYGHM.js → YBNDRIUZ.js} +2 -2
  329. package/dist/cdn/{V5XAPNIN.js → YDOFUTBW.js} +2 -2
  330. package/dist/cdn/{NQHBEVOL.js → YGQM56OM.js} +2 -2
  331. package/dist/cdn/YKNMVOHO.js +4 -0
  332. package/dist/cdn/{CKIAT6FZ.js → YQCBAF3G.js} +2 -2
  333. package/dist/cdn/{RGTERX4S.js → YTT2J3YO.js} +2 -2
  334. package/dist/cdn/{FGMT2KHY.js → YUHIK6J3.js} +2 -2
  335. package/dist/cdn/{5IY7QON3.js → Z6WJEJX2.js} +2 -2
  336. package/dist/cdn/{KIB3SJXC.js → ZCR63VKD.js} +2 -2
  337. package/dist/cdn/{RBY4RRXS.js → ZKALBQL6.js} +2 -2
  338. package/dist/cdn/{GZ45JBXT.js → ZMXSR2TT.js} +2 -2
  339. package/dist/cdn/{LBN2RTAD.js → ZORVIUJJ.js} +2 -2
  340. package/dist/cdn/{HUP3H66T.js → ZOZBNFAW.js} +2 -2
  341. package/dist/cdn/{RCFLYQVH.js → ZPUSPQYX.js} +2 -2
  342. package/dist/cdn/{N4AIZVPV.js → ZQV3UEGN.js} +1 -1
  343. package/dist/cdn/{EMC4J76D.js → ZVJJI7J2.js} +2 -2
  344. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  345. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  346. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.en.json +1 -1
  347. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.json +1 -1
  348. package/dist/cdn/index.js +2 -2
  349. package/dist/chunks/Auth.js +1 -1
  350. package/dist/chunks/CardsFetcher.js +29 -30
  351. package/dist/chunks/appConfig.js +1 -1
  352. package/dist/chunks/cardFetchingUtils.js +1 -1
  353. package/dist/chunks/cardsHelpers.js +1 -1
  354. package/dist/chunks/common.js +1 -1
  355. package/dist/chunks/deployAppContexts.js +1 -1
  356. package/dist/chunks/downloadUtils.js +1 -1
  357. package/dist/chunks/getItemIcon.js +1 -1
  358. package/dist/chunks/helpers.js +6 -6
  359. package/dist/chunks/interfaces.js +16 -17
  360. package/dist/chunks/loadModules.js +1 -1
  361. package/dist/chunks/mapViewUtils.js +1 -1
  362. package/dist/chunks/pciUtils.js +1 -1
  363. package/dist/chunks/popupUtils.js +1 -1
  364. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  365. package/dist/chunks/privilegeUtils.js +2 -2
  366. package/dist/chunks/publicNotificationContext.js +1 -1
  367. package/dist/chunks/queryUtils.js +1 -1
  368. package/dist/chunks/runtime.js +1 -1
  369. package/dist/chunks/solution-store.js +1 -1
  370. package/dist/chunks/templates.js +1 -1
  371. package/dist/chunks/useT9n.js +1 -1
  372. package/dist/components/arcgis-solutions-assistant/customElement.js +256 -234
  373. package/dist/components/basemap-gallery/customElement.js +1 -1
  374. package/dist/components/buffer-tools/customElement.js +1 -1
  375. package/dist/components/card-manager/customElement.js +1 -1
  376. package/dist/components/consent-manager/customElement.js +1 -1
  377. package/dist/components/create-feature/customElement.js +1 -1
  378. package/dist/components/create-related-feature/customElement.js +1 -1
  379. package/dist/components/crowdsource-manager/customElement.d.ts +3 -5
  380. package/dist/components/crowdsource-manager/customElement.js +7 -19
  381. package/dist/components/crowdsource-reporter/customElement.js +3 -3
  382. package/dist/components/crowdsource-reporter/index.d.ts +1 -1
  383. package/dist/components/crowdsource-reporter/index.js +1 -1
  384. package/dist/components/deduct-calculator/customElement.js +1 -1
  385. package/dist/components/delete-button/customElement.d.ts +2 -6
  386. package/dist/components/delete-button/customElement.js +3 -3
  387. package/dist/components/delete-dialog/customElement.js +1 -1
  388. package/dist/components/edit-card/customElement.js +1 -1
  389. package/dist/components/feature-details/customElement.js +1 -1
  390. package/dist/components/feature-list/customElement.js +1 -1
  391. package/dist/components/field-selection/customElement.js +1 -1
  392. package/dist/components/floor-filter/customElement.js +1 -1
  393. package/dist/components/info-card/customElement.js +1 -1
  394. package/dist/components/json-editor/customElement.js +1 -1
  395. package/dist/components/layer-list/customElement.js +1 -1
  396. package/dist/components/layer-table/customElement.js +3 -3
  397. package/dist/components/map-card/customElement.js +2 -2
  398. package/dist/components/map-draw-tools/customElement.js +1 -1
  399. package/dist/components/map-fullscreen/customElement.js +1 -1
  400. package/dist/components/map-layer-picker/customElement.d.ts +2 -6
  401. package/dist/components/map-layer-picker/customElement.js +9 -13
  402. package/dist/components/map-legend/customElement.js +1 -1
  403. package/dist/components/map-picker/customElement.js +1 -1
  404. package/dist/components/map-search/customElement.js +1 -1
  405. package/dist/components/map-select-tools/customElement.js +1 -1
  406. package/dist/components/map-tools/customElement.js +56 -57
  407. package/dist/components/pci-calculator/customElement.js +1 -1
  408. package/dist/components/pdf-download/customElement.js +1 -1
  409. package/dist/components/public-notification/customElement.js +1 -1
  410. package/dist/components/refine-selection/customElement.js +1 -1
  411. package/dist/components/selection-tool/customElement.js +1 -1
  412. package/dist/components/solution-configuration/customElement.js +1 -1
  413. package/dist/components/solution-configure-titles/customElement.js +2 -2
  414. package/dist/components/solution-contents/customElement.js +1 -1
  415. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  416. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  417. package/dist/components/solution-deployed-card/customElement.js +1 -1
  418. package/dist/components/solution-deployed-card-panel/customElement.js +26 -26
  419. package/dist/components/solution-deploying-dialog/customElement.d.ts +2 -0
  420. package/dist/components/solution-deploying-dialog/customElement.js +94 -18
  421. package/dist/components/solution-details-card/customElement.js +1 -1
  422. package/dist/components/solution-details-panel/customElement.js +1 -1
  423. package/dist/components/solution-item/customElement.js +1 -1
  424. package/dist/components/solution-item-accordion/customElement.js +1 -1
  425. package/dist/components/solution-item-details/customElement.js +1 -1
  426. package/dist/components/solution-item-diagram/customElement.js +1 -1
  427. package/dist/components/solution-item-icon/customElement.js +1 -1
  428. package/dist/components/solution-item-sharing/customElement.js +1 -1
  429. package/dist/components/solution-organization-variables/customElement.js +1 -1
  430. package/dist/components/solution-resource-card/customElement.js +1 -1
  431. package/dist/components/solution-resource-item/customElement.js +1 -1
  432. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  433. package/dist/components/solution-social-share/customElement.js +1 -1
  434. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  435. package/dist/components/solution-template-data/customElement.js +1 -1
  436. package/dist/components/solution-variables/customElement.js +1 -1
  437. package/dist/components/solutions-all-panel/customElement.js +15 -15
  438. package/dist/components/solutions-all-shell/customElement.js +1 -1
  439. package/dist/components/solutions-deploy-app/customElement.js +15 -15
  440. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  441. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  442. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  443. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  444. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  445. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  446. package/dist/components/solutions-resources/customElement.js +1 -1
  447. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  448. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  449. package/dist/components/spatial-ref/customElement.js +1 -1
  450. package/dist/components/store-manager/customElement.js +1 -1
  451. package/dist/docs/api.json +31 -46
  452. package/dist/docs/docs.json +42 -27
  453. package/dist/docs/vscode.html-custom-data.json +3 -13
  454. package/dist/docs/web-types.json +22 -26
  455. package/dist/index.d.ts +15 -1
  456. package/dist/index.js +35 -36
  457. package/dist/loader.js +3 -3
  458. package/dist/types/lumina.d.ts +1 -0
  459. package/dist/types/preact.d.ts +1 -0
  460. package/dist/types/preact10.d.ts +1 -0
  461. package/dist/types/react.d.ts +1 -0
  462. package/dist/types/stencil.d.ts +1 -0
  463. package/dist/utils/interfaces.d.ts +7 -4
  464. package/package.json +22 -22
  465. package/dist/cdn/2U37MMSW.js +0 -18
  466. package/dist/cdn/3D3RNQXF.js +0 -4
  467. package/dist/cdn/6JLUJWH6.js +0 -18
  468. package/dist/cdn/7RFFTMJS.js +0 -4
  469. package/dist/cdn/7XIYLGPM.js +0 -4
  470. package/dist/cdn/AA4EWK4C.js +0 -18
  471. package/dist/cdn/BFY7RHIE.js +0 -18
  472. package/dist/cdn/DFADPAZK.js +0 -4
  473. package/dist/cdn/NHSZXNZV.js +0 -18
  474. package/dist/cdn/OX3SGCCQ.js +0 -18
  475. package/dist/cdn/R4NHUKQL.js +0 -18
  476. package/dist/cdn/RCKQ7IME.js +0 -18
  477. package/dist/cdn/SCSYXJ7N.js +0 -18
  478. package/dist/cdn/SWAZYX4I.js +0 -63
  479. package/dist/cdn/USDRTL75.js +0 -4
  480. package/dist/cdn/UV3OCW2R.js +0 -4
  481. package/dist/cdn/VC3ONQSP.js +0 -4
  482. package/dist/cdn/XBVQ745C.js +0 -18
  483. package/dist/cdn/YFSAZFMI.js +0 -4
@@ -292,6 +292,7 @@ interface StencilSolutionDeployedCardPanel extends Partial<Pick<SolutionDeployed
292
292
  }
293
293
 
294
294
  interface StencilSolutionDeployingDialog extends Partial<Pick<SolutionDeployingDialog, 'abortController' | 'card' | 'deploymentProgress' | 'open'>>, StencilJsx.HTMLAttributes<HTMLSolutionDeployingDialogElement> {
295
+ onDeployingDialogOpened?: EventHandler<HTMLSolutionDeployingDialogElement["deployingDialogOpened"]>;
295
296
  }
296
297
 
297
298
  interface StencilSolutionDetailsCard extends Partial<Pick<SolutionDetailsCard, 'card'>>, StencilJsx.HTMLAttributes<HTMLSolutionDetailsCardElement> {
@@ -445,7 +445,7 @@ export interface IBasemapConfig {
445
445
  }
446
446
  export interface IToolInfo {
447
447
  active: boolean;
448
- icon: string;
448
+ icon: HTMLCalciteIconElement["icon"];
449
449
  indicator: boolean;
450
450
  func: any;
451
451
  label: string;
@@ -644,7 +644,6 @@ export interface IDeployedSolutionCards {
644
644
  }
645
645
  export declare const BASE_DEPLOYED_TERMS = "((typekeywords:Solution,Deployed,\"ArcGIS Solution\") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))";
646
646
  export declare const BASE_SOLUTIONS_TERMS = "(typekeywords:Solution,Template)";
647
- export declare const BASE_DISPLAY_ONLY_TERMS = "(typekeywords:Solution,Display Only)";
648
647
  export interface ISearchOptionPartial {
649
648
  'q': string;
650
649
  'filter': string;
@@ -692,7 +691,6 @@ export interface ISolutionInfoCard extends ISortableItem {
692
691
  deployCommonId: string;
693
692
  deployVersion: string;
694
693
  canDelete: boolean;
695
- canDeploy: boolean;
696
694
  preview?: IPreview[];
697
695
  sourcePortalUrl: string;
698
696
  knownToBePublicSource: boolean;
@@ -840,7 +838,7 @@ export interface IAppConfig {
840
838
  solutionsUrlMarker: string;
841
839
  }
842
840
  export interface IQuickLink {
843
- icon: string;
841
+ icon: HTMLCalciteIconElement["icon"];
844
842
  label: string;
845
843
  url: string;
846
844
  }
@@ -852,3 +850,8 @@ export interface IDeployCard {
852
850
  card: ISolutionInfoCard;
853
851
  cardRef: SolutionDeployedCard;
854
852
  }
853
+ export interface IDeployingCarouselMessage {
854
+ message: string;
855
+ url?: string;
856
+ icon?: HTMLCalciteIconElement["icon"];
857
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esri/solutions-components",
3
- "version": "1.2.0-next.20",
3
+ "version": "1.2.0-next.22",
4
4
  "description": "Web Components for Esri's Solutions Applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,14 +31,14 @@
31
31
  },
32
32
  "license": "SEE LICENSE IN LICENSE.md",
33
33
  "devDependencies": {
34
- "@arcgis/core": ">=4.34.0-next.102 <4.35",
35
- "@arcgis/eslint-config": ">=4.34.0-next.145 <4.35",
36
- "@arcgis/instant-apps-components": ">=4.34.0-next.145 <4.35",
37
- "@arcgis/lumina-compiler": ">=4.34.0-next.145 <4.35",
38
- "@arcgis/map-components": ">=4.34.0-next.145 <4.35",
39
- "@arcgis/prettier-config": ">=4.34.0-next.145 <4.35",
40
- "@arcgis/typescript-config": ">=4.34.0-next.145 <4.35",
41
- "@esri/calcite-components": "^3.3.1",
34
+ "@arcgis/core": ">=5.0.0-next.1 <5.1",
35
+ "@arcgis/eslint-config": ">=5.0.0-next.1 <5.1",
36
+ "@arcgis/instant-apps-components": ">=5.0.0-next.1 <5.1",
37
+ "@arcgis/lumina-compiler": ">=5.0.0-next.1 <5.1",
38
+ "@arcgis/map-components": ">=5.0.0-next.1 <5.1",
39
+ "@arcgis/prettier-config": ">=5.0.0-next.1 <5.1",
40
+ "@arcgis/typescript-config": ">=5.0.0-next.1 <5.1",
41
+ "@esri/calcite-components": "^4.0.0-next.46",
42
42
  "@esri/telemetry": "8.0.1",
43
43
  "@esri/telemetry-amazon": "4.0.1",
44
44
  "@esri/telemetry-google-analytics": "2.0.1",
@@ -83,12 +83,12 @@
83
83
  "workbox-build": "^7.3.0"
84
84
  },
85
85
  "dependencies": {
86
- "@arcgis/analysis-components": ">=4.34.0-next <4.35",
87
- "@arcgis/analysis-shared-utils": ">=4.34.0-next <4.35",
88
- "@arcgis/app-components": "~4.15.1",
89
- "@arcgis/common-components": ">=4.34.0-next.145 <4.35",
90
- "@arcgis/components-utils": ">=4.34.0-next.145 <4.35",
91
- "@arcgis/lumina": ">=4.34.0-next.145 <4.35",
86
+ "@arcgis/analysis-components": ">=5.0.0-next.1 <5.1",
87
+ "@arcgis/analysis-shared-utils": ">=5.0.0-next.1 <5.1",
88
+ "@arcgis/app-components": "~4.15.0",
89
+ "@arcgis/common-components": ">=5.0.0-next.1 <5.1",
90
+ "@arcgis/components-utils": ">=5.0.0-next.1 <5.1",
91
+ "@arcgis/lumina": ">=5.0.0-next.1 <5.1",
92
92
  "@emotion/css": "^11.13.5",
93
93
  "@esri/arcgis-html-sanitizer": "^4.1.0",
94
94
  "@esri/arcgis-rest-types": "^3.7.0",
@@ -100,10 +100,10 @@
100
100
  "lit": "^3.3.0"
101
101
  },
102
102
  "peerDependencies": {
103
- "@arcgis/core": ">=4.34.0-next.102 <4.35",
104
- "@arcgis/instant-apps-components": ">=4.34.0-next.145 <4.35",
105
- "@arcgis/map-components": ">=4.34.0-next.145 <4.35",
106
- "@esri/calcite-components": "^3.3.1",
103
+ "@arcgis/core": ">=5.0.0-next.1 <5.1",
104
+ "@arcgis/instant-apps-components": ">=5.0.0-next.1 <5.1",
105
+ "@arcgis/map-components": ">=5.0.0-next.1 <5.1",
106
+ "@esri/calcite-components": "^4.0.0-next.46",
107
107
  "templates-common-library": ">=0.0.704"
108
108
  },
109
109
  "repository": {
@@ -148,9 +148,9 @@
148
148
  "./main.css": "./dist/cdn/main.css"
149
149
  },
150
150
  "resolutions": {
151
- "@esri/calcite-components/@arcgis/lumina": ">=4.34.0-next.145 <4.35",
152
- "@esri/calcite-components/@arcgis/components-controllers": ">=4.34.0-next.145 <4.35",
153
- "@esri/calcite-components/@arcgis/components-utils": ">=4.34.0-next.145 <4.35"
151
+ "@esri/calcite-components/@arcgis/lumina": ">=5.0.0-next.1 <5.1",
152
+ "@esri/calcite-components/@arcgis/components-controllers": ">=5.0.0-next.1 <5.1",
153
+ "@esri/calcite-components/@arcgis/components-utils": ">=5.0.0-next.1 <5.1"
154
154
  },
155
155
  "packageManager": "yarn@4.5.1"
156
156
  }
@@ -1,18 +0,0 @@
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.20 */
4
- import b from"./WTEOQ6IU.js";import{d as f}from"./2R7AUPQI.js";import a from"./A4BQL2K3.js";import{b as m}from"./K5R7D36H.js";import"./SRGIOXPX.js";import"./QTFLAIE5.js";import"./RYLMXGYK.js";import"./SV5GS7VD.js";import"./G577XEWY.js";import"./YLYRRWJW.js";import"./LQHGJORU.js";import"./VRYNGE64.js";import"./EA2CRCAW.js";import"./FDYQ2FKY.js";import"./6TJU76R3.js";import"./XHXMDQDA.js";import"./J27HWMOU.js";import"./EJ6BXACD.js";import"./5BCHBBEG.js";import"./VIKALXXD.js";import"./LEMWW4ED.js";import"./I3PEU4E4.js";import"./S6R6G6MM.js";import"./4H5JZV3N.js";import{a as u}from"./HGSRS4G7.js";import"./CNQYI77D.js";import{a as h}from"./XX4ZM5IC.js";import"./YESTJISJ.js";import"./SKNE6RLM.js";import{b as g}from"./T6EN2LQT.js";import{E as p,I as s,h as d,i,o}from"./DGGOQ3L4.js";import"./N4AIZVPV.js";export default $arcgis.t(([,{d:c,h:v,i:x}])=>{var w=d`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.align-self-center{align-self:center}.font-weight-med{font-weight:var(--calcite-font-weight-medium)}.font-weight-bold{font-weight:var(--calcite-font-weight-bold)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.font-1{font-size:var(--calcite-spacing-lg)}.display-flex{display:flex}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.icon-color{color:var(--calcite-color-text-3)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-side-1{padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.width-full{width:100%}.align-items-center{align-items:center}.align-items-start{align-items:start}.font-size-override{--calcite-font-size--2: var(--calcite-font-size--1)}.width-400{width:400px}.padding-3-4{padding:var(--calcite-spacing-md)}.margin-0{margin:var(--calcite-spacing-none)}.background-color-2{background-color:var(--calcite-color-foreground-2)}.label-override{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.position-relative{position:relative}.overflow-hidden{overflow:hidden}.overflow-auto{overflow:auto}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.panel-background-2{--calcite-panel-background-color: var(--calcite-color-foreground-2);background-color:var(--calcite-color-foreground-2)}.panel-background-1{--calcite-panel-background-color: var(--calcite-color-foreground-1);--calcite-shell-panel-background-color: var(--calcite-color-foreground-1)}.border-none{border:none}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-1{padding:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.bottom-border{border-bottom:solid var(--calcite-spacing-px);color:var(--calcite-color-border-1)}.margin-start-end-xxl{margin-inline-start:var(--calcite-spacing-xxl);margin-inline-end:var(--calcite-spacing-xxl)}.justify-between{justify-content:space-between}.items-baseline{align-items:baseline}.padding-xxl{padding:var(--calcite-spacing-xxl)}.padding-top-xxl{padding-top:var(--calcite-spacing-xxl)}.padding-bottom-xxl{padding-bottom:var(--calcite-spacing-xxl)}.padding-sides-xxl{padding-inline-start:var(--calcite-spacing-xxl);padding-inline-end:var(--calcite-spacing-xxl)}.padding-sides-lg{padding-inline-start:var(--calcite-spacing-lg);padding-inline-end:var(--calcite-spacing-lg)}.padding-start-lg{padding-inline-start:var(--calcite-spacing-lg)}.padding-end-lg{padding-inline-end:var(--calcite-spacing-lg)}.image-width{width:395px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.image-width{flex-grow:2;flex-shrink:.5}}img{max-width:100%;height:auto;overflow-clip-margin:content-box;overflow:clip}.margin-lg{margin:var(--calcite-spacing-lg)}.line-height-1{line-height:1.1}@media(max-width:800px){.image-width{display:none}}calcite-shell-panel{--calcite-shell-panel-max-width: 20rem;--calcite-shell-panel-width: 24vw}`,r=class extends p{constructor(){super(),this.diagramKey="",this.open=!1,this.showSuccessAlert=!1,this.templateInfos=[],this._configureTitlesOpen=!1,this._deleteDialogOpen=!1,this._hasNewVersion=!1,this._isDiagramOpen=!1,this._isNameConflict=!1,this._invalidNameMessage="",this._showFailedAlert=!1,this._showItemUpdateLoading=!1,this._templateInfoGraph=[],this._translations=h({name:"solution-deployed-card-panel",blocking:!0}),this._configContextConsumer=m({context:f,subscribe:!0}),this.navTabSelected=o(),this.sortTypeChanged=o(),this.solutionConfigureDialogClose=o(),this.listenOn(window,"deployedCardSelected",this._deployedCardSelected),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected)}static{this.properties={card:0,cardRef:1,diagramKey:1,open:5,showSuccessAlert:5,templateInfos:0,_configureTitlesOpen:16,_deleteDialogOpen:16,_hasNewVersion:16,_isDiagramOpen:16,_isNameConflict:16,_invalidNameMessage:16,_showFailedAlert:16,_showItemUpdateLoading:16,_templateInfoGraph:16,_translations:16}}static{this.styles=w}render(){return i`<calcite-shell class="position-relative background-color-2"><calcite-panel class="padding-end-1 panel-background-2 border-none" slot=panel-bottom><div class="display-flex flex-direction-column overflow-hidden"><div class="background-color-2 padding-top-xxl">${this._getSolutionPanel()}</div>${this._getSolutionContents()}</div></calcite-panel><calcite-shell-panel class="panel-background-1" slot=panel-end>${this._getButtons()}${this._getOwnerSection()}<div class="bottom-border padding-top-11 margin-start-end-xxl"></div>${this._getSolutionVersionCard()}</calcite-shell-panel>${this._renderDiagramDialog()}${this._getConfigureTitlesDialog()}${this._getDeleteDialog()}</calcite-shell>`}async _deployedCardSelected(e){let t=e.detail;this.card=t.card,this.cardRef=t.cardRef,this.cardRef.getTemplates().then(a=>{this.templateInfos=a});let n=v(this._configContextConsumer.value?.allCards||[],this.card.deployCommonId),l=!1;if(n){let a=c(n),b=c(this.card);l=a>b}this._hasNewVersion=l}_handleDeployAppTabSelected(e){e.detail==="deployed-card"&&this.sortTypeChanged.emit("")}_getButtons(){return i`<div class="display-flex flex-direction-column padding-xxl"><calcite-button appearance=outline class="padding-bottom-1" icon-start=model kind=neutral @click=${this._openDiagram}>${this._translations.viewTheDiagram}</calcite-button><calcite-button appearance=outline class="padding-bottom-1" icon-start=edit-attributes kind=neutral @click=${this._openConfigureTitlesDialog}>${this._translations.updateTitles}</calcite-button><calcite-button appearance=outline class="padding-bottom-1" icon-start=file-text kind=neutral @click=${this._viewDocumentation}>${this._translations.solutionDocumentation}</calcite-button><calcite-button appearance=outline class="padding-bottom-1" icon-start=launch kind=neutral @click=${this._openItemDetails}>${this._translations.itemDetails}</calcite-button><calcite-button appearance=outline class="padding-bottom-1" icon-start=trash kind=neutral @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-button></div>`}_openConfigureTitlesDialog(){this._configureTitlesOpen=!0}_getConfigureTitlesDialog(){return this._configureTitlesOpen?i`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${()=>{this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this.templateInfos=await this.cardRef.getTemplates()}} .open=${this._configureTitlesOpen} .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_viewDocumentation(e){e.stopPropagation(),window.open(this.card.learnMoreUrl,"_blank")}_openItemDetails(e){e.stopPropagation(),window.open(this.card.itemUrl,"_blank")}_getOwnerSection(){return i`<div class="display-flex padding-bottom-xxl margin-start-end-xxl flex-direction-column"><div class="display-flex justify-between items-baseline"><calcite-label class="font-weight-med label-override" layout=inline scale=l>${this._translations.aboutYourSolutionOwner}</calcite-label><calcite-button appearance=transparent kind=neutral icon-start=pencil @click=${()=>{}}>${this._translations.editSolutionOwner}</calcite-button></div>${u(this.card?.owner,i`<arcgis-user-popup api=4 appearance=outline .baseUrl=${this._configContextConsumer?.value?.orgUrl} class="padding-top-1" .portal=${this._configContextConsumer?.value?.authentication?.Portal} scale=l show-avatar show-name show-username underline .username=${this.card?.owner}></arcgis-user-popup>`)}</div>`}async _openDiagram(e){e.stopPropagation(),this.cardRef&&(this._templateInfoGraph=await this.cardRef.getTemplates(),this._isDiagramOpen=!0)}_getSolutionVersionCard(){let e=this._hasNewVersion?this._translations.newVersionAvailable:this._translations.youHaveTheLatestVersion;return i`<div class="padding-xxl display-flex flex-direction-column"><calcite-label class="font-weight-med label-override" layout=inline scale=l slot=heading>${this._translations.solutionVersion}</calcite-label><div class="display-flex"><div class="display-flex flex-direction-row padding-top-xxl align-items-center"><calcite-icon class="icon-color" icon=clock-forward scale=m></calcite-icon><div class="display-flex flex-direction-column padding-start-lg"><span class="font-weight-bold font-color-1">${this.card?.deployVersion}</span><span>${e}</span></div></div></div>${this._hasNewVersion?i`<calcite-button appearance=outline class="padding-top-xxl" kind=neutral @click=${this._openNewVersionSolution} width=full>${this._translations.viewNewVersion}</calcite-button>`:""}</div>`}_openNewVersionSolution(e){e.stopPropagation();let t=x(this._configContextConsumer.value.allCards,this.card.deployCommonId),n=window.location.href,l=this._configContextConsumer.value.solutionsUrlMarker,a=n.indexOf(l);a>-1&&t&&window.open(`${n.substring(0,a+l.length)}/${t}`,"_blank")}_getSolutionPanel(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._configContextConsumer.value?.userSession;return i`<calcite-panel class="font-size-override panel-background-1"><div class="display-flex flex-direction-row"><div class="image-width margin-lg"><img alt=${this.card?.title??s} src=${`${e}&token=${t?.token}`}></div><div class="display-flex flex-direction-column"><h1 class="title-font margin-block-start-end-0 padding-sides-lg padding-top-xxl padding-bottom-xxl line-height-1">${this.card?.title}</h1><div class="display-flex flex-direction-column padding-bottom-xxl padding-side-1"><div class="display-flex align-items-start padding-bottom-xxl"><calcite-label scale=l class="font-1 padding-end-1">${this.card?.snippet}</calcite-label></div><div class="display-flex"><div class="display-flex"><calcite-label class="label-override icon-color" layout=inline><calcite-icon class="icon-color" icon=projects scale=s></calcite-icon>${this._translations.aboutYourSolutionDeployedDate.replace("{{deployedDate}}",this.card?.created||"")}</calcite-label></div></div></div></div></div></calcite-panel>`}_getSolutionContents(){return i`<calcite-panel class="panel-background-1 padding-top-1"><calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded><div class="margin-block-start-end-0 heading-font " slot=content-start>${this._translations.solutionsContentsAndCount.replace("{{numberOfSolutions}}",this.templateInfos.length.toString())}</div><div class="overflow-auto"><solution-item-accordion list-selection-mode=single .templateInfos=${this.templateInfos} .typeKeywords=${this.card?.typeKeywords}></solution-item-accordion></div></calcite-accordion-item></calcite-accordion></calcite-panel>`}_getDeleteDialog(){return this._deleteDialogOpen?i`<solution-delete-dialog .card=${this.card} @solutionDeleted=${()=>setTimeout(()=>this.navTabSelected.emit({tabType:"deployments"}),100)} @solutionDeleteDialogBeforeClose=${()=>{this._deleteDialogOpen=!1}} .open=${this._deleteDialogOpen}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?i`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramOfTheSolution.replace("{{solution}}",this.card?.title??"")??s} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled resizable scale=l width=l><solution-item-diagram .diagramKey=${this.diagramKey!==""?this.diagramKey:this._configContextConsumer.value?.diagramKey??""} .templateInfoGraph=${this._templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}async _deleteSolution(){this._deleteDialogOpen=!0}};g("solution-deployed-card-panel",r);return r},a,b)
@@ -1,4 +0,0 @@
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.20 */
4
- import{a,b}from"./BP2CHTVW.js";import"./4H5JZV3N.js";import"./N4AIZVPV.js";export{a as ChannelEditorTypes,b as ChannelSchema};
@@ -1,18 +0,0 @@
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.20 */
4
- import{a as E}from"./67PFFTBT.js";import"./7RFFTMJS.js";import{a as S,c as m,d,e as _,f,g as x}from"./YIXPGCUC.js";import"./CNQYI77D.js";import{b as C}from"./2E2FE2UD.js";import{b as v}from"./C3XGN444.js";import{a as $}from"./XX4ZM5IC.js";import"./YESTJISJ.js";import"./SKNE6RLM.js";import{b as I}from"./T6EN2LQT.js";import{C as c,D as o,E as F,G as u,h as y,i as l,l as p,o as b,r as L}from"./DGGOQ3L4.js";import"./N4AIZVPV.js";var V=y`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-foreground-1)}.width-full{width:100%!important}.width-0{width:0}.height-full{height:100%!important}.height-0{height:0}.overflow-hidden{overflow:hidden}.border{border:1px solid var(--calcite-color-border-3)}.notice-msg{padding:10px;width:calc(100% - 20px)}.progress-bar{padding:12px}.footer-top-button{padding-bottom:7px}.footer-button{height:35px}.feature-pagination{background-color:var(--calcite-color-foreground-1)!important;border-block-end:1px solid var(--calcite-color-border-3);display:flex;justify-content:center;padding:5px 0}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:700}.report-submitted-msg{position:absolute;z-index:1000}.share-node{display:flex}}`,g=class extends F{constructor(){super(),this.center="",this.commentButtonText="",this.commentSubmittedMessage="",this.defaultWebmap="",this.description="",this.enableAnonymousAccess=!1,this.enableAnonymousComments=!1,this.enableComments=!1,this.enableHome=!0,this.enableLogin=!1,this.enableNewReports=!1,this.enableSearch=!0,this.enableSnapping=!1,this.enableZoom=!0,this.isMobile=!1,this.layerExpressions=[],this.layerId="",this.level="",this.loginTitle="",this.mapInfos=[],this.objectId="",this.reportButtonText="",this.reportsHeader="",this.reportSubmittedMessage="",this.showComments=!1,this.showUserImageInCommentsList=!1,this.showFeatureSymbol=!1,this.showMyReportsOnly=!1,this.submitNewReportsMessage="",this.theme="light",this.floorLevel="",this.showFullCommentTitle=!0,this.filterByMapExtent=!1,this.sortOption="newest",this.reportingArea=!1,this.reportingAreaLayer="",this.reportingAreaMessage="",this._featureCreationFailedErrorMsg="",this._filterActive=!1,this._flowItems=[],this._hasValidLayers=!1,this._reportSubmitted=!1,this._selectedLayerName="",this._showSubmitCancelButton=!1,this._showLoadingIndicator=!1,this._sidePanelCollapsed=!1,this._translations=$({name:"crowdsource-reporter",blocking:!0}),this._updatedProgressBarStatus=25,this._updatedSortOption="newest",this._commentSubmitted=!1,this._addingCommentFailed=!1,this._filterOpen=!1,this._showNextButton=!1,this._submitNextButtonDisabled=!1,this._createFeature=c(),this._currentFeatureId="",this._editableLayerIds=[],this._featureDetails=c(),this._featureList=c(),this._selectedRelatedFeature=[],this._layerList=c(),this._createRelatedFeature=c(),this._layers=[],this._mapImageryLayersId=[],this._selectedFeature=[],this._selectedFeatureIndex=0,this._selectedLayerId="",this._shareNode=c(),this._urlParamsLoaded=!1,this._validLayers=[],this._nonVisibleValidLayers=[],this._showFullPanel=!1,this._floorExpression="",this._formElements=[],this._prevSelectedLayerId="",this._t9nLayerExpressions=[],this._reportSubmittedAlertNode=c(),this._commentSubmittedAlertNode=c(),this._sortPopoverNode=c(),this.togglePanel=b(),E(window)}static{this.properties={center:1,commentButtonText:1,commentSubmittedMessage:1,defaultWebmap:1,description:1,enableAnonymousAccess:5,enableAnonymousComments:5,enableComments:5,enableHome:5,enableLogin:5,enableNewReports:5,enableSearch:5,enableSnapping:5,enableZoom:5,isMobile:5,layerExpressions:0,layerId:1,level:1,loginTitle:1,mapInfos:0,mapView:0,objectId:1,reportButtonText:1,reportingOptions:0,reportsHeader:1,reportSubmittedMessage:1,searchConfiguration:0,showComments:5,showUserImageInCommentsList:5,showFeatureSymbol:5,showMyReportsOnly:5,submitNewReportsMessage:1,theme:1,zoomToScale:9,floorLevel:1,showFullCommentTitle:5,filterByMapExtent:5,sortOption:1,reportingArea:5,reportingAreaLayer:1,reportingAreaMessage:1,_featureCreationFailedErrorMsg:16,_filterActive:16,_flowItems:16,_hasValidLayers:16,_mapInfo:16,_reportSubmitted:16,_selectedLayerName:16,_showSubmitCancelButton:16,_showLoadingIndicator:16,_sidePanelCollapsed:16,_translations:16,_updatedProgressBarStatus:16,_updatedSorting:16,_updatedSortOption:16,_commentSubmitted:16,_addingCommentFailed:16,_filterOpen:16,_showNextButton:16,_submitNextButtonDisabled:16}}static{this.styles=V}static{this.shadowRootOptions=L}willUpdate(e){e.has("isMobile")&&this.isMobileWatchHandler(this.isMobile),e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("floorLevel")&&this.floorLevelWatchHandler(),(e.has("reportingAreaLayer")||e.has("reportingArea")&&this.hasUpdated)&&setTimeout(()=>{this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)},50),e.has("showMyReportsOnly")&&(this.hasUpdated||this.showMyReportsOnly!==!1)&&this.showMyReportsOnlyWatchHandler(),e.has("sortOption")&&(this.hasUpdated||this.sortOption!=="newest")&&this.sortOptionWatchHandler(),e.has("filterByMapExtent")&&(this.hasUpdated||this.filterByMapExtent!==!1)&&this.filterByMapExtentChangeWatchHandler(),e.has("layerExpressions")&&(this.hasUpdated||this.layerExpressions?.length>0)&&this.layerExpressionsWatchHandler(),e.has("showFeatureSymbol")&&(this.hasUpdated||this.showFeatureSymbol!==!1)&&this.showFeatureSymbolWatchHandler(),(this._flowItems.includes("filter-panel")||this._filterOpen)&&this._filterList?.updateInitDefExpressions({initDefExpressions:this._initDefExpressions})}async isMobileWatchHandler(e){this.updatePanelState(!1,this._showFullPanel),e&&this._flowItems[this._flowItems.length-1]==="filter-panel"?(await this.backFromFilterPanel(),this._filterOpen=!0):!e&&this._filterOpen&&(await this._closeFilter(),this._flowItems=[...this._flowItems,"filter-panel"])}async mapViewWatchHandler(){await this.mapView?.when(async()=>{this.setInitExpressions(),await this.setMapView()})}async floorLevelWatchHandler(){if(this._editableLayerIds)for(let e of this._editableLayerIds){let t=this.mapView&&await d(this.mapView,e);t&&t.floorInfo?.floorField&&this._updateFloorDefinitionExpression(t)}this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value&&await this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh(),this._createFeature.value&&this._createFeature.value.refresh(this.floorLevel)}async showMyReportsOnlyWatchHandler(){this._editableLayerIds&&(await this._updateFeatures(),this.refreshLists())}async sortOptionWatchHandler(){this.updateSortingOptions()}filterByMapExtentChangeWatchHandler(){this.refreshLists()}async layerExpressionsWatchHandler(){await this.resetFilterList(),await this.handleSelectedLayersFilter(),await this._featureList.value?.refresh()}async showFeatureSymbolWatchHandler(){await this._featureList.value?.refresh()}async updateLayerExpressionsT9n(e){if(this._t9nLayerExpressions=e||this.layerExpressions,this._filterList!=null)await this._filterList.handleUpdatingT9nData(this._t9nLayerExpressions);else if(this._currentLayerExpressions!=null){let t=structuredClone(this._currentLayerExpressions);this.handleLayerExpressionsT9n(t,this._t9nLayerExpressions),this._currentLayerExpressions=t}return Promise.resolve()}async load(){this._urlParamsLoaded=!1,await this._initModules(),await this.mapView?.when(async()=>{this._layers=this.reportingOptions?Object.keys(this.reportingOptions).filter(e=>{let t=e&&this.reportingOptions&&this.reportingOptions[e];return t&&t.visible}):[],this.setInitExpressions(),await this.setMapView()})}render(){let e=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`${this._reportSubmitted&&l`<calcite-alert auto-close class=${`${e} report-submitted-msg`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._reportSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.reportSubmittedMessage||this._translations.submitMsg)??""} ${o(this._reportSubmittedAlertNode)}></div></calcite-alert>`||""}${this._featureCreationFailedErrorMsg&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._featureCreationFailedErrorMsg=""}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._featureCreationFailedErrorMsg}</div></calcite-alert>`||""}${this._commentSubmitted&&l`<calcite-alert auto-close class=${`report-submitted ${e}`} icon=check-circle kind=success label @calciteAlertClose=${()=>{this._commentSubmitted=!1}} open placement=top><div slot=message .innerHTML=${(this.commentSubmittedMessage||this._translations.commentSubmittedMsg)??""} ${o(this._commentSubmittedAlertNode)}></div></calcite-alert>`||""}${this._addingCommentFailed&&l`<calcite-alert auto-close class=${u(e)} icon=x-octagon kind=danger label @calciteAlertClose=${()=>{this._addingCommentFailed=!1}} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${this._translations.addingCommentFailedMsg}</div></calcite-alert>`||""}<div><calcite-shell content-behind>${this._getReporter()}</calcite-shell></div>${this.isMobile&&this.filterModal()||""}`}updated(){this._adjustAlertStyles()}async _initModules(){let[e,t,i,s]=await v(["esri/core/reactiveUtils","esri/layers/support/FeatureFilter","esri/rest/identify","esri/rest/support/IdentifyParameters"]);this.reactiveUtils=e,this.FeatureFilter=t,this.identify=i,this.IdentifyParameters=s}async setSelectedLayer(e,t){this._selectedLayerId=e,this._selectedLayer=this.mapView&&await d(this.mapView,e),this._selectedLayerName=t,this._validLayers.forEach(i=>{this._nonVisibleValidLayers.find(s=>s.id===i.id)||i.set("visible",!e||i.id===e)})}_getLayersConfig(e){return this.reportingOptions&&this.reportingOptions[e]?this.reportingOptions[e]:null}_getReporter(){let e=[];this._flowItems.forEach(i=>{switch(i){case"layer-list":e.push(this.getLayerListFlowItem());break;case"feature-list":e.push(this.getFeatureListFlowItem(this._selectedLayerId,this._selectedLayerName));break;case"filter-panel":e.push(this.getFilterPanel());break;case"feature-details":e.push(this.getFeatureDetailsFlowItem());break;case"reporting-layer-list":e.push(this.getChooseCategoryFlowItem());break;case"feature-create":e.push(this.getFeatureCreateFlowItem());break;case"comment-details":e.push(this.getCommentDetailsFlowItem());break;case"add-comment":e.push(this.getAddCommentFlowItem());break}});let t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return l`<calcite-panel class=${`width-full ${t}`}>${this.mapView?l`<calcite-flow>${e?.length>0&&e||""}</calcite-flow>`:l`<calcite-loader label scale=m></calcite-loader>`}</calcite-panel>`}filterModal(){return(this.layerExpressions?this.layerExpressions.filter(e=>e.id===this._selectedLayerId):[]).length>0&&l`<calcite-modal aria-labelledby=modal-title class="modal" kind=brand @calciteModalClose=${()=>void this._closeFilter()} .open=${this._filterOpen} width-scale=s><div class="display-flex align-center" id=modal-title slot=header>${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)}</div><div slot=content>${this.mapView&&l`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>void this._closeFilter()} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>{this._filterActive=!1,this._featureList.value&&this._featureList.value.refresh()}} @filterUpdate=${()=>{this._filterList?.filterCount!==void 0&&this._handleFilterUpdate(this._filterList?.filterCount>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</div></calcite-modal>`||""}_setFilterList(e){this._filterList=e,e&&(e.autoUpdateUrl=!1,e.resetBtn=this.isMobile,e.resetFiltersOnDisconnect=!1,e.zoomBtn=!1)}_adjustAlertStyles(){this.reportSubmittedMessage&&this._reportSubmittedAlertNode.value?.children[0]&&(this._reportSubmittedAlertNode.value.children[0].style.margin="0px"),this.commentSubmittedMessage&&this._commentSubmittedAlertNode.value?.children[0]&&(this._commentSubmittedAlertNode.value.children[0].style.margin="0px")}_toggleFilter(){this._filterOpen=!this._filterOpen}async _closeFilter(){this._filterOpen=!1,this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions())}async sortOptionClick(e,t,i){this._updatedSorting={field:e,order:t},this._updatedSortOption=i,this._sortPopoverNode.value&&(this._sortPopoverNode.value.open=!1)}_toggleSort(){let e=this.reportingOptions&&this.reportingOptions[this._selectedLayerId]&&this.reportingOptions[this._selectedLayerId].like&&this.reportingOptions[this._selectedLayerId].likeField;return l`<calcite-popover auto-close label offset-distance=0 .placement=${this.isMobile?"leading-start":"bottom-start"} pointer-disabled reference-element=sort-popover ${o(this._sortPopoverNode)}><calcite-list label selection-mode=single-persist><calcite-list-item .label=${this._translations.sortNewest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"desc","newest")}} .selected=${this._updatedSortOption==="newest"} value=newest></calcite-list-item><calcite-list-item .label=${this._translations.sortOldest} @calciteListItemSelect=${()=>{this._selectedLayer&&this.sortOptionClick(this._selectedLayer.objectIdField,"asc","oldest")}} .selected=${this._updatedSortOption==="oldest"} value=oldest></calcite-list-item>${e&&l`<calcite-list-item .label=${this._translations.sortHighestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t!==void 0&&this.sortOptionClick(t,"desc","highestVoted")}} .selected=${this._updatedSortOption==="highestVoted"} value=highestVoted></calcite-list-item><calcite-list-item .label=${this._translations.sortLowestVoted} @calciteListItemSelect=${()=>{let t=this.reportingOptions&&this.reportingOptions[this._selectedLayerId].likeField;t&&this.sortOptionClick(t,"asc","lowestVoted")}} .selected=${this._updatedSortOption==="lowestVoted"} value=lowestVoted></calcite-list-item>`||""}</calcite-list></calcite-popover>`}async _handleFilterListReset(){this._filterActive=!1}async _handleFilterUpdate(e){this._showLoadingIndicator=!0,this._filterActive=e,this._featureList.value&&await this._featureList.value.refresh(),this._showLoadingIndicator=!1}getLayerListFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportsHeader} .loading=${this._showLoadingIndicator} .selected=${this._flowItems[this._flowItems.length-1]==="layer-list"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this._hasValidLayers&&this.enableNewReports&&l`<calcite-button appearance=solid @click=${this.navigateToChooseCategory} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel><layer-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} .layers=${this._editableLayerIds?.length>0?this._editableLayerIds:this._layers} .mapView=${this.mapView} @layerSelect=${this.displayFeaturesList} @layersListLoaded=${this.layerListLoaded} show-feature-count show-next-icon ${o(this._layerList)}></layer-list></calcite-panel></calcite-flow-item>`}getChooseCategoryFlowItem(){let e=this.reportingOptions?Object.keys(this.reportingOptions).filter(t=>this.reportingOptions&&this.reportingOptions[t].visible&&this.reportingOptions[t].reporting&&this._layerItemsHash&&this._layerItemsHash[t]&&this._layerItemsHash[t].supportsAdd):[];return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="reporting-layer-list"}><calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><calcite-notice class="notice-msg" icon=lightbulb kind=success open><div slot=message>${this._translations.chooseCategoryMsg}</div></calcite-notice><layer-list class="height-full" .layers=${e} .mapView=${this.mapView} @layerSelect=${this.navigateToCreateFeature}></layer-list></calcite-panel></calcite-flow-item>`}getFeatureCreateFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} @calciteFlowItemBack=${this.backFromCreateFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-create"}>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${this._submitNextButtonDisabled} @click=${this._showNextButton?this.onNextButtonClick.bind(this):this.onCreateFeatureSubmitButtonClick.bind(this)} width=full>${this._showNextButton?this._translations.next:this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}<calcite-panel><div class="progress-bar"><calcite-progress type=determinate .value=${this._updatedProgressBarStatus}></calcite-progress></div><create-feature customize-submit enable-search .enableSnapping=${this.enableSnapping} .floorLevel=${this.floorLevel} .formElements=${this._formElements.find(e=>e.id===this._selectedLayerId)} .reportingAreaLayer=${this.reportingAreaLayer} .isMobile=${this.isMobile} .mapView=${this.mapView} @drawComplete=${this.onFormReady} @editingLocation=${this.editingLocation} @editingAttachment=${this.showSubmitCancelButton} @fail=${this.createFeatureFailed} @modeChanged=${this.backFromCreateFeaturePanel} @progressStatus=${this.updatedProgressStatus} @success=${this.onReportSubmitted} .searchConfiguration=${this.searchConfiguration} .selectedLayerId=${this._selectedLayerId} .reportingArea=${this.reportingArea} .reportingAreaMessage=${this.reportingAreaMessage} .submitNewReportsMessage=${this.submitNewReportsMessage} update-map-position ${o(this._createFeature)}></create-feature></calcite-panel></calcite-flow-item>`}updatedProgressStatus(e){this._updatedProgressBarStatus=e.detail}onFormReady(e){this._submitNextButtonDisabled=e.detail,this._showSubmitCancelButton=!0}editingLocation(){this._showNextButton=!0}showSubmitCancelButton(e){this._showSubmitCancelButton=!e.detail}onCreateFeatureSubmitButtonClick(){this._createFeature.value&&(this._showNextButton=!1,this._createFeature.value.submit())}backFromCreateFeaturePanel(){this._createFeature.value&&(this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updateNonVisibleLayersOnMap(!1)),this.backFromSelectedPanel()}onNextButtonClick(){this._createFeature.value&&(this._showNextButton=!1,this._showSubmitCancelButton=!0,this._createFeature.value.showForm())}onCreateRelatedFeatureSubmitButtonClick(){this._createRelatedFeature.value&&this._createRelatedFeature.value.submit()}backFromCreateRelatedFeaturePanel(){this._createRelatedFeature.value&&(this._showSubmitCancelButton=!1),this.backFromSelectedPanel()}createFeatureFailed(e){console.error(e.detail),this._featureCreationFailedErrorMsg=e.detail.message}async onReportSubmitted(){this._showSubmitCancelButton=!1,this.updateNonVisibleLayersOnMap(!1),await this.navigateToHomePage(),this._reportSubmitted=!0,this._updatedProgressBarStatus=25,this._showFullPanel&&this.updatePanelState(this._sidePanelCollapsed,!1)}addCommentFailed(e){console.error(e.detail),this._addingCommentFailed=!0}async onCommentSubmitted(){this._commentSubmitted=!0,this.backFromCreateRelatedFeaturePanel(),this._showLoadingIndicator=!0,this._featureDetails.value&&await this._featureDetails.value.refresh(this._currentFeature),setTimeout(()=>{this._showLoadingIndicator=!1},300)}async navigateToHomePage(){await this.setSelectedFeatures([]),this._layerList.value&&await this._layerList.value.refresh(),this._editableLayerIds.length===1?(this._featureList.value&&await this._featureList.value.refresh(),this._flowItems=["feature-list"]):this._flowItems=["layer-list"]}async navigateToCreateFeature(e){e.detail.layerId&&e.detail.layerName&&await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateNonVisibleLayersOnMap(!0),this._getFormElements(),this._showSubmitCancelButton=!1,this._showNextButton=!1,this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"feature-create"]}navigateToChooseCategory(){this.updatePanelState(!1,!0),this._flowItems=[...this._flowItems,"reporting-layer-list"]}updateNonVisibleLayersOnMap(e){this._nonVisibleValidLayers.find(t=>t.id===this._selectedLayerId)&&this._selectedLayer&&this._selectedLayer.set("visible",e)}async layerListLoaded(e){if(this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"||this._flowItems[0]==="feature-list"){let t=e.detail,i=this.mapView&&await _(this.mapView),s=[];if(this._validLayers=[],this._nonVisibleValidLayers=[],i?.forEach(a=>{t.includes(a.id)&&(this._validLayers.push(a),a.visible||this._nonVisibleValidLayers.push(a),this._getLayersConfig(a.id)?.reporting&&this._layerItemsHash&&this._layerItemsHash[a.id]&&this._layerItemsHash[a.id].supportsAdd&&s.push(a.id))}),this.handleMapClick(),this._hasValidLayers=s.length>0,!this._urlParamsLoaded&&this._editableLayerIds.length>1&&this.layerId&&this.objectId){let a=this.mapView&&await d(this.mapView,this.layerId);a&&await this.displayFeaturesList({detail:{layerId:a.id,layerName:a.title}}),this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams()}}}async displayFeaturesList(e){this._showLoadingIndicator=!0,await this.setSelectedLayer(e.detail.layerId,e.detail.layerName),this.updateSortingOptions(),this.handleSelectedLayersFilter(),this._flowItems=[...this._flowItems,"feature-list"],this._prevSelectedLayerId=this._selectedLayerId,this._showLoadingIndicator=!1}updateSortingOptions(){let e=this.sortOption===""?"newest":this.sortOption,t=e==="oldest"||e==="lowestVoted"?"asc":"desc",i=this.reportingOptions?.[this._selectedLayerId]?.like?this.reportingOptions?.[this._selectedLayerId]?.likeField:"",s=this._selectedLayer&&(e==="newest"||e==="oldest")?this._selectedLayer?.objectIdField:i;this._updatedSorting={field:s||"",order:t},this._updatedSortOption=!i&&(e==="highestVoted"||e==="lowestVoted")?"newest":e}async backFromFilterPanel(){this._filterList!=null&&(this._currentLayerExpressions=await this._filterList.getCurrentLayerExpressions()),this._featureList.value&&await this._featureList.value.refresh(),this.backFromSelectedPanel()}backFromSelectedPanel(){this._updatedProgressBarStatus=25;let e=[...this._flowItems];if(e[e.length-1]==="comment-details"||e[e.length-1]==="add-comment"||this.clearHighlights(),(e[e.length-1]==="reporting-layer-list"||e[e.length-1]==="feature-create"&&(e[0]==="feature-list"||e[e.length-2]==="feature-list"))&&this.updatePanelState(this._sidePanelCollapsed,!1),e.pop(),e.length===1&&e[0]==="layer-list"){this.navigateToHomePage();return}this._flowItems=[...e]}toggleSidePanel(){this._sidePanelCollapsed=!this._sidePanelCollapsed,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}updatePanelState(e,t){this._sidePanelCollapsed=e,this._showFullPanel=t,this.togglePanel.emit({panelState:this._sidePanelCollapsed,isFormOpen:this._showFullPanel})}async onFeatureSelectFromList(e){await this.setSelectedFeatures([e.detail]),this._flowItems=[...this._flowItems,"feature-details"]}async getRelatedTable(){let e=this._currentFeature?.layer,t=this.mapView&&await f(this.mapView);e.relationships?.some(i=>{let s=t?.filter(a=>e.url===a.url&&a.layerId===i.relatedTableId);return s&&s.length>0?(this._relatedTable=s[0],!0):!1})}async updatingFeatureDetails(e){this._showLoadingIndicator=e}async selectionChanged(e){this.updatingFeatureDetails(!0),await this.setCurrentFeature(e.detail.selectedFeature[0]),this.highlightOnMap(e.detail.selectedFeature[0]),this._selectedFeatureIndex=e.detail.selectedFeatureIndex,this._featureDetails.value&&await this._featureDetails.value.refresh(e.detail.selectedFeature[0])}showAddCommentsPanel(){this._flowItems=[...this._flowItems,"add-comment"]}async onCommentSelectFromList(e){this._selectedRelatedFeature=[e.detail],this._flowItems=[...this._flowItems,"comment-details"]}getFeatureListFlowItem(e,t){let i=this._getLayersConfig(this._selectedLayerId)?.reporting&&this._layerItemsHash&&this._layerItemsHash[this._selectedLayerId].supportsAdd,s=this._currentLayerExpressions?.length;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${t} .loading=${!this.isMobile&&this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-list"}>${this._toggleSort()}<calcite-action icon=sort-ascending-arrow id=sort-popover slot=header-actions-end .text=${this._translations.sort} title=${this._translations.sort??p}></calcite-action>${s&&l`<calcite-action icon=filter .indicator=${this._filterActive} @click=${()=>{this.isMobile?this._toggleFilter():this._flowItems=[...this._flowItems,"filter-panel"]}} slot=header-actions-end .text=${this._translations.filter} title=${this._translations.filter??p}></calcite-action>`||""}${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.enableNewReports&&i&&l`<calcite-button appearance=solid @click=${this.navigateToCreateFeature} slot=footer width=full>${this.reportButtonText?this.reportButtonText:this._translations.createReportButtonText}</calcite-button>`||""}<calcite-panel>${l`<feature-list .applyLayerViewFilter=${this.showMyReportsOnly} class="height-full" .filterByMapExtent=${this.filterByMapExtent} highlight-on-hover .mapView=${this.mapView} .noFeaturesFoundMsg=${this._translations.featureErrorMsg} @featureClick=${()=>{this._showLoadingIndicator=!0}} @featureSelect=${this.onFeatureSelectFromList} page-size=30 .reportingOptions=${this.reportingOptions} .selectedLayerId=${e} .showFeatureSymbol=${this.showFeatureSymbol} .sortingInfo=${this._updatedSorting} ${o(this._featureList)}></feature-list>`}</calcite-panel></calcite-flow-item>`}getFilterPanel(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._translations.filterLayerTitle.replace("{{title}}",this._selectedLayerName)} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromFilterPanel} .selected=${this._flowItems[this._flowItems.length-1]==="filter-panel"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer><div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" .disabled=${!this._filterActive} @click=${this.resetFilterList} width=full>${this._translations.resetFilter}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromFilterPanel} width=full>${this._translations.close}</calcite-button></div></div><calcite-panel>${this.mapView&&l`<instant-apps-filter-list .closeBtnOnClick=${()=>{}} combobox-overlay-positioning=fixed .layerExpressions=${this._currentLayerExpressions} @filterListReset=${()=>void this._handleFilterListReset()} @filterUpdate=${()=>{let e=this._filterList?.filterCount;e!==void 0&&this._handleFilterUpdate(e>0)}} .view=${this.mapView} ${o(this._setFilterList)}></instant-apps-filter-list>`||""}</calcite-panel></calcite-flow-item>`}getFeatureDetailsFlowItem(){let e=this._selectedLayer?.relationships,t=this._getLayersConfig(this._selectedLayerId)?.comment&&e&&e.length>0&&this._relatedTable;return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._selectedLayerName} .loading=${this._showLoadingIndicator} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="feature-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}${this.mapView&&l`<instant-apps-social-share class=share-node flip-rtl popover-button-icon-scale=s remove-popover-offset scale=m share-button-color=neutral share-button-type=action slot=header-actions-end social-media .view=${this.mapView} ${o(this._shareNode)}></instant-apps-social-share>`||""}${this._selectedFeature.length>1&&this.getFeaturesPagination()||""}<calcite-panel><feature-details class=full-height .enableSnapping=${this.enableSnapping} .graphics=${this._selectedFeature} .layerItemsHash=${this._layerItemsHash} .mapView=${this.mapView} @addComment=${this.showAddCommentsPanel} @commentClick=${()=>{this._showLoadingIndicator=!0}} @commentSelect=${this.onCommentSelectFromList} @featureSelectionChange=${this.selectionChanged} @likeOrDislikeClicked=${()=>{this._featureList.value&&this._featureList.value.refresh(!0)}} @loadingStatus=${i=>void this.updatingFeatureDetails(i.detail)} .reportingOptions=${this.reportingOptions} .showFullCommentTitle=${this.showFullCommentTitle} .showUserImageInCommentsList=${this.showUserImageInCommentsList} ${o(this._featureDetails)}></feature-details>${t&&l`<calcite-button appearance=solid @click=${this.showAddCommentsPanel} slot=footer width=full>${this.commentButtonText||this._translations.comment}</calcite-button>`||""}</calcite-panel></calcite-flow-item>`}getFeaturesPagination(){return l`<div class="feature-pagination"><div><calcite-button appearance=transparent icon-start=chevron-left icon-flip-rtl=both id=solutions-back @click=${()=>this._featureDetails.value&&void this._featureDetails.value.back()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-back><span>${this._translations.back}</span></calcite-tooltip></div><calcite-button appearance=transparent @click=${()=>this._featureDetails.value&&void this._featureDetails.value.toggleListView()} scale=s><span class="pagination-count">${this._getCount()}</span></calcite-button><div><calcite-button appearance=transparent icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${()=>this._featureDetails.value&&void this._featureDetails.value.next()} scale=s width=full></calcite-button><calcite-tooltip placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`}getCommentDetailsFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromSelectedPanel} .selected=${this._flowItems[this._flowItems.length-1]==="comment-details"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<calcite-panel><info-card .enableSnapping=${this.enableSnapping} .graphics=${this._selectedRelatedFeature} .mapView=${this.mapView} @selectionChanged=${()=>{this._showLoadingIndicator=!1}}></info-card></calcite-panel></calcite-flow-item>`}getAddCommentFlowItem(){return l`<calcite-flow-item .collapsed=${this.isMobile&&this._sidePanelCollapsed} .heading=${this._relatedTable?.title||""} @calciteFlowItemBack=${this.backFromCreateRelatedFeaturePanel} .selected=${this._flowItems[this._flowItems.length-1]==="add-comment"}>${this.isMobile&&this.getActionToExpandCollapsePanel()||""}<div class=width-full slot=footer>${this._showSubmitCancelButton&&l`<div class=width-full slot=footer><calcite-button appearance=solid class="footer-top-button footer-button" @click=${this.onCreateRelatedFeatureSubmitButtonClick} width=full>${this._translations.submit}</calcite-button><calcite-button appearance=outline class=footer-button @click=${this.backFromCreateRelatedFeaturePanel} width=full>${this._translations.cancel}</calcite-button></div>`||""}</div><calcite-panel><create-related-feature customize-submit .enableSnapping=${this.enableSnapping} .mapView=${this.mapView} @fail=${this.addCommentFailed} @formReady=${this.onFormReady} @isActionPending=${this.showSubmitCancelButton} @success=${this.onCommentSubmitted} .selectedFeature=${this._currentFeature} .table=${this._relatedTable} ${o(this._createRelatedFeature)}></create-related-feature></calcite-panel></calcite-flow-item>`}async setSelectedFeatures(e){this._selectedFeature=e,await this.setCurrentFeature(this._selectedFeature.length?this._selectedFeature[0]:void 0)}async setCurrentFeature(e){if(this._currentFeature=e,e&&e.layer){let t=e.layer;t.title&&this.setSelectedLayer(t.id,t.title),this._currentFeatureId=e.attributes[t.objectIdField],this._getLayersConfig(t.id)?.comment&&t.relationships&&t.relationships.length>0&&await this.getRelatedTable()}else this._editableLayerIds.length>1&&(this.setSelectedLayer("",""),this.handlePrevLayersFilter()),this._currentFeatureId="";this._updateShareURL()}async highlightOnMap(e){if(this.clearHighlights(),e&&e.geometry&&e.layer&&e.layer.id!==void 0){let t=this.mapView&&await m(this.mapView,e.layer.id.toString());if(t){let i=Number(e.getObjectId());this._highlightHandle=this.mapView&&await x([i],t,this.mapView,!0,this.zoomToScale)}}this.updatingFeatureDetails(!1)}clearHighlights(){this._highlightHandle&&this._highlightHandle.remove()}getActionToExpandCollapsePanel(){return l`<calcite-action .icon=${this._sidePanelCollapsed?"chevrons-up":"chevrons-down"} @click=${this.toggleSidePanel} slot=header-actions-end .text=${(this._sidePanelCollapsed?this._translations.expand:this._translations.collapse)||""}></calcite-action>`}async setMapView(){this.mapView&&await f(this.mapView),await this.getLayersToShowInList(),await this._updateFeatures(),this._editableLayerIds?.length===1?await this.renderFeaturesList():this._flowItems=["layer-list"],this.mapView&&(this.mapView.popupEnabled=!1,this._defaultCenter&&this._defaultLevel&&(await this.mapView.goTo({center:this._defaultCenter,zoom:this._defaultLevel}),this._defaultCenter=void 0,this._defaultLevel=void 0))}handleMapClick(){this._mapClickHandle&&this._mapClickHandle.remove(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this.mapView&&(this.mapView.popupEnabled=!1),this.onMapClick(e)})}async onMapClick(e){if(!(this._flowItems[this._flowItems.length-1]==="feature-create"||this._flowItems[this._flowItems.length-1]==="add-comment")&&this.mapView){let t=await this.mapView.hitTest(e),i=[],s=[],a=[],n=!1;t.results.length>0&&t.results.forEach(r=>{r.type==="graphic"&&i.push(r.graphic)}),i.length>0&&(await this._setReportingGraphics(i),s=this._getNonReportingLayerGraphics(i)),this._mapImageryLayersId.length>0&&(a=await this._getIdentifiedGraphics(e.mapPoint),n=a.length>0);let h=s.concat(a);if(h.length>0){this.mapView.popupEnabled=!0;let r={features:h,location:e.mapPoint,updateLocationEnabled:!n};await this.mapView.openPopup(r)}}}async _setReportingGraphics(e){let t=e.filter(i=>{if(i.layer?.type==="feature"){let s=i.layer;return this._validLayers.includes(s)}else return!1});this._selectedLayer&&this._selectedFeature.length>0&&this._selectedLayer.id===t[0]?.layer?.id&&t[0].attributes[this._selectedLayer.objectIdField]===this._selectedFeature[0].attributes[this._selectedLayer.objectIdField]||t.length>0&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems.includes("feature-details")?(this._flowItems=[...this._flowItems.slice(0,this._flowItems.indexOf("feature-details")+1)],await this.highlightOnMap(e[0])):this._flowItems=[...this._flowItems,"feature-details"])}_getNonReportingLayerGraphics(e){return e.filter(t=>{if(t.layer?.type==="feature"){let i=t.layer;return!this._validLayers.includes(i)&&i?.popupEnabled&&i?.id}else return!1})}async _getIdentifiedGraphics(e){let t=this.IdentifyParameters&&new this.IdentifyParameters({geometry:e,tolerance:3,mapExtent:this.mapView?.extent}),i,s=[];for(let n of this._mapImageryLayersId){let h=this.mapView&&await d(this.mapView,n);if(h?.url&&t)try{let r=await this.identify?.identify(h.url,t);if(r?.results?.length){s=r.results,i=h;break}}catch(r){console.error(r)}}let a=[];return s.forEach(n=>{let h=n.layerId,r=i?.sublayers?.items.find(P=>P.id===h),w=r?.popupTemplate;r?.popupEnabled&&w&&(n.feature.popupTemplate=w,a.push(n.feature))}),a}_getCount(){let e=(this._selectedFeatureIndex+1).toString(),t=this._selectedFeature.length.toString();return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)}_updateFloorDefinitionExpression(e){let t=`${e?.floorInfo?.floorField} = '${this.floorLevel}'`,i=e.definitionExpression;e.definitionExpression=i&&i?.indexOf(this._floorExpression)>-1?i.replace(this._floorExpression,t):t,this._floorExpression=t}_getFormElements(){let e=this._selectedLayer;if(e?.floorInfo?.floorField&&this.floorLevel&&e?.formTemplate){let t=this._formElements.find(i=>i.id===e.id);(this._formElements.length===0||!t)&&this._formElements.push({id:e.id,orgElements:e.formTemplate.elements,orgExpressionInfos:e.formTemplate.expressionInfos})}}reduceToConfiguredLayers(e,t){return Object.keys(e).reduce((i,s)=>{let a=this.reportingOptions?this._getLayersConfig(s)?.visible:e[s].supportsAdd;return!t.includes(s)&&a&&i.push(s),i},[])}refreshLists(){setTimeout(()=>{this._layerList.value&&this._flowItems[this._flowItems.length-1]==="layer-list"&&this._layerList.value.refresh(),this._featureList.value&&this._featureList.value.refresh()},50)}async _updateFeatures(){for(let e of this._editableLayerIds){let t=this.mapView&&await m(this.mapView,e);t&&(await this._showMyFeaturesOnly(t),t.layer?.floorInfo?.floorField&&this.floorLevel&&this._updateFloorDefinitionExpression(t.layer))}}async _showMyFeaturesOnly(e){let t=(this.mapView?.map).portalItem.portal?.credential?.userId;if(t&&e){let i=e.layer.editFieldsInfo?.creatorField.toLowerCase();e.filter=this.showMyReportsOnly&&i&&this.FeatureFilter?new this.FeatureFilter({where:i+"='"+t+"'"}):null}}async getLayersToShowInList(){let e=this.mapView&&await S(this.mapView,!0),t=this.mapView&&await _(this.mapView),i=[];t?.forEach(s=>{s?.type==="feature"&&s?.editingEnabled&&s?.capabilities?.operations?.supportsAdd&&(e[s.id].supportsAdd=!0),s?.editingEnabled||i.push(s.id)}),this._editableLayerIds=this.reduceToConfiguredLayers(e,i),this._layerItemsHash=e}async renderFeaturesList(){this._flowItems=["feature-list"];let e={detail:this._editableLayerIds};await this.layerListLoaded(e),await this.setSelectedLayer(this._validLayers[0].id,this._validLayers[0]?.title||""),this.updateSortingOptions(),await this.handleSelectedLayersFilter(),this._urlParamsLoaded||(this._urlParamsLoaded=!0,await this.loadFeatureFromURLParams())}_updateShareURL(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this._selectedLayerId?t.searchParams.set("layerid",this._selectedLayerId):t.searchParams.delete("layerid"),this._selectedFeature?.length?t.searchParams.set("oid",this._currentFeatureId):t.searchParams.delete("oid"),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}async loadFeatureFromURLParams(){if(this.center&&this.level&&await this.mapView?.goTo({center:this.center.split(";").map(Number),zoom:this.level}),this.layerId&&this.objectId){let e=this.mapView&&await d(this.mapView,this.layerId);if(e){let t=this.mapView&&await C([Number(this.objectId)],e,[],!0,this.mapView.spatialReference);t?.length&&(await this.setSelectedFeatures(t),this._flowItems.length&&this._flowItems[this._flowItems.length-1]!=="feature-details"?this._flowItems=[...this._flowItems,"feature-details"]:this._flowItems=[...this._flowItems])}}}async handleSelectedLayersFilter(){if(this._selectedLayer){let e=this.layerExpressions?structuredClone(this.layerExpressions.filter(t=>t.id===this._selectedLayerId)):[];this._t9nLayerExpressions!=null&&this.handleLayerExpressionsT9n(e,this._t9nLayerExpressions),this._currentLayerExpressions=e,this.setActiveDefinitionExpressions()}}async handlePrevLayersFilter(){if(this._prevSelectedLayerId){let e=this.mapView&&await d(this.mapView,this._prevSelectedLayerId);e&&this._initDefExpressions&&(e.definitionExpression=this._initDefExpressions[this._prevSelectedLayerId])}}async resetFilterList(){await this._filterList?.forceReset(),this._selectedLayer!==void 0&&this._initDefExpressions&&(this._selectedLayer.definitionExpression=this._initDefExpressions[this._selectedLayerId],this._filterActive=!1)}setActiveDefinitionExpressions(){if(this._selectedLayer===void 0)return;let e=[];if(this._currentLayerExpressions&&this._currentLayerExpressions?.length>0){let t=this._currentLayerExpressions[0];for(let i of t.expressions){let{active:s,definitionExpression:a}=i;s&&a&&e.push(`(${a})`)}this._filterActive=e.length>0,this.updateFilterLayerDefExpression(e,t.operator)}}updateFilterLayerDefExpression(e,t){let i=this._initDefExpressions&&this._initDefExpressions[this._selectedLayerId],s=e?.length>0&&i?`(${e.join(t)}) AND (${i})`:e.length>0?e.join(t):i;this._selectedLayer&&(this._selectedLayer.definitionExpression=s)}setInitExpressions(){if(this._initDefExpressions={},this.mapView==null)return;let e=this.mapView.map;e.allLayers.concat(e.allTables.toArray()).forEach(t=>{if(t.type==="map-image"&&t.popupEnabled&&!this._mapImageryLayersId.includes(t.id)){this._mapImageryLayersId.push(t.id);return}if(t.type!=="feature")return;let i=t;this._initDefExpressions&&(this._initDefExpressions[i.id]=i.definitionExpression||"")})}handleLayerExpressionsT9n(e,t){e?.forEach(i=>{let s=t?.find(a=>a.id===i.id);s!=null&&(i.title=s.title,i.expressions?.forEach(a=>{let n=s.expressions?.find(h=>h.id===a.id);n!=null&&(a.name=n.name)}))})}};I("crowdsource-reporter",g);export{g as CrowdsourceReporter};
@@ -1,4 +0,0 @@
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.20 */
4
- import{F as s}from"./DGGOQ3L4.js";var t=s({defaultAssetPath:"https://js.arcgis.com/4.34/instant-apps-components/",hydratedAttribute:"hydrated"}),{customElement:n,getAssetPath:i,setAssetPath:p}=t;t.t=void 0;t.o=void 0;t.c=void 0;t.r=void 0;export{t as a,n as b,i as c};
@@ -1,4 +0,0 @@
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.20 */
4
- import{a}from"./3RRAETYC.js";import"./ZF2XHMQZ.js";import"./PYISYGHM.js";import"./LEMWW4ED.js";import"./I3PEU4E4.js";import"./S6R6G6MM.js";import"./4H5JZV3N.js";import"./N4AIZVPV.js";export{a as buildUiSchema};
@@ -1,18 +0,0 @@
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.20 */
4
- import d from"./QFJYWPYF.js";import{b as x}from"./WS4XMXPD.js";import b from"./WTEOQ6IU.js";import{a as S,b as C,c as f,d as w}from"./2R7AUPQI.js";import a from"./A4BQL2K3.js";import{a as r}from"./K5R7D36H.js";import"./SRGIOXPX.js";import"./QTFLAIE5.js";import"./RYLMXGYK.js";import"./SV5GS7VD.js";import"./G577XEWY.js";import"./YLYRRWJW.js";import"./LQHGJORU.js";import"./VRYNGE64.js";import"./EA2CRCAW.js";import"./FDYQ2FKY.js";import"./6TJU76R3.js";import"./XHXMDQDA.js";import"./J27HWMOU.js";import"./EJ6BXACD.js";import"./5BCHBBEG.js";import"./VIKALXXD.js";import"./LEMWW4ED.js";import"./I3PEU4E4.js";import"./S6R6G6MM.js";import"./4H5JZV3N.js";import{p as m,q as g}from"./CNQYI77D.js";import{a as v}from"./XX4ZM5IC.js";import"./YESTJISJ.js";import"./SKNE6RLM.js";import{b as y}from"./T6EN2LQT.js";import{C as s,D as i,E as T,G as u,h as _,i as c,o as n}from"./DGGOQ3L4.js";import"./N4AIZVPV.js";export default $arcgis.t(([,{g:$,h:k},A])=>{var I=_`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.back-color-override{background-color:var(--calcite-color-foreground-2);--calcite-tab-border-color: var(--calcite-color-foreground-3)}.display-none{display:none!important}.height-100{height:100%}calcite-tab-nav{padding-bottom:6px;padding-top:6px}calcite-tabs{--calcite-color-focus: transparent;height:100%}.tab-space-0{--calcite-tab-content-space-y: var(--calcite-spacing-none)}.tab-space-md{--calcite-tab-content-space-y: var(--calcite-spacing-md)}solutions-searchsort-toolbar,solutions-deploy-app-nav,solution-details-panel,solutions-resources-shell,solutions-deployed-shell,solutions-all-shell,calcite-tab-nav,solution-deployed-card-panel{width:1440px;display:block;max-width:96vw;padding-right:var(--calcite-spacing-none);padding-left:var(--calcite-spacing-none);margin-left:auto;margin-right:auto;box-sizing:border-box}.border{height:var(--calcite-spacing-px);border-bottom-color:var(--calcite-color-border-3);border-bottom-style:solid;border-bottom-width:var(--calcite-border-width-sm);box-sizing:border-box}`,p=class extends T{constructor(){super(),this.sortType="relevance",this.useLocalAppConfig=!1,this.authentication=void 0,this._isLoaded=!1,this.isMobile=!1,this._translations=v({name:"solutions-deploy-app",blocking:!0}),this._agoTerms=`${m} OR ${g}`,this._allCards=[],this._allShell=s(),this._allTab=s(),this._allTabTitle=s(),this._resourcesTab=s(),this._resourcesTabTitle=s(),this._authContextProvider=r({context:f}),this._categories=[],this._configContextProvider=r({context:w}),this._delay=!1,this._deployAppNav=s(),this._deployedCardPanel=s(),this._deployedCardTab=s(),this._deployedCardTabTitle=s(),this._detailsShell=s(),this._detailsTab=s(),this._detailsTabTitle=s(),this._getSuggested=!1,this._isMobileContextProvider=r({context:C}),this._mySolutionsShell=s(),this._mySolutionsTab=s(),this._mySolutionsTabTitle=s(),this._sortField="relevance",this._sortOrder="desc",this._userSessionContextProvider=r({context:S}),this.deployAppTabSelected=n(),this.detailsCardSelected=n(),this.deployedCardSelected=n(),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,sortType:1,useLocalAppConfig:5,authentication:16,_isLoaded:16,isMobile:16,_translations:16}}static{this.styles=I}async selectTab(t,e){if(this._isLoaded){let a=this._getDefaultSearchOptions(e);switch(t.tabType){case"all-solutions":this._allTab.value.selected=!0,this._allTabTitle.value.selected=!0,a&&await this._allShell.value?.searchSolutions(a);break;case"resources":this._resourcesTab.value.selected=!0,this._resourcesTabTitle.value.selected=!0;break;case"deployed-card":alert("need to figure out the lookup here since it will need to happen based on id");break;case"details":if(this._allCards){let l=$(this._allCards,t.tabTitleOrId);l=l||k(this._allCards,t.tabTitleOrId),l?(this._detailsTab.value.selected=!0,this._detailsTabTitle.value.selected=!0,this.detailsCardSelected.emit(l)):(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,a&&await this._mySolutionsShell.value?.searchSolutions(a);break}this._setActiveTab(new CustomEvent("setActiveTab",{detail:t})),this._blurTabs()}else this._initTab=t,this._initFilters=e}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=x)}render(){let t=this._isLoaded?"display-none":"",e=this._isLoaded?"":"display-none";return c`<calcite-shell><solutions-deploy-app-nav .appConfig=${this.appConfig} @authInit=${this._handleAuthInit} slot=header .useLocalAppConfig=${this.useLocalAppConfig} ${i(this._deployAppNav)}></solutions-deploy-app-nav><div class="border" slot=header></div><solutions-searchsort-toolbar .isMobile=${this.isMobile} slot=header></solutions-searchsort-toolbar><calcite-loader class=${u(t)} id=solutions-loader .label=${this._translations.fetchingAllSolutions}></calcite-loader><calcite-tabs class=${u(e)} scale=l><calcite-tab-nav class="display-none" slot=title-group><calcite-tab-title ${i(this._allTabTitle)}>${this._translations.allSolutions}</calcite-tab-title>${this.authentication?.IsSignedIn?c`<calcite-tab-title ${i(this._mySolutionsTabTitle)}>${this._translations.mySolutions}</calcite-tab-title>`:""}<calcite-tab-title ${i(this._resourcesTabTitle)}>${this._translations.solutionResources}</calcite-tab-title><calcite-tab-title class="display-none" ${i(this._detailsTabTitle)}></calcite-tab-title><calcite-tab-title class="display-none" ${i(this._deployedCardTabTitle)}></calcite-tab-title></calcite-tab-nav><calcite-tab class="back-color-override tab-space-0" selected ${i(this._allTab)}><solutions-all-shell class="height-100" ${i(this._allShell)}></solutions-all-shell></calcite-tab>${this.authentication?.IsSignedIn?c`<calcite-tab class="back-color-override tab-space-0" ${i(this._mySolutionsTab)}><solutions-deployed-shell class="height-100" ${i(this._mySolutionsShell)}></solutions-deployed-shell></calcite-tab>`:""}<calcite-tab class="back-color-override tab-space-0" ${i(this._resourcesTab)}><solutions-resources-shell class="height-100"></solutions-resources-shell></calcite-tab><calcite-tab class="back-color-override" ${i(this._detailsTab)}><solution-details-panel class="height-100" ${i(this._detailsShell)}></solution-details-panel></calcite-tab><calcite-tab class="back-color-override tab-space-0" ${i(this._deployedCardTab)}><solution-deployed-card-panel class="shell-container height-100" ${i(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.userSession&&this._userSessionContextProvider.setValue(e.userSession),e.authentication&&(this.authentication=e.authentication,this._authContextProvider.setValue(this.authentication)),this._cardsFetcher=new A(e.locale,e.orgUrl,e.portalUrl),await this._getSolutions(e.primarySolutionsGroupId),e.allCards=this._allCards,this._configContextProvider.setValue(e),this._isLoaded=!0,this._initTab&&(this.selectTab(this._initTab,this._initFilters),this._initTab=void 0,this._initFilters=void 0)}_mediaQueryChange(t){this.isMobile=t.matches,this._isMobileContextProvider.setValue(this.isMobile)}_setActiveTab(t){let e=t.detail.tabType;switch(e){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();case"details":this._detailsTabTitle.value?.click();break}e!=="details"&&(this._deployAppNav.value.activateMenuItem(e),this.deployAppTabSelected.emit(e))}_detailsCardSelected(){this._detailsTabTitle.value.selected=!0,this._detailsTab.value.selected=!0,this._deployAppNav.value.clearMenuItems()}_deployedCardSelected(){this._deployedCardTabTitle.value.selected=!0,this._deployedCardTab.value.selected=!0,this._deployAppNav.value.clearMenuItems()}_deployProgressEnd(){this._mySolutionsTabTitle.value.selected=!0,this._mySolutionsTab.value.selected=!0}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._userSessionContextProvider.value,{num:1e3});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards),this._allCards}_blurTabs(){this._allTabTitle.value?.blur(),this._resourcesTabTitle.value?.blur(),this._detailsTabTitle.value?.blur(),this._mySolutionsTabTitle.value?.blur()}_getDefaultSearchOptions(t){let e;if(t){let a=t.domain,l=t.industry,b=t.offerType,d=t.searchTerm,L="",o=t.sortField,h=t.owner;e=a||l?{type:a?"domain":l?"industry":""}:void 0,a&&(e=e?{...e,domain:a}:{domain:a}),l&&(e=e?{...e,industry:l}:{industry:l}),d&&(e=e?{...e,searchTerm:d}:{searchTerm:d}),e&&(e={...e,displayValue:L}),o&&(e=e?{...e,sortType:o}:{sortType:o}),b&&(o=b.toLowerCase(),e=e?{...e,sortType:o}:{sortType:o}),h&&(e=e?{...e,owner:h}:{owner:h})}return e}};y("solutions-deploy-app",p);return p},a,b,d)
@@ -1,18 +0,0 @@
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.20 */
4
- import{b as y}from"./C3XGN444.js";import{a as f}from"./XX4ZM5IC.js";import"./YESTJISJ.js";import"./SKNE6RLM.js";import{b}from"./T6EN2LQT.js";import{C as a,D as h,E as u,G as l,h as w,i as r,l as m}from"./DGGOQ3L4.js";import"./N4AIZVPV.js";var x=w`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block}.display-none{display:none}.display-flex{display:flex}.margin-top-1-2{margin-top:.5rem}.margin-left-1-2{margin-left:.5rem}.square-32{width:32px;height:32px}.square-40{width:40px;height:40px}.square-48{width:48px;height:48px}.width-40{width:40px}.square-40-41{width:40px;height:41px}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.box-shadow{box-shadow:0 1px 2px #0000004d}.margin-bottom-1-2{margin-bottom:.5rem}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}`,g=class extends u{constructor(){super(),this.enabledLayerIds=[],this.enableLegend=!1,this.enableFloorFilter=!1,this.enableFullscreen=!1,this.enableSearch=!1,this.enableBasemap=!1,this.enableHome=!1,this.enableSingleExpand=!1,this.zoomToolsSize="m",this.layout="vertical",this.mapWidgetsSize="m",this.enableMapPicker=!1,this.enableMapLayerPicker=!1,this.position="top-leading",this.stackTools=!0,this.enableSelectionTool=!1,this.toolOrder=["home","legend","search","fullscreen","floorfilter","selectiontool","map-picker","map-layer-picker"],this.mapInfos=[],this.defaultLayerId="",this.isMobile=!1,this.selectedWebMapId="",this.showOnlyUpdatableLayers=!1,this._hasFloorInfo=!1,this._translations=f({name:"map-tools",blocking:!0}),this._showTools=!0,this._showBasemapWidget=!1,this._showFloorFilter=!1,this._showFullscreen=!1,this._showLegendWidget=!1,this._showSearchWidget=!1,this._selectionToolActive=!1,this._showEllipsisTools=!0,this._ellipsisTools=[],this._isValidWebMap=!0,this._basemapElement=a(),this._floorFilterElement=a(),this._fullscreenElement=a(),this._legendElement=a(),this._searchElement=a(),this._widgets=[],this._selectionToolElement=a(),this._mapTools=[],this._mapTool=a(),this.listenOn(window,"mapChanged",this.mapChanged)}static{this.properties={basemapConfig:0,enabledLayerIds:0,enableLegend:5,enableFloorFilter:5,enableFullscreen:5,enableSearch:5,enableBasemap:5,enableHome:5,enableSingleExpand:5,zoomToolsSize:1,layout:1,mapView:0,mapWidgetsSize:1,enableMapPicker:5,enableMapLayerPicker:5,position:1,searchConfiguration:0,stackTools:5,enableSelectionTool:5,toolOrder:0,selectedLayer:0,mapInfos:0,defaultLayerId:1,isMobile:5,parentComponentHeight:9,parentComponentWidth:9,selectedWebMapId:1,showOnlyUpdatableLayers:5,mapInfo:0,_hasFloorInfo:16,_translations:16,_showTools:16,_showBasemapWidget:16,_showFloorFilter:16,_showFullscreen:16,_showLegendWidget:16,_showSearchWidget:16,_selectionToolActive:16,_showEllipsisTools:16,_ellipsisTools:16,_isValidWebMap:16}}static{this.styles=x}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("parentComponentWidth")&&this.parentComponentWidth&&this.parentComponentWidthWatchHandler(this.parentComponentWidth),e.has("_showBasemapWidget")&&(this.hasUpdated||this._showBasemapWidget!==!1)&&this._showBasemapWidgetWatchHandler(this._showBasemapWidget),e.has("_showFloorFilter")&&(this.hasUpdated||this._showFloorFilter!==!1)&&this._showFloorFilterWatchHandler(this._showFloorFilter),e.has("_showFullscreen")&&(this.hasUpdated||this._showFullscreen!==!1)&&this._showFullscreenWatchHandler(this._showFullscreen),e.has("_showLegendWidget")&&(this.hasUpdated||this._showLegendWidget!==!1)&&this._showLegendWidgetWatchHandler(this._showLegendWidget),e.has("_showSearchWidget")&&(this.hasUpdated||this._showSearchWidget!==!1)&&this._showSearchWidgetWatchHandler(this._showSearchWidget)}async mapViewWatchHandler(){await this.mapView?.when(()=>{this.enableHome&&this._initHome(),this.parentComponentWidth&&this._updateTools(this.parentComponentWidth)})}async parentComponentWidthWatchHandler(e){this._updateTools(e)}async _showBasemapWidgetWatchHandler(e){let s=this._basemapElement.value?this._basemapElement.value.basemapWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showFloorFilterWatchHandler(e){let s=this._floorFilterElement.value?this._floorFilterElement.value.floorFilterWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showFullscreenWatchHandler(e){let s=this._fullscreenElement.value?this._fullscreenElement.value.fullscreenWidget:void 0;s&&(e?s.viewModel.state==="ready"&&s.viewModel.enter():s.viewModel.state==="active"&&s.viewModel.exit())}async _showLegendWidgetWatchHandler(e){let s=this._legendElement.value?this._legendElement.value.legendWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async _showSearchWidgetWatchHandler(e){let s=this._searchElement.value?this._searchElement.value.searchWidget:void 0;s&&(e?this.mapView?.ui.add(s,{position:this.position,index:1}):this.mapView?.ui.remove(s))}async mapChanged(e){let s=e.detail.isValid;this._isValidWebMap=s}async load(){this._mapTools=[...this.toolOrder],await this._initModules()}render(){this._setZoomToolsSize();let e=this.layout==="horizontal"?"display-flex":"",s=this._getToggleIcon(),t=this._showTools?e:"display-none",i=this._showEllipsisTools?"":"display-none",n=this._showSearchWidget?"":"display-none",o=this._showBasemapWidget?"":"display-none",d=this._showLegendWidget?"":"display-none",p=this._showFloorFilter?"":"display-none",c=this._showFullscreen?"":"display-none",W=this._showTools?this._translations.collapse:this._translations.expand,T=!this.enableBasemap&&!this.enableFullscreen&&!this.enableLegend&&!this.enableSearch&&!this.enableMapPicker&&!this.enableMapLayerPicker?"display-none":"",v=this.enableSingleExpand?this.layout==="horizontal"?"margin-left-1-2":"margin-top-1-2":"",F=this._ellipsisTools.length>0&&this._showTools?"":"display-none",_=this.stackTools&&this._ellipsisTools.length===0?"box-shadow":"";return r`<div class=${`${T} ${e}`}>${this.enableSingleExpand?r`<div class=${l(_)}>${this._getActionGroup(s,!1,W||"",()=>this._toggleTools())}</div>`:void 0}<div class=${`${v} ${_} ${t}`}>${this._getMapWidgets(this._mapTools)}</div><div><div class=${l(F)}>${this._getActionGroup("ellipsis",!1,"",()=>this._toggleEllipsisTools())}<div class=${l(i)}>${this._getMapWidgets(this._ellipsisTools)}</div></div></div></div><basemap-gallery .basemapConfig=${this.basemapConfig} class=${l(o)} .mapView=${this.mapView} ${h(this._basemapElement)}></basemap-gallery><map-search class=${l(n)} .mapView=${this.mapView} result-graphic-enabled .searchConfiguration=${this.searchConfiguration} ${h(this._searchElement)}></map-search><map-legend class=${l(d)} .mapView=${this.mapView} ${h(this._legendElement)}></map-legend><map-fullscreen class=${l(c)} .mapView=${this.mapView} @fullscreenStateChange=${$=>this._fullscreenStateChange($.detail)} ${h(this._fullscreenElement)}></map-fullscreen><floor-filter class=${l(p)} .enabled=${this.enableFloorFilter} .mapView=${this.mapView} ${h(this._floorFilterElement)}></floor-filter><selection-tool .mapView=${this.mapView} @drawingComplete=${()=>{this._selectionToolActive=!this._selectionToolActive}} .selectedLayerId=${this.selectedLayer?.id} tool=rectangle ${h(this._selectionToolElement)}></selection-tool>${this.enableMapPicker&&r`<map-picker class=mapPickerClass .height=${(this.parentComponentHeight??0)-25} id=map-picker .mapInfos=${this.mapInfos} reference-element=map .selectedWebMapId=${this.selectedWebMapId} show-map-list-in-popover></map-picker>`||""}${this.enableMapLayerPicker&&this.selectedLayer&&r`<map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} .enabledLayerIds=${this.enabledLayerIds} .height=${(this.parentComponentHeight??0)-25} .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} reference-element=layers scale=s .selectedIds=${this.selectedLayer?[this.selectedLayer.id]:[]} show-layers-list-in-popover show-tables type=dropdown></map-layer-picker>`||""}`}async _initModules(){let[e,s]=await y(["esri/widgets/Expand","esri/widgets/Home"]);this.Expand=e,this.Home=s}_initHome(){this.enableHome&&(this._homeWidget=this.Home&&new this.Home({view:this.mapView}))}_setZoomToolsSize(){let e=document.getElementsByClassName("esri-zoom")[0]?.children[0],s=document.getElementsByClassName("esri-zoom")[0]?.children[1];if(e&&s){let t=this.zoomToolsSize==="s"?"32px":this.zoomToolsSize==="m"?"40px":"48px";e.style.width=t,e.style.height=t,s.style.width=t,s.style.height=t}this.layout==="horizontal"&&(document.getElementsByClassName("esri-zoom")[0]?.setAttribute("style","position: absolute; top: 50px; left: 0"),document.getElementsByClassName("esri-ui-top-left")[0]?.setAttribute("style","flex-direction: row; gap: 5px; align-items: flex-start; direction: ltr !important; z-index: 1;"))}_getToggleIcon(){let e;return this.layout==="horizontal"?e=this._showTools?"chevrons-left":"chevrons-right":e=this._showTools?"chevrons-up":"chevrons-down",e}_updateTools(e){let s=JSON.parse(JSON.stringify(this.toolOrder));this._hasFloorInfo=this.mapView?.map?.floorInfo;let t=s.indexOf("floorfilter");t>-1&&!this._hasFloorInfo&&s.splice(t,1);let i=Math.ceil(e/40)-1;i&&i!==s.length-1?(this._mapTools=s.slice(0,i),this._ellipsisTools=s.slice(i,s.length)):(this._mapTools=s,this._ellipsisTools=[])}_getMapWidgets(e){let s=this._showFullscreen?"full-screen-exit":"full-screen",t=this._showFullscreen?this._translations.exitFullscreen:this._translations.enterFullscreen,i=this._isValidWebMap?"map":"exclamation-mark-triangle",n=this.selectedLayer===void 0?"exclamation-mark-triangle":"layers";return e.map(o=>{switch(o){case"legend":return this.enableLegend&&this.enableSingleExpand?this._getActionGroup("legend",!1,this._translations.legend,()=>this._showLegend()):this.enableLegend?this._getWidget(o,this._legendElement.value?.legendWidget,!0):void 0;case"search":return this.enableSearch&&this.enableSingleExpand?this._getActionGroup("magnifying-glass",!1,this._translations.search,()=>this._search()):this.enableSearch?this._getWidget(o,this._searchElement.value?.searchWidget,!0):void 0;case"fullscreen":return this.enableFullscreen&&this.enableSingleExpand?this._getActionGroup(s,!1,t||"",()=>this._expand()):this.enableFullscreen?this._getWidget(o,this._fullscreenElement.value?.fullscreenWidget,!1):void 0;case"basemap":return this.enableBasemap&&this.enableSingleExpand?this._getActionGroup("basemap",!1,this._translations.basemap,()=>this._toggleBasemapPicker()):this.enableBasemap?this._getWidget(o,this._basemapElement.value?.basemapWidget,!0):void 0;case"floorfilter":return this.enableFloorFilter&&this._hasFloorInfo&&this.enableSingleExpand?this._getActionGroup("urban-model",!1,this._translations.floorFilter,()=>this._toggleFloorFilter()):this.enableFloorFilter&&this._hasFloorInfo?this._getWidget(o,this._floorFilterElement.value?.floorFilterWidget,!0):void 0;case"selectiontool":return this.enableSelectionTool&&this.selectedLayer?this._getActionGroup("cursor-selection",!1,this._translations.selectByRectangle,()=>this._toggleSelectionTool(),this._selectionToolActive):void 0;case"home":return this.enableHome?this._getActionGroup("home",!1,this._translations.defaultMapView,()=>this._homeWidget?.go()):void 0;case"map-picker":return this.enableMapPicker?this._getActionGroup(i,!1,"",()=>{},!this._isValidWebMap):void 0;case"map-layer-picker":return this.enableMapLayerPicker&&this._isValidWebMap?this._getActionGroup(n,!1,"",()=>{},this.selectedLayer===void 0):void 0;default:return""}})}_fullscreenStateChange(e){e==="ready"&&this._showFullscreen?this._showFullscreen=!1:e==="active"&&!this._showFullscreen&&(this._showFullscreen=!0)}_getActionGroup(e,s,t,i,n,o){let d=this.mapWidgetsSize==="s"?"square-32":this.mapWidgetsSize==="m"?"square-40":"square-48",p=this.stackTools?"":"margin-bottom-1-2",c=this.stackTools?"":"box-shadow";return r`<div><calcite-action alignment=center .indicator=${o} class=${`map-actions ${d} ${p} border-bottom ${c} ${n?"danger-icon-color":""}`} .disabled=${s} .icon=${e} id=${e??m} @click=${i} scale=s text ${h(this._mapTool)}><calcite-icon icon=cheveron-up scale=s slot=icon></calcite-icon></calcite-action>${!this.isMobile&&r`<calcite-tooltip .placement=${this.layout==="vertical"?"auto":"bottom"} reference-element=${e??m}><span>${t}</span></calcite-tooltip>`||""}</div>`}_getWidget(e,s,t){if(this._widgets.indexOf(e)<0&&this.mapView&&s){let i=this.toolOrder.indexOf(e),n=this.Expand&&new this.Expand({view:this.mapView,content:s}),o=this.enableHome?2:1;this.mapView.ui.add(t?n:s,{position:this.position,index:i>-1?i+o:1}),this._widgets.push(e)}}_showLegend(){this._showLegendWidget=!this._showLegendWidget,this._showTools=!1,this._toggleEllipsisTools()}_search(){this._showSearchWidget=!this._showSearchWidget,this._showTools=!1,this._toggleEllipsisTools()}_toggleBasemapPicker(){this._showBasemapWidget=!this._showBasemapWidget,this._showTools=!1,this._toggleEllipsisTools()}_toggleFloorFilter(){this._showFloorFilter=!this._showFloorFilter,this._showTools=!1,this._toggleEllipsisTools()}_toggleSelectionTool(){this._selectionToolActive=!this._selectionToolActive,this._selectionToolElement.value?.toggleSelectionTool()}_expand(){this._showFullscreen=!this._showFullscreen}_toggleTools(){this._showTools||(this._showBasemapWidget=!1,this._showSearchWidget=!1,this._showLegendWidget=!1,this._showFloorFilter=!1),this._showTools=!this._showTools,this._toggleEllipsisTools()}_toggleEllipsisTools(){this._showEllipsisTools=!this._showEllipsisTools}};b("map-tools",g);export{g as MapTools};
@@ -1,4 +0,0 @@
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.20 */
4
- import{a,b}from"./EMC4J76D.js";import"./5IY7QON3.js";import"./7B2JUGRA.js";import"./4KVLYOZL.js";import"./ZFZ663TV.js";import"./MQUYDV5R.js";import"./N4AIZVPV.js";export{a as InitiativeEditorTypes,b as InitiativeSchema};
@@ -1,18 +0,0 @@
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.20 */
4
- import g from"./CL2HUELG.js";import e from"./QFJYWPYF.js";import c from"./WTEOQ6IU.js";import{a as b,c as I,d as A}from"./2R7AUPQI.js";import a from"./A4BQL2K3.js";import{b as h}from"./K5R7D36H.js";import"./SRGIOXPX.js";import"./QTFLAIE5.js";import"./RYLMXGYK.js";import"./SV5GS7VD.js";import"./G577XEWY.js";import"./YLYRRWJW.js";import"./LQHGJORU.js";import"./VRYNGE64.js";import"./EA2CRCAW.js";import"./FDYQ2FKY.js";import"./6TJU76R3.js";import"./XHXMDQDA.js";import"./J27HWMOU.js";import"./EJ6BXACD.js";import"./5BCHBBEG.js";import"./VIKALXXD.js";import"./LEMWW4ED.js";import"./I3PEU4E4.js";import"./S6R6G6MM.js";import"./4H5JZV3N.js";import{k as w,l as T,o as x,p as u,q as v}from"./CNQYI77D.js";import{a as f}from"./XX4ZM5IC.js";import"./YESTJISJ.js";import"./SKNE6RLM.js";import{b as C}from"./T6EN2LQT.js";import{E as S,h as m,i as l,j as y,o as d}from"./DGGOQ3L4.js";import"./N4AIZVPV.js";export default $arcgis.t(([,{c:L},g,F])=>{var V=m`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */calcite-panel{width:100%;height:100%;--calcite-panel-background-color: var(--calcite-color-foreground-2)}.card-group{overflow:hidden;padding:.2rem var(--calcite-spacing-md) var(--calcite-spacing-md)}.solutions-briefcase{margin:auto;padding-top:var(--calcite-spacing-xxxl)}.text-center{text-align:center}.leader-1{margin-top:var(--calcite-spacing-xxl)}.trailer-1{margin-bottom:var(--calcite-spacing-xxl)}.warning-text{max-width:35em;margin-left:auto;margin-right:auto}.no-solutions{display:flex;flex-direction:column;justify-content:center;width:100%;height:100%;transform:translateY(50%)}`,O=5,p=class extends S{constructor(){super(),this.sortType="relevance",this._cards=[],this._isLoading=!0,this._modifiedCheckTry=0,this._translations=f({name:"solutions-all-panel",blocking:!0}),this._agoTerms=`${u} OR ${v}`,this._allCards=[],this._authContextConsumer=h({context:I,subscribe:!0}),this._baseAgoTerms=u,this._categories=[],this._configContextConsumer=h({context:A,subscribe:!0,callback:async e=>{e&&await this._loadUpdateProcedures()}}),this._delay=!1,this._getSuggested=!1,this._relatedSolutions=new Set,this._sortField="relevance",this._sortOrder="desc",this._userSessionContextConsumer=h({context:b,subscribe:!0}),this.cardsFetched=d(),this.allCardsFetched=d(),this.searchTermSet=d(),this.sortTypeSet=d(),this.detailsCardSelected=d(),this.listenOn(window,"deployProgressEnd",()=>{this._modifiedCheckTry=O,this._loadUpdateProcedures()}),this.listenOn(window,"solutionDeleted",()=>{this._modifiedCheckTry=O,this._loadUpdateProcedures()}),this.listenOn(window,"sortTypeChanged",e=>{e.detail&&e.detail.scope==="all-solutions"&&(this.sortType=e.detail.sortType,this.sortType==="suggested"&&this._deployedSolutions?.cards.length===0?this._getDeployedSolutions().then(()=>{this.searchSolutions(e.detail)}):this.searchSolutions(e.detail))}),this.listenOn(window,"solutionIDFromAssistant",e=>{this._lookupSolutionById(e.detail)})}static{this.properties={sortType:1,_cards:16,_isLoading:16,_modifiedCheckTry:16,_translations:16}}static{this.styles=V}async searchSolutions(e){e?"searchTerm"in e?this._textSearch(e.searchTerm):"sortType"in e?this._sortCards(e):this._filterCards(e):(this._agoTerms=this._baseAgoTerms,this._clearFilterCategories()),this._cards=await this._getSolutions()}async setSearchOptions(e){e&&("searchTerm"in e&&(this._textSearch(e.searchTerm),this.searchTermSet.emit({searchTerm:e.searchTerm,scope:"all-solutions"})),"sortType"in e&&(this._sortCards(e),this.sortTypeSet.emit({sortType:e.sortType,scope:"all-solutions"})))}render(){return this._isLoading||this._cards.length?l`<calcite-panel>${this._isLoading?l`<calcite-loader id=solutions-all-panel-loader .label=${this._translations.fetchingSolutions}></calcite-loader>`:l`<calcite-card-group class="card-group" .label=${this._translations.allSolutionCards}>${this._renderCards()}</calcite-card-group>`}</calcite-panel>`:l`<div class="no-solutions">${this._getSolutionsBriefcase()}<div class="text-center leader-1 warning-text trailer-1">${this._translations.noSolutionsFound}</div></div>`}_renderCards(){return this._cards.map(e=>l`<solution-details-card .card=${e}></solution-details-card>`)}async _getSolutions(){if(this._configContextConsumer.value){this._isLoading=!0;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},this._configContextConsumer.value?.primarySolutionsGroupId,"",this._userSessionContextConsumer.value,{num:1e3}),t=e?.cards.length?e.cards:[];if(this.sortType==="new"||this.sortType==="updated"){let s="/Categories/New Release";this.sortType==="updated"&&(s="/Categories/Updated"),t.sort((a,n)=>a.categories.includes(s)&&!n.categories.includes(s)?-1:!a.categories.includes(s)&&n.categories.includes(s)?1:a.categories.includes(s)&&n.categories.includes(s)?a.categories.length-n.categories.length:0)}else if(this.sortType==="suggested"&&this._relatedSolutions.size>0&&this._deployedSolutions?.cards?.length){let s=new Map;for(let i of t){let r=s.get(i.deployCommonId),c=Number(i.deployVersion);(!r||c>r)&&s.set(i.deployCommonId,c)}let a=this._deployedSolutions.cards.filter(i=>{let r=s.get(i.deployCommonId);return r!==void 0&&Number(i.deployVersion)>=r}),n=new Set(a.map(i=>i.deployCommonId));this._relatedSolutions=new Set([...this._relatedSolutions].filter(i=>!n.has(i))),t.sort((i,r)=>{let c=this._relatedSolutions.has(i.deployCommonId),_=this._relatedSolutions.has(r.deployCommonId);return c&&!_?-1:!c&&_?1:0})}let o=t.map(s=>{let a=s.categories.indexOf("/Categories/New Release")>-1,n=s.categories.indexOf("/Categories/Updated")>-1,i=!1,r=!0;return this._deployedSolutions&&(i=this._isSolutionDeployed(s.deployCommonId),r=this._isLatestVersion(s)),s.chip=a?"new":n?"updated":i&&r?"deployed":"none",s.supportReuse=i?!!(i&&!r):!0,s});return this._allCards.length===0&&e?.cards&&(this._allCards=e?.cards,this._deployedSolutions&&(this._relatedSolutions=L(this._deployedSolutions.cards,this._allCards))),this.cardsFetched.emit(o.length),this._isLoading=!1,o}else return this._isLoading=!1,[]}async _loadUpdateProcedures(){this._isLoading=!0;let e=this._configContextConsumer.value;this._cardsFetcher=new g(e.locale,e.orgUrl,e.portalUrl),this._cardsFetcherDeployed=new g(e.locale,e.orgUrl,e.portalUrl),await this._getDeployedSolutions(),this._cards=await this._getSolutions(),this.allCardsFetched.emit(this._cards),this._isLoading=!1}async _getDeployedSolutions(){let e=this._authContextConsumer.value,t=this._userSessionContextConsumer.value;if(e&&t&&e.IsSignedIn){let o=await F(e,t,this._cardsFetcher,this._cardsFetcherDeployed,x,"created");if(o){if(this._modifiedCheckTry>0){if(this._deployedSolutions?.cards.length===o?.cards.length)return this._modifiedCheckTry--,await this._getDeployedSolutions();this._modifiedCheckTry=0}this._deployedSolutions=o}}}_getSolutionsBriefcase(){return l`<div class="solutions-briefcase"><svg viewBox="0 0 32 32" width=200 height=200 xmlns=http://www.w3.org/2000/svg>${y`<path d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" fill=#ccc /><path d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" fill=#ccc />`}</svg></div>`}_textSearch(e){this._agoTerms=this._baseAgoTerms+` ${e}`}_sortCards(e){let t=e.sortType;this._getSuggested=!1,this._sortOrder="desc",t==="suggested"?this._getSuggested=!0:t==="new"?this._sortField="relevance":t==="relevance"||t==="title"?(t==="title"&&(this._sortOrder="asc"),this._sortField=t):t==="updated"&&(this._sortField="relevance"),this.sortType=t}_filterCards(e){this._categories=[],e.forEach(t=>{if(t.industry){let o=this._getIndustryValue(t.industry);if(t.domain){let s=this._getDomainValue(t.domain);this._categories.push(`/Categories/${o}/${s}`)}else this._categories.push(`/Categories/${o}`)}})}_getDomainValue(e){return T[e]}_getIndustryValue(e){return e==="AEC"?"AEC":w[e]}_clearFilterCategories(){this._categories=[]}_isSolutionDeployed(e){return!!this._deployedSolutions?.cards?.some(t=>t?.typeKeywords?.some(o=>o.includes("solutionid")&&o.includes(e)))}_isLatestVersion(e){let t=this._deployedSolutions?.cards?.filter(o=>o?.typeKeywords?.some(s=>s.includes("solutionid")&&s.includes(e.deployCommonId)));return!(t&&t.length>0&&t[0].deployVersion!==e.deployVersion)}_lookupSolutionById(e){let t=this._cards.filter(o=>o.typeKeywords.includes(e));t.length>0&&this.detailsCardSelected.emit(t[0])}};C("solutions-all-panel",p);return p},a,c,e,g)
@@ -1,18 +0,0 @@
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.20 */
4
- import{a as v}from"./V272SPSH.js";import{b as I}from"./K5R7D36H.js";import{a as w,b as f,d as y}from"./YIXPGCUC.js";import"./CNQYI77D.js";import"./2E2FE2UD.js";import{a as L}from"./XX4ZM5IC.js";import"./YESTJISJ.js";import"./SKNE6RLM.js";import{b as u}from"./T6EN2LQT.js";import{C as o,D as d,E as g,G as p,H as c,h as b,i as a,l,o as h,r as _}from"./DGGOQ3L4.js";import"./N4AIZVPV.js";var $=b`@layer{/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block}.map-layer-picker-container{width:100%;align-items:center}.map-layer-picker{position:relative;width:100%;display:inline-block}.padding-bottom-1{padding-bottom:1rem}.layer-picker-dropdown{height:100%;width:100%}.max-width-350{max-width:350px}.height-100{height:100%}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.no-bottom-margin{--calcite-label-margin-bottom: 0px}.layer-picker-label-container{align-items:center;display:inline-flex;height:100%;padding-inline-start:1rem;padding-inline-end:1rem}.padding-start-1{padding-inline-start:1rem}.cursor-default{cursor:default}.popover-list{overflow:auto;width:250px}}`,m=class extends g{constructor(){super(),this.appearance="transparent",this.configLayerOrderDefined=!1,this.defaultLayerId="",this.display="inline-block",this.enabledLayerIds=[],this.isMobile=!1,this.showOnlyUpdatableLayers=!1,this.placeholderIcon="",this.selectedIds=[],this.scale="m",this.showTables=!1,this.showTablesDisabled=!1,this.showSingleLayerAsLabel=!1,this.type="select",this.showLayersListInPopover=!1,this.referenceElement="",this.force=!1,this._hasMultipleLayers=!0,this._hasValidLayers=!0,this._isDropdownOpen=!1,this.ids=[],this.selectedName="",this._translations=L({name:"map-layer-picker",blocking:!0}),this.defaultLayerHonored=!1,this._layerSelectElement=o(),this._layerComboboxElement=o(),this._pnContextConsumer=I({context:v,subscribe:!0}),this._skipEditCheck=!1,this._popover=o(),this.beforeLayerSelectionChange=h(),this.idsFound=h(),this.noLayersFound=h(),this.layerSelectionChange=h(),this.listenOn(window,"mapChanged",this.mapChanged)}static{this.properties={appearance:1,configLayerOrderDefined:5,defaultLayerId:1,display:1,enabledLayerIds:0,height:9,isMobile:5,mapView:0,showOnlyUpdatableLayers:5,placeholderIcon:1,selectedIds:0,scale:1,showTables:5,showTablesDisabled:5,showSingleLayerAsLabel:5,type:1,showLayersListInPopover:5,referenceElement:1,force:16,_hasMultipleLayers:16,_hasValidLayers:16,_isDropdownOpen:16,ids:16,selectedName:16,_translations:16}}static{this.styles=$}static{this.shadowRootOptions=_}willUpdate(e){e.has("mapView")&&this.hasUpdated&&this.mapViewWatchHandler(),e.has("type")&&(this._layerElement=this.type==="select"?this._layerSelectElement:this._layerComboboxElement),e.has("selectedIds")&&this.hasUpdated&&this.mapView&&(async()=>{let t=await y(this.mapView,this.selectedIds[0]);this.selectedName=t?.title??""})(),e.has("enabledLayerIds")&&this.hasUpdated&&this.enabledLayerIdsWatchHandler()}async enabledLayerIdsWatchHandler(){let e=this.selectedIds.length>0&&!this.enabledLayerIds.includes(this.selectedIds[0]),t=this.enabledLayerIds.some(i=>!this.ids.includes(i)),s=this.ids.toString()!==this.enabledLayerIds.toString();e?this.mapViewWatchHandler():(t||s)&&this._setLayers(),this._hasMultipleLayers=this.enabledLayerIds.length>1}async mapViewWatchHandler(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,await this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}async setLayerById(e,t=!1){this._skipEditCheck=t,!t||t&&e!==this.selectedIds[0]?this._setSelectedLayer(e):t&&e===this.selectedIds[0]&&(this.force=!0,setTimeout(()=>{this.force=!1},10)),this._skipEditCheck=!1}async setLayerByIds(e,t=!1){this._skipEditCheck=t,this._layerSelectionChange(e),this._skipEditCheck=!1}async updateLayer(){await this._setSelectedLayer(this.ids[0])}async mapChanged(e){e.detail.isValid||(this._hasValidLayers=!1,this.noLayersFound.emit())}async load(){await this._setLayers(),this.ids?.length>0?(this._hasValidLayers=!0,this._hasMultipleLayers=this.ids.length>1,await this._setSelectedLayer(this.ids[0])):(this._hasValidLayers=!1,this.noLayersFound.emit())}render(){let e="map-layer-picker",t=this.height&&this.height>0&&!this.showLayersListInPopover?{height:`${this.height.toString()}px`}:{};return t={...t,display:this.display},a`<div class="map-layer-picker-container" style=${c(t)}><div class="map-layer-picker" style=${c(t)}>${this._hasValidLayers?!this._hasMultipleLayers&&this.showSingleLayerAsLabel?this._getSingleLayerPlaceholder():this.type==="combobox"?this._getCombobox(e):this.type==="select"?this._getSelect(e):this.showLayersListInPopover?this._getMapLayerPopOver():this._getDropdown(e):this._getInvalidPlaceholder()}</div></div>`}loaded(){if(this.ids?.length>0||this.selectedIds?.length===1){let e=this.selectedIds.length===1?this.selectedIds[0]:this.ids[0];this.type==="select"?this._layerElement.value&&(this._layerElement.value.value=e):this.type==="dropdown"&&(this.selectedName=this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e].name:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e].name:"")}this._popover.value?.addEventListener("calcitePopoverOpen",()=>{this.el.querySelector("calcite-dropdown-item[selected]")?.setFocus()})}_getMapLayerPopOver(){let e=this.height&&this.height>0?{"max-height":`${this.height.toString()}px`}:{};return a`<calcite-popover auto-close focus-trap-disabled .label=${this.referenceElement} placement=left .referenceElement=${this.referenceElement} scale=s ${d(this._popover)}><div class=popover-list style=${c(e)}>${this._getMapLayerOptions()}</div></calcite-popover>`}_getInvalidPlaceholder(){return a`<div><calcite-notice class="height-100" icon=exclamation-mark-triangle id=no-valid-layers kind=danger open><div slot=message>${this._translations.noLayersFound}</div></calcite-notice><calcite-tooltip .label=${this._translations.enableEditUpdate} placement=bottom reference-element=no-valid-layers><span>${this._translations.enableEditUpdate}</span></calcite-tooltip></div>`}_getSingleLayerPlaceholder(){let e=this._getItemTypeIcon();return a`<div class="layer-picker-label-container cursor-default"><calcite-icon .icon=${e} scale=s></calcite-icon><calcite-label class="no-bottom-margin padding-start-1">${this.selectedName}</calcite-label></div>`}_getSelect(e){return a`<calcite-select id=${e??l} label @calciteSelectChange=${()=>this._layerSelectionChange()} .scale=${this.scale} ${d(this._layerElement)}>${this._getMapLayerOptions()}</calcite-select>`}_getCombobox(e){return a`<calcite-combobox clear-disabled id=${e??l} label @calciteComboboxChange=${()=>this._layerSelectionChange()} .placeholderIcon=${this.placeholderIcon} .scale=${this.scale} selection-mode=single ${d(this._layerElement)}>${this._getMapLayerOptions()}</calcite-combobox>`}_getDropdown(e){return a`<calcite-dropdown class="layer-picker-dropdown" @calciteDropdownBeforeClose=${()=>this._isDropdownOpen=!1} @calciteDropdownBeforeOpen=${()=>this._isDropdownOpen=!0}>${this.isMobile?this._getDropdownButton():this._getActionDropdownButton(e)}<calcite-dropdown-group selection-mode=single>${this._getMapLayerOptions()}</calcite-dropdown-group></calcite-dropdown>`}_getActionDropdownButton(e){return a`<calcite-action id=${e??l} slot=trigger text>${this._getDropdownButton()}</calcite-action>`}_getDropdownButton(){let e=this._getItemTypeIcon(),t=this.isMobile?"":"max-width-350",s=this.isMobile?"trigger":"",i=this._isDropdownOpen?"chevron-up":"chevron-down";return a`<calcite-button alignment=icon-end-space-between .appearance=${this.appearance} class=${p(t)} .iconEnd=${i} .iconStart=${e} kind=neutral slot=${s??l} width=full><div>${this.selectedName}</div></calcite-button>`}_getItemTypeIcon(){let e="layers";if(this.selectedIds.length>0&&this._layerNameHash){let t=this.selectedIds[0];e=Object.keys(this._layerNameHash).indexOf(t)>-1?"layers":"table"}return e}_getMapLayerOptions(){return this.ids.reduce((e,t)=>(this._validLayer(t)?e.push(this._getItem(t,"layer")):this._validTable(t)&&e.push(this._getItem(t,"table")),e),[])}_getItem(e,t){let s=t==="layer"&&this._layerNameHash?this._layerNameHash[e]:this._tableNameHash?this._tableNameHash[e]:void 0,i=this.showOnlyUpdatableLayers?s&&!s.supportsUpdate:!1,r=s?.name,n=this.selectedIds.indexOf(e)>-1;return this.type==="combobox"?a`<calcite-combobox-item .disabled=${i} .selected=${n} .textLabel=${r} .value=${e}></calcite-combobox-item>`:this.type==="select"?a`<calcite-option .disabled=${i} .label=${r} .selected=${n} .value=${e}></calcite-option>`:this.force&&n||!this.force?a`<calcite-dropdown-group class=${p(i?"disabled":"")} id=${r??l} .selectionMode=${i?"none":"single"}><calcite-dropdown-item .disabled=${!!(t==="table"&&this.showTablesDisabled)} .iconStart=${t} @click=${i?void 0:()=>void this._setSelectedLayer(e)} .selected=${n}>${r}</calcite-dropdown-item></calcite-dropdown-group>`:null}async _setSelectedLayer(e){if(e!==this.selectedIds[0]){let t;if(this.defaultLayerId&&!this.defaultLayerHonored&&(t=this._getLayerFromHash(this.defaultLayerId),this.defaultLayerHonored=t!==void 0,e=this.defaultLayerHonored?this.defaultLayerId:e),t=t||this._getLayerFromHash(e),!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentId:this.selectedIds[0],newId:e,ref:this.el}).defaultPrevented)return;this.selectedName=t?.name,this.selectedIds=[e],this._popover.value&&(this._popover.value.open=!1),this.layerSelectionChange.emit(this.selectedIds)}else{let t=this.mapView&&await y(this.mapView,this.selectedIds[0]);this.selectedName=t?.title||""}}_getLayerFromHash(e){return this._layerNameHash&&Object.keys(this._layerNameHash).indexOf(e)>-1?this._layerNameHash[e]:this._tableNameHash&&Object.keys(this._tableNameHash).indexOf(e)>-1?this._tableNameHash[e]:void 0}async _setLayers(){if(this.mapView){await this._initLayerTableHash();let e=[];this._layerNameHash&&(e=this.showOnlyUpdatableLayers?this._getEditableIds(this._layerNameHash):Object.keys(this._layerNameHash));let t=[];if(this._tableNameHash&&(t=this.showTables?this.showOnlyUpdatableLayers?this._getEditableIds(this._tableNameHash):Object.keys(this._tableNameHash):[]),this.configLayerOrderDefined){let s=[...e.reverse(),...t.reverse()];this.ids=this.enabledLayerIds.length>0?this.enabledLayerIds.filter(i=>s.includes(i)):s}else this.ids=[...e.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(s)>-1:!0),...t.reverse().filter(s=>this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(s)>-1:!0)];this.idsFound.emit({layerIds:e,tableIds:t})}}_getEditableIds(e){return Object.keys(e).filter(t=>e[t].supportsUpdate)}async _initLayerTableHash(){this._layerNameHash=this.mapView&&await w(this.mapView,this.showOnlyUpdatableLayers),this._tableNameHash=this.showTables&&this.mapView?await f(this.mapView,this.showOnlyUpdatableLayers):{}}_validLayer(e){let t=this._pnContextConsumer.value,s=this._layerNameHash&&this._layerNameHash[e]?.name;return s!==void 0&&Object.keys(t?.managedLayers||[]).indexOf(s)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0)}_validTable(e){let t=this._pnContextConsumer.value,s=this._tableNameHash&&this._tableNameHash[e]?.name,i=s&&this.showTables;return i?(t?.managedTables||[]).indexOf(s)<0&&(this.enabledLayerIds?.length>0?this.enabledLayerIds.indexOf(e)>-1:!0):i!==void 0}_layerSelectionChange(e){if(this._layerElement.value){let t=e||(Array.isArray(this._layerElement.value.value)?this._layerElement.value.value:[this._layerElement.value.value]);if(JSON.stringify(t)!==JSON.stringify([""])){if(!this._skipEditCheck&&this.beforeLayerSelectionChange.emit({currentIds:this.selectedIds,newIds:t,ref:this.el}).defaultPrevented)return;this.selectedIds=t,this.layerSelectionChange.emit(this.selectedIds)}}}};u("map-layer-picker",m);export{m as MapLayerPicker};
@@ -1,18 +0,0 @@
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.20 */
4
- import{a as d}from"./XX4ZM5IC.js";import"./YESTJISJ.js";import"./SKNE6RLM.js";import{b as o}from"./T6EN2LQT.js";import{E as a,h as l,i as e,l as n,o as t}from"./DGGOQ3L4.js";import"./N4AIZVPV.js";var h=l`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block}.delete-modal{position:fixed}`,i=class extends a{constructor(){super(...arguments),this.buttonType="button",this.disabled=!1,this.icon="",this.ids=[],this.showDeleteCount=!0,this._confirmDelete=!1,this._deleteEndabled=!1,this._supportsDelete=!1,this._translations=d({name:"delete-button",blocking:!0}),this.editsComplete=t(),this.deleteClicked=t()}static{this.properties={deleteDialog:1,buttonType:1,disabled:5,icon:1,ids:0,layer:0,showDeleteCount:5,_confirmDelete:16,_deleteEndabled:16,_supportsDelete:16,_translations:16}}static{this.styles=h}willUpdate(s){s.has("ids")&&(this.hasUpdated||this.ids?.length>0)&&this.idsWatchHandler(),s.has("layer")&&this.layerWatchHandler()}async idsWatchHandler(){this._setDeleteEnabled()}async layerWatchHandler(){this._setDeleteEnabled()}render(){return e`${this.buttonType==="button"?e`<calcite-button appearance=outline .disabled=${!this._deleteEndabled} id=solutions-delete kind=danger @click=${()=>this._delete()} width=full>${this.showDeleteCount?this._translations.deleteCount?.replace("{{n}}",this.ids?.length.toString()):this._translations.delete}</calcite-button>`:e`<calcite-action appearance=solid .disabled=${!this._deleteEndabled} id=${this.icon??n} @click=${()=>this._delete()} scale=s .text=${this._translations.delete}><calcite-button appearance=transparent .iconStart=${this.icon} kind=danger>${this._translations.delete}</calcite-button></calcite-action>`}${this._deleteMessage()}<calcite-tooltip placement=bottom .referenceElement=${this.buttonType==="button"?"solutions-delete":this.icon}><span>${this._translations.delete}</span></calcite-tooltip>`}loaded(){this._setDeleteEnabled()}_setDeleteEnabled(){this._supportsDelete=!!(this.layer?.editingEnabled&&this.layer?.capabilities?.operations?.supportsDelete),this._deleteEndabled=!this.disabled||this._supportsDelete&&this.ids?.length>0}_delete(){this.deleteClicked.emit(),this._confirmDelete=!0}_deleteMessage(){return this.deleteDialog?this.deleteDialog:e`<delete-dialog id=solution-delete-dialog .ids=${this.ids} .layer=${this.layer} @deleteDialogClose=${()=>this._confirmDelete=!1} .open=${this._confirmDelete}></delete-dialog>`}};o("delete-button",i);export{i as DeleteButton};