@esri/solutions-components 1.0.5 → 1.1.0-next.20250731

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 (605) hide show
  1. package/dist/cdn/2BAYNM47.js +4 -0
  2. package/dist/cdn/{XK7SWBXE.js → 2EYV4IEN.js} +3 -3
  3. package/dist/cdn/{WCEUO2OS.js → 2GJB6LPB.js} +3 -3
  4. package/dist/cdn/{VXJY4QCS.js → 2GTBGQOU.js} +3 -3
  5. package/dist/cdn/{IFPYTV3R.js → 2GXV72MB.js} +2 -2
  6. package/dist/cdn/{OORGXTFY.js → 2H7BTHDT.js} +3 -3
  7. package/dist/cdn/{WZYGUEIV.js → 2HGA22GQ.js} +3 -3
  8. package/dist/cdn/{IREZCPC5.js → 2IUFUH3X.js} +3 -3
  9. package/dist/cdn/2JS7ZGBH.js +4 -0
  10. package/dist/cdn/{5K5LGI4X.js → 2KNQIZBY.js} +3 -3
  11. package/dist/cdn/{EJ7VKYZG.js → 2KTL7SDF.js} +3 -3
  12. package/dist/cdn/{XFANWHPY.js → 2MMYXU2V.js} +3 -3
  13. package/dist/cdn/{M3L66GKK.js → 2MXF6QYM.js} +4 -4
  14. package/dist/cdn/{UISRG6AV.js → 2VNDJQDM.js} +4 -4
  15. package/dist/cdn/{AHHA6SMZ.js → 36VPKEOS.js} +3 -3
  16. package/dist/cdn/{5LOTR4DW.js → 3BRZABO6.js} +3 -3
  17. package/dist/cdn/{WIVOL6CT.js → 3C7RF6EE.js} +2 -2
  18. package/dist/cdn/{ONL3NL26.js → 3CSOCHXH.js} +3 -3
  19. package/dist/cdn/{Q66CZJP6.js → 3I27Y3IK.js} +2 -2
  20. package/dist/cdn/{SH3RI2GK.js → 3IR5ZGJG.js} +3 -3
  21. package/dist/cdn/3VNPNVLC.js +25 -0
  22. package/dist/cdn/{QUCDVIOQ.js → 3YCVXZXV.js} +3 -3
  23. package/dist/cdn/{XU3KAISP.js → 426N4ARK.js} +2 -2
  24. package/dist/cdn/42JDQQWZ.js +4 -0
  25. package/dist/cdn/43XTD4IU.js +4 -0
  26. package/dist/cdn/{6N7ZWEZT.js → 44QRT6VW.js} +3 -3
  27. package/dist/cdn/473S2HEB.js +4 -0
  28. package/dist/cdn/4DN5TKSJ.js +4 -0
  29. package/dist/cdn/{EHUPQ5JP.js → 4FVROE4F.js} +3 -3
  30. package/dist/cdn/{QVLJY52I.js → 4OTSILUI.js} +3 -3
  31. package/dist/cdn/{4SF42JCK.js → 4PMO37VX.js} +4 -4
  32. package/dist/cdn/{36RPCHBW.js → 4RSWECR2.js} +4 -4
  33. package/dist/cdn/4SPV77R7.js +6 -0
  34. package/dist/cdn/4TIB4MUE.js +4 -0
  35. package/dist/cdn/4UBZI6H4.js +4 -0
  36. package/dist/cdn/{4527TPFQ.js → 4YPZC3SC.js} +2 -2
  37. package/dist/cdn/{TKDGIQNC.js → 52CFR4FY.js} +4 -4
  38. package/dist/cdn/{7NDRZHL6.js → 57GJVOPC.js} +3 -3
  39. package/dist/cdn/5BVTK7W7.js +294 -0
  40. package/dist/cdn/{7WZE34BF.js → 5CMVRFP2.js} +3 -3
  41. package/dist/cdn/{RWQELBMY.js → 5FRA4XTD.js} +3 -3
  42. package/dist/cdn/{HOTDMMJJ.js → 5JLZNB5T.js} +3 -3
  43. package/dist/cdn/5MCVEF6T.js +18 -0
  44. package/dist/cdn/5SPXP7OA.js +4 -0
  45. package/dist/cdn/{H4HFWY3H.js → 5ZCCNW3O.js} +3 -3
  46. package/dist/cdn/{GE2KFI4B.js → 643TMSPT.js} +3 -3
  47. package/dist/cdn/6A467XYI.js +4 -0
  48. package/dist/cdn/6EADJLFD.js +4 -0
  49. package/dist/cdn/{DSA7P4FN.js → 6KNAAPD7.js} +4 -4
  50. package/dist/cdn/{IVWP7URA.js → 6P3R6TWO.js} +3 -3
  51. package/dist/cdn/6PPTO6S3.js +18 -0
  52. package/dist/cdn/{RCDWSNVF.js → 6QCLIAW4.js} +3 -3
  53. package/dist/cdn/72AKOONQ.js +18 -0
  54. package/dist/cdn/72OOEYKH.js +18 -0
  55. package/dist/cdn/{RYQCNLW7.js → 74BIDOVU.js} +3 -3
  56. package/dist/cdn/{ODVL6BLS.js → 75RBPT4I.js} +3 -3
  57. package/dist/cdn/7EQTPI6S.js +18 -0
  58. package/dist/cdn/{N5MNRNS4.js → 7HYIF2AM.js} +3 -3
  59. package/dist/cdn/7ONRREX7.js +4 -0
  60. package/dist/cdn/7YOP5RPI.js +4 -0
  61. package/dist/cdn/{EV22N3KD.js → 7Z2ZZO4J.js} +3 -3
  62. package/dist/cdn/A2XGC2XD.js +4 -0
  63. package/dist/cdn/{IAHPQU5I.js → A4RGKVUV.js} +3 -3
  64. package/dist/cdn/{Z4FNCV4E.js → A5MPX75A.js} +3 -3
  65. package/dist/cdn/A5YDOTO7.js +8 -0
  66. package/dist/cdn/{RC3IVWI3.js → AAKWBZCL.js} +2 -2
  67. package/dist/cdn/{GJ2UG6YP.js → ADCQDBN4.js} +3 -3
  68. package/dist/cdn/{WQKEPPJH.js → ADW2XIW4.js} +2 -2
  69. package/dist/cdn/{MURI73WZ.js → AH2HQH4E.js} +3 -3
  70. package/dist/cdn/{SUSAZ65X.js → AK6ON7DB.js} +3 -3
  71. package/dist/cdn/AM2AI6MS.js +5 -0
  72. package/dist/cdn/{OTYGSW7W.js → AMGVTGKQ.js} +3 -3
  73. package/dist/cdn/AOCVFEIQ.js +4 -0
  74. package/dist/cdn/AOWA2AZQ.js +4 -0
  75. package/dist/cdn/APIMARV7.js +18 -0
  76. package/dist/cdn/AR3U6TSD.js +4 -0
  77. package/dist/cdn/ARFLHAGD.js +4 -0
  78. package/dist/cdn/ASBZNVPC.js +18 -0
  79. package/dist/cdn/{S5TXHJGZ.js → AVA5QVU2.js} +3 -3
  80. package/dist/cdn/AWQPMZLL.js +18 -0
  81. package/dist/cdn/AY7IK4RK.js +18 -0
  82. package/dist/cdn/B33KRB3L.js +4 -0
  83. package/dist/cdn/B7GPWN3T.js +4 -0
  84. package/dist/cdn/{UCI3QQAA.js → B7MFQJBB.js} +2 -2
  85. package/dist/cdn/{7ATYJT4O.js → BFSXMTKW.js} +3 -3
  86. package/dist/cdn/{NTJ65ON3.js → BG27OJBT.js} +3 -3
  87. package/dist/cdn/{Z3XBAPZC.js → BGIYWXGF.js} +2 -2
  88. package/dist/cdn/BOC3JHHJ.js +18 -0
  89. package/dist/cdn/BYJWVMEI.js +4 -0
  90. package/dist/cdn/{WBAN3UIC.js → BYZPDGIL.js} +3 -3
  91. package/dist/cdn/{7OEQCUDV.js → C7DUXXD3.js} +2 -2
  92. package/dist/cdn/{VOFDMTBC.js → C7L5TIYI.js} +3 -3
  93. package/dist/cdn/{JMMD7YBL.js → CA6EE6KQ.js} +3 -3
  94. package/dist/cdn/{34BPQSHF.js → CJKIUVFT.js} +3 -3
  95. package/dist/cdn/CUTWA2HF.js +4 -0
  96. package/dist/cdn/CY2MIOJN.js +4 -0
  97. package/dist/cdn/{M6GEH5RY.js → D35BLKR3.js} +3 -3
  98. package/dist/cdn/DC4UGQFD.js +4 -0
  99. package/dist/cdn/{IS4CHLDX.js → DCHRUUUX.js} +3 -3
  100. package/dist/cdn/DIBDPEA6.js +4 -0
  101. package/dist/cdn/DNWGIXXT.js +4 -0
  102. package/dist/cdn/{TVGUICDI.js → DP3S6KA3.js} +3 -3
  103. package/dist/cdn/{VIRNYXF5.js → DXJEOQCH.js} +3 -3
  104. package/dist/cdn/{3RLVYGV7.js → DZNTDZ24.js} +4 -4
  105. package/dist/cdn/E3NR4YOE.js +4 -0
  106. package/dist/cdn/{AC7K2P6S.js → EFUMGP3I.js} +3 -3
  107. package/dist/cdn/{G2PAP4HL.js → EP3R46LX.js} +4 -4
  108. package/dist/cdn/ERTZ6M46.js +4 -0
  109. package/dist/cdn/{U4LWP3KK.js → EU3Y2SAR.js} +2 -2
  110. package/dist/cdn/{G7LK4PDL.js → EUIE25QG.js} +3 -3
  111. package/dist/cdn/EXMV37QM.js +4 -0
  112. package/dist/cdn/EYQQR5HY.js +4 -0
  113. package/dist/cdn/EYVBQ4G4.js +4 -0
  114. package/dist/cdn/{CYHKUA3T.js → F3D65BRW.js} +3 -3
  115. package/dist/cdn/F6Y7C5KP.js +4 -0
  116. package/dist/cdn/{QQPQDFEM.js → FEQ4AT3P.js} +3 -3
  117. package/dist/cdn/{I3SHQQXU.js → FHDBHLB5.js} +3 -3
  118. package/dist/cdn/FHNTUSFH.js +4 -0
  119. package/dist/cdn/{WCVUN6XF.js → FS3XGDFG.js} +3 -3
  120. package/dist/cdn/FSPGUSSO.js +29 -0
  121. package/dist/cdn/FUKJHT5H.js +4 -0
  122. package/dist/cdn/{WNFUARBO.js → FWW6GXHG.js} +3 -3
  123. package/dist/cdn/FXFX5L3X.js +4 -0
  124. package/dist/cdn/GBDK7FHD.js +3 -0
  125. package/dist/cdn/{QZAU4Z6W.js → GF52MLTL.js} +3 -3
  126. package/dist/cdn/GLZTL7RA.js +4 -0
  127. package/dist/cdn/{S3AWAGTI.js → GVBOBWPJ.js} +3 -3
  128. package/dist/cdn/{OG4FHSPI.js → H272DO6V.js} +2 -2
  129. package/dist/cdn/{SBX54Z43.js → H3UGTCXB.js} +3 -3
  130. package/dist/cdn/{M4VZ4CMY.js → H5A32K7K.js} +3 -3
  131. package/dist/cdn/{33UPFZYZ.js → H5TWBIAR.js} +3 -3
  132. package/dist/cdn/HDQF6VWQ.js +4 -0
  133. package/dist/cdn/HETMWJIP.js +9 -0
  134. package/dist/cdn/{LG2N3IDQ.js → HIKKZ25D.js} +3 -3
  135. package/dist/cdn/HJB23WDQ.js +18 -0
  136. package/dist/cdn/{E4626BS2.js → HJO2CQWJ.js} +3 -3
  137. package/dist/cdn/HJYJB5W7.js +4 -0
  138. package/dist/cdn/{MK7N6OTA.js → HK4XTNBP.js} +2 -2
  139. package/dist/cdn/HKN3HPEK.js +4 -0
  140. package/dist/cdn/{W7Z3ORQY.js → HMOHKHAT.js} +3 -3
  141. package/dist/cdn/I57GNKUQ.js +4 -0
  142. package/dist/cdn/{JOWT5YJ4.js → I6WXPX3C.js} +3 -3
  143. package/dist/cdn/{5JHZFHQW.js → IF2ZKI6T.js} +3 -3
  144. package/dist/cdn/IH7ADVLR.js +4 -0
  145. package/dist/cdn/{YXHSDCRJ.js → ISALH4VC.js} +3 -3
  146. package/dist/cdn/{WZ764LLN.js → IZJLYME2.js} +2 -2
  147. package/dist/cdn/{4J5HYMPQ.js → JE2TWCAC.js} +4 -4
  148. package/dist/cdn/{TIUXVXYM.js → JEOSE5RW.js} +3 -3
  149. package/dist/cdn/{LUCYOE4G.js → JH4YZBYG.js} +3 -3
  150. package/dist/cdn/{HKKUMEH5.js → JJULCE5N.js} +2 -2
  151. package/dist/cdn/{ZLTHON4G.js → JKJSY7DJ.js} +3 -3
  152. package/dist/cdn/{FKCBARKI.js → JQ5ZHTF2.js} +3 -3
  153. package/dist/cdn/JSKKYZHM.js +18 -0
  154. package/dist/cdn/{PLTCACVO.js → JURDSMKY.js} +3 -3
  155. package/dist/cdn/{UR7ODANG.js → JWMNXRYC.js} +3 -3
  156. package/dist/cdn/K25LOYJZ.js +18 -0
  157. package/dist/cdn/{5WNLR3DS.js → K5BGQ3OZ.js} +4 -4
  158. package/dist/cdn/{GUN44VYU.js → K5MNQDI2.js} +3 -3
  159. package/dist/cdn/{JJJAHCRO.js → K5UZCUIP.js} +3 -3
  160. package/dist/cdn/{22F7LFMG.js → KBMAILOS.js} +3 -3
  161. package/dist/cdn/{MO5VIHBL.js → KCHTD25J.js} +3 -3
  162. package/dist/cdn/KDKEERTI.js +4 -0
  163. package/dist/cdn/KGAHJ54L.js +18 -0
  164. package/dist/cdn/{D2SOXDMW.js → KHDYOQUJ.js} +4 -4
  165. package/dist/cdn/{5JYWXCER.js → KPA6IPU7.js} +3 -3
  166. package/dist/cdn/{7OZSPB2F.js → KSIFYNKF.js} +4 -4
  167. package/dist/cdn/{76DZHGT4.js → KSJPYPQO.js} +3 -3
  168. package/dist/cdn/{CXOHKJLR.js → KT5WRAHK.js} +2 -2
  169. package/dist/cdn/{A4L4EUDH.js → KTXVM52W.js} +3 -3
  170. package/dist/cdn/{S6GQFWK7.js → KVFCBXED.js} +4 -4
  171. package/dist/cdn/{J252EEIH.js → KWAIKYS3.js} +3 -3
  172. package/dist/cdn/{TXB56MNF.js → KWLCMSMA.js} +3 -3
  173. package/dist/cdn/{5CGYAFLG.js → KX5WGRIQ.js} +3 -3
  174. package/dist/cdn/{3LJQBCLM.js → L3PU33PW.js} +4 -4
  175. package/dist/cdn/{UVRRN3AM.js → L6QFXG3S.js} +3 -3
  176. package/dist/cdn/LFYHIKU3.js +4 -0
  177. package/dist/cdn/{W7HZRPHM.js → LQQXXTMC.js} +3 -3
  178. package/dist/cdn/{AGGLKLN3.js → LRGKVD4T.js} +3 -3
  179. package/dist/cdn/{YEFAWRXP.js → MHXAIQAV.js} +3 -3
  180. package/dist/cdn/MIIMDMHL.js +4 -0
  181. package/dist/cdn/MO2JO46H.js +4 -0
  182. package/dist/cdn/{7244YR36.js → MSFLB63B.js} +3 -3
  183. package/dist/cdn/{PKKVL46F.js → N4LNMEDY.js} +3 -3
  184. package/dist/cdn/{WV2ZROZJ.js → N62UO6II.js} +3 -3
  185. package/dist/cdn/N6NAF62S.js +4 -0
  186. package/dist/cdn/{AYBHICHM.js → NBU35YHR.js} +4 -4
  187. package/dist/cdn/{N54CIKSY.js → NBZYKYQZ.js} +3 -3
  188. package/dist/cdn/NCLQJSMX.js +18 -0
  189. package/dist/cdn/{M35TRRGF.js → NEO6JGNW.js} +2 -2
  190. package/dist/cdn/{PGB7D5V5.js → NO3D7QT7.js} +3 -3
  191. package/dist/cdn/{ZV3QGDX6.js → NTOLQYQU.js} +3 -3
  192. package/dist/cdn/NYUDOFOD.js +4 -0
  193. package/dist/cdn/{GFTGPFHL.js → O7LMFSMD.js} +3 -3
  194. package/dist/cdn/{KQIW24JY.js → OB7VIGCH.js} +3 -3
  195. package/dist/cdn/{HM7EBFPG.js → OOZKB3ZN.js} +4 -4
  196. package/dist/cdn/{2QFMILDU.js → OQU4LYMF.js} +3 -3
  197. package/dist/cdn/OSUVDV6H.js +4 -0
  198. package/dist/cdn/{64ETTMNQ.js → PIB7ZZVG.js} +3 -3
  199. package/dist/cdn/PIKKLXM7.js +18 -0
  200. package/dist/cdn/{PNZFKJGE.js → PQTSGLNC.js} +3 -3
  201. package/dist/cdn/{GGBJCIO7.js → PQUXZAPF.js} +3 -3
  202. package/dist/cdn/{ZLU7K6TK.js → PV3AWYMW.js} +3 -3
  203. package/dist/cdn/{R5UFCXCH.js → Q3MXWDPL.js} +3 -3
  204. package/dist/cdn/QA2YCJ4O.js +4 -0
  205. package/dist/cdn/{M7HD332R.js → QB6N6BBC.js} +2 -2
  206. package/dist/cdn/{QNXFXUZA.js → QERJ6PIW.js} +3 -3
  207. package/dist/cdn/{GKBVNMEW.js → QLUP4VRI.js} +3 -3
  208. package/dist/cdn/QR5GDMMI.js +18 -0
  209. package/dist/cdn/QVENWOO2.js +4 -0
  210. package/dist/cdn/{CGZZGJLP.js → QYFSBDDP.js} +3 -3
  211. package/dist/cdn/{EW3T5VLB.js → R4SJJIO3.js} +3 -3
  212. package/dist/cdn/{56FAI7QX.js → R4YCPJ6L.js} +4 -4
  213. package/dist/cdn/R5SDMUXC.js +4 -0
  214. package/dist/cdn/{6U4PV22I.js → R6PTVOZ7.js} +2 -2
  215. package/dist/cdn/{C6WPV722.js → R7PTJALL.js} +3 -3
  216. package/dist/cdn/{VTS75E4I.js → RHAMAZRC.js} +4 -4
  217. package/dist/cdn/{RIQFARZP.js → RIWMTGJG.js} +3 -3
  218. package/dist/cdn/{UMIQ4XRZ.js → RKWOVJQK.js} +3 -3
  219. package/dist/cdn/{FLX4QZPY.js → RKYG5W3S.js} +5 -5
  220. package/dist/cdn/{OQJGVRY2.js → RQNJFE3E.js} +3 -3
  221. package/dist/cdn/RTDSKN7R.js +4 -0
  222. package/dist/cdn/{DHVPMGLT.js → RTG6AS6O.js} +3 -3
  223. package/dist/cdn/{2RWXUIPE.js → RW7QCD4F.js} +3 -3
  224. package/dist/cdn/RY3EYSFT.js +4 -0
  225. package/dist/cdn/S3TN6CM3.js +18 -0
  226. package/dist/cdn/{TENNMXGF.js → S4N6CMM4.js} +2 -2
  227. package/dist/cdn/{H72WOGJ7.js → SBBYIAQT.js} +3 -3
  228. package/dist/cdn/SEILZAED.js +4 -0
  229. package/dist/cdn/{6XYUDJQ2.js → SFNRHY6G.js} +2 -2
  230. package/dist/cdn/{AYDTR35F.js → SHNFODTH.js} +4 -4
  231. package/dist/cdn/{RVTHLBJL.js → SJIT5M3S.js} +3 -3
  232. package/dist/cdn/{SHWG5PCG.js → SJKDQVYZ.js} +3 -3
  233. package/dist/cdn/{7YFBO4YO.js → TEH3EUZ4.js} +3 -3
  234. package/dist/cdn/{CFPXLHXR.js → TO5I7SJD.js} +3 -3
  235. package/dist/cdn/{FDNO4BVO.js → TSC436KC.js} +4 -4
  236. package/dist/cdn/{4ULTYKHN.js → U5YGMCQ4.js} +3 -3
  237. package/dist/cdn/U6H7FPZF.js +4 -0
  238. package/dist/cdn/{43R5NRNV.js → UBCWEODS.js} +2 -2
  239. package/dist/cdn/{AQZ3QIKE.js → UCURZHST.js} +3 -3
  240. package/dist/cdn/UDXPAJPC.js +81 -0
  241. package/dist/cdn/{XXM424DO.js → UGOSMDSY.js} +3 -3
  242. package/dist/cdn/{2A6DDRTH.js → UH4VIVOW.js} +3 -3
  243. package/dist/cdn/{KJOPUX6H.js → UHQPR2Z7.js} +3 -3
  244. package/dist/cdn/{CJFK6TKW.js → UOOG3U5R.js} +3 -3
  245. package/dist/cdn/{7B2MAX64.js → UQGDAXCI.js} +2 -2
  246. package/dist/cdn/{5QHONC74.js → UT7SAFAT.js} +3 -3
  247. package/dist/cdn/UW764P2Z.js +4 -0
  248. package/dist/cdn/{76JQ5L7D.js → UYXBFGVH.js} +2 -2
  249. package/dist/cdn/{I3ZD6IV4.js → V6E6GKRI.js} +2 -2
  250. package/dist/cdn/{XFM3FD2A.js → V6KCSC7C.js} +3 -3
  251. package/dist/cdn/{FZV7IALP.js → VA34CFR6.js} +4 -4
  252. package/dist/cdn/VBD2TD57.js +4 -0
  253. package/dist/cdn/{RMU2WXMJ.js → VE3XMXHB.js} +4 -4
  254. package/dist/cdn/VKGJAPNM.js +4 -0
  255. package/dist/cdn/VMLP2N3H.js +4 -0
  256. package/dist/cdn/{NNNUOKAQ.js → VNSEZL7N.js} +4 -4
  257. package/dist/cdn/VRV234EZ.js +4 -0
  258. package/dist/cdn/VRXLMGXU.js +4 -0
  259. package/dist/cdn/{HPUAGDRV.js → VS5ENMWB.js} +3 -3
  260. package/dist/cdn/VULFBK5I.js +379 -0
  261. package/dist/cdn/VZZMNDQT.js +4 -0
  262. package/dist/cdn/W5OOALH7.js +4 -0
  263. package/dist/cdn/{7NMV3XFP.js → WB2BLNBK.js} +2 -2
  264. package/dist/cdn/{JUVS4QTT.js → WBA5I2LS.js} +3 -3
  265. package/dist/cdn/{YC7HMH6M.js → WKX6ZFFH.js} +3 -3
  266. package/dist/cdn/{PP6K5WOA.js → WQHLWDDX.js} +3 -3
  267. package/dist/cdn/{AOOQAYSR.js → WU2UAJRL.js} +3 -3
  268. package/dist/cdn/WVJ4W65Q.js +4 -0
  269. package/dist/cdn/{FFJCM7BG.js → WZLKEYSW.js} +3 -3
  270. package/dist/cdn/{ZEPG4DE3.js → X274AXPH.js} +3 -3
  271. package/dist/cdn/{2LVUHNL4.js → X5FEIO3K.js} +4 -4
  272. package/dist/cdn/XBAV4FHC.js +4 -0
  273. package/dist/cdn/XIX6F4S2.js +4 -0
  274. package/dist/cdn/{2IRIOH44.js → XJMXNPLZ.js} +3 -3
  275. package/dist/cdn/XVUQRP24.js +4 -0
  276. package/dist/cdn/{B4PHULG7.js → Y3A4SAQS.js} +3 -3
  277. package/dist/cdn/{TYVJSPBM.js → Y6FQBFJX.js} +3 -3
  278. package/dist/cdn/YF53VJZO.js +4 -0
  279. package/dist/cdn/YIM6J4NU.js +4 -0
  280. package/dist/cdn/{35ZVLYI7.js → YMD26PDD.js} +3 -3
  281. package/dist/cdn/{WFUAPKTB.js → YVWUFTSW.js} +3 -3
  282. package/dist/cdn/{IPXTSW43.js → YWBNDBUN.js} +3 -3
  283. package/dist/cdn/{ZRLT4TEH.js → YXHBNWUK.js} +3 -3
  284. package/dist/cdn/{65NNPWV7.js → Z23LS2SM.js} +2 -2
  285. package/dist/cdn/{EX6HJQ4X.js → Z2SCCFO4.js} +3 -3
  286. package/dist/cdn/Z42YUKU2.js +4 -0
  287. package/dist/cdn/ZBVOYBCH.js +4 -0
  288. package/dist/cdn/ZDFNLOHU.js +4 -0
  289. package/dist/cdn/ZMECVIEZ.js +4 -0
  290. package/dist/cdn/{D2XDABCT.js → ZNB3TLHZ.js} +3 -3
  291. package/dist/cdn/ZPFJXRFD.js +18 -0
  292. package/dist/cdn/ZSELGBFW.js +4 -0
  293. package/dist/cdn/{5WAZGRRD.js → ZWAN2LQ2.js} +3 -3
  294. package/dist/cdn/{EEECQWVR.js → ZYPY7D74.js} +3 -3
  295. package/dist/cdn/assets/solution-article-card/t9n/messages.en.json +1 -1
  296. package/dist/cdn/assets/solution-article-card/t9n/messages.json +1 -1
  297. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +1 -1
  298. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +1 -1
  299. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.en.json +1 -1
  300. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.json +1 -1
  301. package/dist/cdn/assets/solution-item-accordion/t9n/messages.en.json +1 -1
  302. package/dist/cdn/assets/solution-item-accordion/t9n/messages.json +1 -1
  303. package/dist/cdn/assets/solution-snapshot-gallery/t9n/messages.en.json +1 -1
  304. package/dist/cdn/assets/solution-snapshot-gallery/t9n/messages.json +1 -1
  305. package/dist/cdn/assets/solution-social-share/t9n/messages.en.json +1 -0
  306. package/dist/cdn/assets/solution-social-share/t9n/messages.json +1 -0
  307. package/dist/cdn/assets/solutions-all-panel/t9n/messages.en.json +1 -1
  308. package/dist/cdn/assets/solutions-all-panel/t9n/messages.json +1 -1
  309. package/dist/cdn/assets/solutions-articles/t9n/messages.en.json +1 -1
  310. package/dist/cdn/assets/solutions-articles/t9n/messages.json +1 -1
  311. package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.en.json +1 -1
  312. package/dist/cdn/assets/solutions-deployed-panel/t9n/messages.json +1 -1
  313. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.en.json +1 -1
  314. package/dist/cdn/assets/solutions-filter-panel/t9n/messages.json +1 -1
  315. package/dist/cdn/index.js +3 -3
  316. package/dist/cdn/main.css +1 -1
  317. package/dist/chunks/Auth.js +2 -2
  318. package/dist/chunks/appConfig.js +2 -2
  319. package/dist/chunks/cardFetchingUtils.js +2 -2
  320. package/dist/chunks/common.js +2 -2
  321. package/dist/chunks/deployAppContexts.js +2 -2
  322. package/dist/chunks/downloadUtils.js +2 -2
  323. package/dist/chunks/helpers.js +46 -33
  324. package/dist/chunks/index.js +325 -413
  325. package/dist/chunks/interfaces.js +2 -2
  326. package/dist/chunks/loadModules.js +2 -2
  327. package/dist/chunks/mapViewUtils.js +2 -2
  328. package/dist/chunks/pciUtils.js +2 -2
  329. package/dist/chunks/popupUtils.js +2 -2
  330. package/dist/chunks/prepareDataForSolutionDisplay.js +2 -2
  331. package/dist/chunks/privilegeUtils.js +2 -2
  332. package/dist/chunks/publicNotificationStore.js +2 -2
  333. package/dist/chunks/queryUtils.js +2 -2
  334. package/dist/chunks/runtime.js +4 -4
  335. package/dist/chunks/solution-store.js +2 -2
  336. package/dist/chunks/templates.js +2 -2
  337. package/dist/chunks/useT9n.js +2 -2
  338. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +1 -1
  339. package/dist/components/arcgis-solutions-assistant/customElement.js +9 -10
  340. package/dist/components/basemap-gallery/customElement.d.ts +1 -1
  341. package/dist/components/basemap-gallery/customElement.js +9 -10
  342. package/dist/components/buffer-tools/customElement.d.ts +1 -1
  343. package/dist/components/buffer-tools/customElement.js +9 -10
  344. package/dist/components/card-manager/customElement.d.ts +1 -1
  345. package/dist/components/card-manager/customElement.js +15 -16
  346. package/dist/components/consent-manager/customElement.d.ts +1 -1
  347. package/dist/components/consent-manager/customElement.js +1780 -1724
  348. package/dist/components/create-feature/customElement.d.ts +1 -1
  349. package/dist/components/create-feature/customElement.js +7 -8
  350. package/dist/components/create-related-feature/customElement.d.ts +1 -1
  351. package/dist/components/create-related-feature/customElement.js +8 -9
  352. package/dist/components/crowdsource-manager/customElement.d.ts +4 -2
  353. package/dist/components/crowdsource-manager/customElement.js +10 -11
  354. package/dist/components/crowdsource-manager/index.d.ts +1 -1
  355. package/dist/components/crowdsource-manager/index.js +1 -1
  356. package/dist/components/crowdsource-reporter/customElement.d.ts +1 -1
  357. package/dist/components/crowdsource-reporter/customElement.js +8 -9
  358. package/dist/components/crowdsource-reporter/index.d.ts +2 -2
  359. package/dist/components/crowdsource-reporter/index.js +2 -2
  360. package/dist/components/deduct-calculator/customElement.d.ts +1 -1
  361. package/dist/components/deduct-calculator/customElement.js +9 -10
  362. package/dist/components/delete-button/customElement.d.ts +1 -1
  363. package/dist/components/delete-button/customElement.js +7 -8
  364. package/dist/components/delete-dialog/customElement.d.ts +1 -1
  365. package/dist/components/delete-dialog/customElement.js +9 -10
  366. package/dist/components/edit-card/customElement.d.ts +1 -1
  367. package/dist/components/edit-card/customElement.js +10 -11
  368. package/dist/components/feature-details/customElement.d.ts +1 -1
  369. package/dist/components/feature-details/customElement.js +8 -9
  370. package/dist/components/feature-list/customElement.d.ts +1 -1
  371. package/dist/components/feature-list/customElement.js +9 -10
  372. package/dist/components/field-selection/customElement.d.ts +1 -1
  373. package/dist/components/field-selection/customElement.js +10 -11
  374. package/dist/components/floor-filter/customElement.d.ts +1 -1
  375. package/dist/components/floor-filter/customElement.js +9 -10
  376. package/dist/components/info-card/customElement.d.ts +1 -1
  377. package/dist/components/info-card/customElement.js +8 -9
  378. package/dist/components/json-editor/customElement.d.ts +1 -1
  379. package/dist/components/json-editor/customElement.js +10 -11
  380. package/dist/components/layer-list/customElement.d.ts +1 -1
  381. package/dist/components/layer-list/customElement.js +7 -8
  382. package/dist/components/layer-table/customElement.d.ts +4 -2
  383. package/dist/components/layer-table/customElement.js +7 -8
  384. package/dist/components/layer-table/index.d.ts +1 -1
  385. package/dist/components/layer-table/index.js +1 -1
  386. package/dist/components/map-card/customElement.d.ts +1 -1
  387. package/dist/components/map-card/customElement.js +7 -8
  388. package/dist/components/map-card/index.d.ts +1 -1
  389. package/dist/components/map-card/index.js +1 -1
  390. package/dist/components/map-draw-tools/customElement.d.ts +1 -1
  391. package/dist/components/map-draw-tools/customElement.js +10 -11
  392. package/dist/components/map-fullscreen/customElement.d.ts +1 -1
  393. package/dist/components/map-fullscreen/customElement.js +12 -13
  394. package/dist/components/map-layer-picker/customElement.d.ts +1 -1
  395. package/dist/components/map-layer-picker/customElement.js +11 -12
  396. package/dist/components/map-legend/customElement.d.ts +1 -1
  397. package/dist/components/map-legend/customElement.js +9 -10
  398. package/dist/components/map-picker/customElement.d.ts +1 -1
  399. package/dist/components/map-picker/customElement.js +7 -8
  400. package/dist/components/map-search/customElement.d.ts +1 -1
  401. package/dist/components/map-search/customElement.js +11 -12
  402. package/dist/components/map-select-tools/customElement.d.ts +1 -1
  403. package/dist/components/map-select-tools/customElement.js +9 -10
  404. package/dist/components/map-tools/customElement.d.ts +1 -1
  405. package/dist/components/map-tools/customElement.js +6 -7
  406. package/dist/components/pci-calculator/customElement.d.ts +1 -1
  407. package/dist/components/pci-calculator/customElement.js +11 -12
  408. package/dist/components/pdf-download/customElement.d.ts +1 -1
  409. package/dist/components/pdf-download/customElement.js +24 -25
  410. package/dist/components/public-notification/customElement.d.ts +1 -1
  411. package/dist/components/public-notification/customElement.js +20 -21
  412. package/dist/components/refine-selection/customElement.d.ts +1 -1
  413. package/dist/components/refine-selection/customElement.js +17 -18
  414. package/dist/components/selection-tool/customElement.d.ts +1 -1
  415. package/dist/components/selection-tool/customElement.js +3 -3
  416. package/dist/components/solution-article-card/customElement.d.ts +33 -1
  417. package/dist/components/solution-article-card/customElement.js +24 -19
  418. package/dist/components/solution-article-card/index.d.ts +1 -0
  419. package/dist/components/solution-article-card/index.js +1 -0
  420. package/dist/components/solution-configuration/customElement.d.ts +1 -1
  421. package/dist/components/solution-configuration/customElement.js +11 -12
  422. package/dist/components/solution-configure-dialog/customElement.d.ts +6 -7
  423. package/dist/components/solution-configure-dialog/customElement.js +121 -46
  424. package/dist/components/solution-configure-dialog/index.d.ts +1 -0
  425. package/dist/components/solution-configure-dialog/index.js +1 -0
  426. package/dist/components/solution-configure-titles/customElement.d.ts +3 -1
  427. package/dist/components/solution-configure-titles/customElement.js +39 -23
  428. package/dist/components/solution-contents/customElement.d.ts +1 -1
  429. package/dist/components/solution-contents/customElement.js +8 -9
  430. package/dist/components/solution-delete-dialog/customElement.d.ts +9 -11
  431. package/dist/components/solution-delete-dialog/customElement.js +55 -59
  432. package/dist/components/solution-deploy-dialog/customElement.d.ts +2 -10
  433. package/dist/components/solution-deploy-dialog/customElement.js +132 -83
  434. package/dist/components/solution-deployed-card/customElement.d.ts +1 -9
  435. package/dist/components/solution-deployed-card/customElement.js +29 -29
  436. package/dist/components/solution-deploying-dialog/customElement.d.ts +1 -1
  437. package/dist/components/solution-deploying-dialog/customElement.js +11 -12
  438. package/dist/components/solution-details-card/customElement.d.ts +1 -1
  439. package/dist/components/solution-details-card/customElement.js +9 -10
  440. package/dist/components/solution-details-panel/customElement.d.ts +1 -7
  441. package/dist/components/solution-details-panel/customElement.js +97 -91
  442. package/dist/components/solution-details-panel/index.d.ts +1 -0
  443. package/dist/components/solution-details-panel/index.js +1 -0
  444. package/dist/components/solution-item/customElement.d.ts +1 -1
  445. package/dist/components/solution-item/customElement.js +7 -8
  446. package/dist/components/solution-item-accordion/customElement.d.ts +1 -1
  447. package/dist/components/solution-item-accordion/customElement.js +8 -9
  448. package/dist/components/solution-item-details/customElement.d.ts +1 -1
  449. package/dist/components/solution-item-details/customElement.js +10 -11
  450. package/dist/components/solution-item-diagram/customElement.d.ts +1 -1
  451. package/dist/components/solution-item-diagram/customElement.js +9 -10
  452. package/dist/components/solution-item-icon/customElement.d.ts +1 -1
  453. package/dist/components/solution-item-icon/customElement.js +8 -9
  454. package/dist/components/solution-item-sharing/customElement.d.ts +1 -1
  455. package/dist/components/solution-item-sharing/customElement.js +14 -15
  456. package/dist/components/solution-organization-variables/customElement.d.ts +1 -1
  457. package/dist/components/solution-organization-variables/customElement.js +7 -8
  458. package/dist/components/solution-resource-item/customElement.d.ts +1 -1
  459. package/dist/components/solution-resource-item/customElement.js +15 -16
  460. package/dist/components/solution-snapshot-gallery/customElement.d.ts +1 -6
  461. package/dist/components/solution-snapshot-gallery/customElement.js +15 -15
  462. package/dist/components/solution-social-share/customElement.d.ts +117 -0
  463. package/dist/components/solution-social-share/customElement.js +178 -0
  464. package/dist/components/solution-social-share/index.d.ts +5 -0
  465. package/dist/components/solution-social-share/index.js +5 -0
  466. package/dist/components/solution-spatial-ref/customElement.d.ts +1 -1
  467. package/dist/components/solution-spatial-ref/customElement.js +19 -20
  468. package/dist/components/solution-template-data/customElement.d.ts +1 -1
  469. package/dist/components/solution-template-data/customElement.js +8 -9
  470. package/dist/components/solution-variables/customElement.d.ts +1 -1
  471. package/dist/components/solution-variables/customElement.js +8 -9
  472. package/dist/components/solutions-all-panel/customElement.d.ts +1 -9
  473. package/dist/components/solutions-all-panel/customElement.js +18 -18
  474. package/dist/components/solutions-all-shell/customElement.d.ts +3 -1
  475. package/dist/components/solutions-all-shell/customElement.js +19 -16
  476. package/dist/components/solutions-article-panel/customElement.d.ts +13 -1
  477. package/dist/components/solutions-article-panel/customElement.js +18 -19
  478. package/dist/components/solutions-articles/customElement.d.ts +3 -1
  479. package/dist/components/solutions-articles/customElement.js +54 -16
  480. package/dist/components/solutions-articles/index.d.ts +10 -0
  481. package/dist/components/solutions-articles/index.js +10 -0
  482. package/dist/components/solutions-articles-shell/customElement.d.ts +1 -1
  483. package/dist/components/solutions-articles-shell/customElement.js +10 -11
  484. package/dist/components/solutions-articles-shell/index.d.ts +3 -0
  485. package/dist/components/solutions-articles-shell/index.js +3 -0
  486. package/dist/components/solutions-deployed-panel/customElement.d.ts +3 -11
  487. package/dist/components/solutions-deployed-panel/customElement.js +44 -40
  488. package/dist/components/solutions-deployed-panel/index.d.ts +1 -0
  489. package/dist/components/solutions-deployed-panel/index.js +1 -0
  490. package/dist/components/solutions-deployed-shell/customElement.d.ts +1 -1
  491. package/dist/components/solutions-deployed-shell/customElement.js +16 -16
  492. package/dist/components/solutions-filter-panel/customElement.d.ts +1 -1
  493. package/dist/components/solutions-filter-panel/customElement.js +13 -12
  494. package/dist/components/spatial-ref/customElement.d.ts +1 -1
  495. package/dist/components/spatial-ref/customElement.js +8 -9
  496. package/dist/components/store-manager/customElement.d.ts +1 -1
  497. package/dist/components/store-manager/customElement.js +2 -2
  498. package/dist/docs/api.json +1351 -474
  499. package/dist/docs/docs.json +990 -484
  500. package/dist/docs/vscode.css-custom-data.json +30 -1
  501. package/dist/docs/vscode.html-custom-data.json +313 -16
  502. package/dist/docs/web-types.json +528 -104
  503. package/dist/index.d.ts +24 -2
  504. package/dist/index.js +2 -2
  505. package/dist/loader.js +14 -13
  506. package/dist/types/lumina.d.ts +18 -9
  507. package/dist/types/preact.d.ts +19 -9
  508. package/dist/types/react.d.ts +20 -9
  509. package/dist/types/stencil.d.ts +18 -9
  510. package/dist/utils/helpers.d.ts +20 -1
  511. package/dist/utils/interfaces.d.ts +27 -23
  512. package/package.json +33 -28
  513. package/dist/cdn/25FEJN5O.js +0 -4
  514. package/dist/cdn/25JM7WUJ.js +0 -4
  515. package/dist/cdn/2BDPGGKC.js +0 -18
  516. package/dist/cdn/2TT2EKLS.js +0 -4
  517. package/dist/cdn/2VXYY4NW.js +0 -4
  518. package/dist/cdn/3IMXMLFS.js +0 -4
  519. package/dist/cdn/4HAO722I.js +0 -4
  520. package/dist/cdn/4UCCOTIL.js +0 -4
  521. package/dist/cdn/5S2FZKYO.js +0 -18
  522. package/dist/cdn/5TRSWX6M.js +0 -4
  523. package/dist/cdn/6LUI2X3G.js +0 -18
  524. package/dist/cdn/7M5YUYGE.js +0 -4
  525. package/dist/cdn/AXDYNDWC.js +0 -3
  526. package/dist/cdn/AYND4SCK.js +0 -4
  527. package/dist/cdn/B2AAEHPJ.js +0 -4
  528. package/dist/cdn/B5754CLI.js +0 -4
  529. package/dist/cdn/BRSXWNGO.js +0 -4
  530. package/dist/cdn/CBITJT5D.js +0 -82
  531. package/dist/cdn/CDBDE4TC.js +0 -18
  532. package/dist/cdn/CXN63GPC.js +0 -18
  533. package/dist/cdn/D2UIHI5N.js +0 -4
  534. package/dist/cdn/D3RXCR6Q.js +0 -6
  535. package/dist/cdn/DC2VXLYA.js +0 -4
  536. package/dist/cdn/DCYHSAL2.js +0 -4
  537. package/dist/cdn/DO5IRX2P.js +0 -4
  538. package/dist/cdn/DP2E5JFM.js +0 -4
  539. package/dist/cdn/DZ75SULS.js +0 -4
  540. package/dist/cdn/EL5KWKMD.js +0 -4
  541. package/dist/cdn/EPYFVSXR.js +0 -4
  542. package/dist/cdn/FQTZU3Z2.js +0 -29
  543. package/dist/cdn/G56M322A.js +0 -18
  544. package/dist/cdn/GFTMWJE2.js +0 -4
  545. package/dist/cdn/H36GDFY7.js +0 -4
  546. package/dist/cdn/H3C4GIDZ.js +0 -9
  547. package/dist/cdn/H3FM5UM6.js +0 -4
  548. package/dist/cdn/HCCTS5WV.js +0 -4
  549. package/dist/cdn/HNUCWI6T.js +0 -4
  550. package/dist/cdn/HR2HFJXC.js +0 -8
  551. package/dist/cdn/HRBMV6MS.js +0 -18
  552. package/dist/cdn/HZILY6RQ.js +0 -18
  553. package/dist/cdn/IHQISHAM.js +0 -4
  554. package/dist/cdn/IMFE25FS.js +0 -4
  555. package/dist/cdn/IMYZB3YV.js +0 -18
  556. package/dist/cdn/JAMFZUE3.js +0 -4
  557. package/dist/cdn/JRMGFAZK.js +0 -4
  558. package/dist/cdn/JYDRZHOB.js +0 -4
  559. package/dist/cdn/KQPN7NFG.js +0 -4
  560. package/dist/cdn/KUFJAMWI.js +0 -18
  561. package/dist/cdn/LIXHHHMQ.js +0 -3
  562. package/dist/cdn/ML3FDA7I.js +0 -4
  563. package/dist/cdn/MTDAXKJA.js +0 -4
  564. package/dist/cdn/MVAWCLJQ.js +0 -4
  565. package/dist/cdn/NTSPFMPN.js +0 -18
  566. package/dist/cdn/O4U6ZUNI.js +0 -4
  567. package/dist/cdn/OGRHFK6Y.js +0 -4
  568. package/dist/cdn/OOX6G6UE.js +0 -18
  569. package/dist/cdn/OZWDP6Y7.js +0 -4
  570. package/dist/cdn/PJSBBGLJ.js +0 -4
  571. package/dist/cdn/PSUWSWTK.js +0 -4
  572. package/dist/cdn/PWM7PIST.js +0 -18
  573. package/dist/cdn/Q5QONQ6T.js +0 -4
  574. package/dist/cdn/QBIXFYYE.js +0 -5
  575. package/dist/cdn/QH2LKILS.js +0 -4
  576. package/dist/cdn/QP26HSVE.js +0 -4
  577. package/dist/cdn/QU55HNGY.js +0 -25
  578. package/dist/cdn/QYU6USHT.js +0 -4
  579. package/dist/cdn/SCOCPPIV.js +0 -383
  580. package/dist/cdn/SMY4IACN.js +0 -4
  581. package/dist/cdn/T6PMIZLP.js +0 -4
  582. package/dist/cdn/TA3ZXQAF.js +0 -4
  583. package/dist/cdn/TBU33TUJ.js +0 -18
  584. package/dist/cdn/TNEFDIIG.js +0 -4
  585. package/dist/cdn/TTDNDVCB.js +0 -4
  586. package/dist/cdn/UDYWBQQB.js +0 -4
  587. package/dist/cdn/UITEOOYI.js +0 -4
  588. package/dist/cdn/UUY24OGE.js +0 -4
  589. package/dist/cdn/UZTSBHXN.js +0 -294
  590. package/dist/cdn/V3XFBVJ2.js +0 -4
  591. package/dist/cdn/VCL4EPUN.js +0 -18
  592. package/dist/cdn/VH4DOQZ4.js +0 -4
  593. package/dist/cdn/VJF6Y7HU.js +0 -4
  594. package/dist/cdn/VLNWSZVR.js +0 -4
  595. package/dist/cdn/VUZA56M3.js +0 -4
  596. package/dist/cdn/W3GV4JXP.js +0 -4
  597. package/dist/cdn/WBRXMEMP.js +0 -4
  598. package/dist/cdn/WIE3EFBI.js +0 -8
  599. package/dist/cdn/WN54HJON.js +0 -4
  600. package/dist/cdn/XYGVP2FK.js +0 -4
  601. package/dist/cdn/YMUVFR3U.js +0 -18
  602. package/dist/cdn/YQFYU4G2.js +0 -18
  603. package/dist/cdn/Z4WD3SG2.js +0 -4
  604. package/dist/cdn/ZUQZHS53.js +0 -18
  605. package/dist/cdn/ZY74MRCW.js +0 -4
