@arcgis/map-components 5.2.0-next.10 → 5.2.0-next.11

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 (358) hide show
  1. package/dist/cdn/{SNGGG7FD.js → 23VXN3VB.js} +1 -1
  2. package/dist/cdn/{FQRS5UJF.js → 25P6ABDR.js} +1 -1
  3. package/dist/cdn/{K7HIGO6U.js → 25YGNXRQ.js} +1 -1
  4. package/dist/cdn/{RYYSU4TL.js → 2BESNRQI.js} +1 -1
  5. package/dist/cdn/{KFZTGKIF.js → 2ENPU5CD.js} +1 -1
  6. package/dist/cdn/{FSX5CR3Y.js → 2HCFI5P5.js} +1 -1
  7. package/dist/cdn/{ALKSU6PT.js → 2HQBEMYE.js} +1 -1
  8. package/dist/cdn/{KLEUYLUA.js → 2KXO5AYW.js} +1 -1
  9. package/dist/cdn/{QIFQVRMB.js → 2MO6LJPR.js} +1 -1
  10. package/dist/cdn/{HKRVIYSV.js → 2XJEVAMY.js} +1 -1
  11. package/dist/cdn/{D6DLKKWM.js → 3M2ZWBEY.js} +1 -1
  12. package/dist/cdn/{A2W2G6ZQ.js → 3PT4D6BD.js} +1 -1
  13. package/dist/cdn/{ORLHLWJQ.js → 3QWDXECJ.js} +1 -1
  14. package/dist/cdn/{6S2YQK4D.js → 3ZLJBZUR.js} +1 -1
  15. package/dist/cdn/{QRAFTVPJ.js → 4NPLHQZG.js} +1 -1
  16. package/dist/cdn/{QNV6J5E7.js → 5BIMGLS7.js} +1 -1
  17. package/dist/cdn/{HXHMU23F.js → 5LM2XZIK.js} +1 -1
  18. package/dist/cdn/{GLR6Y532.js → 5OIAYTR6.js} +1 -1
  19. package/dist/cdn/{XGCBKRFU.js → 5SZX4F2U.js} +1 -1
  20. package/dist/cdn/{KNGWBAKB.js → 5Y3L2RDW.js} +1 -1
  21. package/dist/cdn/{SWRI7BSF.js → 6ANMW473.js} +1 -1
  22. package/dist/cdn/{QII4DMIB.js → 6FMZAOVP.js} +1 -1
  23. package/dist/cdn/{4Z7PBRIH.js → 6FRKBUG7.js} +1 -1
  24. package/dist/cdn/{EI6H5VOO.js → 6HLRQHTF.js} +1 -1
  25. package/dist/cdn/{UDUEFY4H.js → 6LACZH6O.js} +1 -1
  26. package/dist/cdn/{5L26MT7T.js → 6LYXJS6X.js} +1 -1
  27. package/dist/cdn/{EGGKSLR2.js → 6Q7VDRWI.js} +1 -1
  28. package/dist/cdn/{QQQ4XVOM.js → 6WOZIOJH.js} +1 -1
  29. package/dist/cdn/{UCJP5KDQ.js → 76M43EVT.js} +1 -1
  30. package/dist/cdn/{DWLPX47U.js → 7TA73NAM.js} +1 -1
  31. package/dist/cdn/{NGJHKJQX.js → A6O75S47.js} +1 -1
  32. package/dist/cdn/{LPUBRZAO.js → AAMJRMEX.js} +1 -1
  33. package/dist/cdn/{TAHZPDRF.js → AC3GTCHJ.js} +1 -1
  34. package/dist/cdn/{YHOPKV64.js → ACMQRVHQ.js} +1 -1
  35. package/dist/cdn/{7YHULYNL.js → ADS4LAMB.js} +1 -1
  36. package/dist/cdn/{P6NMMVED.js → AGOMMJPB.js} +1 -1
  37. package/dist/cdn/{NBVIGTR7.js → BCFML3VR.js} +1 -1
  38. package/dist/cdn/{WEVTZJPH.js → BMJ6NYIZ.js} +1 -1
  39. package/dist/cdn/{KP3AJBKW.js → BXKNMJRR.js} +1 -1
  40. package/dist/cdn/{7IZCHCV2.js → BZNHYPVY.js} +1 -1
  41. package/dist/cdn/{IJTFLZTR.js → C4F6EN5S.js} +1 -1
  42. package/dist/cdn/{SDLJ2WAX.js → CIMTQPRO.js} +1 -1
  43. package/dist/cdn/{Z3X2EWHT.js → CM2CNZDR.js} +1 -1
  44. package/dist/cdn/{FWCUCVK4.js → CTHUSEAE.js} +1 -1
  45. package/dist/cdn/{NFER2CWJ.js → CTPATSJU.js} +1 -1
  46. package/dist/cdn/{D3OAWQ5Z.js → DFZK7FIP.js} +1 -1
  47. package/dist/cdn/{NPXSQGJZ.js → DKH7GP3H.js} +1 -1
  48. package/dist/cdn/{2X7DYSZN.js → DNZU7DTQ.js} +1 -1
  49. package/dist/cdn/{CLAEZUSG.js → DPZPIVA7.js} +1 -1
  50. package/dist/cdn/{ACAJBRVF.js → EM4QPCQL.js} +1 -1
  51. package/dist/cdn/{T7FEVYI7.js → EMFCOFJ7.js} +1 -1
  52. package/dist/cdn/{E7264Z6I.js → EN3H2GBU.js} +1 -1
  53. package/dist/cdn/{WQDUJLSY.js → EQ2S5WSZ.js} +1 -1
  54. package/dist/cdn/{M4VOJ3WM.js → EQSDRIG6.js} +1 -1
  55. package/dist/cdn/{2HPEYG66.js → EVEGXXQF.js} +1 -1
  56. package/dist/cdn/{FU4GWX2G.js → EVMYQ43N.js} +1 -1
  57. package/dist/cdn/{D2JUQOOB.js → FAWJCFZQ.js} +1 -1
  58. package/dist/cdn/{56DOE2Z5.js → FG75P4KZ.js} +1 -1
  59. package/dist/cdn/{WQ24YPHK.js → FKGPQIBN.js} +1 -1
  60. package/dist/cdn/{VPKDM54C.js → FOFJHQ4Z.js} +1 -1
  61. package/dist/cdn/{5J4YSRUG.js → FT7ETWDM.js} +1 -1
  62. package/dist/cdn/{CFFGEFFG.js → FX7YHZMN.js} +1 -1
  63. package/dist/cdn/{LOLYJZFX.js → G46IIKPN.js} +1 -1
  64. package/dist/cdn/{IYCMJ2Q7.js → GJMQ36NP.js} +1 -1
  65. package/dist/cdn/{PHYOOMR5.js → GJNYMDKO.js} +1 -1
  66. package/dist/cdn/GOXEUMKX.js +2 -0
  67. package/dist/cdn/{R5OJIDB6.js → GQF32YL2.js} +1 -1
  68. package/dist/cdn/GTOGU3CL.js +2 -0
  69. package/dist/cdn/GUBDP7SN.js +2 -0
  70. package/dist/cdn/{AHLQEQK2.js → GWZQD2KS.js} +1 -1
  71. package/dist/cdn/{RRK7J2RX.js → GXVM7UPW.js} +1 -1
  72. package/dist/cdn/{6633XT4Y.js → H2U2JK4T.js} +1 -1
  73. package/dist/cdn/{N7SH7GMY.js → H47NPYUM.js} +1 -1
  74. package/dist/cdn/{AUGAOAKN.js → HBEXNLQM.js} +1 -1
  75. package/dist/cdn/HFDHHI2B.js +2 -0
  76. package/dist/cdn/{VVJL7DHA.js → HHSGISLJ.js} +1 -1
  77. package/dist/cdn/{VGUSINO2.js → HJ72UWKP.js} +1 -1
  78. package/dist/cdn/{RJ6JENWK.js → HNA422YB.js} +1 -1
  79. package/dist/cdn/{AVU5N7N6.js → HNFXE43W.js} +1 -1
  80. package/dist/cdn/{SFH6ANCF.js → HNGHLDNZ.js} +1 -1
  81. package/dist/cdn/{NBDIFUEK.js → HSGEBM7Q.js} +1 -1
  82. package/dist/cdn/{TPMUBBLR.js → HVUITMRU.js} +1 -1
  83. package/dist/cdn/{72ABM47G.js → I6IJUCE6.js} +1 -1
  84. package/dist/cdn/{ZVLADMN6.js → IGK4DKJ2.js} +1 -1
  85. package/dist/cdn/{GFALET66.js → IJQZON2Z.js} +1 -1
  86. package/dist/cdn/{2SGIMHBR.js → IKSY73X2.js} +1 -1
  87. package/dist/cdn/{3AEIX7N2.js → IN7S26X4.js} +1 -1
  88. package/dist/cdn/{HYFMWTWO.js → IOFYSM3L.js} +1 -1
  89. package/dist/cdn/{4C2T7LDD.js → IPJSPBVN.js} +1 -1
  90. package/dist/cdn/{Z3J2NO3P.js → ITRTOO6W.js} +1 -1
  91. package/dist/cdn/{URMAKTOH.js → IXZEUVT2.js} +1 -1
  92. package/dist/cdn/{OVESZKUR.js → J2ZJJKEI.js} +1 -1
  93. package/dist/cdn/{N7OKY3SS.js → J33ULIDR.js} +1 -1
  94. package/dist/cdn/{KC4OLX6Q.js → J5LPKT5M.js} +1 -1
  95. package/dist/cdn/{6U7SFUIF.js → JCTU3MST.js} +1 -1
  96. package/dist/cdn/JD2JNE73.js +2 -0
  97. package/dist/cdn/{F2KOZSQD.js → JDWZTXWP.js} +1 -1
  98. package/dist/cdn/{GPBHLYUN.js → JE5LMTIW.js} +1 -1
  99. package/dist/cdn/{CXBJTCMX.js → JKGGA54X.js} +1 -1
  100. package/dist/cdn/{YRNFO3WV.js → JMJ3LJGR.js} +1 -1
  101. package/dist/cdn/{72HGJS7F.js → JMRI4LOI.js} +1 -1
  102. package/dist/cdn/{THRRGHTM.js → JPLUPA6R.js} +1 -1
  103. package/dist/cdn/{2UUNYEUN.js → JXS44YCP.js} +1 -1
  104. package/dist/cdn/{GRAS7JP7.js → K6U6L7EK.js} +1 -1
  105. package/dist/cdn/{HRK2DQJO.js → KDXJMMWU.js} +1 -1
  106. package/dist/cdn/{P7CHT5MB.js → KG7UUIXV.js} +1 -1
  107. package/dist/cdn/{CN43LFSC.js → KHIEG5JF.js} +1 -1
  108. package/dist/cdn/{WF5XAE3M.js → KLZFVT3D.js} +1 -1
  109. package/dist/cdn/{DQVQA34C.js → KRXDH2HI.js} +1 -1
  110. package/dist/cdn/{7EDIRSB6.js → KTXZR4IK.js} +1 -1
  111. package/dist/cdn/{CIPWHULA.js → KUPGJQBQ.js} +1 -1
  112. package/dist/cdn/{RLHBDF4V.js → KUUKJIQM.js} +1 -1
  113. package/dist/cdn/{MFYO6QLJ.js → KVE5RIEE.js} +1 -1
  114. package/dist/cdn/{W4PBGG53.js → KVM3SKQX.js} +1 -1
  115. package/dist/cdn/{3PF6PWNS.js → L3BUIPXT.js} +1 -1
  116. package/dist/cdn/{WMH7TCIP.js → L4UGJGS2.js} +1 -1
  117. package/dist/cdn/{NL4JYQA4.js → LDIKIEPN.js} +1 -1
  118. package/dist/cdn/{HLRWMA4I.js → LDYIWX26.js} +1 -1
  119. package/dist/cdn/{LTJDTDLL.js → LKRXUVVK.js} +1 -1
  120. package/dist/cdn/{CERDSXEF.js → LLPO63LQ.js} +1 -1
  121. package/dist/cdn/{DTCM4F4D.js → LMNWYSI3.js} +1 -1
  122. package/dist/cdn/{Z6N4FCMR.js → LXVRZSZ6.js} +1 -1
  123. package/dist/cdn/{RWLNOF6V.js → M2MJH2FX.js} +1 -1
  124. package/dist/cdn/{J2VDU3S5.js → MDHIPDGE.js} +1 -1
  125. package/dist/cdn/{ELZUFCOE.js → MFNC5YCH.js} +1 -1
  126. package/dist/cdn/{VBNK3ASO.js → MOQQDHMJ.js} +1 -1
  127. package/dist/cdn/{S4S5GDLG.js → MRDKTBHD.js} +1 -1
  128. package/dist/cdn/{WVQJOSGR.js → MXY2C4UH.js} +1 -1
  129. package/dist/cdn/{QFRHNDZH.js → NGMHPU5E.js} +1 -1
  130. package/dist/cdn/{UML33FPY.js → NGTGQ4VB.js} +1 -1
  131. package/dist/cdn/{TFIPBSXB.js → NIH6ZDQF.js} +1 -1
  132. package/dist/cdn/{MHA3J3XD.js → NSE7MO5B.js} +1 -1
  133. package/dist/cdn/{VBGDIK4L.js → O24XZVUV.js} +1 -1
  134. package/dist/cdn/{CP5XCMNN.js → O5TKBG2D.js} +1 -1
  135. package/dist/cdn/{TQSA5HN6.js → OGNQD4YE.js} +1 -1
  136. package/dist/cdn/{QAX5TDE3.js → OKHEBRQW.js} +1 -1
  137. package/dist/cdn/{MJR5WG2I.js → OOGQULHG.js} +1 -1
  138. package/dist/cdn/{ACYXIGDC.js → OOLXNUY7.js} +1 -1
  139. package/dist/cdn/{DNUCOUYU.js → OUYGGJ47.js} +1 -1
  140. package/dist/cdn/{W6CL72LN.js → P5N66JAU.js} +1 -1
  141. package/dist/cdn/{2VO54ZCF.js → PDXPDGIN.js} +1 -1
  142. package/dist/cdn/{DLR57QBH.js → PIRSSTSR.js} +1 -1
  143. package/dist/cdn/{DSNTT27D.js → Q6WNAJIC.js} +1 -1
  144. package/dist/cdn/{WSFJMJKU.js → QBTISG6Z.js} +1 -1
  145. package/dist/cdn/{SMZ2ZORV.js → QCAVCJOJ.js} +1 -1
  146. package/dist/cdn/{UM6MGJRJ.js → QKER2AXN.js} +1 -1
  147. package/dist/cdn/{CXQMHOIE.js → QXTTJTWV.js} +1 -1
  148. package/dist/cdn/{TTOHBNNF.js → RAUCP5RZ.js} +1 -1
  149. package/dist/cdn/{5K2CCSSV.js → RCRVCOEZ.js} +1 -1
  150. package/dist/cdn/{DBCTQ7ZD.js → RDFCQM5U.js} +1 -1
  151. package/dist/cdn/{U42D6C4Y.js → RDYFXGBG.js} +1 -1
  152. package/dist/cdn/{3IR6UCFP.js → REGSXPSY.js} +1 -1
  153. package/dist/cdn/{UUDCO37F.js → RMIR7645.js} +1 -1
  154. package/dist/cdn/{VYQTGTRF.js → RP3SPYWY.js} +1 -1
  155. package/dist/cdn/{NCI5CMYE.js → RTXUWGJJ.js} +1 -1
  156. package/dist/cdn/{L6HQV4QC.js → RXXEVGCM.js} +1 -1
  157. package/dist/cdn/{UUDUO3NV.js → SEG3YDME.js} +1 -1
  158. package/dist/cdn/{KZH3Q5MI.js → SF7HIXTT.js} +1 -1
  159. package/dist/cdn/{IZ23ZAMR.js → SJIHZIXG.js} +1 -1
  160. package/dist/cdn/{JR7WLCS2.js → SLPRDDKL.js} +1 -1
  161. package/dist/cdn/{4XXFAFOW.js → SLTQSWGA.js} +1 -1
  162. package/dist/cdn/{XAEEIDZQ.js → SRKKE3UN.js} +1 -1
  163. package/dist/cdn/{X7M3MX36.js → TA7BOHI2.js} +1 -1
  164. package/dist/cdn/{S3NXWPEX.js → TALJULOQ.js} +1 -1
  165. package/dist/cdn/{EWYSBOXF.js → TCQVDAIJ.js} +1 -1
  166. package/dist/cdn/{WOTMBIQE.js → TI4T3QPS.js} +1 -1
  167. package/dist/cdn/{X4F7SYRQ.js → TMTDOGUQ.js} +1 -1
  168. package/dist/cdn/{L3S2G2RR.js → TOVZMHWU.js} +1 -1
  169. package/dist/cdn/{W42XLSER.js → TOWBALAU.js} +1 -1
  170. package/dist/cdn/{3IJCXYVS.js → TQHPE2X2.js} +1 -1
  171. package/dist/cdn/{NUK55ZZ5.js → TUTJXJ6H.js} +1 -1
  172. package/dist/cdn/{OLYGDPEW.js → TXDMKNIB.js} +1 -1
  173. package/dist/cdn/{SI56MY7Q.js → UNJTV3EI.js} +1 -1
  174. package/dist/cdn/{J4MKTTB4.js → USYDTYRK.js} +1 -1
  175. package/dist/cdn/{2RPBZ63W.js → V6GGLHFM.js} +1 -1
  176. package/dist/cdn/{I7XEJYNZ.js → VG7WYAOD.js} +1 -1
  177. package/dist/cdn/{A2BZKW2V.js → VIVVY7GT.js} +1 -1
  178. package/dist/cdn/{VCRESLPM.js → VNP4GF74.js} +1 -1
  179. package/dist/cdn/{JCQMPSDG.js → VOZ7A7UW.js} +1 -1
  180. package/dist/cdn/{3NET2XNA.js → VZNQJ644.js} +1 -1
  181. package/dist/cdn/{EHWHV3TW.js → W3HICVNX.js} +1 -1
  182. package/dist/cdn/{LS7VVK2A.js → WGR4TMS3.js} +1 -1
  183. package/dist/cdn/{KU6KNKRU.js → WJLBETUC.js} +1 -1
  184. package/dist/cdn/{FWHB7TJS.js → WR7D5AWQ.js} +1 -1
  185. package/dist/cdn/{QA4JBRQF.js → WTXT3EBA.js} +1 -1
  186. package/dist/cdn/{S62BCFBA.js → XDS3ZIHV.js} +1 -1
  187. package/dist/cdn/{TCDBO2BE.js → XHCEMCMK.js} +1 -1
  188. package/dist/cdn/{SHTOPWTQ.js → XHZ4LEYE.js} +1 -1
  189. package/dist/cdn/{URAXEQY4.js → XIOGQDJH.js} +1 -1
  190. package/dist/cdn/{RCBNPAHR.js → XJMQFTSS.js} +1 -1
  191. package/dist/cdn/{MC2UKG72.js → XPD6NXPE.js} +1 -1
  192. package/dist/cdn/{AH342SCZ.js → Y34KC34C.js} +1 -1
  193. package/dist/cdn/{TVSYOLCW.js → Y62ISVYZ.js} +1 -1
  194. package/dist/cdn/{WXEWBXRA.js → YAJLIV63.js} +1 -1
  195. package/dist/cdn/{HLDFAUXU.js → YBQKTYOW.js} +1 -1
  196. package/dist/cdn/{KU63IINR.js → YCECTOV7.js} +1 -1
  197. package/dist/cdn/{HDFFXUXA.js → YEPPZ46U.js} +1 -1
  198. package/dist/cdn/{AHGRASYK.js → YGAY263P.js} +1 -1
  199. package/dist/cdn/{65KVOBE6.js → YJM4JJRY.js} +1 -1
  200. package/dist/cdn/{CWUG2MGN.js → YJP7TIKT.js} +1 -1
  201. package/dist/cdn/{36WOQXAG.js → YUBFK6NS.js} +1 -1
  202. package/dist/cdn/{XZHBWJTY.js → Z257GCMR.js} +1 -1
  203. package/dist/cdn/{FGPO275L.js → ZFFLDL4P.js} +1 -1
  204. package/dist/cdn/{5GIEYYKL.js → ZN5DPJ47.js} +1 -1
  205. package/dist/cdn/{ALX2QTSD.js → ZRRENPUV.js} +1 -1
  206. package/dist/cdn/{N24CODZ6.js → ZUXQKICJ.js} +1 -1
  207. package/dist/cdn/{ZHSOQIU2.js → ZZGUQSAF.js} +1 -1
  208. package/dist/cdn/index.js +1 -1
  209. package/dist/cdn/main.css +1 -1
  210. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
  211. package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
  212. package/dist/components/arcgis-bookmarks/customElement.js +171 -159
  213. package/dist/components/arcgis-bookmarks/index.js +2 -2
  214. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +2 -2
  215. package/dist/components/arcgis-directions/customElement.d.ts +1 -1
  216. package/dist/components/arcgis-editor/customElement.d.ts +1 -1
  217. package/dist/components/arcgis-feature/customElement.d.ts +1 -1
  218. package/dist/components/arcgis-feature-form/customElement.d.ts +1 -1
  219. package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +1 -1
  220. package/dist/components/arcgis-floor-filter/customElement.d.ts +1 -1
  221. package/dist/components/arcgis-fullscreen/customElement.d.ts +2 -2
  222. package/dist/components/arcgis-legend/customElement.d.ts +1 -1
  223. package/dist/components/arcgis-link-chart/customElement.d.ts +2 -2
  224. package/dist/components/arcgis-locate/customElement.d.ts +1 -1
  225. package/dist/components/arcgis-map/customElement.d.ts +2 -2
  226. package/dist/components/arcgis-popup/customElement.d.ts +1 -1
  227. package/dist/components/arcgis-print/customElement.d.ts +2 -2
  228. package/dist/components/arcgis-scene/customElement.d.ts +3 -3
  229. package/dist/components/arcgis-search/customElement.d.ts +3 -3
  230. package/dist/components/arcgis-shadow-cast/customElement.d.ts +1 -1
  231. package/dist/components/arcgis-time-slider/customElement.d.ts +6 -6
  232. package/dist/components/arcgis-track/customElement.d.ts +2 -2
  233. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +1 -1
  234. package/dist/components/arcgis-utility-network-validate-network-topology/customElement.d.ts +1 -1
  235. package/dist/components/arcgis-video/customElement.d.ts +1 -1
  236. package/dist/components/arcgis-weather/customElement.d.ts +1 -1
  237. package/dist/docs/api.json +1 -1
  238. package/dist/docs/docs.json +1 -1
  239. package/dist/docs/vscode.html-custom-data.json +1 -1
  240. package/dist/docs/web-types.json +1 -1
  241. package/dist/index.d.ts +0 -50
  242. package/dist/loader.js +0 -5
  243. package/dist/types/lumina.d.ts +0 -36
  244. package/dist/types/preact.d.ts +0 -41
  245. package/dist/types/react.d.ts +0 -46
  246. package/dist/types/stencil.d.ts +0 -36
  247. package/package.json +4 -4
  248. package/dist/cdn/33H2BYBU.js +0 -2
  249. package/dist/cdn/5EZWKZFY.js +0 -2
  250. package/dist/cdn/C3QMAJ2O.js +0 -2
  251. package/dist/cdn/CEX3HFS5.js +0 -2
  252. package/dist/cdn/JPRKITN4.js +0 -2
  253. package/dist/cdn/MQS6S5NN.js +0 -2
  254. package/dist/cdn/OHIN4KCU.js +0 -2
  255. package/dist/cdn/TXVKQEZW.js +0 -2
  256. package/dist/cdn/TYX3FZAF.js +0 -2
  257. package/dist/cdn/YRKL7O2R.js +0 -2
  258. package/dist/cdn/assets/value-picker/t9n/messages.ar.json +0 -1
  259. package/dist/cdn/assets/value-picker/t9n/messages.bg.json +0 -1
  260. package/dist/cdn/assets/value-picker/t9n/messages.bs.json +0 -1
  261. package/dist/cdn/assets/value-picker/t9n/messages.ca.json +0 -1
  262. package/dist/cdn/assets/value-picker/t9n/messages.cs.json +0 -1
  263. package/dist/cdn/assets/value-picker/t9n/messages.da.json +0 -1
  264. package/dist/cdn/assets/value-picker/t9n/messages.de.json +0 -1
  265. package/dist/cdn/assets/value-picker/t9n/messages.el.json +0 -1
  266. package/dist/cdn/assets/value-picker/t9n/messages.en.json +0 -1
  267. package/dist/cdn/assets/value-picker/t9n/messages.es.json +0 -1
  268. package/dist/cdn/assets/value-picker/t9n/messages.et.json +0 -1
  269. package/dist/cdn/assets/value-picker/t9n/messages.fi.json +0 -1
  270. package/dist/cdn/assets/value-picker/t9n/messages.fr.json +0 -1
  271. package/dist/cdn/assets/value-picker/t9n/messages.he.json +0 -1
  272. package/dist/cdn/assets/value-picker/t9n/messages.hr.json +0 -1
  273. package/dist/cdn/assets/value-picker/t9n/messages.hu.json +0 -1
  274. package/dist/cdn/assets/value-picker/t9n/messages.id.json +0 -1
  275. package/dist/cdn/assets/value-picker/t9n/messages.it.json +0 -1
  276. package/dist/cdn/assets/value-picker/t9n/messages.ja.json +0 -1
  277. package/dist/cdn/assets/value-picker/t9n/messages.ko.json +0 -1
  278. package/dist/cdn/assets/value-picker/t9n/messages.lt.json +0 -1
  279. package/dist/cdn/assets/value-picker/t9n/messages.lv.json +0 -1
  280. package/dist/cdn/assets/value-picker/t9n/messages.nl.json +0 -1
  281. package/dist/cdn/assets/value-picker/t9n/messages.no.json +0 -1
  282. package/dist/cdn/assets/value-picker/t9n/messages.pl.json +0 -1
  283. package/dist/cdn/assets/value-picker/t9n/messages.pt-BR.json +0 -1
  284. package/dist/cdn/assets/value-picker/t9n/messages.pt-PT.json +0 -1
  285. package/dist/cdn/assets/value-picker/t9n/messages.ro.json +0 -1
  286. package/dist/cdn/assets/value-picker/t9n/messages.ru.json +0 -1
  287. package/dist/cdn/assets/value-picker/t9n/messages.sk.json +0 -1
  288. package/dist/cdn/assets/value-picker/t9n/messages.sl.json +0 -1
  289. package/dist/cdn/assets/value-picker/t9n/messages.sr.json +0 -1
  290. package/dist/cdn/assets/value-picker/t9n/messages.sv.json +0 -1
  291. package/dist/cdn/assets/value-picker/t9n/messages.th.json +0 -1
  292. package/dist/cdn/assets/value-picker/t9n/messages.tr.json +0 -1
  293. package/dist/cdn/assets/value-picker/t9n/messages.uk.json +0 -1
  294. package/dist/cdn/assets/value-picker/t9n/messages.vi.json +0 -1
  295. package/dist/cdn/assets/value-picker/t9n/messages.zh-CN.json +0 -1
  296. package/dist/cdn/assets/value-picker/t9n/messages.zh-HK.json +0 -1
  297. package/dist/cdn/assets/value-picker/t9n/messages.zh-TW.json +0 -1
  298. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ar.json +0 -1
  299. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bg.json +0 -1
  300. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bs.json +0 -1
  301. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ca.json +0 -1
  302. package/dist/cdn/assets/value-picker-combobox/t9n/messages.cs.json +0 -1
  303. package/dist/cdn/assets/value-picker-combobox/t9n/messages.da.json +0 -1
  304. package/dist/cdn/assets/value-picker-combobox/t9n/messages.de.json +0 -1
  305. package/dist/cdn/assets/value-picker-combobox/t9n/messages.el.json +0 -1
  306. package/dist/cdn/assets/value-picker-combobox/t9n/messages.en.json +0 -1
  307. package/dist/cdn/assets/value-picker-combobox/t9n/messages.es.json +0 -1
  308. package/dist/cdn/assets/value-picker-combobox/t9n/messages.et.json +0 -1
  309. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fi.json +0 -1
  310. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fr.json +0 -1
  311. package/dist/cdn/assets/value-picker-combobox/t9n/messages.he.json +0 -1
  312. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hr.json +0 -1
  313. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hu.json +0 -1
  314. package/dist/cdn/assets/value-picker-combobox/t9n/messages.id.json +0 -1
  315. package/dist/cdn/assets/value-picker-combobox/t9n/messages.it.json +0 -1
  316. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ja.json +0 -1
  317. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ko.json +0 -1
  318. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lt.json +0 -1
  319. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lv.json +0 -1
  320. package/dist/cdn/assets/value-picker-combobox/t9n/messages.nl.json +0 -1
  321. package/dist/cdn/assets/value-picker-combobox/t9n/messages.no.json +0 -1
  322. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pl.json +0 -1
  323. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-BR.json +0 -1
  324. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-PT.json +0 -1
  325. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ro.json +0 -1
  326. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ru.json +0 -1
  327. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sk.json +0 -1
  328. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sl.json +0 -1
  329. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sr.json +0 -1
  330. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sv.json +0 -1
  331. package/dist/cdn/assets/value-picker-combobox/t9n/messages.th.json +0 -1
  332. package/dist/cdn/assets/value-picker-combobox/t9n/messages.tr.json +0 -1
  333. package/dist/cdn/assets/value-picker-combobox/t9n/messages.uk.json +0 -1
  334. package/dist/cdn/assets/value-picker-combobox/t9n/messages.vi.json +0 -1
  335. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-CN.json +0 -1
  336. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-HK.json +0 -1
  337. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-TW.json +0 -1
  338. package/dist/components/arcgis-value-picker/customElement.d.ts +0 -393
  339. package/dist/components/arcgis-value-picker/customElement.js +0 -82
  340. package/dist/components/arcgis-value-picker/index.d.ts +0 -1
  341. package/dist/components/arcgis-value-picker/index.js +0 -3
  342. package/dist/components/arcgis-value-picker/types.d.ts +0 -65
  343. package/dist/components/arcgis-value-picker-collection/customElement.d.ts +0 -113
  344. package/dist/components/arcgis-value-picker-collection/customElement.js +0 -43
  345. package/dist/components/arcgis-value-picker-collection/index.d.ts +0 -1
  346. package/dist/components/arcgis-value-picker-collection/index.js +0 -1
  347. package/dist/components/arcgis-value-picker-combobox/customElement.d.ts +0 -90
  348. package/dist/components/arcgis-value-picker-combobox/customElement.js +0 -55
  349. package/dist/components/arcgis-value-picker-combobox/index.d.ts +0 -1
  350. package/dist/components/arcgis-value-picker-combobox/index.js +0 -3
  351. package/dist/components/arcgis-value-picker-label/customElement.d.ts +0 -81
  352. package/dist/components/arcgis-value-picker-label/customElement.js +0 -51
  353. package/dist/components/arcgis-value-picker-label/index.d.ts +0 -1
  354. package/dist/components/arcgis-value-picker-label/index.js +0 -1
  355. package/dist/components/arcgis-value-picker-slider/customElement.d.ts +0 -173
  356. package/dist/components/arcgis-value-picker-slider/customElement.js +0 -60
  357. package/dist/components/arcgis-value-picker-slider/index.d.ts +0 -1
  358. package/dist/components/arcgis-value-picker-slider/index.js +0 -3
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as f}from"./ECNI2A4K.js";import c from"./IZ23ZAMR.js";import a from"./MZWO5JYA.js";import{d as R}from"./GFALET66.js";import{M as E,N as O,O as S,P as L,S as b,U as j,a as M,b as o}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{templateHasKey:B,stripHTML:V},{renderingSanitizer:T},{isRelatableFeatureSupportedLayer:G,findRelatedLayer:J},{substitute:U,formatNumber:H},{watch:_,on:X},k,K,{ignoreAbortErrors:P},Y,,{g:Q}])=>{var ee=M`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,te=y=>{let e=[];if(y.formTemplate){let{description:t,title:r}=y.formTemplate;y.fields?.forEach(i=>{let s=r&&B(r,i.name),a=t&&B(t,i.name);(s||a)&&e.push(i.name)})}return e},D=100,x=class extends S{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await P(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await P(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await P(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,D),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,D),this._queryPageDebounced=f(this._queryPageController,D),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=E(),this.relatedFeatures=new k,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new k,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.useFeatureNextFlowItem=!1,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,useFeatureNextFlowItem:5,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=ee}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=Q(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&G(e.parent)?e.parent:e;return J(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return U(e?.numberRecords??"",{number:H(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[_(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),_(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),_(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),_(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),X(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:p,supportsCacheHint:F}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&p!=null){let{default:v}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:I}=await v({layer:t,sqlWhere:`${n} = '${p}'`,field:t.subtypeField??void 0,signal:r?.signal}),$=I.map(({count:u,value:c})=>{let m=t.subtypes?.find(A=>A.code===c)?.name;return c!=null&&m?{count:u,value:c,name:m}:void 0}).filter(u=>u!=null);this.allCategories=$}return}let{historicMoment:g,gdbVersion:C}=e,w=new K({cacheHint:F,gdbVersion:C,historicMoment:g,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),h=await e.queryRelatedFeaturesCount(w,{signal:r?.signal});this.allCategories=void 0,this.featureCount=h[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:p,relationshipId:F,showAllEnabled:g,supportsCacheHint:C}=this,{canQuery:w,objectId:h}=this;if(!w||!a||!l||h==null)return[];let v=g?((i-1)*s+r)%r:0,I=g?s:t,$=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,c=[...n.map(d=>d.field),...te(l),...p,$,u].filter(d=>d!=null),m=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:Z}=a,z=new K({orderByFields:m,start:v,num:I,outFields:c,cacheHint:C,historicMoment:A,gdbVersion:Z,relationshipId:F,returnGeometry:!1,objectIds:[h],where:this._getRelationshipWhereClause(l)}),q=(await a.queryRelatedFeatures(z,{signal:e?.signal}))[h]?.features||[];return l.type==="subtype-group"&&u?q.forEach(d=>{let W=d.attributes[u],N=l.findSublayerForSubtypeCode?.(W);d.sourceLayer=N,d.layer=N}):q.forEach(d=>{d.sourceLayer=l,d.layer=l}),q}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;if(!t)return;let r=this.useFeatureNextFlowItem?b(o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`):b(o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);this._addFlowItem(r)}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(b(o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new Y({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=H(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,heading:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${L(R("list-item",{"list-item-hidden":s==="loading"}))} .description=${V(l.toString())} .label=${V(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}><div slot=heading><div .innerHTML=${T.sanitize(a??"")??""}></div></div><div slot=description><div .innerHTML=${T.sanitize(l??"")??""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${O(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${L(R("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};j("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/sanitizerUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","popup/Feature",a,c)
2
+ import{a as f}from"./ECNI2A4K.js";import c from"./SJIHZIXG.js";import a from"./MZWO5JYA.js";import{d as R}from"./IJQZON2Z.js";import{M as E,N as O,O as S,P as L,S as b,U as j,a as M,b as o}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{templateHasKey:B,stripHTML:V},{renderingSanitizer:T},{isRelatableFeatureSupportedLayer:G,findRelatedLayer:J},{substitute:U,formatNumber:H},{watch:_,on:X},k,K,{ignoreAbortErrors:P},Y,,{g:Q}])=>{var ee=M`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,te=y=>{let e=[];if(y.formTemplate){let{description:t,title:r}=y.formTemplate;y.fields?.forEach(i=>{let s=r&&B(r,i.name),a=t&&B(t,i.name);(s||a)&&e.push(i.name)})}return e},D=100,x=class extends S{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await P(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await P(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await P(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,D),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,D),this._queryPageDebounced=f(this._queryPageController,D),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=E(),this.relatedFeatures=new k,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new k,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.useFeatureNextFlowItem=!1,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,useFeatureNextFlowItem:5,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=ee}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=Q(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&G(e.parent)?e.parent:e;return J(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return U(e?.numberRecords??"",{number:H(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[_(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),_(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),_(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),_(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),X(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:p,supportsCacheHint:F}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&p!=null){let{default:v}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:I}=await v({layer:t,sqlWhere:`${n} = '${p}'`,field:t.subtypeField??void 0,signal:r?.signal}),$=I.map(({count:u,value:c})=>{let m=t.subtypes?.find(A=>A.code===c)?.name;return c!=null&&m?{count:u,value:c,name:m}:void 0}).filter(u=>u!=null);this.allCategories=$}return}let{historicMoment:g,gdbVersion:C}=e,w=new K({cacheHint:F,gdbVersion:C,historicMoment:g,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),h=await e.queryRelatedFeaturesCount(w,{signal:r?.signal});this.allCategories=void 0,this.featureCount=h[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:p,relationshipId:F,showAllEnabled:g,supportsCacheHint:C}=this,{canQuery:w,objectId:h}=this;if(!w||!a||!l||h==null)return[];let v=g?((i-1)*s+r)%r:0,I=g?s:t,$=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,c=[...n.map(d=>d.field),...te(l),...p,$,u].filter(d=>d!=null),m=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:Z}=a,z=new K({orderByFields:m,start:v,num:I,outFields:c,cacheHint:C,historicMoment:A,gdbVersion:Z,relationshipId:F,returnGeometry:!1,objectIds:[h],where:this._getRelationshipWhereClause(l)}),q=(await a.queryRelatedFeatures(z,{signal:e?.signal}))[h]?.features||[];return l.type==="subtype-group"&&u?q.forEach(d=>{let W=d.attributes[u],N=l.findSublayerForSubtypeCode?.(W);d.sourceLayer=N,d.layer=N}):q.forEach(d=>{d.sourceLayer=l,d.layer=l}),q}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;if(!t)return;let r=this.useFeatureNextFlowItem?b(o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`):b(o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);this._addFlowItem(r)}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(b(o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new Y({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=H(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,heading:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${L(R("list-item",{"list-item-hidden":s==="loading"}))} .description=${V(l.toString())} .label=${V(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}><div slot=heading><div .innerHTML=${T.sanitize(a??"")??""}></div></div><div slot=description><div .innerHTML=${T.sanitize(l??"")??""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${O(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${L(R("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};j("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/sanitizerUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","popup/Feature",a,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as n}from"./L3S2G2RR.js";import e from"./7IZCHCV2.js";import d from"./RWLNOF6V.js";import c from"./N24CODZ6.js";import{h as o}from"./6U7SFUIF.js";import"./KP3AJBKW.js";import b from"./5J4YSRUG.js";import"./GFALET66.js";import{O as r,U as a,a as i,x as t}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([c,,,{a:s},l])=>{var d=i`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-catalog-layer-list{display:flex;width:100%}.esri-catalog-layer-list__filter-no-results{padding:var(--calcite-spacing-md) 15px}.esri-catalog-layer-list__item{--calcite-list-item-icon-center: 8.5px}.esri-catalog-layer-list__item-table-icon{margin-inline-end:0}.esri-catalog-layer-list__item-action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.esri-catalog-layer-list__action-menu .esri-catalog-layer-list__action-group{display:none}.esri-catalog-layer-list__action-menu[open] .esri-catalog-layer-list__action-group{display:flex}.esri-catalog-layer-list__visible-icon{visibility:hidden}.esri-catalog-layer-list__item--active:hover>.esri-catalog-layer-list__visible-toggle>.esri-catalog-layer-list__visible-icon,.esri-catalog-layer-list__item--active:focus>.esri-catalog-layer-list__visible-toggle>.esri-catalog-layer-list__visible-icon,.esri-catalog-layer-list__item--active:focus-within>.esri-catalog-layer-list__visible-toggle>.esri-catalog-layer-list__visible-icon{visibility:visible}.esri-catalog-layer-list__status-indicator{visibility:hidden;color:var(--calcite-color-text-1);margin-inline:0}.esri-catalog-layer-list__publishing{visibility:visible;color:var(--calcite-color-transparent-tint);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite esri-catalog-layer-list__publishing-anim}.esri-catalog-layer-list__updating{visibility:visible;animation:2s infinite esri-catalog-layer-list__updating-anim}.esri-catalog-layer-list__connection-status{visibility:visible;color:var(--calcite-color-status-danger);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);margin-inline:7px}.esri-catalog-layer-list__connection-status--connected{color:var(--calcite-color-status-success-press)}.esri-catalog-layer-list__item-content-bottom{margin:var(--calcite-spacing-md) 15px}.esri-catalog-layer-list__item-content-bottom .esri-legend__service{padding:0 0 var(--calcite-spacing-md)}.esri-catalog-layer-list__item-message{margin:var(--calcite-spacing-md) 15px}@keyframes esri-catalog-layer-list__updating-anim{0%,40%{color:var(--calcite-color-foreground-1)}50%,80%{color:var(--calcite-color-brand)}to{color:var(--calcite-color-foreground-1)}}@keyframes esri-catalog-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,g=l(c),e=class extends r{constructor(){super(...arguments),this.widget=g(this),this.viewModel=this.widget.viewModel,this.arcgisClose=n(this),this.view=this.widget.view,this.autoDestroyDisabled=!1,this.catalogLayer=this.widget.catalogLayer,this.closed=!1,this.collapsed=this.widget.collapsed,this.filterPlaceholder=this.widget.filterPlaceholder,this.filterPredicate=this.widget.filterPredicate,this.filterText=this.widget.filterText,this.headingLevel=this.widget.headingLevel,this.hideStatusIndicators=this.widget.visibleElements.statusIndicators,this.icon=this.widget.icon,this.label=this.widget.label,this.listItemCreatedFunction=this.widget.listItemCreatedFunction,this.layerTablesEnabled=this.widget.layerTablesEnabled,this.minFilterItems=this.widget.minFilterItems,this.onCatalogOpen=this.widget.onCatalogOpen,this.onTablesOpen=this.widget.onTablesOpen,this.selectedItems=this.widget.selectedItems,this.selectionMode=this.widget.selectionMode,this.showCloseButton=this.widget.visibleElements.closeButton,this.showCollapseButton=this.widget.visibleElements.collapseButton,this.showErrors=this.widget.visibleElements.errors,this.showFilter=this.widget.visibleElements.filter,this.showHeading=this.widget.visibleElements.heading,this.showTemporaryLayerIndicators=this.widget.visibleElements.temporaryLayerIndicators,this.state=this.viewModel.state,this.visibilityAppearance=this.widget.visibilityAppearance,this.arcgisPropertyChange=o()("state"),this.arcgisReady=t(),this.arcgisTriggerAction=s(()=>this.widget,"trigger-action")}static{this.properties={view:0,autoDestroyDisabled:5,catalogItems:32,catalogLayer:0,closed:5,collapsed:7,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideStatusIndicators:5,icon:1,label:1,listItemCreatedFunction:0,layerTablesEnabled:0,minFilterItems:9,onCatalogOpen:0,onTablesOpen:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,visibilityAppearance:1}}static{this.styles=d}get catalogItems(){return this.widget.catalogItems}async destroy(){await this.manager.destroy()}};a("arcgis-catalog-layer-list",e);return e},"widgets/CatalogLayerList",b,c,d,e)
2
+ import{a as n}from"./TOVZMHWU.js";import e from"./BZNHYPVY.js";import d from"./M2MJH2FX.js";import c from"./ZUXQKICJ.js";import{h as o}from"./JCTU3MST.js";import"./BXKNMJRR.js";import b from"./FT7ETWDM.js";import"./IJQZON2Z.js";import{O as r,U as a,a as i,x as t}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([c,,,{a:s},l])=>{var d=i`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-catalog-layer-list{display:flex;width:100%}.esri-catalog-layer-list__filter-no-results{padding:var(--calcite-spacing-md) 15px}.esri-catalog-layer-list__item{--calcite-list-item-icon-center: 8.5px}.esri-catalog-layer-list__item-table-icon{margin-inline-end:0}.esri-catalog-layer-list__item-action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.esri-catalog-layer-list__action-menu .esri-catalog-layer-list__action-group{display:none}.esri-catalog-layer-list__action-menu[open] .esri-catalog-layer-list__action-group{display:flex}.esri-catalog-layer-list__visible-icon{visibility:hidden}.esri-catalog-layer-list__item--active:hover>.esri-catalog-layer-list__visible-toggle>.esri-catalog-layer-list__visible-icon,.esri-catalog-layer-list__item--active:focus>.esri-catalog-layer-list__visible-toggle>.esri-catalog-layer-list__visible-icon,.esri-catalog-layer-list__item--active:focus-within>.esri-catalog-layer-list__visible-toggle>.esri-catalog-layer-list__visible-icon{visibility:visible}.esri-catalog-layer-list__status-indicator{visibility:hidden;color:var(--calcite-color-text-1);margin-inline:0}.esri-catalog-layer-list__publishing{visibility:visible;color:var(--calcite-color-transparent-tint);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite esri-catalog-layer-list__publishing-anim}.esri-catalog-layer-list__updating{visibility:visible;animation:2s infinite esri-catalog-layer-list__updating-anim}.esri-catalog-layer-list__connection-status{visibility:visible;color:var(--calcite-color-status-danger);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);margin-inline:7px}.esri-catalog-layer-list__connection-status--connected{color:var(--calcite-color-status-success-press)}.esri-catalog-layer-list__item-content-bottom{margin:var(--calcite-spacing-md) 15px}.esri-catalog-layer-list__item-content-bottom .esri-legend__service{padding:0 0 var(--calcite-spacing-md)}.esri-catalog-layer-list__item-message{margin:var(--calcite-spacing-md) 15px}@keyframes esri-catalog-layer-list__updating-anim{0%,40%{color:var(--calcite-color-foreground-1)}50%,80%{color:var(--calcite-color-brand)}to{color:var(--calcite-color-foreground-1)}}@keyframes esri-catalog-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,g=l(c),e=class extends r{constructor(){super(...arguments),this.widget=g(this),this.viewModel=this.widget.viewModel,this.arcgisClose=n(this),this.view=this.widget.view,this.autoDestroyDisabled=!1,this.catalogLayer=this.widget.catalogLayer,this.closed=!1,this.collapsed=this.widget.collapsed,this.filterPlaceholder=this.widget.filterPlaceholder,this.filterPredicate=this.widget.filterPredicate,this.filterText=this.widget.filterText,this.headingLevel=this.widget.headingLevel,this.hideStatusIndicators=this.widget.visibleElements.statusIndicators,this.icon=this.widget.icon,this.label=this.widget.label,this.listItemCreatedFunction=this.widget.listItemCreatedFunction,this.layerTablesEnabled=this.widget.layerTablesEnabled,this.minFilterItems=this.widget.minFilterItems,this.onCatalogOpen=this.widget.onCatalogOpen,this.onTablesOpen=this.widget.onTablesOpen,this.selectedItems=this.widget.selectedItems,this.selectionMode=this.widget.selectionMode,this.showCloseButton=this.widget.visibleElements.closeButton,this.showCollapseButton=this.widget.visibleElements.collapseButton,this.showErrors=this.widget.visibleElements.errors,this.showFilter=this.widget.visibleElements.filter,this.showHeading=this.widget.visibleElements.heading,this.showTemporaryLayerIndicators=this.widget.visibleElements.temporaryLayerIndicators,this.state=this.viewModel.state,this.visibilityAppearance=this.widget.visibilityAppearance,this.arcgisPropertyChange=o()("state"),this.arcgisReady=t(),this.arcgisTriggerAction=s(()=>this.widget,"trigger-action")}static{this.properties={view:0,autoDestroyDisabled:5,catalogItems:32,catalogLayer:0,closed:5,collapsed:7,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideStatusIndicators:5,icon:1,label:1,listItemCreatedFunction:0,layerTablesEnabled:0,minFilterItems:9,onCatalogOpen:0,onTablesOpen:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,visibilityAppearance:1}}static{this.styles=d}get catalogItems(){return this.widget.catalogItems}async destroy(){await this.manager.destroy()}};a("arcgis-catalog-layer-list",e);return e},"widgets/CatalogLayerList",b,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as v}from"./POZ7OKIJ.js";import c from"./IZ23ZAMR.js";import b from"./MZWO5JYA.js";import a from"./QAX5TDE3.js";import{a as d}from"./VJVKFKSG.js";import{O as x,U as k,a as T,b as o}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w,when:I},L,A,E,{compileExpression:J},{b:m,e:f},,{p:y}])=>{var b=T`.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}`,$=1,g=class extends x{constructor(){super(...arguments),this._compileThrottled=v(this._startCompile,$),this._evaluateThrottled=v(this._startEvaluate,$),this.headingLevel=2}static{this.properties={_compileTask:16,_evaluateTask:16,values:0,fieldInfoMap:0,expressionInfo:0,graphic:0,headingLevel:9,interceptor:0,location:0,messages:0,spatialReference:0,map:0,view:0}}static{this.styles=b}loaded(){this.manager.onLifecycle(()=>[w(()=>[this.expressionInfo,this.graphic],()=>this._compileThrottled(),{initial:!0}),I(()=>{if(!this._compileTask?.finished)return null;let t=this._compileTask.value,s=t?.dependencies,{view:e}=this;return[t,this.spatialReference,this.map,e,s?.has("view-scale")&&e&&"scale"in e?e.scale:null,s?.has("view-time-extent")?e?.timeExtent?.start:null,s?.has("view-time-extent")?e?.timeExtent?.end:null]},([t])=>this._evaluateThrottled(t)),{remove:()=>this._cancelThrottles()}])}_cancelThrottles(){this._compileThrottled.cancel(),this._evaluateThrottled.cancel()}_startCompile(){this._evaluateTask=d(this._evaluateTask),this._compileTask=d(this._compileTask),this._compileTask=f(async t=>{let{expressionInfo:s,graphic:e}=this,i=s?.expression;if(!i||!e)return null;let a=await J({expression:i,graphic:e});return m(t),a})}_startEvaluate(t){this._evaluateTask=d(this._evaluateTask),this._evaluateTask=f(async s=>{let{graphic:e}=this;if(!t||!e)return null;let{interceptor:i,spatialReference:a,map:r,location:c,view:l}=this,h=await t.evaluate({graphic:e,interceptor:i,location:c,map:r,options:{signal:s},spatialReference:a,view:l});m(s);let _=h&&"castAsJsonAsync"in h&&typeof h.castAsJsonAsync=="function"?h:null;if(!_)return null;let p=await _.castAsJsonAsync(s);m(s);let u=p?.type,n=u==="media"?L.fromJSON(p):u==="text"?E.fromJSON(p):u==="fields"?A.fromJSON(p):null;return!n||n.type==="media"&&!n.mediaInfos||n.type==="fields"&&!n.fieldInfos||n.type==="text"&&!n.text?null:n})}render(){let t=!this._compileTask?.finished||!this._evaluateTask?.finished;return o`<div class="root">${t?this._renderLoading():this._evaluateTask?.value?this._renderContent():null}</div>`}_renderContent(){let{values:t,fieldInfoMap:s}=this,e=this._evaluateTask?.value,i=e?.type,a={...t,...e?.attributes};if(!i)return null;if(i==="text"){let r=y({values:a,fieldInfoMap:s??new Map,globalValues:a,layer:void 0,text:e.text});return o`<arcgis-feature-content .creator=${r} .graphic=${this.graphic}></arcgis-feature-content>`}else if(i==="media"){let{title:r,description:c,mediaInfos:l}=e;return l?.length?o`<arcgis-feature-media .heading=${r??""} .values=${a} .formattedValues=${a} .description=${c??""} .mediaInfos=${l} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`:null}else if(i==="fields"){let{title:r,description:c,fieldInfos:l}=e;return l?.length?o`<arcgis-feature-fields .fieldInfos=${l} .heading=${r??""} .values=${a} .description=${c??""} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-feature-fields>`:null}return null}_renderLoading(){return o`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`}};k("arcgis-feature-expression",g);return g},"core/reactiveUtils","popup/content/MediaContent","popup/content/FieldsContent","popup/content/TextContent","applications/Components/arcadeFeatureUtils",a,b,c)
2
+ import{b as v}from"./POZ7OKIJ.js";import c from"./SJIHZIXG.js";import b from"./MZWO5JYA.js";import a from"./OKHEBRQW.js";import{a as d}from"./VJVKFKSG.js";import{O as x,U as k,a as T,b as o}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w,when:I},L,A,E,{compileExpression:J},{b:m,e:f},,{p:y}])=>{var b=T`.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}`,$=1,g=class extends x{constructor(){super(...arguments),this._compileThrottled=v(this._startCompile,$),this._evaluateThrottled=v(this._startEvaluate,$),this.headingLevel=2}static{this.properties={_compileTask:16,_evaluateTask:16,values:0,fieldInfoMap:0,expressionInfo:0,graphic:0,headingLevel:9,interceptor:0,location:0,messages:0,spatialReference:0,map:0,view:0}}static{this.styles=b}loaded(){this.manager.onLifecycle(()=>[w(()=>[this.expressionInfo,this.graphic],()=>this._compileThrottled(),{initial:!0}),I(()=>{if(!this._compileTask?.finished)return null;let t=this._compileTask.value,s=t?.dependencies,{view:e}=this;return[t,this.spatialReference,this.map,e,s?.has("view-scale")&&e&&"scale"in e?e.scale:null,s?.has("view-time-extent")?e?.timeExtent?.start:null,s?.has("view-time-extent")?e?.timeExtent?.end:null]},([t])=>this._evaluateThrottled(t)),{remove:()=>this._cancelThrottles()}])}_cancelThrottles(){this._compileThrottled.cancel(),this._evaluateThrottled.cancel()}_startCompile(){this._evaluateTask=d(this._evaluateTask),this._compileTask=d(this._compileTask),this._compileTask=f(async t=>{let{expressionInfo:s,graphic:e}=this,i=s?.expression;if(!i||!e)return null;let a=await J({expression:i,graphic:e});return m(t),a})}_startEvaluate(t){this._evaluateTask=d(this._evaluateTask),this._evaluateTask=f(async s=>{let{graphic:e}=this;if(!t||!e)return null;let{interceptor:i,spatialReference:a,map:r,location:c,view:l}=this,h=await t.evaluate({graphic:e,interceptor:i,location:c,map:r,options:{signal:s},spatialReference:a,view:l});m(s);let _=h&&"castAsJsonAsync"in h&&typeof h.castAsJsonAsync=="function"?h:null;if(!_)return null;let p=await _.castAsJsonAsync(s);m(s);let u=p?.type,n=u==="media"?L.fromJSON(p):u==="text"?E.fromJSON(p):u==="fields"?A.fromJSON(p):null;return!n||n.type==="media"&&!n.mediaInfos||n.type==="fields"&&!n.fieldInfos||n.type==="text"&&!n.text?null:n})}render(){let t=!this._compileTask?.finished||!this._evaluateTask?.finished;return o`<div class="root">${t?this._renderLoading():this._evaluateTask?.value?this._renderContent():null}</div>`}_renderContent(){let{values:t,fieldInfoMap:s}=this,e=this._evaluateTask?.value,i=e?.type,a={...t,...e?.attributes};if(!i)return null;if(i==="text"){let r=y({values:a,fieldInfoMap:s??new Map,globalValues:a,layer:void 0,text:e.text});return o`<arcgis-feature-content .creator=${r} .graphic=${this.graphic}></arcgis-feature-content>`}else if(i==="media"){let{title:r,description:c,mediaInfos:l}=e;return l?.length?o`<arcgis-feature-media .heading=${r??""} .values=${a} .formattedValues=${a} .description=${c??""} .mediaInfos=${l} .messages=${this.messages} .headingLevel=${this.headingLevel}></arcgis-feature-media>`:null}else if(i==="fields"){let{title:r,description:c,fieldInfos:l}=e;return l?.length?o`<arcgis-feature-fields .fieldInfos=${l} .heading=${r??""} .values=${a} .description=${c??""} .headingLevel=${this.headingLevel} .messages=${this.messages}></arcgis-feature-fields>`:null}return null}_renderLoading(){return o`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`}};k("arcgis-feature-expression",g);return g},"core/reactiveUtils","popup/content/MediaContent","popup/content/FieldsContent","popup/content/TextContent","applications/Components/arcadeFeatureUtils",a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{c as b}from"./TN5C3MSL.js";import e from"./YHOPKV64.js";import{a as B}from"./N7SH7GMY.js";import d from"./RWLNOF6V.js";import c from"./N24CODZ6.js";import{a as R,f as M}from"./6U7SFUIF.js";import"./KP3AJBKW.js";import a from"./5J4YSRUG.js";import"./GFALET66.js";import{O as E,R as g,U as $,a as C,b as u,x as _,z as x}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:p,subclass:k},T,I,{ignoreAbortErrors:D},{watch:m,on:H,whenOnce:f},j,V,K,W,U,Q,q,J,{fetchPopupFeaturesFromGraphics:G},,,,N])=>{var X=C`:host{width:100%;height:100%;padding:var(--calcite-spacing-none);margin:var(--calcite-spacing-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{display:flex;width:100%;justify-content:flex-end;padding-top:var(--calcite-spacing-lg);padding-inline-start:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation{width:fit-content;pointer-events:auto;display:flex;align-items:center;gap:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);box-shadow:var(--arcgis-internal-box-shadow);margin-block:auto calc(var(--calcite-spacing-lg) + var(--internal-attribution-height));margin-inline-start:var(--calcite-spacing-lg)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-spacing-base);min-width:64px}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.legend{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:auto;max-height:calc(100vh - 136px);overflow:hidden auto}`,Z=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,d=(i,e,t,s)=>{for(var n=s>1?void 0:s?Y(e,t):e,r=i.length-1,a;r>=0;r--)(a=i[r])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Z(e,t,n),n},o=class extends T{constructor(i){super(i),this.transitionActive=!1,this.showLegend=!1,this.keyboardNavigationEnabled=!1,this._subscribeToSlideEvents=e=>{this._unsubscribeToSlideEvents(e),e.forEach(t=>{let s=t.on("apply-slide-start",()=>this._onApplySlideStart(t)),n=t.on("apply-slide-complete",()=>this._onApplySlideComplete(t)),r=t.on("apply-slide-cancel",()=>this._onApplySlideCancel(t));this.addHandles(s,t.id),this.addHandles(n,t.id),this.addHandles(r,t.id)})},this._unsubscribeToSlideEvents=e=>{e.forEach(t=>{this.hasHandles(t.id)&&this.removeHandles(t.id)})}}initialize(){this.addHandles(m(()=>this.view?.map,(i,e)=>{if(this.hasHandles("sceneLoaded")&&this.removeHandles("sceneLoaded"),e){let t=e.presentation?.slides;t&&t.length>0&&this._unsubscribeToSlideEvents(t)}i&&this.addHandles(m(()=>i.loaded,t=>{t&&(this.removeHandles("sceneLoaded"),this._startWatchSlides(),this._slideId&&this._applySlideById(this._slideId))},{initial:!0}),"sceneLoaded")},{initial:!0}))}destroy(){this._unsubscribeToSlideEvents(this.slides)}get slideId(){return this._slideId}set slideId(i){i===void 0||!this.view?.map?.loaded?this._slideId=i:this._applySlideById(i)}get visibleSlides(){return this.view?.map?.presentation?.slides?.filter(i=>!i.hidden)??new I}get slides(){return this.view?.map?.presentation?.slides??new I}get lastSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===this.visibleSlides.length-1}get firstSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===0}get slideSelected(){return this.getSlideIndexBySlideId(this.slideId)>-1}get hasOnlyOneSlide(){return this.visibleSlides.length===1}get slideIndex(){return this.getSlideIndexBySlideId(this.slideId)}getSlideIndexBySlideId(i){let e=-1;return i&&(e=this.visibleSlides.findIndex(t=>t.id===i)),e}navigateInPresentation(i){let e=this.slideIndex+i,t=this._getSlideBySlideIndex(e);t??=this._getSlideBySlideIndex(0),t&&this._applySlide(t)}captureArrowKeysForNavigation(i,e){let t=["ArrowLeft","ArrowRight","PageUp","PageDown"];if(document.activeElement?.nodeName.toLowerCase()==="arcgis-scene"||!t.includes(i.code))return;let s=e==="rtl"?"ArrowRight":"ArrowLeft",n=i.code===s||i.code==="PageUp"?-1:1;this.navigateInPresentation(n)}async setSliceAnalysisInteractive(){if(!this.view?.analyses?.length)return;let i=this.view.analyses.find(t=>t.type==="slice"&&t.origin?.type==="web-scene");if(!i)return;let e=await this.view.whenAnalysisView(i);e&&(e.interactive=!0)}_getSlideBySlideIndex(i){if(i!=null&&i>=0&&i<this.visibleSlides.length)return this.visibleSlides.getItemAt(i)}async _applySlideById(i){let e=i?this._getSlideBySlideId(i):void 0;e&&await this._applySlide(e)}_getSlideBySlideId(i){return this.visibleSlides.find(e=>e.id===i)}async _applySlide(i){this.view&&await D(i.applyTo(this.view))}_startWatchSlides(){this._subscribeToSlideEvents(this.slides),this.addHandles(H(()=>this.slides,"change",i=>{this._subscribeToSlideEvents(new I(i.added)),this._unsubscribeToSlideEvents(new I(i.removed))},{onListenerAdd:this._subscribeToSlideEvents,onListenerRemove:this._unsubscribeToSlideEvents}))}_onApplySlideStart(i){this._slideId=i.id,this.transitionActive=!0,this.showLegend=!1,this.onApplySlideStart?.(i)}_onApplySlideComplete(i){this.transitionActive=!1,this.showLegend=!!i.elements.legendInfo?.visible,this.onApplySlideComplete?.(i)}_onApplySlideCancel(i){this.transitionActive=!1,this.showLegend=!!i.elements.legendInfo?.visible,this.onApplySlideCancel?.(i)}};d([p()],o.prototype,"_slideId",2);d([p()],o.prototype,"view",2);d([p()],o.prototype,"slideId",1);d([p()],o.prototype,"transitionActive",2);d([p()],o.prototype,"showLegend",2);d([p()],o.prototype,"keyboardNavigationEnabled",2);d([p()],o.prototype,"visibleSlides",1);d([p()],o.prototype,"slides",1);d([p()],o.prototype,"lastSlideSelected",1);d([p()],o.prototype,"firstSlideSelected",1);d([p()],o.prototype,"slideSelected",1);d([p()],o.prototype,"hasOnlyOneSlide",1);d([p()],o.prototype,"onApplySlideStart",2);d([p()],o.prototype,"onApplySlideComplete",2);d([p()],o.prototype,"onApplySlideCancel",2);d([p()],o.prototype,"getSlideIndexBySlideId",1);o=d([k("components.presentation.PresentationViewModel")],o);var L=class extends x{constructor(e){super(e)}hostLoaded(){this.component.manager.onLifecycle(()=>{let e=this.component;f(()=>e.referenceElement).then(t=>{this._isArcgisScene(t)&&(this._sceneRef=t)})})}openPopup(e){this.component.view&&this.component.slideId===e.id&&e.elements.popupInfo!=null&&this._preparePopupFeature(this.component.view,e.elements.popupInfo).then(({success:t,features:s,popupInfo:n})=>{this.component.slideId===e.id&&(t?this._handlePopupFeatureFound(e,s,n):this.component.arcgisPopupFeatureNotFound.emit({slide:e}))})}_isArcgisScene(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}closePopup(){this.component.slidePopupDisabled||this._sceneRef?.closePopup()}async _handlePopupFeatureFound(e,t,s){let n=s?.location??void 0;this.component.arcgisPopupFeaturesRetrieved.emit({slide:e,features:t,location:n}),this.component.slidePopupDisabled||await this._sceneRef?.openPopup({features:t,location:n})}async _preparePopupFeature(e,t){let s=[];if(!t.features?.length||t.features.length===0)return{success:!1,features:s};let n=t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;if(n?.layerId==null)return{success:!1,features:s};let{layer:r,sublayer:a}=this._getLayersFromView(e,n.layerId,n?.sublayerId);if(!r)return{success:!1,features:s};let c=a??r;if(!c||!this._layerTypeSupportsCapturePopup(c))return{success:!1,features:s};if(s=await this._fetchFeaturesFromQueryable(e,t,r,a,c),s&&this._featureHasBeenFilledWithAttributes(s)){let l=s[0];return this._setFallbackPopupTemplate(l,a,r),this._setFallbackGeometry(l,t?.location),{success:!0,features:s,popupInfo:t}}debugger;return{success:!1,features:s}}_getLayersFromView(e,t,s){let n=e.map?.findLayerById(t)??void 0,r=this._getBuildingSceneLayerSublayer(n,s);return{layer:n,sublayer:r}}_getBuildingSceneLayerSublayer(e,t){let s;return e&&this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(s=e.allSublayers.find(n=>n.id===t&&n.type==="building-component")),s}_featureHasBeenFilledWithAttributes(e){return e&&e.length>0&&e[0].attributes&&Object.entries(e[0].attributes)?.length>1}async _fetchFeaturesFromQueryable(e,t,s,n,r){let a=t.features?.getItemAt(t.selectedFeatureIndex);if(a?.id==null)return await Promise.resolve([]);let c=await e.whenLayerView(s);await f(()=>!c.updating);let l=this._tryGetBuildingComponentSublayerView(s,n,c)??c;await f(()=>!l.updating);let h=this._createFeatureGraphic(s,n,r,a.id),y=await G(l,[h]);return this._featureHasBeenFilledWithAttributes(y)||(await f(()=>!e.updating),y=await G(l,[h])),y}_tryGetBuildingComponentSublayerView(e,t,s){let n;return this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(n=s.sublayerViews.find(r=>r.sublayer.id===t.id)),n}_setFallbackPopupTemplate(e,t,s){e.popupTemplate==null&&(e.popupTemplate=t?.popupTemplate?t.popupTemplate:s.popupTemplate)}_setFallbackGeometry(e,t){e.geometry==null&&t&&(e.geometry=t.clone())}_createFeatureGraphic(e,t,s,n){let r=this._getGlobalIdFieldNameFromLayer(s),a=n.type==="global-id"&&r?r:s.objectIdField,c=this._getGraphicOrigin(e,t),l=new j({attributes:{},layer:e,origin:c});return l.attributes[a]=n.value,l}_getGraphicOrigin(e,t){switch(e.type){case"csv":return new K(e);case"feature":return new J(e);case"geojson":return new W(e);case"scene":return new U(e);case"wfs":return new Q(e);case"building-scene":return t?new q(t):void 0;default:return}}_layerTypeSupportsCapturePopup(e){return e!=null&&["csv","feature","geojson","wfs","scene","building-component"].includes(e.type)}_isLayer(e){return!!e&&e instanceof V}_isBuildingSceneLayer(e){return e?.type==="building-scene"}_getGlobalIdFieldNameFromLayer(e){return e.fields?.find(t=>t.type==="global-id")?.name}},ee=i=>new L(i),v=Object.freeze({width:0,height:0}),w=new WeakMap,S=()=>({topCenter:{...v},topLeft:{...v},topRight:{...v},bottomCenter:{...v},bottomLeft:{...v},bottomRight:{...v}}),O=i=>({topCenter:{...i.topCenter},topLeft:{...i.topLeft},topRight:{...i.topRight},bottomCenter:{...i.bottomCenter},bottomLeft:{...i.bottomLeft},bottomRight:{...i.bottomRight}}),z=i=>{let e=w.get(i);return e||(e={observedGroups:new Map,observedSizes:S(),subscribers:new Set},w.set(i,e)),e},te=i=>{let e=i?.topCenter.value,t=i?.topLeft.value,s=i?.topRight.value,n=i?.bottomCenter.value,r=i?.bottomLeft.value,a=i?.bottomRight.value;return e&&t&&s&&n&&r&&a?{topCenter:e,topLeft:t,topRight:s,bottomCenter:n,bottomLeft:r,bottomRight:a}:null},ie=(i,e)=>b.every(t=>i.get(t)===e[t]),se=i=>{let e=O(i.observedSizes);i.subscribers.forEach(t=>t(e))},ne=(i,e)=>{let t=w.get(i);if(!t)return;let s=!1;e.forEach(n=>{let r=b.find(y=>t.observedGroups.get(y)===n.target);if(!r)return;let{width:a,height:c}=n.contentRect,l={width:a,height:c},h=t.observedSizes[r];h.width===l.width&&h.height===l.height||(t.observedSizes[r]=l,s=!0)}),s&&se(t)},A=(i,e)=>{let t=z(i);t.resizeObserver||(t.resizeObserver=new ResizeObserver(n=>{ne(i,n)}));let s=te(e);if(!s){t.observedGroups.size>0&&(t.resizeObserver.disconnect(),t.observedGroups.clear());return}ie(t.observedGroups,s)||(t.resizeObserver.disconnect(),t.observedGroups.clear(),b.forEach(n=>{let r=s[n];t.observedGroups.set(n,r),t.resizeObserver?.observe(r)}))},re=(i,e)=>{let t=z(i);return t.subscribers.add(e),e(O(t.observedSizes)),()=>{let s=w.get(i);s&&(s.subscribers.delete(e),s.subscribers.size===0&&(s.resizeObserver?.disconnect(),s.observedGroups.clear(),w.delete(i)))}},P=class extends x{#t;#e;#i;constructor(e){super(e),this.exports=S()}hostDisconnected(){this.#i?.(),this.#i=void 0,this.#e=void 0,this.#t=void 0,this.exports=S()}hostLifecycle(){return[m(()=>this.#s(),e=>{if(this.#e!==e){if(this.#i?.(),this.#i=void 0,this.#e=e,this.#t=e?.slotGroupRefs,!e){this.exports=S();return}this.#i=re(e,t=>{this.#n(t)||(this.exports=t)}),A(e,this.#t)}},{sync:!0,initial:!0}),m(()=>this.#s()?.slotGroupRefs,e=>{this.#t=e,this.#e&&e&&A(this.#e,e)},{sync:!0,initial:!0})]}#s(){let{referenceElement:e}=this.component;return e&&typeof e!="string"?e:void 0}hostUpdated(){!this.#e||!this.#t||A(this.#e,this.#t)}#n(e){let t=this.exports??S();return b.every(s=>{let n=t[s],r=e[s];return n.width===r.width&&n.height===r.height})}},ae=R(P),oe=N(o),F=class extends E{constructor(){super(...arguments),this._messages=B(),this.viewModel=oe(this),this._direction=M(),this._captureArrowKeysForNavigation=e=>{this.viewModel.captureArrowKeysForNavigation(e,this._direction)},this._useFeatureRefPopup=ee(this),this._handleApplySlideStart=()=>{this._useFeatureRefPopup.closePopup()},this._handleApplySlideComplete=e=>{this._useFeatureRefPopup.openPopup(e),this.sliceAnalysisInteractive&&this.viewModel.setSliceAnalysisInteractive()},this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.scale="m",this.keyboardNavigationEnabled=!1,this.slidePopupDisabled=!1,this.slideCaptionsDisabled=!1,this.slideLegendDisabled=!1,this.sliceAnalysisInteractive=!1,this.arcgisPopupFeatureNotFound=_(),this.arcgisPopupFeaturesRetrieved=_(),this.arcgisReady=_()}static{this.properties={_slotSizesController:16,slideId:1,autoDestroyDisabled:5,view:0,scale:1,keyboardNavigationEnabled:5,slidePopupDisabled:5,slideCaptionsDisabled:5,slideLegendDisabled:5,sliceAnalysisInteractive:5}}static{this.styles=X}get slideId(){return this.viewModel.slideId}set slideId(e){this.viewModel.slideId=e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>{this.viewModel.onApplySlideStart=this._handleApplySlideStart,this.viewModel.onApplySlideComplete=this._handleApplySlideComplete,this._keyboardHandle=m(()=>this.keyboardNavigationEnabled,t=>{document.removeEventListener("keydown",this._captureArrowKeysForNavigation),t&&document.addEventListener("keydown",this._captureArrowKeysForNavigation)},{initial:!0});let e=this;f(()=>e.referenceElement).then(t=>{this._isArcgisScene(t)&&(this._slotSizesController=ae(this),this._watchSceneViewSlotSizes())}),this.manager.onDisconnected(()=>{document.removeEventListener("keydown",this._captureArrowKeysForNavigation),this._keyboardHandle?.remove()})})}_isArcgisScene(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}_watchSceneViewSlotSizes(){return m(()=>this._slotSizesController,e=>this._updatePresentationCaptionsPadding(e?.topLeft,e?.topRight,e?.bottomLeft,e?.bottomRight),{initial:!0})}_updatePresentationCaptionsPadding(e,t,s,n){let r=this._direction==="ltr"?e?.width??0:t?.width??0,a=this._direction==="ltr"?t?.width??0:e?.width??0,c=Math.max(e?.height??0,t?.height??0),l=Math.max(s?.height??0,n?.height??0);r>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-start",`calc(var(--calcite-spacing-lg) + ${r.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-start","0px"),a>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-end",`calc(var(--calcite-spacing-lg) + ${a.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-end","0px");let h=r<=Math.max(c,l)&&a<=Math.max(c,l);this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top",h?"0":`${c}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom",h?"0":`${l}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start",h?`${r}px`:"0"),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end",h?`${a}px`:"0")}render(){if(this.viewModel.visibleSlides.length===0)return u`<div></div>`;let e=this.viewModel.visibleSlides.find(r=>r.id===this.slideId),t=this._renderNavigation(),s=this._renderCaptions(e),n=this._renderLegend();return u`<div class="root"><div class="presentation-content">${s}${n}</div>${t}</div>`}_renderNavigation(){let e=this.viewModel.lastSlideSelected&&!this.viewModel.hasOnlyOneSlide,t=this._direction==="rtl",s=t?"chevron-right":"chevron-left",n=t?"chevron-left":"chevron-right";return u`<div class="navigation"><calcite-button appearance=transparent icon-start=${s??g} kind=neutral .scale=${this.scale} .disabled=${this.viewModel.firstSlideSelected||!this.viewModel.slideSelected} .label=${this._messages.previous} title=${this._messages.previous??g} @click=${()=>this.viewModel.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this._renderSlideCounter()}</div><calcite-button appearance=transparent icon-start=${(e?"reset":n)??g} kind=neutral .scale=${this.scale} .label=${e?this._messages.restart:this._messages.next} title=${(e?this._messages.restart:this._messages.next)??g} @click=${()=>this.viewModel.navigateInPresentation(1)}></calcite-button></div>`}_renderSlideCounter(){let e=this.viewModel.slideIndex+1,t=this._messages?.slideNavAriaText?.replace("${index}",e.toString()).replace("${numberOfSlides}",this.viewModel.visibleSlides.length.toString());return this.viewModel.slideSelected?u`<p role=banner aria-label=${t??g} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div class="slide-counter-text-element">/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides.length}</p></p>`:u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides?.length} ${this._messages?.slides}</p>`}_renderCaptions(e){return this.slideCaptionsDisabled?null:u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.viewModel.transitionActive}></arcgis-presentation-captions>`}_renderLegend(){return this.slideLegendDisabled||!this.viewModel.showLegend?null:u`<calcite-panel data-testid=presentation-legend class="legend" .heading=${this._messages.legend} closable @calcitePanelClose=${()=>this.viewModel.showLegend=!1}><arcgis-legend .view=${this.view} @arcgisReady=${e=>e.stopPropagation()}></arcgis-legend></calcite-panel>`}};$("arcgis-presentation",F);return F},"core/accessorSupport/decorators","core/Accessor","core/Collection","core/promiseUtils","core/reactiveUtils","Graphic","layers/Layer","graphic/CSVGraphicOrigin","graphic/GeoJSONGraphicOrigin","graphic/SceneGraphicOrigin","graphic/WFSGraphicOrigin","graphic/BuildingGraphicOrigin","graphic/FeatureGraphicOrigin","applications/SceneViewer/sceneViewerUtils",a,c,d,e)
2
+ import{c as b}from"./TN5C3MSL.js";import e from"./ACMQRVHQ.js";import{a as B}from"./H47NPYUM.js";import d from"./M2MJH2FX.js";import c from"./ZUXQKICJ.js";import{a as R,f as M}from"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import"./IJQZON2Z.js";import{O as E,R as g,U as $,a as C,b as u,x as _,z as x}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:p,subclass:k},T,I,{ignoreAbortErrors:D},{watch:m,on:H,whenOnce:f},j,V,K,W,U,Q,q,J,{fetchPopupFeaturesFromGraphics:G},,,,N])=>{var X=C`:host{width:100%;height:100%;padding:var(--calcite-spacing-none);margin:var(--calcite-spacing-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{display:flex;width:100%;justify-content:flex-end;padding-top:var(--calcite-spacing-lg);padding-inline-start:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation{width:fit-content;pointer-events:auto;display:flex;align-items:center;gap:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);box-shadow:var(--arcgis-internal-box-shadow);margin-block:auto calc(var(--calcite-spacing-lg) + var(--internal-attribution-height));margin-inline-start:var(--calcite-spacing-lg)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-spacing-base);min-width:64px}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.legend{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:auto;max-height:calc(100vh - 136px);overflow:hidden auto}`,Z=Object.defineProperty,Y=Object.getOwnPropertyDescriptor,d=(i,e,t,s)=>{for(var n=s>1?void 0:s?Y(e,t):e,r=i.length-1,a;r>=0;r--)(a=i[r])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Z(e,t,n),n},o=class extends T{constructor(i){super(i),this.transitionActive=!1,this.showLegend=!1,this.keyboardNavigationEnabled=!1,this._subscribeToSlideEvents=e=>{this._unsubscribeToSlideEvents(e),e.forEach(t=>{let s=t.on("apply-slide-start",()=>this._onApplySlideStart(t)),n=t.on("apply-slide-complete",()=>this._onApplySlideComplete(t)),r=t.on("apply-slide-cancel",()=>this._onApplySlideCancel(t));this.addHandles(s,t.id),this.addHandles(n,t.id),this.addHandles(r,t.id)})},this._unsubscribeToSlideEvents=e=>{e.forEach(t=>{this.hasHandles(t.id)&&this.removeHandles(t.id)})}}initialize(){this.addHandles(m(()=>this.view?.map,(i,e)=>{if(this.hasHandles("sceneLoaded")&&this.removeHandles("sceneLoaded"),e){let t=e.presentation?.slides;t&&t.length>0&&this._unsubscribeToSlideEvents(t)}i&&this.addHandles(m(()=>i.loaded,t=>{t&&(this.removeHandles("sceneLoaded"),this._startWatchSlides(),this._slideId&&this._applySlideById(this._slideId))},{initial:!0}),"sceneLoaded")},{initial:!0}))}destroy(){this._unsubscribeToSlideEvents(this.slides)}get slideId(){return this._slideId}set slideId(i){i===void 0||!this.view?.map?.loaded?this._slideId=i:this._applySlideById(i)}get visibleSlides(){return this.view?.map?.presentation?.slides?.filter(i=>!i.hidden)??new I}get slides(){return this.view?.map?.presentation?.slides??new I}get lastSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===this.visibleSlides.length-1}get firstSlideSelected(){return this.getSlideIndexBySlideId(this.slideId)===0}get slideSelected(){return this.getSlideIndexBySlideId(this.slideId)>-1}get hasOnlyOneSlide(){return this.visibleSlides.length===1}get slideIndex(){return this.getSlideIndexBySlideId(this.slideId)}getSlideIndexBySlideId(i){let e=-1;return i&&(e=this.visibleSlides.findIndex(t=>t.id===i)),e}navigateInPresentation(i){let e=this.slideIndex+i,t=this._getSlideBySlideIndex(e);t??=this._getSlideBySlideIndex(0),t&&this._applySlide(t)}captureArrowKeysForNavigation(i,e){let t=["ArrowLeft","ArrowRight","PageUp","PageDown"];if(document.activeElement?.nodeName.toLowerCase()==="arcgis-scene"||!t.includes(i.code))return;let s=e==="rtl"?"ArrowRight":"ArrowLeft",n=i.code===s||i.code==="PageUp"?-1:1;this.navigateInPresentation(n)}async setSliceAnalysisInteractive(){if(!this.view?.analyses?.length)return;let i=this.view.analyses.find(t=>t.type==="slice"&&t.origin?.type==="web-scene");if(!i)return;let e=await this.view.whenAnalysisView(i);e&&(e.interactive=!0)}_getSlideBySlideIndex(i){if(i!=null&&i>=0&&i<this.visibleSlides.length)return this.visibleSlides.getItemAt(i)}async _applySlideById(i){let e=i?this._getSlideBySlideId(i):void 0;e&&await this._applySlide(e)}_getSlideBySlideId(i){return this.visibleSlides.find(e=>e.id===i)}async _applySlide(i){this.view&&await D(i.applyTo(this.view))}_startWatchSlides(){this._subscribeToSlideEvents(this.slides),this.addHandles(H(()=>this.slides,"change",i=>{this._subscribeToSlideEvents(new I(i.added)),this._unsubscribeToSlideEvents(new I(i.removed))},{onListenerAdd:this._subscribeToSlideEvents,onListenerRemove:this._unsubscribeToSlideEvents}))}_onApplySlideStart(i){this._slideId=i.id,this.transitionActive=!0,this.showLegend=!1,this.onApplySlideStart?.(i)}_onApplySlideComplete(i){this.transitionActive=!1,this.showLegend=!!i.elements.legendInfo?.visible,this.onApplySlideComplete?.(i)}_onApplySlideCancel(i){this.transitionActive=!1,this.showLegend=!!i.elements.legendInfo?.visible,this.onApplySlideCancel?.(i)}};d([p()],o.prototype,"_slideId",2);d([p()],o.prototype,"view",2);d([p()],o.prototype,"slideId",1);d([p()],o.prototype,"transitionActive",2);d([p()],o.prototype,"showLegend",2);d([p()],o.prototype,"keyboardNavigationEnabled",2);d([p()],o.prototype,"visibleSlides",1);d([p()],o.prototype,"slides",1);d([p()],o.prototype,"lastSlideSelected",1);d([p()],o.prototype,"firstSlideSelected",1);d([p()],o.prototype,"slideSelected",1);d([p()],o.prototype,"hasOnlyOneSlide",1);d([p()],o.prototype,"onApplySlideStart",2);d([p()],o.prototype,"onApplySlideComplete",2);d([p()],o.prototype,"onApplySlideCancel",2);d([p()],o.prototype,"getSlideIndexBySlideId",1);o=d([k("components.presentation.PresentationViewModel")],o);var L=class extends x{constructor(e){super(e)}hostLoaded(){this.component.manager.onLifecycle(()=>{let e=this.component;f(()=>e.referenceElement).then(t=>{this._isArcgisScene(t)&&(this._sceneRef=t)})})}openPopup(e){this.component.view&&this.component.slideId===e.id&&e.elements.popupInfo!=null&&this._preparePopupFeature(this.component.view,e.elements.popupInfo).then(({success:t,features:s,popupInfo:n})=>{this.component.slideId===e.id&&(t?this._handlePopupFeatureFound(e,s,n):this.component.arcgisPopupFeatureNotFound.emit({slide:e}))})}_isArcgisScene(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}closePopup(){this.component.slidePopupDisabled||this._sceneRef?.closePopup()}async _handlePopupFeatureFound(e,t,s){let n=s?.location??void 0;this.component.arcgisPopupFeaturesRetrieved.emit({slide:e,features:t,location:n}),this.component.slidePopupDisabled||await this._sceneRef?.openPopup({features:t,location:n})}async _preparePopupFeature(e,t){let s=[];if(!t.features?.length||t.features.length===0)return{success:!1,features:s};let n=t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;if(n?.layerId==null)return{success:!1,features:s};let{layer:r,sublayer:a}=this._getLayersFromView(e,n.layerId,n?.sublayerId);if(!r)return{success:!1,features:s};let c=a??r;if(!c||!this._layerTypeSupportsCapturePopup(c))return{success:!1,features:s};if(s=await this._fetchFeaturesFromQueryable(e,t,r,a,c),s&&this._featureHasBeenFilledWithAttributes(s)){let l=s[0];return this._setFallbackPopupTemplate(l,a,r),this._setFallbackGeometry(l,t?.location),{success:!0,features:s,popupInfo:t}}debugger;return{success:!1,features:s}}_getLayersFromView(e,t,s){let n=e.map?.findLayerById(t)??void 0,r=this._getBuildingSceneLayerSublayer(n,s);return{layer:n,sublayer:r}}_getBuildingSceneLayerSublayer(e,t){let s;return e&&this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(s=e.allSublayers.find(n=>n.id===t&&n.type==="building-component")),s}_featureHasBeenFilledWithAttributes(e){return e&&e.length>0&&e[0].attributes&&Object.entries(e[0].attributes)?.length>1}async _fetchFeaturesFromQueryable(e,t,s,n,r){let a=t.features?.getItemAt(t.selectedFeatureIndex);if(a?.id==null)return await Promise.resolve([]);let c=await e.whenLayerView(s);await f(()=>!c.updating);let l=this._tryGetBuildingComponentSublayerView(s,n,c)??c;await f(()=>!l.updating);let h=this._createFeatureGraphic(s,n,r,a.id),y=await G(l,[h]);return this._featureHasBeenFilledWithAttributes(y)||(await f(()=>!e.updating),y=await G(l,[h])),y}_tryGetBuildingComponentSublayerView(e,t,s){let n;return this._isLayer(e)&&this._isBuildingSceneLayer(e)&&t!=null&&(n=s.sublayerViews.find(r=>r.sublayer.id===t.id)),n}_setFallbackPopupTemplate(e,t,s){e.popupTemplate==null&&(e.popupTemplate=t?.popupTemplate?t.popupTemplate:s.popupTemplate)}_setFallbackGeometry(e,t){e.geometry==null&&t&&(e.geometry=t.clone())}_createFeatureGraphic(e,t,s,n){let r=this._getGlobalIdFieldNameFromLayer(s),a=n.type==="global-id"&&r?r:s.objectIdField,c=this._getGraphicOrigin(e,t),l=new j({attributes:{},layer:e,origin:c});return l.attributes[a]=n.value,l}_getGraphicOrigin(e,t){switch(e.type){case"csv":return new K(e);case"feature":return new J(e);case"geojson":return new W(e);case"scene":return new U(e);case"wfs":return new Q(e);case"building-scene":return t?new q(t):void 0;default:return}}_layerTypeSupportsCapturePopup(e){return e!=null&&["csv","feature","geojson","wfs","scene","building-component"].includes(e.type)}_isLayer(e){return!!e&&e instanceof V}_isBuildingSceneLayer(e){return e?.type==="building-scene"}_getGlobalIdFieldNameFromLayer(e){return e.fields?.find(t=>t.type==="global-id")?.name}},ee=i=>new L(i),v=Object.freeze({width:0,height:0}),w=new WeakMap,S=()=>({topCenter:{...v},topLeft:{...v},topRight:{...v},bottomCenter:{...v},bottomLeft:{...v},bottomRight:{...v}}),O=i=>({topCenter:{...i.topCenter},topLeft:{...i.topLeft},topRight:{...i.topRight},bottomCenter:{...i.bottomCenter},bottomLeft:{...i.bottomLeft},bottomRight:{...i.bottomRight}}),z=i=>{let e=w.get(i);return e||(e={observedGroups:new Map,observedSizes:S(),subscribers:new Set},w.set(i,e)),e},te=i=>{let e=i?.topCenter.value,t=i?.topLeft.value,s=i?.topRight.value,n=i?.bottomCenter.value,r=i?.bottomLeft.value,a=i?.bottomRight.value;return e&&t&&s&&n&&r&&a?{topCenter:e,topLeft:t,topRight:s,bottomCenter:n,bottomLeft:r,bottomRight:a}:null},ie=(i,e)=>b.every(t=>i.get(t)===e[t]),se=i=>{let e=O(i.observedSizes);i.subscribers.forEach(t=>t(e))},ne=(i,e)=>{let t=w.get(i);if(!t)return;let s=!1;e.forEach(n=>{let r=b.find(y=>t.observedGroups.get(y)===n.target);if(!r)return;let{width:a,height:c}=n.contentRect,l={width:a,height:c},h=t.observedSizes[r];h.width===l.width&&h.height===l.height||(t.observedSizes[r]=l,s=!0)}),s&&se(t)},A=(i,e)=>{let t=z(i);t.resizeObserver||(t.resizeObserver=new ResizeObserver(n=>{ne(i,n)}));let s=te(e);if(!s){t.observedGroups.size>0&&(t.resizeObserver.disconnect(),t.observedGroups.clear());return}ie(t.observedGroups,s)||(t.resizeObserver.disconnect(),t.observedGroups.clear(),b.forEach(n=>{let r=s[n];t.observedGroups.set(n,r),t.resizeObserver?.observe(r)}))},re=(i,e)=>{let t=z(i);return t.subscribers.add(e),e(O(t.observedSizes)),()=>{let s=w.get(i);s&&(s.subscribers.delete(e),s.subscribers.size===0&&(s.resizeObserver?.disconnect(),s.observedGroups.clear(),w.delete(i)))}},P=class extends x{#t;#e;#i;constructor(e){super(e),this.exports=S()}hostDisconnected(){this.#i?.(),this.#i=void 0,this.#e=void 0,this.#t=void 0,this.exports=S()}hostLifecycle(){return[m(()=>this.#s(),e=>{if(this.#e!==e){if(this.#i?.(),this.#i=void 0,this.#e=e,this.#t=e?.slotGroupRefs,!e){this.exports=S();return}this.#i=re(e,t=>{this.#n(t)||(this.exports=t)}),A(e,this.#t)}},{sync:!0,initial:!0}),m(()=>this.#s()?.slotGroupRefs,e=>{this.#t=e,this.#e&&e&&A(this.#e,e)},{sync:!0,initial:!0})]}#s(){let{referenceElement:e}=this.component;return e&&typeof e!="string"?e:void 0}hostUpdated(){!this.#e||!this.#t||A(this.#e,this.#t)}#n(e){let t=this.exports??S();return b.every(s=>{let n=t[s],r=e[s];return n.width===r.width&&n.height===r.height})}},ae=R(P),oe=N(o),F=class extends E{constructor(){super(...arguments),this._messages=B(),this.viewModel=oe(this),this._direction=M(),this._captureArrowKeysForNavigation=e=>{this.viewModel.captureArrowKeysForNavigation(e,this._direction)},this._useFeatureRefPopup=ee(this),this._handleApplySlideStart=()=>{this._useFeatureRefPopup.closePopup()},this._handleApplySlideComplete=e=>{this._useFeatureRefPopup.openPopup(e),this.sliceAnalysisInteractive&&this.viewModel.setSliceAnalysisInteractive()},this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.scale="m",this.keyboardNavigationEnabled=!1,this.slidePopupDisabled=!1,this.slideCaptionsDisabled=!1,this.slideLegendDisabled=!1,this.sliceAnalysisInteractive=!1,this.arcgisPopupFeatureNotFound=_(),this.arcgisPopupFeaturesRetrieved=_(),this.arcgisReady=_()}static{this.properties={_slotSizesController:16,slideId:1,autoDestroyDisabled:5,view:0,scale:1,keyboardNavigationEnabled:5,slidePopupDisabled:5,slideCaptionsDisabled:5,slideLegendDisabled:5,sliceAnalysisInteractive:5}}static{this.styles=X}get slideId(){return this.viewModel.slideId}set slideId(e){this.viewModel.slideId=e}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>{this.viewModel.onApplySlideStart=this._handleApplySlideStart,this.viewModel.onApplySlideComplete=this._handleApplySlideComplete,this._keyboardHandle=m(()=>this.keyboardNavigationEnabled,t=>{document.removeEventListener("keydown",this._captureArrowKeysForNavigation),t&&document.addEventListener("keydown",this._captureArrowKeysForNavigation)},{initial:!0});let e=this;f(()=>e.referenceElement).then(t=>{this._isArcgisScene(t)&&(this._slotSizesController=ae(this),this._watchSceneViewSlotSizes())}),this.manager.onDisconnected(()=>{document.removeEventListener("keydown",this._captureArrowKeysForNavigation),this._keyboardHandle?.remove()})})}_isArcgisScene(e){return e===void 0||typeof e=="string"?!1:"tagName"in e&&e.tagName==="ARCGIS-SCENE"}_watchSceneViewSlotSizes(){return m(()=>this._slotSizesController,e=>this._updatePresentationCaptionsPadding(e?.topLeft,e?.topRight,e?.bottomLeft,e?.bottomRight),{initial:!0})}_updatePresentationCaptionsPadding(e,t,s,n){let r=this._direction==="ltr"?e?.width??0:t?.width??0,a=this._direction==="ltr"?t?.width??0:e?.width??0,c=Math.max(e?.height??0,t?.height??0),l=Math.max(s?.height??0,n?.height??0);r>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-start",`calc(var(--calcite-spacing-lg) + ${r.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-start","0px"),a>0?this.el.style.setProperty("--arcgis-internal-presentation-padding-end",`calc(var(--calcite-spacing-lg) + ${a.toString()}px)`):this.el.style.setProperty("--arcgis-internal-presentation-padding-end","0px");let h=r<=Math.max(c,l)&&a<=Math.max(c,l);this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top",h?"0":`${c}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom",h?"0":`${l}px`),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start",h?`${r}px`:"0"),this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end",h?`${a}px`:"0")}render(){if(this.viewModel.visibleSlides.length===0)return u`<div></div>`;let e=this.viewModel.visibleSlides.find(r=>r.id===this.slideId),t=this._renderNavigation(),s=this._renderCaptions(e),n=this._renderLegend();return u`<div class="root"><div class="presentation-content">${s}${n}</div>${t}</div>`}_renderNavigation(){let e=this.viewModel.lastSlideSelected&&!this.viewModel.hasOnlyOneSlide,t=this._direction==="rtl",s=t?"chevron-right":"chevron-left",n=t?"chevron-left":"chevron-right";return u`<div class="navigation"><calcite-button appearance=transparent icon-start=${s??g} kind=neutral .scale=${this.scale} .disabled=${this.viewModel.firstSlideSelected||!this.viewModel.slideSelected} .label=${this._messages.previous} title=${this._messages.previous??g} @click=${()=>this.viewModel.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this._renderSlideCounter()}</div><calcite-button appearance=transparent icon-start=${(e?"reset":n)??g} kind=neutral .scale=${this.scale} .label=${e?this._messages.restart:this._messages.next} title=${(e?this._messages.restart:this._messages.next)??g} @click=${()=>this.viewModel.navigateInPresentation(1)}></calcite-button></div>`}_renderSlideCounter(){let e=this.viewModel.slideIndex+1,t=this._messages?.slideNavAriaText?.replace("${index}",e.toString()).replace("${numberOfSlides}",this.viewModel.visibleSlides.length.toString());return this.viewModel.slideSelected?u`<p role=banner aria-label=${t??g} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div class="slide-counter-text-element">/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides.length}</p></p>`:u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides?.length} ${this._messages?.slides}</p>`}_renderCaptions(e){return this.slideCaptionsDisabled?null:u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.viewModel.transitionActive}></arcgis-presentation-captions>`}_renderLegend(){return this.slideLegendDisabled||!this.viewModel.showLegend?null:u`<calcite-panel data-testid=presentation-legend class="legend" .heading=${this._messages.legend} closable @calcitePanelClose=${()=>this.viewModel.showLegend=!1}><arcgis-legend .view=${this.view} @arcgisReady=${e=>e.stopPropagation()}></arcgis-legend></calcite-panel>`}};$("arcgis-presentation",F);return F},"core/accessorSupport/decorators","core/Accessor","core/Collection","core/promiseUtils","core/reactiveUtils","Graphic","layers/Layer","graphic/CSVGraphicOrigin","graphic/GeoJSONGraphicOrigin","graphic/SceneGraphicOrigin","graphic/WFSGraphicOrigin","graphic/BuildingGraphicOrigin","graphic/FeatureGraphicOrigin","applications/SceneViewer/sceneViewerUtils",a,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./3AEP2FXT.js";import{Q as O,R as e,b as U,c as s}from"./URMAKTOH.js";export default $arcgis.t(([{getBoundingBox:J,computeBBox:K,getTransformMatrix:Q},M,{e:N,f:F}])=>{var V=0;function X(){return V++}var Y=0;function Z(){return Y++}var _=0;function tt(){return _++}var R=new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),et="http://www.w3.org/2000/svg",it=Math.PI;function ot(t){let{pattern:o,linearGradient:i}=t;if(o)return s`<pattern height=${o.height??e} id=${o.id??e} patternUnits=userSpaceOnUse width=${o.width??e} x=${o.x??0??e} y=${o.y??0??e}><image height=${o.image.height??e} href=${o.image.href??e} width=${o.image.width??e} x=${o.image.x??e} y=${o.image.y??e} /></pattern>`;if(i){let n=i.stops.map(r=>s`<stop offset=${r.offset??e} stop-color=${r.color??e} />`);return s`<linearGradient gradientUnits=userSpaceOnUse id=${i.id??e} x1=${i.x1??e} x2=${i.x2??e} y1=${i.y1??e} y2=${i.y2??e}>${n}</linearGradient>`}return null}function E(t){if(!t)return{fill:"none",pattern:null,linearGradient:null};if(!("type"in t))return{fill:new M(t).toString(),pattern:null,linearGradient:null};if(t.type==="pattern"){let i=`patternId-${X()}`;return{fill:`url(#${i})`,pattern:{id:i,x:t.x,y:t.y,width:t.width,height:t.height,image:{x:0,y:0,width:t.width,height:t.height,href:t.src}},linearGradient:null}}let o=`linearGradientId-${Z()}`;return{fill:`url(#${o})`,pattern:null,linearGradient:{id:o,x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stops:t.colors.map(i=>({offset:i.offset,color:i.color&&new M(i.color).toString()}))}}}function D(t){let o={color:"none",width:1,cap:"butt",join:"4",dashArray:"none",dashOffset:"0"};return t&&(t.width!=null&&(o.width=t.width),t.cap&&(o.cap=t.cap),t.join&&(o.join=t.join.toString()),t.color&&(o.color=new M(t.color).toString()),t.dashArray&&(o.dashArray=t.dashArray),t.dashoffset&&(o.dashOffset=t.dashoffset),t.style&&!t.dashArray&&(o.dashArray=nt(t).join(",")||"none")),o}function nt(t){if(!t?.style)return[];let{dashArray:o,style:i,width:n}=t;if(typeof o=="string"&&o!=="none")return o.split(",").map(l=>Number(l));let r=n??0,d=R.has(i)?R.get(i).map(l=>l*r):[];if(t.cap!=="butt")for(let[l,h]of d.entries())d[l]=l%2===1?h+r:Math.max(h-r,1);return d}function rt(t){return t.map(o=>`${o.command} ${o.values.join(" ")}`).join(" ").trim()}function j(t,o){if(t==null)throw new Error("value is None")}function I(t,o,i,n,r){if(t){if(t.type==="circle")return s`<circle cx=${t.cx??e} cy=${t.cy??e} fill=${o??e} fill-rule=evenodd r=${t.r??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-dashoffset=${i.dashOffset??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`;if(t.type==="ellipse")return s`<ellipse cx=${t.cx??e} cy=${t.cy??e} fill=${o??e} fill-rule=evenodd rx=${t.rx??e} ry=${t.ry??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`;if(t.type==="rect")return s`<rect fill=${o??e} fill-rule=evenodd height=${t.height??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} width=${t.width??e} x=${t.x??e} y=${t.y??e} />`;if(t.type==="image")return s`<image aria-label=${r??""??e} height=${t.height??e} href=${t.src??e} preserveAspectRatio=none width=${t.width??e} x=${t.x??e} y=${t.y??e} />`;if(t.type==="path"){let d=typeof t.path!="string"?rt(t.path):t.path;return s`<path d=${d??e} fill=${o??e} fill-rule=evenodd stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`}if(t.type==="text")return j(n),s`<text dominant-baseline=${(n.dominantBaseline==="inherit"||n.dominantBaseline==="alphabetic"||n.dominantBaseline==="auto"||n.dominantBaseline==="central"||n.dominantBaseline==="hanging"||n.dominantBaseline==="ideographic"||n.dominantBaseline==="mathematical"||n.dominantBaseline==="middle"||n.dominantBaseline==="text-bottom"||n.dominantBaseline==="text-top"?n.dominantBaseline:void 0)??e} fill=${o??e} fill-rule=evenodd font-family=${n.font.family??e} font-size=${n.font.size??e} font-style=${n.font.style??e} font-variant=${n.font.variant??e} font-weight=${n.font.weight??e} kerning=${n.kerning??e} rotate=${n.rotate??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} text-anchor=${(n.align==="inherit"||n.align==="middle"||n.align==="end"||n.align==="start"?n.align:void 0)??e} text-decoration=${(n.decoration==="inherit"||n.decoration==="none"||n.decoration==="blink"||n.decoration==="line-through"||n.decoration==="overline"||n.decoration==="underline"?n.decoration:void 0)??e} text-rendering=auto x=${t.x??e} y=${t.y??e}>${t.text}</text>`}return null}function at(t,o,i){let n=C(t);if(!n)return null;let{strength:r,radius:d}=n,l=r>0?d:0,h=5**(o/100)*(.4+o/100),u=(r+l*.5)*h,c=(r+l)*o,f=r*4+1;return s`<filter filterUnits=userSpaceOnUse height=300% .id=${`bloom${i}`} width=300% x=-100% y=-100%><feMorphology in=SourceGraphic operator=dilate radius=${u??e} result=dilate /><feGaussianBlur in=dilate result=blur stdDeviation=${c/25} /><feGaussianBlur in=blur result=intensityBlur stdDeviation=${c/50} /><feComponentTransfer in=SourceGraphic result=intensityBrightness><feFuncR slope=${f??e} type=linear /><feFuncG slope=${f??e} type=linear /><feFuncB slope=${f??e} type=linear /></feComponentTransfer><feMerge><feMergeNode in=intensityBlur /><feMergeNode in=intensityBrightness /><feGaussianBlur stdDeviation=${r/10} /></feMerge></filter>`}function x(t,o){let i=t*(it/180);return Math.abs(o*Math.sin(i))+Math.abs(o*Math.cos(i))}function T(t,o){let i={align:null,decoration:null,kerning:null,rotate:null,font:{style:null,variant:null,weight:null,size:null,family:null}};if(t){let n=t.alignBaseline,r=n==="baseline"?"auto":n==="top"?"text-top":n==="bottom"?"hanging":n;i.align=t.align,i.dominantBaseline=r,i.decoration=t.decoration,i.kerning=t.kerning?"auto":"0",i.rotate=t.rotated?"90":"0",j(o),i.font.style=o.style||"normal",i.font.variant=o.variant||"normal",i.font.weight=o.weight||"normal",i.font.size=o.size?.toString()||"10pt",i.font.family=o.family||"serif"}return i}function st(t,o){if(!t||t.length===0)return null;let i=[];for(let n of t){let{shape:r,fill:d,stroke:l,font:h}=n,u=E(d),c=D(l),f=r.type==="text"?T(r,h):null,a=I(r,u.fill,c,f);a&&i.push(a)}return s`<mask id=${o??e} maskUnits=userSpaceOnUse><g>${i}</g></mask>`}function C(t){let o=t?.match(/bloom\(\s*([^\s]+)\s+([^\s]+)\s+([^\s]+)\s*\)/iu);if(!o)return null;let[,i,n,r]=o;return{strength:Number(i),radius:N(F(n)),threshold:Number(r)}}function ut(t,o,i,n={}){let r=[],d=[],l=tt(),h=at(n.cssEffectFilter,o,l),u=null;if(h){let a=C(n.cssEffectFilter),$=n.clipBloomEffect||!a?.strength?0:(a.strength+a.radius/2)/3,p=o+o*$,m=i+i*$;u=[Math.max(p,10),Math.max(m,10)]}let c=o,f=i;if(n.useRotationSize)for(let a=0;a<t.length;a++){let $=n.rotations?.[a]??0;c=Math.max(x($,o),c),f=Math.max(x($,i),f)}for(let a=0;a<t.length;a++){let $=t[a],p=[],m=[],S=0,k=0,w=0;for(let y of $){let{shape:g,fill:P,stroke:A,font:W,offset:b}=y;!n.ignoreStrokeWidth&&g.type!=="text"&&(S+=A?.width||0);let z=E(P),q=D(A),H=g.type==="text"?T(g,W):null;r.push(ot(z)),p.push(I(g,z.fill,q,H,n.ariaLabel)),m.push(J(g)),b&&(k+=b[0],w+=b[1])}let v=n.rotations?.[a]??0;n.useRotationSize&&(k+=(c-x(v,o))/2,w+=(f-x(v,i))/2);let L=K(m),G=Q(L,o,i,S,n.scale??!1,v,n.useRotationSize??!1,[k,w],u),B=null;if(n.masking){let y=`mask-${a}`,g=n.masking[a];r.push(st(g,y)),B=`url(#${y})`}d.push(B?s`<g mask=${B??e}><g transform=${G??e}>${p}</g></g>`:s`<g transform=${G??e}>${p}</g>`)}return h&&(j(u),c=u[0],f=u[1]),U`<svg aria-label=${n.ariaLabel??e} height=${f??e} role=img style=${O("display: block;")} width=${c??e} xmlns=${et}>${s`${h}<defs>${r}</defs>${h?s`<g filter=${`url(#bloom${l})`}>${d}</g>`:d}`}</svg>`}return{a:ot,b:E,c:D,d:I,e:ut}},"applications/Components/svgUtils","Color",a)
2
+ import a from"./3AEP2FXT.js";import{Q as O,R as e,b as U,c as s}from"./IXZEUVT2.js";export default $arcgis.t(([{getBoundingBox:J,computeBBox:K,getTransformMatrix:Q},M,{e:N,f:F}])=>{var V=0;function X(){return V++}var Y=0;function Z(){return Y++}var _=0;function tt(){return _++}var R=new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),et="http://www.w3.org/2000/svg",it=Math.PI;function ot(t){let{pattern:o,linearGradient:i}=t;if(o)return s`<pattern height=${o.height??e} id=${o.id??e} patternUnits=userSpaceOnUse width=${o.width??e} x=${o.x??0??e} y=${o.y??0??e}><image height=${o.image.height??e} href=${o.image.href??e} width=${o.image.width??e} x=${o.image.x??e} y=${o.image.y??e} /></pattern>`;if(i){let n=i.stops.map(r=>s`<stop offset=${r.offset??e} stop-color=${r.color??e} />`);return s`<linearGradient gradientUnits=userSpaceOnUse id=${i.id??e} x1=${i.x1??e} x2=${i.x2??e} y1=${i.y1??e} y2=${i.y2??e}>${n}</linearGradient>`}return null}function E(t){if(!t)return{fill:"none",pattern:null,linearGradient:null};if(!("type"in t))return{fill:new M(t).toString(),pattern:null,linearGradient:null};if(t.type==="pattern"){let i=`patternId-${X()}`;return{fill:`url(#${i})`,pattern:{id:i,x:t.x,y:t.y,width:t.width,height:t.height,image:{x:0,y:0,width:t.width,height:t.height,href:t.src}},linearGradient:null}}let o=`linearGradientId-${Z()}`;return{fill:`url(#${o})`,pattern:null,linearGradient:{id:o,x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stops:t.colors.map(i=>({offset:i.offset,color:i.color&&new M(i.color).toString()}))}}}function D(t){let o={color:"none",width:1,cap:"butt",join:"4",dashArray:"none",dashOffset:"0"};return t&&(t.width!=null&&(o.width=t.width),t.cap&&(o.cap=t.cap),t.join&&(o.join=t.join.toString()),t.color&&(o.color=new M(t.color).toString()),t.dashArray&&(o.dashArray=t.dashArray),t.dashoffset&&(o.dashOffset=t.dashoffset),t.style&&!t.dashArray&&(o.dashArray=nt(t).join(",")||"none")),o}function nt(t){if(!t?.style)return[];let{dashArray:o,style:i,width:n}=t;if(typeof o=="string"&&o!=="none")return o.split(",").map(l=>Number(l));let r=n??0,d=R.has(i)?R.get(i).map(l=>l*r):[];if(t.cap!=="butt")for(let[l,h]of d.entries())d[l]=l%2===1?h+r:Math.max(h-r,1);return d}function rt(t){return t.map(o=>`${o.command} ${o.values.join(" ")}`).join(" ").trim()}function j(t,o){if(t==null)throw new Error("value is None")}function I(t,o,i,n,r){if(t){if(t.type==="circle")return s`<circle cx=${t.cx??e} cy=${t.cy??e} fill=${o??e} fill-rule=evenodd r=${t.r??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-dashoffset=${i.dashOffset??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`;if(t.type==="ellipse")return s`<ellipse cx=${t.cx??e} cy=${t.cy??e} fill=${o??e} fill-rule=evenodd rx=${t.rx??e} ry=${t.ry??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`;if(t.type==="rect")return s`<rect fill=${o??e} fill-rule=evenodd height=${t.height??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} width=${t.width??e} x=${t.x??e} y=${t.y??e} />`;if(t.type==="image")return s`<image aria-label=${r??""??e} height=${t.height??e} href=${t.src??e} preserveAspectRatio=none width=${t.width??e} x=${t.x??e} y=${t.y??e} />`;if(t.type==="path"){let d=typeof t.path!="string"?rt(t.path):t.path;return s`<path d=${d??e} fill=${o??e} fill-rule=evenodd stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} />`}if(t.type==="text")return j(n),s`<text dominant-baseline=${(n.dominantBaseline==="inherit"||n.dominantBaseline==="alphabetic"||n.dominantBaseline==="auto"||n.dominantBaseline==="central"||n.dominantBaseline==="hanging"||n.dominantBaseline==="ideographic"||n.dominantBaseline==="mathematical"||n.dominantBaseline==="middle"||n.dominantBaseline==="text-bottom"||n.dominantBaseline==="text-top"?n.dominantBaseline:void 0)??e} fill=${o??e} fill-rule=evenodd font-family=${n.font.family??e} font-size=${n.font.size??e} font-style=${n.font.style??e} font-variant=${n.font.variant??e} font-weight=${n.font.weight??e} kerning=${n.kerning??e} rotate=${n.rotate??e} stroke=${i.color??e} stroke-dasharray=${i.dashArray??void 0??e} stroke-linecap=${i.cap??e} stroke-linejoin=${i.join??e} stroke-miterlimit=4 stroke-width=${i.width??e} text-anchor=${(n.align==="inherit"||n.align==="middle"||n.align==="end"||n.align==="start"?n.align:void 0)??e} text-decoration=${(n.decoration==="inherit"||n.decoration==="none"||n.decoration==="blink"||n.decoration==="line-through"||n.decoration==="overline"||n.decoration==="underline"?n.decoration:void 0)??e} text-rendering=auto x=${t.x??e} y=${t.y??e}>${t.text}</text>`}return null}function at(t,o,i){let n=C(t);if(!n)return null;let{strength:r,radius:d}=n,l=r>0?d:0,h=5**(o/100)*(.4+o/100),u=(r+l*.5)*h,c=(r+l)*o,f=r*4+1;return s`<filter filterUnits=userSpaceOnUse height=300% .id=${`bloom${i}`} width=300% x=-100% y=-100%><feMorphology in=SourceGraphic operator=dilate radius=${u??e} result=dilate /><feGaussianBlur in=dilate result=blur stdDeviation=${c/25} /><feGaussianBlur in=blur result=intensityBlur stdDeviation=${c/50} /><feComponentTransfer in=SourceGraphic result=intensityBrightness><feFuncR slope=${f??e} type=linear /><feFuncG slope=${f??e} type=linear /><feFuncB slope=${f??e} type=linear /></feComponentTransfer><feMerge><feMergeNode in=intensityBlur /><feMergeNode in=intensityBrightness /><feGaussianBlur stdDeviation=${r/10} /></feMerge></filter>`}function x(t,o){let i=t*(it/180);return Math.abs(o*Math.sin(i))+Math.abs(o*Math.cos(i))}function T(t,o){let i={align:null,decoration:null,kerning:null,rotate:null,font:{style:null,variant:null,weight:null,size:null,family:null}};if(t){let n=t.alignBaseline,r=n==="baseline"?"auto":n==="top"?"text-top":n==="bottom"?"hanging":n;i.align=t.align,i.dominantBaseline=r,i.decoration=t.decoration,i.kerning=t.kerning?"auto":"0",i.rotate=t.rotated?"90":"0",j(o),i.font.style=o.style||"normal",i.font.variant=o.variant||"normal",i.font.weight=o.weight||"normal",i.font.size=o.size?.toString()||"10pt",i.font.family=o.family||"serif"}return i}function st(t,o){if(!t||t.length===0)return null;let i=[];for(let n of t){let{shape:r,fill:d,stroke:l,font:h}=n,u=E(d),c=D(l),f=r.type==="text"?T(r,h):null,a=I(r,u.fill,c,f);a&&i.push(a)}return s`<mask id=${o??e} maskUnits=userSpaceOnUse><g>${i}</g></mask>`}function C(t){let o=t?.match(/bloom\(\s*([^\s]+)\s+([^\s]+)\s+([^\s]+)\s*\)/iu);if(!o)return null;let[,i,n,r]=o;return{strength:Number(i),radius:N(F(n)),threshold:Number(r)}}function ut(t,o,i,n={}){let r=[],d=[],l=tt(),h=at(n.cssEffectFilter,o,l),u=null;if(h){let a=C(n.cssEffectFilter),$=n.clipBloomEffect||!a?.strength?0:(a.strength+a.radius/2)/3,p=o+o*$,m=i+i*$;u=[Math.max(p,10),Math.max(m,10)]}let c=o,f=i;if(n.useRotationSize)for(let a=0;a<t.length;a++){let $=n.rotations?.[a]??0;c=Math.max(x($,o),c),f=Math.max(x($,i),f)}for(let a=0;a<t.length;a++){let $=t[a],p=[],m=[],S=0,k=0,w=0;for(let y of $){let{shape:g,fill:P,stroke:A,font:W,offset:b}=y;!n.ignoreStrokeWidth&&g.type!=="text"&&(S+=A?.width||0);let z=E(P),q=D(A),H=g.type==="text"?T(g,W):null;r.push(ot(z)),p.push(I(g,z.fill,q,H,n.ariaLabel)),m.push(J(g)),b&&(k+=b[0],w+=b[1])}let v=n.rotations?.[a]??0;n.useRotationSize&&(k+=(c-x(v,o))/2,w+=(f-x(v,i))/2);let L=K(m),G=Q(L,o,i,S,n.scale??!1,v,n.useRotationSize??!1,[k,w],u),B=null;if(n.masking){let y=`mask-${a}`,g=n.masking[a];r.push(st(g,y)),B=`url(#${y})`}d.push(B?s`<g mask=${B??e}><g transform=${G??e}>${p}</g></g>`:s`<g transform=${G??e}>${p}</g>`)}return h&&(j(u),c=u[0],f=u[1]),U`<svg aria-label=${n.ariaLabel??e} height=${f??e} role=img style=${O("display: block;")} width=${c??e} xmlns=${et}>${s`${h}<defs>${r}</defs>${h?s`<g filter=${`url(#bloom${l})`}>${d}</g>`:d}`}</svg>`}return{a:ot,b:E,c:D,d:I,e:ut}},"applications/Components/svgUtils","Color",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{O as o,U as d,a as s,b as t}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:c}])=>{var n=s`.table{display:flex;flex-direction:column;border-top:1px solid var(--calcite-color-border-1)}.row{display:flex;flex-direction:row;border-bottom:1px solid var(--calcite-color-border-1);border-right:1px solid var(--calcite-color-border-1)}.data{flex:1;border-left:1px solid var(--calcite-color-border-1);padding:5px}.empty-state{width:100%;max-inline-size:unset;transition-duration:0ms;margin-top:var(--calcite-spacing-md)}`,e=class extends o{constructor(){super(...arguments),this._disabled=!1,this._hasMetadata=!1,this._missionInfo={},this._platformInfo={},this._frameInfo={}}static{this.properties={_disabled:16,_hasMetadata:16,_missionInfo:16,_platformInfo:16,_frameInfo:16,viewModel:0,messages:0}}static{this.styles=n}loaded(){this.manager.onLifecycle(()=>[c(()=>this.viewModel.state,a=>{this._disabled=a==="not-ready"||a==="waiting"},{initial:!0}),c(()=>[this.viewModel.metadata?.missionInfo,this.viewModel.metadata?.platformInfo,this.viewModel.metadata?.frameInfo],()=>{let{metadata:a}=this.viewModel;if(this._hasMetadata=!!a,!this._hasMetadata)return;let{missionInfo:i,platformInfo:r,frameInfo:l}=a;this._missionInfo=i,this._platformInfo=r,this._frameInfo=l},{initial:!0})])}render(){let{messages:a}=this;return this._disabled||!this._hasMetadata?t`<calcite-tile class="empty-state" .description=${a.metadataDescription} .heading=${a.metadataNotLoaded}></calcite-tile>`:t`<calcite-block .heading=${a.metadata} expanded><calcite-accordion appearance=solid selection-mode=single><calcite-accordion-item .heading=${a.missionInfo}><div class="table">${Object.keys(this._missionInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._missionInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.platformInfo}><div class="table">${Object.keys(this._platformInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._platformInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.frameInfo}><div class="table">${Object.keys(this._frameInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._frameInfo[i]}</div></div>`)}</div></calcite-accordion-item></calcite-accordion></calcite-block>`}};d("arcgis-video-player-metadata",e);return e},"core/reactiveUtils")
2
+ import{O as o,U as d,a as s,b as t}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:c}])=>{var n=s`.table{display:flex;flex-direction:column;border-top:1px solid var(--calcite-color-border-1)}.row{display:flex;flex-direction:row;border-bottom:1px solid var(--calcite-color-border-1);border-right:1px solid var(--calcite-color-border-1)}.data{flex:1;border-left:1px solid var(--calcite-color-border-1);padding:5px}.empty-state{width:100%;max-inline-size:unset;transition-duration:0ms;margin-top:var(--calcite-spacing-md)}`,e=class extends o{constructor(){super(...arguments),this._disabled=!1,this._hasMetadata=!1,this._missionInfo={},this._platformInfo={},this._frameInfo={}}static{this.properties={_disabled:16,_hasMetadata:16,_missionInfo:16,_platformInfo:16,_frameInfo:16,viewModel:0,messages:0}}static{this.styles=n}loaded(){this.manager.onLifecycle(()=>[c(()=>this.viewModel.state,a=>{this._disabled=a==="not-ready"||a==="waiting"},{initial:!0}),c(()=>[this.viewModel.metadata?.missionInfo,this.viewModel.metadata?.platformInfo,this.viewModel.metadata?.frameInfo],()=>{let{metadata:a}=this.viewModel;if(this._hasMetadata=!!a,!this._hasMetadata)return;let{missionInfo:i,platformInfo:r,frameInfo:l}=a;this._missionInfo=i,this._platformInfo=r,this._frameInfo=l},{initial:!0})])}render(){let{messages:a}=this;return this._disabled||!this._hasMetadata?t`<calcite-tile class="empty-state" .description=${a.metadataDescription} .heading=${a.metadataNotLoaded}></calcite-tile>`:t`<calcite-block .heading=${a.metadata} expanded><calcite-accordion appearance=solid selection-mode=single><calcite-accordion-item .heading=${a.missionInfo}><div class="table">${Object.keys(this._missionInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._missionInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.platformInfo}><div class="table">${Object.keys(this._platformInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._platformInfo[i]}</div></div>`)}</div></calcite-accordion-item><calcite-accordion-item .heading=${a.frameInfo}><div class="table">${Object.keys(this._frameInfo).map(i=>t`<div class="row"><div class="data">${i}</div><div class="data">${this._frameInfo[i]}</div></div>`)}</div></calcite-accordion-item></calcite-accordion></calcite-block>`}};d("arcgis-video-player-metadata",e);return e},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as C}from"./ECNI2A4K.js";import{a as I}from"./7EDIRSB6.js";import a from"./MZWO5JYA.js";import{O as $,S as F,U as L,a as q,b as p}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:k,findUtilityNetwork:U,getOrCreateMapValue:x},{stripHTML:E},f,{ignoreAbortErrors:S},{watch:v},V,P,Q,B,G,{b:N,f:A}])=>{var R=q`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,M=100,D={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",T=class extends ${constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await S(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await S(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=C(this._queryController,M),this._queryFeatureCountDebounced=C(this._queryFeatureCountController,M),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=k(),this._associationViewModels=k(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.useFeatureNextFlowItem=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,useFeatureNextFlowItem:5,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=R}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=A(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:r,associationTypes:l}=this;return o||t&&!a?"loading":i||r?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[v(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),v(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),v(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){let e=this.useFeatureNextFlowItem?F(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`):F(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);this._addFlowItem(e)}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let r=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(r)).reduce((l,c)=>l+c,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,r=Array.from(e.entries()).map(async([c,d])=>{let u=await this._findLayersBySourceId(c);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(r);let l=[];return await Promise.all(t.toArray().map(async c=>{let{fromNetworkElement:d,toNetworkElement:u}=c,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:c,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,r=e.toNetworkElement,l=s(a,o),c=s(i,r);return l&&c&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(r=>!!e?.isUtilityLayer(r)&&r.layerId===a),o=s.allTables.filter(r=>!!e?.isUtilityLayer(r)&&r.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get(D.assetGroup),r=t.fieldsIndex.get(D.assetType),l=s!=null,c=a!=null,d=i?V.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&c?`(${r?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,r=t.getObjectId()?.toString();return o||r||""}_getParentFeatureDescription(){let{parentFeatureViewModel:t}=this;if(t){if("heading"in t)return t.heading;if("title"in t)return t.title}}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:r,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!r||!s||!i||!o)return;let c=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;c.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(c,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let r=A(e)?e.parent:e,l=new P({globalId:s,networkSourceId:i.getSourceIdByLayerId(r.layerId)}),c=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new Q({elements:[l],types:Array.from(c)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),r=new B({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),{features:l}=await N(t,r,i);return l}_parseFeatureObjects(t,e){let s=k();t.forEach(a=>{let i=(a?.feature).sourceLayer;x(s,i,()=>new f).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let r=this._associationFeatures.get(o);r?i.forEach(l=>{r.find(c=>this._matchesGlobalFeature(l,c))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let r=this._associationViewModels.get(o)||new f;i?.filter(Boolean).forEach((l,c)=>{if(!r.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;r.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},c)}}),this._associationViewModels.set(o,r)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return I(`association-type-${t.type}`,p`<calcite-list-item .description=${E(t.description)} .label=${E(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return I("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};L("arcgis-feature-utility-network-associations",T);return T},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/Query","popup/Feature",a)
2
+ import{a as C}from"./ECNI2A4K.js";import{a as I}from"./KTXZR4IK.js";import a from"./MZWO5JYA.js";import{O as $,S as F,U as L,a as q,b as p}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{createReactiveMap:k,findUtilityNetwork:U,getOrCreateMapValue:x},{stripHTML:E},f,{ignoreAbortErrors:S},{watch:v},V,P,Q,B,G,{b:N,f:A}])=>{var R=q`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,M=100,D={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",T=class extends ${constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await S(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await S(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=C(this._queryController,M),this._queryFeatureCountDebounced=C(this._queryFeatureCountController,M),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=k(),this._associationViewModels=k(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.useFeatureNextFlowItem=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,useFeatureNextFlowItem:5,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=R}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=A(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:a,_queryAbortController:i,_queryFeatureCountAbortController:o,_queryPageAbortController:r,associationTypes:l}=this;return o||t&&!a?"loading":i||r?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[v(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),v(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),v(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){let e=this.useFeatureNextFlowItem?F(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} use-feature-next-flow-item .view=${this.view}></arcgis-feature-utility-network-association-list>`):F(p`<arcgis-feature-utility-network-association-list .autoDestroyDisabled=${this.autoDestroyDisabled} .associationViewModels=${this._associationViewModels} .description=${this._getParentFeatureDescription()} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`);this._addFlowItem(e)}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a);return await t.queryFeatureCount({where:o,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,a,i){if(!e.length)return 0;let o=await this._findLayersBySourceId(t);await this._loadLayers(o);let r=o.map(l=>this._countAssociatedFeatureCount(l,e,s,a,i));return(await Promise.all(r)).reduce((l,c)=>l+c,0)}async _createAssociationFeatureObjects(t,e,s,a,i){if(!t.length)return[];let o=new Map,r=Array.from(e.entries()).map(async([c,d])=>{let u=await this._findLayersBySourceId(c);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,a,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=o.get(y)??[];w.push(n),o.set(y,w)}})})});await Promise.all(r);let l=[];return await Promise.all(t.toArray().map(async c=>{let{fromNetworkElement:d,toNetworkElement:u}=c,h=d.globalId===this._globalId?u:d,m=o.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:c,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},a=t.fromNetworkElement,i=t.toNetworkElement,o=e.fromNetworkElement,r=e.toNetworkElement,l=s(a,o),c=s(i,r);return l&&c&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let a=e.getLayerIdBySourceId(t),i=s.allLayers.filter(r=>!!e?.isUtilityLayer(r)&&r.layerId===a),o=s.allTables.filter(r=>!!e?.isUtilityLayer(r)&&r.layerId===a);return i.concat(o).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,a){let i=t.globalIdField,o=t.fieldsIndex.get(D.assetGroup),r=t.fieldsIndex.get(D.assetType),l=s!=null,c=a!=null,d=i?V.sqlIn(i,e):null,u=l?`(${o?.name} = ${s})`:null,h=l&&c?`(${r?.name} = ${a})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let a="displayField"in s?s.displayField:null,i=a!=null?e[a.toString()]:null,o=i!=null?i.toString():null,r=t.getObjectId()?.toString();return o||r||""}_getParentFeatureDescription(){let{parentFeatureViewModel:t}=this;if(t){if("heading"in t)return t.heading;if("title"in t)return t.title}}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=a=>{if("layerId"in a&&e.isUtilityLayer(a)){let i=a.layerId!=null?e.getSourceIdByLayerId(a.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:a,associationTypes:i,_utilityNetwork:o,_canQuery:r,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),o?.load()]),!r||!s||!i||!o)return;let c=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;c.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===a?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(c,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:a,_utilityNetwork:i,_canQuery:o}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!o||!e||!a||!i||!s)return;let r=A(e)?e.parent:e,l=new P({globalId:s,networkSourceId:i.getSourceIdByLayerId(r.layerId)}),c=new Set;a.forEach(n=>{switch(n.type){case"attachment":case"structure":c.add("attachment");break;case"container":case"content":c.add("containment");break;case"connectivity":c.add("connectivity"),c.add("junction-junction-connectivity"),c.add("junction-edge-from-connectivity"),c.add("junction-edge-midspan-connectivity"),c.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new Q({elements:[l],types:Array.from(c)}),{signal:t?.signal}),u=new Map,h=new Map;a.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=a.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,a,i){let o=this._getFeatureQueryWhereClause(t,e,s,a),r=new B({where:o,outFields:["*"],cacheHint:this._supportsCacheHint}),{features:l}=await N(t,r,i);return l}_parseFeatureObjects(t,e){let s=k();t.forEach(a=>{let i=(a?.feature).sourceLayer;x(s,i,()=>new f).add(a)});for(let[a,i]of s)this._sortFeatureObjectsByTitle(i),e.set(a,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,o)=>{let r=this._associationFeatures.get(o);r?i.forEach(l=>{r.find(c=>this._matchesGlobalFeature(l,c))||(i.remove(l),i.length||this._associationViewModels.delete(o))}):(i.removeAll(),this._associationViewModels.delete(o))});let{map:t,view:e,spatialReference:s,timeZone:a}=this;this._associationFeatures.forEach((i,o)=>{let r=this._associationViewModels.get(o)||new f;i?.filter(Boolean).forEach((l,c)=>{if(!r.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;r.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:a,graphic:u}),terminalName:h},c)}}),this._associationViewModels.set(o,r)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:a}=t,i=s.get(e)?.associatedNetworkSourceId,o=this._networkSourceIdsInUse.has(a);return i!=null&&i!==a||!o}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return I(`association-type-${t.type}`,p`<calcite-list-item .description=${E(t.description)} .label=${E(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,a=s?.associationsList??s?.noTitle??"";return I("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${a}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};L("arcgis-feature-utility-network-associations",T);return T},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/Query","popup/Feature",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{d as s}from"./LM56QFP5.js";import{a as f}from"./RRK7J2RX.js";import{a as n}from"./POKO37D3.js";import{a as g}from"./KP3AJBKW.js";import"./GFALET66.js";import{O as p,U as u,a as d,b as i}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([$])=>{var v=d`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}calcite-label{display:block}`,m=class extends p{constructor(){super(...arguments),this.scale="s",this.hideColorPicker=!1,this.hideInterval=!1}static{this.properties={options:0,scale:1,hideColorPicker:5,hideInterval:5,messages:0}}static{this.styles=v}render(){let{options:t,scale:l}=this,{color:r,interval:c}=t,a=this.messages?.discrete;return i`${n({hidden:this.hideInterval,children:i`<calcite-label .scale=${l}>${a?.intervalLabel}<calcite-select .label=${a?.intervalLabel??""} .scale=${l} @calciteSelectChange=${e=>{let b=e.target.value,h=Number.parseInt(b,10);Number.isFinite(h)&&(this.options.interval=h)}}>${f(I,e=>e,e=>i`<calcite-option .selected=${e===c} .value=${String(e)} .label=${C(e,g(this.el).t9nLocale)}></calcite-option>`)}</calcite-select></calcite-label>`})}${n({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${r} .label=${a?.colorLabel} @arcgisColorChanged=${e=>{this.options.color=e.detail}}></arcgis-color-select>`})}`}};function C(o,t){return new Intl.DurationFormat(t,{style:"long"}).format(L(o))}function L(o){let t=Math.floor(o/1e3),l=Math.floor(t/3600),r=Math.floor(t%3600/60),c=t%60;return{hours:l,minutes:r,seconds:c}}var I=new $([s(15,"minutes","milliseconds"),s(30,"minutes","milliseconds"),s(1,"hours","milliseconds"),s(2,"hours","milliseconds"),s(3,"hours","milliseconds")]);u("arcgis-shadow-cast-discrete-config",m);return m},"core/Collection")
2
+ import{d as s}from"./LM56QFP5.js";import{a as f}from"./GXVM7UPW.js";import{a as n}from"./POKO37D3.js";import{a as g}from"./BXKNMJRR.js";import"./IJQZON2Z.js";import{O as p,U as u,a as d,b as i}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([$])=>{var v=d`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}calcite-label{display:block}`,m=class extends p{constructor(){super(...arguments),this.scale="s",this.hideColorPicker=!1,this.hideInterval=!1}static{this.properties={options:0,scale:1,hideColorPicker:5,hideInterval:5,messages:0}}static{this.styles=v}render(){let{options:t,scale:l}=this,{color:r,interval:c}=t,a=this.messages?.discrete;return i`${n({hidden:this.hideInterval,children:i`<calcite-label .scale=${l}>${a?.intervalLabel}<calcite-select .label=${a?.intervalLabel??""} .scale=${l} @calciteSelectChange=${e=>{let b=e.target.value,h=Number.parseInt(b,10);Number.isFinite(h)&&(this.options.interval=h)}}>${f(I,e=>e,e=>i`<calcite-option .selected=${e===c} .value=${String(e)} .label=${C(e,g(this.el).t9nLocale)}></calcite-option>`)}</calcite-select></calcite-label>`})}${n({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${r} .label=${a?.colorLabel} @arcgisColorChanged=${e=>{this.options.color=e.detail}}></arcgis-color-select>`})}`}};function C(o,t){return new Intl.DurationFormat(t,{style:"long"}).format(L(o))}function L(o){let t=Math.floor(o/1e3),l=Math.floor(t/3600),r=Math.floor(t%3600/60),c=t%60;return{hours:l,minutes:r,seconds:c}}var I=new $([s(15,"minutes","milliseconds"),s(30,"minutes","milliseconds"),s(1,"hours","milliseconds"),s(2,"hours","milliseconds"),s(3,"hours","milliseconds")]);u("arcgis-shadow-cast-discrete-config",m);return m},"core/Collection")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import i from"./YHOPKV64.js";import{a as _}from"./N7SH7GMY.js";import{a as D}from"./JD74LG7K.js";import e from"./RWLNOF6V.js";import c from"./N24CODZ6.js";import{h as b}from"./6U7SFUIF.js";import"./KP3AJBKW.js";import a from"./5J4YSRUG.js";import{d as u}from"./GFALET66.js";import{M as d,N as g,O as w,P as h,R as f,U as y,a as v,b as o,x}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:I,when:C,watch:H},P,{property:p,subclass:M},,,,$])=>{var O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(i,e,t,a)=>{for(var s=a>1?void 0:a?L(e,t):e,n=i.length-1,c;n>=0;n--)(c=i[n])&&(s=(a?c(e,t,s):c(s))||s);return a&&s&&O(e,t,s),s},E=new EventTarget;function S(i,e,t){let a=!1,s=H(i,(n,c)=>{a||e(n,c)},t);return{remove(){s.remove()},pause(){a=!0},resume(){a=!1}}}var r=class extends P{constructor(i){super(i),this._viewpointHandle=null,this.addHandles(I(()=>E,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(i){this._set("autoCollapse",i),this._watchViewpoint()}set expanded(i){this._set("expanded",i),this.group&&i&&E.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(i)}get state(){return this.view?.ready?"ready":"disabled"}set view(i){this._get("view")!==i&&(this._set("view",i),i&&C(()=>i.ready,()=>{this.view===i&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(i){this._viewpointHandle&&(i?C(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let i="viewpoint";this.removeHandles(i),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let a=S(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(a,i),this._viewpointHandle=a}_collapse(){this.expanded=!1}};l([p({value:!1})],r.prototype,"autoCollapse",1);l([p({value:!1})],r.prototype,"expanded",1);l([p()],r.prototype,"group",2);l([p({readOnly:!0})],r.prototype,"state",1);l([p({value:null})],r.prototype,"view",1);r=l([M("map-components.expand.ExpandViewModel")],r);var j=v`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,k="chevrons-left",T="chevrons-right",z=$(r),m=class extends w{constructor(){super(...arguments),this.popoverEl=d(),this.messages=_({}),this.viewModel=z(this),this.toggleActionEl=d(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expanded=this.viewModel.expanded,this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=b()("expanded"),this.arcgisReady=x()}static{this.properties={expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:a,expandTooltip:s}=this;return(e?a||t.collapse:s||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return this.viewModel.view?.widthBreakpoint==="xsmall";default:return!1}}get expandIcon(){if(this._expandIcon)return this._expandIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??k}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??T}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>{this.popoverEl?.value?.reposition()},{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}render(){let{_displaySheet:e,toggleActionEl:t,expanded:a,label:s,topLayerDisabled:n}=this;return o`<div class=${h(u("root",D.widget))}>${this._renderToggle()}${e?o`<calcite-sheet class="sheet" height=l .label=${s??""} .topLayerDisabled=${n} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${s} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?o`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${s??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${a} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${n} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?o`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:a,collapseIcon:s}=this,n=e?s:a;return o`<calcite-action class=${h(u("action","icon",{"icon-flip":n===k||n===T}))} @click=${this.toggle} .text=${t} title=${t??f} .icon=${n} .scale=${this.visualScale} appearance=solid ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return o`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return o`<div class="content-container"><slot></slot></div>`}};y("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,e,i)
2
+ import i from"./ACMQRVHQ.js";import{a as _}from"./H47NPYUM.js";import{a as D}from"./JD74LG7K.js";import e from"./M2MJH2FX.js";import c from"./ZUXQKICJ.js";import{h as b}from"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import{d as u}from"./IJQZON2Z.js";import{M as d,N as g,O as w,P as h,R as f,U as y,a as v,b as o,x}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{on:I,when:C,watch:H},P,{property:p,subclass:M},,,,$])=>{var O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(i,e,t,a)=>{for(var s=a>1?void 0:a?L(e,t):e,n=i.length-1,c;n>=0;n--)(c=i[n])&&(s=(a?c(e,t,s):c(s))||s);return a&&s&&O(e,t,s),s},E=new EventTarget;function S(i,e,t){let a=!1,s=H(i,(n,c)=>{a||e(n,c)},t);return{remove(){s.remove()},pause(){a=!0},resume(){a=!1}}}var r=class extends P{constructor(i){super(i),this._viewpointHandle=null,this.addHandles(I(()=>E,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(i){this._set("autoCollapse",i),this._watchViewpoint()}set expanded(i){this._set("expanded",i),this.group&&i&&E.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(i)}get state(){return this.view?.ready?"ready":"disabled"}set view(i){this._get("view")!==i&&(this._set("view",i),i&&C(()=>i.ready,()=>{this.view===i&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(i){this._viewpointHandle&&(i?C(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let i="viewpoint";this.removeHandles(i),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let a=S(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(a,i),this._viewpointHandle=a}_collapse(){this.expanded=!1}};l([p({value:!1})],r.prototype,"autoCollapse",1);l([p({value:!1})],r.prototype,"expanded",1);l([p()],r.prototype,"group",2);l([p({readOnly:!0})],r.prototype,"state",1);l([p({value:null})],r.prototype,"view",1);r=l([M("map-components.expand.ExpandViewModel")],r);var j=v`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,k="chevrons-left",T="chevrons-right",z=$(r),m=class extends w{constructor(){super(...arguments),this.popoverEl=d(),this.messages=_({}),this.viewModel=z(this),this.toggleActionEl=d(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expanded=this.viewModel.expanded,this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=b()("expanded"),this.arcgisReady=x()}static{this.properties={expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:a,expandTooltip:s}=this;return(e?a||t.collapse:s||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return this.viewModel.view?.widthBreakpoint==="xsmall";default:return!1}}get expandIcon(){if(this._expandIcon)return this._expandIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??k}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??T}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>{this.popoverEl?.value?.reposition()},{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}render(){let{_displaySheet:e,toggleActionEl:t,expanded:a,label:s,topLayerDisabled:n}=this;return o`<div class=${h(u("root",D.widget))}>${this._renderToggle()}${e?o`<calcite-sheet class="sheet" height=l .label=${s??""} .topLayerDisabled=${n} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${s} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?o`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${s??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${a} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${n} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?o`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:a,collapseIcon:s}=this,n=e?s:a;return o`<calcite-action class=${h(u("action","icon",{"icon-flip":n===k||n===T}))} @click=${this.toggle} .text=${t} title=${t??f} .icon=${n} .scale=${this.visualScale} appearance=solid ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return o`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return o`<div class="content-container"><slot></slot></div>`}};y("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,e,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./CEUIFOR6.js";import{a as m}from"./N7SH7GMY.js";import d from"./N24CODZ6.js";import"./6U7SFUIF.js";import"./KP3AJBKW.js";import b from"./5J4YSRUG.js";import"./GFALET66.js";import{O as h,Q as n,U as g,a as r,b as a,c as l,p as c,x as o}from"./URMAKTOH.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getApplicationClipboard:f},u,,{a:p},{a:d,b:v}])=>{var y=r`.flex{display:flex}.flex-row{flex-direction:row}.justify-center{justify-content:center}.text-center{text-align:center}`,s=class extends h{constructor(){super(...arguments),this._messages=m(),this._hoverHightlightHandle=null,this.maxShowCount=100,this.hideTooltips=!1,this.view=p(this),this.arcgisReady=o()}static{this.properties={clipboard:32,maxShowCount:9,hideTooltips:5,view:0,referenceElement:1}}static{this.styles=y}get clipboard(){return f()}_removeClipboardItem(e){try{this._clearHighlightSelectedGraphic();let t=this.clipboard.items.filter(i=>i!==e);this.clipboard.setData(t.toArray())}catch{c("error",this,"Failed removing clipboard item")}}_highlightSelectedGraphicOnMap(e){if(this._clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new u({geometry:e.graphic.geometry,symbol:v(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHightlightHandle={remove:()=>{this.view.graphics.remove(t)}}}_clearHighlightSelectedGraphic(){this._hoverHightlightHandle&&this._hoverHightlightHandle.remove(),this._hoverHightlightHandle=null}render(){let e=this.clipboard.items.slice(0,100);return e.length===0?a`<div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${n({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${l`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData??""}</p></div>`:a`${e.length!==this.clipboard.items.length?a`<calcite-notice scale=s><div slot=message>${this._messages.tooManyClipboardItems??""}</div></calcite-notice>`:""}<calcite-list .label=${this._messages.clipboardContents??""}>${e.map(t=>t.type==="feature"&&t.layer?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-title slot=content .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-image><calcite-action slot=actions-end icon=x @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:t.type==="feature"&&!t.layer&&t.graphic?.geometry?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape .actualSymbol=${d(t.graphic.geometry.type)} slot=content-start .graphic=${t.graphic}></arcgis-feature-image><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=x @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:a`<calcite-list-item><calcite-icon slot=content-start scale=s icon=file-data></calcite-icon><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`)}</calcite-list>`}};g("arcgis-clipboard",s);return s},"applications/Components/clipboard","Graphic",b,d,e)
2
+ import e from"./CEUIFOR6.js";import{a as m}from"./H47NPYUM.js";import d from"./ZUXQKICJ.js";import"./JCTU3MST.js";import"./BXKNMJRR.js";import b from"./FT7ETWDM.js";import"./IJQZON2Z.js";import{O as h,Q as n,U as g,a as r,b as a,c as l,p as c,x as o}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getApplicationClipboard:f},u,,{a:p},{a:d,b:v}])=>{var y=r`.flex{display:flex}.flex-row{flex-direction:row}.justify-center{justify-content:center}.text-center{text-align:center}`,s=class extends h{constructor(){super(...arguments),this._messages=m(),this._hoverHightlightHandle=null,this.maxShowCount=100,this.hideTooltips=!1,this.view=p(this),this.arcgisReady=o()}static{this.properties={clipboard:32,maxShowCount:9,hideTooltips:5,view:0,referenceElement:1}}static{this.styles=y}get clipboard(){return f()}_removeClipboardItem(e){try{this._clearHighlightSelectedGraphic();let t=this.clipboard.items.filter(i=>i!==e);this.clipboard.setData(t.toArray())}catch{c("error",this,"Failed removing clipboard item")}}_highlightSelectedGraphicOnMap(e){if(this._clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new u({geometry:e.graphic.geometry,symbol:v(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHightlightHandle={remove:()=>{this.view.graphics.remove(t)}}}_clearHighlightSelectedGraphic(){this._hoverHightlightHandle&&this._hoverHightlightHandle.remove(),this._hoverHightlightHandle=null}render(){let e=this.clipboard.items.slice(0,100);return e.length===0?a`<div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${n({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${l`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData??""}</p></div>`:a`${e.length!==this.clipboard.items.length?a`<calcite-notice scale=s><div slot=message>${this._messages.tooManyClipboardItems??""}</div></calcite-notice>`:""}<calcite-list .label=${this._messages.clipboardContents??""}>${e.map(t=>t.type==="feature"&&t.layer?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-title slot=content .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${t.graphic} .layer=${t.layer}></arcgis-feature-image><calcite-action slot=actions-end icon=x @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:t.type==="feature"&&!t.layer&&t.graphic?.geometry?a`<calcite-list-item @pointerenter=${i=>{this._highlightSelectedGraphicOnMap(t),i.target.classList.add("hovering")}} @pointerleave=${i=>{i.target.classList.remove("hovering"),this._clearHighlightSelectedGraphic()}}><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape .actualSymbol=${d(t.graphic.geometry.type)} slot=content-start .graphic=${t.graphic}></arcgis-feature-image><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=x @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`:a`<calcite-list-item><calcite-icon slot=content-start scale=s icon=file-data></calcite-icon><span slot=content>${this._messages.clipboardDataItem??""}</span><calcite-action slot=actions-end icon=trash @click=${()=>{this._removeClipboardItem(t)}} .text=${this._messages.removeClipboardItem??""}></calcite-action></calcite-list-item>`)}</calcite-list>`}};g("arcgis-clipboard",s);return s},"applications/Components/clipboard","Graphic",b,d,e)