@arcgis/map-components 5.0.0-next.72 → 5.0.0-next.74

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 (411) hide show
  1. package/dist/cdn/{A4HDXQK4.js → 27KWN75D.js} +2 -2
  2. package/dist/cdn/{IO4ZJHH6.js → 2A6YHLIA.js} +2 -2
  3. package/dist/cdn/{IUEJN22Y.js → 2VUN7BGQ.js} +2 -2
  4. package/dist/cdn/{36O5VWLU.js → 2ZTT6CW2.js} +2 -2
  5. package/dist/cdn/{BM63ZBWL.js → 2ZX3DYQP.js} +2 -2
  6. package/dist/cdn/{ZGQNNJFV.js → 3DZQFJ7L.js} +2 -2
  7. package/dist/cdn/{BSATGGNF.js → 3IW7WHXC.js} +2 -2
  8. package/dist/cdn/{H5A7GYUL.js → 3JYTHQJ4.js} +2 -2
  9. package/dist/cdn/{XI2DZW4M.js → 3NZCSPL5.js} +2 -2
  10. package/dist/cdn/{GSKDFCVG.js → 3OF6ACZN.js} +2 -2
  11. package/dist/cdn/{ARLMSS5A.js → 3PSWAQ6T.js} +2 -2
  12. package/dist/cdn/{I4KQVULX.js → 3RQYULBC.js} +1 -1
  13. package/dist/cdn/{CK2KWYTE.js → 3VWHS3Q4.js} +2 -2
  14. package/dist/cdn/{JKTUQMUY.js → 3ZX7MWOC.js} +2 -2
  15. package/dist/cdn/{R2ESNEGW.js → 4B77KBHO.js} +2 -2
  16. package/dist/cdn/{7NQ5QTYW.js → 4DF37W5R.js} +2 -2
  17. package/dist/cdn/{X7RXIFT3.js → 4DI7YCKP.js} +2 -2
  18. package/dist/cdn/{BFYZKQUL.js → 4LE2VDIT.js} +1 -1
  19. package/dist/cdn/{4DYTZHM3.js → 4MCEAQ2J.js} +2 -2
  20. package/dist/cdn/{MKGXU7RL.js → 4Z6TVHB6.js} +2 -2
  21. package/dist/cdn/{CFZOWZP3.js → 537BJYH5.js} +2 -2
  22. package/dist/cdn/{Q5SGUY2L.js → 5CGGAWFS.js} +2 -2
  23. package/dist/cdn/{47KRCPV4.js → 5CUJYLFQ.js} +2 -2
  24. package/dist/cdn/{47ALUPNC.js → 5GDUSNQU.js} +2 -2
  25. package/dist/cdn/{QA3ALLY4.js → 5M5HJ4TM.js} +2 -2
  26. package/dist/cdn/{DDQVYCGW.js → 6AZF5DKH.js} +2 -2
  27. package/dist/cdn/{MJQWJNP4.js → 6COZ7Z6W.js} +2 -2
  28. package/dist/cdn/{V7JK5675.js → 6DDYZUEO.js} +2 -2
  29. package/dist/cdn/{EZIM4YAQ.js → 6FXWQELQ.js} +2 -2
  30. package/dist/cdn/{XMZ2Y23R.js → 6NG3GG2I.js} +2 -2
  31. package/dist/cdn/{DRNRJYXF.js → 6QBSNPIZ.js} +1 -1
  32. package/dist/cdn/{ZZSEDGH7.js → 6UJGPPR4.js} +2 -2
  33. package/dist/cdn/{PEFVNYKG.js → 7DYWPXVQ.js} +2 -2
  34. package/dist/cdn/{XS2IB3C6.js → 7EIOAX3S.js} +2 -2
  35. package/dist/cdn/{H73JCZ4G.js → 7HOOMPNF.js} +2 -2
  36. package/dist/cdn/{4DX2XYFJ.js → 7QFMK3KJ.js} +2 -2
  37. package/dist/cdn/{HIBKH376.js → 7TYLLQRG.js} +2 -2
  38. package/dist/cdn/{IDZMHDMW.js → 7XKGOXYC.js} +2 -2
  39. package/dist/cdn/{KG3P4PFB.js → 7YAAMNXH.js} +2 -2
  40. package/dist/cdn/{CAQSBU4E.js → 7YVS3HGV.js} +2 -2
  41. package/dist/cdn/{273DDENM.js → A3K7IYP5.js} +2 -2
  42. package/dist/cdn/{LQ6FXLRW.js → A6OTHXBP.js} +1 -1
  43. package/dist/cdn/{TU2JICSI.js → AALIPHGK.js} +2 -2
  44. package/dist/cdn/{WYMKN43C.js → ABFWLIKD.js} +1 -1
  45. package/dist/cdn/{Z35N4NPP.js → AKRKXKU2.js} +2 -2
  46. package/dist/cdn/{N25HGDS6.js → AO4IMPRI.js} +2 -2
  47. package/dist/cdn/{3Z6KVIFL.js → B2IEHJM6.js} +2 -2
  48. package/dist/cdn/{P5XJBRD4.js → B6DLO4M2.js} +2 -2
  49. package/dist/cdn/{TUJWDHGB.js → BG6ELJZV.js} +2 -2
  50. package/dist/cdn/{B7GLQ3OM.js → BHMJWOKY.js} +2 -2
  51. package/dist/cdn/{E3VVCZY7.js → BJLP3ZG2.js} +2 -2
  52. package/dist/cdn/BKRAWX7I.js +4 -0
  53. package/dist/cdn/{TVUKNR55.js → BNAZ52ZY.js} +2 -2
  54. package/dist/cdn/{7RK4JLA7.js → BNENJTVP.js} +2 -2
  55. package/dist/cdn/{HFIHNEXI.js → BOG7FLVY.js} +2 -2
  56. package/dist/cdn/{WAORN4NC.js → BPEEDYQF.js} +2 -2
  57. package/dist/cdn/{2KAWYR5E.js → BU6CV42J.js} +2 -2
  58. package/dist/cdn/{4FPTVRDP.js → BUUXPADU.js} +2 -2
  59. package/dist/cdn/{NR4LWSOF.js → C5U4BVSL.js} +2 -2
  60. package/dist/cdn/{ASRXYO6Q.js → CKVB2AWC.js} +2 -2
  61. package/dist/cdn/{AD3HHRRD.js → CO3OCHVU.js} +2 -2
  62. package/dist/cdn/{JKGTDVFT.js → COXSPM4M.js} +2 -2
  63. package/dist/cdn/{W4TBK532.js → CV67UXAI.js} +2 -2
  64. package/dist/cdn/{Z7FTHDD4.js → D3WDXBYR.js} +2 -2
  65. package/dist/cdn/{4FQOHHLU.js → DGTIWZ47.js} +2 -2
  66. package/dist/cdn/{KX72QAWM.js → DGVSKPUU.js} +2 -2
  67. package/dist/cdn/{LG3VVADA.js → DTQA5HWZ.js} +2 -2
  68. package/dist/cdn/{TLMWUXBT.js → DXE2IQKD.js} +2 -2
  69. package/dist/cdn/{VZC6WAYC.js → E23RXNZZ.js} +2 -2
  70. package/dist/cdn/{7HPWDU66.js → EE5A6AZJ.js} +2 -2
  71. package/dist/cdn/{V7EZCS6B.js → EMAV4DMH.js} +2 -2
  72. package/dist/cdn/{FCOSOKYR.js → EZKJUZIN.js} +2 -2
  73. package/dist/cdn/{O3JFHL5C.js → FGVFRART.js} +2 -2
  74. package/dist/cdn/{EOE7JNGS.js → FGX3BHFN.js} +2 -2
  75. package/dist/cdn/{JZJXD3I5.js → FPIDDW3D.js} +2 -2
  76. package/dist/cdn/{XGPNC3HE.js → FYRETVNH.js} +1 -1
  77. package/dist/cdn/{DDAYMQHX.js → FZKI3ZM3.js} +2 -2
  78. package/dist/cdn/{VIW2MBV2.js → G2KUFG7X.js} +2 -2
  79. package/dist/cdn/{WXWITI3M.js → G5BCBRFV.js} +2 -2
  80. package/dist/cdn/GEGQMSWW.js +4 -0
  81. package/dist/cdn/{3CSQWYCV.js → GJWELHWC.js} +2 -2
  82. package/dist/cdn/{X32U4A7S.js → GRDHMTE2.js} +2 -2
  83. package/dist/cdn/{K6AHBRBS.js → GUDXFYXU.js} +2 -2
  84. package/dist/cdn/{JVQJU4JA.js → GZNQ5VK4.js} +2 -2
  85. package/dist/cdn/{6GGNOXM2.js → H4TDS54F.js} +2 -2
  86. package/dist/cdn/{45BZLBZK.js → H64ZYTVM.js} +2 -2
  87. package/dist/cdn/{6Z6GVGI4.js → HLAC5KFK.js} +2 -2
  88. package/dist/cdn/{LB66ZX5X.js → HLGPPD6M.js} +2 -2
  89. package/dist/cdn/{HJSLALF4.js → HM4XGYUV.js} +2 -2
  90. package/dist/cdn/{ETNE3OKS.js → HPPXMC54.js} +2 -2
  91. package/dist/cdn/{2WABMQI5.js → HR3BVOEZ.js} +2 -2
  92. package/dist/cdn/{NTULDHTP.js → HSD3ODKK.js} +2 -2
  93. package/dist/cdn/{BONHHF4F.js → HVEST67Y.js} +2 -2
  94. package/dist/cdn/{CLXPCIZH.js → HXC7EIB5.js} +2 -2
  95. package/dist/cdn/{QTI43I7T.js → I2DEDEYO.js} +2 -2
  96. package/dist/cdn/{QYRW2LJY.js → I5VGEUJP.js} +3 -3
  97. package/dist/cdn/{KRVIAP5U.js → I6YC7Z6E.js} +2 -2
  98. package/dist/cdn/{SRDGCMOT.js → ICA5E6TW.js} +2 -2
  99. package/dist/cdn/{GTF7HZOV.js → IDU7W3W4.js} +2 -2
  100. package/dist/cdn/{AATBDOAO.js → IF4Z2KLQ.js} +2 -2
  101. package/dist/cdn/{ZRTFQRKT.js → IHC3TWWM.js} +2 -2
  102. package/dist/cdn/{MZDUXJJ2.js → IIGDFTMO.js} +2 -2
  103. package/dist/cdn/{JYWZVCZG.js → IKOKEBCZ.js} +2 -2
  104. package/dist/cdn/{2G72FOQB.js → ISPVS6QA.js} +2 -2
  105. package/dist/cdn/{S2RCJ3CM.js → IUS775ZG.js} +2 -2
  106. package/dist/cdn/{GIHQBWOE.js → IW7O4XMK.js} +2 -2
  107. package/dist/cdn/{7KLA4JKZ.js → IWFAZAJW.js} +2 -2
  108. package/dist/cdn/{CQ6SZF62.js → IXQX5TRT.js} +1 -1
  109. package/dist/cdn/{Z5K5CKDE.js → IYZNMM2T.js} +2 -2
  110. package/dist/cdn/{UV55Z7IA.js → J2ESZM3T.js} +2 -2
  111. package/dist/cdn/{MOC26MRF.js → J7VK6U5H.js} +2 -2
  112. package/dist/cdn/{55J7LME5.js → JLGXPCJP.js} +2 -2
  113. package/dist/cdn/{XRBPATZD.js → JSO4R67M.js} +2 -2
  114. package/dist/cdn/{ZUBRJ3ZN.js → JSTXLMZB.js} +2 -2
  115. package/dist/cdn/{G3Y2PD3W.js → JT5KXTTL.js} +2 -2
  116. package/dist/cdn/{K65EOQJP.js → KDLFSWPT.js} +2 -2
  117. package/dist/cdn/{DWL5HBBY.js → KFDCFMDV.js} +2 -2
  118. package/dist/cdn/{LOALMM2V.js → KI4DVFSW.js} +2 -2
  119. package/dist/cdn/{PLNRIL3R.js → KIJXFKBE.js} +2 -2
  120. package/dist/cdn/{MJ4FDUPX.js → KPXBDT5F.js} +2 -2
  121. package/dist/cdn/{BJTB6Z7D.js → KQH5OF3D.js} +1 -1
  122. package/dist/cdn/{XYNLPAKL.js → L4HLJOTU.js} +2 -2
  123. package/dist/cdn/{N77SN7OV.js → L67EBUST.js} +2 -2
  124. package/dist/cdn/{K4CAAZPB.js → L6BYDVRS.js} +2 -2
  125. package/dist/cdn/{ORGZX35M.js → LAOWX6IB.js} +2 -2
  126. package/dist/cdn/{ZRO2XQWQ.js → LBNG4WFM.js} +2 -2
  127. package/dist/cdn/{MFQZPJ4O.js → LNWWL5YV.js} +2 -2
  128. package/dist/cdn/{OGJPLGAN.js → LPWF4YQF.js} +1 -1
  129. package/dist/cdn/{ZWOO2C25.js → LSVKBCIE.js} +2 -2
  130. package/dist/cdn/{ULIHUNZH.js → LW7P2MCJ.js} +2 -2
  131. package/dist/cdn/{DHKWSWTU.js → LWMJIWAY.js} +2 -2
  132. package/dist/cdn/{DXTMEY6E.js → MERHEQOS.js} +2 -2
  133. package/dist/cdn/{XKYQT7GZ.js → MFGT6CGN.js} +2 -2
  134. package/dist/cdn/{MK3XZ6ZH.js → MHTGOWGB.js} +2 -2
  135. package/dist/cdn/{U3XUSGDP.js → MJGRJIWF.js} +2 -2
  136. package/dist/cdn/{VIRWCFF7.js → MJS46PBO.js} +2 -2
  137. package/dist/cdn/MSBBWAMV.js +4 -0
  138. package/dist/cdn/{BZJEZSHZ.js → MYUHRVDU.js} +2 -2
  139. package/dist/cdn/{E32KBITG.js → N2NCJGWM.js} +2 -2
  140. package/dist/cdn/{WUNSXNX7.js → N2NKXDPC.js} +2 -2
  141. package/dist/cdn/{ZFFLYFOO.js → N3Y4WR6A.js} +2 -2
  142. package/dist/cdn/{R2PINTB7.js → N4Z4SQKW.js} +2 -2
  143. package/dist/cdn/{N43GEBCB.js → NA37NZS2.js} +1 -1
  144. package/dist/cdn/{YZP4RUT5.js → NB4XQFNK.js} +2 -2
  145. package/dist/cdn/{BGLXJ2UK.js → NDZ6IW7W.js} +2 -2
  146. package/dist/cdn/{ULDTQK7Z.js → NO54E2TY.js} +2 -2
  147. package/dist/cdn/{YNVLFJDY.js → NOUHKHGG.js} +2 -2
  148. package/dist/cdn/{4ICWN7VF.js → NR3UNOZP.js} +2 -2
  149. package/dist/cdn/{MYK66Y2Z.js → O26J4GCS.js} +2 -2
  150. package/dist/cdn/{RWV3GDPZ.js → O6KK4XHY.js} +2 -2
  151. package/dist/cdn/{IVYBSY6S.js → OAAIPJBU.js} +2 -2
  152. package/dist/cdn/{J3VROTKZ.js → OIPXVQ6M.js} +2 -2
  153. package/dist/cdn/{LJQQAIUW.js → OM6TMVGI.js} +2 -2
  154. package/dist/cdn/{7USEHAUK.js → OOAU4ENG.js} +2 -2
  155. package/dist/cdn/{MEDCOUQB.js → OPWK4HDX.js} +2 -2
  156. package/dist/cdn/{CIFANJTD.js → P275IGZI.js} +2 -2
  157. package/dist/cdn/{B7SIC5XJ.js → P2PM4LXN.js} +2 -2
  158. package/dist/cdn/{3XJ6KOZ2.js → P3IYOCY7.js} +2 -2
  159. package/dist/cdn/{X7NV5KEK.js → P5JXOHDM.js} +2 -2
  160. package/dist/cdn/{A5TVGBYZ.js → P643LDP4.js} +2 -2
  161. package/dist/cdn/{YX57LFO4.js → P6P6RJDN.js} +2 -2
  162. package/dist/cdn/{63LVG7GB.js → PAKPT6XU.js} +2 -2
  163. package/dist/cdn/{RFJT5SVK.js → PAXM2SHT.js} +2 -2
  164. package/dist/cdn/{CQP5OKAV.js → PDPFRMX3.js} +2 -2
  165. package/dist/cdn/{B7UN5VEX.js → PIQYGVR2.js} +2 -2
  166. package/dist/cdn/{XG54UTOU.js → PKZDY23E.js} +2 -2
  167. package/dist/cdn/{V3LKOF2A.js → PLXIXCZM.js} +2 -2
  168. package/dist/cdn/{FBTZPVCD.js → PV7QSHNQ.js} +2 -2
  169. package/dist/cdn/{K4AIYWL4.js → PYFRZLS5.js} +2 -2
  170. package/dist/cdn/{L5POG2UZ.js → PZP7Y6T3.js} +2 -2
  171. package/dist/cdn/{CA5B56QA.js → QH6SJ3PH.js} +2 -2
  172. package/dist/cdn/{XLNMW74P.js → QHMTAFLD.js} +2 -2
  173. package/dist/cdn/{TFLNCYRZ.js → QKJ5MH2R.js} +2 -2
  174. package/dist/cdn/{7JKCKNDC.js → QYMRNJDY.js} +2 -2
  175. package/dist/cdn/{J5GRSJLU.js → R34MG2WM.js} +2 -2
  176. package/dist/cdn/{CXWADRKQ.js → R7LHCMII.js} +2 -2
  177. package/dist/cdn/{QIE4FYAI.js → RHC5P7HA.js} +2 -2
  178. package/dist/cdn/{QI2TM23X.js → RKBLBWOY.js} +2 -2
  179. package/dist/cdn/{FA2ESCZY.js → RKKB2MXO.js} +2 -2
  180. package/dist/cdn/{64Y7VHRK.js → RLMCCWBY.js} +2 -2
  181. package/dist/cdn/{TYDYLRCA.js → RMFVDKHF.js} +2 -2
  182. package/dist/cdn/{MBE3DXZ4.js → RMT2OEOR.js} +2 -2
  183. package/dist/cdn/{VQAVTJ2Q.js → RSGRN7NZ.js} +2 -2
  184. package/dist/cdn/{VNHXVAK5.js → RTU63JZJ.js} +2 -2
  185. package/dist/cdn/{UNKTAFAX.js → RX7GE72H.js} +2 -2
  186. package/dist/cdn/{4TJZESD6.js → RXMMGR4D.js} +1 -1
  187. package/dist/cdn/{JCB2KQV5.js → S2ICDS3X.js} +2 -2
  188. package/dist/cdn/{HK6Q6BCM.js → STLSM4ZC.js} +2 -2
  189. package/dist/cdn/{NS7U5CD6.js → TA53TCA3.js} +2 -2
  190. package/dist/cdn/{DIK4YMDS.js → TBPHTB3D.js} +2 -2
  191. package/dist/cdn/{OBB73LYP.js → TLOAWHHZ.js} +2 -2
  192. package/dist/cdn/{W6YJDCKX.js → TMJNJM4O.js} +1 -1
  193. package/dist/cdn/{TAX3N6JS.js → TPLIV6DK.js} +2 -2
  194. package/dist/cdn/{E4MXFBJB.js → U2KN5LBF.js} +2 -2
  195. package/dist/cdn/{WGCUHRHY.js → UEFHUASR.js} +2 -2
  196. package/dist/cdn/{ZRCHQ3XZ.js → UORRXNM3.js} +2 -2
  197. package/dist/cdn/{TBIXOTO3.js → UQYCC3AI.js} +2 -2
  198. package/dist/cdn/UR4ASUVJ.js +4 -0
  199. package/dist/cdn/{5WANHF7F.js → URUKTHIO.js} +2 -2
  200. package/dist/cdn/{BV5SZJAF.js → VE3FGYAI.js} +2 -2
  201. package/dist/cdn/{6HH6JSLT.js → VF3MTEL6.js} +2 -2
  202. package/dist/cdn/{WUJW7C6H.js → VNZGBNGT.js} +2 -2
  203. package/dist/cdn/{TWD2FYIY.js → VPIXCNPZ.js} +2 -2
  204. package/dist/cdn/{64W2JE4R.js → VQ5HT77E.js} +2 -2
  205. package/dist/cdn/{F434Q6QV.js → VRQF3GKJ.js} +2 -2
  206. package/dist/cdn/{HJ6XPSOM.js → VVR6OAMP.js} +2 -2
  207. package/dist/cdn/{IA7GKY4R.js → VWJRY4FT.js} +1 -1
  208. package/dist/cdn/{HLSQJLXK.js → VYO5CWDY.js} +2 -2
  209. package/dist/cdn/{NS545YK3.js → W53VHA2S.js} +2 -2
  210. package/dist/cdn/{37FJ47YA.js → WHBZWLXQ.js} +1 -1
  211. package/dist/cdn/{7Z6W2LMY.js → WKQWN55G.js} +2 -2
  212. package/dist/cdn/{6F7QJWYH.js → WLQZYZHX.js} +2 -2
  213. package/dist/cdn/{BONSASDC.js → WUJPC3RA.js} +2 -2
  214. package/dist/cdn/{TWIGZ4WB.js → WVYFQT7Z.js} +2 -2
  215. package/dist/cdn/{WX3SIFLD.js → WZ4E7NGE.js} +2 -2
  216. package/dist/cdn/{UZXFVEPD.js → WZANQIX3.js} +2 -2
  217. package/dist/cdn/{6AQIHQKS.js → XGALDNNH.js} +2 -2
  218. package/dist/cdn/{O5PCHKIM.js → XLT3SNO4.js} +2 -2
  219. package/dist/cdn/{MGRGH4WU.js → XNFEBPQP.js} +2 -2
  220. package/dist/cdn/{6ESNWMSE.js → XNW5OHDR.js} +2 -2
  221. package/dist/cdn/{DTXREBKJ.js → Y2MCFATG.js} +2 -2
  222. package/dist/cdn/{X6UV76LW.js → Y4OEN7YU.js} +2 -2
  223. package/dist/cdn/{XUCLKFN4.js → YFTQDZDQ.js} +2 -2
  224. package/dist/cdn/{TZLXG5KF.js → YNOWHCNW.js} +2 -2
  225. package/dist/cdn/{JBH7Q2NX.js → YQQJQRH5.js} +2 -2
  226. package/dist/cdn/{674IABNG.js → YX4WCZRD.js} +2 -2
  227. package/dist/cdn/{KE32M4ZL.js → YYPZW2CO.js} +2 -2
  228. package/dist/cdn/{3PRWBJR4.js → ZFD4AUUD.js} +2 -2
  229. package/dist/cdn/{YJPRGBUU.js → ZFDUWKLT.js} +2 -2
  230. package/dist/cdn/{QDUJUP36.js → ZKWCG7RR.js} +1 -1
  231. package/dist/cdn/{2JEK54GF.js → ZRUYG7UK.js} +1 -1
  232. package/dist/cdn/{IL5IXBOC.js → ZXAK3REF.js} +1 -1
  233. package/dist/cdn/{XWXJEP5M.js → ZZQ6BZK5.js} +2 -2
  234. package/dist/cdn/index.js +2 -2
  235. package/dist/chunks/AnalysisViewModel.js +1 -1
  236. package/dist/chunks/action-utils.js +1 -1
  237. package/dist/chunks/async-utils.js +1 -1
  238. package/dist/chunks/basemap-gallery-resources.js +1 -1
  239. package/dist/chunks/chart-utils.js +1 -1
  240. package/dist/chunks/chartCommon.js +1 -1
  241. package/dist/chunks/component-utils.js +1 -1
  242. package/dist/chunks/constants.js +1 -1
  243. package/dist/chunks/createCloseEvent.js +1 -1
  244. package/dist/chunks/esri-main.js +1 -1
  245. package/dist/chunks/feature-utils.js +1 -1
  246. package/dist/chunks/globalCss.js +1 -1
  247. package/dist/chunks/handle.js +1 -1
  248. package/dist/chunks/heading.js +1 -1
  249. package/dist/chunks/layer-list.js +1 -1
  250. package/dist/chunks/legacyIcon.js +1 -1
  251. package/dist/chunks/maybe.js +1 -1
  252. package/dist/chunks/measurementUtils.js +1 -1
  253. package/dist/chunks/runtime.js +1 -1
  254. package/dist/chunks/screenLocation.js +1 -1
  255. package/dist/chunks/slots.js +1 -1
  256. package/dist/chunks/svgUtils.js +1 -1
  257. package/dist/chunks/time-utils.js +1 -1
  258. package/dist/chunks/univariateUtils.js +1 -1
  259. package/dist/chunks/useArcgisViewReadyError.js +1 -1
  260. package/dist/chunks/useHandles.js +1 -1
  261. package/dist/chunks/useT9n.js +1 -1
  262. package/dist/chunks/useView.js +1 -1
  263. package/dist/chunks/useViewModel.js +1 -1
  264. package/dist/chunks/useWidget.js +1 -1
  265. package/dist/chunks/utils.js +1 -1
  266. package/dist/chunks/utils2.js +1 -1
  267. package/dist/chunks/visible-element.js +1 -1
  268. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  269. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  270. package/dist/components/arcgis-attachments/customElement.js +1 -1
  271. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  272. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  273. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  274. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  275. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  276. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  277. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  278. package/dist/components/arcgis-color-select/customElement.js +1 -1
  279. package/dist/components/arcgis-compass/customElement.js +1 -1
  280. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  281. package/dist/components/arcgis-daylight/customElement.js +1 -1
  282. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  283. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  284. package/dist/components/arcgis-directions/customElement.js +1 -1
  285. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  286. package/dist/components/arcgis-editor/customElement.js +1 -1
  287. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  288. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  289. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  290. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  291. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  292. package/dist/components/arcgis-expand/customElement.js +1 -1
  293. package/dist/components/arcgis-feature/customElement.js +1 -1
  294. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  295. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  296. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  297. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  298. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  299. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  300. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  301. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  302. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  303. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  304. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
  305. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
  306. package/dist/components/arcgis-features/customElement.js +1 -1
  307. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  308. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  309. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  310. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  311. package/dist/components/arcgis-home/customElement.js +1 -1
  312. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  313. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  314. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  315. package/dist/components/arcgis-legend/customElement.js +1 -1
  316. package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
  317. package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
  318. package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
  319. package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
  320. package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
  321. package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
  322. package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
  323. package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
  324. package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
  325. package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
  326. package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
  327. package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
  328. package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
  329. package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
  330. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  331. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  332. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  333. package/dist/components/arcgis-locate/customElement.js +1 -1
  334. package/dist/components/arcgis-map/customElement.js +1 -1
  335. package/dist/components/arcgis-measurement/customElement.js +1 -1
  336. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  337. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  338. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  339. package/dist/components/arcgis-placement/customElement.js +1 -1
  340. package/dist/components/arcgis-popup/customElement.js +1 -1
  341. package/dist/components/arcgis-presentation/customElement.js +1 -1
  342. package/dist/components/arcgis-print/customElement.js +1 -1
  343. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  344. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  345. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  346. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  347. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  348. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  349. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  350. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  351. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  352. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  353. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  354. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  355. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  356. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  357. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  358. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  359. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  360. package/dist/components/arcgis-scene/customElement.js +1 -1
  361. package/dist/components/arcgis-search/customElement.js +1 -1
  362. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  363. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  364. package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
  365. package/dist/components/arcgis-shadow-cast-duration-config/customElement.js +1 -1
  366. package/dist/components/arcgis-shadow-cast-threshold-config/customElement.js +1 -1
  367. package/dist/components/arcgis-sketch/customElement.js +1 -1
  368. package/dist/components/arcgis-slice/customElement.js +1 -1
  369. package/dist/components/arcgis-spinner/customElement.js +1 -1
  370. package/dist/components/arcgis-swipe/customElement.js +1 -1
  371. package/dist/components/arcgis-table-list/customElement.js +1 -1
  372. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  373. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  374. package/dist/components/arcgis-track/customElement.js +1 -1
  375. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  376. package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
  377. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  378. package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
  379. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  380. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
  381. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
  382. package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
  383. package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
  384. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  385. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  386. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  387. package/dist/components/arcgis-version-management/customElement.js +1 -1
  388. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  389. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  390. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  391. package/dist/components/arcgis-video/customElement.js +1 -1
  392. package/dist/components/arcgis-video-player/customElement.js +1 -1
  393. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  394. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  395. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  396. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  397. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  398. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  399. package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
  400. package/dist/components/arcgis-weather/customElement.js +1 -1
  401. package/dist/components/arcgis-zoom/customElement.js +1 -1
  402. package/dist/docs/api.json +2 -2
  403. package/dist/docs/docs.json +2 -2
  404. package/dist/docs/web-types.json +1 -1
  405. package/dist/index.js +1 -1
  406. package/dist/loader.js +1 -1
  407. package/package.json +3 -3
  408. package/dist/cdn/HOWATBOT.js +0 -4
  409. package/dist/cdn/LJGLWTDU.js +0 -4
  410. package/dist/cdn/UVIQNWZT.js +0 -4
  411. package/dist/cdn/YQFNKKZS.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import"./DRNRJYXF.js";var r={_decimalSeparator:",",_thousandSeparator:"\xA0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - dd. MMM yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - dd. MMM yyyy",_date_day:"dd. MMM",_date_day_full:"dd. MMM yyyy",_date_week:"ww",_date_week_full:"dd. MMM yyyy",_date_month:"MMM",_date_month_full:"MMM yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"e.Kr.",_era_bc:"f.Kr.",A:"a",P:"p",AM:"a.m.",PM:"p.m.","A.M.":"a.m.","P.M.":"p.m.",January:"januar",February:"februar",March:"mars",April:"april",May:"mai",June:"juni",July:"juli",August:"august",September:"september",October:"oktober",November:"november",December:"desember",Jan:"jan.",Feb:"feb.",Mar:"mar.",Apr:"apr.","May(short)":"mai",Jun:"jun.",Jul:"jul.",Aug:"aug.",Sep:"sep.",Oct:"okt.",Nov:"nov.",Dec:"des.",Sunday:"s\xF8ndag",Monday:"mandag",Tuesday:"tirsdag",Wednesday:"onsdag",Thursday:"torsdag",Friday:"fredag",Saturday:"l\xF8rdag",Sun:"s\xF8n.",Mon:"man.",Tue:"tir.",Wed:"ons.",Thu:"tor.",Fri:"fre.",Sat:"l\xF8r.",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"Zoom",Play:"Spill av",Stop:"Stopp",Legend:"Tegnforklaring","Press ENTER to toggle":"",Loading:"Laster inn",Home:"Hjem",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Skriv ut",Image:"Bilde",Data:"Data",Print:"Skriv ut","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Fra %1 til %2","From %1":"Fra %1","To %1":"Til %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
3
+ v5.0.0-next.74 */
4
+ import"./6QBSNPIZ.js";var r={_decimalSeparator:",",_thousandSeparator:"\xA0",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - dd. MMM yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - dd. MMM yyyy",_date_day:"dd. MMM",_date_day_full:"dd. MMM yyyy",_date_week:"ww",_date_week_full:"dd. MMM yyyy",_date_month:"MMM",_date_month_full:"MMM yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"e.Kr.",_era_bc:"f.Kr.",A:"a",P:"p",AM:"a.m.",PM:"p.m.","A.M.":"a.m.","P.M.":"p.m.",January:"januar",February:"februar",March:"mars",April:"april",May:"mai",June:"juni",July:"juli",August:"august",September:"september",October:"oktober",November:"november",December:"desember",Jan:"jan.",Feb:"feb.",Mar:"mar.",Apr:"apr.","May(short)":"mai",Jun:"jun.",Jul:"jul.",Aug:"aug.",Sep:"sep.",Oct:"okt.",Nov:"nov.",Dec:"des.",Sunday:"s\xF8ndag",Monday:"mandag",Tuesday:"tirsdag",Wednesday:"onsdag",Thursday:"torsdag",Friday:"fredag",Saturday:"l\xF8rdag",Sun:"s\xF8n.",Mon:"man.",Tue:"tir.",Wed:"ons.",Thu:"tor.",Fri:"fre.",Sat:"l\xF8r.",_dateOrd:function(_){let e="th";if(_<11||_>13)switch(_%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"Zoom",Play:"Spill av",Stop:"Stopp",Legend:"Tegnforklaring","Press ENTER to toggle":"",Loading:"Laster inn",Home:"Hjem",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"Skriv ut",Image:"Bilde",Data:"Data",Print:"Skriv ut","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"Fra %1 til %2","From %1":"Fra %1","To %1":"Til %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{r as default};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{a as _}from"./DTXREBKJ.js";import"./E3VVCZY7.js";import"./RWV3GDPZ.js";import"./OGJPLGAN.js";import{G as m,H as y,I as p,O as f,a as g,b as a,s as d}from"./WYMKN43C.js";import"./DRNRJYXF.js";export default $arcgis.t(([{queryAllJSON:$},w])=>{var v=g`:host{max-height:calc(100vh - 150px);min-height:300px}#results-list,#features-list{min-height:300px}.results-heading{display:flex;flex-direction:column;padding:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,c="map-components:arcgis-utility-network-trace-results",u=class extends p{constructor(){super(...arguments),this._messages=_({blocking:!0}),this._elementsWithoutLayer=[],this._featuresComponentRef=m(),this._layerIdToFeatures=new Map,this._layerIdToLayer=new Map,this._subtypeCodeToFeatures=new Map,this._sourceIdToElements=new Map,this._unLayers=[],this._comapreByFeatureTitle=(e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0}),this._compareByLayerTitle=([,e],[,t])=>{let s=e[0].feature.layer,i=t[0].feature.layer,r=s?.title??"",n=i?.title??"";return r.localeCompare(n,void 0,{numeric:!0})},this._queryFeaturesOnLayer=async([e,t])=>{let s=this.utilityNetwork?.getLayerIdBySourceId(e),i=this._getLayerByLayerId(s);if(s==null||!i){this._elementsWithoutLayer.push(...t);return}let r=i.createQuery();r.gdbVersion=this.utilityNetwork?.gdbVersion,r.objectIds=t.map(l=>l.objectId),r.outFields=["*"];let{features:n}=w.fromJSON(await $(i,r)),h=await Promise.all(n.map(async l=>{l.layer=i.type==="subtype-group"?i.findSublayerForFeature(l):i;let o=l.layer;if(o&&"getFeatureTitle"in o){let L=await o.getFeatureTitle(l)||this._getFeatureTitle(l);return{feature:l,label:L}}return{feature:l,label:this._getFeatureTitle(l)}}));i.type==="subtype-group"?h.forEach(l=>this._addOrCreateMapValue(this._subtypeCodeToFeatures,l.feature.layer.subtypeCode,l)):this._layerIdToFeatures.set(s,h)},this.featuresFromSelectedLayer=[],this.isElementsSelected=!1,this.layers=[],this.state="ready",this.arcgisSelectedResultTypeChange=d(),this.arcgisSelectedLayerChange=d(),this._renderElementsListItem=e=>a`<calcite-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${()=>this.isElementsSelected=!0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${e.elements.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`,this._renderLayerListItem=([,e])=>{if(!e.length)return null;let t=e[0].feature.layer,s=t?.title||this._messages.unknown;return a`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this._setSelectedLayerAndFeatures(t)}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end>${e.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`},this._renderFeatureListItem=e=>{let{feature:t,label:s}=e;return a`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this.selectedFeature=t}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`}}static{this.properties={featuresFromSelectedLayer:0,isElementsSelected:5,layers:0,messageOverrides:0,referenceElement:1,selectedFeature:0,selectedLayer:0,state:1,traceConfigTitle:1,traceResult:0,utilityNetwork:0,view:0}}static{this.styles=v}load(){this._setSourceIdToElements(),this._loadDependencies().then(()=>this._queryTraceResultsFeatures()).finally(()=>this.state="ready")}loaded(){this.utilityNetwork||console.warn(`${c} was rendered without the required \`utilityNetwork\` property.`),this.layers.length===0&&console.warn(`${c} was rendered without any layers set for the \`layers\` property.`),this.view||console.warn(`${c} was rendered without the required \`view\` property.`)}willUpdate(e){e.has("isElementsSelected")&&this.arcgisSelectedResultTypeChange.emit(),e.has("selectedLayer")&&this.arcgisSelectedLayerChange.emit(),e.has("traceResult")&&(this.isElementsSelected=!1),(e.has("layers")||e.has("utilityNetwork"))&&this._loadDependencies()}_addOrCreateMapValue(e,t,s){let i=e.get(t);i==null?e.set(t,[s]):i.push(s)}_getFeatureTitle(e){let t=e.attributes,s=e.layer;if(!t||!s)return"";let i="displayField"in s?s.displayField:null,r=i!=null?t[i]:null,n=e.getObjectId()?.toString();return r?.toString()||n||this._messages.unknown}_getLayerByLayerId(e){if(e==null)return;let{_layerIdToLayer:t,_unLayers:s}=this;if(t.get(e))return t.get(e);let i=s.find(r=>"layerId"in r&&r.layerId===e);return i&&t.set(e,i),i}async _loadDependencies(){let{layers:e,utilityNetwork:t}=this;if(!t)return;t.loaded||(this.state="loading",await t.load()),this._unLayers=e.filter(i=>t.isUtilityLayer(i));let s=this._unLayers.filter(i=>!i.loaded).map(i=>i.load());s.length>0&&(this.state="loading",await Promise.allSettled(s))}async _queryTraceResultsFeatures(){let e=Array.from(this._sourceIdToElements.entries());e.length>0&&(this.state="loading");let t=e.map(this._queryFeaturesOnLayer);(await Promise.allSettled(t)).forEach((s,i)=>{if(s.status==="rejected"){let[r]=e[i];console.error(`${c}: Failed to query features for source ${r}:`,s.reason)}})}_setSelectedLayerAndFeatures(e){let t;if(!e)t=[];else if(e.type==="subtype-sublayer"){let{subtypeCode:s}=e;t=this._subtypeCodeToFeatures.get(s)??[]}else{let{layerId:s}=e;t=this._layerIdToFeatures.get(s)??[]}this.featuresFromSelectedLayer=t.sort(this._comapreByFeatureTitle),this.selectedLayer=e}_setSourceIdToElements(){this.traceResult?.elements?.forEach(e=>this._addOrCreateMapValue(this._sourceIdToElements,e.networkSourceId,e))}render(){let{traceResult:e}=this;if(e){if(!e.elements?.length&&!e.globalFunctionResults?.length)return a`<div>${this._renderTraceResultsHeading()}${this._renderNoResultsLanding()}</div>`}else return a`<div>${this._renderTraceResultsHeading()}${this._renderNoTraceLanding()}</div>`;if(this.state==="loading")return a`<calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader>`;if(this.selectedFeature){let r=this._featuresComponentRef.value,n=r?.selectedFeature?[r.selectedFeature]:[this.selectedFeature];return a`<arcgis-features .referenceElement=${this.referenceElement} .features=${n} .view=${this.view} visible @arcgisClose=${()=>this.selectedFeature=void 0} ${y(this._featuresComponentRef)}></arcgis-features>`}let{elements:t,globalFunctionResults:s}=e,i=t&&t.length>0&&(!s||s.length===0);return a`<calcite-flow>${i?null:a`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(e)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}",t.length.toString())} .selected=${(i||this.isElementsSelected)&&!this.selectedLayer} @calciteFlowItemBack=${()=>this.isElementsSelected=!1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title??void 0} .description=${this._messages.headings.totalFeatures.replace("{number}",this.featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${()=>this.selectedLayer=void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`}_renderLanding(e){return a`${this._renderTraceResultsHeading()}<calcite-list id=results-list .label=${this._messages.headings.traceResultsGeneric}>${this._renderElementsListItem(e)}</calcite-list>`}_renderLayerList(){let e=Array.from(this._layerIdToFeatures.entries()),t=Array.from(this._subtypeCodeToFeatures.entries()),s=e.concat(t).sort(this._compareByLayerTitle).map(this._renderLayerListItem);return this._elementsWithoutLayer.length>0&&s.push(this._renderUnknownListItem()),a`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state==="loading"}>${s}</calcite-list>`}_renderUnknownListItem(){return a`<calcite-list-item .label=${this._messages.unknown}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`}_renderFeaturesList(){return a`<calcite-list id=features-list .label=${this._messages.headings.traceResultsGeneric}>${this.featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`}_renderTraceResultsHeading(){return a`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle?a`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>`:null}</div>`}_renderNoResultsLanding(){return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div>`}_renderNoTraceLanding(){return a`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div>`}};f("arcgis-utility-network-trace-results",u);return u},"applications/Components/featureUtils","rest/support/FeatureSet")
3
+ v5.0.0-next.74 */
4
+ import{a as _}from"./Y2MCFATG.js";import"./BJLP3ZG2.js";import"./O6KK4XHY.js";import"./LPWF4YQF.js";import{G as m,H as y,I as p,O as f,a as g,b as a,s as d}from"./ABFWLIKD.js";import"./6QBSNPIZ.js";export default $arcgis.t(([{queryAllJSON:$},w])=>{var v=g`:host{max-height:calc(100vh - 150px);min-height:300px}#results-list,#features-list{min-height:300px}.results-heading{display:flex;flex-direction:column;padding:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,c="map-components:arcgis-utility-network-trace-results",u=class extends p{constructor(){super(...arguments),this._messages=_({blocking:!0}),this._elementsWithoutLayer=[],this._featuresComponentRef=m(),this._layerIdToFeatures=new Map,this._layerIdToLayer=new Map,this._subtypeCodeToFeatures=new Map,this._sourceIdToElements=new Map,this._unLayers=[],this._comapreByFeatureTitle=(e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0}),this._compareByLayerTitle=([,e],[,t])=>{let s=e[0].feature.layer,i=t[0].feature.layer,r=s?.title??"",n=i?.title??"";return r.localeCompare(n,void 0,{numeric:!0})},this._queryFeaturesOnLayer=async([e,t])=>{let s=this.utilityNetwork?.getLayerIdBySourceId(e),i=this._getLayerByLayerId(s);if(s==null||!i){this._elementsWithoutLayer.push(...t);return}let r=i.createQuery();r.gdbVersion=this.utilityNetwork?.gdbVersion,r.objectIds=t.map(l=>l.objectId),r.outFields=["*"];let{features:n}=w.fromJSON(await $(i,r)),h=await Promise.all(n.map(async l=>{l.layer=i.type==="subtype-group"?i.findSublayerForFeature(l):i;let o=l.layer;if(o&&"getFeatureTitle"in o){let L=await o.getFeatureTitle(l)||this._getFeatureTitle(l);return{feature:l,label:L}}return{feature:l,label:this._getFeatureTitle(l)}}));i.type==="subtype-group"?h.forEach(l=>this._addOrCreateMapValue(this._subtypeCodeToFeatures,l.feature.layer.subtypeCode,l)):this._layerIdToFeatures.set(s,h)},this.featuresFromSelectedLayer=[],this.isElementsSelected=!1,this.layers=[],this.state="ready",this.arcgisSelectedResultTypeChange=d(),this.arcgisSelectedLayerChange=d(),this._renderElementsListItem=e=>a`<calcite-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${()=>this.isElementsSelected=!0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${e.elements.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`,this._renderLayerListItem=([,e])=>{if(!e.length)return null;let t=e[0].feature.layer,s=t?.title||this._messages.unknown;return a`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this._setSelectedLayerAndFeatures(t)}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end>${e.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`},this._renderFeatureListItem=e=>{let{feature:t,label:s}=e;return a`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this.selectedFeature=t}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`}}static{this.properties={featuresFromSelectedLayer:0,isElementsSelected:5,layers:0,messageOverrides:0,referenceElement:1,selectedFeature:0,selectedLayer:0,state:1,traceConfigTitle:1,traceResult:0,utilityNetwork:0,view:0}}static{this.styles=v}load(){this._setSourceIdToElements(),this._loadDependencies().then(()=>this._queryTraceResultsFeatures()).finally(()=>this.state="ready")}loaded(){this.utilityNetwork||console.warn(`${c} was rendered without the required \`utilityNetwork\` property.`),this.layers.length===0&&console.warn(`${c} was rendered without any layers set for the \`layers\` property.`),this.view||console.warn(`${c} was rendered without the required \`view\` property.`)}willUpdate(e){e.has("isElementsSelected")&&this.arcgisSelectedResultTypeChange.emit(),e.has("selectedLayer")&&this.arcgisSelectedLayerChange.emit(),e.has("traceResult")&&(this.isElementsSelected=!1),(e.has("layers")||e.has("utilityNetwork"))&&this._loadDependencies()}_addOrCreateMapValue(e,t,s){let i=e.get(t);i==null?e.set(t,[s]):i.push(s)}_getFeatureTitle(e){let t=e.attributes,s=e.layer;if(!t||!s)return"";let i="displayField"in s?s.displayField:null,r=i!=null?t[i]:null,n=e.getObjectId()?.toString();return r?.toString()||n||this._messages.unknown}_getLayerByLayerId(e){if(e==null)return;let{_layerIdToLayer:t,_unLayers:s}=this;if(t.get(e))return t.get(e);let i=s.find(r=>"layerId"in r&&r.layerId===e);return i&&t.set(e,i),i}async _loadDependencies(){let{layers:e,utilityNetwork:t}=this;if(!t)return;t.loaded||(this.state="loading",await t.load()),this._unLayers=e.filter(i=>t.isUtilityLayer(i));let s=this._unLayers.filter(i=>!i.loaded).map(i=>i.load());s.length>0&&(this.state="loading",await Promise.allSettled(s))}async _queryTraceResultsFeatures(){let e=Array.from(this._sourceIdToElements.entries());e.length>0&&(this.state="loading");let t=e.map(this._queryFeaturesOnLayer);(await Promise.allSettled(t)).forEach((s,i)=>{if(s.status==="rejected"){let[r]=e[i];console.error(`${c}: Failed to query features for source ${r}:`,s.reason)}})}_setSelectedLayerAndFeatures(e){let t;if(!e)t=[];else if(e.type==="subtype-sublayer"){let{subtypeCode:s}=e;t=this._subtypeCodeToFeatures.get(s)??[]}else{let{layerId:s}=e;t=this._layerIdToFeatures.get(s)??[]}this.featuresFromSelectedLayer=t.sort(this._comapreByFeatureTitle),this.selectedLayer=e}_setSourceIdToElements(){this.traceResult?.elements?.forEach(e=>this._addOrCreateMapValue(this._sourceIdToElements,e.networkSourceId,e))}render(){let{traceResult:e}=this;if(e){if(!e.elements?.length&&!e.globalFunctionResults?.length)return a`<div>${this._renderTraceResultsHeading()}${this._renderNoResultsLanding()}</div>`}else return a`<div>${this._renderTraceResultsHeading()}${this._renderNoTraceLanding()}</div>`;if(this.state==="loading")return a`<calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader>`;if(this.selectedFeature){let r=this._featuresComponentRef.value,n=r?.selectedFeature?[r.selectedFeature]:[this.selectedFeature];return a`<arcgis-features .referenceElement=${this.referenceElement} .features=${n} .view=${this.view} visible @arcgisClose=${()=>this.selectedFeature=void 0} ${y(this._featuresComponentRef)}></arcgis-features>`}let{elements:t,globalFunctionResults:s}=e,i=t&&t.length>0&&(!s||s.length===0);return a`<calcite-flow>${i?null:a`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(e)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}",t.length.toString())} .selected=${(i||this.isElementsSelected)&&!this.selectedLayer} @calciteFlowItemBack=${()=>this.isElementsSelected=!1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title??void 0} .description=${this._messages.headings.totalFeatures.replace("{number}",this.featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${()=>this.selectedLayer=void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`}_renderLanding(e){return a`${this._renderTraceResultsHeading()}<calcite-list id=results-list .label=${this._messages.headings.traceResultsGeneric}>${this._renderElementsListItem(e)}</calcite-list>`}_renderLayerList(){let e=Array.from(this._layerIdToFeatures.entries()),t=Array.from(this._subtypeCodeToFeatures.entries()),s=e.concat(t).sort(this._compareByLayerTitle).map(this._renderLayerListItem);return this._elementsWithoutLayer.length>0&&s.push(this._renderUnknownListItem()),a`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state==="loading"}>${s}</calcite-list>`}_renderUnknownListItem(){return a`<calcite-list-item .label=${this._messages.unknown}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`}_renderFeaturesList(){return a`<calcite-list id=features-list .label=${this._messages.headings.traceResultsGeneric}>${this.featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`}_renderTraceResultsHeading(){return a`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle?a`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>`:null}</div>`}_renderNoResultsLanding(){return a`<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div>`}_renderNoTraceLanding(){return a`<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div>`}};f("arcgis-utility-network-trace-results",u);return u},"applications/Components/featureUtils","rest/support/FeatureSet")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{a as f}from"./IL5IXBOC.js";import e from"./JBH7Q2NX.js";import d from"./2JEK54GF.js";import{a as M}from"./IDZMHDMW.js";import c from"./VIW2MBV2.js";import"./DTXREBKJ.js";import b from"./GTF7HZOV.js";import a from"./CAQSBU4E.js";import"./E3VVCZY7.js";import"./RWV3GDPZ.js";import"./N43GEBCB.js";import{b as E}from"./OGJPLGAN.js";import{G as Q,H as j,I as k,J as h,M as R,O as B,a as D,b as o}from"./WYMKN43C.js";import"./DRNRJYXF.js";export default $arcgis.t(([{templateHasKey:H,stripHTML:K},{isRelatableFeatureSupportedLayer:U,findRelatedLayer:X},{substitute:Y,formatNumber:T},{watch:F,on:ee},Z,W,{ignoreAbortErrors:N},te,,,,{h:V}])=>{var re=D`:host{position:relative;flex:1 1 auto}.arcgis-feature-relationship__list{min-height:var(--calcite-spacing-xxxl)}.arcgis-feature-relationship__list-item--hidden{display:none}.arcgis-feature-relationship__feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-feature-relationship__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}`,ie=_=>{let e=[];if(_.formTemplate){let{description:t,title:r}=_.formTemplate;_.fields?.forEach(i=>{let s=r&&H(r,i.name),a=t&&H(t,i.name);(s||a)&&e.push(i.name)})}return e},O=100,se="arcgis-feature",c=`${se}-relationship`,u={base:c,listContainer:`${c}__list`,listItem:`${c}__list-item`,listItemHidden:`${c}__list-item--hidden`,listContainerQuerying:`${c}__list--querying`,featureObserver:`${c}__feature-observer`,stickySpinnerContainer:`${c}__sticky-loading-container`,loadingSpinnerContainer:`${c}__loading-container`},x=class extends k{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 N(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await N(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,O),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,O),this._queryPageDebounced=f(this._queryPageController,O),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=Q(),this.relatedFeatures=new Z,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new Z,this.autoDestroyDisabled=!1,this.featuresPerPage=10,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,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=re}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=V(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&&U(e.parent)?e.parent:e;return X(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 Y(e?.numberRecords??"",{number:T(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(()=>[F(()=>[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}),F(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),F(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),F(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),ee(()=>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:g,supportsCacheHint:v}=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&&g!=null){let{default:$}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:A}=await $({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),q=A.map(({count:y,value:m})=>{let C=t.subtypes?.find(L=>L.code===m)?.name;return m!=null&&C?{count:y,value:m,name:C}:void 0}).filter(y=>y!=null);this.allCategories=q}return}let{historicMoment:b,gdbVersion:w}=e,I=new W({cacheHint:v,gdbVersion:w,historicMoment:b,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),p=await e.queryRelatedFeaturesCount(I,{signal:r?.signal});this.allCategories=void 0,this.featureCount=p[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:g,relationshipId:v,showAllEnabled:b,supportsCacheHint:w}=this,{canQuery:I,objectId:p}=this;if(!I||!a||!l||p==null)return[];let $=b?((i-1)*s+r)%r:0,A=b?s:t,q=l.objectIdField,y="subtypeField"in l?l.subtypeField:void 0,m=[...n.map(d=>d.field),...ie(l),...g,q,y].filter(d=>d!=null),C=n.map(d=>`${d.field} ${d.order}`),{historicMoment:L,gdbVersion:z}=a,G=new W({orderByFields:C,start:$,num:A,outFields:m,cacheHint:w,historicMoment:L,gdbVersion:z,relationshipId:v,returnGeometry:!1,objectIds:[p],where:this._getRelationshipWhereClause(l)}),P=(await a.queryRelatedFeatures(G,{signal:e?.signal}))[p]?.features||[];return l.type==="subtype-group"&&y?P.forEach(d=>{let J=d.attributes[y],S=l.findSublayerForSubtypeCode?.(J);d.sourceLayer=S,d.layer=S}):P.forEach(d=>{d.sourceLayer=l,d.layer=l}),P}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(R(M(e,o`<arcgis-feature .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>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(R(M(t,o`<arcgis-feature-relationship .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} .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 te({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=${h(u.base)}><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=${h(u.stickySpinnerContainer)}>${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class=${h(u.loadingSpinnerContainer)}>${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=T(t);return o`<calcite-list-item class=${h(u.listItem)} .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,title:a}=e,n={...i?.global,...r},l=(t&&n?.[t])??"",g=s==="loading";return o`<calcite-list-item class=${h(E(u.listItem,{[u.listItemHidden]:g}))} .description=${K(l.toString())} .label=${K(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${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=${h(u.featureObserver)} ${j(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=${h(E(u.listContainer,{[u.listContainerQuerying]: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>`}};B("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a,b,c,d,e)
3
+ v5.0.0-next.74 */
4
+ import{a as f}from"./ZXAK3REF.js";import e from"./YQQJQRH5.js";import d from"./ZRUYG7UK.js";import{a as M}from"./7XKGOXYC.js";import c from"./G2KUFG7X.js";import"./Y2MCFATG.js";import b from"./IDU7W3W4.js";import a from"./7YVS3HGV.js";import"./BJLP3ZG2.js";import"./O6KK4XHY.js";import"./NA37NZS2.js";import{b as E}from"./LPWF4YQF.js";import{G as Q,H as j,I as k,J as h,M as R,O as B,a as D,b as o}from"./ABFWLIKD.js";import"./6QBSNPIZ.js";export default $arcgis.t(([{templateHasKey:H,stripHTML:K},{isRelatableFeatureSupportedLayer:U,findRelatedLayer:X},{substitute:Y,formatNumber:T},{watch:F,on:ee},Z,W,{ignoreAbortErrors:N},te,,,,{h:V}])=>{var re=D`:host{position:relative;flex:1 1 auto}.arcgis-feature-relationship__list{min-height:var(--calcite-spacing-xxxl)}.arcgis-feature-relationship__list-item--hidden{display:none}.arcgis-feature-relationship__feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-feature-relationship__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}`,ie=_=>{let e=[];if(_.formTemplate){let{description:t,title:r}=_.formTemplate;_.fields?.forEach(i=>{let s=r&&H(r,i.name),a=t&&H(t,i.name);(s||a)&&e.push(i.name)})}return e},O=100,se="arcgis-feature",c=`${se}-relationship`,u={base:c,listContainer:`${c}__list`,listItem:`${c}__list-item`,listItemHidden:`${c}__list-item--hidden`,listContainerQuerying:`${c}__list--querying`,featureObserver:`${c}__feature-observer`,stickySpinnerContainer:`${c}__sticky-loading-container`,loadingSpinnerContainer:`${c}__loading-container`},x=class extends k{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 N(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await N(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=f(this._queryController,O),this._queryFeatureCountDebounced=f(this._queryFeatureCountController,O),this._queryPageDebounced=f(this._queryPageController,O),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=Q(),this.relatedFeatures=new Z,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new Z,this.autoDestroyDisabled=!1,this.featuresPerPage=10,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,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=re}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=V(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&&U(e.parent)?e.parent:e;return X(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 Y(e?.numberRecords??"",{number:T(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(()=>[F(()=>[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}),F(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),F(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),F(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),ee(()=>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:g,supportsCacheHint:v}=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&&g!=null){let{default:$}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:A}=await $({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),q=A.map(({count:y,value:m})=>{let C=t.subtypes?.find(L=>L.code===m)?.name;return m!=null&&C?{count:y,value:m,name:C}:void 0}).filter(y=>y!=null);this.allCategories=q}return}let{historicMoment:b,gdbVersion:w}=e,I=new W({cacheHint:v,gdbVersion:w,historicMoment:b,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),p=await e.queryRelatedFeaturesCount(I,{signal:r?.signal});this.allCategories=void 0,this.featureCount=p[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:g,relationshipId:v,showAllEnabled:b,supportsCacheHint:w}=this,{canQuery:I,objectId:p}=this;if(!I||!a||!l||p==null)return[];let $=b?((i-1)*s+r)%r:0,A=b?s:t,q=l.objectIdField,y="subtypeField"in l?l.subtypeField:void 0,m=[...n.map(d=>d.field),...ie(l),...g,q,y].filter(d=>d!=null),C=n.map(d=>`${d.field} ${d.order}`),{historicMoment:L,gdbVersion:z}=a,G=new W({orderByFields:C,start:$,num:A,outFields:m,cacheHint:w,historicMoment:L,gdbVersion:z,relationshipId:v,returnGeometry:!1,objectIds:[p],where:this._getRelationshipWhereClause(l)}),P=(await a.queryRelatedFeatures(G,{signal:e?.signal}))[p]?.features||[];return l.type==="subtype-group"&&y?P.forEach(d=>{let J=d.attributes[y],S=l.findSublayerForSubtypeCode?.(J);d.sourceLayer=S,d.layer=S}):P.forEach(d=>{d.sourceLayer=l,d.layer=l}),P}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(R(M(e,o`<arcgis-feature .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>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(R(M(t,o`<arcgis-feature-relationship .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} .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 te({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=${h(u.base)}><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=${h(u.stickySpinnerContainer)}>${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class=${h(u.loadingSpinnerContainer)}>${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=T(t);return o`<calcite-list-item class=${h(u.listItem)} .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,title:a}=e,n={...i?.global,...r},l=(t&&n?.[t])??"",g=s==="loading";return o`<calcite-list-item class=${h(E(u.listItem,{[u.listItemHidden]:g}))} .description=${K(l.toString())} .label=${K(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${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=${h(u.featureObserver)} ${j(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=${h(E(u.listContainer,{[u.listContainerQuerying]: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>`}};B("arcgis-feature-relationship",x);return x},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a,b,c,d,e)
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{a as K,b as M,c as k,d as T,e as ue,f as m}from"./CQ6SZF62.js";import{a as w}from"./IA7GKY4R.js";import{a as U}from"./BJTB6Z7D.js";import b from"./Z7FTHDD4.js";import"./4TJZESD6.js";import{a as ge}from"./LB66ZX5X.js";import"./HLSQJLXK.js";import{a as le}from"./DTXREBKJ.js";import{a as Y}from"./LQ6FXLRW.js";import a from"./CAQSBU4E.js";import"./E3VVCZY7.js";import"./RWV3GDPZ.js";import"./N43GEBCB.js";import"./OGJPLGAN.js";import{G as B,H as F,I as se,J as ne,K as G,L as C,O as ae,a as re,b as h,s as Z}from"./WYMKN43C.js";import"./DRNRJYXF.js";export default $arcgis.t(([Pe,ze,H,{formatDate:W},{createTrackingTarget:Oe,runTracked:pe,signal:Ue},{watch:me,when:Me,whenOnce:Ee},{a:oe},{e:ce,f:de,g:he}])=>{var Ae=re`.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{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);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__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}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.wrapper{display:flex;flex-direction:column;overflow:hidden;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--esri-widget-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{padding-block-end:var(--label-wrap-padding, 0)}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: 8px;display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`,j=Math.PI,u=Math.sin,$=Math.cos,Le=Math.asin,Ne=Math.acos,x=j/180,Se=1e3*60*60*24,De=2440588,ke=2451545;function He(i){return i.valueOf()/Se-.5+De}function E(i){return new Date((i+.5-De)*Se)}function je(i){return He(i)-ke}var _e=x*23.4397;function Ie(i,e){return Le(u(e)*$(_e)+$(e)*u(_e)*u(i))}function Re(i){return x*(357.5291+.98560028*i)}function Ze(i){return x*(1.9148*u(i)+.02*u(2*i)+3e-4*u(3*i))}function Be(i,e){var t=x*102.9372;return i+e+t+j}var D={};D.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var q=[[-.83,"sunrise","sunset"]],Te=9e-4;function Fe(i,e){return Math.round(i-Te-e/(2*j))}function fe(i,e,t){return Te+(i+e)/(2*j)+t}function be(i,e,t){return ke+i+.0053*u(e)-.0069*u(2*t)}function Ge(i,e,t){return Ne((u(i)-u(e)*u(t))/($(e)*$(t)))}D.getTimes=function(i,e,t){var r=x*-t,s=x*e,n=je(i),a=Fe(n,r),l=fe(0,r,a),o=Re(l),d=Ze(o),c=Be(o,d),g=Ie(c,0),p=be(l,o,c);function y(R){var O=Ge(R,s,g),Ce=fe(O,r,a);return be(Ce,o,c)}function S(R){var O=(u(R)-u(s)*u(g))/($(s)*$(g));return O<-1?D.PolarException.MIDNIGHT_SUN:O>1?D.PolarException.POLAR_NIGHT:D.PolarException.NORMAL}var f={solarNoon:E(p),nadir:E(p-.5),polarException:D.PolarException.NORMAL},v,_,z,I,te;for(v=0,_=q.length;v<_;v+=1)z=q[v],I=y(z[0]*x),te=p-(I-p),f[z[1]]=E(te),f[z[2]]=E(I);return f.polarException=S(q[0][0]*x),f};var Ye={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},J=["spring","summer","fall","winter"];function P(i,e,t){let r=ee(e,t),{dayOfMonth:s,month:n}=Ye[r],a=new Date(i.getTime());return a.setMonth(n,s),a}function Ke(i,e){let t=qe(i);return ee(t,e)}function qe(i){let e=i.getTime(),t=P(i,"spring","northern").getTime(),r=P(i,"summer","northern").getTime(),s=P(i,"fall","northern").getTime(),n=P(i,"winter","northern").getTime();return e>=t&&e<r?"spring":e>=r&&e<s?"summer":e>=s&&e<n?"fall":"winter"}function ee(i,e){return e==="northern"?i:Ve(i)}function ve(i){return i>=0?"northern":"southern"}function Ve(i){let e=J.indexOf(i);return J[(e+2)%4]}var N=1440,We=864e5;function Je(i,e,t,r){let s=D.getTimes(i,e,t),n=s.sunrise,a=s.sunset,l=k(i,r),o=k(n,r),d=k(a,r);if(l.getUTCDate()!==o.getUTCDate()||l.getUTCDate()!==d.getUTCDate()){let c=l.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+c),a.setUTCDate(a.getUTCDate()+c)}return{sunrise:n,sunset:a}}function ie(i,e){return(i%e+e)%e}var $e={hour:"numeric",minute:"numeric",timeZone:"UTC"},Qe={hour:"numeric",timeZone:"UTC"};function Xe(i){let e=Math.round(K(i,"minutes","hours"));return new Date(K(e,"hours","milliseconds"))}function ei(i){return new Date(i*6e4)}function ii(i){let e=Xe(i),t=W(e,$e);if(t.includes(" ")){t=W(e,Qe),t=t.replace(":00","");let r="\u2060";t=t.split(" ").map(s=>Array.from(s).join(r)).join(" ")}return t}function ti(i){let e=ei(i),t=W(e,$e);return i!==0&&t==="00:00"&&(t="24:00"),t}var ri=(i,e)=>{switch(e){case"tick":return ii(i);case"max":case"min":case"value":return ti(i)}},si=N-1,ni=si/4;function ai(i){return h`<calcite-slider class="slider" .disabled=${i.disabled} fill-placement=none label-ticks label-handles .labelFormatter=${ri} min=0 .max=${N-1} @calciteSliderInput=${e=>{let t=Array.isArray(e.target.value)?e.target.value[0]:e.target.value;t!=null&&i.onTimeChanged(t)}} .scale=${i.scale} .step=${i.steps} snap style=${G({gridArea:"slider"})} .ticks=${ni} .value=${ie(i.value??0,N)} ${F(i.ref)}></calcite-slider>`}function li(i,e){return i/15}function oi(i,e){let t=i?.[0];if(t==null)return null;e||(e={hours:0,minutes:0,seconds:0}),e.hours=li(t);let r=e.hours%1;e.hours-=r,e.minutes=r*60;let s=e.minutes%1;return e.minutes-=s,e.seconds=Math.round(s*60),e}function ci(i){let e=oi([i.longitude,i.latitude]);return e==null?0:Math.round(e.hours+e.minutes/60+e.seconds/3600)}var di=100,hi=1e3,b=12e5,A=72e5;function we(i,e){return ie(i+e,24)}function gi({mode:i,lighting:e,getPlaySpeed:t,onProgress:r,beforeProgress:s}){let n=-1;function a(l=Date.now()){let o=e.date,d=Date.now()-(l??0);if(i==="day"){l=Date.now();let c=t()/di*d;if(c>0){let g=new Date(o.getTime()+c),p=e.displayUTCOffset??0,y=we(g.getUTCHours(),p),S=we(o.getUTCHours(),p);y<S&&(g=new Date(o.getTime()+c-We));let f=e.clone();s?.(),e.date=g,r?.(f,e)}}else if(d>hi){l=Date.now();let c=(o.getUTCMonth()+1)%12,g=new Date(o.getTime());g.setUTCMonth(c);let p=e.clone();s?.(),e.date=g,r?.(p,e)}n=requestAnimationFrame(()=>a(l))}return a(),U(()=>cancelAnimationFrame(n))}var L=b/4;function ui(i,e,t,r){let{day:s,night:n=s,twilight:a=s}=r,l=s*L,o=n*L,d=a*L;if(i==null||e==null||Number.isNaN(i.getTime())&&Number.isNaN(e.getTime()))return l;let c=t.getTime(),g=i.getTime(),p=e.getTime(),y=g-A/2,S=g+A/2,f=p-A/3*2,v=p+A/3,_=l;return c>=y&&c<=S?c-y<=b?_=o-(c-y)/b*(o-d):S-c<=b/2?_=l-(S-c)/b*2*(l-d):_=d:c>=f&&c<=v?c-f<=b/2?_=l-(c-f)/b*2*(l-d):v-c<=b?_=o-(v-c)/b*(o-d):_=d:(c<g||c>p)&&(_=o),_}function xe(i){let{children:e,hideHeader:t,headingLevel:r=2,label:s,title:n}=i;return h`<div aria-label=${s??C} class=${ne({...typeof i.class=="string"?{[i.class]:!0}:i.class,[Y.widget]:!0,[Y.panel]:!0})} role=presentation>${w({hidden:t||!n,children:ge({level:r,children:n})})}${e}</div>`}var Q=class{#i;#r;#s=Oe(()=>{this.#t()});constructor(e){this.#r=e;let t;pe(this.#s,()=>{t=e()}),this.#i=Ue(t)}#t(){let e=this.#i.value;pe(this.#s,()=>{this.#i.value=this.#r(e)})}mutate(e){this.#i.value=e}get value(){return this.#i.value}};function V(i){return new Q(i)}var pi={day:1,night:6,twilight:2/3},X=class extends se{constructor(){super(...arguments),this.messages=le({blocking:!0}),this.#r="none",this.#s=null,this.#l=B(),this.#n=B(),this.#d=200,this.#h=200,this.#e={},this._offset=V(e=>m(this._lighting)?this._lighting.displayUTCOffset??e:e),this._timesliderPosition=V(e=>{if(m(this._lighting)){let t=this._lighting.displayUTCOffset??0,r=this._lighting.date;if(M(r)){let{minutesSinceMidnight:s}=T(r,t);return s}else return e}return e}),this._localDate=V(e=>ue(this._view)??e),this.view=oe(this),this.autoDestroyDisabled=!1,this.dateOrSeason="date",this.headingLevel=2,this.hideDatePicker=!1,this.hideHeader=!1,this.hidePlayButtons=!1,this.hideShadowsToggle=!1,this.hideSunLightingToggle=!1,this.hideTimezone=!1,this.icon="brightness",this.playSpeedMultiplier=1,this.timeSliderSteps=5,this.arcgisReady=Z(),this.arcgisUserDateTimeChange=Z(),this.#c=!1}static{this.properties={view:0,_playingState:16,_sunlightingDisabled:16,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,_directShadowsDisabled:16,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,position:1,referenceElement:1,timeSliderSteps:9,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=Ae}get _view(){return this.view?.type==="3d"?this.view:void 0}#i;#r;#s;#t;#l;#n;#d;#h;#o(){if(this.#t)return;let e=de(()=>{if(this.#t?.remove(),m(this._lighting)){let t=this.utcOffset??0,r=this.timeSliderPosition??0,s=this.localDate,n=r-t*60,a=k(s,n,"minutes");this._lighting.date=a,this._lighting.displayUTCOffset=t}},{timeout:this.#d});this.#t=U(()=>{he(e),this.#t=void 0})}#u({scale:e,disabled:t}){let{messages:r}=this;return h`<calcite-label .scale=${e} class="date-picker-container">${r.date}${mi({disabled:t,scale:e,date:this.localDateAsString,onDateChange:s=>{let n=s.currentTarget.value,a=Array.isArray(n)?n[0]:n;this._stopPlaying(),this.localDate=a,this._emitUserDateTimeChangeEvent()}})}</calcite-label>${w({hidden:this.hidePlayButtons,children:ye({playing:this.yearPlaying,disabled:t,label:r.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#p({scale:e,disabled:t}){let{messages:r}=this;return h`<calcite-label .scale=${e} class="date-picker-container">${r.season}${_i({scale:e,selectedSeason:this.currentSeason,disabled:t,messages:r,onSeasonChange:s=>{this._stopPlaying(),this.currentSeason=s.currentTarget.value}})}</calcite-label>`}#e;get#g(){return Array.isArray(this.#n?.value?.value)?this.#n?.value?.value[0]:this.#n?.value?.value}get localDateAsString(){return this._localDate.value??""}get _playingState(){return this.#r}set _playingState(e){this.#r=e,this.#a?.remove(),e==="none"?this.#i?.remove():(this._play(e),this._emitUserDateTimeChangeEvent())}get _lighting(){return this._view?.environment?.lighting}get _sunlightingDisabled(){return!m(this._lighting)}set _sunlightingDisabled(e){this.#e.sunlightingDisabled=e;let t=this._view?.environment;if(t==null)return;let r=t.lighting,s=this.#s;this.#s=r;let n={directShadowsEnabled:r.directShadowsEnabled};m(r)&&(n.cameraTrackingEnabled=r.cameraTrackingEnabled);let a=e?"virtual":"sun",l;s?.type===a?l=s:l=e?new ze:new Pe,l.set(n),t.lighting=l,e||(this._stopPlaying(),this.#l.value&&(this.#l.value.open=!1))}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,t=ve(e);return Ke(this.localDate,t)}set currentSeason(e){this._stopPlaying();let t=this._view?.camera?.position?.latitude??0,r=ve(t),s=ee(e,r);this.localDate=P(this.localDate,s,"northern"),this._emitUserDateTimeChangeEvent()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#e.directShadowsDisabled=e,this._lighting&&(this._lighting.directShadowsEnabled=!e)}get utcOffset(){return this._offset.value}set utcOffset(e){this._offset.mutate(e),this.#o()}get timeSliderPosition(){return this._timesliderPosition.value}set timeSliderPosition(e){this._timesliderPosition.mutate(ie(e??0,N)),this.#o()}get localDate(){return this._localDate.value!=null?new Date(this._localDate.value):new Date}set localDate(e){let t=new Date(e);if(M(t)){t.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate());let r=t.toISOString().slice(0,10);this._localDate.mutate(r),this.#o()}}get yearPlaying(){return this._playingState==="year"}set yearPlaying(e){this._playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}async load(){this.#e.utcOffset=this.utcOffset,this.#e.timeSliderPosition=this.timeSliderPosition,this.#e.localDate=this.localDateAsString,this.manager.onLifecycle(()=>[me(()=>{let e=null;if(m(this._lighting)){let t=this._lighting.displayUTCOffset??0,r=this._lighting.date;if(M(r)){let{minutesSinceMidnight:s}=T(r,t);e=s}}return e},e=>{let t=this.#g;e!=null&&t!==e&&this._emitUserDateTimeChangeEvent()},{sync:!0}),me(()=>{let e=this._view?.camera?.position;return e?ci(e):void 0},e=>{let t=this._lighting;m(t)&&t.cameraTrackingEnabled&&(t.displayUTCOffset=e)},{sync:!0,initial:!0}),Me(()=>!m(this._lighting),()=>{this._stopPlaying()}),H.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#i?.remove(),this.#t?.remove(),this.#a?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#c&&m(this._lighting)&&e.has("utcOffset")){let t=this.utcOffset??0,r=this._lighting.displayUTCOffset??0,s=this.timeSliderPosition??0,n=this.localDate,a=s-r*60,l=k(n,a,"minutes"),{minutesSinceMidnight:o,localDate:d}=T(l,t);this._timesliderPosition.mutate(o),this._localDate.mutate(d)}}updated(e){super.updated(e),this._adjustTimeSliderLabels()}#c;async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await ce(Ee(()=>this._view?.ready,{signal:e.signal}).then(()=>{this.utcOffset=this.#e.utcOffset??this.utcOffset,this.timeSliderPosition=this.#e.timeSliderPosition??this.timeSliderPosition,this.localDate=this.#e.localDate??this.localDate,this.#e.directShadowsDisabled!=null&&(this._directShadowsDisabled=this.#e.directShadowsDisabled),this.#e.sunlightingDisabled!=null&&(this._sunlightingDisabled=this.#e.sunlightingDisabled),this.#e={}})),this.#c=!0}_adjustTimeSliderLabels(){let e=this.#n.value;e&&vi(e,H.getLocale())}_emitUserDateTimeChangeEvent(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}_stopPlaying(){this._playingState="none"}#a;#m(e){if(this.#a)return;let t=setTimeout(()=>{let r=e.displayUTCOffset??0,s=e.date,{minutesSinceMidnight:n}=T(s,r);this._timesliderPosition.mutate(n),this.#a?.remove()},this.#h);this.#a=U(()=>{clearTimeout(t),this.#a=void 0;let r=this._lighting;if(m(r)){let s=r.displayUTCOffset??0,n=r.date,{minutesSinceMidnight:a}=T(n,s);this._timesliderPosition.mutate(a)}})}_play(e){this.#i?.remove();let t=this._view;if(t==null||this._sunlightingDisabled)return;let r=t.environment.lighting;if(!m(r))return;let s=0;this.#i=gi({mode:e,lighting:r,beforeProgress:()=>{s=this.#g??0},onProgress:(n,a)=>{this._timesliderPosition.mutate(s),this.#m(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&m(a)){let l=n.camera.position.latitude??0,o=n.camera.position.longitude??0,{sunrise:d,sunset:c}=Je(a.date,l,o,a.displayUTCOffset??0);return ui(d,c,a.date,pi)*this.playSpeedMultiplier}else return L*this.playSpeedMultiplier}})}render(){let{messages:e,dateOrSeason:t}=this,r=this._sunlightingDisabled,s="m";if(this._view?.type!=="3d")return xe({class:"wrapper",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:h`<div class="unsupported"><p>${e.unsupported}</p></div>`});let n=(this.utcOffset??0)*60,a=this.view?.ready===!0,l=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return xe({class:{wrapper:!0,loading:!a},label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:h`${a?void 0:h`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${G({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${s}>${e.timeSliderLabel}${ai({ref:this.#n,disabled:this._sunlightingDisabled,scale:s,value:this.timeSliderPosition??0,steps:l,onTimeChanged:o=>{this._stopPlaying(),this._emitUserDateTimeChangeEvent(),this.timeSliderPosition=o}})}</calcite-label>${w({hidden:this.hidePlayButtons,children:ye({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this._stopPlaying():this._playingState="day"},scale:s})})}${w({hidden:this.hideTimezone,children:h`<calcite-label .scale=${s} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${s} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this._stopPlaying()}} ${F(this.#l)}></calcite-input-time-zone></calcite-label><span></span>`})}${w({hidden:this.hideDatePicker,children:t==="date"?this.#u({scale:s,disabled:r}):this.#p({scale:s,disabled:r})})}</div>${w({hidden:this.hideSunLightingToggle,children:fi({scale:s,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${w({hidden:this.hideShadowsToggle,children:bi({scale:s,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function ye({disabled:i,playing:e,onClick:t,label:r,scale:s="m"}){return h`<calcite-button appearance=solid .scale=${s} .disabled=${i} .iconStart=${e?"pause-f":"play-f"} .label=${r} @click=${t} round title=${r??C} type=button></calcite-button>`}function mi({disabled:i,date:e,onDateChange:t,scale:r}){return h`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${i} overlay-positioning=fixed placement=bottom .value=${e} .scale=${r} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`}function _i({messages:i,disabled:e,scale:t,selectedSeason:r,onSeasonChange:s}){return h`<calcite-select .disabled=${e} .label=${i.season} .scale=${t} .value=${r} @calciteSelectChange=${n=>{s(n)}}>${J.map(n=>h`<calcite-option .selected=${r===n} .value=${n}>${i[n]}</calcite-option>`)}</calcite-select>`}function fi({messages:i,sunlightingEnabled:e,onSunLightingToggle:t,scale:r}){return h`<calcite-label layout=inline .scale=${r} title=${i?.tooltip??C}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${s=>t(s.target.checked)}></calcite-checkbox>${i?.label}</calcite-label>`}function bi({messages:i,shadowEnabled:e,onShadowCheckboxChange:t,scale:r}){return h`<calcite-label layout=inline .scale=${r} title=${i?.tooltip??C}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${s=>t(s.target.checked)}></calcite-checkbox>${i.label}</calcite-label>`}function vi(i,e){let t=xi(e),r=t?.language??"",s=t?.region??"",n=["ar","bg","el","en","ko"].includes(r)||r==="zh"&&["HK","TW"].includes(s);if(i.style.setProperty("--label-wrap-padding",n?"5px":"0"),i.style.setProperty("--label-wrapping",n?"normal":"nowrap"),!i.hasAttribute("data-slider-label-stylesheet-attatched")&&i.shadowRoot){let a=i.shadowRoot.adoptedStyleSheets,l=new CSSStyleSheet;l.replaceSync(`
3
+ v5.0.0-next.74 */
4
+ import{a as K,b as M,c as k,d as T,e as ue,f as m}from"./IXQX5TRT.js";import{a as w}from"./VWJRY4FT.js";import{a as U}from"./KQH5OF3D.js";import b from"./D3WDXBYR.js";import"./RXMMGR4D.js";import{a as ge}from"./HLGPPD6M.js";import"./VYO5CWDY.js";import{a as le}from"./Y2MCFATG.js";import{a as Y}from"./A6OTHXBP.js";import a from"./7YVS3HGV.js";import"./BJLP3ZG2.js";import"./O6KK4XHY.js";import"./NA37NZS2.js";import"./LPWF4YQF.js";import{G as B,H as F,I as se,J as ne,K as G,L as C,O as ae,a as re,b as h,s as Z}from"./ABFWLIKD.js";import"./6QBSNPIZ.js";export default $arcgis.t(([Pe,ze,H,{formatDate:W},{createTrackingTarget:Oe,runTracked:pe,signal:Ue},{watch:me,when:Me,whenOnce:Ee},{a:oe},{e:ce,f:de,g:he}])=>{var Ae=re`.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{--esri-widget-padding-x: 15px;--esri-widget-padding-y: var(--calcite-spacing-md);--esri-widget-padding: var(--esri-widget-padding-y) var(--esri-widget-padding-x);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__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}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.wrapper{display:flex;flex-direction:column;overflow:hidden;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--esri-widget-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{padding-block-end:var(--label-wrap-padding, 0)}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: 8px;display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`,j=Math.PI,u=Math.sin,$=Math.cos,Le=Math.asin,Ne=Math.acos,x=j/180,Se=1e3*60*60*24,De=2440588,ke=2451545;function He(i){return i.valueOf()/Se-.5+De}function E(i){return new Date((i+.5-De)*Se)}function je(i){return He(i)-ke}var _e=x*23.4397;function Ie(i,e){return Le(u(e)*$(_e)+$(e)*u(_e)*u(i))}function Re(i){return x*(357.5291+.98560028*i)}function Ze(i){return x*(1.9148*u(i)+.02*u(2*i)+3e-4*u(3*i))}function Be(i,e){var t=x*102.9372;return i+e+t+j}var D={};D.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var q=[[-.83,"sunrise","sunset"]],Te=9e-4;function Fe(i,e){return Math.round(i-Te-e/(2*j))}function fe(i,e,t){return Te+(i+e)/(2*j)+t}function be(i,e,t){return ke+i+.0053*u(e)-.0069*u(2*t)}function Ge(i,e,t){return Ne((u(i)-u(e)*u(t))/($(e)*$(t)))}D.getTimes=function(i,e,t){var r=x*-t,s=x*e,n=je(i),a=Fe(n,r),l=fe(0,r,a),o=Re(l),d=Ze(o),c=Be(o,d),g=Ie(c,0),p=be(l,o,c);function y(R){var O=Ge(R,s,g),Ce=fe(O,r,a);return be(Ce,o,c)}function S(R){var O=(u(R)-u(s)*u(g))/($(s)*$(g));return O<-1?D.PolarException.MIDNIGHT_SUN:O>1?D.PolarException.POLAR_NIGHT:D.PolarException.NORMAL}var f={solarNoon:E(p),nadir:E(p-.5),polarException:D.PolarException.NORMAL},v,_,z,I,te;for(v=0,_=q.length;v<_;v+=1)z=q[v],I=y(z[0]*x),te=p-(I-p),f[z[1]]=E(te),f[z[2]]=E(I);return f.polarException=S(q[0][0]*x),f};var Ye={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},J=["spring","summer","fall","winter"];function P(i,e,t){let r=ee(e,t),{dayOfMonth:s,month:n}=Ye[r],a=new Date(i.getTime());return a.setMonth(n,s),a}function Ke(i,e){let t=qe(i);return ee(t,e)}function qe(i){let e=i.getTime(),t=P(i,"spring","northern").getTime(),r=P(i,"summer","northern").getTime(),s=P(i,"fall","northern").getTime(),n=P(i,"winter","northern").getTime();return e>=t&&e<r?"spring":e>=r&&e<s?"summer":e>=s&&e<n?"fall":"winter"}function ee(i,e){return e==="northern"?i:Ve(i)}function ve(i){return i>=0?"northern":"southern"}function Ve(i){let e=J.indexOf(i);return J[(e+2)%4]}var N=1440,We=864e5;function Je(i,e,t,r){let s=D.getTimes(i,e,t),n=s.sunrise,a=s.sunset,l=k(i,r),o=k(n,r),d=k(a,r);if(l.getUTCDate()!==o.getUTCDate()||l.getUTCDate()!==d.getUTCDate()){let c=l.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+c),a.setUTCDate(a.getUTCDate()+c)}return{sunrise:n,sunset:a}}function ie(i,e){return(i%e+e)%e}var $e={hour:"numeric",minute:"numeric",timeZone:"UTC"},Qe={hour:"numeric",timeZone:"UTC"};function Xe(i){let e=Math.round(K(i,"minutes","hours"));return new Date(K(e,"hours","milliseconds"))}function ei(i){return new Date(i*6e4)}function ii(i){let e=Xe(i),t=W(e,$e);if(t.includes(" ")){t=W(e,Qe),t=t.replace(":00","");let r="\u2060";t=t.split(" ").map(s=>Array.from(s).join(r)).join(" ")}return t}function ti(i){let e=ei(i),t=W(e,$e);return i!==0&&t==="00:00"&&(t="24:00"),t}var ri=(i,e)=>{switch(e){case"tick":return ii(i);case"max":case"min":case"value":return ti(i)}},si=N-1,ni=si/4;function ai(i){return h`<calcite-slider class="slider" .disabled=${i.disabled} fill-placement=none label-ticks label-handles .labelFormatter=${ri} min=0 .max=${N-1} @calciteSliderInput=${e=>{let t=Array.isArray(e.target.value)?e.target.value[0]:e.target.value;t!=null&&i.onTimeChanged(t)}} .scale=${i.scale} .step=${i.steps} snap style=${G({gridArea:"slider"})} .ticks=${ni} .value=${ie(i.value??0,N)} ${F(i.ref)}></calcite-slider>`}function li(i,e){return i/15}function oi(i,e){let t=i?.[0];if(t==null)return null;e||(e={hours:0,minutes:0,seconds:0}),e.hours=li(t);let r=e.hours%1;e.hours-=r,e.minutes=r*60;let s=e.minutes%1;return e.minutes-=s,e.seconds=Math.round(s*60),e}function ci(i){let e=oi([i.longitude,i.latitude]);return e==null?0:Math.round(e.hours+e.minutes/60+e.seconds/3600)}var di=100,hi=1e3,b=12e5,A=72e5;function we(i,e){return ie(i+e,24)}function gi({mode:i,lighting:e,getPlaySpeed:t,onProgress:r,beforeProgress:s}){let n=-1;function a(l=Date.now()){let o=e.date,d=Date.now()-(l??0);if(i==="day"){l=Date.now();let c=t()/di*d;if(c>0){let g=new Date(o.getTime()+c),p=e.displayUTCOffset??0,y=we(g.getUTCHours(),p),S=we(o.getUTCHours(),p);y<S&&(g=new Date(o.getTime()+c-We));let f=e.clone();s?.(),e.date=g,r?.(f,e)}}else if(d>hi){l=Date.now();let c=(o.getUTCMonth()+1)%12,g=new Date(o.getTime());g.setUTCMonth(c);let p=e.clone();s?.(),e.date=g,r?.(p,e)}n=requestAnimationFrame(()=>a(l))}return a(),U(()=>cancelAnimationFrame(n))}var L=b/4;function ui(i,e,t,r){let{day:s,night:n=s,twilight:a=s}=r,l=s*L,o=n*L,d=a*L;if(i==null||e==null||Number.isNaN(i.getTime())&&Number.isNaN(e.getTime()))return l;let c=t.getTime(),g=i.getTime(),p=e.getTime(),y=g-A/2,S=g+A/2,f=p-A/3*2,v=p+A/3,_=l;return c>=y&&c<=S?c-y<=b?_=o-(c-y)/b*(o-d):S-c<=b/2?_=l-(S-c)/b*2*(l-d):_=d:c>=f&&c<=v?c-f<=b/2?_=l-(c-f)/b*2*(l-d):v-c<=b?_=o-(v-c)/b*(o-d):_=d:(c<g||c>p)&&(_=o),_}function xe(i){let{children:e,hideHeader:t,headingLevel:r=2,label:s,title:n}=i;return h`<div aria-label=${s??C} class=${ne({...typeof i.class=="string"?{[i.class]:!0}:i.class,[Y.widget]:!0,[Y.panel]:!0})} role=presentation>${w({hidden:t||!n,children:ge({level:r,children:n})})}${e}</div>`}var Q=class{#i;#r;#s=Oe(()=>{this.#t()});constructor(e){this.#r=e;let t;pe(this.#s,()=>{t=e()}),this.#i=Ue(t)}#t(){let e=this.#i.value;pe(this.#s,()=>{this.#i.value=this.#r(e)})}mutate(e){this.#i.value=e}get value(){return this.#i.value}};function V(i){return new Q(i)}var pi={day:1,night:6,twilight:2/3},X=class extends se{constructor(){super(...arguments),this.messages=le({blocking:!0}),this.#r="none",this.#s=null,this.#l=B(),this.#n=B(),this.#d=200,this.#h=200,this.#e={},this._offset=V(e=>m(this._lighting)?this._lighting.displayUTCOffset??e:e),this._timesliderPosition=V(e=>{if(m(this._lighting)){let t=this._lighting.displayUTCOffset??0,r=this._lighting.date;if(M(r)){let{minutesSinceMidnight:s}=T(r,t);return s}else return e}return e}),this._localDate=V(e=>ue(this._view)??e),this.view=oe(this),this.autoDestroyDisabled=!1,this.dateOrSeason="date",this.headingLevel=2,this.hideDatePicker=!1,this.hideHeader=!1,this.hidePlayButtons=!1,this.hideShadowsToggle=!1,this.hideSunLightingToggle=!1,this.hideTimezone=!1,this.icon="brightness",this.playSpeedMultiplier=1,this.timeSliderSteps=5,this.arcgisReady=Z(),this.arcgisUserDateTimeChange=Z(),this.#c=!1}static{this.properties={view:0,_playingState:16,_sunlightingDisabled:16,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,_directShadowsDisabled:16,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,position:1,referenceElement:1,timeSliderSteps:9,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=Ae}get _view(){return this.view?.type==="3d"?this.view:void 0}#i;#r;#s;#t;#l;#n;#d;#h;#o(){if(this.#t)return;let e=de(()=>{if(this.#t?.remove(),m(this._lighting)){let t=this.utcOffset??0,r=this.timeSliderPosition??0,s=this.localDate,n=r-t*60,a=k(s,n,"minutes");this._lighting.date=a,this._lighting.displayUTCOffset=t}},{timeout:this.#d});this.#t=U(()=>{he(e),this.#t=void 0})}#u({scale:e,disabled:t}){let{messages:r}=this;return h`<calcite-label .scale=${e} class="date-picker-container">${r.date}${mi({disabled:t,scale:e,date:this.localDateAsString,onDateChange:s=>{let n=s.currentTarget.value,a=Array.isArray(n)?n[0]:n;this._stopPlaying(),this.localDate=a,this._emitUserDateTimeChangeEvent()}})}</calcite-label>${w({hidden:this.hidePlayButtons,children:ye({playing:this.yearPlaying,disabled:t,label:r.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#p({scale:e,disabled:t}){let{messages:r}=this;return h`<calcite-label .scale=${e} class="date-picker-container">${r.season}${_i({scale:e,selectedSeason:this.currentSeason,disabled:t,messages:r,onSeasonChange:s=>{this._stopPlaying(),this.currentSeason=s.currentTarget.value}})}</calcite-label>`}#e;get#g(){return Array.isArray(this.#n?.value?.value)?this.#n?.value?.value[0]:this.#n?.value?.value}get localDateAsString(){return this._localDate.value??""}get _playingState(){return this.#r}set _playingState(e){this.#r=e,this.#a?.remove(),e==="none"?this.#i?.remove():(this._play(e),this._emitUserDateTimeChangeEvent())}get _lighting(){return this._view?.environment?.lighting}get _sunlightingDisabled(){return!m(this._lighting)}set _sunlightingDisabled(e){this.#e.sunlightingDisabled=e;let t=this._view?.environment;if(t==null)return;let r=t.lighting,s=this.#s;this.#s=r;let n={directShadowsEnabled:r.directShadowsEnabled};m(r)&&(n.cameraTrackingEnabled=r.cameraTrackingEnabled);let a=e?"virtual":"sun",l;s?.type===a?l=s:l=e?new ze:new Pe,l.set(n),t.lighting=l,e||(this._stopPlaying(),this.#l.value&&(this.#l.value.open=!1))}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,t=ve(e);return Ke(this.localDate,t)}set currentSeason(e){this._stopPlaying();let t=this._view?.camera?.position?.latitude??0,r=ve(t),s=ee(e,r);this.localDate=P(this.localDate,s,"northern"),this._emitUserDateTimeChangeEvent()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#e.directShadowsDisabled=e,this._lighting&&(this._lighting.directShadowsEnabled=!e)}get utcOffset(){return this._offset.value}set utcOffset(e){this._offset.mutate(e),this.#o()}get timeSliderPosition(){return this._timesliderPosition.value}set timeSliderPosition(e){this._timesliderPosition.mutate(ie(e??0,N)),this.#o()}get localDate(){return this._localDate.value!=null?new Date(this._localDate.value):new Date}set localDate(e){let t=new Date(e);if(M(t)){t.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate());let r=t.toISOString().slice(0,10);this._localDate.mutate(r),this.#o()}}get yearPlaying(){return this._playingState==="year"}set yearPlaying(e){this._playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}async load(){this.#e.utcOffset=this.utcOffset,this.#e.timeSliderPosition=this.timeSliderPosition,this.#e.localDate=this.localDateAsString,this.manager.onLifecycle(()=>[me(()=>{let e=null;if(m(this._lighting)){let t=this._lighting.displayUTCOffset??0,r=this._lighting.date;if(M(r)){let{minutesSinceMidnight:s}=T(r,t);e=s}}return e},e=>{let t=this.#g;e!=null&&t!==e&&this._emitUserDateTimeChangeEvent()},{sync:!0}),me(()=>{let e=this._view?.camera?.position;return e?ci(e):void 0},e=>{let t=this._lighting;m(t)&&t.cameraTrackingEnabled&&(t.displayUTCOffset=e)},{sync:!0,initial:!0}),Me(()=>!m(this._lighting),()=>{this._stopPlaying()}),H.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#i?.remove(),this.#t?.remove(),this.#a?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#c&&m(this._lighting)&&e.has("utcOffset")){let t=this.utcOffset??0,r=this._lighting.displayUTCOffset??0,s=this.timeSliderPosition??0,n=this.localDate,a=s-r*60,l=k(n,a,"minutes"),{minutesSinceMidnight:o,localDate:d}=T(l,t);this._timesliderPosition.mutate(o),this._localDate.mutate(d)}}updated(e){super.updated(e),this._adjustTimeSliderLabels()}#c;async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await ce(Ee(()=>this._view?.ready,{signal:e.signal}).then(()=>{this.utcOffset=this.#e.utcOffset??this.utcOffset,this.timeSliderPosition=this.#e.timeSliderPosition??this.timeSliderPosition,this.localDate=this.#e.localDate??this.localDate,this.#e.directShadowsDisabled!=null&&(this._directShadowsDisabled=this.#e.directShadowsDisabled),this.#e.sunlightingDisabled!=null&&(this._sunlightingDisabled=this.#e.sunlightingDisabled),this.#e={}})),this.#c=!0}_adjustTimeSliderLabels(){let e=this.#n.value;e&&vi(e,H.getLocale())}_emitUserDateTimeChangeEvent(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}_stopPlaying(){this._playingState="none"}#a;#m(e){if(this.#a)return;let t=setTimeout(()=>{let r=e.displayUTCOffset??0,s=e.date,{minutesSinceMidnight:n}=T(s,r);this._timesliderPosition.mutate(n),this.#a?.remove()},this.#h);this.#a=U(()=>{clearTimeout(t),this.#a=void 0;let r=this._lighting;if(m(r)){let s=r.displayUTCOffset??0,n=r.date,{minutesSinceMidnight:a}=T(n,s);this._timesliderPosition.mutate(a)}})}_play(e){this.#i?.remove();let t=this._view;if(t==null||this._sunlightingDisabled)return;let r=t.environment.lighting;if(!m(r))return;let s=0;this.#i=gi({mode:e,lighting:r,beforeProgress:()=>{s=this.#g??0},onProgress:(n,a)=>{this._timesliderPosition.mutate(s),this.#m(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&m(a)){let l=n.camera.position.latitude??0,o=n.camera.position.longitude??0,{sunrise:d,sunset:c}=Je(a.date,l,o,a.displayUTCOffset??0);return ui(d,c,a.date,pi)*this.playSpeedMultiplier}else return L*this.playSpeedMultiplier}})}render(){let{messages:e,dateOrSeason:t}=this,r=this._sunlightingDisabled,s="m";if(this._view?.type!=="3d")return xe({class:"wrapper",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:h`<div class="unsupported"><p>${e.unsupported}</p></div>`});let n=(this.utcOffset??0)*60,a=this.view?.ready===!0,l=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return xe({class:{wrapper:!0,loading:!a},label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:h`${a?void 0:h`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${G({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${s}>${e.timeSliderLabel}${ai({ref:this.#n,disabled:this._sunlightingDisabled,scale:s,value:this.timeSliderPosition??0,steps:l,onTimeChanged:o=>{this._stopPlaying(),this._emitUserDateTimeChangeEvent(),this.timeSliderPosition=o}})}</calcite-label>${w({hidden:this.hidePlayButtons,children:ye({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this._stopPlaying():this._playingState="day"},scale:s})})}${w({hidden:this.hideTimezone,children:h`<calcite-label .scale=${s} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${s} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this._stopPlaying()}} ${F(this.#l)}></calcite-input-time-zone></calcite-label><span></span>`})}${w({hidden:this.hideDatePicker,children:t==="date"?this.#u({scale:s,disabled:r}):this.#p({scale:s,disabled:r})})}</div>${w({hidden:this.hideSunLightingToggle,children:fi({scale:s,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${w({hidden:this.hideShadowsToggle,children:bi({scale:s,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function ye({disabled:i,playing:e,onClick:t,label:r,scale:s="m"}){return h`<calcite-button appearance=solid .scale=${s} .disabled=${i} .iconStart=${e?"pause-f":"play-f"} .label=${r} @click=${t} round title=${r??C} type=button></calcite-button>`}function mi({disabled:i,date:e,onDateChange:t,scale:r}){return h`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${i} overlay-positioning=fixed placement=bottom .value=${e} .scale=${r} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`}function _i({messages:i,disabled:e,scale:t,selectedSeason:r,onSeasonChange:s}){return h`<calcite-select .disabled=${e} .label=${i.season} .scale=${t} .value=${r} @calciteSelectChange=${n=>{s(n)}}>${J.map(n=>h`<calcite-option .selected=${r===n} .value=${n}>${i[n]}</calcite-option>`)}</calcite-select>`}function fi({messages:i,sunlightingEnabled:e,onSunLightingToggle:t,scale:r}){return h`<calcite-label layout=inline .scale=${r} title=${i?.tooltip??C}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${s=>t(s.target.checked)}></calcite-checkbox>${i?.label}</calcite-label>`}function bi({messages:i,shadowEnabled:e,onShadowCheckboxChange:t,scale:r}){return h`<calcite-label layout=inline .scale=${r} title=${i?.tooltip??C}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${s=>t(s.target.checked)}></calcite-checkbox>${i.label}</calcite-label>`}function vi(i,e){let t=xi(e),r=t?.language??"",s=t?.region??"",n=["ar","bg","el","en","ko"].includes(r)||r==="zh"&&["HK","TW"].includes(s);if(i.style.setProperty("--label-wrap-padding",n?"5px":"0"),i.style.setProperty("--label-wrapping",n?"normal":"nowrap"),!i.hasAttribute("data-slider-label-stylesheet-attatched")&&i.shadowRoot){let a=i.shadowRoot.adoptedStyleSheets,l=new CSSStyleSheet;l.replaceSync(`
5
5
  .tick__label {
6
6
  text-align: center;
7
7
  white-space: var(--label-wrapping, normal);
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{I as l,O as a,b as i}from"./WYMKN43C.js";import"./DRNRJYXF.js";export default $arcgis.t(([{watch:u}])=>{var s=class extends l{static{this.properties={viewModel:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.templateOptions.customTextElements,()=>this.requestUpdate(),{initial:!0})])}render(){let e=this.viewModel.templateOptions.customTextElements;return e?i`<div>${e.map(r=>{let[t,c]=Object.entries(r)[0];return t==="date"?null:i`<calcite-label>${t}<calcite-input .value=${c??""} @calciteInputInput=${o=>{let n=e.find(m=>{let[p]=Object.entries(m)[0];return p===t});n&&(n[t]=o.target.value)}}></calcite-input></calcite-label>`})}</div>`:null}};a("arcgis-print-custom-text-elements",s);return s},"core/reactiveUtils")
3
+ v5.0.0-next.74 */
4
+ import{I as l,O as a,b as i}from"./ABFWLIKD.js";import"./6QBSNPIZ.js";export default $arcgis.t(([{watch:u}])=>{var s=class extends l{static{this.properties={viewModel:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.templateOptions.customTextElements,()=>this.requestUpdate(),{initial:!0})])}render(){let e=this.viewModel.templateOptions.customTextElements;return e?i`<div>${e.map(r=>{let[t,c]=Object.entries(r)[0];return t==="date"?null:i`<calcite-label>${t}<calcite-input .value=${c??""} @calciteInputInput=${o=>{let n=e.find(m=>{let[p]=Object.entries(m)[0];return p===t});n&&(n[t]=o.target.value)}}></calcite-input></calcite-label>`})}</div>`:null}};a("arcgis-print-custom-text-elements",s);return s},"core/reactiveUtils")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{a as x}from"./DTXREBKJ.js";import"./E3VVCZY7.js";import"./RWV3GDPZ.js";import"./OGJPLGAN.js";import{I as v,J as g,O as T,a as $,b as d,s as y}from"./WYMKN43C.js";import"./DRNRJYXF.js";export default $arcgis.t(([S,G,A,P,{SimpleMarkerSymbol:_},u,I,b])=>{var F=$`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`,f="arcgis-utility-network-trace-location",m={base:f,buttonContainer:`${f}__button-container`,clearButton:`${f}__clear-button`,addLocationButton:`${f}__add-location-button`},s="map-components:utility-network-trace-location",L=class extends v{constructor(){super(...arguments),this.messages=x({blocking:!0}),this.traceLocationType="starting-point",this.spatialTolerance=.05,this.arcgisTraceLocationChange=y(),this.arcgisTraceLocationSelectEnd=y(),this.arcgisTraceLocationSelectStart=y()}static{this.properties={view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,flagLayer:0,spatialTolerance:9,utilityNetwork:0}}static{this.styles=F}async load(){u.isLoaded()||await u.load()}_createPolyline(t,e){return new S({hasZ:!1,hasM:!0,paths:t,spatialReference:new G({wkid:e})})}_calculatePercentAlong(t,e){let a=t.spatialReference,r=this._createPolyline(t.paths,a.wkid),o=e.x-.5,i=e.x+.5,n=e.y-.5,c=e.y+.5,l=[[[o,n],[i,c]]],w=this._createPolyline(l,e.spatialReference.wkid),p=u.execute(w,a);if(!p)return console.error(`${s} - Unable to project flag geometry to source geometry spatial reference.`),.5;let h=I.execute(r,p);if(h.length>0){let C=b.execute(r,{unit:"feet"}),k;return h[0].paths[0][0][0]===r.paths[0][0][0]?k=b.execute(h[0],{unit:"feet"}):k=b.execute(h[1],{unit:"feet"}),k/C}return console.warn(`${s} - Unable to cut the source geometry with the flag geometry.`),.5}async _ensureNecessaryAttributes(t){let e=(t.layer?.type,t.layer),a=e.fieldsIndex?.get("assetgroup")??!1,r=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",o=e.fieldsIndex?.get("assettype")??!1,i=e.fieldsIndex?.get("assettype")?.name??"assettype",n=t.getGlobalId(),c=t.getObjectId(),l=a?!!t.getAttribute(r):!0,w=o?!!t.getAttribute(i):!0;if(n&&c&&l&&w)return t;let p=e.createQuery();return p.objectIds=[c],(await e.queryFeatures(p))?.features[0]||null}async _ensureNecessaryAttributesAndGenerateTraceLocation(t,e){let{view:a}=this;if(!a||t.length===0){console.log(`${s} - No view or results to process.`);return}let r=t[0].graphic,o=await this._ensureNecessaryAttributes(r);if(!o){console.error(`${s} - Unable to get necessary attributes for trace location.`);return}this._generateTraceLocation(o,e)}_createFlagSymbol(){let{traceLocationType:t}=this,e=[244,21,21,.6],a=[21,244,21,.6];return t==="stopping-point"?new _({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new _({color:e,style:"square",size:12,outline:{color:e,width:0}}):new _({color:a,style:"circle",size:12,outline:{color:a,width:0}})}_addFlagGraphic(t,e,a){let{flagLayer:r,view:o}=this;if(!r||!o)return console.error(`${s} - Flag layer or view is not available.`),null;let i=e.geometry?.type;if(this.traceLocations?.some(l=>l.traceLocation.globalId===t)&&i!=="polyline")return console.warn(`${s} - A flag with the same globalId already exists.`),null;let n=this._createFlagSymbol(),c=new P({geometry:a,symbol:n,attributes:e.attributes});return r.add(c),c}async _generateItemTitle(t){let{messages:e}=this,a=(t.layer?.type,t.layer);return("getFeatureTitle"in a?await a.getFeatureTitle(t):null)||t?.getObjectId()?.toString()||e.labels.unknown}async _generateFlagInfo(t,e){let{traceLocationType:a,utilityNetwork:r}=this,o=t.getGlobalId()??"",i=t.geometry?.type,n=await this._generateItemTitle(t);if(i==="point"||i==="polygon"){let c=r?.getTerminalConfiguration(t),l=c?c.terminals[0].id:1;return{traceLocation:new A({type:a,isFilterBarrier:!1,globalId:o,terminalId:l}),flagProperties:{title:n,expanded:!1,terminalConfiguration:c??void 0,selectedTerminals:c?new Set([l]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(i==="polyline"){let c=this._calculatePercentAlong(t.geometry,e);return{traceLocation:new A({type:a,isFilterBarrier:!1,globalId:o,percentAlong:c}),flagProperties:{title:n,expanded:!1},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async _generateTraceLocation(t,e){let{traceLocations:a}=this,r=t.getGlobalId()??"",o=t.geometry?.type,i=await this._generateFlagInfo(t,e);if(!i){console.error(`${s} - Unable to generate flag info for trace location.`);return}let n=a?.filter(c=>c.spatialProperties.mapGraphic?.getGlobalId()===r)??[];if(n.length===0||o==="polyline"){if(o==="polyline"&&n.length>0&&n.some(l=>Math.abs(l.traceLocation.percentAlong-i.traceLocation.percentAlong)<=this.spatialTolerance)){console.warn(`${s} - A flag with the same globalId already exists within tolerance.`);return}let c=this._addFlagGraphic(r,t,e);if(!c){console.warn(`${s} - Unable to add flag graphic.`);return}i.spatialProperties.flagGraphic=c,a?.add(i);return}console.warn(`${s} - A flag with the same globalId already exists.`)}async _hitTest(t){let{view:e,utilityNetwork:a}=this;if(!e||!a){console.error(`${s} - View or utility network is not available for hit test.`);return}let r=t.graphic?.geometry,o=this.view?.toScreen(r);if(!o){console.warn(`${s} - No screen point available for hit test.`);return}let i=(await e.hitTest(o,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(i.length===0){console.log(`${s} - No usable hit test results found.`);return}this._ensureNecessaryAttributesAndGenerateTraceLocation(i,r)}_resetAfterSketch(){let{view:t}=this;if(!t){console.error(`${s} - View is not available to reset after sketch.`);return}this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in t&&t.acquireCursor("default"),this.arcgisTraceLocationSelectEnd.emit()}_handleSketchComplete(t){let{sketchViewModel:e,view:a}=this;if(!e||!a){console.error(`${s} - SketchViewModel or view is not available on sketch complete.`);return}t.state==="complete"&&t.graphic&&(e.layer.remove(t.graphic),this._hitTest(t)),(t.state==="cancel"||t.state==="complete")&&this._resetAfterSketch()}_handleAddButtonClick(){let{view:t,sketchViewModel:e}=this;t&&e&&(this._clickHandler?.remove(),this._clickHandler=e.on("create",this._handleSketchComplete.bind(this)),"acquireCursor"in t&&t.acquireCursor("crosshair"),this.sketchViewModel?.create("point"),this.arcgisTraceLocationSelectStart.emit())}_handleClearButtonClick(){let{flagLayer:t,traceLocations:e}=this;e?.forEach(a=>{a.spatialProperties.flagGraphic&&t&&t.remove(a.spatialProperties.flagGraphic)}),e?.removeAll()}renderAddLocationBlock(){let{traceLocationType:t,messages:e,traceLocations:a}=this,r=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,o=r.heading,i=r.description,n=r.buttonText;return d`<calcite-block .heading=${o} .label=${o} expanded .description=${i}>${a?.length?d`<calcite-button class=${g(m.clearButton)} slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button>`:null}<arcgis-utility-network-trace-location-list .traceLocations=${a} .traceLocationType=${t}></arcgis-utility-network-trace-location-list><div class=${g(m.buttonContainer)}><calcite-button class=${g(m.addLocationButton)} icon-start=select appearance=outline .label=${n} @click=${()=>this._handleAddButtonClick()}>${n}</calcite-button></div></calcite-block>`}render(){return d`<div class=${g(m.base)}>${this.renderAddLocationBlock()}</div>`}};T("arcgis-utility-network-trace-location",L);return L},"geometry/Polyline","geometry/SpatialReference","rest/networks/support/TraceLocation","Graphic","symbols","geometry/operators/projectOperator","geometry/operators/cutOperator","geometry/operators/lengthOperator")
3
+ v5.0.0-next.74 */
4
+ import{a as x}from"./Y2MCFATG.js";import"./BJLP3ZG2.js";import"./O6KK4XHY.js";import"./LPWF4YQF.js";import{I as v,J as g,O as T,a as $,b as d,s as y}from"./ABFWLIKD.js";import"./6QBSNPIZ.js";export default $arcgis.t(([S,G,A,P,{SimpleMarkerSymbol:_},u,I,b])=>{var F=$`.arcgis-utility-network-trace-location calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.arcgis-utility-network-trace-location calcite-notice{padding:var(--calcite-spacing-xs)}.arcgis-utility-network-trace-location__add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.arcgis-utility-network-trace-location__button-container{justify-content:center;display:grid}.arcgis-utility-network-trace-location__clear-button{--calcite-button-border-color: transparent}`,f="arcgis-utility-network-trace-location",m={base:f,buttonContainer:`${f}__button-container`,clearButton:`${f}__clear-button`,addLocationButton:`${f}__add-location-button`},s="map-components:utility-network-trace-location",L=class extends v{constructor(){super(...arguments),this.messages=x({blocking:!0}),this.traceLocationType="starting-point",this.spatialTolerance=.05,this.arcgisTraceLocationChange=y(),this.arcgisTraceLocationSelectEnd=y(),this.arcgisTraceLocationSelectStart=y()}static{this.properties={view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,flagLayer:0,spatialTolerance:9,utilityNetwork:0}}static{this.styles=F}async load(){u.isLoaded()||await u.load()}_createPolyline(t,e){return new S({hasZ:!1,hasM:!0,paths:t,spatialReference:new G({wkid:e})})}_calculatePercentAlong(t,e){let a=t.spatialReference,r=this._createPolyline(t.paths,a.wkid),o=e.x-.5,i=e.x+.5,n=e.y-.5,c=e.y+.5,l=[[[o,n],[i,c]]],w=this._createPolyline(l,e.spatialReference.wkid),p=u.execute(w,a);if(!p)return console.error(`${s} - Unable to project flag geometry to source geometry spatial reference.`),.5;let h=I.execute(r,p);if(h.length>0){let C=b.execute(r,{unit:"feet"}),k;return h[0].paths[0][0][0]===r.paths[0][0][0]?k=b.execute(h[0],{unit:"feet"}):k=b.execute(h[1],{unit:"feet"}),k/C}return console.warn(`${s} - Unable to cut the source geometry with the flag geometry.`),.5}async _ensureNecessaryAttributes(t){let e=(t.layer?.type,t.layer),a=e.fieldsIndex?.get("assetgroup")??!1,r=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",o=e.fieldsIndex?.get("assettype")??!1,i=e.fieldsIndex?.get("assettype")?.name??"assettype",n=t.getGlobalId(),c=t.getObjectId(),l=a?!!t.getAttribute(r):!0,w=o?!!t.getAttribute(i):!0;if(n&&c&&l&&w)return t;let p=e.createQuery();return p.objectIds=[c],(await e.queryFeatures(p))?.features[0]||null}async _ensureNecessaryAttributesAndGenerateTraceLocation(t,e){let{view:a}=this;if(!a||t.length===0){console.log(`${s} - No view or results to process.`);return}let r=t[0].graphic,o=await this._ensureNecessaryAttributes(r);if(!o){console.error(`${s} - Unable to get necessary attributes for trace location.`);return}this._generateTraceLocation(o,e)}_createFlagSymbol(){let{traceLocationType:t}=this,e=[244,21,21,.6],a=[21,244,21,.6];return t==="stopping-point"?new _({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new _({color:e,style:"square",size:12,outline:{color:e,width:0}}):new _({color:a,style:"circle",size:12,outline:{color:a,width:0}})}_addFlagGraphic(t,e,a){let{flagLayer:r,view:o}=this;if(!r||!o)return console.error(`${s} - Flag layer or view is not available.`),null;let i=e.geometry?.type;if(this.traceLocations?.some(l=>l.traceLocation.globalId===t)&&i!=="polyline")return console.warn(`${s} - A flag with the same globalId already exists.`),null;let n=this._createFlagSymbol(),c=new P({geometry:a,symbol:n,attributes:e.attributes});return r.add(c),c}async _generateItemTitle(t){let{messages:e}=this,a=(t.layer?.type,t.layer);return("getFeatureTitle"in a?await a.getFeatureTitle(t):null)||t?.getObjectId()?.toString()||e.labels.unknown}async _generateFlagInfo(t,e){let{traceLocationType:a,utilityNetwork:r}=this,o=t.getGlobalId()??"",i=t.geometry?.type,n=await this._generateItemTitle(t);if(i==="point"||i==="polygon"){let c=r?.getTerminalConfiguration(t),l=c?c.terminals[0].id:1;return{traceLocation:new A({type:a,isFilterBarrier:!1,globalId:o,terminalId:l}),flagProperties:{title:n,expanded:!1,terminalConfiguration:c??void 0,selectedTerminals:c?new Set([l]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(i==="polyline"){let c=this._calculatePercentAlong(t.geometry,e);return{traceLocation:new A({type:a,isFilterBarrier:!1,globalId:o,percentAlong:c}),flagProperties:{title:n,expanded:!1},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async _generateTraceLocation(t,e){let{traceLocations:a}=this,r=t.getGlobalId()??"",o=t.geometry?.type,i=await this._generateFlagInfo(t,e);if(!i){console.error(`${s} - Unable to generate flag info for trace location.`);return}let n=a?.filter(c=>c.spatialProperties.mapGraphic?.getGlobalId()===r)??[];if(n.length===0||o==="polyline"){if(o==="polyline"&&n.length>0&&n.some(l=>Math.abs(l.traceLocation.percentAlong-i.traceLocation.percentAlong)<=this.spatialTolerance)){console.warn(`${s} - A flag with the same globalId already exists within tolerance.`);return}let c=this._addFlagGraphic(r,t,e);if(!c){console.warn(`${s} - Unable to add flag graphic.`);return}i.spatialProperties.flagGraphic=c,a?.add(i);return}console.warn(`${s} - A flag with the same globalId already exists.`)}async _hitTest(t){let{view:e,utilityNetwork:a}=this;if(!e||!a){console.error(`${s} - View or utility network is not available for hit test.`);return}let r=t.graphic?.geometry,o=this.view?.toScreen(r);if(!o){console.warn(`${s} - No screen point available for hit test.`);return}let i=(await e.hitTest(o,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(i.length===0){console.log(`${s} - No usable hit test results found.`);return}this._ensureNecessaryAttributesAndGenerateTraceLocation(i,r)}_resetAfterSketch(){let{view:t}=this;if(!t){console.error(`${s} - View is not available to reset after sketch.`);return}this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in t&&t.acquireCursor("default"),this.arcgisTraceLocationSelectEnd.emit()}_handleSketchComplete(t){let{sketchViewModel:e,view:a}=this;if(!e||!a){console.error(`${s} - SketchViewModel or view is not available on sketch complete.`);return}t.state==="complete"&&t.graphic&&(e.layer.remove(t.graphic),this._hitTest(t)),(t.state==="cancel"||t.state==="complete")&&this._resetAfterSketch()}_handleAddButtonClick(){let{view:t,sketchViewModel:e}=this;t&&e&&(this._clickHandler?.remove(),this._clickHandler=e.on("create",this._handleSketchComplete.bind(this)),"acquireCursor"in t&&t.acquireCursor("crosshair"),this.sketchViewModel?.create("point"),this.arcgisTraceLocationSelectStart.emit())}_handleClearButtonClick(){let{flagLayer:t,traceLocations:e}=this;e?.forEach(a=>{a.spatialProperties.flagGraphic&&t&&t.remove(a.spatialProperties.flagGraphic)}),e?.removeAll()}renderAddLocationBlock(){let{traceLocationType:t,messages:e,traceLocations:a}=this,r=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,o=r.heading,i=r.description,n=r.buttonText;return d`<calcite-block .heading=${o} .label=${o} expanded .description=${i}>${a?.length?d`<calcite-button class=${g(m.clearButton)} slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button>`:null}<arcgis-utility-network-trace-location-list .traceLocations=${a} .traceLocationType=${t}></arcgis-utility-network-trace-location-list><div class=${g(m.buttonContainer)}><calcite-button class=${g(m.addLocationButton)} icon-start=select appearance=outline .label=${n} @click=${()=>this._handleAddButtonClick()}>${n}</calcite-button></div></calcite-block>`}render(){return d`<div class=${g(m.base)}>${this.renderAddLocationBlock()}</div>`}};T("arcgis-utility-network-trace-location",L);return L},"geometry/Polyline","geometry/SpatialReference","rest/networks/support/TraceLocation","Graphic","symbols","geometry/operators/projectOperator","geometry/operators/cutOperator","geometry/operators/lengthOperator")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{f as r}from"./E3VVCZY7.js";import{P as o}from"./WYMKN43C.js";var s=r(o);export{s as a};
3
+ v5.0.0-next.74 */
4
+ import{f as r}from"./BJLP3ZG2.js";import{P as o}from"./ABFWLIKD.js";var s=r(o);export{s as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{I as r,O as d,b as i}from"./WYMKN43C.js";import"./DRNRJYXF.js";export default $arcgis.t(([{watch:u}])=>{function v(a){return a.followingMode==="none"?"circle-disallowed":a.followingMode==="follow-sensor"?"zoom-to-object":a.followingMode==="follow-frame"?"follow":"video"}var n=class extends r{constructor(){super(...arguments),this._disabled=!1}static{this.properties={_disabled:16,viewModel:0,toggleMetadata:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.state,e=>{this._disabled=e==="not-ready"||e==="waiting"},{initial:!0})])}render(){let{viewModel:e,messages:l,_disabled:o}=this,t=e.currentTime>0,c=!!e.layer?.telemetry?.sensorLocation,m=!!e.layer?.telemetry?.sensorTrail,g=!!e.layer?.telemetry?.lineOfSight,$=!!e.layer?.telemetry?.frameCenter,s=!!e.layer?.telemetry?.frameOutline,f=!!e.layer?.groundControlPoints,y=i`<div><calcite-popover auto-close .label=${l.layers} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=layers-action scale=s><calcite-panel .heading=${l.layers}><calcite-list .label=${l.layers} selection-mode=multiple><calcite-list-item .disabled=${t&&!c} .label=${l.sensor} @click=${()=>{e.toggleSensorDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorLocation}></calcite-list-item><calcite-list-item .disabled=${t&&!g} .label=${l.sightLine} @click=${()=>{e.toggleSensorSightLineDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.lineOfSight}></calcite-list-item><calcite-list-item .disabled=${t&&!m} .label=${l.sensorTrail} @click=${()=>{e.toggleSensorTrailDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorTrail}></calcite-list-item><calcite-list-item .disabled=${t&&!$} .label=${l.frameCenter} @click=${()=>{e.toggleFrameCenterDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frameCenter}></calcite-list-item><calcite-list-item .disabled=${t&&!s} .label=${l.frameOutline} @click=${()=>{e.toggleFrameOutlineDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frameOutline}></calcite-list-item><calcite-list-item .disabled=${t&&!f} .label=${l.frame} @click=${()=>{e.toggleFrameDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frame}></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} icon=layers id=layers-action scale=s slot=trigger .text=${l.layers}></calcite-action></div>`,p=i`<div><calcite-popover auto-close .label=${l.follow} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=follow-action scale=s><calcite-panel .heading=${l.follow}><calcite-list .label=${l.follow} selection-mode=single><calcite-list-item .label=${l.none} @click=${()=>{e.followingMode="none"}} .selected=${e.followingMode==="none"}><calcite-icon icon=circle-disallowed scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!c} .label=${l.sensor} @click=${()=>{e.followingMode="follow-sensor"}} .selected=${e.followingMode==="follow-sensor"}><calcite-icon icon=zoom-to-object scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!s} .label=${l.frame} @click=${()=>{e.followingMode="follow-frame"}} .selected=${e.followingMode==="follow-frame"}><calcite-icon icon=follow scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!s&&!c} .label=${l.video} @click=${()=>{e.followingMode="follow-both"}} .selected=${e.followingMode==="follow-both"}><calcite-icon icon=video scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} .icon=${v(e)} id=follow-action scale=s slot=trigger .text=${l.follow}></calcite-action></div>`,b=i`<arcgis-video-player-settings .messages=${l} .viewModel=${e}></arcgis-video-player-settings>`,w=i`<calcite-action alignment=center .disabled=${o} icon=feature-details @click=${()=>this.toggleMetadata()} scale=s .text=${l.metadata}></calcite-action>`;return i`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[y,p,b,w]}</calcite-action-bar>`}};d("arcgis-video-player-controls-group",n);return n},"core/reactiveUtils")
3
+ v5.0.0-next.74 */
4
+ import{I as r,O as d,b as i}from"./ABFWLIKD.js";import"./6QBSNPIZ.js";export default $arcgis.t(([{watch:u}])=>{function v(a){return a.followingMode==="none"?"circle-disallowed":a.followingMode==="follow-sensor"?"zoom-to-object":a.followingMode==="follow-frame"?"follow":"video"}var n=class extends r{constructor(){super(...arguments),this._disabled=!1}static{this.properties={_disabled:16,viewModel:0,toggleMetadata:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.state,e=>{this._disabled=e==="not-ready"||e==="waiting"},{initial:!0})])}render(){let{viewModel:e,messages:l,_disabled:o}=this,t=e.currentTime>0,c=!!e.layer?.telemetry?.sensorLocation,m=!!e.layer?.telemetry?.sensorTrail,g=!!e.layer?.telemetry?.lineOfSight,$=!!e.layer?.telemetry?.frameCenter,s=!!e.layer?.telemetry?.frameOutline,f=!!e.layer?.groundControlPoints,y=i`<div><calcite-popover auto-close .label=${l.layers} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=layers-action scale=s><calcite-panel .heading=${l.layers}><calcite-list .label=${l.layers} selection-mode=multiple><calcite-list-item .disabled=${t&&!c} .label=${l.sensor} @click=${()=>{e.toggleSensorDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorLocation}></calcite-list-item><calcite-list-item .disabled=${t&&!g} .label=${l.sightLine} @click=${()=>{e.toggleSensorSightLineDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.lineOfSight}></calcite-list-item><calcite-list-item .disabled=${t&&!m} .label=${l.sensorTrail} @click=${()=>{e.toggleSensorTrailDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.sensorTrail}></calcite-list-item><calcite-list-item .disabled=${t&&!$} .label=${l.frameCenter} @click=${()=>{e.toggleFrameCenterDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frameCenter}></calcite-list-item><calcite-list-item .disabled=${t&&!s} .label=${l.frameOutline} @click=${()=>{e.toggleFrameOutlineDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frameOutline}></calcite-list-item><calcite-list-item .disabled=${t&&!f} .label=${l.frame} @click=${()=>{e.toggleFrameDisplay()}} .selected=${!!e.layer?.telemetryDisplay?.frame}></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} icon=layers id=layers-action scale=s slot=trigger .text=${l.layers}></calcite-action></div>`,p=i`<div><calcite-popover auto-close .label=${l.follow} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=follow-action scale=s><calcite-panel .heading=${l.follow}><calcite-list .label=${l.follow} selection-mode=single><calcite-list-item .label=${l.none} @click=${()=>{e.followingMode="none"}} .selected=${e.followingMode==="none"}><calcite-icon icon=circle-disallowed scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!c} .label=${l.sensor} @click=${()=>{e.followingMode="follow-sensor"}} .selected=${e.followingMode==="follow-sensor"}><calcite-icon icon=zoom-to-object scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!s} .label=${l.frame} @click=${()=>{e.followingMode="follow-frame"}} .selected=${e.followingMode==="follow-frame"}><calcite-icon icon=follow scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t&&!s&&!c} .label=${l.video} @click=${()=>{e.followingMode="follow-both"}} .selected=${e.followingMode==="follow-both"}><calcite-icon icon=video scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} .icon=${v(e)} id=follow-action scale=s slot=trigger .text=${l.follow}></calcite-action></div>`,b=i`<arcgis-video-player-settings .messages=${l} .viewModel=${e}></arcgis-video-player-settings>`,w=i`<calcite-action alignment=center .disabled=${o} icon=feature-details @click=${()=>this.toggleMetadata()} scale=s .text=${l.metadata}></calcite-action>`;return i`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[y,p,b,w]}</calcite-action-bar>`}};d("arcgis-video-player-controls-group",n);return n},"core/reactiveUtils")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{c as u}from"./E3VVCZY7.js";import{t as h}from"./WYMKN43C.js";var i=class o{constructor(){this._groups=new Map}destroy(){this.removeAll()}add(r,s){if(Array.isArray(r)){let e=this._getOrCreateGroup(s);for(let t of r)this._isHandle(t)&&e.push(t)}else this._isHandle(r)&&this._getOrCreateGroup(s).push(r);return this}forEach(r,s){if(typeof r=="function")this._groups.forEach(e=>e.forEach(r));else{let e=this._getGroup(r);e&&s&&e.forEach(s)}}has(r){return this._groups.has(this._ensureGroupKey(r))}remove(r){if(typeof r!="string"&&Array.isArray(r)){for(let s of r)this.remove(s);return this}return this.has(r)?(this._removeAllFromGroup(this._getGroup(r)),this._groups.delete(this._ensureGroupKey(r)),this):this}removeAll(){return this._groups.forEach(r=>this._removeAllFromGroup(r)),this._groups.clear(),this}_isHandle(r){return r&&(!!r.remove||r instanceof o)}_getOrCreateGroup(r){if(this.has(r))return this._getGroup(r);let s=[];return this._groups.set(this._ensureGroupKey(r),s),s}_getGroup(r){return this._groups.get(this._ensureGroupKey(r))}_ensureGroupKey(r){return r||"_default_"}_removeAllFromGroup(r){for(let s of r)s instanceof o?s.removeAll():s.remove()}},n=class extends h{constructor(r){super(),this.destroyed=!1,r==="disconnect"?this.onDisconnected(()=>this.removeAllHandles()):this.onDestroy(()=>this.destroy())}addHandles(r,s){if(this.destroyed){let e=Array.isArray(r)?r:[r];for(let t of e)t.remove();return}this._handles??=new i,this._handles.add(r,s)}removeHandles(r){this._handles?.remove(r)}removeAllHandles(){this._handles?.removeAll()}destroy(){this.destroyed=!0,this.removeAllHandles()}hasHandles(r){return this._handles?.has(r)??!1}},l=u(n);export{l as a};
3
+ v5.0.0-next.74 */
4
+ import{c as u}from"./BJLP3ZG2.js";import{t as h}from"./ABFWLIKD.js";var i=class o{constructor(){this._groups=new Map}destroy(){this.removeAll()}add(r,s){if(Array.isArray(r)){let e=this._getOrCreateGroup(s);for(let t of r)this._isHandle(t)&&e.push(t)}else this._isHandle(r)&&this._getOrCreateGroup(s).push(r);return this}forEach(r,s){if(typeof r=="function")this._groups.forEach(e=>e.forEach(r));else{let e=this._getGroup(r);e&&s&&e.forEach(s)}}has(r){return this._groups.has(this._ensureGroupKey(r))}remove(r){if(typeof r!="string"&&Array.isArray(r)){for(let s of r)this.remove(s);return this}return this.has(r)?(this._removeAllFromGroup(this._getGroup(r)),this._groups.delete(this._ensureGroupKey(r)),this):this}removeAll(){return this._groups.forEach(r=>this._removeAllFromGroup(r)),this._groups.clear(),this}_isHandle(r){return r&&(!!r.remove||r instanceof o)}_getOrCreateGroup(r){if(this.has(r))return this._getGroup(r);let s=[];return this._groups.set(this._ensureGroupKey(r),s),s}_getGroup(r){return this._groups.get(this._ensureGroupKey(r))}_ensureGroupKey(r){return r||"_default_"}_removeAllFromGroup(r){for(let s of r)s instanceof o?s.removeAll():s.remove()}},n=class extends h{constructor(r){super(),this.destroyed=!1,r==="disconnect"?this.onDisconnected(()=>this.removeAllHandles()):this.onDestroy(()=>this.destroy())}addHandles(r,s){if(this.destroyed){let e=Array.isArray(r)?r:[r];for(let t of e)t.remove();return}this._handles??=new i,this._handles.add(r,s)}removeHandles(r){this._handles?.remove(r)}removeAllHandles(){this._handles?.removeAll()}destroy(){this.destroyed=!0,this.removeAllHandles()}hasHandles(r){return this._handles?.has(r)??!1}},l=u(n);export{l as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import{b as g,c as x}from"./U3XUSGDP.js";import{a as c}from"./CQ6SZF62.js";import{a as o}from"./IA7GKY4R.js";import{I as d,J as p,O as m,a as n,b as i}from"./WYMKN43C.js";import"./DRNRJYXF.js";var f=n`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}.label{display:block}.discrete-label-text{font-weight:var(--calcite-font-weight-medium);opacity:var(--calcite-opacity-disabled)}.label-open{&:not(.label-empty){margin-bottom:var(--calcite-spacing-xs)}.discrete-label-text{opacity:1}}arcgis-shadow-cast-discrete-config{padding:0 var(--calcite-spacing-xs)}`,r=class extends d{constructor(){super(...arguments),this.scale="s",this.minThreshold=0,this.maxThreshold=c(8,"hours","milliseconds"),this.hideColorPicker=!1,this.hideSlider=!1,this.hideContextOptions=!1,this.hideContextToggle=!1,this.hideContextColorPicker=!1,this.hideContextInterval=!1}static{this.properties={options:0,scale:1,minThreshold:9,maxThreshold:9,messages:0,hideColorPicker:5,hideSlider:5,hideContextOptions:5,hideContextToggle:5,hideContextColorPicker:5,hideContextInterval:5}}static{this.styles=f}render(){let{options:l,scale:s}=this,e=this.messages?.threshold;return i`${o({hidden:this.hideSlider,children:i`<calcite-label .scale=${s}>${e?.thresholdLabel}<calcite-slider fill-placement=end .labelFormatter=${t=>Math.round(c(t,"milliseconds","hours")).toFixed(0)} label-ticks .max=${this.maxThreshold} .min=${this.minThreshold} snap .step=${x} .scale=${s} .ticks=${g} .value=${l.threshold} @calciteSliderInput=${t=>{l.threshold=t.currentTarget.value}}></calcite-slider></calcite-label>`})}${o({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${this.options.color} .label=${e?.colorLabel} @arcgisColorChanged=${t=>{l.color=t.detail}}></arcgis-color-select>`})}${o({hidden:this.hideContextOptions,children:this._renderContextOptions()})}`}_renderContextOptions(){let{options:l,scale:s}=this,e=l.contextEnabled,t=this.messages?.threshold,a=!this.hideContextToggle,C=!this.hideContextColorPicker,$=!this.hideContextInterval,h=C||$;if(!(!a&&(!e||!h)))return i`<div><calcite-label class=${p({label:!0,"label-open":e,"label-empty":!h})} .layout=${a?"inline-space-between":"default"} .scale=${s}><span class="discrete-label-text">${t?.discreteLabel??"foo"}</span>${o({hidden:!a,children:i`<calcite-switch .checked=${e} .scale=${s} @calciteSwitchChange=${b=>{this.options.contextEnabled=b.target.checked}}></calcite-switch>`})}</calcite-label>${o({hidden:!e,children:i`<arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideContextColorPicker} .hideInterval=${this.hideContextInterval} .messages=${this.messages} .options=${this.options.contextOptions} .scale=${s}></arcgis-shadow-cast-discrete-config>`})}</div>`}};m("arcgis-shadow-cast-threshold-config",r);export{r as ArcgisShadowCastThresholdConfig};
3
+ v5.0.0-next.74 */
4
+ import{b as g,c as x}from"./MJGRJIWF.js";import{a as c}from"./IXQX5TRT.js";import{a as o}from"./VWJRY4FT.js";import{I as d,J as p,O as m,a as n,b as i}from"./ABFWLIKD.js";import"./6QBSNPIZ.js";var f=n`:host{--calcite-label-margin-bottom: 0;gap:var(--calcite-spacing-md);flex-direction:column;display:flex}.label{display:block}.discrete-label-text{font-weight:var(--calcite-font-weight-medium);opacity:var(--calcite-opacity-disabled)}.label-open{&:not(.label-empty){margin-bottom:var(--calcite-spacing-xs)}.discrete-label-text{opacity:1}}arcgis-shadow-cast-discrete-config{padding:0 var(--calcite-spacing-xs)}`,r=class extends d{constructor(){super(...arguments),this.scale="s",this.minThreshold=0,this.maxThreshold=c(8,"hours","milliseconds"),this.hideColorPicker=!1,this.hideSlider=!1,this.hideContextOptions=!1,this.hideContextToggle=!1,this.hideContextColorPicker=!1,this.hideContextInterval=!1}static{this.properties={options:0,scale:1,minThreshold:9,maxThreshold:9,messages:0,hideColorPicker:5,hideSlider:5,hideContextOptions:5,hideContextToggle:5,hideContextColorPicker:5,hideContextInterval:5}}static{this.styles=f}render(){let{options:l,scale:s}=this,e=this.messages?.threshold;return i`${o({hidden:this.hideSlider,children:i`<calcite-label .scale=${s}>${e?.thresholdLabel}<calcite-slider fill-placement=end .labelFormatter=${t=>Math.round(c(t,"milliseconds","hours")).toFixed(0)} label-ticks .max=${this.maxThreshold} .min=${this.minThreshold} snap .step=${x} .scale=${s} .ticks=${g} .value=${l.threshold} @calciteSliderInput=${t=>{l.threshold=t.currentTarget.value}}></calcite-slider></calcite-label>`})}${o({hidden:this.hideColorPicker,children:i`<arcgis-color-select .color=${this.options.color} .label=${e?.colorLabel} @arcgisColorChanged=${t=>{l.color=t.detail}}></arcgis-color-select>`})}${o({hidden:this.hideContextOptions,children:this._renderContextOptions()})}`}_renderContextOptions(){let{options:l,scale:s}=this,e=l.contextEnabled,t=this.messages?.threshold,a=!this.hideContextToggle,C=!this.hideContextColorPicker,$=!this.hideContextInterval,h=C||$;if(!(!a&&(!e||!h)))return i`<div><calcite-label class=${p({label:!0,"label-open":e,"label-empty":!h})} .layout=${a?"inline-space-between":"default"} .scale=${s}><span class="discrete-label-text">${t?.discreteLabel??"foo"}</span>${o({hidden:!a,children:i`<calcite-switch .checked=${e} .scale=${s} @calciteSwitchChange=${b=>{this.options.contextEnabled=b.target.checked}}></calcite-switch>`})}</calcite-label>${o({hidden:!e,children:i`<arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideContextColorPicker} .hideInterval=${this.hideContextInterval} .messages=${this.messages} .options=${this.options.contextOptions} .scale=${s}></arcgis-shadow-cast-discrete-config>`})}</div>`}};m("arcgis-shadow-cast-threshold-config",r);export{r as ArcgisShadowCastThresholdConfig};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.72 */
4
- import c from"./2JEK54GF.js";import a from"./VIW2MBV2.js";import{a as F}from"./DTXREBKJ.js";import{g as L}from"./E3VVCZY7.js";import{b as E}from"./OGJPLGAN.js";import{H as M,I as x,J as l,L as _,O as b,a as y,b as o,s as I}from"./WYMKN43C.js";export default $arcgis.t(([H,{substitute:B},Z,{watch:P},{stripHTML:U},T,{b:A,c:V,d:R,e:k,f:D,j:N,q:h}])=>{var z=y`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.arcgis-feature{flex:1 1 auto}.arcgis-feature calcite-icon{box-sizing:content-box}.arcgis-feature__loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.arcgis-feature__content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.arcgis-feature__content-element:only-child,.arcgis-feature__content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.arcgis-feature__last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`,f="arcgis-feature",d={base:f,container:`${f}__size-container`,main:`${f}__main-container`,contentElement:`${f}__content-element`,lastEditedInfo:`${f}__last-edited-info`,loadingSpinnerContainer:`${f}__loading-container`},S=T(H),C=class extends x{constructor(){super(...arguments),this.messages=F(),this._rootFlowNode=null,this.flowType="feature",this.internalFlowItems=new Z,this.viewModel=S(this),this.view=this.viewModel.view,this.icon="icon",this.isFeatureFromTable=this.viewModel.isFeatureFromTable,this.graphic=this.viewModel.graphic,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.headingLevel=2,this.spatialReference=this.viewModel.spatialReference,this.timeZone=this.viewModel.timeZone,this.heading=this.viewModel.title,this.map=this.viewModel.map,this.chartAnimationDisabled=this.viewModel.abilities.chartAnimation,this.hideHeading=!1,this.hideContent=!1,this.hideAttachmentsContent=!1,this.hideCustomContent=!1,this.hideExpressionContent=!1,this.hideFieldsContent=!1,this.hideMediaContent=!1,this.showRelationshipContent=!1,this.hideTextContent=!1,this.showUtilityNetworkContent=!1,this.hideLastEditedInfo=!1,this.autoDestroyDisabled=!1,this.location=this.viewModel.location,this.state=this.viewModel.state,this.arcgisPropertyChange=L()("flowItems","state"),this.arcgisReady=I()}static{this.properties={flowType:16,popupTemplate:16,sourceLayer:16,fieldInfoMap:16,values:16,globalValues:16,internalFlowItems:16,viewModel:0,view:0,flowItems:0,referenceElement:1,position:3,icon:1,isFeatureFromTable:4,graphic:0,defaultPopupTemplateEnabled:5,headingLevel:9,spatialReference:0,timeZone:1,heading:0,map:0,chartAnimationDisabled:5,hideHeading:5,hideTitle:5,hideContent:5,hideAttachmentsContent:5,hideContentAttachments:5,hideCustomContent:5,hideExpressionContent:5,hideContentExpression:5,hideFieldsContent:5,hideContentFields:5,hideMediaContent:5,hideContentMedia:5,showRelationshipContent:5,hideTextContent:5,hideContentText:5,showUtilityNetworkContent:5,hideLastEditedInfo:5,hideLastEditInfo:5,autoDestroyDisabled:5,messageOverrides:0,label:1,location:0,state:3}}static{this.styles=z}get popupTemplate(){return R(this.graphic,this.defaultPopupTemplateEnabled)??void 0}get sourceLayer(){return k(this.graphic)}get fieldInfoMap(){return A(V(this.popupTemplate),this.sourceLayer)}get values(){return this.graphic?.attributes??{}}get globalValues(){return this.viewModel.formattedAttributes?.global??{}}get hideTitle(){return this.hideHeading}set hideTitle(e){this.hideHeading=e}get hideContentAttachments(){return this.hideAttachmentsContent}set hideContentAttachments(e){this.hideAttachmentsContent=e}get hideContentExpression(){return this.hideExpressionContent}set hideContentExpression(e){this.hideExpressionContent=e}get hideContentFields(){return this.hideFieldsContent}set hideContentFields(e){this.hideFieldsContent=e}get hideContentMedia(){return this.hideMediaContent}set hideContentMedia(e){this.hideMediaContent=e}get hideContentText(){return this.hideTextContent}set hideContentText(e){this.hideTextContent=e}get hideLastEditInfo(){return this.hideLastEditedInfo}set hideLastEditInfo(e){this.hideLastEditedInfo=e}async destroy(){await this.manager.destroy()}async nextMedia(e){return this.viewModel.nextMedia(e)}async previousMedia(e){return this.viewModel.previousMedia(e)}async setActiveMedia(e,t){return this.viewModel.setActiveMedia(e,t)}async updateGeometry(){return await this.viewModel.updateGeometry()}loaded(){this.manager.onLifecycle(()=>[P(()=>[this.internalFlowItems?.length],()=>this._setFocus())])}_removeFlowItems(){this.internalFlowItems?.removeAll()}_storeRootFlowNode(e){this._rootFlowNode=e}_setFocus(){this._rootFlowNode?.setFocus()}_handleDrillInBackClick(){this.internalFlowItems?.pop()}render(){let{state:e}=this.viewModel,t=o`<div class=${l(d.container)}>${e==="error"?this._renderError():e==="loading"?this._renderLoading():this._renderContentContainer()}</div>`;return o`<div class=${l(d.base)}>${t}</div>`}_renderError(){let{messages:e,hideHeading:t}=this;return o`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t?null:o`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`}_renderLoading(){return o`<div class=${l(d.loadingSpinnerContainer)}><calcite-loader inline label></calcite-loader></div>`}_renderAttachments(e){let{values:t,fieldInfoMap:i,sourceLayer:n,globalValues:a}=this,s=h({values:t,fieldInfoMap:i,globalValues:a,layer:n,text:e.title}),r=h({values:t,fieldInfoMap:i,globalValues:a,layer:n,text:e.description});return o`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${s} .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords??void 0} .attachmentTypes=${e.attachmentTypes??void 0} .graphic=${this.graphic??void 0} .description=${r} .messages=${this.messages}></arcgis-feature-attachments>`}_renderCustom(e){return o`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer??void 0} .graphic=${this.graphic??void 0} class=${l(d.contentElement)}></arcgis-feature-content>`}_renderFields(e,t){let i=this.viewModel.formattedAttributes,{values:n,fieldInfoMap:a,sourceLayer:s,popupTemplate:r,globalValues:c,graphic:p}=this,u=!!e?.fieldInfos,m=(e.fieldInfos??r?.fieldInfos??[])?.filter(({fieldName:g})=>!!g&&(N(g)||D(g)||g in n)),v=r?.expressionInfos,$=h({values:n,fieldInfoMap:a,globalValues:c,layer:s,text:e.title}),w=h({values:n,fieldInfoMap:a,globalValues:c,layer:s,text:e.description});return o`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${$} class=${l(d.contentElement)} .messages=${this.messages} .graphic=${p??void 0} .isContentFieldInfos=${u} .layer=${s} .description=${w} .values=${{...i?.global,...i?.content?.[t]}} .fieldInfos=${m} .expressionInfos=${v??void 0}></arcgis-feature-fields>`}_renderMedia(e,t){let{values:i,graphic:n,fieldInfoMap:a,sourceLayer:s,popupTemplate:r,globalValues:c}=this,{formattedAttributes:p,relatedInfos:u}=this.viewModel,m={...p?.global,...p?.content?.[t]},v=h({values:i,fieldInfoMap:a,globalValues:c,layer:s,text:e.title}),$=h({values:i,fieldInfoMap:a,globalValues:c,layer:s,text:e.description});return o`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex??0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${v} class=${l(d.contentElement)} .description=${$} .values=${i} .layer=${s} .graphic=${n??void 0} .messages=${this.messages} .fieldInfoMap=${a} .mediaInfos=${e.mediaInfos??[]} .popupTemplate=${r??void 0} .relatedInfos=${u} .formattedValues=${m}></arcgis-feature-media>`}_renderText(e){let{values:t,fieldInfoMap:i,sourceLayer:n,globalValues:a}=this,s=h({values:t,fieldInfoMap:i,globalValues:a,layer:n,text:e.text});return o`<arcgis-feature-content .creator=${s} .graphic=${this.graphic??void 0} class=${l(d.contentElement)}></arcgis-feature-content>`}_renderExpression(e,t){let i=this.viewModel.formattedAttributes,{fieldInfoMap:n}=this;return o`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map??void 0} .spatialReference=${this.spatialReference??void 0} .view=${this.viewModel.view??void 0} .graphic=${this.graphic??void 0} .location=${this.location??void 0} .headingLevel=${this.headingLevel} class=${l(d.contentElement)} .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${n} .values=${{...i?.global,...i?.content?.[t]}}></arcgis-feature-expression>`}_renderRelationship(e,t){let{values:i,graphic:n,fieldInfoMap:a,sourceLayer:s,globalValues:r}=this,{displayCount:c,orderByFields:p,relationshipId:u}=e,{formattedAttributes:m,view:v}=this.viewModel,$={...m?.global,...m?.content?.[t]},w=h({values:i,fieldInfoMap:a,globalValues:r,layer:s,text:e.title}),g=h({values:i,fieldInfoMap:a,globalValues:r,layer:s,text:e.description});return o`<arcgis-feature-relationship class=${l(d.contentElement)} .flowItems=${this.flowItems??this.internalFlowItems} .description=${g} .layer=${s} .map=${this.map??void 0} .displayCount=${c} .graphic=${n??void 0} .heading=${w} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${p??void 0} .relationshipId=${u??void 0} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .values=${$} .view=${v??void 0}></arcgis-feature-relationship>`}_renderAssociation(e){let{fieldInfoMap:t,globalValues:i,graphic:n,messages:a,sourceLayer:s,values:r}=this,c=h({values:r,fieldInfoMap:t,globalValues:i,layer:s,text:e.title}),p=h({values:r,fieldInfoMap:t,globalValues:i,layer:s,text:e.description});return o`<arcgis-feature-utility-network-associations .associationTypes=${e.associationTypes} class=${l(d.contentElement)} .description=${p} .flowItems=${this.flowItems??this.internalFlowItems} .graphic=${n??void 0} .heading=${c} .headingLevel=${this.headingLevel} .layer=${s} .map=${this.map??void 0} .messages=${a} .parentFeatureViewModel=${this.viewModel} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.viewModel.view??void 0}></arcgis-feature-utility-network-associations>`}_renderContentElement(e,t){switch(e.type){case"attachments":return this.hideAttachmentsContent?null:this._renderAttachments(e);case"custom":return this.hideCustomContent?null:this._renderCustom(e);case"fields":return this.hideFieldsContent?null:this._renderFields(e,t);case"media":return this.hideMediaContent?null:this._renderMedia(e,t);case"text":return this.hideTextContent?null:this._renderText(e);case"expression":return this.hideExpressionContent?null:this._renderExpression(e,t);case"relationship":return this.showRelationshipContent?this._renderRelationship(e,t):null;case"utility-network-associations":return this.showUtilityNetworkContent?this._renderAssociation(e):null;default:return null}}_renderContent(){let{content:e,graphic:t}=this.viewModel;return e?Array.isArray(e)&&e.length?e.length?e.map(this._renderContentElement,this):null:typeof e=="string"?o`<arcgis-feature-content .creator=${e} .graphic=${t??void 0} class=${l(d.contentElement)}></arcgis-feature-content>`:e instanceof HTMLElement?e:null:null}_renderContentContainer(){let{hideContent:e,internalFlowItems:t,headingLevel:i,state:n,messages:a}=this;if(e)return null;let s=o`<div class=${l(d.main)}>${[this._renderContent(),this._renderLastEditInfo()]}</div>`,r=a.returnToInitialFeature??"";return this.flowItems?s:o`<calcite-flow ${M(this._storeRootFlowNode)}><calcite-flow-item .loading=${n==="loading"} .headingLevel=${i} .heading=${this.hideHeading?void 0:U(this.heading)} .selected=${!t.length}>${s}</calcite-flow-item>${t.toArray().map((c,p)=>o`<calcite-flow-item @calciteFlowItemBack=${u=>{u.preventDefault(),this._handleDrillInBackClick()}} .loading=${n==="loading"} .headingLevel=${i} .selected=${p===t.length-1}><calcite-action appearance=transparent icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${r} title=${r??_}></calcite-action>${c}</calcite-flow-item>`)}</calcite-flow>`}_renderLastEditInfo(){let{hideLastEditedInfo:e,messages:t}=this,{lastEditInfo:i}=this.viewModel;if(!i||e)return null;let{date:n,user:a}=i,s=i.type==="edit"?a?t.lastEditedByUser:t.lastEdited:a?t.lastCreatedByUser:t.lastCreated,r=B(s??"",{date:n,user:a});return o`<div class=${l(E(d.lastEditedInfo,d.contentElement))}>${r}</div>`}};b("arcgis-feature",C);return C},"widgets/Feature/FeatureViewModel","intl","core/Collection","core/reactiveUtils","applications/Components/stringUtils",a,c)
3
+ v5.0.0-next.74 */
4
+ import c from"./ZRUYG7UK.js";import a from"./G2KUFG7X.js";import{a as F}from"./Y2MCFATG.js";import{g as L}from"./BJLP3ZG2.js";import{b as E}from"./LPWF4YQF.js";import{H as M,I as x,J as l,L as _,O as b,a as y,b as o,s as I}from"./ABFWLIKD.js";export default $arcgis.t(([H,{substitute:B},Z,{watch:P},{stripHTML:U},T,{b:A,c:V,d:R,e:k,f:D,j:N,q:h}])=>{var z=y`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.arcgis-feature{flex:1 1 auto}.arcgis-feature calcite-icon{box-sizing:content-box}.arcgis-feature__loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.arcgis-feature__content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.arcgis-feature__content-element:only-child,.arcgis-feature__content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.arcgis-feature__last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`,f="arcgis-feature",d={base:f,container:`${f}__size-container`,main:`${f}__main-container`,contentElement:`${f}__content-element`,lastEditedInfo:`${f}__last-edited-info`,loadingSpinnerContainer:`${f}__loading-container`},S=T(H),C=class extends x{constructor(){super(...arguments),this.messages=F(),this._rootFlowNode=null,this.flowType="feature",this.internalFlowItems=new Z,this.viewModel=S(this),this.view=this.viewModel.view,this.icon="icon",this.isFeatureFromTable=this.viewModel.isFeatureFromTable,this.graphic=this.viewModel.graphic,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.headingLevel=2,this.spatialReference=this.viewModel.spatialReference,this.timeZone=this.viewModel.timeZone,this.heading=this.viewModel.title,this.map=this.viewModel.map,this.chartAnimationDisabled=this.viewModel.abilities.chartAnimation,this.hideHeading=!1,this.hideContent=!1,this.hideAttachmentsContent=!1,this.hideCustomContent=!1,this.hideExpressionContent=!1,this.hideFieldsContent=!1,this.hideMediaContent=!1,this.showRelationshipContent=!1,this.hideTextContent=!1,this.showUtilityNetworkContent=!1,this.hideLastEditedInfo=!1,this.autoDestroyDisabled=!1,this.location=this.viewModel.location,this.state=this.viewModel.state,this.arcgisPropertyChange=L()("flowItems","state"),this.arcgisReady=I()}static{this.properties={flowType:16,popupTemplate:16,sourceLayer:16,fieldInfoMap:16,values:16,globalValues:16,internalFlowItems:16,viewModel:0,view:0,flowItems:0,referenceElement:1,position:3,icon:1,isFeatureFromTable:4,graphic:0,defaultPopupTemplateEnabled:5,headingLevel:9,spatialReference:0,timeZone:1,heading:0,map:0,chartAnimationDisabled:5,hideHeading:5,hideTitle:5,hideContent:5,hideAttachmentsContent:5,hideContentAttachments:5,hideCustomContent:5,hideExpressionContent:5,hideContentExpression:5,hideFieldsContent:5,hideContentFields:5,hideMediaContent:5,hideContentMedia:5,showRelationshipContent:5,hideTextContent:5,hideContentText:5,showUtilityNetworkContent:5,hideLastEditedInfo:5,hideLastEditInfo:5,autoDestroyDisabled:5,messageOverrides:0,label:1,location:0,state:3}}static{this.styles=z}get popupTemplate(){return R(this.graphic,this.defaultPopupTemplateEnabled)??void 0}get sourceLayer(){return k(this.graphic)}get fieldInfoMap(){return A(V(this.popupTemplate),this.sourceLayer)}get values(){return this.graphic?.attributes??{}}get globalValues(){return this.viewModel.formattedAttributes?.global??{}}get hideTitle(){return this.hideHeading}set hideTitle(e){this.hideHeading=e}get hideContentAttachments(){return this.hideAttachmentsContent}set hideContentAttachments(e){this.hideAttachmentsContent=e}get hideContentExpression(){return this.hideExpressionContent}set hideContentExpression(e){this.hideExpressionContent=e}get hideContentFields(){return this.hideFieldsContent}set hideContentFields(e){this.hideFieldsContent=e}get hideContentMedia(){return this.hideMediaContent}set hideContentMedia(e){this.hideMediaContent=e}get hideContentText(){return this.hideTextContent}set hideContentText(e){this.hideTextContent=e}get hideLastEditInfo(){return this.hideLastEditedInfo}set hideLastEditInfo(e){this.hideLastEditedInfo=e}async destroy(){await this.manager.destroy()}async nextMedia(e){return this.viewModel.nextMedia(e)}async previousMedia(e){return this.viewModel.previousMedia(e)}async setActiveMedia(e,t){return this.viewModel.setActiveMedia(e,t)}async updateGeometry(){return await this.viewModel.updateGeometry()}loaded(){this.manager.onLifecycle(()=>[P(()=>[this.internalFlowItems?.length],()=>this._setFocus())])}_removeFlowItems(){this.internalFlowItems?.removeAll()}_storeRootFlowNode(e){this._rootFlowNode=e}_setFocus(){this._rootFlowNode?.setFocus()}_handleDrillInBackClick(){this.internalFlowItems?.pop()}render(){let{state:e}=this.viewModel,t=o`<div class=${l(d.container)}>${e==="error"?this._renderError():e==="loading"?this._renderLoading():this._renderContentContainer()}</div>`;return o`<div class=${l(d.base)}>${t}</div>`}_renderError(){let{messages:e,hideHeading:t}=this;return o`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t?null:o`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`}_renderLoading(){return o`<div class=${l(d.loadingSpinnerContainer)}><calcite-loader inline label></calcite-loader></div>`}_renderAttachments(e){let{values:t,fieldInfoMap:i,sourceLayer:n,globalValues:a}=this,s=h({values:t,fieldInfoMap:i,globalValues:a,layer:n,text:e.title}),r=h({values:t,fieldInfoMap:i,globalValues:a,layer:n,text:e.description});return o`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${s} .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords??void 0} .attachmentTypes=${e.attachmentTypes??void 0} .graphic=${this.graphic??void 0} .description=${r} .messages=${this.messages}></arcgis-feature-attachments>`}_renderCustom(e){return o`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer??void 0} .graphic=${this.graphic??void 0} class=${l(d.contentElement)}></arcgis-feature-content>`}_renderFields(e,t){let i=this.viewModel.formattedAttributes,{values:n,fieldInfoMap:a,sourceLayer:s,popupTemplate:r,globalValues:c,graphic:p}=this,u=!!e?.fieldInfos,m=(e.fieldInfos??r?.fieldInfos??[])?.filter(({fieldName:g})=>!!g&&(N(g)||D(g)||g in n)),v=r?.expressionInfos,$=h({values:n,fieldInfoMap:a,globalValues:c,layer:s,text:e.title}),w=h({values:n,fieldInfoMap:a,globalValues:c,layer:s,text:e.description});return o`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${$} class=${l(d.contentElement)} .messages=${this.messages} .graphic=${p??void 0} .isContentFieldInfos=${u} .layer=${s} .description=${w} .values=${{...i?.global,...i?.content?.[t]}} .fieldInfos=${m} .expressionInfos=${v??void 0}></arcgis-feature-fields>`}_renderMedia(e,t){let{values:i,graphic:n,fieldInfoMap:a,sourceLayer:s,popupTemplate:r,globalValues:c}=this,{formattedAttributes:p,relatedInfos:u}=this.viewModel,m={...p?.global,...p?.content?.[t]},v=h({values:i,fieldInfoMap:a,globalValues:c,layer:s,text:e.title}),$=h({values:i,fieldInfoMap:a,globalValues:c,layer:s,text:e.description});return o`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex??0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${v} class=${l(d.contentElement)} .description=${$} .values=${i} .layer=${s} .graphic=${n??void 0} .messages=${this.messages} .fieldInfoMap=${a} .mediaInfos=${e.mediaInfos??[]} .popupTemplate=${r??void 0} .relatedInfos=${u} .formattedValues=${m}></arcgis-feature-media>`}_renderText(e){let{values:t,fieldInfoMap:i,sourceLayer:n,globalValues:a}=this,s=h({values:t,fieldInfoMap:i,globalValues:a,layer:n,text:e.text});return o`<arcgis-feature-content .creator=${s} .graphic=${this.graphic??void 0} class=${l(d.contentElement)}></arcgis-feature-content>`}_renderExpression(e,t){let i=this.viewModel.formattedAttributes,{fieldInfoMap:n}=this;return o`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map??void 0} .spatialReference=${this.spatialReference??void 0} .view=${this.viewModel.view??void 0} .graphic=${this.graphic??void 0} .location=${this.location??void 0} .headingLevel=${this.headingLevel} class=${l(d.contentElement)} .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${n} .values=${{...i?.global,...i?.content?.[t]}}></arcgis-feature-expression>`}_renderRelationship(e,t){let{values:i,graphic:n,fieldInfoMap:a,sourceLayer:s,globalValues:r}=this,{displayCount:c,orderByFields:p,relationshipId:u}=e,{formattedAttributes:m,view:v}=this.viewModel,$={...m?.global,...m?.content?.[t]},w=h({values:i,fieldInfoMap:a,globalValues:r,layer:s,text:e.title}),g=h({values:i,fieldInfoMap:a,globalValues:r,layer:s,text:e.description});return o`<arcgis-feature-relationship class=${l(d.contentElement)} .flowItems=${this.flowItems??this.internalFlowItems} .description=${g} .layer=${s} .map=${this.map??void 0} .displayCount=${c} .graphic=${n??void 0} .heading=${w} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${p??void 0} .relationshipId=${u??void 0} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .values=${$} .view=${v??void 0}></arcgis-feature-relationship>`}_renderAssociation(e){let{fieldInfoMap:t,globalValues:i,graphic:n,messages:a,sourceLayer:s,values:r}=this,c=h({values:r,fieldInfoMap:t,globalValues:i,layer:s,text:e.title}),p=h({values:r,fieldInfoMap:t,globalValues:i,layer:s,text:e.description});return o`<arcgis-feature-utility-network-associations .associationTypes=${e.associationTypes} class=${l(d.contentElement)} .description=${p} .flowItems=${this.flowItems??this.internalFlowItems} .graphic=${n??void 0} .heading=${c} .headingLevel=${this.headingLevel} .layer=${s} .map=${this.map??void 0} .messages=${a} .parentFeatureViewModel=${this.viewModel} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.viewModel.view??void 0}></arcgis-feature-utility-network-associations>`}_renderContentElement(e,t){switch(e.type){case"attachments":return this.hideAttachmentsContent?null:this._renderAttachments(e);case"custom":return this.hideCustomContent?null:this._renderCustom(e);case"fields":return this.hideFieldsContent?null:this._renderFields(e,t);case"media":return this.hideMediaContent?null:this._renderMedia(e,t);case"text":return this.hideTextContent?null:this._renderText(e);case"expression":return this.hideExpressionContent?null:this._renderExpression(e,t);case"relationship":return this.showRelationshipContent?this._renderRelationship(e,t):null;case"utility-network-associations":return this.showUtilityNetworkContent?this._renderAssociation(e):null;default:return null}}_renderContent(){let{content:e,graphic:t}=this.viewModel;return e?Array.isArray(e)&&e.length?e.length?e.map(this._renderContentElement,this):null:typeof e=="string"?o`<arcgis-feature-content .creator=${e} .graphic=${t??void 0} class=${l(d.contentElement)}></arcgis-feature-content>`:e instanceof HTMLElement?e:null:null}_renderContentContainer(){let{hideContent:e,internalFlowItems:t,headingLevel:i,state:n,messages:a}=this;if(e)return null;let s=o`<div class=${l(d.main)}>${[this._renderContent(),this._renderLastEditInfo()]}</div>`,r=a.returnToInitialFeature??"";return this.flowItems?s:o`<calcite-flow ${M(this._storeRootFlowNode)}><calcite-flow-item .loading=${n==="loading"} .headingLevel=${i} .heading=${this.hideHeading?void 0:U(this.heading)} .selected=${!t.length}>${s}</calcite-flow-item>${t.toArray().map((c,p)=>o`<calcite-flow-item @calciteFlowItemBack=${u=>{u.preventDefault(),this._handleDrillInBackClick()}} .loading=${n==="loading"} .headingLevel=${i} .selected=${p===t.length-1}><calcite-action appearance=transparent icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${r} title=${r??_}></calcite-action>${c}</calcite-flow-item>`)}</calcite-flow>`}_renderLastEditInfo(){let{hideLastEditedInfo:e,messages:t}=this,{lastEditInfo:i}=this.viewModel;if(!i||e)return null;let{date:n,user:a}=i,s=i.type==="edit"?a?t.lastEditedByUser:t.lastEdited:a?t.lastCreatedByUser:t.lastCreated,r=B(s??"",{date:n,user:a});return o`<div class=${l(E(d.lastEditedInfo,d.contentElement))}>${r}</div>`}};b("arcgis-feature",C);return C},"widgets/Feature/FeatureViewModel","intl","core/Collection","core/reactiveUtils","applications/Components/stringUtils",a,c)