@@ -1,18 +0,0 @@
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.5 */
4
- import{a as F,c as Y}from"./N54CIKSY.js";import e from"./FKCBARKI.js";import c from"./TXB56MNF.js";import{a as E}from"./D2XDABCT.js";import a from"./JAMFZUE3.js";import{a as O,b as H,e as N}from"./Z4WD3SG2.js";import{a as C,b as A,c as D}from"./H36GDFY7.js";import{H as m,J as y,K as k,c as M,pa as L,xb as I,yb as T}from"./FLX4QZPY.js";import"./2IRIOH44.js";import"./I3ZD6IV4.js";import"./RIQFARZP.js";import"./GKBVNMEW.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import"./2VXYY4NW.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import{k as R}from"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import{n as d,o as b}from"./76JQ5L7D.js";import{a as u,b as g}from"./OZWDP6Y7.js";import{a as S}from"./TA3ZXQAF.js";import{B as _,D as P,c as x,d as s,n as f,w as v,y as $,z as p}from"./D3RXCR6Q.js";import"./UITEOOYI.js";export default $arcgis.t(([{b:U},B,{b:q,c:V}])=>{var z=x`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.cursor-default{cursor:default}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:1px;border-bottom-style:solid}.row-margin-2{margin-inline-start:2rem;margin-inline-end:2rem}ul{list-style-type:disc;margin-block-start:0px;margin-block-end:0px}calcite-label{--calcite-label-margin-bottom: 0px}.padding-1{padding:1rem}.padding-bottom-1{padding-bottom:1rem}.padding-top-1{padding-top:1rem}.padding-top-1-2{padding-top:.5rem}.padding-end-1{padding-inline-end:1rem}.padding-end-2{padding-inline-end:2rem}.align-self-center{align-self:center}.align-items-center{align-items:center}.width-330{width:330px}.card-group{overflow:hidden;padding:.5rem}calcite-card{width:400px}@media (max-width: 800px){calcite-card{width:calc(50% - .5rem)}}@media (max-width: 400px){calcite-card{width:100%}}.max-height-240{max-height:240px}.max-height-320{max-height:320px}.scrollable-section{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.scrollable-section::-webkit-scrollbar{display:none}.display-none{display:none}.cursor-pointer{cursor:pointer}calcite-card:hover img{-webkit-filter:brightness(50%);filter:brightness(50%);-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{outline:2px solid var(--calcite-ui-brand);box-sizing:border-box;cursor:pointer;padding:2px}.hover-text{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.margin-inline-unset{margin-inline:unset}`;async function K(l,e,t){let i=t;return l&&(l?.IsEnterprisePortal&&await J("",e)&&i.push(d.NOTEBOOK),await U(e)?t.push(d.VELOCITY):l?.PortalUserPrivileges&&[b.VELOCITYFEEDS,b.VELOCITYBIGDATA,b.VELOCITYREALTIME].forEach(a=>{let o=t.indexOf(a)||-1;o!==-1&&t.splice(o,1)}),i=i.concat(W(X(l),Z(l))),i=i.concat(Q(l)),i=i.concat(await j(l))),Promise.resolve(i)}function W(l,e){let t=[];return l&&e?t=[d.TRACKINGADMINANDTRACKING,d.TRACKINGADMIN,d.TRACKING]:l&&!e?t=[d.TRACKINGADMIN]:!l&&e&&(t=[d.TRACKING]),t}function Q(l){return ee(l)?[d.HUBPREMIUM]:[]}async function j(l){let e=await T(l?.RestUserSession);return await I(e,l?.RestUserSession)?[d.WORKFLOW]:[]}async function J(l,e){let t=l+"/sharing/rest",i={authentication:e,portal:t,params:{f:"json"}};return M(`${t}/portals/self/servers`,i).then(a=>a?.servers?.find(o=>o.serverFunction.indexOf("NotebookServer")>-1),a=>(console.error(a),!1))}function X(l){let e=l?.PortalUserSubset;return e?.role==="org_admin"&&!e?.hasOwnProperty("roleId")}function Z(l){return l?.PortalSubset?.locationTrackingEnabled||!1}function ee(l){return l?.PortalSubset?.hubPremiumEnabled||!1}var w=class extends ${constructor(){super(),this.open=!1,this._hideScreenshotsScroll=!1,this._hideYouMayAlsoLikeScroll=!1,this.isMobile=!1,this._templates=[],this._translations=S({name:"solution-details-panel",blocking:!0}),this._allCards=[],this._authContextProvider=v({context:D}),this._configureLearnMore="",this._customDeploymentMappings={},this._deployDialogRef=u(),this._deployingDialogRef=u(),this._isMobileContextProvider=v({context:A}),this._privilegePopoverRef=u(),this._privileges=[],this._regexFsUrl="https?:\\/\\/.+FeatureServer\\b",this._regexID="\\b[0-9A-F]{32}\\b",this._screenshotsBaseHeight=240,this._screenshotsDialogRef=u(),this._screenshotsElement=u(),this._userOptions=[],this._userSessionContextProvider=v({context:C}),this._youMayAlsoLikeElement=u(),this._youMayAlsoLikeBaseHeight=320,this.templatesFetched=f(),this.itemPropertiesFetched=f(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"allCardsFetched",this._allCardsFetched)}static{this.properties={card:0,open:5,_hideScreenshotsScroll:16,_hideYouMayAlsoLikeScroll:16,isMobile:16,_itemProperties:16,_missingPrivilegeMessages:16,_templates:16,_translations:16}}static{this.styles=z}async connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 800px)"),this.listenOn(this._mediaQuery,"change",this._mediaQueryChange),this.listenOn(window,"calciteTabChange",this._cleanupPanel)}async load(){let e=new B(O,H,N);await e.init(),e.SignedIn||e.signIn(),this._authContextProvider.setValue(e),e.RestUserSession&&this._userSessionContextProvider.setValue(e.RestUserSession),this._userPrivileges=await this._getUserPrivileges()}loaded(){this._resizeObserver=new ResizeObserver(async()=>{this._onResize()}),this._screenshotsElement.value&&this._resizeObserver.observe(this._screenshotsElement.value)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}render(){let e="border-bottom row-margin-2 padding-bottom-1",t=this._getRelatedArticles(),i=this._getYouMayAlsoLikeCards();return s`<calcite-panel><div class=${`${e} padding-top-1`}>${this._getSolutionRow()}</div><div class=${p(e)}>${this._getScreenshotsRow()}</div><div class=${p(e)}>${this._getDescriptionRow()}</div><div class=${p(e)}>${this._getRequirementsRow()}</div><div class=${p(e)}>${this._getInformationProductsRow()}</div><div class=${p(e)}>${this._getReleaseNotesRow()}</div>${t.length>0?s`<div class=${p(e)}>${this._getRelatedArticlesRow(t)}</div>`:""}${i.length>0?s`<div class=${p(e)}>${this._getYouMayAlsoLikeRow(i)}</div>`:""}<solution-deploy-dialog .card=${this.card} @deployFailed=${this._closeDialogs} @deployProgressEnd=${this._closeDialogs} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${g(this._deployDialogRef)}></solution-deploy-dialog><solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${g(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} ${g(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel>`}_getSolutionRow(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=330"),t=this._itemProperties?.demoURL||"",i=this._missingPrivilegeMessages?.leadingMessages||[],a=i.length>0,o=this._missingPrivilegeMessages?.bulletedMessages||[],r=o.length>0,h=this._missingPrivilegeMessages?.trailingMessages||[],c=h.length>0;return s`<div class="display-flex flex-direction-row"><div class="padding-end-2"><img alt=${this.card?.title??_} class="width-330" src=${e??_}></div><div class="display-flex flex-direction-column"><div class="display-flex flex-direction-row"><h3 class="padding-end-1"><calcite-label scale=l>${this.card?.title}</calcite-label></h3><calcite-chip class="align-self-center" kind=brand .label=${this._translations.new} scale=s>${this._translations.new}</calcite-chip></div><span>${this.card?.snippet}</span><div class="display-flex flex-direction-row padding-top-1"><calcite-button class="padding-end-1" .disabled=${a||r||c} icon-end=arrow-bold-right icon-flip-rtl=end @click=${()=>this._openDeploy()}>${this._translations.deploy}</calcite-button><calcite-button appearance=outline class="padding-end-1" icon-end=video @click=${()=>this._openUrl(t)}>${this._translations.watchDemo}</calcite-button><calcite-button appearance=outline class="padding-end-1" icon-end=share @click=${()=>this._share()}>${this._translations.share}</calcite-button></div>${a||r||c?s`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(i,o,h)}</div>`:""}</div></div>`}_getMissingPrivilegesNotice(e,t,i){let a="solutions-missing-privileges-notice",o=this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges;return s`<div><calcite-notice class="margin-inline-unset" kind=warning open><div slot=message>${`${o}`}</div><calcite-action icon=information id=${a} slot=actions-end .text=${o}></calcite-action></calcite-notice><calcite-popover label overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${g(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column"><span class="padding-bottom-1">${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${this._getSpanMessages(e,"padding-bottom-1")}${this._getBulletedMessages(t)}${this._getSpanMessages(i,"padding-top-1")}</div></calcite-popover></div>`}_getSpanMessages(e,t){return e.length>0?e.map(i=>s`<span class=${p(t)}>${i}</span>`):""}_getBulletedMessages(e){return e.length>0?s`<ul>${e.map(t=>s`<li>${t}</li>`)}</ul>`:""}_getScreenshotsRow(){let e=this._hideScreenshotsScroll?"display-none":"";return s`<calcite-panel><div class="display-flex flex-direction-column">${this._getHeader(this._translations.screenshots)}<div class="scrollable-section max-height-240" @scroll=${()=>this._onScreenshotsScroll()} ${g(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${e}`} icon=arrow-down kind=inverse @click=${()=>{this._scrollSubsection(this._screenshotsBaseHeight,this._screenshotsElement.value)}} .text=${this._translations.showMore} text-enabled></calcite-fab></div></calcite-panel>`}_getScreenshots(){let e=this._itemProperties?.preview||[];return s`<calcite-card-group class="card-group" .label=${this._translations.screenshots}>${e.map(t=>this.card?.id?s`<calcite-card class="cursor-pointer" .label=${t.alt} @click=${()=>this._openScreenshotGallery(t)}><div class="card-image-wrap" slot=thumbnail><img alt=${t.alt??_} class="thumbnail card-image" slot=thumbnail src=${V(this.card.id||"",t.name,this._authContextProvider.value)??_}><div class="hover-text">${this._translations.openInGallery}</div></div></calcite-card>`:"")}</calcite-card-group>`}_openScreenshotGallery(e){let t=this._screenshotsDialogRef.value;t&&(t.screenshot=e,t.open=!0)}_scrollSubsection(e,t){let i=t.scrollHeight,a=t.scrollTop;e<=a&&(e=a+e),t.scrollTop=i>e?e:i}_getDescriptionRow(){return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.description)}<p .innerHTML=${this.card?.description??""}></p><div class="display-flex flex-direction-row">${this.card?.learnMoreUrl?s`<calcite-link class="padding-end-2" icon-end=share @click=${()=>{this._openUrl(this.card?.learnMoreUrl||"")}}>${this._translations.learnHowtoUse}</calcite-link>`:""}${this._itemProperties?.dataDictionaryURL?s`<calcite-link icon-end=share @click=${()=>{this._openUrl(this._itemProperties?.dataDictionaryURL||"")}}>${this._translations.dataDictionary}</calcite-link>`:""}</div></div>`}_getRequirementsRow(){let e=this._getRequirements();return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.requirements)}<span>${this.card?.title?this._translations.requirementsSubText.replace("{{solutionTitle}}",this.card.title):""}</span>${e.map(t=>s`<div class="display-flex flex-direction-row padding-top-1-2"><calcite-icon icon=bullet-point></calcite-icon><calcite-label class="align-items-center">${t}</calcite-label></div>`)}</div>`}_getRequirements(){return this._itemProperties?.requirements||[]}_getInformationProductsRow(){return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.informationProducts)}<span>${this.card?.title?this._translations.informationProductsSubText.replace("{{solutionTitle}}",this.card.title):""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p>${this._translations.informationProductsFooterText}</p></div>`}_getInformationTableHeaderRow(){return s`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.item}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`}_getInformationTableRows(){return(this._itemProperties?.infoProducts||[]).map(e=>s`<calcite-table-row><calcite-table-cell>${e.item}</calcite-table-cell><calcite-table-cell>${e.description}</calcite-table-cell><calcite-table-cell>${e.userType}</calcite-table-cell></calcite-table-row>`)}_getReleaseNotesRow(){return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.releaseNotes)}<span>${this._translations.releaseNotesSubText}</span><calcite-table bordered caption class="padding-top-1">${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div>`}_getReleaseNotesTableHeaderRow(){return s`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`}_getReleaseNotesTableRows(){return(this._itemProperties?.releaseNotes||[])?.map(e=>s`<calcite-table-row><calcite-table-cell>${e.version}</calcite-table-cell><calcite-table-cell alignment=end>${e.description.map(t=>s`<div class="display-flex flex-direction-row"><calcite-icon icon=bullet-point></calcite-icon><calcite-label class="align-items-center">${t.note}</calcite-label></div>`)}</calcite-table-cell></calcite-table-row>`)}_getRelatedArticlesRow(e){return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.relatedArticles)}<div class="display-flex flex-direction-row">${e.map(t=>{console.log(t),s`<solution-article-card></solution-article-card>`})}</div></div>`}_getRelatedArticles(){return[]}_getYouMayAlsoLikeRow(e){let t=this._hideYouMayAlsoLikeScroll?"display-none":"";return s`<div class="display-flex flex-direction-column">${this._getHeader(this._translations.youMayAlsoLike)}<div class="scrollable-section max-height-320" @scroll=${()=>this._onYouMayAlsoLikeScroll()} ${g(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row "><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map(i=>s`<solution-details-card .card=${i}></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} icon=arrow-down kind=inverse @click=${()=>{this._scrollSubsection(this._youMayAlsoLikeBaseHeight,this._youMayAlsoLikeElement.value)}} .text=${this._translations.showMore} text-enabled></calcite-fab></div>`}_getYouMayAlsoLikeCards(){let e=this._itemProperties?.relatedSolutions||[];return this._allCards.filter(t=>e.indexOf(t.deployCommonId)>-1)}_getHeader(e){return s`<h3><calcite-label scale=l>${e}</calcite-label></h3>`}_openDeploy(){let e=this._deployDialogRef.value;e&&(e.open=!0)}_openUrl(e){window.open(e,"_blank")}_share(){alert("Share need to look at this more. I believe instant apps social share requires mapView")}async _detailsCardSelected(e){this.card=e.detail,this._onResize(),await this._getItemData()}async _getItemData(){let e=this._userSessionContextProvider.value,t=await L(this.card.id,e),i=await R(this.card.id,e);this._itemProperties=i.properties,this.itemPropertiesFetched.emit(this._itemProperties);let a=F(t,this.card.typeKeywords,this._authContextProvider.value);this._privileges=e.username?a:[];let o=this._privileges.filter(r=>!this._userPrivileges.includes(r));this._missingPrivilegeMessages=Y(this._translations,o),(t.params?this.formatParams(t.params):Promise.resolve([])).then(r=>{this._userOptions=r,console.log(this._userOptions)}),this._templates=t.templates,this.templatesFetched.emit(t.templates)}async _getUserPrivileges(){let e=[],t=this._authContextProvider.value,i=this._userSessionContextProvider.value;return i&&t&&(e=t.PortalUserPrivileges?await K(t,i,t?.PortalUserPrivileges):[]),e}formatParams(e){let t=this._userSessionContextProvider.value,i=[],a=e?Object.keys(e):[],o={id:"",props:[],accordionDisplay:!1};if(a.length>0){let r=[];return a.forEach(h=>{let c=e[h];c.valueType&&c.valueType.toLowerCase()==="itemid"&&r.push(this._findExistingItem(h,"Feature Service",t.username||""))}),Promise.all(r).then(h=>{let c={};return h.forEach(n=>{if(n.query&&n.results&&n.results.length>0){let G=n.query.split(" ")[0].replace("typekeywords:source-","");c[G]={resultId:n.results[0].id,response:n.results[0]}}}),a.forEach(n=>{if(n==="serviceLearnMore"){this._configureLearnMore=e[n],alert(this._configureLearnMore),delete e[n];return}e[n].enterpriseIDMapping&&(this._customDeploymentMappings[n]=e[n].enterpriseIDMapping),o.id=n,c[n]&&(e[n].existingItemId=c[n].resultId,this.updateUserProp(e[n],c[n].response)),this.updateOption(e[n],o,n)}),i.push(o),Promise.resolve(i)}).catch(()=>Promise.resolve([]))}else return Promise.resolve([])}_findExistingItem(e,t,i){let a=this._userSessionContextProvider.value;return E(`typekeywords:source-${e} type:${t} owner:${i}`,a)}updateUserProp(e,t){let i=e.itemType.toLowerCase()==="feature service",a=new RegExp(i?this._regexFsUrl:e.itemType,"i"),o=y(t,i?"url":"type","")||"",r=o!==""&&a.test(o);return e.responseValue=r?o:"",e.name=r&&m(t,"name")||"",e.title=r&&m(t,"title")||"",e.itemType=r?m(t,"type"):e.itemType,e.validId=r,e.itemUrl=q(t.id,this._authContextProvider.value),r}updateOption(e,t,i){let a=e.default||"",o=typeof a,r=a.toString();this._setFeatureServiceProps(e);let h=this.getValidation(e,r);t.props.push({id:i,outType:o,prop:i,itemType:e.itemType||"",responseValue:e.responseValue||"",label:e.label||"",choices:e.choices||[],valueType:e.valueType.toLowerCase(),attributes:e.attributes||{},value:e.existingItemId&&e.valueType.toLowerCase()==="itemid"?e.existingItemId:r,default:r,srSearchText:r,autoSelect:r!=="",...h,loading:!1,validId:!0,tooltip:e.tooltip||"",name:e.name||"",title:e.title||"",itemUrl:e.itemUrl||""})}_setFeatureServiceProps(e){e.valueType&&e.valueType.toLowerCase()==="itemid"&&k(e,"attributes.required","true")}getValidation(e,t){let i="",a=m(e,"validation.message")||"",o=!0;return m(e,"attributes.required")==="true"&&(i=y(e,"validation.expression","\\S{1,}"),o=new RegExp(i).test(t)),e.valueType&&e.valueType.toLowerCase()==="itemid"&&(i=this._regexID,a=this._translations.configure.invalidID),{valid:o,validation:{expression:i,message:a}}}_mediaQueryChange(e){this.isMobile=e.matches,this._isMobileContextProvider.setValue(this.isMobile)}_allCardsFetched(e){this._allCards=e.detail}_onResize(){this._hideScreenshotsScroll=(this._screenshotsElement.value?.scrollHeight||0)<=this._screenshotsBaseHeight+2,this._hideYouMayAlsoLikeScroll=(this._youMayAlsoLikeElement.value?.scrollHeight||0)<=this._youMayAlsoLikeBaseHeight+2}_onScreenshotsScroll(){let e=(this._screenshotsElement.value?.scrollTop||0)+this._screenshotsBaseHeight;e===this._screenshotsElement.value?.scrollHeight&&!this._hideScreenshotsScroll?this._hideScreenshotsScroll=!0:e<(this._screenshotsElement.value?.scrollHeight||0)&&(this._hideScreenshotsScroll=!1)}_onYouMayAlsoLikeScroll(){let e=(this._youMayAlsoLikeElement.value?.scrollTop||0)+this._youMayAlsoLikeBaseHeight;e===this._youMayAlsoLikeElement.value?.scrollHeight&&!this._hideYouMayAlsoLikeScroll?this._hideYouMayAlsoLikeScroll=!0:e<(this._youMayAlsoLikeElement.value?.scrollHeight||0)&&(this._hideYouMayAlsoLikeScroll=!1)}_cleanupPanel(){this._privilegePopoverRef.value?.open&&(this._privilegePopoverRef.value.open=!1)}_deployProgressStart(){this._deployingDialogRef.value&&(this._deployingDialogRef.value.open=!0),this._deployDialogRef.value&&this._deployDialogRef.value.classList.add("display-none")}_deployProgessUpdated(e){let t=e.detail;this._deployingDialogRef.value.deploymentProgress=t.progress}_closeDialogs(){this._deployingDialogRef.value.close(),this._deployDialogRef.value.open=!1,this._deployDialogRef.value.classList.remove("display-none")}};P("solution-details-panel",w);return w},a,c,e)
@@ -1,18 +0,0 @@
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.5 */
4
- import{a as c}from"./4UCCOTIL.js";import{k as y,m as o}from"./76JQ5L7D.js";import{a as S}from"./TA3ZXQAF.js";import{D as m,c as d,d as s,n as p,y as g}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var F=d`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */.width-full{width:100%}`;var O={PUBLICSAFETY:["EMERGENCYMANAGEMENT","FIRESERVICE","LAWENFORCEMENT"],STATEANDLOCALGOVERNMENT:["AGRICULTURE","AIRPORT","ASSESSMENTANDTAXATION","ELECTIONS","EMERGENCYMANAGEMENT","FIRESERVICE","FISHANDWILDLIFE","HEALTHANDHUMANSERVICES","LAWENFORCEMENT","NATURALRESOURCES","PARKS","PLANNINGANDDEVELOPMENT","PUBLICWORKS","TRANSPORTATION"],UTILITIES:["DISTRICTENERGY","ELECTRIC","GAS","SEWER","STORMWATER","WATER"]},I=Object.keys(y).reduce((h,i)=>{let t=i;return h[t]=O[t]??[],h},{}),u=class extends g{constructor(){super(),this.isAIsettingEnabled=!1,this.isAllSolutions=!1,this._activeFilterSettings={industry:{group:"",subgroup:""},isOwnerMySolutions:!0,searchTerm:""},this._translations=S({name:"solutions-filter-panel",blocking:!0}),this.applyFilter=p(),this._handleFilterRemoved=i=>{let t=i.detail;if(typeof t=="object"&&t!==null&&"type"in t&&typeof t.type=="string"){let e=t.type;(e==="industry"||e==="domain")&&this.changeIndustryFilter("","","")}else typeof t=="string"&&t.toLowerCase()===o.ORGANIZATION.toLowerCase()&&this.changeOwnerFilter(!0,!0)},this.listenOn(window,"filterRemoved",this._handleFilterRemoved)}static{this.properties={isAIsettingEnabled:5,isAllSolutions:5,_activeFilterSettings:16,_translations:16}}static{this.styles=F}changeOwnerFilter(i,t){this._activeFilterSettings={...this._activeFilterSettings,isOwnerMySolutions:i};let e={displayValue:this._activeFilterSettings.isOwnerMySolutions?this._translations.mySolutions:this._translations.myOrgSolutions,type:"owner",value:this._activeFilterSettings.isOwnerMySolutions?o.OWNER:o.ORGANIZATION};t&&this.applyFilter.emit(e)}changeIndustryFilter(i,t,e,r){let n={displayValue:e,type:t!==""?"domain":"industry",value:t!==""?t:i,industry:i,domain:t},l={group:i,subgroup:t};this._activeFilterSettings={...this._activeFilterSettings,industry:l},r&&this.applyFilter.emit(n)}changeSearchFilter(i,t){this._activeFilterSettings={...this._activeFilterSettings,searchTerm:i},(i.length>=3||i==="")&&t&&this.applyFilter.emit({searchTerm:i})}clearFilters(){this.changeIndustryFilter("","",""),this.changeSearchFilter(""),this.applyFilter.emit(null),setTimeout(()=>{this.changeOwnerFilter(!0,!0)},500)}render(){return s`<calcite-panel description .heading=${this._translations.findSolutions}><calcite-action icon=reset @click=${()=>{this.clearFilters()}} slot=header-actions-end .text=${this._translations.clear} text-enabled></calcite-action><calcite-input-text class="width-full" clearable icon=search @calciteInputTextInput=${i=>{this.changeSearchFilter(i.target.value,!0)}} .placeholder=${this._translations.search.solutions} slot=content-top .value=${this._activeFilterSettings.searchTerm}></calcite-input-text><calcite-block-group label>${!this.isAllSolutions&&this.renderOwnerBlock()||""}${this.renderIndustryBlock()}</calcite-block-group>${this.isAIsettingEnabled&&s`<calcite-button icon-start=speech-bubbles label="Solutions Assistant" round scale=l slot=footer-start></calcite-button>`||""}</calcite-panel>`}renderOwnerBlock(){return s`<calcite-block collapsible description expanded .heading=${this._translations.owner}><calcite-tree selection-mode=single-persist>${this._activeFilterSettings.isOwnerMySolutions?s`<calcite-tree-item .label=${this._translations.mySolutions} @click=${()=>{this.changeOwnerFilter(!0,!0)}} selected>${this._translations.mySolutions}</calcite-tree-item>`:s`<calcite-tree-item .label=${this._translations.mySolutions} @click=${()=>{this.changeOwnerFilter(!0,!0)}}>${this._translations.mySolutions}</calcite-tree-item>`}${this._activeFilterSettings.isOwnerMySolutions?s`<calcite-tree-item .label=${this._translations.myOrgSolutions} @click=${()=>{this.changeOwnerFilter(!1,!0)}}>${this._translations.myOrgSolutions}</calcite-tree-item>`:s`<calcite-tree-item .label=${this._translations.myOrgSolutions} @click=${()=>{this.changeOwnerFilter(!1,!0)}} selected>${this._translations.myOrgSolutions}</calcite-tree-item>`}</calcite-tree></calcite-block>`}renderIndustryBlock(){let i=(e,r)=>r.map(n=>{let l=Object.keys(this._translations.industriesDomain).find(E=>E.toUpperCase()===n.toUpperCase()),a=l&&l in this._translations.industriesDomain?this._translations.industriesDomain[l]:n;return n===this._activeFilterSettings.industry.subgroup?c(n,s`<calcite-tree-item .label=${a} @click=${()=>{this.changeIndustryFilter(e,n,a,!0)}} selected>${a}</calcite-tree-item>`):c(n,s`<calcite-tree-item .label=${a} @click=${()=>{this.changeIndustryFilter(e,n,a,!0)}}>${a}</calcite-tree-item>`)}),t=Object.entries(I).map(([e,r])=>{let n=Object.keys(this._translations.industries).find(a=>a.toUpperCase()===e.toUpperCase()),l=n&&n in this._translations.industries?this._translations.industries[n]:e;return e===this._activeFilterSettings.industry.group&&this._activeFilterSettings.industry.subgroup===""?c(e,s`<calcite-tree-item .expanded=${e===this._activeFilterSettings.industry.group&&r.length>0} .label=${l} @click=${()=>{this.changeIndustryFilter(e,"",l,!0)}} selected>${l}${r.length>0&&s`<calcite-tree slot=children selection-mode=single-persist>${i(e,r)}</calcite-tree>`||""}</calcite-tree-item>`):c(e,s`<calcite-tree-item .expanded=${e===this._activeFilterSettings.industry.group&&r.length>0} .label=${l} @click=${()=>{this.changeIndustryFilter(e,"",l,!0)}}>${l}${r.length>0&&s`<calcite-tree slot=children selection-mode=single-persist>${i(e,r)}</calcite-tree>`||""}</calcite-tree-item>`)});return s`<calcite-block collapsible description expanded .heading=${this._translations.industriesHeader} .label=${this._translations.industriesHeader}><calcite-tree selection-mode=single-persist>${t}</calcite-tree></calcite-block>`}};m("solutions-filter-panel",u);export{u as SolutionsFilterPanel};
@@ -1,4 +0,0 @@
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.5 */
4
- import{o,p as a,q as r,r as d,v as c,w as m}from"./QP26HSVE.js";import{a as l,c as i,d as h,e as u}from"./ML3FDA7I.js";import"./UITEOOYI.js";var f=".sc-instant-apps-measurement-tool-h .esri-measurement.sc-instant-apps-measurement-tool,.sc-instant-apps-measurement-tool-h .esri-coordinate-conversion.sc-instant-apps-measurement-tool{width:300px}.sc-instant-apps-measurement-tool-h .instant-apps-measurement-tool__hide.sc-instant-apps-measurement-tool{display:none}",v=f,p="instant-apps-measurement-tool",s={base:p,hide:`${p}__hide`},g=class{constructor(e){l(this,e),this.view=void 0,this.measureConfiguration=void 0,this.activeTool=void 0}async componentWillLoad(){await this._initModules()}componentDidLoad(){this._init()}render(){return i(h,{key:"f6bd046c04fd3c17204fd95e4ab5e85cab179671"},i("div",{key:"070603555cb6497ddd67f1f53ebaf89a59bd7c01",class:s.base},i("div",{key:"475bff4347c71401ecb292a74c59aac28b40952f",ref:e=>{e instanceof HTMLElement&&(this._measureElement=e)}}),i("div",{key:"9018f1338b598e9c02e1ea6239ab1ee57c460fa0",class:s.hide,ref:e=>{e instanceof HTMLElement&&(this._coordinateElement=e)}})))}disconnectedCallback(){this._measureWidget?.destroy(),this._coordinateWidget?.destroy()}async _initModules(){let[e,t,n]=await Promise.all([c(),o(),r()]);this.Measurement=e,this.CoordinateConversion=t,this.Conversion=n}_init(){this._initMeasurementWidget(),this._initCoordinateWidget()}_updateToolType(e){this._setActiveTool(e)}async _initMeasurementWidget(){this.view&&this._measureElement&&!this._measureWidget&&(this._measureWidget=await m({view:this.view,container:this._measureElement,...this.measureConfiguration}),this.measureConfiguration.activeToolType&&this._setActiveTool(this.measureConfiguration.activeToolType))}_setActiveTool(e){let t=this.view.type;this._measureWidget.clear(),this._coordinateElement?.classList.add(s.hide),e==="distance"?this._measureWidget.activeTool=t==="2d"?"distance":"direct-line":e==="area"?this._measureWidget.activeTool="area":e==="point"&&this._coordinateElement?.classList?.remove(s.hide)}async _initCoordinateWidget(){let{activeToolType:e,coordinateFormat:t}=this.measureConfiguration;if(this?.view&&this._coordinateElement&&!this._coordinateWidget&&(this._coordinateWidget=await a({view:this.view,storageEnabled:!1,container:this._coordinateElement}),t!=null)){let n=this._coordinateWidget.formats.find(_=>_.name===t);this._coordinateWidget?.conversions?.splice(0,0,await d({format:n}))}e!=null&&this._setActiveTool(e)}get el(){return u(this)}static get watchers(){return{activeTool:["_updateToolType"]}}};g.style=v;export{g as instant_apps_measurement_tool};
@@ -1,6 +0,0 @@
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.5 */
4
- var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,mt=Symbol(),kt=new WeakMap,z=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==mt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},Mt=o=>new z(typeof o=="string"?o:o+"",void 0,mt),fe=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new z(e,o,mt)},It=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},yt=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return Mt(e)})(o):o;var vt=globalThis,X=vt.trustedTypes,jt=X?X.createPolicy("lit-html",{createHTML:o=>o}):void 0,bt="$lit$",E=`lit$${Math.random().toFixed(9).slice(2)}$`,Et="?"+E,me=`<${Et}>`,O=document,q=()=>O.createComment(""),B=o=>o===null||typeof o!="object"&&typeof o!="function",$t=Array.isArray,Ft=o=>$t(o)||typeof o?.[Symbol.iterator]=="function",gt=`[
5
- \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vt=/-->/g,zt=/>/g,w=RegExp(`>|${gt}(?:([^\\s"'>=/]+)(${gt}*=${gt}*(?:[^
6
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ht=/'/g,qt=/"/g,Wt=/^(?:script|style|textarea|title)$/i,Ct=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),$s=Ct(1),Cs=Ct(2),As=Ct(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Bt=new WeakMap,x=O.createTreeWalker(O,129);function Kt(o,t){if(!$t(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return jt!==void 0?jt.createHTML(t):t}var Gt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],h,p,l=-1,m=0;for(;m<c.length&&(i.lastIndex=m,p=i.exec(c),p!==null);)m=i.lastIndex,i===H?p[1]==="!--"?i=Vt:p[1]!==void 0?i=zt:p[2]!==void 0?(Wt.test(p[2])&&(n=RegExp("</"+p[2],"g")),i=w):p[3]!==void 0&&(i=w):i===w?p[0]===">"?(i=n??H,l=-1):p[1]===void 0?l=-2:(l=i.lastIndex-p[2].length,h=p[1],i=p[3]===void 0?w:p[3]==='"'?qt:Ht):i===qt||i===Ht?i=w:i===Vt||i===zt?i=H:(i=w,n=void 0);let y=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+me:l>=0?(s.push(h),c.slice(0,l)+bt+c.slice(l)+E+y):c+E+(l===-2?a:y)}return[Kt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},F=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[h,p]=Gt(t,e);if(this.el=o.createElement(h,s),x.currentNode=this.el.content,e===2||e===3){let l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(n=x.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let l of n.getAttributeNames())if(l.endsWith(bt)){let m=p[i++],y=n.getAttribute(l).split(E),_=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:_[2],strings:y,ctor:_[1]==="."?et:_[1]==="?"?st:_[1]==="@"?ot:S}),n.removeAttribute(l)}else l.startsWith(E)&&(c.push({type:6,index:r}),n.removeAttribute(l));if(Wt.test(n.tagName)){let l=n.textContent.split(E),m=l.length-1;if(m>0){n.textContent=X?X.emptyScript:"";for(let y=0;y<m;y++)n.append(l[y],q()),x.nextNode(),c.push({type:2,index:++r});n.append(l[m],q())}}}else if(n.nodeType===8)if(n.data===Et)c.push({type:2,index:r});else{let l=-1;for(;(l=n.data.indexOf(E,l+1))!==-1;)c.push({type:7,index:r}),l+=E.length-1}r++}}static createElement(t,e){let s=O.createElement("template");return s.innerHTML=t,s}};function T(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=B(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=T(o,n._$AS(o,t.values),n,s)),t}var tt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,n=(t?.creationScope??O).importNode(e,!0);x.currentNode=n;let r=x.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let h;c.type===2?h=new U(r,r.nextSibling,this,t):c.type===1?h=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(h=new nt(r,this,t)),this._$AV.push(h),c=s[++a]}i!==c?.index&&(r=x.nextNode(),i++)}return x.currentNode=O,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=T(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ft(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=F.createElement(Kt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new tt(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Bt.get(t.strings);return e===void 0&&Bt.set(t.strings,e=new F(t)),e}k(t){$t(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(q()),this.O(q()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let s=t.nextSibling;t.remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},S=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=T(this,t,e,0),i=!B(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,h;for(t=r[0],c=0;c<r.length-1;c++)h=T(this,a[s+c],e,c),h===f&&(h=this._$AH[c]),i||=!B(h)||h!==this._$AH[c],h===d?t=d:t!==d&&(t+=(h??"")+r[c+1]),this._$AH[c]=h}i&&!n&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},et=class extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},st=class extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},ot=class extends S{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=T(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}},Jt={M:bt,P:E,A:Et,C:1,L:Gt,R:tt,D:Ft,V:T,I:U,H:S,N:st,U:ot,B:et,F:nt},ye=vt.litHtmlPolyfillSupport;ye?.(F,U),(vt.litHtmlVersions??=[]).push("3.3.0");var At=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new U(t.insertBefore(q(),r),r,void 0,e??{})}return n._$AI(o),n};var{is:ge,defineProperty:ve,getOwnPropertyDescriptor:be,getOwnPropertyNames:Ee,getOwnPropertySymbols:$e,getPrototypeOf:Ce}=Object,it=globalThis,Qt=it.trustedTypes,Ae=Qt?Qt.emptyScript:"",_e=it.reactiveElementPolyfillSupport,W=(o,t)=>o,rt={toAttribute(o,t){switch(t){case Boolean:o=o?Ae:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},K=(o,t)=>!ge(o,t),Yt={attribute:!0,type:String,converter:rt,reflect:!1,useDefault:!1,hasChanged:K};Symbol.metadata??=Symbol("metadata"),it.litPropertyMetadata??=new WeakMap;var $=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Yt){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&ve(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=be(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Yt}static _$Ei(){if(this.hasOwnProperty(W("elementProperties")))return;let t=Ce(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(W("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(W("properties"))){let e=this.properties,s=[...Ee(e),...$e(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift(yt(n))}else t!==void 0&&e.push(yt(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return It(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:rt).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:rt;this._$Em=n,this[n]=i.fromAttribute(e,r.type)??this._$Ej?.get(n)??null,this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){let n=this.constructor,r=this[t];if(s??=n.getPropertyOptions(t),!((s.hasChanged??K)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};$.elementStyles=[],$.shadowRootOptions={mode:"open"},$[W("elementProperties")]=new Map,$[W("finalized")]=new Map,_e?.({ReactiveElement:$}),(it.reactiveElementVersions??=[]).push("2.1.0");var _t=globalThis,v=class extends ${constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=At(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};v._$litElement$=!0,v.finalized=!0,_t.litElementHydrateSupport?.({LitElement:v});var we=_t.litElementPolyfillSupport;we?.({LitElement:v});(_t.litElementVersions??=[]).push("4.2.0");var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},xe=(o,t)=>{let e=o;for(;e;){if(e===t)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},Oe=(o,t,e)=>{let s=Te(t).subscribe;return s(n=>{n.some(i=>xe(o,i.target))&&e()})},wt={},Te=o=>{let t=o.join(","),e=wt[t];if(e!==void 0)return e;let s=new Set,n=new MutationObserver(i=>s.forEach(a=>a(i)));globalThis.document&&n.observe(document.documentElement,{attributes:!0,attributeFilter:o,subtree:!0});let r={subscribe:i=>(s.add(i),()=>{s.delete(i),s.size===0&&(n.disconnect(),wt[t]=void 0)})};return wt[t]=r,r},Se=(o,t)=>{let e=o;for(;e;){let s=e.closest?.(t);if(s)return s;let n=e.getRootNode?.();if(n===globalThis.document)return null;e=n.host}return null};var Pe=(o,t,e)=>Se(o,`[${t}]`)?.getAttribute(t)??e;var u=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},G=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var Ne="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),Le=new Set(Ne),at="en",Re={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},De=async(o,t,e="")=>{let s=`${t}/${e}`,n=`${s}${o}.json`;return xt[n]??(xt[n]=Zt(o,s)),await xt[n]},xt={},Zt=async(o,t)=>{let e=`${t}${o}.json`;try{let s=await fetch(e);if(s.ok)return await s.json()}catch(s){return console.error(s),{}}return o===at?{}:await Zt(at,t)},Ue=o=>{let t=Pe(o,"lang",globalThis.navigator?.language||at);return{lang:t,t9nLocale:Xt(t)}},Xt=o=>{let[t,e]=o.split("-"),s=t.toLowerCase(),n=s;return e&&(n=`${s}-${e.toUpperCase()}`),n=Re[n]??n,Le.has(n)?n:e?Xt(s):at},js=(o,t,e,s)=>{let n,r=()=>ke(o,t(),s).then(i=>{(n?.lang!==i.lang||n.t9nLocale!==i.t9nLocale||n.t9nStrings!==i.t9nStrings)&&e(i),n=i}).catch(console.error);return queueMicrotask(r),Oe(o,["lang"],r)},ke=async(o,t,e=o.localName.split("-").slice(1).join("-"))=>{let{lang:s,t9nLocale:n}=Ue(o),r=`${t}/${e}/t9n`,a=e===null?{}:await De(n,r,"messages.");return{lang:s,t9nLocale:n,t9nStrings:a}};var ct=o=>o.replace(Me,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Me=/[A-Z]+(?![a-z])|[A-Z]/gu;var te=(o,t)=>{let e=t>Ie?je:t/Ve,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},Ie=4e3,je=2e3,Ve=4;var ht=Symbol.for("controller"),ze=o=>typeof o=="object"&&o!==null&&(ht in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Bs=o=>typeof o?.then=="function";var J,k=o=>{J!==o&&(J=o,queueMicrotask(()=>J===o?J=void 0:0))},N=o=>J,P=[],He=o=>{if(o===void 0){P=[];return}let t=P.indexOf(o);P=t===-1?[...P,o]:P.slice(0,t+1),queueMicrotask(()=>P=[])},qe=()=>P,M,Fs=o=>{M!==o&&(M=o,queueMicrotask(()=>M===o?M=void 0:0))},Be=()=>{let o=M;return M=void 0,o},Fe=async(o,t)=>{let e=Tt(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},We=async o=>{let t=Tt(o);return await t.ready,t},Tt=o=>{let e=N().manager.X(o);if(e!==void 0)return e;if(ze(o))return o;let s=Be();if(s!==void 0)return s},lt=!1,Ws=o=>{lt=!0;try{return o()}finally{lt=!1}};var Ke=(o,t,e)=>{let s=Object.keys(o),n=s.length;I===void 0&&queueMicrotask(dt),I??=new Map;let r=I.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},I.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=h=>u(t,null,h),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},I,dt=()=>{I?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),I=void 0},Ge=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>u(t,void 0,e===r?n:void 0)),e},Je=(o=[N(),...qe()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>Ke(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ge(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},Qe=(o="",t={},e=N())=>{let s={emit:n=>{o===""&&dt();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Je(void 0,n=>o=n.key,s),s},Ye=Qe.bind(null,""),oe;oe=ht;var Ot=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#o=[],this.#n=[],this.#c=[],this.#l=[],this.#u=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[oe]=!0,this.#a=[];let e=this,s=t??N(new.target.name);e.#r=s,e.ready=e.P.promise,e.#i=se(e),e.component=s,e.#r.addController(e),e.#r.manager===void 0||(He(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#o;#n;#c;#l;#u;#h;#d;#r;catchUpLifecycle(){let{manager:t}=this.#r;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(console.error)}#i;get exports(){return this.#i}set exports(t){let e=this.#i;e!==t&&(this.#i=t,this.#a.forEach(u),this.connectedCalled&&this.O!==!1&&this.#r.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#i=e?se(t):t,this.#a.forEach(u)}#a;watchExports(t){let e=()=>t(this.#i);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return k(this.#r),Fe}get useRef(){return k(this.#r),We}get useRefSync(){return k(this.#r),Tt}controllerRemoved(){this.#r.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#o.push(t)}onUpdate(t){this.#n.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#u.push(t),this.connectedCalled&&this.#r.el.isConnected&&this.#p(t)}triggerConnected(){let t=this;t.hostConnected&&u(t.hostConnected,t),t.#t.forEach(u),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&u(t.hostDisconnected,t),t.#e.forEach(u),t.#h.forEach(u),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await G(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(G)),this.P.resolve(this.#i)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&u(this.hostLoaded,this),this.#o.forEach(u),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&u(this.hostUpdate,this,t),this.#n.forEach(ee,t)}triggerUpdated(t){this.hostUpdated&&u(this.hostUpdated,this,t),this.#c.forEach(ee,t)}triggerDestroy(){this.hostDestroy&&u(this.hostDestroy,this),this.#l.forEach(u)}triggerLifecycle(){this.hostLifecycle&&this.#p(()=>this.hostLifecycle()),this.#u.forEach(this.#p,this)}#p(t){k(this.#r);let e=u(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#h.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#h.push(n.remove)})}};function ee(o){u(o,void 0,this)}var ne=Ot,se=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var re=";",ut=",",ie=":";var Pt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Nt={};function Lt(){}var Ze=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,h=""]]of Object.entries(t)){if(customElements.get(a))continue;let[p,l,m]=h.split(re),y=p?p?.split(ut).map(Xe):void 0,_=y?.map(([D])=>D),R=class extends St{static{this.observedAttributes=y?.map(([,D])=>D).filter(D=>D!=="")}static{this.C=_}static{this.E=l?l?.split(ut):void 0}static{this.D=m?.split(ut)}static{this.L=a}static{this.K=o}constructor(){!R.B&&(R.B=c(),R.F()),super()}};customElements.define(a,R)}},pt=Object.defineProperty,Xe=o=>{let t=o.split(ie);return t.length===1?[t[0],ct(t[0])]:t},ts=globalThis.HTMLElement??Lt,St=class extends ts{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#o({a:e.A}):e.B.then(async s=>{await e.K.p,t.#o(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])pt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])pt(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])pt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Pt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#o(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(l=>l.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);ss(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let h=document.createElement(i);r.N=void 0,this.#t=h,this.#e=h,this.#s.forEach(l=>h.attributeChangedCallback(l,null,this.getAttribute(l))),Object.entries(n).forEach(es,h);let p=this.isConnected;(p||this.G)&&(h.connectedCallback?.(),p||h.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function es([o,t]){this[o]=t}var ss=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},pt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var A=class extends Event{constructor(t,e,s,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=s,this.subscribe=n??!1}};var j=class{constructor(t,e,s,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(r,i)=>{this.unsubscribe&&(this.unsubscribe!==i&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=r,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(r,i)),this.unsubscribe=i},this.host=t,e.context!==void 0){let r=e;this.context=r.context,this.callback=r.callback,this.subscribe=r.subscribe??!1}else this.context=e,this.callback=s,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new A(this.context,this.host,this.t,this.subscribe))}};var ft=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let s=e||!Object.is(t,this.o);this.o=t,s&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:s}]of this.subscriptions)e(this.o,s)},t!==void 0&&(this.value=t)}addCallback(t,e,s){if(!s)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:n}=this.subscriptions.get(t);t(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Rt=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},V=class extends ft{constructor(t,e,s){super(e.context!==void 0?e.initialValue:s),this.onContextRequest=n=>{if(n.context!==this.context)return;let r=n.contextTarget??n.composedPath()[0];r!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,r,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let r=new Set;for(let[i,{consumerHost:a}]of this.subscriptions)r.has(i)||(r.add(i),a.dispatchEvent(new A(this.context,a,i,!0)));n.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Rt(this.context,this.host))}};var g={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},L=o=>(...t)=>({_$litDirective$:o,values:t}),C=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var ae=L(class extends C{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var ce="important",ns=" !"+ce,le=L(class extends C{constructor(o){if(super(o),o.type!==g.ATTRIBUTE||o.name!=="style"||o.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(ns);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?ce:""):e[s]=n}}return f}});var{I:qo}=Jt;var he=o=>o.strings===void 0;var rs={},de=(o,t=rs)=>o._$AH=t;var is=L(class extends C{constructor(o){if(super(o),o.type!==g.PROPERTY&&o.type!==g.ATTRIBUTE&&o.type!==g.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!he(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===g.PROPERTY){if(t===e[s])return f}else if(o.type===g.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===g.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return de(o),t}});var mn=o=>{let t=N(),e=new V(t.el,o);return t.addController(e),e},yn=o=>{let t=N(),e=new j(t.el,o);return t.addController(e),e};var Dt=class extends ne{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=Ut in t&&typeof t.destroy=="function",v.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Ut} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),dt();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():u(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():u(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):u(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):u(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),k(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():u(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=te(t,ms)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},ms=1e3,Ut="autoDestroyDisabled",ue=class o extends v{constructor(){super(),this.M=[],this.manager=new Dt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#o=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Lt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Nt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??K,i={attribute:s&1&&typeof t=="string"?ct(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),c:!1,...n,hasChanged(a,c){let h=r(a,c);return i.c=h,h}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!lt&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&a?.S(t,i)}}}static{this.lumina=!0}#t;#e;#s;#o;#n;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#n=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(s=>{this.#o.reject(s),setTimeout(()=>{throw s})})):t&&this.requestUpdate()}#c(t){try{this.#n.clear(),this.constructor.K.r(this.#n,()=>super.update(t))}catch(e){throw this.#n.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#n?.destroy(),this.#n=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Nt?this.el:this.el.attachShadow(s));if(t)return v.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#l(){let t=this.el.G??Pt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(G(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(Ut)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():u(n.hostLoaded,n);this.loaded?.(),this.#o.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#n?this.#c(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#o.promise,this}addController(t){this.M.push(t),!(ht in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}},pe=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var gn=o=>typeof o=="object"&&o!=null?ae(o):o,vn=o=>typeof o=="object"&&o!=null?le(o):o;var bn=d;var Q=pe({defaultAssetPath:"https://js.arcgis.com/1.0/solutions-components/",hydratedAttribute:"hydrated"}),{customElement:_n,getAssetPath:wn,setAssetPath:xn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ue as a,js as b,fe as c,$s as d,Cs as e,d as f,Bs as g,k as h,He as i,qe as j,Fs as k,Ws as l,Je as m,Ye as n,Ot as o,Nt as p,Ze as q,g as r,L as s,C as t,he as u,de as v,mn as w,yn as x,ue as y,gn as z,vn as A,bn as B,Q as C,_n as D,wn as E};
@@ -1,4 +0,0 @@
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.5 */
4
- import{a,b}from"./MURI73WZ.js";import"./WBAN3UIC.js";import"./Z3XBAPZC.js";import"./IFPYTV3R.js";import"./UITEOOYI.js";export{a as DiscussionEditorTypes,b as DiscussionSchema};
@@ -1,4 +0,0 @@
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.5 */
4
- import{a,b}from"./JJJAHCRO.js";import"./WBAN3UIC.js";import"./Z3XBAPZC.js";import"./IFPYTV3R.js";import"./UITEOOYI.js";export{a as InitiativeTemplateEditorTypes,b as InitiativeTemplateSchema};
@@ -1,4 +0,0 @@
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.5 */
4
- import{a as r,b as d,e as g,g as f,j as y,k as _,o as b,p as x,r as I,s as C,v}from"./HCCTS5WV.js";import"./Q5QONQ6T.js";import"./25FEJN5O.js";import{C as u}from"./QP26HSVE.js";import{a as h,c as n,e as m,f as L,h as w}from"./ML3FDA7I.js";import"./UITEOOYI.js";var k=".sc-instant-apps-interactive-legend-count-h{display:flex;align-items:center}.instant-apps-interactive-legend__total-feature-count.sc-instant-apps-interactive-legend-count{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-0)}.instant-apps-interactive-legend__info-count-text.sc-instant-apps-interactive-legend-count{font-size:var(--instant-apps-interactive-legend-info-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.calcite-mode-dark.instant-apps-interactive-legend__info-count-text.instant-apps-interactive-legend__info-count-text--selected.sc-instant-apps-interactive-legend-count{color:var(--calcite-color-text-inverse)}.instant-apps-interactive-legend-count--compact.sc-instant-apps-interactive-legend-count .instant-apps-interactive-legend__total-feature-count.sc-instant-apps-interactive-legend-count{font-size:0.75rem}.sc-instant-apps-interactive-legend-count-h:dir(rtl){margin-left:0;margin-right:auto}",E=k,p={countText:" instant-apps-interactive-legend__info-count-text",countTextSelected:" instant-apps-interactive-legend__info-count-text--selected",totalFeatureCount:"instant-apps-interactive-legend__total-feature-count",compact:"instant-apps-interactive-legend-count--compact"},A=class{constructor(e){h(this,e),this.showTotal=!1,this.legendvm=void 0,this.activeLayerInfo=void 0,this.categoryId="",this.infoIndex=void 0,this.messages=void 0,this.selected=void 0,this.legendElement=void 0}async componentWillLoad(){new MutationObserver(()=>{w(this.el)}).observe(this.el,{attributes:!0});let t=await u();this.intl=t}render(){let e=d.get("compact")?p.compact:"";return n("div",{key:"int-legend-count",class:e},this.showTotal?n("span",{class:p.totalFeatureCount},this.messages?.totalFeatureCount,": ",this.getTotalFeatureCount()):n("span",{key:"element-info-count",class:`${p.countText} ${v(this.el)}${this.selected?p.countTextSelected:""}`},this.getCount()))}getCount(){let{categoryId:e}=this,t=this.activeLayerInfo.layer.id,i=r.data[t]?.categories?.size;if((!r.data||!t||!e)&&!i)return"";let s=r.data[t];if(!s)return;let{categories:l}=s,a=l.get(e),c;return a?.nestedInfos?c=I(a,this.infoIndex):c=a,Number.isNaN(c.count)?"":this.intl.formatNumber(c.count)}getTotalFeatureCount(){let e=this.activeLayerInfo.layer.id;if(!r.data||!e)return"";let t=r.data[e];if(!t)return;let{categories:i}=t,s=g(i),l=C(i),a;if(l)a=x(s);else if(y(this.activeLayerInfo)){let c=f(this.activeLayerInfo.layer);a=g(c.categories)[1].count}else a=b(s);return this.intl.formatNumber(a)}get el(){return m(this)}};A.style=E;var S=".sc-instant-apps-interactive-legend-layer-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:500;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header--compact.sc-instant-apps-interactive-legend-layer-element-caption .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption{font-size:0.9rem}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption{overflow:hidden;margin:0;display:inline-block;font-size:var(--calcite-font-size-1);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption header.sc-instant-apps-interactive-legend-layer-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption h3.sc-instant-apps-interactive-legend-layer-element-caption{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption .instant-apps-interactive-legend__heading-text--group-item.sc-instant-apps-interactive-legend-layer-element-caption{-webkit-line-clamp:2;line-clamp:2}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption span.sc-instant-apps-interactive-legend-layer-element-caption{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-layer-element-caption-h header.sc-instant-apps-interactive-legend-layer-element-caption .instant-apps-interactive-legend__header-action-container.sc-instant-apps-interactive-legend-layer-element-caption{display:flex;align-items:center}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-layer-element-caption header.sc-instant-apps-interactive-legend-layer-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-layer-element-caption-h .esri-widget--panel.sc-instant-apps-interactive-legend-layer-element-caption{margin:0}.calcite-mode-dark.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-layer-element-caption{background-color:#242424;color:var(--calcite-color-text-1)}.calcite-mode-light.sc-instant-apps-interactive-legend-layer-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-layer-element-caption{background-color:#ffffff;color:var(--calcite-color-text-1)}",z=S,o={label:"esri-legend__service-label",header:"esri-widget__heading",interacitveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container",compact:"instant-apps-interactive-legend__header--compact"},T=class{constructor(e){h(this,e),this.layerCaptionElementExpandUpdatedEvent=L(this,"layerCaptionElementExpandUpdated",7),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}render(){let e=_(this.activeLayerInfo),{expanded:t}=this,i=t?this.messages?.collapse:this.messages?.expand,s=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"",l=d.get("compact")?` ${o.compact}`:"";return n("header",{key:"bfb5c7b5059bcefcd898b46a4e2bb1f5397a2d6f",class:`${o.interacitveLegendHeader} ${v(this.el)}${l}`},n("calcite-action",{key:"24eee4c2208df0dfa8fb209729c67ec1f34d843e",onClick:this.toggleExpanded(),icon:t?"chevron-down":"chevron-up",appearance:"transparent",text:i??"",label:i,scale:"s"}),n("span",{key:"95977b78f4afe0206085567b061c8cb5d9f8dc5d"},n("span",{key:"258004a4847688b94edf6d8416eef9cb07accfe5",class:o.headerActionContainer},n("h3",{key:"980f06c2054a8be5c471b5b44c667b4be1a451f9",class:`${o.header} ${o.label}${s}`,title:this.activeLayerInfo?.title??""},this.activeLayerInfo?.title)),this.featureCount&&e?n("instant-apps-interactive-legend-count",{activeLayerInfo:this.activeLayerInfo,"show-total":!0,messages:this.messages,legendvm:this.legendvm}):null))}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdatedEvent.emit(this.expanded)}}get el(){return m(this)}};T.style=z;export{A as instant_apps_interactive_legend_count,T as instant_apps_interactive_legend_layer_element_caption};
@@ -1,4 +0,0 @@
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.5 */
4
- import{a as O}from"./I3ZD6IV4.js";import{e as _}from"./2VXYY4NW.js";import{a as l,f as p}from"./MK7N6OTA.js";import"./6U4PV22I.js";import"./UITEOOYI.js";function C(e,a){let i=[];return O(e,(t,o)=>(o.split(".").pop()===a&&i.push(t),t)),i.filter(p)}function E(e){return C(e,"scope").map(a=>a.split("/")[2]).filter(p)}function h(e,a){let i=l(e);return i.required&&(i.required=[...i.required].filter(t=>a.includes(t))),i.properties&&Object.keys(i.properties).forEach(t=>{a.indexOf(t)===-1&&delete i.properties[t]}),i.allOf&&(i.allOf=i.allOf.map(t=>h(t,a))),i.if&&(i.if=h(i.if,a)),i.then&&(i.then=h(i.then,a)),i.else&&(i.else=h(i.else,a)),i}function w(e,a){let i=E(a);return e=h(e,i),e}function q(e){return e&&e.split(":")[2]}async function G(e,a,i,t){let o=q(a),r,u,s,m,d;switch(o){case"stat":s=import("./EPYFVSXR.js"),m={"hub:card:stat":()=>import("./TIUXVXYM.js")}[a],await Promise.all([s,m()]).then(async([f,c])=>{let{MetricSchema:n}=f;r=l(n),u=await c.buildUiSchema(e,i,t),c.buildDefaults&&(d=c.buildDefaults(e,i,t))});break;case"follow":s=import("./IS4CHLDX.js"),m={"hub:card:follow":()=>import("./ZLU7K6TK.js")}[a],await Promise.all([s,m()]).then(([f,c])=>{let{FollowSchema:n}=f;r=l(n),u=c.buildUiSchema(e,i,t)});break;case"eventGallery":s=import("./SHWG5PCG.js"),m=import("./EW3T5VLB.js");let[{EventGalleryCardSchema:g},{buildUiSchema:b}]=await Promise.all([s,m]);r=l(g),u=await b(e,i,t);break}return r=w(r,u),Promise.resolve({schema:r,uiSchema:u})}var V=(e,a)=>{var i;let t=l((i=e.properties)===null||i===void 0?void 0:i._slug);if(!t)return e;let{orgUrlKey:o}=a;o||(o=""),t.maxLength=_(o);let r=l(e.allOf)||[],{pattern:u}=t;delete t.pattern;let{id:s}=a;r.push({if:{properties:{_slug:{minLength:1}}},then:{properties:{_slug:{pattern:u}}}},{if:{properties:{_slug:{pattern:u}}},then:{properties:{_slug:{isUniqueSlug:{id:s,orgUrlKey:o}}}}});let m=l(e);return m.properties._slug=t,m.allOf=r,m};async function L(e,a,i,t){let o=a.split(":")[1],r,u,s;switch(o){case"site":let{getSiteSchema:m}=await import("./OGRHFK6Y.js");r=m(i.id);let d=await{"hub:site:edit":()=>import("./PGB7D5V5.js"),"hub:site:create":()=>import("./7NDRZHL6.js"),"hub:site:followers":()=>import("./AHHA6SMZ.js"),"hub:site:discussions":()=>import("./7WZE34BF.js"),"hub:site:settings":()=>import("./DHVPMGLT.js")}[a]();u=await d.buildUiSchema(e,i,t),d.buildDefaults&&(s=await d.buildDefaults(e,i,t));break;case"discussion":let{DiscussionSchema:g}=await import("./DC2VXLYA.js");r=l(g);let b=await{"hub:discussion:edit":()=>import("./CYHKUA3T.js"),"hub:discussion:create":()=>import("./SH3RI2GK.js"),"hub:discussion:settings":()=>import("./TYVJSPBM.js"),"hub:discussion:settings:discussions":()=>import("./N5MNRNS4.js")}[a]();u=await b.buildUiSchema(e,i,t),b.buildDefaults&&(s=await b.buildDefaults(e,i,t));break;case"channel":let{ChannelSchema:f}=await import("./TTDNDVCB.js");r=l(f);let c=await{"hub:channel:edit":()=>import("./5TRSWX6M.js"),"hub:channel:create":()=>import("./JYDRZHOB.js")}[a]();u=await c.buildUiSchema(e,i,t),c.buildDefaults&&(s=await c.buildDefaults(e,i,t));break;case"project":let{ProjectSchema:n}=await import("./VH4DOQZ4.js");r=l(n);let v=await{"hub:project:edit":()=>import("./YEFAWRXP.js"),"hub:project:create":()=>import("./R5UFCXCH.js"),"hub:project:create2":()=>import("./EV22N3KD.js"),"hub:project:metrics":()=>import("./2A6DDRTH.js"),"hub:project:settings":()=>import("./WFUAPKTB.js")}[a]();u=await v.buildUiSchema(e,i,t),v.buildDefaults&&(s=await v.buildDefaults(e,i,t));break;case"initiative":let{InitiativeSchema:F}=await import("./4HAO722I.js");r=l(F);let S=await{"hub:initiative:edit":()=>import("./4ULTYKHN.js"),"hub:initiative:create":()=>import("./VXJY4QCS.js"),"hub:initiative:create2":()=>import("./PNZFKJGE.js"),"hub:initiative:metrics":()=>import("./CJFK6TKW.js"),"hub:initiative:associations":()=>import("./7244YR36.js"),"hub:initiative:settings":()=>import("./LUCYOE4G.js")}[a]();u=await S.buildUiSchema(e,i,t),S.buildDefaults&&(s=await S.buildDefaults(e,i,t));break;case"page":let{PageSchema:I}=await import("./PSUWSWTK.js");r=l(I);let D=await{"hub:page:edit":()=>import("./JMMD7YBL.js"),"hub:page:create":()=>import("./GUN44VYU.js")}[a]();u=await D.buildUiSchema(e,i,t),D.buildDefaults&&(s=await D.buildDefaults(e,i,t));break;case"content":let{ContentSchema:K}=await import("./QYU6USHT.js");r=l(K);let U=await{"hub:content:edit":()=>import("./RVTHLBJL.js"),"hub:content:discussions":()=>import("./GJ2UG6YP.js"),"hub:content:settings":()=>import("./EX6HJQ4X.js")}[a]();u=await U.buildUiSchema(e,i,t),U.buildDefaults&&(s=await U.buildDefaults(e,i,t));break;case"template":let{TemplateSchema:y}=await import("./BRSXWNGO.js");r=l(y);let k=await{"hub:template:edit":()=>import("./HPUAGDRV.js")}[a]();u=await k.buildUiSchema(e,i,t),k.buildDefaults&&(s=await k.buildDefaults(e,i,t));break;case"group":let{GroupSchema:z}=await import("./WBRXMEMP.js");r=l(z);let M=await{"hub:group:create:followers":()=>import("./EHUPQ5JP.js"),"hub:group:create:association":()=>import("./LG2N3IDQ.js"),"hub:group:create:view":()=>import("./IPXTSW43.js"),"hub:group:create:edit":()=>import("./J252EEIH.js"),"hub:group:create":()=>import("./WCVUN6XF.js"),"hub:group:edit":()=>import("./7YFBO4YO.js"),"hub:group:settings":()=>import("./7ATYJT4O.js"),"hub:group:discussions":()=>import("./W7HZRPHM.js")}[a]();u=await M.buildUiSchema(e,i,t),M.buildDefaults&&(s=await M.buildDefaults(e,i,t));break;case"survey":let{SurveySchema:A}=await import("./ZY74MRCW.js");r=l(A),u=await(await{"hub:survey:edit":()=>import("./5K5LGI4X.js"),"hub:survey:settings":()=>import("./QNXFXUZA.js")}[a]()).buildUiSchema(e,i,t);break;case"event":let B=await{"hub:event:create":()=>import("./B5754CLI.js"),"hub:event:edit":()=>import("./5JYWXCER.js"),"hub:event:registrants":()=>import("./W7Z3ORQY.js")}[a](),H=await{"hub:event:create":()=>import("./UVRRN3AM.js"),"hub:event:edit":()=>import("./RWQELBMY.js"),"hub:event:registrants":()=>import("./5JHZFHQW.js")}[a]();r=B.buildSchema(),u=await H.buildUiSchema(e,i,t);break;case"initiativeTemplate":let{InitiativeTemplateSchema:J}=await import("./DCYHSAL2.js");r=l(J);let j=await{"hub:initiativeTemplate:edit":()=>import("./5CGYAFLG.js")}[a]();u=await j.buildUiSchema(e,i,t),j.buildDefaults&&(s=await j.buildDefaults(e,i,t));break;case"user":let{UserSchema:N}=await import("./QH2LKILS.js");r=l(N);let P=await{"hub:user:settings":()=>import("./A4L4EUDH.js")}[a]();u=await P.buildUiSchema(e,i,t),P.buildDefaults&&(s=await P.buildDefaults(e,i,t));break;case"card":let T=await G(e,a,i,t);r=T.schema,u=T.uiSchema,s=T.defaults}return r=w(r,u),r=V(r,i),Promise.resolve({schema:r,uiSchema:u,defaults:s})}async function gi(e,a,i,t){return L(e,a,i,t)}export{gi as getEditorConfig};
@@ -1,4 +0,0 @@
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.5 */
4
- import{e as s}from"./25JM7WUJ.js";import"./QP26HSVE.js";import"./H3FM5UM6.js";import{a as c,c as e,d as l,e as r,f as d}from"./ML3FDA7I.js";import"./UITEOOYI.js";var m=".sc-instant-apps-measurement-h .sc-instant-apps-measurement.sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}.sc-instant-apps-measurement-h .active-tool.sc-instant-apps-measurement{--calcite-color-foreground-1:#c7eaff}",u=m,h={content:"instant-apps-measurement__content"},f=class{constructor(t){c(this,t),this.measureActive=d(this,"measureActive",7),this.messages=void 0,this.view=void 0,this.areaUnit=void 0,this.linearUnit=void 0,this.coordinateFormat=void 0,this.activeToolType=void 0,this.closable=!1}async componentWillLoad(){s(this)}componentDidLoad(){}render(){return e(l,{key:"68d619bbb5d2b0808ad57a1891ca07ae35391194"},e("calcite-panel",{key:"5fe4f0d6ee4c8344cb5fadedd3c09a81a100f342",heading:this?.messages?.label,closable:this.closable},e("div",{key:"6f220edb8795f0563ea4f4e76f0908c2fca4a263",slot:"content-top"},this.renderActionPad()),e("div",{key:"5b11d036b55b5a98df11d8c575b995c2b7f4a322"},this.renderMeasureToolPanel())))}renderMeasureToolPanel(){let{view:t,coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o}=this;return e("calcite-panel",{class:h.content},e("instant-apps-measurement-tool",{ref:p=>{this.measureTool=p},view:t,measureConfiguration:{coordinateFormat:i,areaUnit:a,linearUnit:n,activeToolType:o},activeTool:this.activeToolType}))}renderActionPad(){let{messages:t,activeToolType:i}=this;return e("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal",position:"end"},e("calcite-action",{class:i==="distance"?"active-tool":"",text:t?.line,icon:"measure",scale:"m","data-value":"distance",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.line)),e("calcite-action",{class:i==="area"?"active-tool":"",text:t?.area,scale:"m",icon:"measure-area","data-value":"area",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.area)),e("calcite-action",{class:i==="point"?"active-tool":"",text:t?.point,scale:"m",icon:"pin-plus","data-value":"point",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.point)),e("calcite-action",{text:t?.clear,scale:"m",icon:"trash","data-value":"clear",onClick:this._handleToolClick.bind(this)},e("calcite-tooltip",{overlayPositioning:"fixed","close-on-click":!0,placement:"top",slot:"tooltip"},t?.clear)))}_handleToolClick(t){if(!this?.measureTool)return;let i=t?.target;if(!(i instanceof HTMLElement))return;let a=i?.dataset.value;if(a!=="distance"&&a!=="area"&&a!=="point"&&a!=="clear")return;a&&(this.measureTool.activeTool=a);let n=document.getElementsByClassName("active-tool");for(let o=0;o<n?.length;o++)n[o]?.classList?.remove("active-tool");i?.classList.add("active-tool"),this.measureActive.emit(!(a===void 0||a==="clear"))}get el(){return r(this)}};f.style=u;export{f as instant_apps_measurement};
@@ -1,4 +0,0 @@
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.5 */
4
- import{a as h}from"./Q5QONQ6T.js";import{a as x}from"./25FEJN5O.js";import{e as v}from"./25JM7WUJ.js";import{c as w,h as I,i as T,k as p,l as u,x as E,z as S}from"./QP26HSVE.js";import"./H3FM5UM6.js";import{a as _,c as s,d as C,e as b}from"./ML3FDA7I.js";import"./UITEOOYI.js";var{state:t,onChange:L}=x({timeInfoConfigItems:[],filterMode:{type:"filter"},view:null,timeSlider:null,timeInfoItems:[],selectedTimeInfoItem:null,loading:!0,timeSliderConfig:{},autoPlay:!1}),g="time-slider-watch",y=class{constructor(){this.initializeModules()}async initializeModules(){try{let e=await S();this.reactiveUtils=e,this.handles=await w()}catch{}}async init(e){e&&(e.innerHTML=""),t?.timeSlider?.viewModel?.state==="playing"&&t.timeSlider.stop();let{view:i,timeInfoConfigItems:n}=t;if(i)try{if(await i.when(),n.length===1&&n[0]?.type==="map")this.initTimeSlider(e,n[0]);else{let a=await this.getTimeLayerViews(i,n);t.timeInfoItems=this.generateTimeInfoItems(a,n),this.initTimeSlider(e)}return Promise.resolve()}catch{}finally{this.setupFilterModeWatcher()}}destroy(){this.handles?.removeAll(),this.handles=null,t.timeSlider?.destroy()}async getTimeLayerViews(e,i){let n=e.map?.allLayers,a=o=>n?.find(({id:f})=>o===f),m=i.map(({id:o})=>a(o)).map(async o=>await e.whenLayerView(o));return await Promise.all(m)}generateTimeInfoItems(e,i){return[...i].map(a=>{let l=e.find(({layer:m})=>m.id===a.id);return this.generateTimeInfoItem(l,a)})}generateTimeInfoItem(e,{increments:i,rangeStart:n,rangeEnd:a,timeIntervalValue:l}){let f=e?.layer?.timeInfo?.fullTimeExtent;return{layerView:e,unit:i,timeIntervalValue:l??1,rangeStart:new Date(n),rangeEnd:new Date(a),timeExtent:f,previousTimeExtent:null}}async initTimeSlider(e,i){let n=async a=>(t.timeSlider=await E(a),t.autoPlay&&t.timeSlider.play(),void await Promise.resolve());if(i){let a=await this.getTimeSliderConfig(e,i);await n(a)}else{let a=t?.timeInfoItems?.[0];if(!a)return;t.selectedTimeInfoItem=a;let l=await this.getTimeSliderConfig(e);await n(l)}t.view?.type==="2d"&&this.initialize2DView()}setupFilterModeWatcher(){L("filterMode",e=>{e&&t.timeInfoItems.forEach(i=>{let n=i.layerView;this.applyTimeExtent(n,n?.featureEffect?.filter?.timeExtent||n.filter?.timeExtent,e)})})}async getTimeSliderConfig(e,i){let n={container:e,mode:"time-window",view:t.view?.type==="3d"?t.view:null,...t.timeSliderConfig};if(i){let a=t.view?.map?.widgets?.timeSlider,l={...n,fullTimeExtent:a?.fullTimeExtent,timeExtent:a?.currentTimeExtent};return a?.stopInterval?.unit&&a?.stopInterval?.value&&(l.stops={interval:await u({unit:a?.stopInterval?.unit,value:a?.stopInterval?.value})}),l}else{let[{timeExtent:a,rangeStart:l,rangeEnd:m,unit:o,timeIntervalValue:f}]=t.timeInfoItems;return{...n,fullTimeExtent:a,timeExtent:await p({start:l,end:m}),stops:{interval:await u({unit:o,value:f})}}}}initialize2DView(){t.timeInfoItems.forEach(async e=>this.applyTimeExtent(e.layerView,await p({start:e.rangeStart,end:e.rangeEnd}))),this.setupTimeExtentWatcher()}applyTimeExtent(e,i,n){t.filterMode?.type==="effect"?this.applyFeatureEffect(e,i,n):this.applyFeatureFilter(e,i)}applyFeatureEffect(e,i,n){if(e){if(e.filter&&e.set("filter",null),!e?.featureEffect?.filter||n){this.handleUpdatedFeatureEffect(e,i);return}e.featureEffect.filter.timeExtent=i}}async handleUpdatedFeatureEffect(e,i){e.featureEffect=await I({filter:{timeExtent:i},includedEffect:await h(t.filterMode?.effect?.includedEffect??"",e,"includedEffect"),excludedEffect:await h(t.filterMode?.effect?.excludedEffect??"",e,"excludedEffect")})}async applyFeatureFilter(e,i){if(e.featureEffect&&e.set("featureEffect",null),!e.filter){e.filter=await T({timeExtent:i});return}e.filter.timeExtent=i}setupTimeExtentWatcher(){this.handles?.has(g)&&this.handles?.remove(g),t?.timeSlider&&this.handles?.add(t.timeSlider.watch("timeExtent",e=>this.applyTimeExtent(t.selectedTimeInfoItem?.layerView,e)),g)}updateSelectedTimeInfoItem(e){t.timeSlider&&(t.selectedTimeInfoItem&&(t.selectedTimeInfoItem.previousTimeExtent=t.timeSlider.timeExtent),t.selectedTimeInfoItem=e,this.reconfigureTimeSlider(e),this.applyTimeExtent(e.layerView,t.timeSlider.timeExtent),this.setupTimeExtentWatcher())}async reconfigureTimeSlider(e){t.timeSlider&&(t.timeSlider.fullTimeExtent=e.timeExtent,t.timeSlider.timeExtent=await this.getTimeExtent(e),t.timeSlider.stops={interval:await this.getTimeInterval(e)})}async getTimeExtent({rangeStart:e,rangeEnd:i,previousTimeExtent:n}){let a=n??await p({start:e,end:i});return await Promise.resolve(a)}async getTimeInterval(e){let i=e.unit??e.layerView?.layer?.timeInfo?.interval?.unit;return await u({unit:i,value:1})}getLabel(e){return e?.layerView?.layer?.title||""}},d=new y,M=".instant-apps-time-filter{position:relative;display:block;min-width:375px;min-height:200px}.instant-apps-time-filter__background{background-color:var(--calcite-ui-background);position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.instant-apps-time-filter calcite-dropdown{width:100%}.instant-apps-time-filter calcite-dropdown calcite-button{--calcite-color-brand:var(--calcite-ui-text-1);--calcite-ui-brand:var(--calcite-ui-text-1)}.instant-apps-time-filter__layer-title{font-weight:550;display:inline-block;padding:10px}.instant-apps-time-filter__loading-container{display:flex;justify-content:center;align-items:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1}.instant-apps-time-filter--3d{min-height:160px}",F=M,c={base:"instant-apps-time-filter",layerTitle:"instant-apps-time-filter__layer-title",loadingContainer:"instant-apps-time-filter__loading-container",background:"instant-apps-time-filter__background",threeD:" instant-apps-time-filter--3d"},D=class{constructor(r){_(this,r),this.messages=void 0,this.timeSliderRef=void 0,this.timeInfoConfigItems=[],this.filterMode=void 0,this.view=void 0,this.timeSliderConfig=void 0,this.autoPlay=!1}async updateTimeInfoConfigItems(){t.timeInfoConfigItems=this.timeInfoConfigItems,await d.init(this.timeSliderRef)}async updateFilterMode(){t.filterMode=this.filterMode}async updateTimeSliderConfig(){t.timeSliderConfig=this.timeSliderConfig,await d.init(this.timeSliderRef)}async updateAutoPlay(){t.autoPlay=this.autoPlay,t.timeSlider&&(t.autoPlay?t.timeSlider.play():t.timeSlider.stop())}async componentWillLoad(){try{t.view=this.view,t.timeInfoConfigItems=this.timeInfoConfigItems,t.autoPlay=!!this.autoPlay,this.timeSliderConfig&&(t.timeSliderConfig=this.timeSliderConfig),this.filterMode&&(t.filterMode=this.filterMode),await v(this)}catch{}}async componentDidLoad(){try{await d.init(this.timeSliderRef)}catch{}finally{t.loading=!1}}disconnectedcallback(){d.destroy()}render(){return s(C,{key:"c994735c86c7bb3edeadf623a15c565960637f23"},this._renderBase())}_renderBase(){return s("div",{class:`${c.base}${this.view.type!=="2d"?c.threeD:""}`},this._renderLoader(),this.view.type==="2d"&&this._renderTopEl(),s("div",{key:"time-slider",ref:r=>{r&&(this.timeSliderRef=r)}}))}_renderLoader(){return t.loading&&s("div",null,s("div",{class:c.background}),s("div",{class:c.loadingContainer},s("calcite-loader",{scale:"m",label:this.messages?.loading??"",text:this.messages?.loading})))}_renderTopEl(){return this.timeInfoConfigItems.length>1?this._renderDropdown():this._renderLayerTitle()}_renderLayerTitle(){let r=t.selectedTimeInfoItem?.layerView?.layer?.title;return s("span",{class:c.layerTitle},r)}_renderDropdown(){return t.selectedTimeInfoItem&&s("calcite-dropdown",null,this._renderDropdownButton(),this._renderDropdownItems())}_renderDropdownButton(){return s("calcite-button",{slot:"trigger",appearance:"transparent",iconEnd:"chevron-down",width:"full",alignment:"space-between"},d.getLabel(t.selectedTimeInfoItem))}_renderDropdownItems(){return t.timeInfoItems.map(r=>this._renderDropdownItem(r))}_renderDropdownItem(r){let e=t.selectedTimeInfoItem?.layerView?.layer?.id,i=r?.layerView?.layer?.id;return s("calcite-dropdown-item",{onCalciteDropdownItemSelect:()=>d.updateSelectedTimeInfoItem(r),selected:e===i},d.getLabel(r))}get el(){return b(this)}static get watchers(){return{timeInfoConfigItems:["updateTimeInfoConfigItems"],filterMode:["updateFilterMode"],timeSliderConfig:["updateTimeSliderConfig"],autoPlay:["updateAutoPlay"]}}};D.style=F;export{D as instant_apps_time_filter};
@@ -1,4 +0,0 @@
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.5 */
4
- import{c as a}from"./7NMV3XFP.js";import"./UITEOOYI.js";export{a as MetricSchema};
@@ -1,29 +0,0 @@
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.5 */
4
- import{a as g,b as E,c as p,d as I,e as f,f as r,i as y,j as S,l as k}from"./WIE3EFBI.js";import"./25FEJN5O.js";import"./25JM7WUJ.js";import"./QP26HSVE.js";import"./H3FM5UM6.js";import{a as _,c as i,d as v,e as U,f as b,j as w}from"./ML3FDA7I.js";import"./UITEOOYI.js";var A=`
5
- .ck.ck-reset.ck-editor.ck-rounded-corners {
6
- margin-top: 10px !important;
7
- margin-left: 55px !important;
8
- }
9
- .ck-editor__editable {
10
- height: 70px !important;
11
- font-size: 0.875rem !important;
12
- line-height: 1.375 !important;
13
- color: var(--calcite-color-text-1) !important;
14
- }
15
-
16
- .ck.ck-editor__editable_inline>:first-child,
17
- .ck.ck-editor__editable_inline>:last-child {
18
- --ck-spacing-large: 0.5rem !important;
19
- }
20
-
21
- .ck.ck-balloon-panel.ck-powered-by-balloon {
22
- --ck-z-modal: 700;
23
- z-index: 700;
24
- }
25
-
26
- .calcite-mode-dark .ck-editor__editable {
27
- color: var(--calcite-color-text-inverse) !important;
28
- }
29
- `,B=":host{display:block}",M=B,N="instant-apps-components__ckeditor-wrapper",W=class{constructor(t){_(this,t),this.isFocused=b(this,"isFocused",7),this.dataChanged=b(this,"dataChanged",7),this.value=void 0,this.editorInstance=void 0,this.config=void 0}updateValue(){this.value&&this.editorInstance&&this.editorInstance.setData(this.value)}async componentDidLoad(){this.init()}componentDidUpdate(){this.editorInstance&&this.editorInstance.setData(this.value)}render(){return i(v,{key:"2104ac1f7352f2d5eb63dcf26d72e4ef8e66faca"},i("div",{key:"169afe82a4360700d4f5aa81b48b1d41dda82297"}))}init(){this.applyStyles(),this.initEditor()}applyStyles(){if(!!document.getElementById(N))return;let e=document.createElement("style");e.id=N,e.innerHTML=A,document.head.prepend(e)}async initEditor(){let t=await this.createEditor();t&&(this.editorInstance=t,(this.value||this.value==="")&&t.setData(this.value),t.editing.view.document.on("change:isFocused",this.getEditorFocusedCallback(t)))}async createEditor(){try{let t;return this.config?t=await ClassicEditor.create(this.el,this.config):t=await ClassicEditor.create(this.el),this.editorInstance=t,Promise.resolve(t)}catch(t){return console.error(t),await Promise.reject(new Error("Failed to create editor"))}}getEditorFocusedCallback(t){return(e,a,n)=>{if(n)this.isFocused.emit();else{let s=t.getData();this.value!==s&&(this.value=s,this.dataChanged.emit(s))}}}get el(){return U(this)}static get watchers(){return{value:["updateValue"]}}};W.style=M;var F=".sc-instant-apps-language-translator-item-h{display:block}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__top-row.sc-instant-apps-language-translator-item{display:flex;align-items:center;justify-content:space-between}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label-container.sc-instant-apps-language-translator-item{display:flex;align-items:center}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item .instant-apps-language-translator-item__label.sc-instant-apps-language-translator-item{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-top:10px;margin-left:55px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--last-item.sc-instant-apps-language-translator-item{border-bottom:none}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item:first-child{margin-right:1%}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-popover-content.sc-instant-apps-language-translator-item{display:inline-block;padding:10px;max-width:400px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-items.sc-instant-apps-language-translator-item{display:flex}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__ui-location-item.sc-instant-apps-language-translator-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__tip.sc-instant-apps-language-translator-item{display:inline-block;font-size:14px;line-height:22px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__info-button.sc-instant-apps-language-translator-item{border:0;background-color:transparent;cursor:pointer}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item{margin-left:60px;margin-top:8px}.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__nested-input.sc-instant-apps-language-translator-item calcite-input.sc-instant-apps-language-translator-item{margin-left:30px}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-action.sc-instant-apps-language-translator-item{--calcite-ui-icon-color:var(--calcite-color-text-inverse)}.calcite-mode-dark.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section--selected.sc-instant-apps-language-translator-item calcite-icon.sc-instant-apps-language-translator-item{color:var(--calcite-color-text-inverse)}.instant-apps-language-translator--last-item.sc-instant-apps-language-translator-item-h .instant-apps-language-translator-item__section.sc-instant-apps-language-translator-item{border-bottom:none}",H=F,d="instant-apps-language-translator-item",c={section:`${d}__section`,selected:`${d}__section--selected`,collapsed:`${d}__section--collapsed`,topRow:`${d}__top-row`,labelContainer:`${d}__label-container`,label:`${d}__label`,uiLocationPopoverContent:`${d}__ui-location-popover-content`,uiLocationItems:`${d}__ui-location-items`,uiLocationItem:`${d}__ui-location-item`,infoIcon:`${d}__info-icon`,infoButton:`${d}__info-button`,tip:`${d}__tip`,nestedInput:`${d}__nested-input`},P=class{constructor(t){_(this,t),this.translatorItemDataUpdated=b(this,"translatorItemDataUpdated",7),this.userInputs={},this.translatedInputs={},this.fieldName=void 0,this.translatedLanguageLabels=void 0,this.setting=void 0,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0}get isTextEditor(){return this.setting.type===E.TextEditor}get calciteMode(){return k()?I.Dark:I.Light}get hasNestedContent(){return!!this.setting?.content}get tipID(){return`${this.fieldName}goTo`}componentDidLoad(){this.isTextEditor&&r.onChange("uiData",()=>this.handleEditorCollapse())}render(){return"content"in this.setting&&this.setting.content?.every(t=>t?.content?.length===0)?i(w,null):i(v,{class:this.calciteMode},this.renderBase(),this.renderPopover())}renderBase(){return i("div",{class:d},this.renderUserLocaleSection(),this.renderTranslatedLanguageSection())}renderPopover(){let t=this.getTip();return i("calcite-popover",{referenceElement:this.tipID,label:"","auto-close":"true",placement:"trailing",closable:!0},i("span",{class:c.uiLocationPopoverContent},i("span",{class:c.uiLocationItems},this.getUILocation()),t?i("span",{class:c.tip},t):null))}renderUserLocaleSection(){let t=this.getUIDataItem(),e=t?.userLocaleData,n=t?.selected?` ${c.selected}`:"",s=e?.label,o=e?.value,l=this.setting.id;return i("div",{class:`${c.section}${n}`},this.renderItemHeader(g.User,s,l),this.handleInputRender(g.User,o,l))}renderTranslatedLanguageSection(){let t=this.getUIDataItem(),e=this.setting.id,a=r.get("currentLanguage"),n=r.get("portalItemResourceT9n"),s=this.translatedLanguageLabels?.[this.fieldName],o=typeof n=="object"&&n!==null&&a in n&&typeof n!="number"&&!Array.isArray(n)?String(n[a]?.[e]??""):"",l=t?.selected?` ${c.selected}`:"";return i("div",{class:`${c.section}${l}`},this.renderItemHeader(g.Translation,s,e),this.handleInputRender(g.Translation,o,e))}handleInputRender(t,e,a){return this.getUIDataItem()?.expanded?this.hasNestedContent?this.renderNestedInputs(t):this.renderInput(t,e,a):null}renderNestedInputs(t,e){let a=e??this.setting,{content:n}=a;return n?.map(s=>"content"in s?this.renderNestedInputs(t,s):this.renderNestedInput(t,s)).filter(s=>s!==void 0)}renderNestedInput(t,e){let a=r.get("currentLanguage"),n=r.get("portalItemResourceT9n"),s=e?.id,o=n?.[a],l=typeof o=="object"&&o!==null?o[s]:void 0,{label:u,value:L,id:m}=e,h=t===g.Translation?this.translatedLanguageLabels?.[m]:u,x=t===g.User?L:l??"";return i("div",{class:c.nestedInput},this.renderItemHeader(t,h,s,e),this.renderInput(t,String(x),s,e))}renderItemHeader(t,e,a,n){let l=!this.hasNestedContent||!!n;return i("div",{class:c.topRow},this.renderItemHeaderLabel(t,e,n),l?this.renderCopyButton(t,a):null)}renderItemHeaderLabel(t,e,a){let n=t===g.User&&!a;return i("div",{class:c.labelContainer},a?null:this.renderExpandCollapseButton(),i("calcite-icon",{icon:this.getIcon(a),scale:"s"}),i("span",{class:c.label},e),n?this.renderInfoButton():null)}renderExpandCollapseButton(){let a=this.getUIDataItem()?.expanded?p.Expanded:p.Collapsed;return i("calcite-action",{onClick:this.handleExpand.bind(this),icon:a,scale:"s",appearance:"transparent",text:""})}renderInfoButton(){return i("button",{id:this.tipID,class:c.infoButton},i("calcite-icon",{class:c.infoIcon,icon:p.Popover,scale:"s"}))}renderCopyButton(t,e){return i("calcite-action",{class:this.calciteMode,onClick:this.copySelection.bind(this,t,e),slot:"action",icon:p.Copy,appearance:"transparent",text:""})}renderInput(t,e,a,n){let s=n??this.setting;return s.type==="string"||s.type==="textarea"?t===g.User?this.renderUserLocaleInput(e,a):this.renderTranslatedLanguageInput(e,a):this.renderTextEditor(e,t,a)}renderUserLocaleInput(t,e){return i("calcite-input",{ref:a=>{a&&(this.userInputs[e]=a)},key:e,id:e,class:I.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleUserInputChange.bind(this)})}renderTranslatedLanguageInput(t,e){return i("calcite-input",{ref:a=>{a&&(this.translatedInputs[e]=a)},key:e,id:e,class:I.Light,"data-field-name":this.fieldName,value:t,onFocus:this.handleSelection,onCalciteInputChange:this.handleTranslatedInputChange.bind(this)})}renderTextEditor(t,e,a){let n={toolbar:[]};return i("instant-apps-ckeditor-wrapper",{id:a,ref:this.setEditor.bind(this,e),onDataChanged:this.handleTextEditorDataChange.bind(this,e),onIsFocused:this.handleSelection,value:t??"","data-field-name":this.fieldName,config:n})}getUIDataItem(){if(f.uiData)return f.uiData.get(this.fieldName)}updateT9nStore(t,e){let a=r.get("currentLanguage"),n={[t]:e},s=S(a,n);r.set("portalItemResourceT9n",s)}handleExpand(){let t=this.getUIDataItem();t.expanded=!t.expanded;let e=new Map(f.uiData);e.set(this.fieldName,t),r.set("uiData",e)}handleEditorCollapse(){if(!r.get("uiData")?.get(this.fieldName)?.expanded&&this.userEditorWrapper?.editorInstance&&this.translatedEditorWrapper?.editorInstance){let{userEditorWrapper:n,translatedEditorWrapper:s}=this,o=n.editorInstance.getData();n.value=o;let l=s.editorInstance.getData();s.value=l,n.editorInstance.destroy(),s.editorInstance.destroy()}}handleSelection(t){let e=new Map(f.uiData),a=y();a.forEach(n=>{let s=e?.get(n);s.selected=!1}),a.forEach(n=>{let o=t?.target?.getAttribute("data-field-name");if(n===o){let l=e?.get(n);l.selected=!0}}),r.set("uiData",e)}getUILocation(){let t=this.getUIDataItem(),{uiLocation:e,userLocaleData:a}=t,{section:n,subsection:s}=e,o=[n.label,s.label,a.label].filter(l=>!!l);return o.map((l,u)=>i("span",{class:c.uiLocationItem},i("span",null,l),u!==o.length-1?i("calcite-icon",{icon:"chevron-right",scale:"s"}):null))}getTip(){let t=this.getUIDataItem(),{tip:e}=t;return e}copySelection(t,e){this.setting.type===E.TextEditor?this.copyTextEditorContent(t):this.copyCalciteInputContent(e,t)}copyTextEditorContent(t){let e=t===g.User?this.userEditorWrapper?.editorInstance:this.translatedEditorWrapper?.editorInstance,a=50;setTimeout(()=>{this.selectContent(e),setTimeout(()=>this.selectContent(e),a)},a),this.copyContent(e)}selectContent(t){t.editing.view.focus();let{model:e}=t,n=e.document.getRoot();if(n){let s=e.createRangeIn(n);e.change(o=>o.setSelection(s))}}copyContent(t){let e=t.getData(),a=document.createElement("div");a.contentEditable="true",a.innerHTML=e,document.body.appendChild(a);let n=document.createRange();n.selectNodeContents(a);let s=window.getSelection();s?.removeAllRanges(),s?.addRange(n),document.execCommand("copy"),document.body.removeChild(a)}copyCalciteInputContent(t,e){let a=e===g.User?this.userInputs[t]:this.translatedInputs[t];if(a){a.selectText();let n=a.value;navigator.clipboard.writeText(n)}}setEditor(t,e){e&&(t===g.User?this.userEditorWrapper=e:this.translatedEditorWrapper=e)}async handleUserInputChange(t){r.set("saving",!0);try{let e=t.target,a=e.id,n=e.value,s=this.getUIDataItem();s.userLocaleData.value=n,await this.userLocaleInputOnChangeCallback(a,n),r.set("saving",!1)}catch{r.set("saving",!1)}}async handleUserTextEditorChange(t){r.set("saving",!0);try{let e=t.detail,n=t.target.id,s=this.getUIDataItem();s.userLocaleData.value=e,await this.userLocaleInputOnChangeCallback(n,e),r.set("saving",!1)}catch{r.set("saving",!1)}}async handleTranslatedInputChange(t){r.set("saving",!0);try{let a=t.composedPath()[0],n=a.id;this.updateT9nStore(n,a.value);let{locale:s,resource:o}=this.getTranslatedLocaleCallbackData(),l=t.target.value;await this.translatedLocaleInputOnChangeCallback(n,l,s,o),setTimeout(()=>r.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(e){console.error("Error writing to portal item resource: ",e),r.set("saving",!1)}}async handleTranslatedTextEditorChange(t){r.set("saving",!0);try{let a=t.target.id;this.updateT9nStore(a,t.detail);let{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),o=t.detail;await this.translatedLocaleInputOnChangeCallback(a,o,n,s),setTimeout(()=>r.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(e){console.error("Error writing to portal item resource: ",e),r.set("saving",!1)}}handleTextEditorDataChange(t,e){t===g.User?this.handleUserTextEditorChange(e):this.handleTranslatedTextEditorChange(e)}getTranslatedLocaleCallbackData(){let t=r.get("currentLanguage"),e=r.get("portalItemResource");return{locale:t,resource:e}}getIcon(t){switch((t??this.setting).stringType){case"title":return p.Title;case"subtitle":return p.Subtitle;case"text":return p.Text;case"button":return p.Button;case"string":return p.String;default:return p.SettingIndicator}}};P.style=H;var z=".sc-instant-apps-language-translator-search-h{display:block;position:relative}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__input.sc-instant-apps-language-translator-search{width:235.5px}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list.sc-instant-apps-language-translator-search{position:absolute;margin:0;padding:0;width:100%;max-height:30vh;overflow:auto;border-left:none;background-color:var(--calcite-color-foreground-1);border:1px solid #c0c0c0;z-index:702}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:first-child{border:none}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search{margin-top:0;padding:0.8em 1em;border-top:solid 1px rgba(110, 110, 110, 0.3);display:flex;flex-direction:column;cursor:pointer;word-break:break-word}.sc-instant-apps-language-translator-search-h .instant-apps-language-translator-search__suggestion-list-item.sc-instant-apps-language-translator-search:hover{background-color:var(--calcite-color-foreground-2)}",O=z,C="instant-apps-language-translator-search",T={base:C,input:`${C}__input`,suggestionList:`${C}__suggestion-list`,suggestionListItem:`${C}__suggestion-list-item`},j=class{constructor(t){_(this,t),this.suggestionSelected=b(this,"suggestionSelected",7),this.t9nPlaceholder=void 0,this.results=[]}render(){return i(v,{key:"677c14d855fbc7f47874433ecc6bab0321e5ae20"},this.renderSearchInput(),this.renderSuggestions())}renderSearchInput(){return i("calcite-input",{ref:t=>{t&&(this.searchInput=t)},class:T.input,onCalciteInputInput:this.handleSearch.bind(this),type:"search",placeholder:this.t9nPlaceholder,icon:"search"})}renderSuggestions(){return this.results.length>0?this.renderSuggestionList():null}renderSuggestionList(){return i("ul",{class:T.suggestionList},this.results.map(t=>this.renderSuggestionListItem(t)))}renderSuggestionListItem(t){return i("li",{onClick:this.selectSuggestion.bind(this),class:T.suggestionListItem,"data-field-name":t.fieldName},t.userLocaleData.label)}handleSearch(t){let a=t.target.value?.toLowerCase()?.trim(),n=r.get("uiData"),s=y(),o=r.get("portalItemResourceT9n"),l=r.get("currentLanguage"),u=o?.[l]??{},m=this.getSettingDataItems(s).filter(this.matchedResultsCallback(n,u,a,l));this.results=[...m.map(h=>({fieldName:h,...n.get(h)}))]}matchedResultsCallback(t,e,a,n){return s=>{let o=t.get(s),{label:l}=o.userLocaleData,{value:u}=o.userLocaleData,m=t.get("translatedLanguageLabels")?.[n]?.[s],h=e?.[s],D=this.testUserInput(l,a),x=this.testUserInput(u,a),R=this.testUserInput(m,a),$=this.testUserInput(h,a);return D||x||R||$}}getSettingDataItems(t){return t.filter(e=>e!=="locales"&&e!=="translatedLanguageLabels")}testUserInput(t,e){return!!t?.trim()&&!!e?.trim()&&t?.toLowerCase()?.search(e)!==-1}selectSuggestion(t){let a=t.target.getAttribute("data-field-name");this.suggestionSelected.emit(a),this.resetSearchInput()}resetSearchInput(){this.searchInput.value="",this.results=[]}};j.style=O;export{W as instant_apps_ckeditor_wrapper,P as instant_apps_language_translator_item,j as instant_apps_language_translator_search};
@@ -1,18 +0,0 @@
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.5 */
4
- import{b as m,c as h}from"./CBITJT5D.js";import"./FLX4QZPY.js";import"./2IRIOH44.js";import"./I3ZD6IV4.js";import"./RIQFARZP.js";import"./GKBVNMEW.js";import"./IHQISHAM.js";import"./Q66CZJP6.js";import"./2VXYY4NW.js";import"./GFTGPFHL.js";import"./OG4FHSPI.js";import"./MK7N6OTA.js";import"./WQKEPPJH.js";import"./EEECQWVR.js";import"./S5TXHJGZ.js";import"./AQZ3QIKE.js";import"./B2AAEHPJ.js";import"./WIVOL6CT.js";import"./T6PMIZLP.js";import"./6U4PV22I.js";import"./UCI3QQAA.js";import"./7B2MAX64.js";import"./WZ764LLN.js";import{a as b,b as g}from"./OZWDP6Y7.js";import{b as d}from"./M35TRRGF.js";import{a as c}from"./TA3ZXQAF.js";import{D as p,c as n,d as r,y as o}from"./D3RXCR6Q.js";import"./UITEOOYI.js";var u=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],y=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),D=n`/** @license
5
- * Copyright 2025 Esri
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- */:host{display:block}`,s=class extends o{constructor(){super(...arguments),this.disabled=!1,this._translations=c({name:"pdf-download",blocking:!0}),this._labelInfoElement=b()}static{this.properties={defaultNumLabelsPerPage:9,disabled:5,_translations:16}}static{this.styles=D}async downloadCSV(e,a,i,l=!0){return m(e,a,!0,i,l)}async downloadPDF(e,a,i=!1,l="",t=""){let P=this._labelInfoElement.value?this._labelInfoElement.value.selectedOption?.value:"";return h(e,a,P,i,l,t)}async load(){await this._initModules()}render(){return r`<calcite-select .disabled=${this.disabled} label ${g(this._labelInfoElement)}>${this._renderOptions()}</calcite-select>`}async _initModules(){let[e]=await d(["esri/intl"]);this._intl=e}_getLabelSizeText(e){let a=e.descriptionPDF.labelsPerPageDisplay,i=e.descriptionPDF.labelWidthDisplay+" x "+e.descriptionPDF.labelHeightDisplay;return this._translations.pdfLabel?this._translations.pdfLabel.replace("{{n}}",a).replace("{{labelSize}}",i):""}_renderOptions(){let e=y;return(e.default||e).sort((a,i)=>{let l=Number.parseInt(a.descriptionPDF.labelsPerPageDisplay,10),t=Number.parseInt(i.descriptionPDF.labelsPerPageDisplay,10);return l<t?-1:l>t?1:0}).map((a,i)=>{let l=!1;return(this.defaultNumLabelsPerPage?Number.parseInt(a.descriptionPDF.labelsPerPageDisplay,10)===this.defaultNumLabelsPerPage:i===0)&&(l=!0),r`<calcite-option .selected=${l} .value=${a}>${this._getLabelSizeText(a)}</calcite-option>`})}};p("pdf-download",s);export{s as PdfDownload};
@@ -1,4 +0,0 @@
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.5 */
4
- import{e as o}from"./25JM7WUJ.js";import"./QP26HSVE.js";import"./H3FM5UM6.js";import{a as n,c as t,d as r,e as i}from"./ML3FDA7I.js";import"./UITEOOYI.js";var c=":host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:0.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:0.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:0.5rem 0.75rem 0.5rem 0.75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(even){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:0.5em 0.7em;font-weight:400}",l=c,h={content:"instant-apps-keyboard-shortcuts__content"},d=class{constructor(s){n(this,s),this.messages=void 0,this.view=void 0}render(){let s=this?.view?.type==="2d"||!this?.view?this._getMapViewCommands():this._getSceneViewCommands(),a=this._isMacLike()?"Option":"Alt";return t(r,{key:"84f9106dc025e1e2f72b3877c07f4f518f114451"},t("calcite-block",{key:"25201b23d1d74d25678b324db2d9ba8a19b65fe1",open:!0,class:h.content,heading:this?.messages?.generalShortcuts?.label},t("table",{key:"3eda56857013107bb19470f47b12c7a2296c6c51"},this.renderTableHeader(),t("tr",{key:"432311f662920cdc42f15f5d70b3ef9b93844cd0"},t("td",{key:"389c393270a40a0e9c7e0976d67a29154aa7b082"},`${a} + M`),t("td",{key:"e375dc8f8d69e75e20db9387d41dc2bd80862e06"},this?.messages?.generalShortcuts?.title))),t("calcite-label",{key:"5e770d6232fba18fb9a8bf64eadd713a417ec465"},this?.messages?.generalShortcuts?.title),t("table",{key:"6a16dbd6d987507dc024da5248ee3a4c5591fc7f"},this.renderTableHeader(),s.map(e=>t("tr",null,t("td",null,e.alias),t("td",null,e.title))))))}componentDidLoad(){o(this)}renderTableHeader(){return this?.messages?t("tr",null,t("th",null,this?.messages?.generalShortcuts.shortcut),t("th",null,this?.messages?.generalShortcuts.action)):null}_getMapViewCommands(){let s=this.view?.type==="2d"&&this.view.constraints.rotationEnabled,a=this?.messages?[{alias:this?.messages.mapShortcuts.arrowKeys,title:this?.messages.mapShortcuts.nudge,show:!0},{alias:"N",title:this?.messages.mapShortcuts.N,show:s},{alias:"A",title:this?.messages.mapShortcuts.A,show:s},{alias:"D",title:this?.messages.mapShortcuts.D,show:s},{alias:"+",title:this?.messages.mapShortcuts.plus,show:!0},{alias:"-",title:this?.messages.mapShortcuts.minus,show:!0}]:[];return this?.messages?a?.filter(e=>e.show):[]}_getSceneViewCommands(){let s=this.view?.type==="3d"&&this.view.viewingMode==="global",a=this?.messages?[{alias:this?.messages.mapShortcuts.arrowKeys,title:this?.messages.mapShortcuts.nudge,show:!!s},{alias:"P",title:this?.messages.sceneShortcuts.P,show:!0},{alias:"N",title:this?.messages.sceneShortcuts.N,show:!0},{alias:"W",title:this?.messages.sceneShortcuts.W,show:!0},{alias:"A",title:this?.messages.sceneShortcuts.A,show:!0},{alias:"D",title:this?.messages.sceneShortcuts.D,show:!0},{alias:"S",title:this?.messages.sceneShortcuts.S,show:!0},{alias:"J",title:this?.messages.sceneShortcuts.globalCommands.J,show:!!s},{alias:"U",title:this?.messages.sceneShortcuts.globalCommands.U,show:!!s}]:[];return this?.messages?a?.filter(e=>e.show):[]}_isMacLike(){return/(Mac)/iu.test(navigator.platform)}get el(){return i(this)}};d.style=l;export{d as instant_apps_keyboard_shortcuts};
@@ -1,4 +0,0 @@
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.5 */
4
- var t="UserSession",o="isMobile",a="Auth";export{t as a,o as b,a as c};
@@ -1,9 +0,0 @@
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.5 */
4
- import{a as p,b as f,g as V,j as U,l as q,m as B,n as O,t as w,u as S,v as $,w as k}from"./HCCTS5WV.js";import{a as E}from"./Q5QONQ6T.js";import"./25FEJN5O.js";import{E as N,h as M,i as A}from"./QP26HSVE.js";import{a as u,c as s,e as L,f as T,h as R}from"./ML3FDA7I.js";import"./UITEOOYI.js";var X=".sc-instant-apps-interactive-legend-group-legend-element-h{display:block}.sc-instant-apps-interactive-legend-group-legend-element-h .esri-legend__service.sc-instant-apps-interactive-legend-group-legend-element{margin:0;padding:0}.sc-instant-apps-interactive-legend-group-legend-element-h .hide.sc-instant-apps-interactive-legend-group-legend-element{display:none}",Y=X,D={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},ee=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=!1,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption?.expanded}async componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){return s("div",{key:"cf9f8f643477fc66b5ab9d4f69faa3591664e1a0",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${D.service} ${D.groupLayer}`},s("instant-apps-interactive-legend-layer-element-caption",{key:"10339df7a9d65d87f20c6bf8f84f4bd578495085",ref:e=>this.layerCaption=e,class:$(this.el),legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:this.isChild}),s("div",{key:"c41488c758479a0c3820187641b27d97a7de824d",class:`${D.groupContent} ${this.expanded?"show":"hide"}`},s("slot",{key:"4778c2674ac10a464aa4cca6ec080dfbdca53afa",name:"content"})))}get el(){return L(this)}};ee.style=Y;var te=".sc-instant-apps-interactive-legend-layer-element-h{display:block}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__service.sc-instant-apps-interactive-legend-layer-element{padding:0}.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-layer-element,.sc-instant-apps-interactive-legend-layer-element-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-layer-element{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-layer-element-h .hide.sc-instant-apps-interactive-legend-layer-element{display:none}",ne=te,z={service:"esri-legend__service",groupLayerChild:"esri-legend__group-layer-child",layer:"esri-legend__layer"},ae=class{constructor(e){u(this,e),this.legendvm=void 0,this.featureCount=void 0,this.activeLayerInfo=void 0,this.messages=void 0,this.isChild=void 0,this.expanded=!0}layerCaptionElementExpandUpdatedEmitted(){this.expanded=this.layerCaption.expanded}componentWillLoad(){new MutationObserver(()=>{R(this.el)}).observe(this.el,{attributes:!0})}render(){let e=this.activeLayerInfo.parent?` ${z.groupLayerChild}`:"";return s("div",{key:"aa39da1dd64aae1630988e2a1af8a2b7faea97d9",style:{borderLeft:"1px solid var(--calcite-color-border-3)"},class:`${z.service}${e}`,tabIndex:0},s("instant-apps-interactive-legend-layer-element-caption",{key:"e7013faace5d61da9062c53c3336bddc3f87c1b4",ref:n=>{n&&(this.layerCaption=n)},legendvm:this.legendvm,"feature-count":this.featureCount,activeLayerInfo:this.activeLayerInfo,messages:this.messages,isChild:!!this.isChild,class:$(this.el)}),s("div",{key:"c54f12b6f0a1b1c17ff97c368fac17795e62e74a",id:`${this.activeLayerInfo?.layer?.id}-legend-layer`,class:`${z.layer}${this.expanded?" show":" hide"}`},s("slot",{key:"af29568610f22a76e2d9792c178b0b220cc0bb5d",name:"content"})))}get el(){return L(this)}};ae.style=ne;var ie=".sc-instant-apps-interactive-legend-legend-element-h{display:block}.sc-instant-apps-interactive-legend-legend-element-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-legend-element,.sc-instant-apps-interactive-legend-legend-element-h .instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-legend-element{margin:0}.sc-instant-apps-interactive-legend-legend-element-h .hide.sc-instant-apps-interactive-legend-legend-element{display:none}",se=ie,v={layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerTable:"esri-legend__layer-table",nestedUniqueSymbol:"instant-apps-interactive-legend__nested-unique-symbol",nonInteractive:"instant-apps-interactive-legend__non-interactive"},le=class{constructor(e){u(this,e),this.activeLayerInfo=void 0,this.isSizeRamp=void 0,this.isChild=void 0,this.isColorRamp=void 0,this.isRelationshipRamp=void 0,this.isInteractive=void 0,this.zoomTo=void 0,this.legendElement=void 0,this.titleText="",this.legendvm=void 0,this.legendElementIndex=void 0,this.messages=void 0,this.expanded=!0}legendLayerExpandUpdatedEmitted(){this.expanded=this.legendLayerCaption.expanded}render(){let e=this.isChild?v.layerChildTable:v.layerTable,n=this.legendElement?.infos?.length===1&&!this.activeLayerInfo?.layer?.renderer?.field,t=(this.isSizeRamp||!this.isChild)&&!this.isColorRamp?` ${v.layerTableSizeRamp}`:"",a=this.isInteractive?"":` ${v.nonInteractive}`,i=w(this.activeLayerInfo)?` ${v.nestedUniqueSymbol}`:"",l=n&&!this.expanded&&!this.zoomTo?!0:this.expanded;if(this.isRelationshipRamp){let c=f.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id];l=c===void 0?!0:c}return s("div",{key:"cea3abec3b0d96dd275cadbf6c2446d92c4d39dd",class:`${e}${t}${a}${i}`},s("div",{key:"6124c13d37dee96cb88498f25b275196fd899af5",id:`${this.activeLayerInfo?.layer?.id}-legend-element-caption`,class:this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&n?"hide":"show"},s("instant-apps-interactive-legend-legend-element-caption",{key:"2c89bf0cb37046f020bdfed08e15abadd6513a1c",ref:r=>{r&&(this.legendLayerCaption=r)},legendvm:this.legendvm,activeLayerInfo:this.activeLayerInfo,layer:this.activeLayerInfo.layer,titleText:this.titleText,legendElement:this.legendElement,legendElementIndex:this.legendElementIndex,zoomTo:this.zoomTo,isInteractive:this.isInteractive,messages:this.messages})),s("div",{key:"content",id:`${this.activeLayerInfo?.layer?.id}-legend-element-content-${this.legendElementIndex}`,class:l?"show":"hide"},s("slot",{key:"3ddd3cfe429bcd1a21c020dccc307395d89ba5c9",name:"content"})))}};le.style=se;var re=".sc-instant-apps-interactive-legend-legend-element-caption-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-padding:15px 10px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption{--instant-apps-interactive-legend-ui-padding:5px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;justify-content:flex-end;width:100%}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__show-all-btn.sc-instant-apps-interactive-legend-legend-element-caption{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-ui-brand);font-weight:var(--calcite-font-weight-medium);font-size:0.75rem;padding-inline-start:20px}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__zoom-to-btn.sc-instant-apps-interactive-legend-legend-element-caption{--calcite-icon-color:var(--calcite-ui-brand);--calcite-color-transparent-hover:transparent}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption--compact.sc-instant-apps-interactive-legend-legend-element-caption .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;font-size:0.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__legend-layer-caption-text.sc-instant-apps-interactive-legend-legend-element-caption{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption{display:flex;white-space:nowrap}.sc-instant-apps-interactive-legend-legend-element-caption-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-legend-element-caption calcite-button.sc-instant-apps-interactive-legend-legend-element-caption{margin:2px}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-legend-element-caption-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-legend-element-caption-h:dir(rtl) .esri-legend__layer-caption.sc-instant-apps-interactive-legend-legend-element-caption calcite-action.sc-instant-apps-interactive-legend-legend-element-caption{margin-left:unset;margin-right:20px}",oe=re,b;(function(e){e.ZoomTo="magnifying-glass-plus",e.ShowAll="list-check-all"})(b||(b={}));var g={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},ce=class{constructor(e){u(this,e),this.showAllSelectedEvent=T(this,"showAllSelected",7),this.legendLayerExpandUpdatedEvent=T(this,"legendLayerExpandUpdated",7),this.legendvm=void 0,this.activeLayerInfo=void 0,this.layer=void 0,this.titleText=void 0,this.legendElementIndex=void 0,this.zoomTo=void 0,this.isInteractive=void 0,this.legendElement=void 0,this.expanded=!0,this.messages=void 0}render(){let e=w(this.activeLayerInfo),n=U(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:t}=this,a=f.get("compact"),i=a?` ${g.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText&&s("span",{class:g.layerCaptionText,title:this.titleText},this.titleText),r=(this.isInteractive||n)&&this.renderLegendElementCaptionControls();return s("div",{class:`${g.layerCaption}${i}`},s("calcite-action",{onClick:this.toggleExpanded(),icon:t?"chevron-down":"chevron-up",appearance:"transparent",text:t?this.messages?.collapse:this.messages?.expand,label:t?this.messages?.collapse:this.messages?.expand,scale:"s"}),a?[l,r]:[r,l])}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${g.layerCaptionBtnContainerNoText}`;return s("div",{key:"layer-caption-btn-container",class:`${g.layerCaptionBtnContainer}${e}`},this.renderShowAllZoomToButtons())}renderShowAllZoomToButtons(){return f.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="zoomToCompact",i=this.zoomTo&&[s("calcite-action",{id:a,class:g.zoomTo,onClick:this.handleZoomTo(),icon:b.ZoomTo,appearance:"transparent",scale:"s",text:this.messages?.zoomTo}),s("calcite-tooltip",{"reference-element":a,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)],l=t&&s("button",{onClick:this.handleShowAll(),class:g.showAll},this.messages?.showAll);return[i,l]}renderButtonUI(){let{data:e}=p,{id:n}=this.layer||{},t=e?.[n]?.categories?.size>1,a="showAll",i="zoomTo",l=t&&[s("calcite-button",{key:"show-all-button",id:a,label:this.messages?.showAll,onClick:this.handleShowAll(),iconStart:b.ShowAll,appearance:"outline",round:!0}),s("calcite-tooltip",{referenceElement:a,placement:"top",label:this.messages?.showAll},this.messages?.showAll)],r=this.zoomTo&&[s("calcite-button",{key:"zoom-to-button",id:i,label:this.messages?.zoomTo,onClick:this.handleZoomTo(),iconStart:b.ZoomTo,appearance:"outline",round:!0}),s("calcite-tooltip",{"reference-element":i,placement:"top",label:this.messages?.zoomTo},this.messages?.zoomTo)];return[l,r]}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdatedEvent.emit(),(this.activeLayerInfo?.legendElements?.filter(n=>n.type==="relationship-ramp")).length>0&&f.set("relationshipRampExpandStates",{...p.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=V(this.layer),n=S(e,this.legendElement);O(e,this.legendvm.view,n)}}handleShowAll(){return()=>{let e=()=>{let i=B(t,this.legendElement.title);k({intLegendLayerData:i,layerId:this.layer.id})},n=()=>{let i=q(t);k({intLegendLayerData:i,layerId:this.layer.id})},t=p.data?.[this.layer?.id];if(S(t,this.legendElement)){e();return}n(),this.showAllSelectedEvent.emit()}}get el(){return L(this)}};ce.style=oe;var P=new Map([["HH",[1,0,3,2,null]],["LH",[3,2,1,0,4,null]],["LL",[2,3,0,1,null]]]),de=new Map([["HH",[2,1,0,5,4,3,8,7,6]],["LH",[8,7,6,5,4,3,2,1,0]],["LL",[6,7,8,3,void 0,void 0,0,1,2]]]),pe=new Map([["HH",[3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12]],["LH",[15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]],["LL",[12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3]]]);function he(e,n){return n===null?P.get("HH")[e]:P.get(n)?.[e]??null}function ge(e,n){return n===null?e:de.get(n)?.[e]??e}function J(e,n){return n===null?J(e,"HH"):pe.get(n)?.[e]??null}var ue=".sc-instant-apps-interactive-legend-relationship-h{display:block}.sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark .sc-instant-apps-interactive-legend-relationship-h .instant-apps-interactive-legend-relationship__instructional-text.sc-instant-apps-interactive-legend-relationship{background-color:var(--calcite-color-brand);color:#151515}",me=ue,fe=".sc-instant-apps-interactive-legend-relationship svg",Z=".sc-instant-apps-interactive-legend-relationship svg g:first-of-type",ve=".sc-instant-apps-interactive-legend-relationship svg g:last-of-type",y="esri-interactive-legend--selected-cell",j="esri-interactive-legend--instructional-text",G=2,W=3,ye=4,be=Object.freeze({0:"L",1:"H"}),xe=Object.freeze({0:"L",1:"M",2:"H"}),Le=Object.freeze({0:"L",1:"M1",2:"M2",3:"H"}),Ie={instructionalText:"instant-apps-interactive-legend-relationship__instructional-text"},Ce=class{constructor(e){u(this,e),this.cellNodeCounter=0,this.filterMode=void 0,this.activeLayerInfo=void 0,this.legendElement=void 0,this.messages=void 0}applyInteractivity(){this.applyRelationshipRampInteractivity()}showAllSelectedEmitted(){let e=p.data[this.activeLayerInfo.layer.id].queryExpressions.length===0,n=this.relationshipRamp.querySelector(Z),t=Array.from(n.children);e&&t?.forEach(a=>{a.removeAttribute("stroke"),a.removeAttribute("stroke-width"),a.removeAttribute("stroke-opacity"),a.setAttribute("aria-pressed","false"),a.classList.remove(y)})}async componentWillLoad(){let e=await N();this.symbolUtils=e}render(){return s("div",{key:"f5cf665a22adaa3f9e5529937fd96d7334e51933",ref:e=>{if(e&&!e?.querySelector("relationshipStyles")){let t=document.createElement("style");t.id="relationshipStyles",t.innerHTML=`
5
- rect:hover {
6
- cursor: pointer;
7
- opacity: 0.8;
8
- }
9
- `,e?.appendChild(t)}}},s("span",{key:"a27712fc70a2e6ba5f44f415a19cc4cbfce8036e",id:j,class:Ie.instructionalText},this.messages?.relationship?.instructionalText),this.renderRelationshipRamp())}renderRelationshipRamp(){let e=(this.activeLayerInfo?.layer).renderer,t=this.symbolUtils.renderRelationshipRampPreviewHTML(e)?.outerHTML;return s("div",{ref:a=>{a&&(this.relationshipRamp=a,this.applyRelationshipRampInteractivity(),this.applyRelationshipRampSvgAriaAttributes())},key:"relationship-ramp-diamond",innerHTML:t})}get shouldApplyCustomFunctionality(){return!!(this.relationshipRamp&&this.activeLayerInfo&&this.legendElement&&p.data)}applyRelationshipRampSvgAriaAttributes(){if(this.shouldApplyCustomFunctionality){let n=setInterval(()=>{let t=this.relationshipRamp.querySelector(fe);t&&(clearInterval(n),t.setAttribute("role","group"),t.setAttribute("aria-labelledby",j),t.removeAttribute("focusable"));let a=this.relationshipRamp.querySelector(ve);a&&(clearInterval(n),a.setAttribute("aria-hidden","true"))},10)}}applyRelationshipRampInteractivity(){if(this.shouldApplyCustomFunctionality){let n=setInterval(()=>{let t=this.relationshipRamp.querySelector(Z);if(t){clearInterval(n);let a=t.children;this.setupRelationshipDrawingStyle(a)}},10)}}setupRelationshipDrawingStyle(e){let n=Array.from(e);if(!n.length)return;let t=(this.activeLayerInfo?.layer?.renderer).uniqueValueInfos;if(Array.isArray(t))for(let i of t){let l=t.indexOf(i),r=n[l];this.setCellAttributes(r,l),r.classList.add("esri-interactive-legend__svg-rect-element")}let a=this.reorderCellNodes(n);this.attachFeatureIndexes(a),this.applyEventHandlers()}setCellAttributes(e,n){let a=this.activeLayerInfo.layer.renderer.uniqueValueInfos,i=this.generateIndexPattern(n);if(Array.isArray(a)&&a[i]){let r=e.classList.contains(y)?"true":"false",c=a[i]?.label||"",d=a[i]?.symbol?.color?.toHex?.()||"";e.setAttribute("data-color",d),e.setAttribute("data-cell-index",`${i}`),e.setAttribute("tabindex","0"),e.setAttribute("aria-pressed",r),e.setAttribute("aria-label",c),e.setAttribute("role","button")}}generateIndexPattern(e){let{focus:n,numClasses:t}=this.legendElement;return n==="HL"?e:t===2?he(e,n):t===3?ge(e,n):t===4?J(e,n):null}reorderCellNodes(e){let n=[];for(;this.cellNodeCounter<=e.length-1;)e.map(t=>{Number.parseInt(t.getAttribute("data-cell-index"))===this.cellNodeCounter&&n.push(t)}),this.cellNodeCounter++;return this.cellNodeCounter=0,n}attachFeatureIndexes(e){let{focus:n,numClasses:t}=this.legendElement;n==="HH"||n===null?this.relationshipFocusIsHighHigh(e,t):n==="LL"?this.relationshipFocusIsLowLow(e,t):n==="LH"?this.relationshipFocusIsLowHigh(e,t):n==="HL"&&this.relationshipFocusIsHighLow(e,t),this.cellNodeCounter=0}relationshipFocusIsHighHigh(e,n){for(let t=n-1;t>=0;t--)for(let a=n-1;a>=0;a--)this.setDataAttributes(e,t,a,n),this.cellNodeCounter++}relationshipFocusIsLowLow(e,n){for(let t=0;t<n;t++)for(let a=0;a<n;a++)this.setDataAttributes(e,t,a,n),this.cellNodeCounter++}relationshipFocusIsLowHigh(e,n){for(let t=0;t<n;t++)for(let a=n-1;a>=0;a--)this.setDataAttributes(e,t,a,n),this.cellNodeCounter++}relationshipFocusIsHighLow(e,n){for(let t=n-1;t>=0;t--)for(let a=0;a<n;a++)this.setDataAttributes(e,a,t,n),this.cellNodeCounter++}setDataAttributes(e,n,t,a){let i=e[this.cellNodeCounter];a===G?this.twoClassAttributes(i,n,t):a===W?this.threeClassAttributes(i,n,t):this.fourClassAttributes(i,n,t)}twoClassAttributes(e,n,t){let{legendElement:a}=this;this.cellNodeCounter===0||this.cellNodeCounter===3?a.focus==="HL"?this.swapDataFeatureIndexes(e,n,t):this.setDataFeatureIndexes(e,n,t):a.focus==="HL"?this.swapDataFeatureIndexes(e,n,t):this.setDataFeatureIndexes(e,n,t)}threeClassAttributes(e,n,t){let{legendElement:a}=this;this.cellNodeCounter===1||this.cellNodeCounter===3||this.cellNodeCounter===5||this.cellNodeCounter===7?a.focus==="HL"?this.swapDataFeatureIndexes(e,n,t):this.setDataFeatureIndexes(e,n,t):a.focus!=="HL"?this.setDataFeatureIndexes(e,n,t):this.swapDataFeatureIndexes(e,n,t)}fourClassAttributes(e,n,t){let{legendElement:a}=this,{focus:i}=a;this.cellNodeCounter>0&&this.cellNodeCounter<=14?i==="HL"?this.swapDataFeatureIndexes(e,n,t):this.setDataFeatureIndexes(e,n,t):i!=="HL"?this.setDataFeatureIndexes(e,n,t):this.swapDataFeatureIndexes(e,n,t)}setDataFeatureIndexes(e,n,t){e.setAttribute("data-feature-i",`${n}`),e.setAttribute("data-feature-j",`${t}`),this.setDataCellFocusValue(e,n,t)}swapDataFeatureIndexes(e,n,t){e.setAttribute("data-feature-i",`${t}`),e.setAttribute("data-feature-j",`${n}`),this.setDataCellFocusValue(e,t,n)}getDataCellValue(e,n,t){let a=t[e],i=t[n];return a&&i?`${a}${i}`:""}getDataCellMap(e){switch(e){case G:return be;case W:return xe;case ye:return Le;default:throw new Error("unrecognized numClasses")}}setDataCellFocusValue(e,n,t){let a=this.legendElement.numClasses,i=this.getDataCellMap(a),l=this.getDataCellValue(n,t,i);l?e.setAttribute("data-cell-focus",l):e.removeAttribute("data-cell-focus")}async onCellClick(e,n){let{i:t,j:a,focus:i}=n;await this.handleFilter(t,a,i),this.handleSelectedElement(e)}applyEventHandlers(){let e=document.querySelectorAll(".esri-interactive-legend__svg-rect-element");Array.from(e).forEach(t=>{let a=t.getAttribute("data-feature-i"),i=t.getAttribute("data-feature-j"),l=t.getAttribute("data-cell-focus");t.onclick=async()=>{await this.onCellClick(t,{i:a,j:i,focus:l})},t.onkeydown=async r=>{r.key==="Enter"&&await this.onCellClick(t,{i:a,j:i,focus:l})},t.onkeyup=async r=>{r.key===" "&&await this.onCellClick(t,{i:a,j:i,focus:l})}})}async handleFilter(e,n,t){let i=this.activeLayerInfo.layer?.renderer?.authoringInfo,l=i?.field1,r=i?.field2,{queryExpressions:c,fLayerView:d}=p.data[this.activeLayerInfo.layer.id];if(this.legendElement.type==="relationship-ramp"&&i&&l&&r){let o=this.generateExpressionParams(l,r,i,e,n,t),h=this.generateExpressionForRelationship(o);c.length===0?c[0]=h:c.includes(h)?c.splice(c.indexOf(h),1):c.push(h);let m=c.join(" OR "),x=d?.filter?.timeExtent??null;if(this.filterMode?.type==="filter")d.filter=await A({where:m,timeExtent:d?.filter?.timeExtent??null});else if(this.filterMode?.effect){let{includedEffect:I,excludedEffect:C}=this.filterMode.effect,F=await E(C,d,"excludedEffect"),_=await E(I,d,"includedEffect");d.featureEffect=await M({filter:await A({where:m,timeExtent:x}),includedEffect:_,excludedEffect:F})}}}generateExpressionParams(e,n,t,a,i,l){let r=[],c=e.field,d=n.field,o=e.classBreakInfos,h=n.classBreakInfos,m=Object.hasOwn(t.field1,"normalizationField")?t?.field1?.normalizationField:null,x=Object.hasOwn(t.field2,"normalizationField")?t?.field2?.normalizationField:null;o.forEach((F,_)=>{let H=[];h.forEach((_e,K)=>{let Q=[o[_],h[K]];H.push(Q)}),r.push(H)});let I=m?`(${c}/${m})`:c,C=x?`(${d}/${x})`:d;return{data:r,i:a,j:i,field1:I,field2:C,focus:l}}generateExpressionForRelationship(e){let{focus:n,field1:t,field2:a,data:i,i:l,j:r}=e,c=Number.parseInt(l),d=Number.parseInt(r),o=i[c][d];return n==="LL"?`${t} >= ${o[0].minValue} AND ${t} <= ${o[0].maxValue} AND ${a} >= ${o[1].minValue} AND ${a} <= ${o[1].maxValue}`:n==="LM"||n==="LM1"||n==="LM2"||n==="LH"?`${t} >= ${o[0].minValue} AND ${t} <= ${o[0].maxValue} AND ${a} > ${o[1].minValue} AND ${a} <= ${o[1].maxValue}`:n==="ML"||n==="M1L"||n==="M2L"||n==="HL"?`${t} > ${o[0].minValue} AND ${t} <= ${o[0].maxValue} AND ${a} >= ${o[1].minValue} AND ${a} <= ${o[1].maxValue}`:`${t} > ${o[0].minValue} AND ${t} <= ${o[0].maxValue} AND ${a} > ${o[1].minValue} AND ${a} <= ${o[1].maxValue}`}handleSelectedElement(e){e.classList.contains(y)?(e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),e.setAttribute("aria-pressed","false"),e.classList.remove(y)):(e.classList.add(y),e.setAttribute("stroke","black"),e.setAttribute("stroke-width","3px"),e.setAttribute("stroke-opacity","1"),e.setAttribute("aria-pressed","true"))}};Ce.style=me;export{ee as instant_apps_interactive_legend_group_legend_element,ae as instant_apps_interactive_legend_layer_element,le as instant_apps_interactive_legend_legend_element,ce as instant_apps_interactive_legend_legend_element_caption,Ce as instant_apps_interactive_legend_relationship};
@@ -1,4 +0,0 @@
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.5 */
4
- var l=new Map([["ar","ar"],["bg","bg"],["bs","bs"],["ca","ca"],["cs","cs"],["da","da"],["de","de"],["el","el"],["en","en"],["es","es"],["et","et"],["fi","fi"],["fr","fr"],["he","he"],["hr","hr"],["hu","hu"],["id","id"],["it","it"],["ja","ja"],["ko","ko"],["lt","lt"],["lv","lv"],["no","no"],["nb","no"],["nn","no"],["nl","nl"],["pl","pl"],["pt-br","pt-BR"],["pt-pt","pt-PT"],["ro","ro"],["ru","ru"],["sk","sk"],["sl","sl"],["sr","sr"],["sv","sv"],["th","th"],["tr","tr"],["uk","uk"],["vi","vi"],["zh-cn","zh-CN"],["zh-hk","zh-HK"],["zh-tw","zh-TW"]]);function h(t){return s(t,"dir","ltr")}function s(t,e,n){let r=t.closest(`[${e}]`);return r?r.getAttribute(e):n}export{l as a,h as b};
@@ -1,4 +0,0 @@
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.5 */
4
- import{a as O}from"./Q5QONQ6T.js";import{a as D}from"./25FEJN5O.js";import{h as b,i as N}from"./QP26HSVE.js";var k=D({data:{},relationshipRampExpandStates:{},compact:!1}),P=k.state,K=k;function W(e,t,o){return n=>{let c=n?.layer?.type;if(c==="feature"||c==="group"){let i=j(t,n,o).then(r=>r);i&&e.push(i);let a=r=>{let s=j(t,r,o).then(l=>l);s&&e.push(s)};n.children.forEach(r=>{a(r),r?.children?.length>0&&r.children.forEach(s=>{a(s),s?.children?.length>0&&s.children.forEach(l=>{a(l)})})})}}}async function j(e,t,o){try{let n=t?.layer?.type==="group",c=t?.layer?.layers?.some(h=>h.visible),i=t?.layer?.layers?.every(h=>!h?.legendEnabled);await o.whenOnce(()=>e?.state==="ready"),!n||n&&c?n&&i?await o.whenOnce(()=>t?.layer?.loaded):await o.whenOnce(()=>t?.ready):await o.whenOnce(()=>t?.legendElements);let a=t?.legendElements?.[0],r=new Map,s=t.layer,l=await e?.view?.whenLayerView(s),f=s.renderer?.field??"";a!==void 0&&a?.infos?.forEach(h=>{if(h.type==="symbol-table"){let y=[];h.infos.forEach(g=>{let E={count:null,selected:!1,legendElementInfo:g};y.push(E)});let d={count:null,selected:!1,legendElementInfo:h,nestedInfos:y};r.set(h.title,d)}else{let y={count:null,selected:!1,legendElementInfo:h};r.set(h.label??s.id,y)}});let u=[];return l?Promise.resolve({activeLayerInfo:t,title:l.layer.title,categories:r,field:f,queryExpressions:u,totalCount:null,fLayerView:l,legendElement:a}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function re(e,t){let o={},n=[];e.activeLayerInfos.forEach(W(n,e,t));try{return(await Promise.all(n)).forEach(i=>{let a=i?.activeLayerInfo?.layer?.id;o[a]=i}),Promise.resolve(o)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function ne(e){return Array.from(e,t=>t[1])}function oe(e,t,o,n,c){if(n)return n?.nestedInfos?.[c];let i="label"in o&&o?.label?o?.label:t?.id;return e?.categories?.get(i)}function ce(e){return P?.data?.[e?.id]}async function ae(e,t,o,n,c){let{queryExpressions:i,fLayerView:a}=e;X(e,t,o,c);let r=i.every(u=>u&&u.includes("<>"))?" AND ":" OR ",s=i.join(r),l=a?.filter?.timeExtent??a?.featureEffect?.filter?.timeExtent??null,{type:f}=n;if(f==="filter")a.filter=await N({where:s,timeExtent:l});else if(n.effect){let{includedEffect:u,excludedEffect:h}=n.effect,p=await O(h,a,"excludedEffect"),y=await O(u,a,"includedEffect");a.featureEffect=await b({filter:await N({where:s,timeExtent:l}),includedEffect:y,excludedEffect:p})}return await Promise.resolve()}function V(e,t){let o=t?t?.layer?.renderer?.authoringInfo:null,n=o?o.fields:null,c=[];if(!n)return"";if(Object.hasOwn(e,"value"))return n.forEach(i=>{if(e.value===i)return;let a=`(${e.value} > ${i} OR (${i} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;c.push(a)}),c.join(" AND ");{let i=[];n.forEach(r=>{i.push(`${r} = 0`)});let a=[];if(n.length>2){n.forEach(l=>{n.forEach(f=>{if(l===f)return;let u=[];n.forEach(h=>{l===h||f===h||u.push(`${l} = ${f} AND (${l} > ${h} OR ${l} >= ${h})`)}),a.push(`(${u.join(" AND ")})`)})});let r=[];return n.forEach(l=>{r.push(`${l} IS NULL`)}),`(${i.join(" AND ")}) OR (${a.join(" OR ")}) OR (${r.join(" AND ")})`}else{let r=[];n.forEach(l=>{n.forEach(f=>{l!==f&&(r.push(`${l} = ${f}`),r.push(`(${i.join(" AND ")})`))})});let s=[];return n.forEach(l=>{n.forEach(f=>{l!==f&&s.push(`(${l} = 0 AND ${f} IS NULL) OR (${l} IS NULL AND ${f} IS NULL)`)})}),`(${r.join(" OR ")}) OR (${s.join(" OR ")})`}}}function X(e,t,o,n){let{field:c,legendElement:i,categories:a,fLayerView:r}=e,s=e?.queryExpressions;n&&Array.from(e.categories).map(g=>g[1]).forEach(g=>{g.nestedInfos?.every(m=>!m.selected)&&g.nestedInfos?.forEach(m=>{let $=c?`${c} = '${m.legendElementInfo.value}'`:null,w=$?s.indexOf($):-1;$&&w!==-1&&s.splice(w,1)})});let l=i?.infos,f=L(r),u=f?V(t,r):R(t,c,o,i,l??[],""),h=a?n?a.get(n.title)?.nestedInfos?.[o]:a.get(t.label??r?.layer?.id):null;h&&(h.selected=!h?.selected);let p=l&&l.length===1,y=s.indexOf(u);if(f){let d=s.indexOf(u);s.length===0||d===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]?s[0]="1=0":s&&s.length===1||s.length===1&&u!==s[0]&&s[0]==="1=0"?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"?s[0]=null:s.splice(d,1),s.join(" OR ")}else s.length===0||y===-1?(s&&s[0]==="1=0"&&s.splice(0,1),s.push(u)):s&&s.length===1&&u===s[0]&&!p?s[0]="1=0":s&&s.length===1&&!p||s.length===1&&u!==s[0]&&s[0]==="1=0"&&!p?s[0]=u:s.length===1&&u===s[0]&&s[0]==="1=0"&&!p?s[0]=null:s.splice(y,1);if(n){let d=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every($=>!$.selected)&&E.nestedInfos?.forEach($=>{(c?`${c} = '${$.legendElementInfo.value}'`:null)&&d.push(`${c} = '${$.legendElementInfo.value}'`)})}),d.forEach(E=>{s.includes(E)||s.push(E)})}}function R(e,t,o,n,c,i){let{value:a}=e;if(n?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&c?.length===1){if(Object.hasOwn(c?.[0],"value")&&Array.isArray(c?.[0].value)&&Object.hasOwn(c?.[c.length-2],"value")&&Array.isArray(c?.[c.length-2].value))return i?`((${t}/${i}) > ${c?.[0].value[1]}) OR ((${t}/${i}) < ${c?.[c.length-2].value[0]}) OR ${i} = 0 OR ${i} IS NULL`:`${t} > ${c?.[0].value[1]} OR ${t} < ${c?.[c.length-2].value[0]} OR ${t} IS NULL`;if(c?.length===1)return"1=0";{let r=[];c?.forEach(l=>{if(l?.value){let{value:f}=l,u=f.indexOf("'")!==-1?f.split("'").join("''"):null,h=u?`${t} <> '${u}'`:isNaN(f)||typeof f=="string"&&!f.trim()?`${t} <> '${f}'`:`${t} <> ${f} AND ${t} <> '${f}'`;r.push(h)}});let s=r.join(" AND ");return t&&s?`${s} OR ${t} IS NULL`:""}}else{let r=a.indexOf("'")!==-1?a.split("'").join("''"):null,s=Array.isArray(e.value),l=c&&c.length-1===o,f=!Object.hasOwn(c?.[c.length-1],"value"),u=c&&c.length-2===o;return s?i?l||f&&u?`(${t}/${i}) >= ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:`(${t}/${i}) > ${a[0]} AND (${t}/${i}) <= ${e.value[1]}`:l||f&&u?`${t} >= ${a[0]} AND ${t} <= ${a[1]}`:`${t} > ${a[0]} AND ${t} <= ${a[1]}`:c?.length===1&&t?isNaN(a)||!a.trim().length?`${t} <> '${a}'`:`${t} <> ${a} OR ${t} <> '${a}'`:r?`${t} = '${r}'`:isNaN(a)||!a.trim().length?`${t} = '${a}'`:`${t} = ${a} OR ${t} = '${a}'`}else return""}function ie(e){return Array.isArray(e)?e.every(t=>!t.selected):e&&Array.from(e.categories.entries()).every(t=>!t[1].selected)&&e.queryExpressions[0]!=="1=0"}function L(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function le(e){return e?.legendElements[1]?.type==="relationship-ramp"}function ue(e,t,o){let c=e.layer?.renderer?.field,i=t?.type,a=e?.layerView,r=a?.layer?.renderer?.classBreakInfos,s=a?.layer?.renderer?.uniqueValueInfos&&c,l=i==="size-ramp",f=i==="color-ramp",u=i==="opacity-ramp",h=i==="heatmap-ramp",p=a&&r&&r.length>1,y=a?.layer?.renderer?.authoringInfo?.type,d=y==="class-breaks-color",g=y==="class-breaks-size",E=t?.infos?.length===1&&!c,m=y==="relationship"&&t?.type!=="size-ramp"&&t?.type!=="symbol-table",$=e?.layer?.type==="feature",w=$&&c&&!f&&!l&&p,A=!!($&&c&&!f&&!l&&!p),S=!!(A||L(a)&&!l||d&&c||g&&c||E&&!c&&c!==null||m||s),U=e?.layer?.featureReduction&&e?.legendElements?.[o]?.type==="size-ramp",q=t?.type==="symbol-table"&&t?.infos?.length===1,Q=!e?.legendElements.every(x=>x.type!=="color-ramp"),B=!e?.legendElements.every(x=>x.type!=="size-ramp"),z=q&&Q,I=q&&B,G=t?.infos?.every(x=>typeof x.value=="number"),Z=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",H=y==="dot-density",J=T(e?.layer,c);return $&&!U&&!u&&!h&&!z&&!I&&!G&&!Z&&!H&&J?r?w||S:A||S:!1}function fe(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(t=>{t.selected=!1}),e}function he(e,t){e.categories.get(t)?.nestedInfos?.forEach(r=>{let s=`${e.field} = '${r.legendElementInfo.value}'`,l=e.queryExpressions.indexOf(s);l!==-1&&e.queryExpressions.splice(l,1),r.selected=!1});let n=[],c=Array.from(e.categories).map(r=>r[1]);c.forEach(r=>{r.nestedInfos?.every(l=>!l.selected)&&r.nestedInfos?.forEach(l=>{n.push(`${e.field} = '${l.legendElementInfo.value}'`)})}),n.forEach(r=>{e.queryExpressions.includes(r)||e.queryExpressions.push(r)});let i=e.queryExpressions.join(" OR ");return c.every(r=>r.nestedInfos?.every(s=>!s.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=i),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=i)),e}async function ye(e,t,o){let n=e.fLayerView.createQuery();if(o)if(o.nestedInfos.every(i=>!i.selected)){let i=o.nestedInfos.map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let i=o.nestedInfos.filter(a=>a.selected).map(a=>`${e.field} = '${a.legendElementInfo.value}'`).join(" OR ");n.where=i}else{let c=e.queryExpressions.join(" OR ");n.where=c}try{let{extent:c}=await e.fLayerView.layer.queryExtent(n);await t.goTo(c)}catch{}}function pe(e){return e.map(o=>o?.count).reduce((o,n)=>o+n)}function de(e){return e.map(t=>t?.nestedInfos?.map(o=>o.count).reduce((o,n)=>o+n)).reduce((t,o)=>t+o)}async function v(e,t,o,n,c,i,a,r){if(!t||!T(t?.layer,o))return;let l=t?.layer?.type==="feature"?t.createQuery():null,f=L(t)?V(n,t):n.type?R(a,o,r,n,n.infos):R(n,o,c,i,i.infos);l&&f&&(l.where=f==="1=0"?"1=1":f,e&&(l.geometry=e));try{let u=l?await t.queryFeatureCount(l):null;return Promise.resolve({[n.label??t?.layer?.id]:u})}catch(u){console.error("FAILURE AT 'getInfoCount': ",u)}return await Promise.resolve(null)}async function ge(e,t){let o={...t},{activeLayerInfos:n}=e,c=e?.view?.extent,i={},a={};n.forEach(async r=>{let s=r.legendElements[0],l=r.layer,f=t[r?.layer?.id]?.fLayerView,u=l.renderer?.field,h=[];a[r.layer.id]=[],s?.infos?.forEach((y,d)=>{if(s.infos?.every(E=>E.type==="symbol-table")){let E=[];y.infos.forEach((m,$)=>{let w=v(c,f,u,y,d,s,m,$);E.push(w)}),a[r.layer.id].push(E)}else h.push(v(c,f,u,y,d,s)),a[r.layer.id]=h});let p=y=>{let d=[],g=y.legendElements[0],E=y.layer,m=t[y?.layer?.id]?.fLayerView,$=E.renderer?.field;g?.infos?.forEach((w,A)=>d.push(v(c,m,$,w,A,g))),a[y.layer.id]=d};r.children.forEach(async y=>{p(y),y?.children?.length>0&&y.children.forEach(d=>{p(d),d?.children?.length>0&&d.children.forEach(g=>{p(g)})})})});for(let r in a){let s=i[r];s||(s=i[r]={});let l=await Promise.all(a[r]);if(l.every(f=>Array.isArray(f))){let f=await Promise.all(l.map(async u=>(await Promise.all(u)).map(y=>y&&Object.values(y)[0])));s[r]=f,i[r]={...s[r]}}else{let f={};l.forEach(u=>{if(!u)return;let h=Object.keys(u)[0];f[h]=u[h]}),r&&(s[r]=f),i[r]={...s[r]}}}return n.forEach(r=>{let s=t[r.layer.id],l=r.layer.id;s?.categories?.forEach((h,p)=>{let d=Array.from(s?.categories).findIndex(g=>g[0]===p);if(h?.nestedInfos)h?.nestedInfos.forEach((g,E)=>{let m=i?.[r?.layer?.id]?.[d]?.[E];g.count=isNaN(m)?null:m});else{let g=i?.[l]?.[p];h.count=isNaN(g)?null:g}});let u=h=>{let p=h.layer.id;t[p]?.categories?.forEach((d,g)=>{let E=i?.[p]?.[g];d.count=E})};r?.children?.forEach(h=>{u(h),h?.children?.length>0&&h.children.forEach(p=>{u(p),p?.children?.length>0&&p.children.forEach(y=>{u(y)})})})}),await Promise.resolve(o)}function Ee(e,t){return e?.nestedInfos?.[t]}function $e(e){return Array.from(e).map(o=>o[1]).every(o=>!!o?.nestedInfos)}function me(e){return!!e?.legendElements?.[0]?.infos?.every?.(t=>t?.type==="symbol-table")}function we(e,t){if(typeof t?.title=="string")return e?.categories?.get(t?.title)}function xe(e){let t="calcite-mode-",o=`${t}light`,n=`${t}dark`;return e.classList.contains(n)?n:o}function Oe(e){if(e.layerId&&e.intLegendLayerData){let t=e.layerId,o=e.intLegendLayerData,n={...P.data,[t]:o};K.set("data",n)}}function Ae(e,t){let{type:o}=e;o==="filter"?Y(t):o==="effect"&&_(e,t)}function Y(e){e?.allLayerViews?.filter(t=>t?.layer?.type==="feature")?.forEach(t=>{let o=t,n=C(o);o.filter=n,o.set("featureEffect",null)})}function _(e,t){t?.allLayerViews?.filter(o=>o?.layer?.type==="feature").forEach(async o=>{let n=o;if(e?.effect&&n){let{includedEffect:c,excludedEffect:i}=e.effect,a=await O(i,n,"excludedEffect"),r=await O(c,n,"includedEffect"),s=C(n);n.featureEffect=await b({filter:s,includedEffect:r,excludedEffect:a}),n.set("filter",null)}})}function C(e){return e?.filter||e?.featureEffect?.filter}function T(e,t){let o=e?.fields,n=o&&o.map(c=>c.name);return t?n&&n.includes(t):!0}function be(e){let t=[];return e.forEach(o=>F(o,t)),t}function F(e,t){t.push(e),e.children&&e.children.length>0&&e.children.forEach(o=>{F(o,t)})}export{P as a,K as b,j as c,re as d,ne as e,oe as f,ce as g,ae as h,ie as i,le as j,ue as k,fe as l,he as m,ye as n,pe as o,de as p,ge as q,Ee as r,$e as s,me as t,we as u,xe as v,Oe as w,Ae as x,be as y};