@esri/solutions-components 1.0.0-next.20250501.2 → 1.0.0-next.20250506.1

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 (707) hide show
  1. package/dist/cdn/{NSCO46UB.js → 24HG25VK.js} +3 -3
  2. package/dist/cdn/{JD7Q6C2C.js → 25FSOTFW.js} +2 -2
  3. package/dist/cdn/{ITVDBPSA.js → 277TP75D.js} +2 -2
  4. package/dist/cdn/{VS4BFKH5.js → 2CTI34Z6.js} +3 -3
  5. package/dist/cdn/{R6JBLWE7.js → 2OUKMEGJ.js} +2 -2
  6. package/dist/cdn/{RCNFZSA5.js → 2OXZPI6J.js} +2 -2
  7. package/dist/cdn/{UWLZA6RY.js → 2VGSUSSJ.js} +2 -2
  8. package/dist/cdn/32ADEBH7.js +4 -0
  9. package/dist/cdn/{LNPKEFYF.js → 343QIIN4.js} +2 -2
  10. package/dist/cdn/{YZMHYMNZ.js → 3SIDE2MZ.js} +2 -2
  11. package/dist/cdn/{3L5P4SFV.js → 3V6CMPYL.js} +2 -2
  12. package/dist/cdn/{C75GZINQ.js → 3ZAC7KPY.js} +3 -3
  13. package/dist/cdn/{5YGFEQJH.js → 44EW25X7.js} +2 -2
  14. package/dist/cdn/{34WBNSBV.js → 47RKZZYU.js} +2 -2
  15. package/dist/cdn/{XWVXILJ6.js → 4C3ALUA4.js} +2 -2
  16. package/dist/cdn/{XRSL7RGR.js → 4DVIE54A.js} +2 -2
  17. package/dist/cdn/{JRNC7PCQ.js → 4FO53H2N.js} +2 -2
  18. package/dist/cdn/{NOAVPB5F.js → 4KMKJ4MQ.js} +2 -2
  19. package/dist/cdn/{CVYUV5YV.js → 4NGMIXLU.js} +2 -2
  20. package/dist/cdn/{PIBX77IR.js → 4NO5UFRF.js} +1 -1
  21. package/dist/cdn/{FJ6RRUAZ.js → 4OVM4MIC.js} +2 -2
  22. package/dist/cdn/4PTXN5WN.js +25 -0
  23. package/dist/cdn/{4BUCDYBI.js → 4QTVQTWW.js} +2 -2
  24. package/dist/cdn/{3FL6VQP4.js → 4S2LGGIS.js} +2 -2
  25. package/dist/cdn/{HRY2AWQR.js → 4TK6UC7L.js} +2 -2
  26. package/dist/cdn/{IRKP2OK7.js → 4TNRV5HQ.js} +2 -2
  27. package/dist/cdn/{JYHXLAK7.js → 5IPD66RZ.js} +1 -1
  28. package/dist/cdn/{YPMMBOZ4.js → 5KMYTALG.js} +2 -2
  29. package/dist/cdn/{YH55Y5MP.js → 5MZCRWR6.js} +2 -2
  30. package/dist/cdn/{NDRFJNB5.js → 5RPZREL2.js} +2 -2
  31. package/dist/cdn/{RGNEZPQ6.js → 5S4HGJEN.js} +2 -2
  32. package/dist/cdn/{GGA2BKBI.js → 5VVYQUIK.js} +2 -2
  33. package/dist/cdn/{IMLKKE2U.js → 5XCBVPEJ.js} +1 -1
  34. package/dist/cdn/{UTX33TLK.js → 6ADX5YCX.js} +2 -2
  35. package/dist/cdn/6IOBEPUO.js +4 -0
  36. package/dist/cdn/{OJMZUZGG.js → 6MB7FU4Y.js} +2 -2
  37. package/dist/cdn/{D2T5W4MH.js → 6MOBEALK.js} +2 -2
  38. package/dist/cdn/{SERFTFK4.js → 6YK2RFGE.js} +2 -2
  39. package/dist/cdn/77FG2UXK.js +4 -0
  40. package/dist/cdn/{NGQYRRMX.js → 7ACSM2YB.js} +2 -2
  41. package/dist/cdn/{R4M6CYMY.js → 7K2EWZ4V.js} +1 -1
  42. package/dist/cdn/{RYMHJ7M6.js → 7KYKOF2I.js} +2 -2
  43. package/dist/cdn/{NHOULH2W.js → 7O4PDXW4.js} +2 -2
  44. package/dist/cdn/{GYTWI2N3.js → 7UJOIQQR.js} +2 -2
  45. package/dist/cdn/{FSFU2N3B.js → 7ZUTU5RY.js} +2 -2
  46. package/dist/cdn/A26DEWRW.js +4 -0
  47. package/dist/cdn/A2AGIHZY.js +18 -0
  48. package/dist/cdn/A5UYRD2U.js +4 -0
  49. package/dist/cdn/{RFBZVECY.js → AGGRBVNS.js} +2 -2
  50. package/dist/cdn/{XA4WRYB3.js → AIWA7X7G.js} +2 -2
  51. package/dist/cdn/{AVVACE2H.js → AKMNIUXT.js} +6 -6
  52. package/dist/cdn/{D7MB5F4I.js → ALKYMGVV.js} +1 -1
  53. package/dist/cdn/{5K2X6CBZ.js → ASGQIVIB.js} +2 -2
  54. package/dist/cdn/{ALZYWZZK.js → AY657GGH.js} +2 -2
  55. package/dist/cdn/{5KCRA4JF.js → B66A7LZQ.js} +2 -2
  56. package/dist/cdn/{KPPOT7GR.js → BB4CBTJK.js} +2 -2
  57. package/dist/cdn/{3I7ZK5FK.js → BXNFXKXV.js} +2 -2
  58. package/dist/cdn/{MQKFPPUQ.js → C2RLNEU4.js} +2 -2
  59. package/dist/cdn/{33DZLRWA.js → C6XZBUE2.js} +3 -3
  60. package/dist/cdn/{YHUDJET2.js → C7EQDZ4M.js} +2 -2
  61. package/dist/cdn/{PE2NGOSN.js → CADJZG3Z.js} +2 -2
  62. package/dist/cdn/{CPHOXIAS.js → CAGLPIPF.js} +2 -2
  63. package/dist/cdn/{M6OKQSGJ.js → CPBVNIA2.js} +2 -2
  64. package/dist/cdn/{IIFJMCMO.js → CQTEVIDR.js} +2 -2
  65. package/dist/cdn/{2LRVE3JC.js.LEGAL.txt → D473H7YD.js} +1 -1
  66. package/dist/cdn/{GV6574C7.js → D4XAHC4N.js} +2 -2
  67. package/dist/cdn/{OQMSIWHM.js → DBN6GJS6.js} +2 -2
  68. package/dist/cdn/{WXBPYKCV.js → DC3N7IST.js} +1 -1
  69. package/dist/cdn/{7NQT5MYQ.js → DCZKZQPQ.js} +2 -2
  70. package/dist/cdn/{SHSCJK7K.js → DFZH4JDP.js} +2 -2
  71. package/dist/cdn/{Q4QJIANV.js → DIGEXEVD.js} +2 -2
  72. package/dist/cdn/{7CC4UOSP.js → DMTCZQGB.js} +1 -1
  73. package/dist/cdn/DOADYGDB.js +4 -0
  74. package/dist/cdn/{EDYWDMUF.js → DOTDQSSL.js} +2 -2
  75. package/dist/cdn/{QAV3ZXVX.js → DPNSCBBO.js} +1 -1
  76. package/dist/cdn/{NQTVJEQJ.js → DW6QFLMC.js} +2 -2
  77. package/dist/cdn/{DNQVWK3Q.js → DXQ3LDCB.js} +2 -2
  78. package/dist/cdn/{TXARZDSW.js → E4P22JZK.js} +1 -1
  79. package/dist/cdn/{E6BIPFS4.js → E7BM2VNY.js} +2 -2
  80. package/dist/cdn/{SALTFRJ5.js → EELLYXNN.js} +1 -1
  81. package/dist/cdn/{UBKKMKS7.js → EIQNRR4P.js} +2 -2
  82. package/dist/cdn/{LAEMDHMW.js → EJZKFB4Z.js} +2 -2
  83. package/dist/cdn/{2DEOX2UQ.js → EOYZ5MEY.js} +2 -2
  84. package/dist/cdn/{62C7U5GV.js → EYFKB5UR.js} +1 -1
  85. package/dist/cdn/{A7LA5V6P.js → EYVTUHVJ.js} +2 -2
  86. package/dist/cdn/{W7PI4HOW.js → F2NPMFYG.js} +2 -2
  87. package/dist/cdn/{T7EH5UZA.js → F777BKYK.js} +2 -2
  88. package/dist/cdn/{JJ5LIG3E.js → FAZOBB62.js} +2 -2
  89. package/dist/cdn/{QI7CAGDL.js → FM3TGG3U.js} +1 -1
  90. package/dist/cdn/{OZZ6AIHM.js → FO33AVRG.js} +2 -2
  91. package/dist/cdn/{IV5VX3CU.js → FWL2VP7W.js} +2 -2
  92. package/dist/cdn/{LGYRQXSU.js → FXQSFX4Q.js} +2 -2
  93. package/dist/cdn/{3XPDS33A.js → GAQOXRME.js} +1 -1
  94. package/dist/cdn/{PLPFPFMS.js → GG4OVZHW.js} +2 -2
  95. package/dist/cdn/{TN4SBIJW.js → GQO2KP3I.js} +1 -1
  96. package/dist/cdn/GVRBVSQP.js +4 -0
  97. package/dist/cdn/{NMJB2BJ2.js → GVS6OC6I.js} +2 -2
  98. package/dist/cdn/{5NCAUJ2M.js → H3GY7WZY.js} +2 -2
  99. package/dist/cdn/{6WN23BQU.js → H43GRPO5.js} +2 -2
  100. package/dist/cdn/HHY7QSTW.js +4 -0
  101. package/dist/cdn/{WVFYDL3N.js → HK7ORFOY.js} +2 -2
  102. package/dist/cdn/{LQVQ5SYL.js → HP45S4UO.js} +2 -2
  103. package/dist/cdn/{NA5LJZU7.js → HPADRK2N.js} +2 -2
  104. package/dist/cdn/{C7FMD3GO.js → HPLREYIV.js} +2 -2
  105. package/dist/cdn/{2WYQDE5Z.js → HPSATKU6.js} +2 -2
  106. package/dist/cdn/{OPC6J6MC.js → HQLVVCY5.js} +2 -2
  107. package/dist/cdn/{LQYOJKKM.js → HSIGQHGC.js} +2 -2
  108. package/dist/cdn/{TA7QL4YX.js → HUP3OLOI.js} +2 -2
  109. package/dist/cdn/{35NYD4WF.js → HVFFPMUB.js} +2 -2
  110. package/dist/cdn/IC5TQPF6.js +4 -0
  111. package/dist/cdn/{NMC4BPV4.js → IDFBPJOG.js} +2 -2
  112. package/dist/cdn/IFPYXLV5.js +4 -0
  113. package/dist/cdn/{ZXEH2RP3.js → INJHMY2P.js} +2 -2
  114. package/dist/cdn/{ISCLBHEK.js → IOG3GJFK.js} +2 -2
  115. package/dist/cdn/{Q46U6YLX.js → ISRQ3BAT.js} +2 -2
  116. package/dist/cdn/{DOQ3OAB6.js → ITICLHXB.js} +2 -2
  117. package/dist/cdn/J22XBVJX.js +4 -0
  118. package/dist/cdn/{WHIJZGSO.js → J3KEXR6N.js} +2 -2
  119. package/dist/cdn/{WPW7HPVB.js → JAH6KVAQ.js} +2 -2
  120. package/dist/cdn/JALWXGJR.js +4 -0
  121. package/dist/cdn/{MLWHYPW3.js → JDFGWL2P.js} +2 -2
  122. package/dist/cdn/{2627OC35.js → JF22WXGR.js} +2 -2
  123. package/dist/cdn/{FR5AUKJH.js → JIG5WCW6.js} +2 -2
  124. package/dist/cdn/{Q7CCSRAE.js → JMLPIAZ5.js} +2 -2
  125. package/dist/cdn/JOKITFSD.js +4 -0
  126. package/dist/cdn/{EFG5WHVI.js → JPVITM3R.js} +2 -2
  127. package/dist/cdn/{QPZ5DWIV.js → JSL7F3AB.js} +1 -1
  128. package/dist/cdn/{PKQMLT3F.js → K36J5DBT.js} +2 -2
  129. package/dist/cdn/{7PXLNWUW.js → K6YZHC7R.js} +2 -2
  130. package/dist/cdn/{LA4ADRHN.js → KA75RHIE.js} +2 -2
  131. package/dist/cdn/{ALIYBPUW.js → KIJ2HVBA.js} +2 -2
  132. package/dist/cdn/{63OERAOC.js → KKHP5J6S.js} +2 -2
  133. package/dist/cdn/KOTWOAEH.js +18 -0
  134. package/dist/cdn/{BVDPSX3N.js → KR424OVE.js} +2 -2
  135. package/dist/cdn/{X7OXK5DE.js → KTYRFLWJ.js} +1 -1
  136. package/dist/cdn/{UX2H3Z6R.js → KUXTUEIU.js} +2 -2
  137. package/dist/cdn/{BBIZPRBD.js → KYFGGGZO.js} +2 -2
  138. package/dist/cdn/{5BRHUPJQ.js → LA3TMPSQ.js} +4 -4
  139. package/dist/cdn/{JI5JTAYE.js → LEUJGAQT.js} +2 -2
  140. package/dist/cdn/{RCBI5D2Z.js → LITGQOKY.js} +2 -2
  141. package/dist/cdn/{7PCDZNHO.js → LOAR7D23.js} +2 -2
  142. package/dist/cdn/{UTQQDI5Q.js → LPQXKCT4.js} +2 -2
  143. package/dist/cdn/{GFN5IPB5.js → LT2L2HN5.js} +2 -2
  144. package/dist/cdn/{NWNCFKQJ.js → MAJHV5YB.js} +2 -2
  145. package/dist/cdn/{JS3KPL65.js → MBBEW2XH.js} +2 -2
  146. package/dist/cdn/{5A5OYCRM.js → MBYSAPXD.js} +2 -2
  147. package/dist/cdn/{NAWXGWKC.js → MG5AEQHW.js} +3 -3
  148. package/dist/cdn/MINRT2AD.js +4 -0
  149. package/dist/cdn/MJWRLAA3.js +4 -0
  150. package/dist/cdn/{KOHHJ3Q4.js → MYNX7A4Q.js} +3 -3
  151. package/dist/cdn/{PMLO3UBD.js → MYSMFQDL.js} +2 -2
  152. package/dist/cdn/{KHUKO76X.js → MZNCDKNL.js} +2 -2
  153. package/dist/cdn/{2XJGOOBG.js → NEVOR7UF.js} +1 -1
  154. package/dist/cdn/NPMFAEBD.js +4 -0
  155. package/dist/cdn/{RU7VN5YX.js → NRDWJNF4.js} +2 -2
  156. package/dist/cdn/{LDSB3ZAB.js → NS5VBZHP.js} +2 -2
  157. package/dist/cdn/NU2OXFST.js +4 -0
  158. package/dist/cdn/{IERS74VR.js → NVZHVYYH.js} +2 -2
  159. package/dist/cdn/{EH3TUCW5.js → NWE65CEC.js} +1 -1
  160. package/dist/cdn/NWJLUJRF.js +4 -0
  161. package/dist/cdn/{XDTQLWOL.js → NXK4MWLX.js} +2 -2
  162. package/dist/cdn/{WZV2UPIA.js → O3VJRNON.js} +3 -3
  163. package/dist/cdn/{LOCRYUB5.js → O55NB5I2.js} +2 -2
  164. package/dist/cdn/{QNEZFCY7.js → OATNKA2V.js} +2 -2
  165. package/dist/cdn/{EJ44YJGV.js → OLDFMVM6.js} +3 -3
  166. package/dist/cdn/{ZKUTSUQ5.js → OWMSCTHB.js} +2 -2
  167. package/dist/cdn/PFUQXONQ.js +8 -0
  168. package/dist/cdn/{RYWPGCGZ.js → PJMGGONS.js} +2 -2
  169. package/dist/cdn/{MMGJL263.js → PPFTCKIR.js} +2 -2
  170. package/dist/cdn/{3UJWEKFN.js → Q2IPYTRX.js} +2 -2
  171. package/dist/cdn/{M4NMK35G.js → Q2S2L2IR.js} +2 -2
  172. package/dist/cdn/QB6WECAO.js +4 -0
  173. package/dist/cdn/{HEEO2XNR.js → QCUKGKOV.js} +2 -2
  174. package/dist/cdn/{LTVV5X4C.js → QMDKVVH5.js} +2 -2
  175. package/dist/cdn/{Q4YN3UWN.js → QSYR7Q6X.js} +1 -1
  176. package/dist/cdn/{GDO2NL6R.js → R3MJUZCZ.js} +2 -2
  177. package/dist/cdn/{NAJHCCFK.js → REUOEGNX.js} +2 -2
  178. package/dist/cdn/{QAOKFIMA.js → RF2VI4N7.js} +2 -2
  179. package/dist/cdn/{HYKX4C5U.js → RGFAZJP6.js} +2 -2
  180. package/dist/cdn/{PYOZY3AA.js → RIHR2PJN.js} +2 -2
  181. package/dist/cdn/{VZMHIBV5.js → RIYF7P2C.js} +2 -2
  182. package/dist/cdn/RLWSZ4HQ.js +4 -0
  183. package/dist/cdn/{OSJ4PK7V.js → ROIVGYSM.js} +1 -1
  184. package/dist/cdn/{WYNYF36Y.js → RUTSW7HN.js} +1 -1
  185. package/dist/cdn/{QSK26NIR.js → S622E22B.js} +2 -2
  186. package/dist/cdn/{GMXHYAWW.js → SKNW5VCU.js} +2 -2
  187. package/dist/cdn/{HVXOFD44.js → SPON62E4.js} +2 -2
  188. package/dist/cdn/{SFN7KXBC.js → SQOEM3P5.js} +1 -1
  189. package/dist/cdn/SQRWE2MV.js +18 -0
  190. package/dist/cdn/{OO5QJAUV.js → STOKDNCN.js} +2 -2
  191. package/dist/cdn/{E575ADYG.js → SXRISHGN.js} +1 -1
  192. package/dist/cdn/SYZ2PD7V.js +18 -0
  193. package/dist/cdn/{XAP7KYLB.js → T4FPQT6Q.js} +1 -1
  194. package/dist/cdn/{YLWTVGEO.js → T6ACGRID.js} +2 -2
  195. package/dist/cdn/{BB7AEZC2.js → TKKZCD3D.js} +2 -2
  196. package/dist/cdn/{5OIPGQLN.js → TSVIA6LX.js} +2 -2
  197. package/dist/cdn/{O4U462PQ.js → TT45ZE3U.js} +2 -2
  198. package/dist/cdn/{QGQW73YS.js → TTIEVPAX.js} +2 -2
  199. package/dist/cdn/{JHQ47NZN.js → U4NSDOD5.js} +2 -2
  200. package/dist/cdn/{SHWFC6TE.js → UBBP433D.js} +1 -1
  201. package/dist/cdn/{2LRVE3JC.js → UBDWCH3J.js} +2 -2
  202. package/dist/cdn/{43UDVNH5.js → UBFXRGUL.js} +2 -2
  203. package/dist/cdn/{6LPZ6BWV.js → USL3KX2U.js} +2 -2
  204. package/dist/cdn/{3OSOBTXI.js → UYJS44LC.js} +2 -2
  205. package/dist/cdn/{ZIIYJYM3.js → V5XUAHEB.js} +1 -1
  206. package/dist/cdn/{3ZL6JNEH.js → V6J4NOFW.js} +2 -2
  207. package/dist/cdn/{6EQSCBDC.js → VERJI2SH.js} +2 -2
  208. package/dist/cdn/{KRMQR6PO.js → VHM7TR5J.js} +2 -2
  209. package/dist/cdn/{2LLKAVTV.js → VNWXPGNO.js} +2 -2
  210. package/dist/cdn/{ZJR4525B.js → VNZX57M6.js} +1 -1
  211. package/dist/cdn/VQQVMG7C.js +4 -0
  212. package/dist/cdn/{QSI6TV26.js → VSVG3AWA.js} +4 -4
  213. package/dist/cdn/{ETJDGNYP.js → VT6U64GN.js} +2 -2
  214. package/dist/cdn/VWSETFC3.js +18 -0
  215. package/dist/cdn/{JHQRE76I.js → VX7KAJNW.js} +2 -2
  216. package/dist/cdn/{VIFOVT2H.js → VXKC4BYB.js} +2 -2
  217. package/dist/cdn/{DKCZUP4C.js → VXNDYVZW.js} +2 -2
  218. package/dist/cdn/{KPKZMEKZ.js → VZ37PJTM.js} +2 -2
  219. package/dist/cdn/{URSDOYPK.js → VZG427AU.js} +2 -2
  220. package/dist/cdn/{DKOI4TMS.js → W3ANKXXH.js} +1 -1
  221. package/dist/cdn/{VTDPGZFT.js → W3XCI5GU.js} +2 -2
  222. package/dist/cdn/{WK4XUJYY.js → WCO2JYT7.js} +1 -1
  223. package/dist/cdn/{YOLXA6ZY.js → WD3NSCN4.js} +1 -1
  224. package/dist/cdn/{OGTPASHM.js → WFHI2T5X.js} +2 -2
  225. package/dist/cdn/{ZSBOSR2Q.js → WFZ4KL2P.js} +2 -2
  226. package/dist/cdn/{4PKH3ZTA.js → WG26EIDL.js} +2 -2
  227. package/dist/cdn/{7W774KKR.js → WKWF4ARW.js} +2 -2
  228. package/dist/cdn/{Y5QLVYUJ.js → WNHOXW2E.js} +2 -2
  229. package/dist/cdn/{M4YVWMXK.js → WNPZHTCP.js} +2 -2
  230. package/dist/cdn/{HSYJOXKH.js → WOWOQ2TS.js} +2 -2
  231. package/dist/cdn/{DRYWVFXX.js → WSNDSKW3.js} +2 -2
  232. package/dist/cdn/WVAVHWQN.js +18 -0
  233. package/dist/cdn/{YBHXQHED.js → WWH37ZAK.js} +1 -1
  234. package/dist/cdn/{4O2I2MFG.js → WXNVFGFS.js} +2 -2
  235. package/dist/cdn/{54TTZEMV.js → WY7PHM6L.js} +2 -2
  236. package/dist/cdn/{UZVXLXYQ.js → WZGXEUMM.js} +2 -2
  237. package/dist/cdn/{YQDNVPGZ.js → X3AF2OQY.js} +1 -1
  238. package/dist/cdn/{SDVEOIP6.js → X3VDJVLL.js} +2 -2
  239. package/dist/cdn/{RPBZ5L5A.js → XARWIX77.js} +2 -2
  240. package/dist/cdn/{RWVKAK4K.js → XF7VPD22.js} +2 -2
  241. package/dist/cdn/XRBMRHXH.js +18 -0
  242. package/dist/cdn/{B6D4QBVH.js → XYSFY3W6.js} +2 -2
  243. package/dist/cdn/{5F5ZEU66.js → XYWQ6JNM.js} +2 -2
  244. package/dist/cdn/{HQVT5GIH.js → Y4BDPKKL.js} +2 -2
  245. package/dist/cdn/{3GN3HS2Z.js → Y7WVUKZX.js} +2 -2
  246. package/dist/cdn/{3DYBNNJG.js → YCXOPVSF.js} +2 -2
  247. package/dist/cdn/{FVCUT5BD.js → YDW3WSTZ.js} +2 -2
  248. package/dist/cdn/{667HEELR.js → YEWPTOSA.js} +2 -2
  249. package/dist/cdn/{XBJF7MJ6.js → YHN2YRS5.js} +2 -2
  250. package/dist/cdn/{EQRWAUHH.js → YIDDZHZJ.js} +2 -2
  251. package/dist/cdn/{WSDRBWDO.js → YKDQJMLK.js} +2 -2
  252. package/dist/cdn/{XPPFPOAJ.js → YO66L5EQ.js} +2 -2
  253. package/dist/cdn/{74DCBZXT.js → YVK6HDUD.js} +2 -2
  254. package/dist/cdn/YWJHRAU6.js +9 -0
  255. package/dist/cdn/YXGKJSHK.js +6 -0
  256. package/dist/cdn/{KAHTIZBX.js → YYNMVPOT.js} +2 -2
  257. package/dist/cdn/{YFDRQUEW.js → Z2FRREMF.js} +1 -1
  258. package/dist/cdn/{MDMPQSN3.js → Z5KPLWAQ.js} +2 -2
  259. package/dist/cdn/{5FKQTJXQ.js → Z624TXCK.js} +2 -2
  260. package/dist/cdn/{4UUPLRGU.js → ZEFQFCIT.js} +1 -1
  261. package/dist/cdn/{LSUEYFIK.js → ZQ5UT5TX.js} +2 -2
  262. package/dist/cdn/ZRGZWYVN.js +18 -0
  263. package/dist/cdn/{QJI4YPT2.js → ZV26VFK3.js} +2 -2
  264. package/dist/cdn/{TS77EOZ2.js → ZXAYQBSO.js} +2 -2
  265. package/dist/cdn/ZY26SHW7.js +4 -0
  266. package/dist/cdn/{PFPXYDRH.js → ZZRTACNG.js} +2 -2
  267. package/dist/cdn/index.esm.js +2 -2
  268. package/dist/chunks/common.js +1 -1
  269. package/dist/chunks/downloadUtils.js +1 -1
  270. package/dist/chunks/index.js +405 -313
  271. package/dist/chunks/interfaces.js +1 -1
  272. package/dist/chunks/loadModules.js +1 -1
  273. package/dist/chunks/mapViewUtils.js +1 -1
  274. package/dist/chunks/pciUtils.js +1 -1
  275. package/dist/chunks/popupUtils.js +1 -1
  276. package/dist/chunks/publicNotificationStore.js +1 -1
  277. package/dist/chunks/queryUtils.js +1 -1
  278. package/dist/chunks/runtime.js +1 -1
  279. package/dist/chunks/solution-store.js +1 -1
  280. package/dist/chunks/templates.js +1 -1
  281. package/dist/chunks/useT9n.js +1 -1
  282. package/dist/components/arcgis-solution-assistant/customElement.d.ts +1 -0
  283. package/dist/components/arcgis-solution-assistant/customElement.js +1 -5
  284. package/dist/components/basemap-gallery/customElement.js +1 -25
  285. package/dist/components/buffer-tools/customElement.d.ts +36 -7
  286. package/dist/components/buffer-tools/customElement.js +1 -91
  287. package/dist/components/card-manager/customElement.d.ts +36 -8
  288. package/dist/components/card-manager/customElement.js +1 -41
  289. package/dist/components/consent-manager/customElement.d.ts +21 -4
  290. package/dist/components/consent-manager/customElement.js +1392 -1458
  291. package/dist/components/create-feature/customElement.d.ts +37 -7
  292. package/dist/components/create-feature/customElement.js +2 -106
  293. package/dist/components/create-related-feature/customElement.d.ts +12 -2
  294. package/dist/components/create-related-feature/customElement.js +1 -65
  295. package/dist/components/crowdsource-manager/customElement.d.ts +148 -28
  296. package/dist/components/crowdsource-manager/customElement.js +5 -213
  297. package/dist/components/crowdsource-reporter/customElement.d.ts +160 -32
  298. package/dist/components/crowdsource-reporter/customElement.js +1 -432
  299. package/dist/components/deduct-calculator/customElement.js +1 -46
  300. package/dist/components/delete-button/customElement.d.ts +16 -4
  301. package/dist/components/delete-button/customElement.js +1 -39
  302. package/dist/components/delete-dialog/customElement.d.ts +6 -2
  303. package/dist/components/delete-dialog/customElement.js +2 -17
  304. package/dist/components/edit-card/customElement.d.ts +20 -4
  305. package/dist/components/edit-card/customElement.js +1 -34
  306. package/dist/components/feature-details/customElement.d.ts +15 -3
  307. package/dist/components/feature-details/customElement.js +1 -82
  308. package/dist/components/feature-list/customElement.d.ts +65 -13
  309. package/dist/components/feature-list/customElement.js +2 -154
  310. package/dist/components/field-selection/customElement.js +1 -58
  311. package/dist/components/floor-filter/customElement.d.ts +5 -1
  312. package/dist/components/floor-filter/customElement.js +1 -35
  313. package/dist/components/info-card/customElement.d.ts +45 -9
  314. package/dist/components/info-card/customElement.js +2 -92
  315. package/dist/components/json-editor/customElement.d.ts +11 -1
  316. package/dist/components/json-editor/customElement.js +1 -137
  317. package/dist/components/layer-list/customElement.d.ts +20 -4
  318. package/dist/components/layer-list/customElement.js +1 -80
  319. package/dist/components/layer-table/customElement.d.ts +74 -16
  320. package/dist/components/layer-table/customElement.js +2 -345
  321. package/dist/components/map-card/customElement.d.ts +98 -18
  322. package/dist/components/map-card/customElement.js +1 -131
  323. package/dist/components/map-draw-tools/customElement.d.ts +22 -4
  324. package/dist/components/map-draw-tools/customElement.js +1 -94
  325. package/dist/components/map-fullscreen/customElement.js +1 -37
  326. package/dist/components/map-layer-picker/customElement.d.ts +52 -10
  327. package/dist/components/map-layer-picker/customElement.js +1 -115
  328. package/dist/components/map-legend/customElement.js +1 -25
  329. package/dist/components/map-picker/customElement.d.ts +5 -1
  330. package/dist/components/map-picker/customElement.js +1 -53
  331. package/dist/components/map-search/customElement.d.ts +12 -2
  332. package/dist/components/map-search/customElement.js +2 -44
  333. package/dist/components/map-select-tools/customElement.d.ts +47 -9
  334. package/dist/components/map-select-tools/customElement.js +2 -198
  335. package/dist/components/map-tools/customElement.d.ts +51 -9
  336. package/dist/components/map-tools/customElement.js +1 -66
  337. package/dist/components/pci-calculator/customElement.js +1 -58
  338. package/dist/components/pdf-download/customElement.d.ts +5 -1
  339. package/dist/components/pdf-download/customElement.js +1 -55
  340. package/dist/components/public-notification/customElement.d.ts +69 -13
  341. package/dist/components/public-notification/customElement.js +5 -350
  342. package/dist/components/refine-selection/customElement.js +1 -97
  343. package/dist/components/solution-arcticle-card/customElement.js +1 -37
  344. package/dist/components/solution-card/customElement.js +1 -37
  345. package/dist/components/solution-configuration/customElement.d.ts +11 -2
  346. package/dist/components/solution-configuration/customElement.js +1 -114
  347. package/dist/components/solution-contents/customElement.d.ts +9 -3
  348. package/dist/components/solution-contents/customElement.js +1 -13
  349. package/dist/components/solution-delete-dialog/customElement.js +1 -37
  350. package/dist/components/solution-deploy-dialog/customElement.js +1 -37
  351. package/dist/components/solution-deploy-panel/customElement.js +1 -37
  352. package/dist/components/solution-deployed-card/customElement.js +1 -37
  353. package/dist/components/solution-deployed-panel/customElement.js +1 -37
  354. package/dist/components/solution-deploying-panel/customElement.js +1 -37
  355. package/dist/components/solution-item/customElement.d.ts +15 -3
  356. package/dist/components/solution-item/customElement.js +1 -41
  357. package/dist/components/solution-item-accordion/customElement.d.ts +2 -0
  358. package/dist/components/solution-item-accordion/customElement.js +1 -92
  359. package/dist/components/solution-item-details/customElement.d.ts +5 -1
  360. package/dist/components/solution-item-details/customElement.js +1 -48
  361. package/dist/components/solution-item-icon/customElement.d.ts +14 -4
  362. package/dist/components/solution-item-icon/customElement.js +6 -56
  363. package/dist/components/solution-item-sharing/customElement.d.ts +5 -1
  364. package/dist/components/solution-item-sharing/customElement.js +1 -39
  365. package/dist/components/solution-organization-variables/customElement.d.ts +5 -1
  366. package/dist/components/solution-organization-variables/customElement.js +1 -31
  367. package/dist/components/solution-resource-item/customElement.d.ts +2 -0
  368. package/dist/components/solution-resource-item/customElement.js +1 -87
  369. package/dist/components/solution-spatial-ref/customElement.d.ts +10 -2
  370. package/dist/components/solution-spatial-ref/customElement.js +1 -64
  371. package/dist/components/solution-template-data/customElement.d.ts +15 -7
  372. package/dist/components/solution-template-data/customElement.js +1 -29
  373. package/dist/components/solution-variables/customElement.d.ts +5 -1
  374. package/dist/components/solution-variables/customElement.js +1 -34
  375. package/dist/components/solutions-article-panel/customElement.js +1 -37
  376. package/dist/components/solutions-articles/customElement.js +1 -37
  377. package/dist/components/solutions-articles-shell/customElement.js +1 -37
  378. package/dist/components/solutions-deployed-panel/customElement.js +1 -37
  379. package/dist/components/solutions-deployed-shell/customElement.js +1 -37
  380. package/dist/components/solutions-filter/customElement.js +1 -37
  381. package/dist/components/solutions-panel/customElement.js +1 -38
  382. package/dist/components/solutions-shell/customElement.js +1 -37
  383. package/dist/components/spatial-ref/customElement.d.ts +10 -2
  384. package/dist/components/spatial-ref/customElement.js +1 -75
  385. package/dist/components/store-manager/customElement.d.ts +5 -1
  386. package/dist/components/store-manager/customElement.js +1 -26
  387. package/dist/docs/api.json +8 -8
  388. package/dist/docs/docs.json +20 -20
  389. package/dist/docs/web-types.json +8 -8
  390. package/dist/index.js +1 -1
  391. package/dist/loader.js +1 -1
  392. package/dist/utils/mapViewUtils.d.ts +3 -3
  393. package/dist/utils/queryUtils.d.ts +4 -4
  394. package/package.json +3 -20
  395. package/dist/cdn/2627OC35.js.LEGAL.txt +0 -0
  396. package/dist/cdn/2DEOX2UQ.js.LEGAL.txt +0 -0
  397. package/dist/cdn/2LLKAVTV.js.LEGAL.txt +0 -0
  398. package/dist/cdn/2WYQDE5Z.js.LEGAL.txt +0 -0
  399. package/dist/cdn/2XJGOOBG.js.LEGAL.txt +0 -0
  400. package/dist/cdn/33DZLRWA.js.LEGAL.txt +0 -3
  401. package/dist/cdn/34WBNSBV.js.LEGAL.txt +0 -0
  402. package/dist/cdn/35NYD4WF.js.LEGAL.txt +0 -0
  403. package/dist/cdn/3DKHAYTM.js +0 -4
  404. package/dist/cdn/3DKHAYTM.js.LEGAL.txt +0 -0
  405. package/dist/cdn/3DYBNNJG.js.LEGAL.txt +0 -0
  406. package/dist/cdn/3FL6VQP4.js.LEGAL.txt +0 -0
  407. package/dist/cdn/3GN3HS2Z.js.LEGAL.txt +0 -0
  408. package/dist/cdn/3I7ZK5FK.js.LEGAL.txt +0 -0
  409. package/dist/cdn/3L5P4SFV.js.LEGAL.txt +0 -0
  410. package/dist/cdn/3OSOBTXI.js.LEGAL.txt +0 -19
  411. package/dist/cdn/3UJWEKFN.js.LEGAL.txt +0 -0
  412. package/dist/cdn/3VIB765B.js +0 -4
  413. package/dist/cdn/3VIB765B.js.LEGAL.txt +0 -0
  414. package/dist/cdn/3XPDS33A.js.LEGAL.txt +0 -0
  415. package/dist/cdn/3ZL6JNEH.js.LEGAL.txt +0 -3
  416. package/dist/cdn/43UDVNH5.js.LEGAL.txt +0 -19
  417. package/dist/cdn/4BUCDYBI.js.LEGAL.txt +0 -0
  418. package/dist/cdn/4O2I2MFG.js.LEGAL.txt +0 -0
  419. package/dist/cdn/4PKH3ZTA.js.LEGAL.txt +0 -0
  420. package/dist/cdn/4R7NGALL.js +0 -4
  421. package/dist/cdn/4R7NGALL.js.LEGAL.txt +0 -0
  422. package/dist/cdn/4S47NFM3.js +0 -4
  423. package/dist/cdn/4S47NFM3.js.LEGAL.txt +0 -0
  424. package/dist/cdn/4UUPLRGU.js.LEGAL.txt +0 -0
  425. package/dist/cdn/4YQFQUCZ.js +0 -4
  426. package/dist/cdn/4YQFQUCZ.js.LEGAL.txt +0 -0
  427. package/dist/cdn/54TTZEMV.js.LEGAL.txt +0 -0
  428. package/dist/cdn/5A5OYCRM.js.LEGAL.txt +0 -3
  429. package/dist/cdn/5AG7YD7Y.js +0 -4
  430. package/dist/cdn/5AG7YD7Y.js.LEGAL.txt +0 -0
  431. package/dist/cdn/5BRHUPJQ.js.LEGAL.txt +0 -1113
  432. package/dist/cdn/5COTKFBX.js +0 -4
  433. package/dist/cdn/5COTKFBX.js.LEGAL.txt +0 -0
  434. package/dist/cdn/5F5ZEU66.js.LEGAL.txt +0 -0
  435. package/dist/cdn/5FKQTJXQ.js.LEGAL.txt +0 -0
  436. package/dist/cdn/5K2X6CBZ.js.LEGAL.txt +0 -3
  437. package/dist/cdn/5KCRA4JF.js.LEGAL.txt +0 -0
  438. package/dist/cdn/5KN7Z5XE.js +0 -6
  439. package/dist/cdn/5KN7Z5XE.js.LEGAL.txt +0 -145
  440. package/dist/cdn/5NCAUJ2M.js.LEGAL.txt +0 -0
  441. package/dist/cdn/5OIPGQLN.js.LEGAL.txt +0 -0
  442. package/dist/cdn/5YGFEQJH.js.LEGAL.txt +0 -0
  443. package/dist/cdn/62C7U5GV.js.LEGAL.txt +0 -0
  444. package/dist/cdn/63OERAOC.js.LEGAL.txt +0 -0
  445. package/dist/cdn/667HEELR.js.LEGAL.txt +0 -0
  446. package/dist/cdn/66AONU3N.js +0 -4
  447. package/dist/cdn/66AONU3N.js.LEGAL.txt +0 -0
  448. package/dist/cdn/6EQSCBDC.js.LEGAL.txt +0 -3
  449. package/dist/cdn/6LPZ6BWV.js.LEGAL.txt +0 -0
  450. package/dist/cdn/6WN23BQU.js.LEGAL.txt +0 -0
  451. package/dist/cdn/74DCBZXT.js.LEGAL.txt +0 -3
  452. package/dist/cdn/7CC4UOSP.js.LEGAL.txt +0 -19
  453. package/dist/cdn/7NQT5MYQ.js.LEGAL.txt +0 -0
  454. package/dist/cdn/7PCDZNHO.js.LEGAL.txt +0 -3
  455. package/dist/cdn/7PENT2WI.js +0 -4
  456. package/dist/cdn/7PENT2WI.js.LEGAL.txt +0 -0
  457. package/dist/cdn/7PXLNWUW.js.LEGAL.txt +0 -0
  458. package/dist/cdn/7S3CC4RV.js +0 -18
  459. package/dist/cdn/7S3CC4RV.js.LEGAL.txt +0 -3
  460. package/dist/cdn/7W774KKR.js.LEGAL.txt +0 -0
  461. package/dist/cdn/A7LA5V6P.js.LEGAL.txt +0 -0
  462. package/dist/cdn/ALIYBPUW.js.LEGAL.txt +0 -0
  463. package/dist/cdn/ALZYWZZK.js.LEGAL.txt +0 -0
  464. package/dist/cdn/ARRKQ2WZ.js +0 -4
  465. package/dist/cdn/ARRKQ2WZ.js.LEGAL.txt +0 -0
  466. package/dist/cdn/AVVACE2H.js.LEGAL.txt +0 -17
  467. package/dist/cdn/B6D4QBVH.js.LEGAL.txt +0 -0
  468. package/dist/cdn/BB7AEZC2.js.LEGAL.txt +0 -0
  469. package/dist/cdn/BBIZPRBD.js.LEGAL.txt +0 -0
  470. package/dist/cdn/BCVI5VVW.js +0 -9
  471. package/dist/cdn/BCVI5VVW.js.LEGAL.txt +0 -0
  472. package/dist/cdn/BVDPSX3N.js.LEGAL.txt +0 -3
  473. package/dist/cdn/C75GZINQ.js.LEGAL.txt +0 -3
  474. package/dist/cdn/C7FMD3GO.js.LEGAL.txt +0 -0
  475. package/dist/cdn/CPHOXIAS.js.LEGAL.txt +0 -0
  476. package/dist/cdn/CRQPKJYN.js +0 -4
  477. package/dist/cdn/CRQPKJYN.js.LEGAL.txt +0 -0
  478. package/dist/cdn/CVYUV5YV.js.LEGAL.txt +0 -0
  479. package/dist/cdn/D2T5W4MH.js.LEGAL.txt +0 -0
  480. package/dist/cdn/D7MB5F4I.js.LEGAL.txt +0 -0
  481. package/dist/cdn/DKCZUP4C.js.LEGAL.txt +0 -0
  482. package/dist/cdn/DKOI4TMS.js.LEGAL.txt +0 -17
  483. package/dist/cdn/DNG2RCLA.js +0 -18
  484. package/dist/cdn/DNG2RCLA.js.LEGAL.txt +0 -3
  485. package/dist/cdn/DNQVWK3Q.js.LEGAL.txt +0 -0
  486. package/dist/cdn/DOQ3OAB6.js.LEGAL.txt +0 -3
  487. package/dist/cdn/DRYWVFXX.js.LEGAL.txt +0 -0
  488. package/dist/cdn/E575ADYG.js.LEGAL.txt +0 -0
  489. package/dist/cdn/E6BIPFS4.js.LEGAL.txt +0 -0
  490. package/dist/cdn/EBSZD5UZ.js +0 -4
  491. package/dist/cdn/EBSZD5UZ.js.LEGAL.txt +0 -0
  492. package/dist/cdn/EDEOV7AB.js +0 -4
  493. package/dist/cdn/EDEOV7AB.js.LEGAL.txt +0 -0
  494. package/dist/cdn/EDYWDMUF.js.LEGAL.txt +0 -3
  495. package/dist/cdn/EEJ67SFG.js +0 -18
  496. package/dist/cdn/EEJ67SFG.js.LEGAL.txt +0 -12
  497. package/dist/cdn/EFG5WHVI.js.LEGAL.txt +0 -0
  498. package/dist/cdn/EH3TUCW5.js.LEGAL.txt +0 -0
  499. package/dist/cdn/EJ44YJGV.js.LEGAL.txt +0 -19
  500. package/dist/cdn/EN657RIR.js +0 -4
  501. package/dist/cdn/EN657RIR.js.LEGAL.txt +0 -0
  502. package/dist/cdn/EQRWAUHH.js.LEGAL.txt +0 -0
  503. package/dist/cdn/ETJDGNYP.js.LEGAL.txt +0 -3
  504. package/dist/cdn/FJ6RRUAZ.js.LEGAL.txt +0 -0
  505. package/dist/cdn/FR5AUKJH.js.LEGAL.txt +0 -0
  506. package/dist/cdn/FSFU2N3B.js.LEGAL.txt +0 -0
  507. package/dist/cdn/FVCUT5BD.js.LEGAL.txt +0 -0
  508. package/dist/cdn/GB27Q3KN.js +0 -4
  509. package/dist/cdn/GB27Q3KN.js.LEGAL.txt +0 -3
  510. package/dist/cdn/GDO2NL6R.js.LEGAL.txt +0 -3
  511. package/dist/cdn/GFN5IPB5.js.LEGAL.txt +0 -3
  512. package/dist/cdn/GGA2BKBI.js.LEGAL.txt +0 -0
  513. package/dist/cdn/GMXHYAWW.js.LEGAL.txt +0 -3
  514. package/dist/cdn/GV6574C7.js.LEGAL.txt +0 -0
  515. package/dist/cdn/GYTWI2N3.js.LEGAL.txt +0 -0
  516. package/dist/cdn/HEEO2XNR.js.LEGAL.txt +0 -0
  517. package/dist/cdn/HMIZLJTY.js +0 -25
  518. package/dist/cdn/HMIZLJTY.js.LEGAL.txt +0 -7
  519. package/dist/cdn/HNJ5GPBM.js +0 -3
  520. package/dist/cdn/HNJ5GPBM.js.LEGAL.txt +0 -15
  521. package/dist/cdn/HQVT5GIH.js.LEGAL.txt +0 -0
  522. package/dist/cdn/HRY2AWQR.js.LEGAL.txt +0 -0
  523. package/dist/cdn/HSYJOXKH.js.LEGAL.txt +0 -3
  524. package/dist/cdn/HVXOFD44.js.LEGAL.txt +0 -3
  525. package/dist/cdn/HYKX4C5U.js.LEGAL.txt +0 -3
  526. package/dist/cdn/I33SMVY3.js +0 -18
  527. package/dist/cdn/I33SMVY3.js.LEGAL.txt +0 -3
  528. package/dist/cdn/IERS74VR.js.LEGAL.txt +0 -0
  529. package/dist/cdn/IIFJMCMO.js.LEGAL.txt +0 -0
  530. package/dist/cdn/IMLKKE2U.js.LEGAL.txt +0 -0
  531. package/dist/cdn/IQU2F4H3.js +0 -18
  532. package/dist/cdn/IQU2F4H3.js.LEGAL.txt +0 -3
  533. package/dist/cdn/IRKP2OK7.js.LEGAL.txt +0 -3
  534. package/dist/cdn/ISCLBHEK.js.LEGAL.txt +0 -0
  535. package/dist/cdn/ITVDBPSA.js.LEGAL.txt +0 -3
  536. package/dist/cdn/IV5VX3CU.js.LEGAL.txt +0 -0
  537. package/dist/cdn/JD7Q6C2C.js.LEGAL.txt +0 -3
  538. package/dist/cdn/JHQ47NZN.js.LEGAL.txt +0 -0
  539. package/dist/cdn/JHQRE76I.js.LEGAL.txt +0 -3
  540. package/dist/cdn/JI5JTAYE.js.LEGAL.txt +0 -0
  541. package/dist/cdn/JJ5LIG3E.js.LEGAL.txt +0 -0
  542. package/dist/cdn/JQH6FWBF.js +0 -4
  543. package/dist/cdn/JQH6FWBF.js.LEGAL.txt +0 -0
  544. package/dist/cdn/JRNC7PCQ.js.LEGAL.txt +0 -15
  545. package/dist/cdn/JS3KPL65.js.LEGAL.txt +0 -0
  546. package/dist/cdn/JYHXLAK7.js.LEGAL.txt +0 -0
  547. package/dist/cdn/K5U2KIKJ.js +0 -4
  548. package/dist/cdn/K5U2KIKJ.js.LEGAL.txt +0 -0
  549. package/dist/cdn/KAHTIZBX.js.LEGAL.txt +0 -4
  550. package/dist/cdn/KFIMM3IL.js +0 -4
  551. package/dist/cdn/KFIMM3IL.js.LEGAL.txt +0 -0
  552. package/dist/cdn/KHUKO76X.js.LEGAL.txt +0 -0
  553. package/dist/cdn/KOHHJ3Q4.js.LEGAL.txt +0 -3
  554. package/dist/cdn/KPKZMEKZ.js.LEGAL.txt +0 -0
  555. package/dist/cdn/KPPOT7GR.js.LEGAL.txt +0 -0
  556. package/dist/cdn/KRMQR6PO.js.LEGAL.txt +0 -19
  557. package/dist/cdn/LA4ADRHN.js.LEGAL.txt +0 -0
  558. package/dist/cdn/LAEMDHMW.js.LEGAL.txt +0 -0
  559. package/dist/cdn/LDSB3ZAB.js.LEGAL.txt +0 -0
  560. package/dist/cdn/LGHVEQGE.js +0 -18
  561. package/dist/cdn/LGHVEQGE.js.LEGAL.txt +0 -3
  562. package/dist/cdn/LGYRQXSU.js.LEGAL.txt +0 -0
  563. package/dist/cdn/LNPKEFYF.js.LEGAL.txt +0 -3
  564. package/dist/cdn/LOCRYUB5.js.LEGAL.txt +0 -0
  565. package/dist/cdn/LQIITPOL.js +0 -18
  566. package/dist/cdn/LQIITPOL.js.LEGAL.txt +0 -3
  567. package/dist/cdn/LQVQ5SYL.js.LEGAL.txt +0 -0
  568. package/dist/cdn/LQYOJKKM.js.LEGAL.txt +0 -0
  569. package/dist/cdn/LSUEYFIK.js.LEGAL.txt +0 -19
  570. package/dist/cdn/LTVV5X4C.js.LEGAL.txt +0 -3
  571. package/dist/cdn/M4NMK35G.js.LEGAL.txt +0 -3
  572. package/dist/cdn/M4YVWMXK.js.LEGAL.txt +0 -0
  573. package/dist/cdn/M6OKQSGJ.js.LEGAL.txt +0 -0
  574. package/dist/cdn/MDMPQSN3.js.LEGAL.txt +0 -3
  575. package/dist/cdn/MLWHYPW3.js.LEGAL.txt +0 -0
  576. package/dist/cdn/MMGJL263.js.LEGAL.txt +0 -0
  577. package/dist/cdn/MQKFPPUQ.js.LEGAL.txt +0 -3
  578. package/dist/cdn/NA5LJZU7.js.LEGAL.txt +0 -0
  579. package/dist/cdn/NAJHCCFK.js.LEGAL.txt +0 -0
  580. package/dist/cdn/NAWXGWKC.js.LEGAL.txt +0 -3
  581. package/dist/cdn/NDRFJNB5.js.LEGAL.txt +0 -0
  582. package/dist/cdn/NGQYRRMX.js.LEGAL.txt +0 -3
  583. package/dist/cdn/NHOULH2W.js.LEGAL.txt +0 -4
  584. package/dist/cdn/NI6VUXXY.js +0 -4
  585. package/dist/cdn/NI6VUXXY.js.LEGAL.txt +0 -0
  586. package/dist/cdn/NMC4BPV4.js.LEGAL.txt +0 -0
  587. package/dist/cdn/NMJB2BJ2.js.LEGAL.txt +0 -3
  588. package/dist/cdn/NOAVPB5F.js.LEGAL.txt +0 -14
  589. package/dist/cdn/NQTVJEQJ.js.LEGAL.txt +0 -0
  590. package/dist/cdn/NSCO46UB.js.LEGAL.txt +0 -3
  591. package/dist/cdn/NWNCFKQJ.js.LEGAL.txt +0 -3
  592. package/dist/cdn/O2ZHYRZT.js +0 -18
  593. package/dist/cdn/O2ZHYRZT.js.LEGAL.txt +0 -3
  594. package/dist/cdn/O4U462PQ.js.LEGAL.txt +0 -3
  595. package/dist/cdn/OGTPASHM.js.LEGAL.txt +0 -3
  596. package/dist/cdn/OHSYSDBJ.js +0 -4
  597. package/dist/cdn/OHSYSDBJ.js.LEGAL.txt +0 -0
  598. package/dist/cdn/OJMZUZGG.js.LEGAL.txt +0 -0
  599. package/dist/cdn/OO5QJAUV.js.LEGAL.txt +0 -3
  600. package/dist/cdn/OPC6J6MC.js.LEGAL.txt +0 -19
  601. package/dist/cdn/OQMSIWHM.js.LEGAL.txt +0 -3
  602. package/dist/cdn/OSJ4PK7V.js.LEGAL.txt +0 -0
  603. package/dist/cdn/OZZ6AIHM.js.LEGAL.txt +0 -0
  604. package/dist/cdn/PE2NGOSN.js.LEGAL.txt +0 -0
  605. package/dist/cdn/PFPXYDRH.js.LEGAL.txt +0 -0
  606. package/dist/cdn/PIBX77IR.js.LEGAL.txt +0 -0
  607. package/dist/cdn/PKQMLT3F.js.LEGAL.txt +0 -27
  608. package/dist/cdn/PLPFPFMS.js.LEGAL.txt +0 -0
  609. package/dist/cdn/PMLO3UBD.js.LEGAL.txt +0 -3
  610. package/dist/cdn/PYOZY3AA.js.LEGAL.txt +0 -0
  611. package/dist/cdn/Q46U6YLX.js.LEGAL.txt +0 -0
  612. package/dist/cdn/Q4QJIANV.js.LEGAL.txt +0 -0
  613. package/dist/cdn/Q4YN3UWN.js.LEGAL.txt +0 -0
  614. package/dist/cdn/Q7CCSRAE.js.LEGAL.txt +0 -3
  615. package/dist/cdn/QAOKFIMA.js.LEGAL.txt +0 -0
  616. package/dist/cdn/QAV3ZXVX.js.LEGAL.txt +0 -0
  617. package/dist/cdn/QGQW73YS.js.LEGAL.txt +0 -3
  618. package/dist/cdn/QI7CAGDL.js.LEGAL.txt +0 -0
  619. package/dist/cdn/QJI4YPT2.js.LEGAL.txt +0 -0
  620. package/dist/cdn/QNEZFCY7.js.LEGAL.txt +0 -0
  621. package/dist/cdn/QPZ5DWIV.js.LEGAL.txt +0 -19
  622. package/dist/cdn/QSI6TV26.js.LEGAL.txt +0 -244
  623. package/dist/cdn/QSK26NIR.js.LEGAL.txt +0 -0
  624. package/dist/cdn/R4M6CYMY.js.LEGAL.txt +0 -19
  625. package/dist/cdn/R6JBLWE7.js.LEGAL.txt +0 -0
  626. package/dist/cdn/RBTSB7LW.js +0 -4
  627. package/dist/cdn/RBTSB7LW.js.LEGAL.txt +0 -0
  628. package/dist/cdn/RCBI5D2Z.js.LEGAL.txt +0 -0
  629. package/dist/cdn/RCNFZSA5.js.LEGAL.txt +0 -0
  630. package/dist/cdn/RFBZVECY.js.LEGAL.txt +0 -0
  631. package/dist/cdn/RGNEZPQ6.js.LEGAL.txt +0 -3
  632. package/dist/cdn/RPBZ5L5A.js.LEGAL.txt +0 -3
  633. package/dist/cdn/RU7VN5YX.js.LEGAL.txt +0 -0
  634. package/dist/cdn/RUH56R7L.js +0 -4
  635. package/dist/cdn/RUH56R7L.js.LEGAL.txt +0 -0
  636. package/dist/cdn/RWVKAK4K.js.LEGAL.txt +0 -3
  637. package/dist/cdn/RYMHJ7M6.js.LEGAL.txt +0 -0
  638. package/dist/cdn/RYWPGCGZ.js.LEGAL.txt +0 -0
  639. package/dist/cdn/SALTFRJ5.js.LEGAL.txt +0 -0
  640. package/dist/cdn/SBPJJXZK.js +0 -4
  641. package/dist/cdn/SBPJJXZK.js.LEGAL.txt +0 -0
  642. package/dist/cdn/SDVEOIP6.js.LEGAL.txt +0 -0
  643. package/dist/cdn/SERFTFK4.js.LEGAL.txt +0 -3
  644. package/dist/cdn/SFN7KXBC.js.LEGAL.txt +0 -0
  645. package/dist/cdn/SHSCJK7K.js.LEGAL.txt +0 -0
  646. package/dist/cdn/SHWFC6TE.js.LEGAL.txt +0 -19
  647. package/dist/cdn/T7EH5UZA.js.LEGAL.txt +0 -3
  648. package/dist/cdn/TA7QL4YX.js.LEGAL.txt +0 -0
  649. package/dist/cdn/TN4SBIJW.js.LEGAL.txt +0 -0
  650. package/dist/cdn/TS77EOZ2.js.LEGAL.txt +0 -3
  651. package/dist/cdn/TXARZDSW.js.LEGAL.txt +0 -0
  652. package/dist/cdn/TYLRSAPF.js +0 -4
  653. package/dist/cdn/TYLRSAPF.js.LEGAL.txt +0 -0
  654. package/dist/cdn/U2NFHP5I.js +0 -4
  655. package/dist/cdn/U2NFHP5I.js.LEGAL.txt +0 -0
  656. package/dist/cdn/UBKKMKS7.js.LEGAL.txt +0 -0
  657. package/dist/cdn/URSDOYPK.js.LEGAL.txt +0 -0
  658. package/dist/cdn/UTQQDI5Q.js.LEGAL.txt +0 -3
  659. package/dist/cdn/UTX33TLK.js.LEGAL.txt +0 -0
  660. package/dist/cdn/UWLZA6RY.js.LEGAL.txt +0 -8
  661. package/dist/cdn/UX2H3Z6R.js.LEGAL.txt +0 -0
  662. package/dist/cdn/UZVXLXYQ.js.LEGAL.txt +0 -0
  663. package/dist/cdn/VGD2IUHD.js +0 -4
  664. package/dist/cdn/VGD2IUHD.js.LEGAL.txt +0 -0
  665. package/dist/cdn/VIFOVT2H.js.LEGAL.txt +0 -22
  666. package/dist/cdn/VS4BFKH5.js.LEGAL.txt +0 -3
  667. package/dist/cdn/VTDPGZFT.js.LEGAL.txt +0 -3
  668. package/dist/cdn/VZMHIBV5.js.LEGAL.txt +0 -0
  669. package/dist/cdn/W7PI4HOW.js.LEGAL.txt +0 -0
  670. package/dist/cdn/WHIJZGSO.js.LEGAL.txt +0 -0
  671. package/dist/cdn/WK4XUJYY.js.LEGAL.txt +0 -19
  672. package/dist/cdn/WPW7HPVB.js.LEGAL.txt +0 -3
  673. package/dist/cdn/WSDRBWDO.js.LEGAL.txt +0 -3
  674. package/dist/cdn/WVFYDL3N.js.LEGAL.txt +0 -0
  675. package/dist/cdn/WXBPYKCV.js.LEGAL.txt +0 -0
  676. package/dist/cdn/WYNYF36Y.js.LEGAL.txt +0 -0
  677. package/dist/cdn/WZV2UPIA.js.LEGAL.txt +0 -3
  678. package/dist/cdn/X7OXK5DE.js.LEGAL.txt +0 -0
  679. package/dist/cdn/XA4WRYB3.js.LEGAL.txt +0 -0
  680. package/dist/cdn/XAP7KYLB.js.LEGAL.txt +0 -0
  681. package/dist/cdn/XBJF7MJ6.js.LEGAL.txt +0 -0
  682. package/dist/cdn/XDTQLWOL.js.LEGAL.txt +0 -0
  683. package/dist/cdn/XGRMPRIT.js +0 -4
  684. package/dist/cdn/XGRMPRIT.js.LEGAL.txt +0 -0
  685. package/dist/cdn/XPPFPOAJ.js.LEGAL.txt +0 -0
  686. package/dist/cdn/XRSL7RGR.js.LEGAL.txt +0 -0
  687. package/dist/cdn/XWVXILJ6.js.LEGAL.txt +0 -3
  688. package/dist/cdn/Y5QLVYUJ.js.LEGAL.txt +0 -0
  689. package/dist/cdn/YBHXQHED.js.LEGAL.txt +0 -0
  690. package/dist/cdn/YFDRQUEW.js.LEGAL.txt +0 -0
  691. package/dist/cdn/YH55Y5MP.js.LEGAL.txt +0 -0
  692. package/dist/cdn/YHUDJET2.js.LEGAL.txt +0 -0
  693. package/dist/cdn/YLWTVGEO.js.LEGAL.txt +0 -0
  694. package/dist/cdn/YOLXA6ZY.js.LEGAL.txt +0 -0
  695. package/dist/cdn/YPMMBOZ4.js.LEGAL.txt +0 -0
  696. package/dist/cdn/YQDNVPGZ.js.LEGAL.txt +0 -0
  697. package/dist/cdn/YZMHYMNZ.js.LEGAL.txt +0 -0
  698. package/dist/cdn/ZIIYJYM3.js.LEGAL.txt +0 -0
  699. package/dist/cdn/ZJR4525B.js.LEGAL.txt +0 -0
  700. package/dist/cdn/ZKUTSUQ5.js.LEGAL.txt +0 -0
  701. package/dist/cdn/ZLSEU37X.js +0 -4
  702. package/dist/cdn/ZLSEU37X.js.LEGAL.txt +0 -0
  703. package/dist/cdn/ZSBOSR2Q.js.LEGAL.txt +0 -0
  704. package/dist/cdn/ZWWF36B7.js +0 -4
  705. package/dist/cdn/ZWWF36B7.js.LEGAL.txt +0 -0
  706. package/dist/cdn/ZXEH2RP3.js.LEGAL.txt +0 -3
  707. package/dist/cdn/index.esm.js.LEGAL.txt +0 -3
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{d as V,e as L}from"./OPC6J6MC.js";import"./WK4XUJYY.js";import"./7CC4UOSP.js";import{a as p,b as m}from"./JRNC7PCQ.js";import{b as v}from"./R4M6CYMY.js";import{a as b}from"./6EQSCBDC.js";import{B as M,c as g,d as h,n as d,q as f,w as y,x as c}from"./5KN7Z5XE.js";import"./ZIIYJYM3.js";var S=g`@layer{/** @license
3
+ v1.0.0-next.20250506.1 */
4
+ import{d as V,e as L}from"./HQLVVCY5.js";import"./WCO2JYT7.js";import"./DMTCZQGB.js";import{a as p,b as m}from"./4FO53H2N.js";import{b as v}from"./7K2EWZ4V.js";import{a as b}from"./VERJI2SH.js";import{B as M,c as g,d as h,n as d,q as f,w as y,x as c}from"./YXGKJSHK.js";import"./V5XUAHEB.js";var S=g`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import{d as V,e as L}from"./OPC6J6MC.js";import"./WK4XUJYY.js";import"./7CC4UOSP
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */:host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none!important}.esri-editor__panel-content{padding-block:0px!important}.esri-editor .esri-item-list__group__header,.esri-editor__panel-content__section .esri-widget__heading{display:none!important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px!important;padding-inline:10px!important}.search-widget{width:92%!important;margin:5px 14px 20px}.display-none{display:none!important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px!important;position:absolute!important;bottom:0;height:auto!important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px!important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0!important;min-height:0!important}}}`,w=class extends y{constructor(){super(...arguments),this.customizeSubmit=!1,this.enableSearch=!1,this.enableSnapping=!1,this.floorLevel="",this.isMobile=!1,this.selectedLayerId="",this.showGuidingMsg=!0,this.submitNewReportsMessage="",this._currentPage="templatePicker",this._editorLoading=!1,this._translations=b({name:"create-feature",blocking:!0}),this._addingAttachment=!1,this._calciteNotice=p(),this._isSubmitBtnClicked=!1,this._mapViewContainer=p(),this._searchDiv=p(),this.success=d(),this.fail=d(),this.drawComplete=d(),this.editingAttachment=d(),this.progressStatus=d(),this.modeChanged=d()}static{this.properties={customizeSubmit:5,enableSearch:5,enableSnapping:5,floorLevel:1,formElements:1,isMobile:5,mapView:0,searchConfiguration:0,selectedLayerId:1,showGuidingMsg:5,submitNewReportsMessage:1,_currentPage:16,_editorLoading:16,_translations:16}}static{this.styles=S}static{this.shadowRootOptions=f}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("isMobile")&&this.isMobileHandler(),e.has("_editorLoading")&&(this.hasUpdated||this._editorLoading!==!1)&&this._editorLoadingWatchHandler(this._editorLoading)}async mapViewWatchHandler(){this.mapView&&await this.mapView.when(async()=>{await this.init()})}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(e){if(e){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){if(this._selectedLayer.templates&&this._editor){let t=this._selectedLayer.templates[0],s={layer:this._selectedLayer,template:t};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(s),await this.hideEditorsElements()}}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor?.viewModel?.featureFormViewModel&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(e){this._editor&&this._setFloorLevel(e)}async load(){await this.initModules()}async loaded(){await this.init()}updated(){if(this.isMobile&&this._calciteNotice.value&&this._searchDiv.value&&this._mapViewContainer.value){let e=this._calciteNotice.value.offsetHeight+this._searchDiv.value.offsetHeight+80;this._mapViewContainer.value.style.top=`${e}px`}}disconnectedCallback(){super.disconnectedCallback(),this._editor&&(this._editor.viewModel.sketchViewModel&&this._editor.viewModel.sketchViewModel?.destroy(),this._editor.destroy(),this.enableSnapping&&this.mapView?.ui.view&&((this.mapView?.ui.view).grid=null))}render(){let e=this._currentPage==="drawing"?"":"display-none",t=this._editorLoading?"":"display-none",s=this._editorLoading?"display-none":"",i=this.isMobile?"show-map":"display-none",o=this.showGuidingMsg&&this._currentPage!=="templatePicker",a=this._translations.chooseCategoryMsg;return this._currentPage==="drawing"?a=this._translations.provideLocationMsg:this._currentPage==="featureForm"&&(a=this._translations.provideDetailsMsg),h`${o&&h`<calcite-notice class="notice-msg" icon=lightbulb kind=success open ${m(this._calciteNotice)}><div slot=message>${a}</div></calcite-notice>`||""}<calcite-loader class=${c(t)} label scale=s></calcite-loader><div class=${c(s)} id=feature-form></div>${this.enableSearch&&h`<div class=${`search-widget ${e} ${s}`} id=search-widget-ref ${m(this._searchDiv)}></div>`||""}<div class=${c(i)} ${m(this._mapViewContainer)}></div>`}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile?this.createMobileMapView():this._loadWidgets()))}async initModules(){let[e,t,s,i,o,a,r]=await v(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView"]);this.Editor=e,this.reactiveUtils=t,this.Search=s,this.ExpressionInfo=i,this.FieldElement=o,this.FormTemplate=a,this.MapView=r}async createMobileMapView(){this._mapViewContainer.value&&this.MapView&&this.mapView&&(this._mapViewContainer.value.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer.value,zoom:this.mapView.zoom}).when(e=>{this._updatedMapView=e,this._loadWidgets()},e=>{console.log(e)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();let e=[];this._container=document.createElement("div"),this._container?.classList.add("display-none"),this.enableSnapping||this._container.classList.add("hide-editor-toolbar");let t=this._updatedMapView&&await L(this._updatedMapView),s=this.mapView&&await V(this.mapView,this.selectedLayerId);if(s&&(this._selectedLayer=s,!this._selectedLayer?.isTable&&t&&t.forEach(i=>{e.push({layer:i,enabled:i?.type==="feature"&&i?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this.Editor&&(this._editor=new this.Editor({view:this._updatedMapView,layerInfos:e,visibleElements:{settingsMenu:this.enableSnapping,snappingControls:this.enableSnapping,createFeaturesSection:!0,editFeaturesSection:!1,flow:!0,sketch:!1},container:this._container}),this._mapViewContainer.value?this.el.insertBefore(this._container,this._mapViewContainer.value):this.el.appendChild(this._container)),this._editor){let i=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,n=>{n==="adding-attachment"||n==="editing-attachment"?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)});i&&this._editor.viewModel.addHandles(i);let o=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureTemplatesViewModel.state,n=>{n==="ready"&&this._editor?.viewModel?.activeWorkflow?.type!=="create-features"&&(this.progressStatus.emit(50),this._editorLoading=!0)});o&&this._editor.viewModel.addHandles(o);let a=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureFormViewModel?.state,n=>{n==="ready"&&this._editor?.viewModel.featureFormViewModel&&(this._mapViewContainer.value?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.addHandles(this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))),setTimeout(()=>{this._setFloorLevel(this.floorLevel)},50),this._currentPage="featureForm",this.progressStatus.emit(100),this.drawComplete.emit())});a&&this._editor.viewModel.addHandles(a);let r=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,n=>{n==="creating-features"&&this._editor?.viewModel.featureFormViewModel&&this._editor.viewModel.featureFormViewModel.state==="disabled"&&(this._mapViewContainer.value?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))});r&&this._editor.viewModel.addHandles(r)}}async startCreate(){return await this.hideEditorsElements(),new Promise((e,t)=>{if(this._editor?.viewModel.featureTemplatesViewModel.items?.length){let s=this._editor.viewModel.featureTemplatesViewModel.items[0].items;this._editor.viewModel.featureTemplatesViewModel.addHandles(this._editor.viewModel.featureTemplatesViewModel.on("select",()=>{this.progressStatus.emit(75),setTimeout(()=>{this.hideEditorsElements().then(()=>{e({})},o=>t(o))},700)})),s.length===1&&this._editor.viewModel.featureTemplatesViewModel.select(s[0]);let i=s.length>1;this.hideEditorsElements().then(()=>{i&&e({})},o=>i&&t(o))}})}async createSearchWidget(){if(this._updatedMapView&&this.Search){let e={view:this._updatedMapView};this.searchConfiguration&&(e={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(e),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let t;this._search.viewModel.addHandles(this._search.on("search-complete",i=>{this._updatedMapView?.goTo(i.results[0].results[0].extent),this._selectedLayer?.geometryType==="point"&&(t=i.results[0].results[0]?.feature.geometry)}));let s=this.reactiveUtils?.watch(()=>this._search?.viewModel.state,i=>{i==="ready"&&setTimeout(()=>{this._editor?.viewModel.sketchViewModel?.createGraphic&&t&&(this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",t),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements())},100)});s&&this._search.viewModel.addHandles(s)}}_getSearchConfig(e,t){let s="includeDefaultSources",i=e.sources;return i&&i?.length>0?(e[s]=!1,i.forEach(o=>{if(o.hasOwnProperty("layer")){let a=o,r=a.layer?.id,n=r?t.map.findLayerById(r):"",l=a?.layer?.url;n?a.layer=n:l&&this.FeatureLayer&&(a.layer=new this.FeatureLayer(l))}}),i?.forEach(o=>{if(o.hasOwnProperty("locator")){let a=o;if(a?.name==="ArcGIS World Geocoding Service"){let r=a.outFields||["Addr_type","Match_addr","StAddr","City"];a.outFields=r,a.singleLineFieldName="SingleLine"}a.url=a.url,delete a.url}})):e={...e,includeDefaultSources:!0},e}async _setFloorLevel(e){if(!e)return;let t=this._selectedLayer,s=t?.floorInfo?.floorField;if(s){let i=t.fields.find(o=>o.name===s);if(i&&!t?.formTemplate)this._editor?.viewModel.featureFormViewModel&&(this._editor.viewModel.featureFormViewModel.setValue(i.name,e),i.editable=!1);else if(t.formTemplate&&this.formElements&&this.ExpressionInfo&&this.FieldElement){let o=new this.ExpressionInfo({expression:`"${e}"`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),a=new this.FieldElement({label:s,editableExpression:"false",fieldName:s,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:o.name});this._updatedMapView?.map.editableLayers.forEach(r=>{let n=this.formElements.orgElements,l=this.formElements.orgExpressionInfos,u=[...n];if(u.push(a),r.type==="feature"&&this.FormTemplate){let _=r,E=new this.FormTemplate({title:_?.formTemplate?.title,description:_?.formTemplate?.description,elements:u,expressionInfos:[o].concat(l)});r.formTemplate=E}})}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach(e=>{let t=e.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");t?.querySelector("header")?.setAttribute("style","display: none"),t?.querySelector("footer")?.setAttribute("style","display: none")}))}async submitted(e){if(e.invalid.length){this._isSubmitBtnClicked=!1;return}if(this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{this._editor?.activeWorkflow&&(await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some(t=>{if(t.error)throw t.error}))}catch(t){this.fail.emit(t);return}this.success.emit()}}async timeout(e){return new Promise(t=>setTimeout(t,e))}};M("create-feature",w);export{w as CreateFeature};
18
+ */:host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none!important}.esri-editor__panel-content{padding-block:0px!important}.esri-editor .esri-item-list__group__header,.esri-editor__panel-content__section .esri-widget__heading{display:none!important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px!important;padding-inline:10px!important}.search-widget{width:92%!important;margin:5px 14px 20px}.display-none{display:none!important}.hide-map{height:1%;visibility:hidden}.show-map{padding:10px!important;position:absolute!important;bottom:0;height:auto!important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.esri-editor__panel-content{padding-block:10px!important}@media only screen and (max-width: 600px){.esri-editor__panel-content{padding-block:0!important;min-height:0!important}}}`,w=class extends y{constructor(){super(...arguments),this.customizeSubmit=!1,this.enableSearch=!1,this.enableSnapping=!1,this.floorLevel="",this.isMobile=!1,this.selectedLayerId="",this.showGuidingMsg=!0,this.submitNewReportsMessage="",this._currentPage="templatePicker",this._editorLoading=!1,this._translations=b({name:"create-feature",blocking:!0}),this._addingAttachment=!1,this._calciteNotice=p(),this._isSubmitBtnClicked=!1,this._mapViewContainer=p(),this._searchDiv=p(),this.success=d(),this.fail=d(),this.drawComplete=d(),this.editingAttachment=d(),this.progressStatus=d(),this.modeChanged=d()}static{this.properties={customizeSubmit:5,enableSearch:5,enableSnapping:5,floorLevel:1,formElements:1,isMobile:5,mapView:0,searchConfiguration:0,selectedLayerId:1,showGuidingMsg:5,submitNewReportsMessage:1,_currentPage:16,_editorLoading:16,_translations:16}}static{this.styles=S}static{this.shadowRootOptions=f}willUpdate(e){e.has("mapView")&&this.mapViewWatchHandler(),e.has("isMobile")&&this.isMobileHandler(),e.has("_editorLoading")&&(this.hasUpdated||this._editorLoading!==!1)&&this._editorLoadingWatchHandler(this._editorLoading)}async mapViewWatchHandler(){this.mapView&&await this.mapView.when(async()=>{await this.init()})}async isMobileHandler(){this.modeChanged.emit()}async _editorLoadingWatchHandler(e){if(e){if(this._container?.classList.add("display-none"),this._selectedLayer?.isTable){if(this._selectedLayer.templates&&this._editor){let t=this._selectedLayer.templates[0],s={layer:this._selectedLayer,template:t};await this._editor.startCreateFeaturesWorkflowAtFeatureCreation(s),await this.hideEditorsElements()}}else await this.startCreate();this._container?.classList.remove("display-none"),this._editorLoading=!1}}async submit(){this._editor?.viewModel?.featureFormViewModel&&(this._isSubmitBtnClicked=!0,this._editor.viewModel.featureFormViewModel.submit())}async refresh(e){this._editor&&this._setFloorLevel(e)}async load(){await this.initModules()}async loaded(){await this.init()}updated(){if(this.isMobile&&this._calciteNotice.value&&this._searchDiv.value&&this._mapViewContainer.value){let e=this._calciteNotice.value.offsetHeight+this._searchDiv.value.offsetHeight+80;this._mapViewContainer.value.style.top=`${e}px`}}disconnectedCallback(){super.disconnectedCallback(),this._editor&&(this._editor.viewModel.sketchViewModel&&this._editor.viewModel.sketchViewModel?.destroy(),this._editor.destroy(),this.enableSnapping&&this.mapView?.ui.view&&((this.mapView?.ui.view).grid=null))}render(){let e=this._currentPage==="drawing"?"":"display-none",t=this._editorLoading?"":"display-none",s=this._editorLoading?"display-none":"",i=this.isMobile?"show-map":"display-none",o=this.showGuidingMsg&&this._currentPage!=="templatePicker",a=this._translations.chooseCategoryMsg;return this._currentPage==="drawing"?a=this._translations.provideLocationMsg:this._currentPage==="featureForm"&&(a=this._translations.provideDetailsMsg),h`${o&&h`<calcite-notice class="notice-msg" icon=lightbulb kind=success open ${m(this._calciteNotice)}><div slot=message>${a}</div></calcite-notice>`||""}<calcite-loader class=${c(t)} label scale=s></calcite-loader><div class=${c(s)} id=feature-form></div>${this.enableSearch&&h`<div class=${`search-widget ${e} ${s}`} id=search-widget-ref ${m(this._searchDiv)}></div>`||""}<div class=${c(i)} ${m(this._mapViewContainer)}></div>`}async init(){this.mapView&&this.selectedLayerId&&(this._updatedMapView=this.mapView,await(this.isMobile?this.createMobileMapView():this._loadWidgets()))}async initModules(){let[e,t,s,i,o,a,r]=await v(["esri/widgets/Editor","esri/core/reactiveUtils","esri/widgets/Search","esri/form/ExpressionInfo","esri/form/elements/FieldElement","esri/form/FormTemplate","esri/views/MapView"]);this.Editor=e,this.reactiveUtils=t,this.Search=s,this.ExpressionInfo=i,this.FieldElement=o,this.FormTemplate=a,this.MapView=r}async createMobileMapView(){this._mapViewContainer.value&&this.MapView&&this.mapView&&(this._mapViewContainer.value.classList.add("hide-map"),await new this.MapView({map:this.mapView.map,container:this._mapViewContainer.value,zoom:this.mapView.zoom}).when(e=>{this._updatedMapView=e,this._loadWidgets()},e=>{console.log(e)}))}async _loadWidgets(){await this.createEditorWidget(),this.enableSearch&&await this.createSearchWidget()}async createEditorWidget(){this._editor&&this._editor.destroy();let e=[];this._container=document.createElement("div"),this._container?.classList.add("display-none"),this.enableSnapping||this._container.classList.add("hide-editor-toolbar");let t=this._updatedMapView&&await L(this._updatedMapView),s=this.mapView&&await V(this.mapView,this.selectedLayerId);if(s&&(this._selectedLayer=s,!this._selectedLayer?.isTable&&t&&t.forEach(i=>{e.push({layer:i,enabled:i?.type==="feature"&&i?.id===this.selectedLayerId,addEnabled:!0,updateEnabled:!1,deleteEnabled:!1})})),this.Editor&&(this._editor=new this.Editor({view:this._updatedMapView,layerInfos:e,visibleElements:{settingsMenu:this.enableSnapping,snappingControls:this.enableSnapping,createFeaturesSection:!0,editFeaturesSection:!1,flow:!0,sketch:!1},container:this._container}),this._mapViewContainer.value?this.el.insertBefore(this._container,this._mapViewContainer.value):this.el.appendChild(this._container)),this._editor){let i=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,n=>{n==="adding-attachment"||n==="editing-attachment"?(this._addingAttachment=!0,this.editingAttachment.emit(!0)):this._addingAttachment&&(this.editingAttachment.emit(!1),this._addingAttachment=!1)});i&&this._editor.viewModel.addHandles(i);let o=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureTemplatesViewModel.state,n=>{n==="ready"&&this._editor?.viewModel?.activeWorkflow?.type!=="create-features"&&(this.progressStatus.emit(50),this._editorLoading=!0)});o&&this._editor.viewModel.addHandles(o);let a=this.reactiveUtils?.watch(()=>this._editor?.viewModel.featureFormViewModel?.state,n=>{n==="ready"&&this._editor?.viewModel.featureFormViewModel&&(this._mapViewContainer.value?.classList?.replace("show-map","hide-map"),this._editor.viewModel.featureFormViewModel.addHandles(this._editor.viewModel.featureFormViewModel.on("submit",this.submitted.bind(this))),setTimeout(()=>{this._setFloorLevel(this.floorLevel)},50),this._currentPage="featureForm",this.progressStatus.emit(100),this.drawComplete.emit())});a&&this._editor.viewModel.addHandles(a);let r=this.reactiveUtils?.watch(()=>this._editor?.viewModel.state,n=>{n==="creating-features"&&this._editor?.viewModel.featureFormViewModel&&this._editor.viewModel.featureFormViewModel.state==="disabled"&&(this._mapViewContainer.value?.classList?.replace("hide-map","show-map"),this._selectedLayer&&!this._selectedLayer.isTable&&(this._currentPage="drawing"))});r&&this._editor.viewModel.addHandles(r)}}async startCreate(){return await this.hideEditorsElements(),new Promise((e,t)=>{if(this._editor?.viewModel.featureTemplatesViewModel.items?.length){let s=this._editor.viewModel.featureTemplatesViewModel.items[0].items;this._editor.viewModel.featureTemplatesViewModel.addHandles(this._editor.viewModel.featureTemplatesViewModel.on("select",()=>{this.progressStatus.emit(75),setTimeout(()=>{this.hideEditorsElements().then(()=>{e({})},o=>t(o))},700)})),s.length===1&&this._editor.viewModel.featureTemplatesViewModel.select(s[0]);let i=s.length>1;this.hideEditorsElements().then(()=>{i&&e({})},o=>i&&t(o))}})}async createSearchWidget(){if(this._updatedMapView&&this.Search){let e={view:this._updatedMapView};this.searchConfiguration&&(e={...this._getSearchConfig(this.searchConfiguration,this._updatedMapView)}),this._search=new this.Search(e),this._search.container="search-widget-ref",this._search.popupEnabled=!1,this._search.resultGraphicEnabled=!1;let t;this._search.viewModel.addHandles(this._search.on("search-complete",i=>{this._updatedMapView?.goTo(i.results[0].results[0].extent),this._selectedLayer?.geometryType==="point"&&(t=i.results[0].results[0]?.feature.geometry)}));let s=this.reactiveUtils?.watch(()=>this._search?.viewModel.state,i=>{i==="ready"&&setTimeout(()=>{this._editor?.viewModel.sketchViewModel?.createGraphic&&t&&(this._editor.viewModel.sketchViewModel.createGraphic.set("geometry",t),this._editor.viewModel.sketchViewModel.complete(),this.hideEditorsElements())},100)});s&&this._search.viewModel.addHandles(s)}}_getSearchConfig(e,t){let s="includeDefaultSources",i=e.sources;return i&&i?.length>0?(e[s]=!1,i.forEach(o=>{if(o.hasOwnProperty("layer")){let a=o,r=a.layer?.id,n=r?t.map?.findLayerById(r):"",l=a?.layer?.url;n?a.layer=n:l&&this.FeatureLayer&&(a.layer=new this.FeatureLayer(l))}}),i?.forEach(o=>{if(o.hasOwnProperty("locator")){let a=o;if(a?.name==="ArcGIS World Geocoding Service"){let r=a.outFields||["Addr_type","Match_addr","StAddr","City"];a.outFields=r,a.singleLineFieldName="SingleLine"}a.url=a.url,delete a.url}})):e={...e,includeDefaultSources:!0},e}async _setFloorLevel(e){if(!e)return;let t=this._selectedLayer,s=t?.floorInfo?.floorField;if(s){let i=t.fields.find(o=>o.name===s);if(i&&!t?.formTemplate)this._editor?.viewModel.featureFormViewModel&&(this._editor.viewModel.featureFormViewModel.setValue(i.name,e),i.editable=!1);else if(t.formTemplate&&this.formElements&&this.ExpressionInfo&&this.FieldElement){let o=new this.ExpressionInfo({expression:`"${e}"`,name:"floor-info-test",title:"Floor Info",returnType:"string"}),a=new this.FieldElement({label:s,editableExpression:"false",fieldName:s,input:{type:"text-box",maxLength:50,minLength:0},valueExpression:o.name});this._updatedMapView?.map.editableLayers.forEach(r=>{let n=this.formElements.orgElements,l=this.formElements.orgExpressionInfos,u=[...n];if(u.push(a),r.type==="feature"&&this.FormTemplate){let _=r,E=new this.FormTemplate({title:_?.formTemplate?.title,description:_?.formTemplate?.description,elements:u,expressionInfos:[o].concat(l)});r.formTemplate=E}})}}}async hideEditorsElements(){this.customizeSubmit&&(await this.timeout(700),this.el.querySelector(".esri-editor")?.querySelectorAll("calcite-flow-item")?.forEach(e=>{let t=e.shadowRoot?.querySelector("calcite-panel")?.shadowRoot?.querySelector("article");t?.querySelector("header")?.setAttribute("style","display: none"),t?.querySelector("footer")?.setAttribute("style","display: none")}))}async submitted(e){if(e.invalid.length){this._isSubmitBtnClicked=!1;return}if(this._isSubmitBtnClicked){this._isSubmitBtnClicked=!1;try{this._editor?.activeWorkflow&&(await this._editor.activeWorkflow.commit(),this._editor.viewModel.failures?.length&&this._editor.viewModel.failures.some(t=>{if(t.error)throw t.error}))}catch(t){this.fail.emit(t);return}this.success.emit()}}async timeout(e){return new Promise(t=>setTimeout(t,e))}};M("create-feature",w);export{w as CreateFeature};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{b as m,c as h}from"./QSI6TV26.js";import"./5BRHUPJQ.js";import"./JJ5LIG3E.js";import"./62C7U5GV.js";import"./5NCAUJ2M.js";import"./SBPJJXZK.js";import"./4UUPLRGU.js";import"./QAV3ZXVX.js";import"./7CC4UOSP.js";import{a as b,b as g}from"./JRNC7PCQ.js";import{b as d}from"./R4M6CYMY.js";import{a as c}from"./6EQSCBDC.js";import{B as p,c as n,d as r,w as o}from"./5KN7Z5XE.js";import"./ZIIYJYM3.js";var u=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),D=n`/** @license
3
+ v1.0.0-next.20250506.1 */
4
+ import{b as m,c as h}from"./VSVG3AWA.js";import"./LA3TMPSQ.js";import"./FAZOBB62.js";import"./EYFKB5UR.js";import"./H3GY7WZY.js";import"./VQQVMG7C.js";import"./ZEFQFCIT.js";import"./DPNSCBBO.js";import"./DMTCZQGB.js";import{a as b,b as g}from"./4FO53H2N.js";import{b as d}from"./7K2EWZ4V.js";import{a as c}from"./VERJI2SH.js";import{B as p,c as n,d as r,w as o}from"./YXGKJSHK.js";import"./V5XUAHEB.js";var u=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),D=n`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a as n}from"./6EQSCBDC.js";import{B as r,c as s,d as t,q as i,w as o}from"./5KN7Z5XE.js";import"./ZIIYJYM3.js";var a=s`@layer{/** @license
3
+ v1.0.0-next.20250506.1 */
4
+ import{a as n}from"./VERJI2SH.js";import{B as r,c as s,d as t,q as i,w as o}from"./YXGKJSHK.js";import"./V5XUAHEB.js";var a=s`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a as _}from"./43UDVNH5.js";import"./GB27Q3KN.js";import{c as g,g as $,j as F}from"./OPC6J6MC.js";import{e as d}from"./WK4XUJYY.js";import{a as E,d as O,f as T}from"./7CC4UOSP.js";import{a as u,b as p}from"./JRNC7PCQ.js";import{b as I}from"./R4M6CYMY.js";import{a as k}from"./6EQSCBDC.js";import{B as G,c as L,d as c,n as S,q as v,w as C,x as y,y as V}from"./5KN7Z5XE.js";import"./ZIIYJYM3.js";var N=L`@layer{/** @license
3
+ v1.0.0-next.20250506.1 */
4
+ import{a as _}from"./UBFXRGUL.js";import"./PFUQXONQ.js";import{c as g,g as $,j as F}from"./HQLVVCY5.js";import{e as d}from"./WCO2JYT7.js";import{a as E,d as O,f as T}from"./DMTCZQGB.js";import{a as u,b as p}from"./4FO53H2N.js";import{b as I}from"./7K2EWZ4V.js";import{a as k}from"./VERJI2SH.js";import{B as G,c as L,d as c,n as S,q as v,w as C,x as y,y as V}from"./YXGKJSHK.js";import"./V5XUAHEB.js";var N=L`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import{a as _}from"./43UDVNH5.js";import"./GB27Q3KN.js";import{c as g,g as $,j a
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */:host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100%!important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem"!important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:.5rem}.padding-end-1-2{padding-inline-end:.5rem}.icon{--calcite-color-icon-color: var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,m=class extends C{constructor(){super(),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.noResultText="",this.selectionLayerIds=[],this.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm="",this._selectionLoading=!1,this._translations=k({name:"map-select-tools",blocking:!0}),this._bufferTools=u(),this._drawTools=u(),this._labelName=u(),this._selectLayers=[],this._searchElement=u(),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.selectionSetChange=S(),this.listenOn(window,"searchConfigurationChange",this.searchConfigurationChangeChanged),this.listenOn(window,"distanceChanged",this.distanceChanged),this.listenOn(window,"unitChanged",this.unitChanged)}static{this.properties={bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,enabledLayerIds:0,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,defaultBufferDistance:9,defaultBufferUnit:1,geometries:0,isUpdate:5,layerViews:0,mapView:0,noResultText:1,searchConfiguration:0,selectionSet:0,selectionLayerIds:0,selectLayerView:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,searchDistanceEnabled:5,useLayerFeaturesEnabled:5,_numSelected:16,_searchTerm:16,_selectionLoading:16,_translations:16}}static{this.styles=N}static{this.shadowRootOptions=v}willUpdate(e){e.has("geometries")&&(this.hasUpdated||this.geometries?.length>0)&&this.watchGeometriesHandler(this.geometries,e.get("geometries")),e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView,e.get("mapView")),e.has("searchConfiguration")&&this.searchConfiguration&&this.watchSearchConfigurationHandler(this.searchConfiguration,e.get("searchConfiguration"))}async watchGeometriesHandler(e,t){if(e!==t&&e.length>0)return this._highlightWithOIDsOrGeoms()}async mapViewWatchHandler(e,t){e&&e!==t&&await this._init()}async watchSearchConfigurationHandler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate&&this.selectionSet?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.value?.distance,download:!0,unit:this._bufferTools.value?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(e){this.searchConfiguration=e.detail}async distanceChanged(e){await this._distanceChanged(e.detail)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&(this._unit=e.detail.newValue,await this._updateLabel())}async load(){await this._initModules()}async loaded(){await this._init()}render(){let e=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return c`${this._getMapLayerPicker()}<div class="border-bottom"></div><div class="padding-top-sides-1"><div class="search-widget" ${p(this._searchElement)}></div><div class=${y(t)}><map-draw-tools active class=${y(e)} .editGraphicsEnabled=${!this.useLayerFeaturesEnabled} .graphics=${this._graphics} .mapView=${this.mapView} @sketchGraphicsChange=${s=>void this._sketchGraphicsChanged(s)} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} ${p(this._drawTools)}></map-draw-tools></div>${this.enableSearchDistance?this._getBufferOptions():void 0}${this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0}${this._getNumSelected()}</div><div class="border-bottom"></div>${this._getNameInput()}`}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);let e=this.searchDistanceEnabled?"search-distance":"div-not-visible",t=typeof this.selectionSet?.distance=="number"?this.selectionSet.distance:this.defaultBufferDistance;return c`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.searchDistance}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=search-distance-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=search-distance-icon><span class="tooltip-message">${this._translations.useSearchDistanceTootip}</span></calcite-popover><calcite-switch .checked=${this.searchDistanceEnabled} @calciteSwitchChange=${()=>this.searchDistanceEnabled=!this.searchDistanceEnabled}></calcite-switch></div><div class=${y(e)}><buffer-tools .disabled=${!this.searchDistanceEnabled} .distance=${t} .geometries=${this.geometries} @bufferComplete=${s=>void this._bufferComplete(s)} .unit=${this.selectionSet?.unit||this.defaultBufferUnit} ${p(this._bufferTools)}></buffer-tools></div></div>`}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);let e=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return c`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.useLayerFeatures}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=use-layer-features-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=use-layer-features-icon><span class="tooltip-message">${this._translations.useLayerFeaturesTooltip}</span></calcite-popover><calcite-switch .checked=${this.useLayerFeaturesEnabled} @calciteSwitchChange=${()=>{this._useLayerFeaturesEnabledChanged()}}></calcite-switch></div><div class=${`${e} padding-top-1`}><map-layer-picker .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this.layerViews.map(t=>t.layer.id)}></map-layer-picker></div></div>`}_getNumSelected(){let e=this._translations._lang==="en"?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return c`<div class="padding-top-1 padding-bottom-1" style=${V({"align-items":"end",display:"flex"})}>${this._selectionLoading?c`<div><calcite-loader class="info-blue padding-end-1-2" inline .label=${e||""} scale=m type=indeterminate></calcite-loader></div>`:c`<calcite-icon class="info-blue padding-end-1-2" icon=feature-layer scale=s></calcite-icon>`}<calcite-input-message class="info-blue" scale=m>${this._selectionLoading?e:this.noResultText&&this._numSelected===0?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())}</calcite-input-message></div>`}_getNameInput(){let e=this.customLabelEnabled?"":"display-none";return c`<div class=${`padding-sides-1 padding-top-1 ${e}`}><calcite-label class="font-bold">${this._translations.listName}<calcite-input @input=${()=>{this._selectionLabel=this._labelName.value?this._labelName.value.value:""}} .placeholder=${this._translations.listNamePlaceholder} .value=${this._selectionLabel||""} ${p(this._labelName)}></calcite-input></calcite-label></div>`}_getMapLayerPicker(){let e=this.selectionSet?.layerView?.layer.id;return c`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-label class="font-bold width-full label-margin-0">${this._translations.inputLayer}<map-layer-picker .enabledLayerIds=${this.enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>void this._inputLayerSelectionChange(t)} .selectedIds=${this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet&&e!==void 0?[e]:[]}></map-layer-picker></calcite-label></div>`}async _initModules(){let[e,t,s,i,a,l]=await I(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=e,this.GraphicsLayer=t,this.Graphic=s,this.Search=i,this._geometryEngine=a,this.FeatureLayer=l}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs||[],this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.reduce((e,t)=>{let s=t.type==="point"?this.sketchPointSymbol:t.type==="polyline"?this.sketchLineSymbol:this.sketchPolygonSymbol;return this.Graphic&&e.push(new this.Graphic({geometry:t,symbol:s})),e},[]),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await this._drawTools.value?.updateGraphics(),this.selectionSet.layerView&&this.mapView&&await F(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement.value){let e=this.searchConfiguration&&this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement.value,searchTerm:this._searchTerm,...e};this._searchWidget?(this._searchWidget.view=this.mapView,this._searchWidget.searchTerm=this._searchTerm):this._searchWidget=this.Search&&new this.Search(t),this._searchWidget&&(this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.viewModel.addHandles(this._searchWidget.on("search-clear",()=>{let s=this._searchClearLabel();this._searchResult?.name&&this._clearResults(!1,s)})),this._searchWidget.viewModel.addHandles(this._searchWidget.on("select-result",s=>{this._selectResult(s.result)})),await this._searchWidget.when(()=>{this._searchWidget&&(this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&this.searchConfiguration.allPlaceholder.toLowerCase()!=="find address or place"?this.searchConfiguration.allPlaceholder:this._translations.placeholder)}))}}async _selectResult(e){if(e){this._searchResult=e;let t=e.feature,s=t?.layer,i=this.selectLayerView?.layer,a=Number(t?.getObjectId()),l;s?.sourceJSON?.isView&&s.url&&(l=await this._getViewSourceUrl(s.url));let r;i?.sourceJSON?.isView&&i.url&&(r=await this._getViewSourceUrl(i.url));let o=s?.url?.toLowerCase(),n=l?.toLowerCase(),h=i?.url?.toLowerCase(),b=r?.toLowerCase(),f=o&&h&&(o===h||o===b||n===h||n===b)&&!Number.isNaN(a),D=f?[a]:void 0;this._workflowType=d.SEARCH,this._updateLabel();let w=[e.feature];this._updateSelection(w,f,D),this._drawTools.value&&(this._drawTools.value.graphics=w),this._searchWidget?.resultGraphic&&(this._searchWidget.resultGraphic.visible=!1)}else{let t=this._searchClearLabel();this._clearResults(!1,t)}}async _getViewSourceUrl(e){let t="",s=`${e}/sources?f=json`;try{let i=this._esriRequest&&await this._esriRequest(s,{query:{f:"json"}});i?.data?.services?.length===1&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value&&this._labelName.value.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(e,t){let s=e?.sources;return s&&s?.length>0?(e={...e,includeDefaultSources:!1},s.forEach(i=>{if(i.hasOwnProperty("layer")){let a=i,l=a.layer?.id,r=l?t.map.findLayerById(l):null,o=a?.layer?.url;r&&a?a.layer=r:o&&this.FeatureLayer&&(a.layer=new this.FeatureLayer(o))}}),s?.forEach(i=>{if(i.hasOwnProperty("locator")){let a=i;if(a?.name==="ArcGIS World Geocoding Service"){let l=a.outFields||["Addr_type","Match_addr","StAddr","City"];a.outFields=l,a.singleLineFieldName="SingleLine"}a.url=a.url,delete a.url}})):e={...e,includeDefaultSources:!0},e}_initGraphicsLayer(){let e=this._translations.bufferLayer;if(this.mapView){let t=this.mapView.map.layers.findIndex(s=>s.title===e);if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else if(this._bufferGraphicsLayer=this.GraphicsLayer&&new this.GraphicsLayer({title:e,listMode:"hide"}),this._bufferGraphicsLayer){_.managedLayers[e]="buffer";let s=this.mapView.map.layers.findIndex(i=>i.title===this._translations.sketchLayer);s>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,s):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(e,t=!1){let s=e.detail.graphics;if(s.length>0&&s[0])if(t||(this._sketchGraphic=s[0]),this._workflowType=this.useLayerFeaturesEnabled?d.SELECT:d.SKETCH,this._workflowType===d.SKETCH&&this._drawTools.value&&await this._drawTools.value.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){let i=Array.isArray(s)?s.map(a=>a.geometry):this.geometries;await this._selectLayerFeatures(i[0])}else{let i=s.reduce((l,r)=>(r?.layer?.objectIdField?l.push(Number(r.attributes[r.layer.objectIdField])):r.getObjectId&&l.push(Number(r.getObjectId())),l),[]),a=e.detail.useOIDs&&i.length>0;this._updateSelection(s,a,i),a&&await this._highlightFeatures(i)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs&&this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(e){_.removeHandles(),e.length>0&&this.selectLayerView&&this.mapView&&_.highlightHandles.push(await $(e,this.selectLayerView,this.mapView)),this._numSelected=e.length,this.selectionSetChange.emit(e.length)}async _selectFeatures(e){this._selectionLoading=!0,this._selectedIds=this.selectLayerView&&await E(e,this.selectLayerView.layer)||[],this._selectionLoading=!1,this._drawTools.value&&(this._drawTools.value.graphics=this._graphics),await this._highlightFeatures(this._selectedIds)}async _bufferComplete(e){this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail;let t=this._bufferTools.value&&Number(this._bufferTools.value.distance),s=0;if(this._bufferGeometry){let i={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=this.Graphic&&new this.Graphic({geometry:this._bufferGeometry,symbol:i});this._bufferGraphicsLayer&&a&&this.mapView&&(this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(a),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(a.geometry?.extent)),s=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:s})}_geomQuery(e){let t=this._geometryEngine&&T(e,this._geometryEngine);return t?this._selectFeatures(t):Promise.resolve()}async _clearResults(e=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value&&(this._labelName.value.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),e&&this._searchWidget&&this._clearSearchWidget(),_.removeHandles(),this._drawTools.value?.clear&&(this._graphics=[],await this._drawTools.value.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget?.clear(),this._searchResult=void 0}_updateSelection(e,t,s){this._selectedIds=t&&s?s:this._selectedIds,this._skipGeomOIDs=t?s:void 0,this.geometries=Array.isArray(e)?e.reduce((i,a)=>(a.geometry&&i.push(a.geometry),i),[]):this.geometries,this._graphics=e}async _updateLabel(){if(this.enableSearchDistance){let e=this._translations.sketch&&this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._translations.select&&this._selectionLabel.indexOf(this._translations.select)>-1,s=this._selectionLabel.indexOf(this._searchResult?.name)>-1,i=this._workflowType===d.SEARCH?this._searchResult?.name:this._workflowType===d.SELECT?this._translations.select:this._translations.sketch,a=!this._unit&&this._bufferTools.value?this._bufferTools.value.unit:this._unit,l=this._bufferTools.value&&a&&await this._bufferTools.value.getTranslatedUnit(a),r=Number.isNaN(Number(this._distance))&&this._bufferTools.value?this._bufferTools.value.distance:this._distance;this._selectionLabel=e||t||s||!this._selectionLabel?`${i} ${r} ${l}`:this._selectionLabel,this._labelName.value&&(this._labelName.value.value=this._selectionLabel)}}async _layerSelectionChange(e){if(Array.isArray(e.detail)&&e.detail.length>0){let t=e.detail.reduce((s,i)=>(this.mapView&&s.push(g(this.mapView,i)),s),[]);return Promise.all(t).then(s=>{this.layerViews=s.reduce((i,a)=>(a&&i.push(a),i),[]),this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})})}}async _inputLayerSelectionChange(e){let t=e?.detail?.length>0?e.detail[0]:"";(!this.selectLayerView||t!==this.selectLayerView.layer.id)&&(this.selectLayerView=this.mapView&&await g(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(e){e.newValue!==e.oldValue&&(this._distance=e.newValue,await this._updateLabel())}async _selectLayerFeatures(e){this._selectionLoading=!0;let t=this.layerViews.map(s=>(this._featuresCollection[s.layer.id]=[],O(0,s.layer,e,this._featuresCollection)));return Promise.all(t).then(async s=>{this._selectionLoading=!1;let i=[];s.forEach(n=>{Object.keys(n).forEach(h=>{i=i.concat(n[h])})});let a=!1;i.forEach(n=>{let h=n.geometry;n.symbol=h&&h.type==="point"?this.sketchPointSymbol:h&&h.type==="polyline"?this.sketchLineSymbol:h&&h.type==="polygon"?this.sketchPolygonSymbol:void 0,a=n?.layer?.hasOwnProperty("objectIdField")||n.hasOwnProperty("getObjectId")});let l=this.layerViews[0].layer,r=this.selectLayerView?.layer,o=a&&l.url===r?.url&&r?.layerId===l.layerId;await this._sketchGraphicsChanged({detail:{graphics:i,useOIDs:o}},!0)})}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}};G("map-select-tools",m);export{m as MapSelectTools};
18
+ */:host{display:block}.div-visible{display:inherit}.div-visible-search{display:flex;height:44px;align-items:center;padding-bottom:0}.div-not-visible{display:none}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.search-widget{width:100%!important;border:1px solid var(--calcite-color-border-input)}.w-100{width:100%}.w-50{width:50%}.search-distance-container{padding-top:"1rem"!important}.end-border{border-inline-end:1px solid var(--calcite-color-border-2)}.search-distance{display:flex;padding-top:1rem}.font-bold{font:bold}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.tooltip-container{display:flex}.padding-start-1-2{padding-inline-start:.5rem}.padding-end-1-2{padding-inline-end:.5rem}.icon{--calcite-color-icon-color: var(--calcite-color-brand)}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}}`,m=class extends C{constructor(){super(),this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.enabledLayerIds=[],this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.geometries=[],this.isUpdate=!1,this.layerViews=[],this.noResultText="",this.selectionLayerIds=[],this.searchDistanceEnabled=!1,this.useLayerFeaturesEnabled=!1,this._numSelected=0,this._searchTerm="",this._selectionLoading=!1,this._translations=k({name:"map-select-tools",blocking:!0}),this._bufferTools=u(),this._drawTools=u(),this._labelName=u(),this._selectLayers=[],this._searchElement=u(),this._selectedIds=[],this._selectionLabel="",this._graphics=[],this._featuresCollection={},this.selectionSetChange=S(),this.listenOn(window,"searchConfigurationChange",this.searchConfigurationChangeChanged),this.listenOn(window,"distanceChanged",this.distanceChanged),this.listenOn(window,"unitChanged",this.unitChanged)}static{this.properties={bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,enabledLayerIds:0,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,defaultBufferDistance:9,defaultBufferUnit:1,geometries:0,isUpdate:5,layerViews:0,mapView:0,noResultText:1,searchConfiguration:0,selectionSet:0,selectionLayerIds:0,selectLayerView:0,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,searchDistanceEnabled:5,useLayerFeaturesEnabled:5,_numSelected:16,_searchTerm:16,_selectionLoading:16,_translations:16}}static{this.styles=N}static{this.shadowRootOptions=v}willUpdate(e){e.has("geometries")&&(this.hasUpdated||this.geometries?.length>0)&&this.watchGeometriesHandler(this.geometries,e.get("geometries")),e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView,e.get("mapView")),e.has("searchConfiguration")&&this.searchConfiguration&&this.watchSearchConfigurationHandler(this.searchConfiguration,e.get("searchConfiguration"))}async watchGeometriesHandler(e,t){if(e!==t&&e.length>0)return this._highlightWithOIDsOrGeoms()}async mapViewWatchHandler(e,t){e&&e!==t&&await this._init()}async watchSearchConfigurationHandler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&await this._initSearchWidget()}async clearSelection(){return this._clearResults(!0,!0)}async getSelection(){return/\S+/gm.test(this._selectionLabel)||await this._updateLabel(),{id:this.isUpdate&&this.selectionSet?this.selectionSet.id:Date.now(),searchResult:this._searchResult,buffer:this._bufferGeometry,distance:this._bufferTools.value?.distance,download:!0,unit:this._bufferTools.value?.unit,label:this._selectionLabel,selectedIds:this._selectedIds,layerView:this.selectLayerView,geometries:this.geometries,graphics:this._graphics,selectLayers:this.layerViews,skipGeomOIDs:this._skipGeomOIDs,searchDistanceEnabled:this.searchDistanceEnabled,workflowType:this._workflowType,useLayerFeaturesEnabled:this.useLayerFeaturesEnabled,sketchGraphic:this._sketchGraphic}}searchConfigurationChangeChanged(e){this.searchConfiguration=e.detail}async distanceChanged(e){await this._distanceChanged(e.detail)}async unitChanged(e){e.detail.newValue!==e.detail.oldValue&&(this._unit=e.detail.newValue,await this._updateLabel())}async load(){await this._initModules()}async loaded(){await this._init()}render(){let e=this.enableSketchTools?"":"display-none",t=this.enableSketchTools?"padding-top-1":"";return c`${this._getMapLayerPicker()}<div class="border-bottom"></div><div class="padding-top-sides-1"><div class="search-widget" ${p(this._searchElement)}></div><div class=${y(t)}><map-draw-tools active class=${y(e)} .editGraphicsEnabled=${!this.useLayerFeaturesEnabled} .graphics=${this._graphics} .mapView=${this.mapView} @sketchGraphicsChange=${s=>void this._sketchGraphicsChanged(s)} .pointSymbol=${this.sketchPointSymbol} .polygonSymbol=${this.sketchPolygonSymbol} .polylineSymbol=${this.sketchLineSymbol} ${p(this._drawTools)}></map-draw-tools></div>${this.enableSearchDistance?this._getBufferOptions():void 0}${this.enableLayerFeatures?this._getUseLayerFeaturesOptions():void 0}${this._getNumSelected()}</div><div class="border-bottom"></div>${this._getNameInput()}`}_getBufferOptions(){this.enableSearchDistanceOnLoad&&(this.searchDistanceEnabled=!0,this.enableSearchDistanceOnLoad=!1);let e=this.searchDistanceEnabled?"search-distance":"div-not-visible",t=typeof this.selectionSet?.distance=="number"?this.selectionSet.distance:this.defaultBufferDistance;return c`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.searchDistance}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=search-distance-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=search-distance-icon><span class="tooltip-message">${this._translations.useSearchDistanceTootip}</span></calcite-popover><calcite-switch .checked=${this.searchDistanceEnabled} @calciteSwitchChange=${()=>this.searchDistanceEnabled=!this.searchDistanceEnabled}></calcite-switch></div><div class=${y(e)}><buffer-tools .disabled=${!this.searchDistanceEnabled} .distance=${t} .geometries=${this.geometries} @bufferComplete=${s=>void this._bufferComplete(s)} .unit=${this.selectionSet?.unit||this.defaultBufferUnit} ${p(this._bufferTools)}></buffer-tools></div></div>`}_getUseLayerFeaturesOptions(){this.enableLayerFeaturesOnLoad&&(this.useLayerFeaturesEnabled=!0,this.enableLayerFeaturesOnLoad=!1);let e=this.useLayerFeaturesEnabled?"div-visible":"div-not-visible";return c`<div><div class="padding-top-1 display-flex"><calcite-label class="label-margin-0 w-100" layout=inline-space-between><div class="tooltip-container">${this._translations.useLayerFeatures}<calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=use-layer-features-icon scale=s></calcite-icon></div></calcite-label><calcite-popover closable label overlay-positioning=fixed reference-element=use-layer-features-icon><span class="tooltip-message">${this._translations.useLayerFeaturesTooltip}</span></calcite-popover><calcite-switch .checked=${this.useLayerFeaturesEnabled} @calciteSwitchChange=${()=>{this._useLayerFeaturesEnabledChanged()}}></calcite-switch></div><div class=${`${e} padding-top-1`}><map-layer-picker .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>{this._layerSelectionChange(t)}} .selectedIds=${this.layerViews.map(t=>t.layer.id)}></map-layer-picker></div></div>`}_getNumSelected(){let e=this._translations._lang==="en"?`${this._translations.selectionLoading}...`:this._translations.selectionLoading;return c`<div class="padding-top-1 padding-bottom-1" style=${V({"align-items":"end",display:"flex"})}>${this._selectionLoading?c`<div><calcite-loader class="info-blue padding-end-1-2" inline .label=${e||""} scale=m type=indeterminate></calcite-loader></div>`:c`<calcite-icon class="info-blue padding-end-1-2" icon=feature-layer scale=s></calcite-icon>`}<calcite-input-message class="info-blue" scale=m>${this._selectionLoading?e:this.noResultText&&this._numSelected===0?this.noResultText:this._translations.selectedFeatures.replace("{{n}}",this._numSelected.toString())}</calcite-input-message></div>`}_getNameInput(){let e=this.customLabelEnabled?"":"display-none";return c`<div class=${`padding-sides-1 padding-top-1 ${e}`}><calcite-label class="font-bold">${this._translations.listName}<calcite-input @input=${()=>{this._selectionLabel=this._labelName.value?this._labelName.value.value:""}} .placeholder=${this._translations.listNamePlaceholder} .value=${this._selectionLabel||""} ${p(this._labelName)}></calcite-input></calcite-label></div>`}_getMapLayerPicker(){let e=this.selectionSet?.layerView?.layer.id;return c`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-label class="font-bold width-full label-margin-0">${this._translations.inputLayer}<map-layer-picker .enabledLayerIds=${this.enabledLayerIds} .mapView=${this.mapView} @layerSelectionChange=${t=>void this._inputLayerSelectionChange(t)} .selectedIds=${this.selectLayerView?[this.selectLayerView.layer.id]:this.selectionSet&&e!==void 0?[e]:[]}></map-layer-picker></calcite-label></div>`}async _initModules(){let[e,t,s,i,a,l]=await I(["esri/request","esri/layers/GraphicsLayer","esri/Graphic","esri/widgets/Search","esri/geometry/geometryEngine","esri/layers/FeatureLayer"]);this._esriRequest=e,this.GraphicsLayer=t,this.Graphic=s,this.Search=i,this._geometryEngine=a,this.FeatureLayer=l}async _init(){this._initGraphicsLayer(),await this._initSelectionSet(),await this._initSearchWidget()}async _initSelectionSet(){this.selectionSet&&(this._searchTerm=this.selectionSet.searchResult?.name,this._searchResult=this.selectionSet.searchResult,this._selectLayers=this.selectionSet.selectLayers,this._selectedIds=this.selectionSet.selectedIds,this._skipGeomOIDs=this.selectionSet.skipGeomOIDs||[],this.searchDistanceEnabled=this.selectionSet.searchDistanceEnabled,this.useLayerFeaturesEnabled=this.selectionSet.useLayerFeaturesEnabled,this._distance=this.selectionSet.searchDistanceEnabled?this.selectionSet.distance:0,this._unit=this.selectionSet.unit,this._workflowType=this.selectionSet.workflowType,this.selectLayerView=this.selectionSet.layerView,this._sketchGraphic=this.selectionSet.sketchGraphic,this.geometries=[...this.selectionSet?.geometries||[]],this._graphics=this.geometries.reduce((e,t)=>{let s=t.type==="point"?this.sketchPointSymbol:t.type==="polyline"?this.sketchLineSymbol:this.sketchPolygonSymbol;return this.Graphic&&e.push(new this.Graphic({geometry:t,symbol:s})),e},[]),this._selectionLabel=this.selectionSet?.label,this.useLayerFeaturesEnabled||await this._drawTools.value?.updateGraphics(),this.selectionSet.layerView&&this.mapView&&await F(this.selectionSet.selectedIds,this.selectionSet.layerView,this.mapView,!1))}async _initSearchWidget(){if(this.mapView&&this._searchElement.value){let e=this.searchConfiguration&&this._getSearchConfig(this.searchConfiguration,this.mapView),t={view:this.mapView,container:this._searchElement.value,searchTerm:this._searchTerm,...e};this._searchWidget?(this._searchWidget.view=this.mapView,this._searchWidget.searchTerm=this._searchTerm):this._searchWidget=this.Search&&new this.Search(t),this._searchWidget&&(this._searchWidget.popupEnabled=!1,this._searchWidget.resultGraphicEnabled=!1,this._searchWidget.viewModel.addHandles(this._searchWidget.on("search-clear",()=>{let s=this._searchClearLabel();this._searchResult?.name&&this._clearResults(!1,s)})),this._searchWidget.viewModel.addHandles(this._searchWidget.on("select-result",s=>{this._selectResult(s.result)})),await this._searchWidget.when(()=>{this._searchWidget&&(this._searchWidget.allPlaceholder=this.searchConfiguration?.allPlaceholder&&this.searchConfiguration.allPlaceholder.toLowerCase()!=="find address or place"?this.searchConfiguration.allPlaceholder:this._translations.placeholder)}))}}async _selectResult(e){if(e){this._searchResult=e;let t=e.feature,s=t?.layer,i=this.selectLayerView?.layer,a=Number(t?.getObjectId()),l;s?.sourceJSON?.isView&&s.url&&(l=await this._getViewSourceUrl(s.url));let r;i?.sourceJSON?.isView&&i.url&&(r=await this._getViewSourceUrl(i.url));let o=s?.url?.toLowerCase(),n=l?.toLowerCase(),h=i?.url?.toLowerCase(),b=r?.toLowerCase(),f=o&&h&&(o===h||o===b||n===h||n===b)&&!Number.isNaN(a),D=f?[a]:void 0;this._workflowType=d.SEARCH,this._updateLabel();let w=[e.feature];this._updateSelection(w,f,D),this._drawTools.value&&(this._drawTools.value.graphics=w),this._searchWidget?.resultGraphic&&(this._searchWidget.resultGraphic.visible=!1)}else{let t=this._searchClearLabel();this._clearResults(!1,t)}}async _getViewSourceUrl(e){let t="",s=`${e}/sources?f=json`;try{let i=this._esriRequest&&await this._esriRequest(s,{query:{f:"json"}});i?.data?.services?.length===1&&(t=i.data.services[0].url)}catch(i){console.log(i)}return t}_searchClearLabel(){return this._searchResult?.name&&this._labelName.value&&this._labelName.value.value.indexOf(this._searchResult.name)>-1}_getSearchConfig(e,t){let s=e?.sources;return s&&s?.length>0?(e={...e,includeDefaultSources:!1},s.forEach(i=>{if(i.hasOwnProperty("layer")){let a=i,l=a.layer?.id,r=l?t.map?.findLayerById(l):null,o=a?.layer?.url;r&&a?a.layer=r:o&&this.FeatureLayer&&(a.layer=new this.FeatureLayer(o))}}),s?.forEach(i=>{if(i.hasOwnProperty("locator")){let a=i;if(a?.name==="ArcGIS World Geocoding Service"){let l=a.outFields||["Addr_type","Match_addr","StAddr","City"];a.outFields=l,a.singleLineFieldName="SingleLine"}a.url=a.url,delete a.url}})):e={...e,includeDefaultSources:!0},e}_initGraphicsLayer(){let e=this._translations.bufferLayer;if(this.mapView){let t=this.mapView.map.layers.findIndex(s=>s.title===e);if(t>-1)this._bufferGraphicsLayer=this.mapView.map.layers.getItemAt(t);else if(this._bufferGraphicsLayer=this.GraphicsLayer&&new this.GraphicsLayer({title:e,listMode:"hide"}),this._bufferGraphicsLayer){_.managedLayers[e]="buffer";let s=this.mapView.map.layers.findIndex(i=>i.title===this._translations.sketchLayer);s>-1?this.mapView.map.layers.add(this._bufferGraphicsLayer,s):this.mapView.map.layers.add(this._bufferGraphicsLayer)}}}async _sketchGraphicsChanged(e,t=!1){let s=e.detail.graphics;if(s.length>0&&s[0])if(t||(this._sketchGraphic=s[0]),this._workflowType=this.useLayerFeaturesEnabled?d.SELECT:d.SKETCH,this._workflowType===d.SKETCH&&this._drawTools.value&&await this._drawTools.value.updateGraphics(),await this._updateLabel(),this._clearSearchWidget(),this.useLayerFeaturesEnabled&&!t){let i=Array.isArray(s)?s.map(a=>a.geometry):this.geometries;await this._selectLayerFeatures(i[0])}else{let i=s.reduce((l,r)=>(r?.layer?.objectIdField?l.push(Number(r.attributes[r.layer.objectIdField])):r.getObjectId&&l.push(Number(r.getObjectId())),l),[]),a=e.detail.useOIDs&&i.length>0;this._updateSelection(s,a,i),a&&await this._highlightFeatures(i)}else await this._clearResults(!0,!0)}async _highlightWithOIDsOrGeoms(){return this._skipGeomOIDs&&this._skipGeomOIDs?.length>0?(this._selectedIds=this._skipGeomOIDs,this._highlightFeatures(this._selectedIds)):this._geomQuery(this.geometries)}async _highlightFeatures(e){_.removeHandles(),e.length>0&&this.selectLayerView&&this.mapView&&_.highlightHandles.push(await $(e,this.selectLayerView,this.mapView)),this._numSelected=e.length,this.selectionSetChange.emit(e.length)}async _selectFeatures(e){this._selectionLoading=!0,this._selectedIds=this.selectLayerView&&await E(e,this.selectLayerView.layer)||[],this._selectionLoading=!1,this._drawTools.value&&(this._drawTools.value.graphics=this._graphics),await this._highlightFeatures(this._selectedIds)}async _bufferComplete(e){this._bufferGeometry=Array.isArray(e.detail)?e.detail[0]:e.detail;let t=this._bufferTools.value&&Number(this._bufferTools.value.distance),s=0;if(this._bufferGeometry){let i={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=this.Graphic&&new this.Graphic({geometry:this._bufferGeometry,symbol:i});this._bufferGraphicsLayer&&a&&this.mapView&&(this._bufferGraphicsLayer.removeAll(),this._bufferGraphicsLayer.add(a),await this._selectFeatures([this._bufferGeometry]),await this.mapView.goTo(a.geometry?.extent)),s=t,t=0}else this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),await this._highlightWithOIDsOrGeoms();await this._distanceChanged({oldValue:t,newValue:s})}_geomQuery(e){let t=this._geometryEngine&&T(e,this._geometryEngine);return t?this._selectFeatures(t):Promise.resolve()}async _clearResults(e=!0,t=!1){this._selectedIds=[],this._distance=void 0,this._unit=void 0,t&&(this._selectionLabel="",this._labelName.value&&(this._labelName.value.value="")),this._bufferGraphicsLayer&&this._bufferGraphicsLayer.removeAll(),e&&this._searchWidget&&this._clearSearchWidget(),_.removeHandles(),this._drawTools.value?.clear&&(this._graphics=[],await this._drawTools.value.clear()),this._numSelected=this._selectedIds.length,this.selectionSetChange.emit(this._numSelected)}_clearSearchWidget(){this._searchWidget?.clear(),this._searchResult=void 0}_updateSelection(e,t,s){this._selectedIds=t&&s?s:this._selectedIds,this._skipGeomOIDs=t?s:void 0,this.geometries=Array.isArray(e)?e.reduce((i,a)=>(a.geometry&&i.push(a.geometry),i),[]):this.geometries,this._graphics=e}async _updateLabel(){if(this.enableSearchDistance){let e=this._translations.sketch&&this._selectionLabel.indexOf(this._translations.sketch)>-1,t=this._translations.select&&this._selectionLabel.indexOf(this._translations.select)>-1,s=this._selectionLabel.indexOf(this._searchResult?.name)>-1,i=this._workflowType===d.SEARCH?this._searchResult?.name:this._workflowType===d.SELECT?this._translations.select:this._translations.sketch,a=!this._unit&&this._bufferTools.value?this._bufferTools.value.unit:this._unit,l=this._bufferTools.value&&a&&await this._bufferTools.value.getTranslatedUnit(a),r=Number.isNaN(Number(this._distance))&&this._bufferTools.value?this._bufferTools.value.distance:this._distance;this._selectionLabel=e||t||s||!this._selectionLabel?`${i} ${r} ${l}`:this._selectionLabel,this._labelName.value&&(this._labelName.value.value=this._selectionLabel)}}async _layerSelectionChange(e){if(Array.isArray(e.detail)&&e.detail.length>0){let t=e.detail.reduce((s,i)=>(this.mapView&&s.push(g(this.mapView,i)),s),[]);return Promise.all(t).then(s=>{this.layerViews=s.reduce((i,a)=>(a&&i.push(a),i),[]),this._featuresCollection={},this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})})}}async _inputLayerSelectionChange(e){let t=e?.detail?.length>0?e.detail[0]:"";(!this.selectLayerView||t!==this.selectLayerView.layer.id)&&(this.selectLayerView=this.mapView&&await g(this.mapView,t),await this._updateLabel(),this._bufferGeometry?await this._selectFeatures([this._bufferGeometry]):await this._highlightWithOIDsOrGeoms())}async _distanceChanged(e){e.newValue!==e.oldValue&&(this._distance=e.newValue,await this._updateLabel())}async _selectLayerFeatures(e){this._selectionLoading=!0;let t=this.layerViews.map(s=>(this._featuresCollection[s.layer.id]=[],O(0,s.layer,e,this._featuresCollection)));return Promise.all(t).then(async s=>{this._selectionLoading=!1;let i=[];s.forEach(n=>{Object.keys(n).forEach(h=>{i=i.concat(n[h])})});let a=!1;i.forEach(n=>{let h=n.geometry;n.symbol=h&&h.type==="point"?this.sketchPointSymbol:h&&h.type==="polyline"?this.sketchLineSymbol:h&&h.type==="polygon"?this.sketchPolygonSymbol:void 0,a=n?.layer?.hasOwnProperty("objectIdField")||n.hasOwnProperty("getObjectId")});let l=this.layerViews[0].layer,r=this.selectLayerView?.layer,o=a&&l.url===r?.url&&r?.layerId===l.layerId;await this._sketchGraphicsChanged({detail:{graphics:i,useOIDs:o}},!0)})}_useLayerFeaturesEnabledChanged(){this.useLayerFeaturesEnabled=!this.useLayerFeaturesEnabled,this._sketchGraphic&&this._sketchGraphicsChanged({detail:{graphics:[this._sketchGraphic],useOIDs:!1}})}};G("map-select-tools",m);export{m as MapSelectTools};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a as d}from"./2627OC35.js";import{a as s}from"./PFPXYDRH.js";import"./LGYRQXSU.js";import{a as c}from"./YBHXQHED.js";import{a as m}from"./CRQPKJYN.js";import"./EQRWAUHH.js";import"./SALTFRJ5.js";import"./62C7U5GV.js";import"./TN4SBIJW.js";import{a as n,b as p}from"./3FL6VQP4.js";import"./Q46U6YLX.js";import"./D2T5W4MH.js";import{a as r,b as i}from"./4BUCDYBI.js";import"./5NCAUJ2M.js";import"./SBPJJXZK.js";import"./YFDRQUEW.js";import"./4UUPLRGU.js";import"./XA4WRYB3.js";import"./WXBPYKCV.js";import"./LQYOJKKM.js";import"./TXARZDSW.js";import"./CPHOXIAS.js";import"./LAEMDHMW.js";import"./QNEZFCY7.js";import"./WVFYDL3N.js";import"./LQVQ5SYL.js";import"./URSDOYPK.js";import"./7PXLNWUW.js";import"./K5U2KIKJ.js";import"./OSJ4PK7V.js";import"./DNQVWK3Q.js";import"./2XJGOOBG.js";import"./54TTZEMV.js";import"./CVYUV5YV.js";import"./M6OKQSGJ.js";import"./X7OXK5DE.js";import"./3GN3HS2Z.js";import"./UBKKMKS7.js";import"./E575ADYG.js";import"./WYNYF36Y.js";import"./ZIIYJYM3.js";function a(e){return["myContent","favorites","organization","world"].map(o=>s("shared.fields.featuredContent",o,"item",{user:e}))}var R=async(e,l,t)=>{var o;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea",helperText:{labelKey:`${e}.fields.description.helperText`}}},{labelKey:`${e}.fields.featuredImage.label`,scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:d((o=l.view)===null||o===void 0?void 0:o.featuredImageUrl,t.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,helperText:{labelKey:`${e}.fields.featuredImage.helperText`},sizeDescription:{labelKey:`${e}.fields.featuredImage.sizeDescription`}}},{labelKey:`${e}.fields.featuredImage.altText.label`,scope:"/properties/view/properties/featuredImageAltText",type:"Control",options:{helperText:{labelKey:`${e}.fields.featuredImage.altText.helperText`}}}]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await n(l.location,t.hubRequestOptions),options:await p(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.searchDiscoverability.label`,elements:[c(e),{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label",helperText:{labelKey:`${e}.fields.tags.helperText`}}},...await r(e,t),...m(e,l.thumbnail,l.thumbnailUrl,"project",t.requestOptions)]},{type:"Section",labelKey:`${e}.sections.status.label`,elements:[{scope:"/properties/status",type:"Control",labelKey:`${e}.fields.status.label`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}}]},{type:"Section",labelKey:`${e}.sections.timeline.label`,elements:[{scope:"/properties/view/properties/timeline",type:"Control",options:{control:"arcgis-hub-timeline-editor",showTitleAndDescription:!1}}]},{type:"Section",labelKey:`${e}.sections.featuredContent.label`,options:{helperText:{labelKey:`${e}.sections.featuredContent.helperText`}},elements:[{scope:"/properties/view/properties/featuredContentIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:a(t.currentUser),facets:[{label:`{{${e}.fields.featuredContent.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.featuredContent.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0,showAddContent:!0}}]},{type:"Section",labelKey:`${e}.sections.callToAction.label`,options:{helperText:{labelKey:`${e}.sections.callToAction.helperText`}},elements:[{scope:"/properties/view/properties/heroActions",type:"Control",options:{control:"hub-composite-input-action-links",type:"button",catalogs:a(t.currentUser),facets:[{label:`{{${e}.fields.callToAction.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.callToAction.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0}}]},{type:"Section",labelKey:`${e}.sections.embeds.label`,options:{headerTag:"h2",helperText:{labelKey:`${e}.sections.embeds.helperText`}},elements:[{scope:"/properties/view/properties/embeds",type:"Control",options:{control:"hub-composite-input-embeds"}}]}]}};export{R as buildUiSchema};
3
+ v1.0.0-next.20250506.1 */
4
+ import{a as d}from"./JF22WXGR.js";import{a as s}from"./ZZRTACNG.js";import"./FXQSFX4Q.js";import{a as c}from"./WWH37ZAK.js";import{a as m}from"./HHY7QSTW.js";import"./YIDDZHZJ.js";import"./EELLYXNN.js";import"./EYFKB5UR.js";import"./GQO2KP3I.js";import{a as n,b as p}from"./4S2LGGIS.js";import"./ISRQ3BAT.js";import"./6MOBEALK.js";import{a as r,b as i}from"./4QTVQTWW.js";import"./H3GY7WZY.js";import"./VQQVMG7C.js";import"./Z2FRREMF.js";import"./ZEFQFCIT.js";import"./AIWA7X7G.js";import"./DC3N7IST.js";import"./HSIGQHGC.js";import"./E4P22JZK.js";import"./CAGLPIPF.js";import"./EJZKFB4Z.js";import"./OATNKA2V.js";import"./HK7ORFOY.js";import"./HP45S4UO.js";import"./VZG427AU.js";import"./K6YZHC7R.js";import"./JALWXGJR.js";import"./ROIVGYSM.js";import"./DXQ3LDCB.js";import"./NEVOR7UF.js";import"./WY7PHM6L.js";import"./4NGMIXLU.js";import"./CPBVNIA2.js";import"./KTYRFLWJ.js";import"./Y7WVUKZX.js";import"./EIQNRR4P.js";import"./SXRISHGN.js";import"./RUTSW7HN.js";import"./V5XUAHEB.js";function a(e){return["myContent","favorites","organization","world"].map(o=>s("shared.fields.featuredContent",o,"item",{user:e}))}var R=async(e,l,t)=>{var o;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea",helperText:{labelKey:`${e}.fields.description.helperText`}}},{labelKey:`${e}.fields.featuredImage.label`,scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:d((o=l.view)===null||o===void 0?void 0:o.featuredImageUrl,t.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,helperText:{labelKey:`${e}.fields.featuredImage.helperText`},sizeDescription:{labelKey:`${e}.fields.featuredImage.sizeDescription`}}},{labelKey:`${e}.fields.featuredImage.altText.label`,scope:"/properties/view/properties/featuredImageAltText",type:"Control",options:{helperText:{labelKey:`${e}.fields.featuredImage.altText.helperText`}}}]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await n(l.location,t.hubRequestOptions),options:await p(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.searchDiscoverability.label`,elements:[c(e),{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label",helperText:{labelKey:`${e}.fields.tags.helperText`}}},...await r(e,t),...m(e,l.thumbnail,l.thumbnailUrl,"project",t.requestOptions)]},{type:"Section",labelKey:`${e}.sections.status.label`,elements:[{scope:"/properties/status",type:"Control",labelKey:`${e}.fields.status.label`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}}]},{type:"Section",labelKey:`${e}.sections.timeline.label`,elements:[{scope:"/properties/view/properties/timeline",type:"Control",options:{control:"arcgis-hub-timeline-editor",showTitleAndDescription:!1}}]},{type:"Section",labelKey:`${e}.sections.featuredContent.label`,options:{helperText:{labelKey:`${e}.sections.featuredContent.helperText`}},elements:[{scope:"/properties/view/properties/featuredContentIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:a(t.currentUser),facets:[{label:`{{${e}.fields.featuredContent.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.featuredContent.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0,showAddContent:!0}}]},{type:"Section",labelKey:`${e}.sections.callToAction.label`,options:{helperText:{labelKey:`${e}.sections.callToAction.helperText`}},elements:[{scope:"/properties/view/properties/heroActions",type:"Control",options:{control:"hub-composite-input-action-links",type:"button",catalogs:a(t.currentUser),facets:[{label:`{{${e}.fields.callToAction.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.callToAction.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0}}]},{type:"Section",labelKey:`${e}.sections.embeds.label`,options:{headerTag:"h2",helperText:{labelKey:`${e}.sections.embeds.helperText`}},elements:[{scope:"/properties/view/properties/embeds",type:"Control",options:{control:"hub-composite-input-embeds"}}]}]}};export{R as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a as G}from"./ZLSEU37X.js";import{b as j,f as P,m as K,n as U,o as L}from"./UWLZA6RY.js";import"./JJ5LIG3E.js";import"./7NQT5MYQ.js";import"./JYHXLAK7.js";import"./EQRWAUHH.js";import"./SALTFRJ5.js";import{a as _}from"./62C7U5GV.js";import"./TN4SBIJW.js";import"./Q46U6YLX.js";import"./D2T5W4MH.js";import{j as S}from"./5NCAUJ2M.js";import"./SBPJJXZK.js";import"./YFDRQUEW.js";import"./4UUPLRGU.js";import{b}from"./OSJ4PK7V.js";import{a as c,b as p}from"./2XJGOOBG.js";import"./ZIIYJYM3.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:u}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:u,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(M||(M={}));var H;(function(e){e.csv="csv",e.json="json"})(H||(H={}));var B;(function(e){e.asc="asc",e.desc="desc"})(B||(B={}));var V;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var d;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(d||(d={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:d.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,r){var a,n,o,i,u,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===d.CANCELED,s.isPlanned=t.status===d.PLANNED,s.isRemoved=t.status===d.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(u=t.onlineMeeting)===null||u===void 0?void 0:u.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=_(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=d.REMOVED:a.isCanceled?n.status=d.CANCELED:n.status=d.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(u=>`id:${u}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:u,type:m})=>({entityId:u,entityType:m}));a.push(...i)}return a}async function at(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),u=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:u,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function st(e,t){await te(Object.assign({eventId:e},t))}function rt(e,t){return ie(Object.assign({data:e},t))}async function ot(e,t){await se(Object.assign({registrationId:e},t))}export{at as createHubEvent,rt as createHubEventRegistration,st as deleteHubEvent,ot as deleteHubEventRegistration,it as updateHubEvent};
3
+ v1.0.0-next.20250506.1 */
4
+ import{a as G}from"./JOKITFSD.js";import{b as j,f as P,m as K,n as U,o as L}from"./2VGSUSSJ.js";import"./FAZOBB62.js";import"./DCZKZQPQ.js";import"./5IPD66RZ.js";import"./YIDDZHZJ.js";import"./EELLYXNN.js";import{a as _}from"./EYFKB5UR.js";import"./GQO2KP3I.js";import"./ISRQ3BAT.js";import"./6MOBEALK.js";import{j as S}from"./H3GY7WZY.js";import"./VQQVMG7C.js";import"./Z2FRREMF.js";import"./ZEFQFCIT.js";import{b}from"./ROIVGYSM.js";import{a as c,b as p}from"./NEVOR7UF.js";import"./V5XUAHEB.js";function x(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,r)=>[...t,{entityKey:r,storeKey:r}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function g(e){let{token:t,authentication:r}=e;return r?r.getToken(r.portal):Promise.resolve(t)}async function v(e,t){let{url:r,method:a,data:n}=e,{mode:o,cache:i,credentials:u}=t,{headers:m,params:E}=le(e,t),s=`${ce(t.hubApiUrl)}${r}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:u,mode:o};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:A,status:re}=y;if(y.ok)return y.json();let oe=await y.json();throw new I(A,s,re,JSON.stringify(oe.message))}function ce(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function le(e,t){let r=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&r.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:r,params:a}}var I=class extends Error{constructor(t,r,a,n){super(t),this.status=a,this.url=r,this.error=n}};var k;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(k||(k={}));var M;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(M||(M={}));var H;(function(e){e.csv="csv",e.json="json"})(H||(H={}));var B;(function(e){e.asc="asc",e.desc="desc"})(B||(B={}));var V;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(V||(V={}));var $;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})($||($={}));var Z;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(Z||(Z={}));var d;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(d||(d={}));var F;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(F||(F={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var q;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(q||(q={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var W=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var J=(e,t,r)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},r),z=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),Q=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var X=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function Y(e){return e.token=await g(e),W(e.data,e)}async function ee(e){return e.token=await g(e),J(e.eventId,e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function R(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function ne(e){var t;let r=P("event",C(e));return{self:r,siteRelative:r,siteRelativeEntityType:P("event"),workspaceRelative:G("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:R()}}function ae(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function ie(e){return e.token=await g(e),Q(e.data,e)}async function se(e){return e.token=await g(e),X(e.registrationId,e)}function N(){let e=b();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function O(){let{startDateTime:e,endDateTime:t}=b();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:d.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,r){var a,n,o,i,u,m,E,D;let s=L(t,r,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===d.CANCELED,s.isPlanned=t.status===d.PLANNED,s.isRemoved=t.status===d.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((o=t.onlineMeeting)===null||o===void 0)&&o.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(u=t.onlineMeeting)===null||u===void 0?void 0:u.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:A})=>({entityId:y,entityType:A})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.links=ne(t),s.slug=C(t),s.thumbnailUrl||(s.thumbnailUrl=R()),s.view={showMap:!!t.location},s.location=ae(t),s}entityToStore(t,r){let a=_(t),n=U(a,r,this.mappings),o=a.access;return o==="shared"?n.access=f.PRIVATE:n.access=o.toUpperCase(),a.isRemoved?n.status=d.REMOVED:a.isCanceled?n.status=d.CANCELED:n.status=d.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function w(e,t,r){let a=e.filter(({entityId:o})=>t.includes(o)),n=t.filter(o=>!a.find(({entityId:i})=>i===o));if(n.length){let{results:o}=await S({q:n.map(u=>`id:${u}`).join(" OR "),num:n.length,authentication:r.authentication}),i=o.map(({id:u,type:m})=>({entityId:u,entityType:m}));a.push(...i)}return a}async function at(e,t){let r=Object.assign(Object.assign({},N()),e);r.endDate=r.startDate;let a=new h(x()),n=a.entityToStore(r,O()),o=await w(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:o,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await Y(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var r,a;let n=Object.assign(Object.assign({},N()),e),o=new h(x()),i=o.entityToStore(n,O()),u=await w(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:u,attendanceType:i.attendanceType,categories:i.categories,description:((r=i.description)===null||r===void 0?void 0:r.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await ee(Object.assign({eventId:i.id,data:m},t)),o.storeToEntity(i,{})}async function st(e,t){await te(Object.assign({eventId:e},t))}function rt(e,t){return ie(Object.assign({data:e},t))}async function ot(e,t){await se(Object.assign({registrationId:e},t))}export{at as createHubEvent,rt as createHubEventRegistration,st as deleteHubEvent,ot as deleteHubEventRegistration,it as updateHubEvent};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a as x}from"./JJ5LIG3E.js";import{a as I}from"./7NQT5MYQ.js";import{a as d}from"./JYHXLAK7.js";import{b as p,d as v,e as M}from"./EQRWAUHH.js";import{a as y}from"./62C7U5GV.js";import{a as k,e as R,f as A,g as E}from"./D2T5W4MH.js";import{a as U}from"./YFDRQUEW.js";import{a as c}from"./4UUPLRGU.js";function h(t,e,r={},n=!1){let a=e.split("."),o=t,i=a.length-1;a.forEach((s,l)=>{!o.hasOwnProperty(s)||o[s]==null?l===i?o[s]=r:o[s]={}:l===i&&(typeof o[s]=="object"&&!Array.isArray(o[s])?n?o[s]=y(r):o[s]=Object.assign(o[s],y(r)):o[s]=r),o=o[s]})}function f(t,e,r,n=!1){Array.isArray(t)&&(t=t.join(".")),h(r,t,e,n)}var K=function(e,r,n,a){var o=(a[0]-n[0])*(e[1]-n[1])-(a[1]-n[1])*(e[0]-n[0]),i=(r[0]-e[0])*(e[1]-n[1])-(r[1]-e[1])*(e[0]-n[0]),s=(a[1]-n[1])*(r[0]-e[0])-(a[0]-n[0])*(r[1]-e[1]);if(s!==0){var l=o/s,u=i/s;if(l>=0&&l<=1&&u>=0&&u<=1)return!0}return!1},V=function(e,r){for(var n=!1,a=-1,o=e.length,i=o-1;++a<o;i=a)(e[a][1]<=r[1]&&r[1]<e[i][1]||e[i][1]<=r[1]&&r[1]<e[a][1])&&r[0]<(e[i][0]-e[a][0])*(r[1]-e[a][1])/(e[i][1]-e[a][1])+e[a][0]&&(n=!n);return n},J=function(e,r){for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0},$=function(e,r){for(var n=0;n<e.length-1;n++)for(var a=0;a<r.length-1;a++)if(K(e[n],e[n+1],r[a],r[a+1]))return!0;return!1},S=function(e){return J(e[0],e[e.length-1])||e.push(e[0]),e},D=function(e){var r=0,n=0,a=e.length,o=e[n],i;for(n;n<a-1;n++)i=e[n+1],r+=(i[0]-o[0])*(i[1]+o[1]),o=i;return r>=0},T=function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r},j=function(e,r){var n=$(e,r),a=V(e,r[0]);return!!(!n&&a)},Q=function(e){for(var r=[],n=[],a,o,i,s=0;s<e.length;s++){var l=S(e[s].slice(0));if(!(l.length<4))if(D(l)){var u=[l.slice().reverse()];r.push(u)}else n.push(l.slice().reverse())}for(var g=[];n.length;){i=n.pop();var w=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],j(o,i)){r[a].push(i),w=!0;break}w||g.push(i)}for(;g.length;){i=g.pop();var P=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],$(o,i)){r[a].push(i),P=!0;break}P||r.push([i.reverse()])}return r.length===1?{type:"Polygon",coordinates:r[0]}:{type:"MultiPolygon",coordinates:r}},Z=function(e,r){for(var n=r?[r,"OBJECTID","FID"]:["OBJECTID","FID"],a=0;a<n.length;a++){var o=n[a];if(o in e&&(typeof e[o]=="string"||typeof e[o]=="number"))return e[o]}throw Error("No valid id attribute found")},xe=function t(e,r){var n={};if(e.features){n.type="FeatureCollection",n.features=[];for(var a=0;a<e.features.length;a++)n.features.push(t(e.features[a],r))}if(typeof e.x=="number"&&typeof e.y=="number"&&(n.type="Point",n.coordinates=[e.x,e.y],typeof e.z=="number"&&n.coordinates.push(e.z)),e.points&&(n.type="MultiPoint",n.coordinates=e.points.slice(0)),e.paths&&(e.paths.length===1?(n.type="LineString",n.coordinates=e.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=e.paths.slice(0))),e.rings&&(n=Q(e.rings.slice(0))),typeof e.xmin=="number"&&typeof e.ymin=="number"&&typeof e.xmax=="number"&&typeof e.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax]]]),(e.geometry||e.attributes)&&(n.type="Feature",n.geometry=e.geometry?t(e.geometry):null,n.properties=e.attributes?T(e.attributes):null,e.attributes))try{n.id=Z(e.attributes,r)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),e.spatialReference&&e.spatialReference.wkid&&e.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(e.spatialReference)),n},N=function(e){var r=[],n=e.slice(0),a=S(n.shift().slice(0));if(a.length>=4){D(a)||a.reverse(),r.push(a);for(var o=0;o<n.length;o++){var i=S(n[o].slice(0));i.length>=4&&(D(i)&&i.reverse(),r.push(i))}}return r},Y=function(e){for(var r=[],n=0;n<e.length;n++)for(var a=N(e[n]),o=a.length-1;o>=0;o--){var i=a[o].slice(0);r.push(i)}return r},O=function t(e,r){r=r||"OBJECTID";var n={wkid:4326},a={},o;switch(e.type){case"Point":a.x=e.coordinates[0],a.y=e.coordinates[1],e.coordinates[2]!=null&&(a.z=e.coordinates[2]),a.spatialReference=n;break;case"MultiPoint":a.points=e.coordinates.slice(0),e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"LineString":a.paths=[e.coordinates.slice(0)],e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiLineString":a.paths=e.coordinates.slice(0),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Polygon":a.rings=N(e.coordinates.slice(0)),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiPolygon":a.rings=Y(e.coordinates.slice(0)),e.coordinates[0][0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Feature":e.geometry&&(a.geometry=t(e.geometry,r)),a.attributes=e.properties?T(e.properties):{},e.id&&(a.attributes[r]=e.id);break;case"FeatureCollection":for(a=[],o=0;o<e.features.length;o++)a.push(t(e.features[o],r));break;case"GeometryCollection":for(a=[],o=0;o<e.geometries.length;o++)a.push(t(e.geometries[o],r));break}return a};function Se(t){return typeof t=="string"?t.trim().toLowerCase().replace(/ +/g,"-").replace(/[^\w-]/g,"").replace(/-+/g,"-"):t}function m(t){let e="enterprise";return t.includes("arcgis.com")&&(e="production"),(t.includes("qaext.arcgis.com")||t.includes("mapsqa.arcgis.com"))&&(e="qaext"),(t.includes("devext.arcgis.com")||t.includes("mapsdev.arcgis.com"))&&(e="devext"),e}function Pe(t,e,r){if(!t||!t.thumbnail)return null;let{token:n,width:a}=r||{};!n&&typeof r=="string"&&(n=r);let o=M(t,e,n),[i,s]=o.split("?"),l=new URLSearchParams(s);l.delete("f"),a&&l.append("w",a+"");let u=l.toString(),g=`${i}/info/${t.thumbnail}`;return u?`${g}?${u}`:g}var L;(function(t){t.Continual="continual",t.Daily="daily",t.Weekly="weekly",t.Fortnightly="fortnightly",t.Monthly="monthly",t.Quarterly="quarterly",t.Biannually="biannually",t.Annually="annually",t.AsNeeded="as-needed",t.Irregular="irregular",t.NotPlanned="not-planned",t.Unknown="unknown",t.Semimonthly="semimonthly"})(L||(L={}));function B(t,e=[]){return t==="Site Application"||t==="Hub Site Application"||t==="Web Mapping Application"&&e.includes("hubSite")}var b={devext:"dev",qaext:"qa",production:""};var q=t=>R(t)?Object.assign(Object.assign({},k(t)),{type:"extent"}):void 0,_e=t=>{let{properties:e,extent:r}=t,n=e?.location;if(n)return n;if(e?.boundary==="none")return{type:"none"};let a=q(r);if(a)return{type:B(t.type)?"org":"custom",extent:r,geometries:[a],spatialReference:a.spatialReference};try{let o=E(r),i={wkid:4326},s=Object.assign(Object.assign({type:"polygon"},O(r)),{spatialReference:A(o)?i:re(t)||i});return{type:"custom",extent:o,geometries:[s],spatialReference:s.spatialReference}}catch{return{type:"none"}}};var We=(t,e,r)=>{let n=ee(t,e,r)||te(t,e,r),a=U(t);if(!n){let i=["app","dataset","document","map","template","project","initiative","discussion","event"],s="/content";a==="feedback"?s=e?"/feedback/surveys":"":X(t,r)?s="/pages":i.indexOf(a)>-1&&(s=`/${a}s`),n=e?`${s}/${e}`:`${s}`}return!e&&!["initiative","project"].includes(a)&&(n=""),n},X=(t,e=[])=>["Hub Page","Site Page"].includes(t)||e.includes("hubPage"),ee=(t,e,r)=>{let n;return t==="Solution"?r?.indexOf("Deployed")>-1?n=`/content/${e}/about`:n=`/templates/${e}/about`:t==="Web Mapping Application"&&r?.indexOf("hubSolutionTemplate")>-1&&(n=`/templates/${e}/about`),n},te=(t,e,r)=>{if(t==="Hub Initiative"&&r?.indexOf("hubInitiativeTemplate")>-1||t==="Hub Initiative Template")return`/initiatives/templates/${e}/about`};var F;(function(t){t.Year="year",t.Month="month",t.Day="day",t.Time="time"})(F||(F={}));var re=t=>{let e=t.spatialReference;if(!e||typeof e=="object")return e;let r=e+"",n=parseInt(r,10);return isNaN(n)?null:{wkid:n}},Ge=(t,e,r)=>{let n=ne(e);return n&&n.map(a=>({name:a.orName,url:ae(a,t,r),isDataSource:z(a,t)}))},ne=t=>{let e=[];return C(c(t,"metadata.distInfo")||[]).forEach(r=>{C(r.distTranOps||[]).forEach(n=>{C(n.onLineSrc||[]).forEach(a=>{e.push(a)})})}),e.length?e:null},C=t=>Array.isArray(t)?t:[t],z=(t,e)=>{let r=e.url&&x(e.url);return r&&t.linkage&&t.linkage.includes(r)},ae=(t,e,r)=>{let n=t.linkage,a=c(r,"authentication.token");if(a&&z(t,e)){let o=new URL(t.linkage),i=new URLSearchParams(o.search);i.set("token",a),o.search=i.toString(),n=o.toString()}return n};var Ke=(t,e)=>{let r;switch(oe(t)){case"Dashboard":r=le(t,e);break;case"Insights Workbook":r=pe(t,e);break;case"Experience":r=se(t,e);break;case"Web AppBuilder":r=ce(t,e);break;case"Form":r=ue(t,e);break;case"StoryMap":r=ie(t,e);break;case"Urban Model":r=de(t,e);break;default:r=v(t.id,e)}return r},oe=t=>{let e=t.typeKeywords||[],r=t.type;return t.type==="StoryMap"||t.type==="Web Mapping Application"&&e.includes("Story Map")?r="StoryMap":t.type==="Insights Page"?r="Insights Page":t.type==="Insights Workbook"?r="Insights Workbook":t.type&&t.type.includes("Insights")?r="Insights":t.type==="Web Experience"||t.type==="Web Mapping Experience"&&e.includes("EXB Experience")?r="Experience":e.includes("Web AppBuilder")&&(r="Web AppBuilder"),r},ie=(t,e)=>{let r={devext:"storymapsdev",qaext:"storymapsqa",production:"storymaps"},n=p(e),a=m(n);return`${`https://${r[a]}.arcgis.com`}/stories/${t.id}/edit`},se=(t,e)=>{let r=p(e),n=m(r);return`${`https://experience${b[n]}.arcgis.com`}/builder/?id=${t.id}`},le=(t,e)=>{let r=p(e),n=`${r}/apps/opsdashboard/index.html#/${t.id}?mode=edit`;return t.typeKeywords&&t.typeKeywords.includes("ArcGIS Dashboards")&&(n=`${r}/apps/dashboards/${t.id}#mode=edit`),n},ce=(t,e)=>`${p(e)}/apps/webappbuilder/index.html?id=${t.id}`,ue=(t,e)=>{let r=p(e),n=m(r),a=`https://survey123${b[n]}.arcgis.com`,o;return t.typeKeywords.includes("Survey123 Connect")?o=v(t.id,r):o=`${a}/surveys/${t.id}/design?portalUrl=${r}`,o},pe=(t,e)=>{let r=p(e),n=m(r),a=`https://insights${b[n]}.arcgis.com`,o=v(t.id,r);return H(r)?o:`${a}/#/edit/${t.id}`},de=(t,e)=>{let r=p(e),n=m(r),a=`https://urban${b[n]}.arcgis.com`,o=v(t.id,r);return H(r)?o:`${a}/?id=${t.id}`},H=t=>t.indexOf("arcgis.com")===-1;function Ve(t,e){return`${fe(e)}/api/download/v1/items/${t}/schedule?token=${e.authentication.token}`}function fe(t){return I(t).replace(/\/api\/v3$/,"")}var Je=async(t,e)=>{let n=`${I(e)}/api/v3/jobs/item/${t}/forceUpdate`,a={method:"POST",headers:{"content-type":"application/json",authorization:e.authentication.token}};return(await fetch(n,a)).ok};function _(t){let e=!1;return t&&(e=!(t.typeKeywords||[]).includes(d)),e}function Ze(t,e){let r=(t||[]).filter(n=>n!==d);return e||r.push(d),r}var W=class{constructor(e){this.mappings=e}storeToEntity(e,r){let n=me(e,r,this.mappings);if(c(e,"item")){let a=c(e,"item");f("canEdit",["admin","update"].includes(a.itemControl),n),f("canDelete",a.itemControl==="admin",n),f("canRecycle",a.canRecycle||!1,n),f("protected",a.protected,n)}return n}entityToStore(e,r){return ge(e,r,this.mappings)}};function ge(t,e,r){if(c(e,"item")){let n=c(e,"item");n.typeKeywords&&(n.typeKeywords=c(t,"isDiscussable")?n.typeKeywords.filter(a=>a!==d):[...n.typeKeywords,d],f("item.typeKeywords",n.typeKeywords,e))}return G(t,"entityKey",e,"storeKey",r)}function me(t,e,r){if(c(t,"item")){let n=c(t,"item");f("isDiscussable",_(n),e)}return G(t,"storeKey",e,"entityKey",r)}function G(t,e,r,n,a){let o=y(r);return a.forEach(i=>{let s=c(i,e),l=c(i,n),u=c(t,s);u!=null&&h(o,l,u,!0)}),o}export{f as a,Se as b,Pe as c,xe as d,_e as e,We as f,Ge as g,Ke as h,Ve as i,Je as j,_ as k,Ze as l,W as m,ge as n,me as o};
3
+ v1.0.0-next.20250506.1 */
4
+ import{a as x}from"./FAZOBB62.js";import{a as I}from"./DCZKZQPQ.js";import{a as d}from"./5IPD66RZ.js";import{b as p,d as v,e as M}from"./YIDDZHZJ.js";import{a as y}from"./EYFKB5UR.js";import{a as k,e as R,f as A,g as E}from"./6MOBEALK.js";import{a as U}from"./Z2FRREMF.js";import{a as c}from"./ZEFQFCIT.js";function h(t,e,r={},n=!1){let a=e.split("."),o=t,i=a.length-1;a.forEach((s,l)=>{!o.hasOwnProperty(s)||o[s]==null?l===i?o[s]=r:o[s]={}:l===i&&(typeof o[s]=="object"&&!Array.isArray(o[s])?n?o[s]=y(r):o[s]=Object.assign(o[s],y(r)):o[s]=r),o=o[s]})}function f(t,e,r,n=!1){Array.isArray(t)&&(t=t.join(".")),h(r,t,e,n)}var K=function(e,r,n,a){var o=(a[0]-n[0])*(e[1]-n[1])-(a[1]-n[1])*(e[0]-n[0]),i=(r[0]-e[0])*(e[1]-n[1])-(r[1]-e[1])*(e[0]-n[0]),s=(a[1]-n[1])*(r[0]-e[0])-(a[0]-n[0])*(r[1]-e[1]);if(s!==0){var l=o/s,u=i/s;if(l>=0&&l<=1&&u>=0&&u<=1)return!0}return!1},V=function(e,r){for(var n=!1,a=-1,o=e.length,i=o-1;++a<o;i=a)(e[a][1]<=r[1]&&r[1]<e[i][1]||e[i][1]<=r[1]&&r[1]<e[a][1])&&r[0]<(e[i][0]-e[a][0])*(r[1]-e[a][1])/(e[i][1]-e[a][1])+e[a][0]&&(n=!n);return n},J=function(e,r){for(var n=0;n<e.length;n++)if(e[n]!==r[n])return!1;return!0},$=function(e,r){for(var n=0;n<e.length-1;n++)for(var a=0;a<r.length-1;a++)if(K(e[n],e[n+1],r[a],r[a+1]))return!0;return!1},S=function(e){return J(e[0],e[e.length-1])||e.push(e[0]),e},D=function(e){var r=0,n=0,a=e.length,o=e[n],i;for(n;n<a-1;n++)i=e[n+1],r+=(i[0]-o[0])*(i[1]+o[1]),o=i;return r>=0},T=function(e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);return r},j=function(e,r){var n=$(e,r),a=V(e,r[0]);return!!(!n&&a)},Q=function(e){for(var r=[],n=[],a,o,i,s=0;s<e.length;s++){var l=S(e[s].slice(0));if(!(l.length<4))if(D(l)){var u=[l.slice().reverse()];r.push(u)}else n.push(l.slice().reverse())}for(var g=[];n.length;){i=n.pop();var w=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],j(o,i)){r[a].push(i),w=!0;break}w||g.push(i)}for(;g.length;){i=g.pop();var P=!1;for(a=r.length-1;a>=0;a--)if(o=r[a][0],$(o,i)){r[a].push(i),P=!0;break}P||r.push([i.reverse()])}return r.length===1?{type:"Polygon",coordinates:r[0]}:{type:"MultiPolygon",coordinates:r}},Z=function(e,r){for(var n=r?[r,"OBJECTID","FID"]:["OBJECTID","FID"],a=0;a<n.length;a++){var o=n[a];if(o in e&&(typeof e[o]=="string"||typeof e[o]=="number"))return e[o]}throw Error("No valid id attribute found")},xe=function t(e,r){var n={};if(e.features){n.type="FeatureCollection",n.features=[];for(var a=0;a<e.features.length;a++)n.features.push(t(e.features[a],r))}if(typeof e.x=="number"&&typeof e.y=="number"&&(n.type="Point",n.coordinates=[e.x,e.y],typeof e.z=="number"&&n.coordinates.push(e.z)),e.points&&(n.type="MultiPoint",n.coordinates=e.points.slice(0)),e.paths&&(e.paths.length===1?(n.type="LineString",n.coordinates=e.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=e.paths.slice(0))),e.rings&&(n=Q(e.rings.slice(0))),typeof e.xmin=="number"&&typeof e.ymin=="number"&&typeof e.xmax=="number"&&typeof e.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[e.xmax,e.ymax],[e.xmin,e.ymax],[e.xmin,e.ymin],[e.xmax,e.ymin],[e.xmax,e.ymax]]]),(e.geometry||e.attributes)&&(n.type="Feature",n.geometry=e.geometry?t(e.geometry):null,n.properties=e.attributes?T(e.attributes):null,e.attributes))try{n.id=Z(e.attributes,r)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),e.spatialReference&&e.spatialReference.wkid&&e.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(e.spatialReference)),n},N=function(e){var r=[],n=e.slice(0),a=S(n.shift().slice(0));if(a.length>=4){D(a)||a.reverse(),r.push(a);for(var o=0;o<n.length;o++){var i=S(n[o].slice(0));i.length>=4&&(D(i)&&i.reverse(),r.push(i))}}return r},Y=function(e){for(var r=[],n=0;n<e.length;n++)for(var a=N(e[n]),o=a.length-1;o>=0;o--){var i=a[o].slice(0);r.push(i)}return r},O=function t(e,r){r=r||"OBJECTID";var n={wkid:4326},a={},o;switch(e.type){case"Point":a.x=e.coordinates[0],a.y=e.coordinates[1],e.coordinates[2]!=null&&(a.z=e.coordinates[2]),a.spatialReference=n;break;case"MultiPoint":a.points=e.coordinates.slice(0),e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"LineString":a.paths=[e.coordinates.slice(0)],e.coordinates[0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiLineString":a.paths=e.coordinates.slice(0),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Polygon":a.rings=N(e.coordinates.slice(0)),e.coordinates[0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"MultiPolygon":a.rings=Y(e.coordinates.slice(0)),e.coordinates[0][0][0][2]!=null&&(a.hasZ=!0),a.spatialReference=n;break;case"Feature":e.geometry&&(a.geometry=t(e.geometry,r)),a.attributes=e.properties?T(e.properties):{},e.id&&(a.attributes[r]=e.id);break;case"FeatureCollection":for(a=[],o=0;o<e.features.length;o++)a.push(t(e.features[o],r));break;case"GeometryCollection":for(a=[],o=0;o<e.geometries.length;o++)a.push(t(e.geometries[o],r));break}return a};function Se(t){return typeof t=="string"?t.trim().toLowerCase().replace(/ +/g,"-").replace(/[^\w-]/g,"").replace(/-+/g,"-"):t}function m(t){let e="enterprise";return t.includes("arcgis.com")&&(e="production"),(t.includes("qaext.arcgis.com")||t.includes("mapsqa.arcgis.com"))&&(e="qaext"),(t.includes("devext.arcgis.com")||t.includes("mapsdev.arcgis.com"))&&(e="devext"),e}function Pe(t,e,r){if(!t||!t.thumbnail)return null;let{token:n,width:a}=r||{};!n&&typeof r=="string"&&(n=r);let o=M(t,e,n),[i,s]=o.split("?"),l=new URLSearchParams(s);l.delete("f"),a&&l.append("w",a+"");let u=l.toString(),g=`${i}/info/${t.thumbnail}`;return u?`${g}?${u}`:g}var L;(function(t){t.Continual="continual",t.Daily="daily",t.Weekly="weekly",t.Fortnightly="fortnightly",t.Monthly="monthly",t.Quarterly="quarterly",t.Biannually="biannually",t.Annually="annually",t.AsNeeded="as-needed",t.Irregular="irregular",t.NotPlanned="not-planned",t.Unknown="unknown",t.Semimonthly="semimonthly"})(L||(L={}));function B(t,e=[]){return t==="Site Application"||t==="Hub Site Application"||t==="Web Mapping Application"&&e.includes("hubSite")}var b={devext:"dev",qaext:"qa",production:""};var q=t=>R(t)?Object.assign(Object.assign({},k(t)),{type:"extent"}):void 0,_e=t=>{let{properties:e,extent:r}=t,n=e?.location;if(n)return n;if(e?.boundary==="none")return{type:"none"};let a=q(r);if(a)return{type:B(t.type)?"org":"custom",extent:r,geometries:[a],spatialReference:a.spatialReference};try{let o=E(r),i={wkid:4326},s=Object.assign(Object.assign({type:"polygon"},O(r)),{spatialReference:A(o)?i:re(t)||i});return{type:"custom",extent:o,geometries:[s],spatialReference:s.spatialReference}}catch{return{type:"none"}}};var We=(t,e,r)=>{let n=ee(t,e,r)||te(t,e,r),a=U(t);if(!n){let i=["app","dataset","document","map","template","project","initiative","discussion","event"],s="/content";a==="feedback"?s=e?"/feedback/surveys":"":X(t,r)?s="/pages":i.indexOf(a)>-1&&(s=`/${a}s`),n=e?`${s}/${e}`:`${s}`}return!e&&!["initiative","project"].includes(a)&&(n=""),n},X=(t,e=[])=>["Hub Page","Site Page"].includes(t)||e.includes("hubPage"),ee=(t,e,r)=>{let n;return t==="Solution"?r?.indexOf("Deployed")>-1?n=`/content/${e}/about`:n=`/templates/${e}/about`:t==="Web Mapping Application"&&r?.indexOf("hubSolutionTemplate")>-1&&(n=`/templates/${e}/about`),n},te=(t,e,r)=>{if(t==="Hub Initiative"&&r?.indexOf("hubInitiativeTemplate")>-1||t==="Hub Initiative Template")return`/initiatives/templates/${e}/about`};var F;(function(t){t.Year="year",t.Month="month",t.Day="day",t.Time="time"})(F||(F={}));var re=t=>{let e=t.spatialReference;if(!e||typeof e=="object")return e;let r=e+"",n=parseInt(r,10);return isNaN(n)?null:{wkid:n}},Ge=(t,e,r)=>{let n=ne(e);return n&&n.map(a=>({name:a.orName,url:ae(a,t,r),isDataSource:z(a,t)}))},ne=t=>{let e=[];return C(c(t,"metadata.distInfo")||[]).forEach(r=>{C(r.distTranOps||[]).forEach(n=>{C(n.onLineSrc||[]).forEach(a=>{e.push(a)})})}),e.length?e:null},C=t=>Array.isArray(t)?t:[t],z=(t,e)=>{let r=e.url&&x(e.url);return r&&t.linkage&&t.linkage.includes(r)},ae=(t,e,r)=>{let n=t.linkage,a=c(r,"authentication.token");if(a&&z(t,e)){let o=new URL(t.linkage),i=new URLSearchParams(o.search);i.set("token",a),o.search=i.toString(),n=o.toString()}return n};var Ke=(t,e)=>{let r;switch(oe(t)){case"Dashboard":r=le(t,e);break;case"Insights Workbook":r=pe(t,e);break;case"Experience":r=se(t,e);break;case"Web AppBuilder":r=ce(t,e);break;case"Form":r=ue(t,e);break;case"StoryMap":r=ie(t,e);break;case"Urban Model":r=de(t,e);break;default:r=v(t.id,e)}return r},oe=t=>{let e=t.typeKeywords||[],r=t.type;return t.type==="StoryMap"||t.type==="Web Mapping Application"&&e.includes("Story Map")?r="StoryMap":t.type==="Insights Page"?r="Insights Page":t.type==="Insights Workbook"?r="Insights Workbook":t.type&&t.type.includes("Insights")?r="Insights":t.type==="Web Experience"||t.type==="Web Mapping Experience"&&e.includes("EXB Experience")?r="Experience":e.includes("Web AppBuilder")&&(r="Web AppBuilder"),r},ie=(t,e)=>{let r={devext:"storymapsdev",qaext:"storymapsqa",production:"storymaps"},n=p(e),a=m(n);return`${`https://${r[a]}.arcgis.com`}/stories/${t.id}/edit`},se=(t,e)=>{let r=p(e),n=m(r);return`${`https://experience${b[n]}.arcgis.com`}/builder/?id=${t.id}`},le=(t,e)=>{let r=p(e),n=`${r}/apps/opsdashboard/index.html#/${t.id}?mode=edit`;return t.typeKeywords&&t.typeKeywords.includes("ArcGIS Dashboards")&&(n=`${r}/apps/dashboards/${t.id}#mode=edit`),n},ce=(t,e)=>`${p(e)}/apps/webappbuilder/index.html?id=${t.id}`,ue=(t,e)=>{let r=p(e),n=m(r),a=`https://survey123${b[n]}.arcgis.com`,o;return t.typeKeywords.includes("Survey123 Connect")?o=v(t.id,r):o=`${a}/surveys/${t.id}/design?portalUrl=${r}`,o},pe=(t,e)=>{let r=p(e),n=m(r),a=`https://insights${b[n]}.arcgis.com`,o=v(t.id,r);return H(r)?o:`${a}/#/edit/${t.id}`},de=(t,e)=>{let r=p(e),n=m(r),a=`https://urban${b[n]}.arcgis.com`,o=v(t.id,r);return H(r)?o:`${a}/?id=${t.id}`},H=t=>t.indexOf("arcgis.com")===-1;function Ve(t,e){return`${fe(e)}/api/download/v1/items/${t}/schedule?token=${e.authentication.token}`}function fe(t){return I(t).replace(/\/api\/v3$/,"")}var Je=async(t,e)=>{let n=`${I(e)}/api/v3/jobs/item/${t}/forceUpdate`,a={method:"POST",headers:{"content-type":"application/json",authorization:e.authentication.token}};return(await fetch(n,a)).ok};function _(t){let e=!1;return t&&(e=!(t.typeKeywords||[]).includes(d)),e}function Ze(t,e){let r=(t||[]).filter(n=>n!==d);return e||r.push(d),r}var W=class{constructor(e){this.mappings=e}storeToEntity(e,r){let n=me(e,r,this.mappings);if(c(e,"item")){let a=c(e,"item");f("canEdit",["admin","update"].includes(a.itemControl),n),f("canDelete",a.itemControl==="admin",n),f("canRecycle",a.canRecycle||!1,n),f("protected",a.protected,n)}return n}entityToStore(e,r){return ge(e,r,this.mappings)}};function ge(t,e,r){if(c(e,"item")){let n=c(e,"item");n.typeKeywords&&(n.typeKeywords=c(t,"isDiscussable")?n.typeKeywords.filter(a=>a!==d):[...n.typeKeywords,d],f("item.typeKeywords",n.typeKeywords,e))}return G(t,"entityKey",e,"storeKey",r)}function me(t,e,r){if(c(t,"item")){let n=c(t,"item");f("isDiscussable",_(n),e)}return G(t,"storeKey",e,"entityKey",r)}function G(t,e,r,n,a){let o=y(r);return a.forEach(i=>{let s=c(i,e),l=c(i,n),u=c(t,s);u!=null&&h(o,l,u,!0)}),o}export{f as a,Se as b,Pe as c,xe as d,_e as e,We as f,Ge as g,Ke as h,Ve as i,Je as j,_ as k,Ze as l,W as m,ge as n,me as o};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250506.1 */
4
+ import{a,b}from"./HSIGQHGC.js";import"./E4P22JZK.js";import"./V5XUAHEB.js";export{a as ChannelEditorTypes,b as ChannelSchema};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a as n}from"./6EQSCBDC.js";import{B as r,c as t,d as i,q as s,w as o}from"./5KN7Z5XE.js";import"./ZIIYJYM3.js";var a=t`@layer{/** @license
3
+ v1.0.0-next.20250506.1 */
4
+ import{a as n}from"./VERJI2SH.js";import{B as r,c as t,d as i,q as s,w as o}from"./YXGKJSHK.js";import"./V5XUAHEB.js";var a=t`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a}from"./3XPDS33A.js";import{a as i}from"./OHSYSDBJ.js";import"./ZJR4525B.js";import"./LGYRQXSU.js";import{a as l,b as r}from"./3FL6VQP4.js";import"./Q46U6YLX.js";import"./D2T5W4MH.js";import"./SBPJJXZK.js";import"./YFDRQUEW.js";import"./4UUPLRGU.js";import{a as t}from"./XA4WRYB3.js";import"./WXBPYKCV.js";import"./LQYOJKKM.js";import"./TXARZDSW.js";import"./CPHOXIAS.js";import"./LAEMDHMW.js";import"./QNEZFCY7.js";import"./WVFYDL3N.js";import"./LQVQ5SYL.js";import"./URSDOYPK.js";import"./7PXLNWUW.js";import"./K5U2KIKJ.js";import"./OSJ4PK7V.js";import"./DNQVWK3Q.js";import"./2XJGOOBG.js";import"./54TTZEMV.js";import"./CVYUV5YV.js";import"./M6OKQSGJ.js";import"./X7OXK5DE.js";import"./3GN3HS2Z.js";import"./UBKKMKS7.js";import"./E575ADYG.js";import"./WYNYF36Y.js";import"./ZIIYJYM3.js";var u=async(e,s,o)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.status.label`,scope:"/properties/status",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}}]}]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await l(s.location,o.hubRequestOptions),options:await r(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:a(o.currentUser.groups),disabled:!i("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]});export{u as buildUiSchema};
3
+ v1.0.0-next.20250506.1 */
4
+ import{a}from"./GAQOXRME.js";import{a as i}from"./IC5TQPF6.js";import"./VNZX57M6.js";import"./FXQSFX4Q.js";import{a as l,b as r}from"./4S2LGGIS.js";import"./ISRQ3BAT.js";import"./6MOBEALK.js";import"./VQQVMG7C.js";import"./Z2FRREMF.js";import"./ZEFQFCIT.js";import{a as t}from"./AIWA7X7G.js";import"./DC3N7IST.js";import"./HSIGQHGC.js";import"./E4P22JZK.js";import"./CAGLPIPF.js";import"./EJZKFB4Z.js";import"./OATNKA2V.js";import"./HK7ORFOY.js";import"./HP45S4UO.js";import"./VZG427AU.js";import"./K6YZHC7R.js";import"./JALWXGJR.js";import"./ROIVGYSM.js";import"./DXQ3LDCB.js";import"./NEVOR7UF.js";import"./WY7PHM6L.js";import"./4NGMIXLU.js";import"./CPBVNIA2.js";import"./KTYRFLWJ.js";import"./Y7WVUKZX.js";import"./EIQNRR4P.js";import"./SXRISHGN.js";import"./RUTSW7HN.js";import"./V5XUAHEB.js";var u=async(e,s,o)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,helperText:{labelKey:`${e}.fields.summary.helperText`},messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},{labelKey:`${e}.fields.status.label`,scope:"/properties/status",type:"Control",options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}}]}]},{type:"Section",labelKey:`${e}.sections.location.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{type:"Section",labelKey:`${e}.sections.location.label`,options:{helperText:{labelKey:`${e}.sections.location.helperText`}},elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await l(s.location,o.hubRequestOptions),options:await r(s.id,s.type,s.location,o.portal.name,o.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]},{type:"Section",labelKey:`${e}.sections.sharing.label`,options:{section:"step"},rules:[{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{const:""}}]},{effect:t.DISABLE,conditions:[{scope:"/properties/name",schema:{minLength:251}}]},{effect:t.DISABLE,condition:{scope:"/properties/summary",schema:{minLength:2049}}}],elements:[{scope:"/properties/access",type:"Control",options:{control:"arcgis-hub-access-level-controls",orgName:o.portal.name,itemType:`{{${e}.fields.access.itemType:translate}}`}},{labelKey:`${e}.fields.groups.label`,scope:"/properties/_groups",type:"Control",options:{control:"hub-field-input-combobox",items:a(o.currentUser.groups),disabled:!i("platform:portal:user:shareToGroup",o),allowCustomValues:!1,selectionMode:"multiple"}}]}]}]});export{u as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{g as u,h as g}from"./KAHTIZBX.js";var M=(e,o,s)=>{let c=e.get(o);c?c.includes(s)||c.push(s):e.set(o,[s])},O=(e,o)=>{let s;return(...c)=>{s&&clearTimeout(s),s=setTimeout(()=>{s=0,e(...c)},o)}},_=e=>!("isConnected"in e)||e.isConnected,w=O(e=>{for(let o of e.keys())e.set(o,e.get(o).filter(_))},2e3),T=()=>{if(typeof u!="function")return{};let e=new Map;return{dispose:()=>e.clear(),get:o=>{let s=u();s&&M(e,o,s)},set:o=>{let s=e.get(o);s&&e.set(o,s.filter(g)),w(e)},reset:()=>{e.forEach(o=>o.forEach(g)),w(e)}}},h=e=>typeof e=="function"?e():e,U=(e,o=(s,c)=>s!==c)=>{let s=h(e),c=new Map(Object.entries(s??{})),i={dispose:[],get:[],set:[],reset:[]},l=()=>{c=new Map(Object.entries(h(e)??{})),i.reset.forEach(t=>t())},E=()=>{i.dispose.forEach(t=>t()),l()},p=t=>(i.get.forEach(n=>n(t)),c.get(t)),a=(t,n)=>{let r=c.get(t);o(n,r,t)&&(c.set(t,n),i.set.forEach(f=>f(t,n,r)))},y=typeof Proxy>"u"?{}:new Proxy(s,{get(t,n){return p(n)},ownKeys(t){return Array.from(c.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(t,n){return c.has(n)},set(t,n,r){return a(n,r),!0}}),d=(t,n)=>(i[t].push(n),()=>{P(i[t],n)});return{state:y,get:p,set:a,on:d,onChange:(t,n)=>{let r=d("set",(x,C)=>{x===t&&n(C)}),f=d("reset",()=>n(h(e)[t]));return()=>{r(),f()}},use:(...t)=>{let n=t.reduce((r,f)=>(f.set&&r.push(d("set",f.set)),f.get&&r.push(d("get",f.get)),f.reset&&r.push(d("reset",f.reset)),f.dispose&&r.push(d("dispose",f.dispose)),r),[]);return()=>n.forEach(r=>r())},dispose:E,reset:l,forceUpdate:t=>{let n=c.get(t);i.set.forEach(r=>r(t,n,n))}}},P=(e,o)=>{let s=e.indexOf(o);s>=0&&(e[s]=e[e.length-1],e.length--)},S=(e,o)=>{let s=U(e,o);return s.use(T()),s};export{S as a};
3
+ v1.0.0-next.20250506.1 */
4
+ import{g as u,h as g}from"./YYNMVPOT.js";var M=(e,o,s)=>{let c=e.get(o);c?c.includes(s)||c.push(s):e.set(o,[s])},O=(e,o)=>{let s;return(...c)=>{s&&clearTimeout(s),s=setTimeout(()=>{s=0,e(...c)},o)}},_=e=>!("isConnected"in e)||e.isConnected,w=O(e=>{for(let o of e.keys())e.set(o,e.get(o).filter(_))},2e3),T=()=>{if(typeof u!="function")return{};let e=new Map;return{dispose:()=>e.clear(),get:o=>{let s=u();s&&M(e,o,s)},set:o=>{let s=e.get(o);s&&e.set(o,s.filter(g)),w(e)},reset:()=>{e.forEach(o=>o.forEach(g)),w(e)}}},h=e=>typeof e=="function"?e():e,U=(e,o=(s,c)=>s!==c)=>{let s=h(e),c=new Map(Object.entries(s??{})),i={dispose:[],get:[],set:[],reset:[]},l=()=>{c=new Map(Object.entries(h(e)??{})),i.reset.forEach(t=>t())},E=()=>{i.dispose.forEach(t=>t()),l()},p=t=>(i.get.forEach(n=>n(t)),c.get(t)),a=(t,n)=>{let r=c.get(t);o(n,r,t)&&(c.set(t,n),i.set.forEach(f=>f(t,n,r)))},y=typeof Proxy>"u"?{}:new Proxy(s,{get(t,n){return p(n)},ownKeys(t){return Array.from(c.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has(t,n){return c.has(n)},set(t,n,r){return a(n,r),!0}}),d=(t,n)=>(i[t].push(n),()=>{P(i[t],n)});return{state:y,get:p,set:a,on:d,onChange:(t,n)=>{let r=d("set",(x,C)=>{x===t&&n(C)}),f=d("reset",()=>n(h(e)[t]));return()=>{r(),f()}},use:(...t)=>{let n=t.reduce((r,f)=>(f.set&&r.push(d("set",f.set)),f.get&&r.push(d("get",f.get)),f.reset&&r.push(d("reset",f.reset)),f.dispose&&r.push(d("dispose",f.dispose)),r),[]);return()=>n.forEach(r=>r())},dispose:E,reset:l,forceUpdate:t=>{let n=c.get(t);i.set.forEach(r=>r(t,n,n))}}},P=(e,o)=>{let s=e.indexOf(o);s>=0&&(e[s]=e[e.length-1],e.length--)},S=(e,o)=>{let s=U(e,o);return s.use(T()),s};export{S as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a as u,b as m}from"./JRNC7PCQ.js";import{b as g}from"./R4M6CYMY.js";import{B as p,c as o,d as l,w as d}from"./5KN7Z5XE.js";import"./ZIIYJYM3.js";var f=o`/** @license
3
+ v1.0.0-next.20250506.1 */
4
+ import{a as u,b as m}from"./4FO53H2N.js";import{b as g}from"./7K2EWZ4V.js";import{B as p,c as o,d as l,w as d}from"./YXGKJSHK.js";import"./V5XUAHEB.js";var f=o`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import{a as u,b as m}from"./JRNC7PCQ.js";import{b as g}from"./R4M6CYMY.js";impor
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */:host{display:block}.search-widget{width:100%!important;border:1px solid var(--calcite-color-border-input)}`,h=class extends d{constructor(){super(...arguments),this.popupEnabled=!1,this.resultGraphicEnabled=!1,this.searchTerm="",this._searchElement=u()}static{this.properties={mapView:0,popupEnabled:5,resultGraphicEnabled:5,searchConfiguration:0,searchTerm:1,searchWidget:0}}static{this.styles=f}willUpdate(e){e.has("searchConfiguration")&&this.watchSearchConfigurationHandler(),e.has("mapView")&&this.mapViewWatchHandler()}async watchSearchConfigurationHandler(){this._initSearchWidget()}async mapViewWatchHandler(){await this.mapView?.when(()=>{this._initSearchWidget()})}async load(){await this._initModules()}loaded(){return this._initSearchWidget()}render(){return l`<div class="search-widget" ${m(this._searchElement)}></div>`}async _initModules(){let[e,s]=await g(["esri/widgets/Search","esri/layers/FeatureLayer"]);this.Search=e,this.FeatureLayer=s}_initSearchWidget(){if(this.mapView&&this._searchElement.value&&!this.searchWidget){let e={view:this.mapView,container:this._searchElement.value,searchTerm:this.searchTerm};this.searchConfiguration&&(e={...this._getSearchConfig(this.searchConfiguration,this.mapView)}),this.searchWidget=this.Search&&new this.Search(e),this.searchWidget&&(this.searchWidget.popupEnabled=this.popupEnabled,this.searchWidget.resultGraphicEnabled=this.resultGraphicEnabled)}else this.searchWidget&&(this.searchWidget.view=this.mapView)}_getSearchConfig(e,s){let w="includeDefaultSources",a=e.sources;return a&&a?.length>0?(e[w]=!1,a.forEach(t=>{if(t.hasOwnProperty("layer")){let i=t,r=i.layer?.id,n=r?s.map.findLayerById(r):null,c=i?.layer?.url;n?i.layer=n:c&&this.FeatureLayer&&(i.layer=new this.FeatureLayer(c))}}),a?.forEach(t=>{if(t.hasOwnProperty("locator")){let i=t;if(i?.name==="ArcGIS World Geocoding Service"){let r=i.outFields||["Addr_type","Match_addr","StAddr","City"];i.outFields=r,i.singleLineFieldName="SingleLine"}i.url=i.url,delete i.url}})):e={...e,includeDefaultSources:!0},e}};p("map-search",h);export{h as MapSearch};
18
+ */:host{display:block}.search-widget{width:100%!important;border:1px solid var(--calcite-color-border-input)}`,h=class extends d{constructor(){super(...arguments),this.popupEnabled=!1,this.resultGraphicEnabled=!1,this.searchTerm="",this._searchElement=u()}static{this.properties={mapView:0,popupEnabled:5,resultGraphicEnabled:5,searchConfiguration:0,searchTerm:1,searchWidget:0}}static{this.styles=f}willUpdate(e){e.has("searchConfiguration")&&this.watchSearchConfigurationHandler(),e.has("mapView")&&this.mapViewWatchHandler()}async watchSearchConfigurationHandler(){this._initSearchWidget()}async mapViewWatchHandler(){await this.mapView?.when(()=>{this._initSearchWidget()})}async load(){await this._initModules()}loaded(){return this._initSearchWidget()}render(){return l`<div class="search-widget" ${m(this._searchElement)}></div>`}async _initModules(){let[e,s]=await g(["esri/widgets/Search","esri/layers/FeatureLayer"]);this.Search=e,this.FeatureLayer=s}_initSearchWidget(){if(this.mapView&&this._searchElement.value&&!this.searchWidget){let e={view:this.mapView,container:this._searchElement.value,searchTerm:this.searchTerm};this.searchConfiguration&&(e={...this._getSearchConfig(this.searchConfiguration,this.mapView)}),this.searchWidget=this.Search&&new this.Search(e),this.searchWidget&&(this.searchWidget.popupEnabled=this.popupEnabled,this.searchWidget.resultGraphicEnabled=this.resultGraphicEnabled)}else this.searchWidget&&(this.searchWidget.view=this.mapView)}_getSearchConfig(e,s){let w="includeDefaultSources",a=e.sources;return a&&a?.length>0?(e[w]=!1,a.forEach(t=>{if(t.hasOwnProperty("layer")){let i=t,r=i.layer?.id,n=r?s.map?.findLayerById(r):null,c=i?.layer?.url;n?i.layer=n:c&&this.FeatureLayer&&(i.layer=new this.FeatureLayer(c))}}),a?.forEach(t=>{if(t.hasOwnProperty("locator")){let i=t;if(i?.name==="ArcGIS World Geocoding Service"){let r=i.outFields||["Addr_type","Match_addr","StAddr","City"];i.outFields=r,i.singleLineFieldName="SingleLine"}i.url=i.url,delete i.url}})):e={...e,includeDefaultSources:!0},e}};p("map-search",h);export{h as MapSearch};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250501.2 */
4
- import{a as e,b as i,c as l,d as s,e as t}from"./YLWTVGEO.js";import{a as r}from"./XA4WRYB3.js";import"./WXBPYKCV.js";import"./LQYOJKKM.js";import"./TXARZDSW.js";import"./CPHOXIAS.js";import"./LAEMDHMW.js";import"./QNEZFCY7.js";import"./WVFYDL3N.js";import"./LQVQ5SYL.js";import"./URSDOYPK.js";import"./7PXLNWUW.js";import"./K5U2KIKJ.js";import"./OSJ4PK7V.js";import"./DNQVWK3Q.js";import"./2XJGOOBG.js";import"./54TTZEMV.js";import"./CVYUV5YV.js";import"./M6OKQSGJ.js";import"./X7OXK5DE.js";import"./3GN3HS2Z.js";import"./UBKKMKS7.js";import"./E575ADYG.js";import"./WYNYF36Y.js";import"./ZIIYJYM3.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
3
+ v1.0.0-next.20250506.1 */
4
+ import{a as e,b as i,c as l,d as s,e as t}from"./T6ACGRID.js";import{a as r}from"./AIWA7X7G.js";import"./DC3N7IST.js";import"./HSIGQHGC.js";import"./E4P22JZK.js";import"./CAGLPIPF.js";import"./EJZKFB4Z.js";import"./OATNKA2V.js";import"./HK7ORFOY.js";import"./HP45S4UO.js";import"./VZG427AU.js";import"./K6YZHC7R.js";import"./JALWXGJR.js";import"./ROIVGYSM.js";import"./DXQ3LDCB.js";import"./NEVOR7UF.js";import"./WY7PHM6L.js";import"./4NGMIXLU.js";import"./CPBVNIA2.js";import"./KTYRFLWJ.js";import"./Y7WVUKZX.js";import"./EIQNRR4P.js";import"./SXRISHGN.js";import"./RUTSW7HN.js";import"./V5XUAHEB.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};