@arcgis/map-components 4.34.0-next.118 → 4.34.0-next.119

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 (331) hide show
  1. package/dist/cdn/{SLBF2RPJ.js → 24MZRIBA.js} +2 -2
  2. package/dist/cdn/{NNBLVADW.js → 2AAOL4TD.js} +2 -2
  3. package/dist/cdn/{JINTBEKR.js → 2IZ3DI3V.js} +2 -2
  4. package/dist/cdn/{JTHHEKNT.js → 2VW64MCO.js} +2 -2
  5. package/dist/cdn/{LGOPV33B.js → 2XGM7VEC.js} +2 -2
  6. package/dist/cdn/{OJOB7BMP.js → 3LA4E52T.js} +2 -2
  7. package/dist/cdn/{DEOWVPNZ.js → 3N75FAHV.js} +2 -2
  8. package/dist/cdn/{5GE2YQN6.js → 3PO6TZQR.js} +2 -2
  9. package/dist/cdn/{WIKOLLNO.js → 3VVFTR7V.js} +2 -2
  10. package/dist/cdn/{MRHG4RT2.js → 3X4KRNSU.js} +2 -2
  11. package/dist/cdn/{DKNJYRXR.js → 44CD4QAR.js} +1 -1
  12. package/dist/cdn/{HTIZ6PEN.js → 45NFNT3A.js} +1 -1
  13. package/dist/cdn/{NN4JLG3O.js → 46LWAEHR.js} +2 -2
  14. package/dist/cdn/{HE2MGRYZ.js → 4BRTXOZN.js} +1 -1
  15. package/dist/cdn/{44JUTIOS.js → 4LLEERVO.js} +2 -2
  16. package/dist/cdn/{VFMQCW7V.js → 4QOC55VP.js} +2 -2
  17. package/dist/cdn/{5KPDSOXS.js → 4S5DL7R4.js} +2 -2
  18. package/dist/cdn/{B5QGIGYJ.js → 4UUD7TVM.js} +2 -2
  19. package/dist/cdn/{SO5IFGYD.js → 53KU2R7C.js} +2 -2
  20. package/dist/cdn/{CD62RIYK.js → 53M5H35X.js} +2 -2
  21. package/dist/cdn/{IEXI7E3I.js → 56YDX6S4.js} +2 -2
  22. package/dist/cdn/{BD7OXZM5.js → 5CLA636Q.js} +2 -2
  23. package/dist/cdn/{JTWTWE7T.js → 5KSQXL6U.js} +2 -2
  24. package/dist/cdn/{IMX2FWCO.js → 5L2P7KJY.js} +2 -2
  25. package/dist/cdn/{2PETL5PV.js → 5MNH7GCE.js} +2 -2
  26. package/dist/cdn/{VZ6EQBRH.js → 5TD2OA4W.js} +2 -2
  27. package/dist/cdn/{VJR3LW5F.js → 6A4YO3ZN.js} +2 -2
  28. package/dist/cdn/{2X3HPBY4.js → 6E4OCNBD.js} +2 -2
  29. package/dist/cdn/{TZ6IEBQH.js → 6GRBBC6D.js} +2 -2
  30. package/dist/cdn/{MFK2FS6H.js → 6J4376GD.js} +2 -2
  31. package/dist/cdn/{TXHPW5II.js → 6OSDRFSL.js} +2 -2
  32. package/dist/cdn/{B7NFESLW.js → 7AM5SPUJ.js} +2 -2
  33. package/dist/cdn/{EHKRKGML.js → 7DBPY2AP.js} +2 -2
  34. package/dist/cdn/{Y7WF6VYL.js → 7MIXMEOO.js} +2 -2
  35. package/dist/cdn/{EFDV7HXO.js → A5T43L5X.js} +2 -2
  36. package/dist/cdn/{LXXQPOX2.js → AFJ43MZZ.js} +2 -2
  37. package/dist/cdn/{QAFCEFYR.js → AHBBHURM.js} +2 -2
  38. package/dist/cdn/{WR7NDYAI.js → APNNIAL6.js} +2 -2
  39. package/dist/cdn/{4ZIOYNXF.js → AXHHUCHM.js} +2 -2
  40. package/dist/cdn/{RLG4FAU2.js → AYIAYAST.js} +2 -2
  41. package/dist/cdn/{6TIPLNKJ.js → BI5S4XG5.js} +2 -2
  42. package/dist/cdn/{72I5D7CL.js → BK6NJTRW.js} +1 -1
  43. package/dist/cdn/{ARRVHOHV.js → BLO6PWUC.js} +2 -2
  44. package/dist/cdn/{YR64ADYU.js → BP23WL7I.js} +2 -2
  45. package/dist/cdn/{D7UT7EZB.js → BP2LUCSG.js} +2 -2
  46. package/dist/cdn/{O6WMS5SQ.js → CAKGHIIA.js} +2 -2
  47. package/dist/cdn/{DPIBQJAX.js → CB2NRF27.js} +2 -2
  48. package/dist/cdn/{5AS5MQ27.js → CQESBJDD.js} +2 -2
  49. package/dist/cdn/{CRZCBZ6K.js → CTY74TJM.js} +2 -2
  50. package/dist/cdn/{HDH2GCQY.js → CUPVOSP5.js} +2 -2
  51. package/dist/cdn/{YEZIIXNC.js → CUYVCULE.js} +2 -2
  52. package/dist/cdn/{NLGUN4GE.js → CW2AUZGI.js} +2 -2
  53. package/dist/cdn/{KY3XJAND.js → DQXJQPZV.js} +2 -2
  54. package/dist/cdn/{I7KYRYV7.js → DWFLDEKN.js} +2 -2
  55. package/dist/cdn/{YX6WDY5A.js → EAKGMZ4D.js} +2 -2
  56. package/dist/cdn/{RASZITGH.js → EDSOS32V.js} +2 -2
  57. package/dist/cdn/{3CYGOZA3.js → EDZK3MBL.js} +2 -2
  58. package/dist/cdn/{N2ZGVWSN.js → EID42DJB.js} +2 -2
  59. package/dist/cdn/{SPULNPOD.js → ESUIOFWP.js} +2 -2
  60. package/dist/cdn/{VIACENNB.js → EXA5EFL5.js} +2 -2
  61. package/dist/cdn/{OUIO7AR7.js → EZYTETPD.js} +2 -2
  62. package/dist/cdn/{M4XZ262U.js → F3BAZP7R.js} +2 -2
  63. package/dist/cdn/{V6ADRSEU.js → FIAMVAWK.js} +2 -2
  64. package/dist/cdn/{ACNXYPQ6.js → FIKRM5EX.js} +2 -2
  65. package/dist/cdn/{7Z6DBJQP.js → FPVALTD2.js} +2 -2
  66. package/dist/cdn/{7IYWTPCZ.js → FRHFMX72.js} +2 -2
  67. package/dist/cdn/{EGSJJSVF.js → FWPPKNHH.js} +2 -2
  68. package/dist/cdn/{2R3VU7L3.js → FZPRNJ2B.js} +1 -1
  69. package/dist/cdn/{3TJ3SOBG.js → G3QE2FVV.js} +2 -2
  70. package/dist/cdn/{FOQN4RR4.js → GBGOJMP7.js} +1 -1
  71. package/dist/cdn/{ZBW4WP2O.js → GBH5LVIQ.js} +2 -2
  72. package/dist/cdn/{36QOOXJC.js → GJLHC7DB.js} +2 -2
  73. package/dist/cdn/{3MNOVQKB.js → GLZ3E5D3.js} +2 -2
  74. package/dist/cdn/{ZEKMIQJJ.js → GPF6ZUMK.js} +2 -2
  75. package/dist/cdn/{3AL3B7PX.js → GSPCW2EC.js} +2 -2
  76. package/dist/cdn/{ADLXRKK5.js → H26YV3Y2.js} +2 -2
  77. package/dist/cdn/{QJKO2QSY.js → HNFQWPZN.js} +2 -2
  78. package/dist/cdn/{J3BCKJ2C.js → HPDTYGEU.js} +2 -2
  79. package/dist/cdn/{TEHMNF4B.js → HYGOJFGB.js} +2 -2
  80. package/dist/cdn/{FEFB2HQN.js → HZ2K2XG4.js} +2 -2
  81. package/dist/cdn/{Y44B4YXN.js → I577XKT5.js} +2 -2
  82. package/dist/cdn/{W2T7R6X5.js → IAETIH72.js} +2 -2
  83. package/dist/cdn/{G4TRVMWI.js → ILPPBHV6.js} +2 -2
  84. package/dist/cdn/{K7XVCQYJ.js → IPB2GTRC.js} +2 -2
  85. package/dist/cdn/{KE2KP2AE.js → IW2KHAVM.js} +2 -2
  86. package/dist/cdn/{YPQDZBW5.js → IXMRQD6T.js} +1 -1
  87. package/dist/cdn/{73KZB4PQ.js → JUPTNFL6.js} +2 -2
  88. package/dist/cdn/{673AZVBE.js → K35NVWGM.js} +1 -1
  89. package/dist/cdn/{ETQEWMJ2.js → KFYWUFEH.js} +2 -2
  90. package/dist/cdn/{DXIWYAUX.js → KV3YN6MB.js} +2 -2
  91. package/dist/cdn/{2CEW6Y5Y.js → KV7YLE5O.js} +2 -2
  92. package/dist/cdn/{FVV75XGP.js → KWD3GN2V.js} +2 -2
  93. package/dist/cdn/{HWLMOQTK.js → LA42544Y.js} +2 -2
  94. package/dist/cdn/{2ZUSHROF.js → LASCIZ3V.js} +2 -2
  95. package/dist/cdn/{AQOKAXAN.js → LEE7PKGR.js} +2 -2
  96. package/dist/cdn/{AM34I3DG.js → LGCUKPQF.js} +2 -2
  97. package/dist/cdn/{HVVGS2FV.js → LPI2AOOR.js} +2 -2
  98. package/dist/cdn/{HU25Z2B3.js → LVW4NHPV.js} +2 -2
  99. package/dist/cdn/{M6DTSHO5.js → LW6SWPGN.js} +1 -1
  100. package/dist/cdn/{GMPTDRLC.js → M2VGF3RI.js} +2 -2
  101. package/dist/cdn/{2VHN33LU.js → MHJILUQV.js} +2 -2
  102. package/dist/cdn/MJTVEXR4.js +4 -0
  103. package/dist/cdn/{EGVBLFU2.js → MWE4SAFG.js} +2 -2
  104. package/dist/cdn/{V3VFHZ6J.js → MZ25NADL.js} +2 -2
  105. package/dist/cdn/{QGKQ5YDR.js → N2HBBDCD.js} +2 -2
  106. package/dist/cdn/{ZDBEMKLW.js → N5YNLEUZ.js} +2 -2
  107. package/dist/cdn/{7I7UAGOW.js → NSJHETV3.js} +2 -2
  108. package/dist/cdn/{SQ4F735D.js → NU7HIMSL.js} +2 -2
  109. package/dist/cdn/{5KF5RPGE.js → NVXXOE4O.js} +2 -2
  110. package/dist/cdn/{7JNDI25L.js → O7M4RFDX.js} +3 -3
  111. package/dist/cdn/{Y3A72JMP.js → ODMMRVMP.js} +2 -2
  112. package/dist/cdn/{B43KVAGG.js → OF3W45X3.js} +2 -2
  113. package/dist/cdn/{FWIHHVGX.js → OG3PZIGE.js} +2 -2
  114. package/dist/cdn/{GW7UJTUH.js → OI3KPIEW.js} +2 -2
  115. package/dist/cdn/{ZMKL6K3P.js → OMQGVZKD.js} +2 -2
  116. package/dist/cdn/{ULDWWATL.js → OQLLIBAS.js} +2 -2
  117. package/dist/cdn/{JFBBPTZ6.js → OTMUP2RV.js} +2 -2
  118. package/dist/cdn/{NIOC7VWC.js → OWNZJS72.js} +2 -2
  119. package/dist/cdn/{FTOXDRRA.js → P2J2KUYC.js} +2 -2
  120. package/dist/cdn/{QNWEMARD.js → P4I67I65.js} +2 -2
  121. package/dist/cdn/{BFOR2KWU.js → PCIBG6IO.js} +2 -2
  122. package/dist/cdn/{BEM5GYQU.js → PG6FXHCP.js} +2 -2
  123. package/dist/cdn/{ZRXYENIH.js → PODIFUSD.js} +2 -2
  124. package/dist/cdn/{XCYY57WT.js → PSRJX6P5.js} +2 -2
  125. package/dist/cdn/{DCBUDHYS.js → QHG2DVB4.js} +2 -2
  126. package/dist/cdn/{ZG3ANG6M.js → QKM2ZQOX.js} +2 -2
  127. package/dist/cdn/{NWQOT3TX.js → QLESP7LW.js} +2 -2
  128. package/dist/cdn/{RZFEBQ7W.js → QMSLIZKA.js} +2 -2
  129. package/dist/cdn/{VVCH6UEG.js → QQOVWCGK.js} +2 -2
  130. package/dist/cdn/{EJNAM4YY.js → RBJJTN24.js} +2 -2
  131. package/dist/cdn/{OX65TXTV.js → RHLO5QVV.js} +2 -2
  132. package/dist/cdn/{KGAY72F6.js → RI3Q33RL.js} +2 -2
  133. package/dist/cdn/{3YX32C77.js → RITEK2BU.js} +2 -2
  134. package/dist/cdn/{QLYSDWP6.js → RIXIEONA.js} +2 -2
  135. package/dist/cdn/{Y2MTJQPE.js → RMASUCG7.js} +2 -2
  136. package/dist/cdn/{RIGBNRFG.js → RSO7CV4R.js} +2 -2
  137. package/dist/cdn/{Z5YWMGKM.js → SD2KMYE6.js} +2 -2
  138. package/dist/cdn/{KFLSWUAJ.js → SHSDV76N.js} +2 -2
  139. package/dist/cdn/{7VHQ4A25.js → SRMFNAGV.js} +2 -2
  140. package/dist/cdn/{I73FAQSD.js → T35CWQVJ.js} +2 -2
  141. package/dist/cdn/{NP3H6S5Q.js → T5BLOF7M.js} +2 -2
  142. package/dist/cdn/{GX3SZM4C.js → TBZBTUHH.js} +1 -1
  143. package/dist/cdn/{TU76Y6WC.js → TG6WBRX6.js} +1 -1
  144. package/dist/cdn/{RY3CV6EC.js → TM65MWXT.js} +2 -2
  145. package/dist/cdn/{XUIL5OYR.js → TMKWAZC5.js} +2 -2
  146. package/dist/cdn/{RVPDCWJI.js → TQVADUF7.js} +2 -2
  147. package/dist/cdn/{LSX762FP.js → TZOUSZEY.js} +2 -2
  148. package/dist/cdn/{VNQGINZ7.js → U4DXRYPO.js} +2 -2
  149. package/dist/cdn/{5GIUP2NC.js → U7ZHWXTB.js} +2 -2
  150. package/dist/cdn/{TXLLWZLM.js → UAXOTHLK.js} +2 -2
  151. package/dist/cdn/{TFBP6KNM.js → UB2PPZID.js} +2 -2
  152. package/dist/cdn/{BP7N3XOI.js → UBIGWATB.js} +2 -2
  153. package/dist/cdn/{4TH5RT4J.js → UCBE2AKF.js} +2 -2
  154. package/dist/cdn/{2FFQPHC7.js → UOGUC6UY.js} +1 -1
  155. package/dist/cdn/{KTOD5Z74.js → UUMLFOI7.js} +2 -2
  156. package/dist/cdn/{LYCLBL57.js → UYBNHHKU.js} +2 -2
  157. package/dist/cdn/{C5TYRBVP.js → V6FH6GNR.js} +2 -2
  158. package/dist/cdn/{ZFNHDLV3.js → VEKXTH7G.js} +2 -2
  159. package/dist/cdn/{S7HUNL6N.js → VF4UG7RL.js} +2 -2
  160. package/dist/cdn/{CSBII5V3.js → VGJQHIRB.js} +2 -2
  161. package/dist/cdn/{VWPYA6EK.js → VYXO244J.js} +2 -2
  162. package/dist/cdn/{JT2EN3AL.js → W36Y6SRP.js} +2 -2
  163. package/dist/cdn/{ADM2R2QK.js → W6BS2HLZ.js} +2 -2
  164. package/dist/cdn/{TUXZQ3KJ.js → W6RYTRT2.js} +2 -2
  165. package/dist/cdn/{PB6MQLJ4.js → W73O3EUJ.js} +2 -2
  166. package/dist/cdn/{WYRHBTJD.js → WCXEX4XN.js} +2 -2
  167. package/dist/cdn/{7OF26GMC.js → WHOKHSDS.js} +2 -2
  168. package/dist/cdn/{XTFEU4AE.js → WIHXF4JL.js} +2 -2
  169. package/dist/cdn/{DHM3JVG5.js → WKH2HMSG.js} +2 -2
  170. package/dist/cdn/{MCFO7DB3.js → WKX72BWQ.js} +2 -2
  171. package/dist/cdn/{WT65Y22J.js → WMOU3F5S.js} +2 -2
  172. package/dist/cdn/{OBEMMY3U.js → WTA2OAKI.js} +1 -1
  173. package/dist/cdn/{X5B75CAT.js → WV375MC3.js} +2 -2
  174. package/dist/cdn/{SX6CQ7AK.js → WW3SF5WX.js} +2 -2
  175. package/dist/cdn/{WHR7ULLL.js → WWCHP4QF.js} +2 -2
  176. package/dist/cdn/{YINW2ELA.js → WXOML2VH.js} +2 -2
  177. package/dist/cdn/{L5BA45S3.js → WZOUYOCM.js} +2 -2
  178. package/dist/cdn/{A62XVLLH.js → X3EDKPWZ.js} +2 -2
  179. package/dist/cdn/{ETMDX5QW.js → XAD5KCZZ.js} +2 -2
  180. package/dist/cdn/{JVJBJQ5A.js → XKQY34CC.js} +2 -2
  181. package/dist/cdn/{PNT6QARU.js → Y7GUG6V6.js} +2 -2
  182. package/dist/cdn/{R5FTPDFO.js → YBT73O3O.js} +2 -2
  183. package/dist/cdn/{NJQQRUBP.js → YD3DYHF7.js} +2 -2
  184. package/dist/cdn/{MCIPZKCW.js → YFLDZRVT.js} +2 -2
  185. package/dist/cdn/{Q7FK3QE7.js → YIJ3JGW3.js} +2 -2
  186. package/dist/cdn/{MYYNQX2T.js → YNSP2QQI.js} +2 -2
  187. package/dist/cdn/{LIWJHSPW.js → YS5HQM6K.js} +2 -2
  188. package/dist/cdn/{SQ7IQ6HO.js → YUAIB7TG.js} +2 -2
  189. package/dist/cdn/{S6L266U5.js → ZAN76GTP.js} +2 -2
  190. package/dist/cdn/{LDKDWTHS.js → ZBKDAU42.js} +2 -2
  191. package/dist/cdn/{E25SBDVK.js → ZBOCJ4J2.js} +1 -1
  192. package/dist/cdn/{VWKSIY6Y.js → ZLPC5EMF.js} +2 -2
  193. package/dist/cdn/{BATPZX7R.js → ZO5LGKYF.js} +2 -2
  194. package/dist/cdn/index.js +2 -2
  195. package/dist/chunks/AnalysisViewModel.js +1 -1
  196. package/dist/chunks/action-utils.js +1 -1
  197. package/dist/chunks/async-utils.js +1 -1
  198. package/dist/chunks/basemap-gallery-resources.js +1 -1
  199. package/dist/chunks/chart-utils.js +1 -1
  200. package/dist/chunks/chartCommon.js +1 -1
  201. package/dist/chunks/component-utils.js +1 -1
  202. package/dist/chunks/createCloseEvent.js +1 -1
  203. package/dist/chunks/feature-utils.js +1 -1
  204. package/dist/chunks/globalCss.js +1 -1
  205. package/dist/chunks/heading.js +1 -1
  206. package/dist/chunks/layer-list.js +1 -1
  207. package/dist/chunks/legacyIcon.js +1 -1
  208. package/dist/chunks/maybe.js +1 -1
  209. package/dist/chunks/measurementUtils.js +1 -1
  210. package/dist/chunks/runtime.js +1 -1
  211. package/dist/chunks/slots.js +1 -1
  212. package/dist/chunks/slots2.js +1 -1
  213. package/dist/chunks/useHandles.js +1 -1
  214. package/dist/chunks/useT9n.js +1 -1
  215. package/dist/chunks/useView.js +1 -1
  216. package/dist/chunks/useViewModel.js +1 -1
  217. package/dist/chunks/useWidget.js +1 -1
  218. package/dist/chunks/utils.js +1 -1
  219. package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
  220. package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
  221. package/dist/components/arcgis-attachments/customElement.js +1 -1
  222. package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
  223. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  224. package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
  225. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  226. package/dist/components/arcgis-bookmarks/customElement.js +1 -1
  227. package/dist/components/arcgis-building-explorer/customElement.js +1 -1
  228. package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
  229. package/dist/components/arcgis-compass/customElement.js +1 -1
  230. package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
  231. package/dist/components/arcgis-daylight/customElement.js +1 -1
  232. package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
  233. package/dist/components/arcgis-directional-pad/customElement.js +1 -1
  234. package/dist/components/arcgis-directions/customElement.js +1 -1
  235. package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
  236. package/dist/components/arcgis-editor/customElement.js +1 -1
  237. package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
  238. package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
  239. package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
  240. package/dist/components/arcgis-elevation-profile-next/customElement.js +1 -1
  241. package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
  242. package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
  243. package/dist/components/arcgis-expand/customElement.js +1 -1
  244. package/dist/components/arcgis-feature/customElement.js +1 -1
  245. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  246. package/dist/components/arcgis-feature-content/customElement.js +1 -1
  247. package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
  248. package/dist/components/arcgis-feature-expression/customElement.js +1 -1
  249. package/dist/components/arcgis-feature-fields/customElement.js +1 -1
  250. package/dist/components/arcgis-feature-form/customElement.js +1 -1
  251. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  252. package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
  253. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  254. package/dist/components/arcgis-feature-templates/customElement.js +1 -1
  255. package/dist/components/arcgis-features/customElement.js +1 -1
  256. package/dist/components/arcgis-floor-filter/customElement.js +1 -1
  257. package/dist/components/arcgis-fullscreen/customElement.js +1 -1
  258. package/dist/components/arcgis-grid-controls/customElement.js +1 -1
  259. package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
  260. package/dist/components/arcgis-home/customElement.js +1 -1
  261. package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
  262. package/dist/components/arcgis-layer-list/customElement.js +1 -1
  263. package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
  264. package/dist/components/arcgis-legend/customElement.js +1 -1
  265. package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
  266. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  267. package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
  268. package/dist/components/arcgis-locate/customElement.js +1 -1
  269. package/dist/components/arcgis-map/customElement.js +1 -1
  270. package/dist/components/arcgis-measurement/customElement.js +1 -1
  271. package/dist/components/arcgis-measurement-content/customElement.js +1 -1
  272. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  273. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  274. package/dist/components/arcgis-placement/customElement.js +1 -1
  275. package/dist/components/arcgis-print/customElement.js +1 -1
  276. package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
  277. package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
  278. package/dist/components/arcgis-print-export-button/customElement.js +1 -1
  279. package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
  280. package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
  281. package/dist/components/arcgis-print-format-select/customElement.js +1 -1
  282. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
  283. package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
  284. package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
  285. package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
  286. package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
  287. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
  288. package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
  289. package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
  290. package/dist/components/arcgis-print-template-select/customElement.js +1 -1
  291. package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
  292. package/dist/components/arcgis-scale-bar/customElement.js +1 -1
  293. package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
  294. package/dist/components/arcgis-scene/customElement.js +1 -1
  295. package/dist/components/arcgis-search/customElement.js +1 -1
  296. package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
  297. package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
  298. package/dist/components/arcgis-sketch/customElement.js +1 -1
  299. package/dist/components/arcgis-slice/customElement.js +1 -1
  300. package/dist/components/arcgis-swipe/customElement.js +1 -1
  301. package/dist/components/arcgis-table-list/customElement.js +1 -1
  302. package/dist/components/arcgis-time-slider/customElement.js +1 -1
  303. package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
  304. package/dist/components/arcgis-track/customElement.js +1 -1
  305. package/dist/components/arcgis-unit-select/customElement.js +1 -1
  306. package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
  307. package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
  308. package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
  309. package/dist/components/arcgis-value-picker/customElement.js +1 -1
  310. package/dist/components/arcgis-version-management/customElement.js +1 -1
  311. package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
  312. package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
  313. package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
  314. package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
  315. package/dist/components/arcgis-video/customElement.js +1 -1
  316. package/dist/components/arcgis-video-player/customElement.js +1 -1
  317. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  318. package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
  319. package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
  320. package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
  321. package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
  322. package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
  323. package/dist/components/arcgis-weather/customElement.js +1 -1
  324. package/dist/components/arcgis-zoom/customElement.js +1 -1
  325. package/dist/docs/api.json +2 -2
  326. package/dist/docs/docs.json +2 -2
  327. package/dist/docs/web-types.json +1 -1
  328. package/dist/index.js +1 -1
  329. package/dist/loader.js +1 -1
  330. package/package.json +3 -3
  331. package/dist/cdn/7ADWHFJD.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/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
4
- import{a as Q}from"./WYRHBTJD.js";import"./DPIBQJAX.js";import{a as K}from"./2CEW6Y5Y.js";import{a as E}from"./HE2MGRYZ.js";import a from"./FEFB2HQN.js";import"./ARRVHOHV.js";import"./2VHN33LU.js";import"./HTIZ6PEN.js";import"./FOQN4RR4.js";import{G as B,H as R,I as Z,J as G,K as q,L as w,O as V,a as Y,b as h,s as M}from"./72I5D7CL.js";import"./M6DTSHO5.js";export default $arcgis.t(([me,_e,{formatDate:N},{a:J}])=>{var fe=Y`.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:1.3em}.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:#303030}.esri-menu__list-item:active{background-color:#000}.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:#2493f2}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:1.3em}.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:22px;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:22px;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}.wrapper{display:flex;flex-direction:column;overflow:hidden;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--esri-widget-padding);calcite-label{--calcite-label-margin-bottom: 0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.date-container{display:flex;flex-direction:row;gap:var(--calcite-spacing-lg);align-items:center;justify-content:space-between}.play-pause-button{flex:0}.slider{flex:1}.day-container{display:flex;flex:1;gap:var(--calcite-spacing-md)}.slider-container{flex:1}.slider-play-button{place-self:center;transform:translateY(8px)}.timezone-input{min-width:0}`;Intl.DateTimeFormat().resolvedOptions().timeZone;var W={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function f(i,e,t){return i===0?0:i*W[e]/W[t]}function be(i,e="milliseconds"){let t=f(i.getUTCHours(),"hours","milliseconds"),r=f(i.getUTCMinutes(),"minutes","milliseconds"),n=f(i.getUTCSeconds(),"seconds","milliseconds"),s=i.getUTCMilliseconds();return f(t+r+n+s,"milliseconds",e)}function ve(i,e,t="milliseconds"){let r=new Date(f(e,t,"milliseconds"));return r.setUTCFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),r}function xe(i){let e=new Date(0);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),e}function we(i,e){let t=new Date(i.getTime());return t.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}function ye(i){return i instanceof Date&&!Number.isNaN(i.getTime())}function O(i,e){let t=new Date(i.getTime());return t.setHours(t.getHours()+e),t}var z=Math.PI,g=Math.sin,v=Math.cos,Te=Math.asin,ke=Math.acos,p=z/180,ae=1e3*60*60*24,le=2440588,oe=2451545;function De(i){return i.valueOf()/ae-.5+le}function $(i){return new Date((i+.5-le)*ae)}function Se(i){return De(i)-oe}var X=p*23.4397;function $e(i,e){return Te(g(e)*v(X)+v(e)*g(X)*g(i))}function Ce(i){return p*(357.5291+.98560028*i)}function ze(i){return p*(1.9148*g(i)+.02*g(2*i)+3e-4*g(3*i))}function Pe(i,e){var t=p*102.9372;return i+e+t+z}var _={};_.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var L=[[-.83,"sunrise","sunset"]],ce=9e-4;function Ue(i,e){return Math.round(i-ce-e/(2*z))}function ee(i,e,t){return ce+(i+e)/(2*z)+t}function ie(i,e,t){return oe+i+.0053*g(e)-.0069*g(2*t)}function Me(i,e,t){return ke((g(i)-g(e)*g(t))/(v(e)*v(t)))}_.getTimes=function(i,e,t){var r=p*-t,n=p*e,s=Se(i),a=Ue(s,r),l=ee(0,r,a),o=Ce(l),d=ze(o),c=Pe(o,d),x=$e(c,0),b=ie(l,o,c);function ge(U){var S=Me(U,n,x),pe=ee(S,r,a);return ie(pe,o,c)}function ue(U){var S=(g(U)-g(n)*g(x))/(v(n)*v(x));return S<-1?_.PolarException.MIDNIGHT_SUN:S>1?_.PolarException.POLAR_NIGHT:_.PolarException.NORMAL}var T={solarNoon:$(b),nadir:$(b-.5),polarException:_.PolarException.NORMAL},k,F,D,P,j;for(k=0,F=L.length;k<F;k+=1)D=L[k],P=ge(D[0]*p),j=b-(P-b),T[D[1]]=$(j),T[D[2]]=$(P);return T.polarException=ue(L[0][0]*p),T};var Ee={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},H=["spring","summer","fall","winter"];function y(i,e,t){let r=I(e,t),{dayOfMonth:n,month:s}=Ee[r],a=new Date(i.getTime());return a.setMonth(s,n),a}function Oe(i,e){let t=Le(i);return I(t,e)}function Le(i){let e=i.getTime(),t=y(i,"spring","northern").getTime(),r=y(i,"summer","northern").getTime(),n=y(i,"fall","northern").getTime(),s=y(i,"winter","northern").getTime();return e>=t&&e<r?"spring":e>=r&&e<n?"summer":e>=n&&e<s?"fall":"winter"}function I(i,e){return e==="northern"?i:Ne(i)}function te(i){return i>=0?"northern":"southern"}function Ne(i){let e=H.indexOf(i);return H[(e+2)%4]}function He(i,e,t){if(i==null||e==null||Number.isNaN(i.getTime())&&Number.isNaN(e.getTime()))return 3e5;let r=t.getTime(),n=i.getTime(),s=e.getTime(),a=n-72e5/2,l=n+72e5/2,o=s-72e5/3*2,d=s+72e5/3,c=3e5;return r>=a&&r<=l?r-a<=12e5?c=18e5-(r-a)/12e5*16e5:l-r<=12e5/2?c=3e5-(l-r)/12e5*2*1e5:c=2e5:r>=o&&r<=d?r-o<=12e5/2?c=3e5-(r-o)/12e5*2*1e5:d-r<=12e5?c=18e5-(d-r)/12e5*16e5:c=2e5:(r<n||r>s)&&(c=18e5),c}function Ae(i,e,t,r){let n=_.getTimes(i,e,t),s=n.sunrise,a=n.sunset,l=O(i,r),o=O(s,r),d=O(a,r);if(l.getUTCDate()!==o.getUTCDate()||l.getUTCDate()!==d.getUTCDate()){let c=l.getTime()-o.getTime()>0?1:-1;s.setUTCDate(s.getUTCDate()+c),a.setUTCDate(a.getUTCDate()+c)}return{sunrise:s,sunset:a}}function u(i){return i?.type==="sun"}function de(i){return{remove:i}}var he={hour:"numeric",minute:"numeric",timeZone:"UTC"},Ie={hour:"numeric",timeZone:"UTC"};function Fe(i){let e=Math.round(f(i,"minutes","hours"));return new Date(f(e,"hours","milliseconds"))}function je(i){return new Date(i*6e4)}function Ye(i){let e=Fe(i),t=N(e,he);return t.includes(" ")&&(t=N(e,Ie),t=t.replace(":00","")),t}function Be(i){let e=je(i),t=N(e,he);return i!==0&&t==="00:00"&&(t="24:00"),t}var Re=(i,e)=>{switch(e){case"tick":return Ye(i);case"max":case"min":case"value":return Be(i)}},C=23*60+59,Ze=5,Ge=C/6;function qe(i){return h`<calcite-slider class="slider" .disabled=${i.disabled} fill-placement=none label-ticks label-handles .labelFormatter=${Re} min=0 .max=${C} @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=${Ze} style=${q({gridArea:"slider"})} .ticks=${Ge} .value=${((i.value??0)+C)%C}></calcite-slider>`}function Ve(i,e){return i/15}function Je(i,e){let t=i?.[0];if(t==null)return null;e||(e={hours:0,minutes:0,seconds:0}),e.hours=Ve(t);let r=e.hours%1;e.hours-=r,e.minutes=r*60;let n=e.minutes%1;return e.minutes-=n,e.seconds=Math.round(n*60),e}function Ke(i,e){if(e==null||!i.cameraTrackingEnabled)return 0;let t=Je([e.longitude,e.latitude]);return t==null?0:Math.round(t.hours+t.minutes/60+t.seconds/3600)}var Qe=864e5,We=100,Xe=1e3,ei=12e5,ii=ei/4;function re(i,e){return((i+e)%24+24)%24}function ti({mode:i,lighting:e,getPlaySpeed:t}){let r=-1;function n(s=Date.now()){let a=e.date,l=Date.now()-(s??0);if(i==="day"){s=Date.now();let o=t()/We*l;if(o>0){let d=new Date(a.getTime()+o),c=e.displayUTCOffset??0,x=re(d.getUTCHours(),c),b=re(a.getUTCHours(),c);x<b&&(d=new Date(a.getTime()+o-Qe)),e.date=d}}else if(l>Xe){s=Date.now();let o=(a.getUTCMonth()+1)%12,d=new Date(a.getTime());d.setUTCMonth(o),e.date=d}r=requestAnimationFrame(()=>n(s))}return n(),de(()=>cancelAnimationFrame(r))}function m(i){return i.hidden?null:i.children}function ne(i){let{children:e,hideHeader:t,headingLevel:r=2,label:n,title:s}=i;return h`<div aria-label=${n??w} class=${G({[i.class]:!0,[E.widget]:!0,[E.panel]:!0})} role=presentation>${m({hidden:t||!s,children:Q({level:r,children:s})})}${e}</div>`}var A=class extends Z{constructor(){super(...arguments),this.view=J(this),this.messages=K({blocking:!0}),this.#n="none",this.#s=null,this.#e=-1,this.#r=B(),this.#a=200,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=M(),this.arcgisUserDateTimeChange=M()}static{this.properties={playingState:1,lighting:32,supported:32,sunlightingDisabled:5,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,localDate:0,directShadowsEnabled:5,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,timeSliderPosition:9,utcOffset:9,yearPlaying:5}}static{this.styles=fe}get _view(){return this.view?.type==="3d"?this.view:void 0}#t;#n;#s;#e;#i;#r;#a;get playingState(){return this.#n}set playingState(e){this.#n=e,e==="none"?this.#t?.remove():(this._play(e),this.arcgisUserDateTimeChange.emit())}get lighting(){return this._view?.environment.lighting}get supported(){return this._view?.type==="3d"}get sunlightingDisabled(){return!u(this.lighting)}set sunlightingDisabled(e){let t=this._view?.environment;if(t==null)return;let r=t.lighting,n=this.#s;this.#s=r;let s={directShadowsEnabled:r.directShadowsEnabled};u(r)&&(s.cameraTrackingEnabled=r.cameraTrackingEnabled);let a=e?"virtual":"sun",l;n!=null&&n.type===a?l=n:l=e?new _e:new me,l.set(s),t.lighting=l,e||(this._stopPlaying(),this.#r.value&&(this.#r.value.open=!1))}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,t=te(e);return Oe(this.localDate,t)}set currentSeason(e){this._stopPlaying();let t=this._view?.camera?.position?.latitude??0,r=te(t),n=I(e,r);this.localDate=y(this.localDate,n,"northern"),this.arcgisUserDateTimeChange.emit()}get dayPlaying(){return this.playingState==="day"}set dayPlaying(e){this.playingState=e?"day":"none"}get localDate(){return u(this.lighting)?xe(this.lighting.date):new Date}set localDate(e){ye(e)&&u(this.lighting)&&(this.lighting.date=we(this.lighting.date,e))}get directShadowsEnabled(){return this.lighting?.directShadowsEnabled??!1}set directShadowsEnabled(e){this.lighting&&(this.lighting.directShadowsEnabled=e)}get timeSliderPosition(){if(u(this.lighting)){let e=this.lighting.date;return be(e,"minutes")}else return 0}set timeSliderPosition(e){if(u(this.lighting)){let t=this.lighting.date,r=ve(t,e,"minutes");this._stopPlaying(),this.#i?.remove(),this.lighting.date=r}}get utcOffset(){return u(this.lighting)?this.lighting.displayUTCOffset??Ke(this.lighting,this._view?.camera?.position):0}set utcOffset(e){u(this.lighting)&&(this.lighting.displayUTCOffset=e)}get yearPlaying(){return this.playingState==="year"}set yearPlaying(e){this.playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}load(){this.manager.onDisconnected(()=>{this.#t?.remove(),this.#i?.remove()})}_stopPlaying(){this.playingState="none"}_play(e){this.#t?.remove();let t=this._view;if(t==null||this.sunlightingDisabled)return;let r=t.environment.lighting;u(r)&&(this.#t=ti({mode:e,lighting:r,getPlaySpeed:()=>{let n=this._view,s=this._view?.environment.lighting;if(n!=null&&u(s)){let a=n.camera.position.latitude??0,l=n.camera.position.longitude??0,{sunrise:o,sunset:d}=Ae(s.date,a,l,s.displayUTCOffset??0);return He(o,d,s.date)*this.playSpeedMultiplier}else return ii*this.playSpeedMultiplier}}))}_scheduleTimeUpdate(e){if(this.#e=e,this.#i)return;let t=requestIdleCallback(()=>{this.#e!==-1&&(this.timeSliderPosition=this.#e),this.#e=-1,this.#i=void 0},{timeout:this.#a});this.#i=de(()=>cancelIdleCallback(t))}render(){let{messages:e,dateOrSeason:t}=this,r=this.sunlightingDisabled,n="s";if(!this.supported)return ne({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 s=this.utcOffset*60;return ne({class:"wrapper",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:h`<div class="day-container"><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}${qe({disabled:this.sunlightingDisabled,scale:n,value:this.timeSliderPosition+s,onTimeChanged:a=>{this._stopPlaying(),this.arcgisUserDateTimeChange.emit(),this._scheduleTimeUpdate(a-s)}})}</calcite-label>${m({hidden:this.hidePlayButtons,children:h`<div class="slider-play-button">${se({scale:n,disabled:this.sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this.playingState==="day"?this._stopPlaying():this.playingState="day"}})}</div>`})}</div>${m({hidden:this.hideTimezone,children:h`<calcite-label scale=s>${e.timezone}<calcite-input-time-zone class="timezone-input" mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this.sunlightingDisabled} .value=${`${s}`} @calciteInputTimeZoneChange=${a=>{let l=+a.target.value;this.utcOffset=l/60,this._stopPlaying()}} ${R(this.#r)}></calcite-input-time-zone></calcite-label>`})}${m({hidden:this.hideDatePicker,children:t==="date"?this.#l({scale:n,disabled:r}):this.#o({scale:n,disabled:r})})}${m({hidden:this.hideSunLightingToggle,children:si({scale:n,messages:e.sunLightingToggle,sunlightingEnabled:!this.sunlightingDisabled,onSunLightingToggle:a=>{this.sunlightingDisabled=!a}})})}${m({hidden:this.hideShadowsToggle,children:ai({scale:n,messages:e.shadowsToggle,onShadowCheckboxChange:a=>{this.directShadowsEnabled=a},shadowEnabled:this.directShadowsEnabled})})}`})}#l({scale:e,disabled:t}){let{messages:r}=this;return h`<calcite-label .scale=${e}>${r.date}${ri({disabled:t,scale:e,localDate:this.localDate,onDateChange:n=>{let s=n.currentTarget.valueAsDate,a=Array.isArray(s)?s[0]:s;this._stopPlaying(),this.localDate=a;let l=this.lighting;u(l)&&(l.date=a),this.arcgisUserDateTimeChange.emit()},playButtons:m({hidden:this.hidePlayButtons,children:se({scale:e,playing:this.yearPlaying,disabled:t,label:r.playYear,onClick:()=>{this.playingState==="year"?this.playingState="none":this.playingState="year"}})})})}</calcite-label>`}#o({scale:e,disabled:t}){let{messages:r}=this;return h`<calcite-label .scale=${e}>${r.season}${ni({scale:e,selectedSeason:this.currentSeason,disabled:t,messages:r,onSeasonChange:n=>{this._stopPlaying(),this.currentSeason=n.currentTarget.value,this.arcgisUserDateTimeChange.emit()}})}</calcite-label>`}};function se({disabled:i,playing:e,onClick:t,label:r,scale:n}){return h`<calcite-button appearance=solid .scale=${n} .disabled=${i} .iconStart=${e?"pause-f":"play-f"} .label=${r} @click=${t} round title=${r??w} type=button></calcite-button>`}function ri({disabled:i,localDate:e,onDateChange:t,scale:r,playButtons:n}){return h`<div class="date-container"><calcite-input-date-picker data-testid=daylight-date-picker .disabled=${i} overlay-positioning=fixed placement=bottom .valueAsDate=${e} .scale=${r} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>${n}</div>`}function ni({messages:i,disabled:e,scale:t,selectedSeason:r,onSeasonChange:n}){return h`<calcite-select .disabled=${e} .label=${i.season} .scale=${t} .value=${r} @calciteSelectChange=${s=>{n(s)}}>${H.map(s=>h`<calcite-option .selected=${r===s} .value=${s}>${i[s]}</calcite-option>`)}</calcite-select>`}function si({messages:i,sunlightingEnabled:e,onSunLightingToggle:t,scale:r}){return h`<calcite-label layout=inline .scale=${r} title=${i?.tooltip??w}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${n=>t(n.target.checked)}></calcite-checkbox>${i?.label}</calcite-label>`}function ai({messages:i,shadowEnabled:e,onShadowCheckboxChange:t,scale:r}){return h`<calcite-label layout=inline .scale=${r} title=${i?.tooltip??w}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${n=>t(n.target.checked)}></calcite-checkbox>${i.label}</calcite-label>`}V("arcgis-daylight",A);return A},"views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","intl",a)
3
+ v4.34.0-next.119 */
4
+ import{a as Q}from"./WCXEX4XN.js";import"./CB2NRF27.js";import{a as K}from"./KV7YLE5O.js";import{a as E}from"./4BRTXOZN.js";import a from"./HZ2K2XG4.js";import"./BLO6PWUC.js";import"./MHJILUQV.js";import"./45NFNT3A.js";import"./GBGOJMP7.js";import{G as B,H as R,I as Z,J as G,K as q,L as w,O as V,a as Y,b as h,s as M}from"./BK6NJTRW.js";import"./LW6SWPGN.js";export default $arcgis.t(([me,_e,{formatDate:N},{a:J}])=>{var fe=Y`.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:1.3em}.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:#303030}.esri-menu__list-item:active{background-color:#000}.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:#2493f2}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:1.3em}.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:22px;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:22px;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}.wrapper{display:flex;flex-direction:column;overflow:hidden;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--esri-widget-padding);calcite-label{--calcite-label-margin-bottom: 0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.date-container{display:flex;flex-direction:row;gap:var(--calcite-spacing-lg);align-items:center;justify-content:space-between}.play-pause-button{flex:0}.slider{flex:1}.day-container{display:flex;flex:1;gap:var(--calcite-spacing-md)}.slider-container{flex:1}.slider-play-button{place-self:center;transform:translateY(8px)}.timezone-input{min-width:0}`;Intl.DateTimeFormat().resolvedOptions().timeZone;var W={milliseconds:1,seconds:1e3,minutes:6e4,hours:36e5,days:864e5,weeks:6048e5,months:26784e5,years:31536e6,decades:31536e7,centuries:31536e8};function f(i,e,t){return i===0?0:i*W[e]/W[t]}function be(i,e="milliseconds"){let t=f(i.getUTCHours(),"hours","milliseconds"),r=f(i.getUTCMinutes(),"minutes","milliseconds"),n=f(i.getUTCSeconds(),"seconds","milliseconds"),s=i.getUTCMilliseconds();return f(t+r+n+s,"milliseconds",e)}function ve(i,e,t="milliseconds"){let r=new Date(f(e,t,"milliseconds"));return r.setUTCFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),r}function xe(i){let e=new Date(0);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),e}function we(i,e){let t=new Date(i.getTime());return t.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}function ye(i){return i instanceof Date&&!Number.isNaN(i.getTime())}function O(i,e){let t=new Date(i.getTime());return t.setHours(t.getHours()+e),t}var z=Math.PI,g=Math.sin,v=Math.cos,Te=Math.asin,ke=Math.acos,p=z/180,ae=1e3*60*60*24,le=2440588,oe=2451545;function De(i){return i.valueOf()/ae-.5+le}function $(i){return new Date((i+.5-le)*ae)}function Se(i){return De(i)-oe}var X=p*23.4397;function $e(i,e){return Te(g(e)*v(X)+v(e)*g(X)*g(i))}function Ce(i){return p*(357.5291+.98560028*i)}function ze(i){return p*(1.9148*g(i)+.02*g(2*i)+3e-4*g(3*i))}function Pe(i,e){var t=p*102.9372;return i+e+t+z}var _={};_.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var L=[[-.83,"sunrise","sunset"]],ce=9e-4;function Ue(i,e){return Math.round(i-ce-e/(2*z))}function ee(i,e,t){return ce+(i+e)/(2*z)+t}function ie(i,e,t){return oe+i+.0053*g(e)-.0069*g(2*t)}function Me(i,e,t){return ke((g(i)-g(e)*g(t))/(v(e)*v(t)))}_.getTimes=function(i,e,t){var r=p*-t,n=p*e,s=Se(i),a=Ue(s,r),l=ee(0,r,a),o=Ce(l),d=ze(o),c=Pe(o,d),x=$e(c,0),b=ie(l,o,c);function ge(U){var S=Me(U,n,x),pe=ee(S,r,a);return ie(pe,o,c)}function ue(U){var S=(g(U)-g(n)*g(x))/(v(n)*v(x));return S<-1?_.PolarException.MIDNIGHT_SUN:S>1?_.PolarException.POLAR_NIGHT:_.PolarException.NORMAL}var T={solarNoon:$(b),nadir:$(b-.5),polarException:_.PolarException.NORMAL},k,F,D,P,j;for(k=0,F=L.length;k<F;k+=1)D=L[k],P=ge(D[0]*p),j=b-(P-b),T[D[1]]=$(j),T[D[2]]=$(P);return T.polarException=ue(L[0][0]*p),T};var Ee={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},H=["spring","summer","fall","winter"];function y(i,e,t){let r=I(e,t),{dayOfMonth:n,month:s}=Ee[r],a=new Date(i.getTime());return a.setMonth(s,n),a}function Oe(i,e){let t=Le(i);return I(t,e)}function Le(i){let e=i.getTime(),t=y(i,"spring","northern").getTime(),r=y(i,"summer","northern").getTime(),n=y(i,"fall","northern").getTime(),s=y(i,"winter","northern").getTime();return e>=t&&e<r?"spring":e>=r&&e<n?"summer":e>=n&&e<s?"fall":"winter"}function I(i,e){return e==="northern"?i:Ne(i)}function te(i){return i>=0?"northern":"southern"}function Ne(i){let e=H.indexOf(i);return H[(e+2)%4]}function He(i,e,t){if(i==null||e==null||Number.isNaN(i.getTime())&&Number.isNaN(e.getTime()))return 3e5;let r=t.getTime(),n=i.getTime(),s=e.getTime(),a=n-72e5/2,l=n+72e5/2,o=s-72e5/3*2,d=s+72e5/3,c=3e5;return r>=a&&r<=l?r-a<=12e5?c=18e5-(r-a)/12e5*16e5:l-r<=12e5/2?c=3e5-(l-r)/12e5*2*1e5:c=2e5:r>=o&&r<=d?r-o<=12e5/2?c=3e5-(r-o)/12e5*2*1e5:d-r<=12e5?c=18e5-(d-r)/12e5*16e5:c=2e5:(r<n||r>s)&&(c=18e5),c}function Ae(i,e,t,r){let n=_.getTimes(i,e,t),s=n.sunrise,a=n.sunset,l=O(i,r),o=O(s,r),d=O(a,r);if(l.getUTCDate()!==o.getUTCDate()||l.getUTCDate()!==d.getUTCDate()){let c=l.getTime()-o.getTime()>0?1:-1;s.setUTCDate(s.getUTCDate()+c),a.setUTCDate(a.getUTCDate()+c)}return{sunrise:s,sunset:a}}function u(i){return i?.type==="sun"}function de(i){return{remove:i}}var he={hour:"numeric",minute:"numeric",timeZone:"UTC"},Ie={hour:"numeric",timeZone:"UTC"};function Fe(i){let e=Math.round(f(i,"minutes","hours"));return new Date(f(e,"hours","milliseconds"))}function je(i){return new Date(i*6e4)}function Ye(i){let e=Fe(i),t=N(e,he);return t.includes(" ")&&(t=N(e,Ie),t=t.replace(":00","")),t}function Be(i){let e=je(i),t=N(e,he);return i!==0&&t==="00:00"&&(t="24:00"),t}var Re=(i,e)=>{switch(e){case"tick":return Ye(i);case"max":case"min":case"value":return Be(i)}},C=23*60+59,Ze=5,Ge=C/6;function qe(i){return h`<calcite-slider class="slider" .disabled=${i.disabled} fill-placement=none label-ticks label-handles .labelFormatter=${Re} min=0 .max=${C} @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=${Ze} style=${q({gridArea:"slider"})} .ticks=${Ge} .value=${((i.value??0)+C)%C}></calcite-slider>`}function Ve(i,e){return i/15}function Je(i,e){let t=i?.[0];if(t==null)return null;e||(e={hours:0,minutes:0,seconds:0}),e.hours=Ve(t);let r=e.hours%1;e.hours-=r,e.minutes=r*60;let n=e.minutes%1;return e.minutes-=n,e.seconds=Math.round(n*60),e}function Ke(i,e){if(e==null||!i.cameraTrackingEnabled)return 0;let t=Je([e.longitude,e.latitude]);return t==null?0:Math.round(t.hours+t.minutes/60+t.seconds/3600)}var Qe=864e5,We=100,Xe=1e3,ei=12e5,ii=ei/4;function re(i,e){return((i+e)%24+24)%24}function ti({mode:i,lighting:e,getPlaySpeed:t}){let r=-1;function n(s=Date.now()){let a=e.date,l=Date.now()-(s??0);if(i==="day"){s=Date.now();let o=t()/We*l;if(o>0){let d=new Date(a.getTime()+o),c=e.displayUTCOffset??0,x=re(d.getUTCHours(),c),b=re(a.getUTCHours(),c);x<b&&(d=new Date(a.getTime()+o-Qe)),e.date=d}}else if(l>Xe){s=Date.now();let o=(a.getUTCMonth()+1)%12,d=new Date(a.getTime());d.setUTCMonth(o),e.date=d}r=requestAnimationFrame(()=>n(s))}return n(),de(()=>cancelAnimationFrame(r))}function m(i){return i.hidden?null:i.children}function ne(i){let{children:e,hideHeader:t,headingLevel:r=2,label:n,title:s}=i;return h`<div aria-label=${n??w} class=${G({[i.class]:!0,[E.widget]:!0,[E.panel]:!0})} role=presentation>${m({hidden:t||!s,children:Q({level:r,children:s})})}${e}</div>`}var A=class extends Z{constructor(){super(...arguments),this.view=J(this),this.messages=K({blocking:!0}),this.#n="none",this.#s=null,this.#e=-1,this.#r=B(),this.#a=200,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=M(),this.arcgisUserDateTimeChange=M()}static{this.properties={playingState:1,lighting:32,supported:32,sunlightingDisabled:5,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,localDate:0,directShadowsEnabled:5,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,timeSliderPosition:9,utcOffset:9,yearPlaying:5}}static{this.styles=fe}get _view(){return this.view?.type==="3d"?this.view:void 0}#t;#n;#s;#e;#i;#r;#a;get playingState(){return this.#n}set playingState(e){this.#n=e,e==="none"?this.#t?.remove():(this._play(e),this.arcgisUserDateTimeChange.emit())}get lighting(){return this._view?.environment.lighting}get supported(){return this._view?.type==="3d"}get sunlightingDisabled(){return!u(this.lighting)}set sunlightingDisabled(e){let t=this._view?.environment;if(t==null)return;let r=t.lighting,n=this.#s;this.#s=r;let s={directShadowsEnabled:r.directShadowsEnabled};u(r)&&(s.cameraTrackingEnabled=r.cameraTrackingEnabled);let a=e?"virtual":"sun",l;n!=null&&n.type===a?l=n:l=e?new _e:new me,l.set(s),t.lighting=l,e||(this._stopPlaying(),this.#r.value&&(this.#r.value.open=!1))}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,t=te(e);return Oe(this.localDate,t)}set currentSeason(e){this._stopPlaying();let t=this._view?.camera?.position?.latitude??0,r=te(t),n=I(e,r);this.localDate=y(this.localDate,n,"northern"),this.arcgisUserDateTimeChange.emit()}get dayPlaying(){return this.playingState==="day"}set dayPlaying(e){this.playingState=e?"day":"none"}get localDate(){return u(this.lighting)?xe(this.lighting.date):new Date}set localDate(e){ye(e)&&u(this.lighting)&&(this.lighting.date=we(this.lighting.date,e))}get directShadowsEnabled(){return this.lighting?.directShadowsEnabled??!1}set directShadowsEnabled(e){this.lighting&&(this.lighting.directShadowsEnabled=e)}get timeSliderPosition(){if(u(this.lighting)){let e=this.lighting.date;return be(e,"minutes")}else return 0}set timeSliderPosition(e){if(u(this.lighting)){let t=this.lighting.date,r=ve(t,e,"minutes");this._stopPlaying(),this.#i?.remove(),this.lighting.date=r}}get utcOffset(){return u(this.lighting)?this.lighting.displayUTCOffset??Ke(this.lighting,this._view?.camera?.position):0}set utcOffset(e){u(this.lighting)&&(this.lighting.displayUTCOffset=e)}get yearPlaying(){return this.playingState==="year"}set yearPlaying(e){this.playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}load(){this.manager.onDisconnected(()=>{this.#t?.remove(),this.#i?.remove()})}_stopPlaying(){this.playingState="none"}_play(e){this.#t?.remove();let t=this._view;if(t==null||this.sunlightingDisabled)return;let r=t.environment.lighting;u(r)&&(this.#t=ti({mode:e,lighting:r,getPlaySpeed:()=>{let n=this._view,s=this._view?.environment.lighting;if(n!=null&&u(s)){let a=n.camera.position.latitude??0,l=n.camera.position.longitude??0,{sunrise:o,sunset:d}=Ae(s.date,a,l,s.displayUTCOffset??0);return He(o,d,s.date)*this.playSpeedMultiplier}else return ii*this.playSpeedMultiplier}}))}_scheduleTimeUpdate(e){if(this.#e=e,this.#i)return;let t=requestIdleCallback(()=>{this.#e!==-1&&(this.timeSliderPosition=this.#e),this.#e=-1,this.#i=void 0},{timeout:this.#a});this.#i=de(()=>cancelIdleCallback(t))}render(){let{messages:e,dateOrSeason:t}=this,r=this.sunlightingDisabled,n="s";if(!this.supported)return ne({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 s=this.utcOffset*60;return ne({class:"wrapper",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:h`<div class="day-container"><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}${qe({disabled:this.sunlightingDisabled,scale:n,value:this.timeSliderPosition+s,onTimeChanged:a=>{this._stopPlaying(),this.arcgisUserDateTimeChange.emit(),this._scheduleTimeUpdate(a-s)}})}</calcite-label>${m({hidden:this.hidePlayButtons,children:h`<div class="slider-play-button">${se({scale:n,disabled:this.sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this.playingState==="day"?this._stopPlaying():this.playingState="day"}})}</div>`})}</div>${m({hidden:this.hideTimezone,children:h`<calcite-label scale=s>${e.timezone}<calcite-input-time-zone class="timezone-input" mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this.sunlightingDisabled} .value=${`${s}`} @calciteInputTimeZoneChange=${a=>{let l=+a.target.value;this.utcOffset=l/60,this._stopPlaying()}} ${R(this.#r)}></calcite-input-time-zone></calcite-label>`})}${m({hidden:this.hideDatePicker,children:t==="date"?this.#l({scale:n,disabled:r}):this.#o({scale:n,disabled:r})})}${m({hidden:this.hideSunLightingToggle,children:si({scale:n,messages:e.sunLightingToggle,sunlightingEnabled:!this.sunlightingDisabled,onSunLightingToggle:a=>{this.sunlightingDisabled=!a}})})}${m({hidden:this.hideShadowsToggle,children:ai({scale:n,messages:e.shadowsToggle,onShadowCheckboxChange:a=>{this.directShadowsEnabled=a},shadowEnabled:this.directShadowsEnabled})})}`})}#l({scale:e,disabled:t}){let{messages:r}=this;return h`<calcite-label .scale=${e}>${r.date}${ri({disabled:t,scale:e,localDate:this.localDate,onDateChange:n=>{let s=n.currentTarget.valueAsDate,a=Array.isArray(s)?s[0]:s;this._stopPlaying(),this.localDate=a;let l=this.lighting;u(l)&&(l.date=a),this.arcgisUserDateTimeChange.emit()},playButtons:m({hidden:this.hidePlayButtons,children:se({scale:e,playing:this.yearPlaying,disabled:t,label:r.playYear,onClick:()=>{this.playingState==="year"?this.playingState="none":this.playingState="year"}})})})}</calcite-label>`}#o({scale:e,disabled:t}){let{messages:r}=this;return h`<calcite-label .scale=${e}>${r.season}${ni({scale:e,selectedSeason:this.currentSeason,disabled:t,messages:r,onSeasonChange:n=>{this._stopPlaying(),this.currentSeason=n.currentTarget.value,this.arcgisUserDateTimeChange.emit()}})}</calcite-label>`}};function se({disabled:i,playing:e,onClick:t,label:r,scale:n}){return h`<calcite-button appearance=solid .scale=${n} .disabled=${i} .iconStart=${e?"pause-f":"play-f"} .label=${r} @click=${t} round title=${r??w} type=button></calcite-button>`}function ri({disabled:i,localDate:e,onDateChange:t,scale:r,playButtons:n}){return h`<div class="date-container"><calcite-input-date-picker data-testid=daylight-date-picker .disabled=${i} overlay-positioning=fixed placement=bottom .valueAsDate=${e} .scale=${r} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>${n}</div>`}function ni({messages:i,disabled:e,scale:t,selectedSeason:r,onSeasonChange:n}){return h`<calcite-select .disabled=${e} .label=${i.season} .scale=${t} .value=${r} @calciteSelectChange=${s=>{n(s)}}>${H.map(s=>h`<calcite-option .selected=${r===s} .value=${s}>${i[s]}</calcite-option>`)}</calcite-select>`}function si({messages:i,sunlightingEnabled:e,onSunLightingToggle:t,scale:r}){return h`<calcite-label layout=inline .scale=${r} title=${i?.tooltip??w}><calcite-checkbox .scale=${r} .checked=${e} @calciteCheckboxChange=${n=>t(n.target.checked)}></calcite-checkbox>${i?.label}</calcite-label>`}function ai({messages:i,shadowEnabled:e,onShadowCheckboxChange:t,scale:r}){return h`<calcite-label layout=inline .scale=${r} title=${i?.tooltip??w}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${n=>t(n.target.checked)}></calcite-checkbox>${i.label}</calcite-label>`}V("arcgis-daylight",A);return A},"views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","intl",a)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
3
+ v4.34.0-next.119 */
4
4
  export default $arcgis.t(([{formatNumber:r}])=>{var o=new Map([["a3-landscape","a3-landscape"],["a3-portrait","a3-portrait"],["a4-landscape","a4-landscape"],["a4-portrait","a4-portrait"],["letter-ansi-a-landscape","ansi-a-landscape"],["letter-ansi-a-portrait","ansi-a-portrait"],["tabloid-ansi-b-landscape","ansi-b-landscape"],["tabloid-ansi-b-portrait","ansi-b-portrait"]]),c=/^https:\/\/([a-z\d-]+)(\.maps([^.]*))?\.arcgis\.com/iu;function u(a){let t=a?.closest("[dir]");return t!==null&&t instanceof HTMLElement&&t.dir==="rtl"||document.dir==="rtl"}function d(a){if(!a)return;let t=a.layoutTemplateInfo;if(!t)return;let[e,n]=t.pageSize;return`${r(e)} \xD7 ${r(n)} ${a.pageUnits}`}function f(a,t){let{label:e,layout:n,layoutItem:i,type:s}=a;return s==="print-service-template"&&t[n]?t[n]:(e??n??i?.id)?.replaceAll("_"," ")??t.untitled}function m(a){return o.get(a)}var g=new Map([["AIX","aix"],["EPS","eps"],["GIF","gif"],["JPG","jpg"],["PDF","pdf"],["PNG32","png32"],["PNG8","png8"],["SVG","svg"],["SVGZ","svgz"],["TIFF","tiff"]]),p="map-only";function b(a){return a?.toLowerCase()===p}return{a:c,b:u,c:d,d:f,e:m,f:g,g:b}},"intl")
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
3
+ v4.34.0-next.119 */
4
4
  var f={"top-left":"top-left","top-right":"top-right","bottom-left":"bottom-left","bottom-right":"bottom-right","bottom-leading":"bottom-start","bottom-trailing":"bottom-end","top-leading":"top-start","top-trailing":"top-end"},p=["manual"];function w(e){e.el.childElem&&(e.el.childElem.ownedBy=e.el),e.position&&p.includes(e.position)?e.el.removeAttribute("slot"):e.position&&(e.el.slot=f[e.position]);let t=m(e);if(!t){let n=v(e);if(!n){u(e);return}return a(n,e,!0),n}return g(t,e.el.parent)||(e.el.parent=t,t.localName==="arcgis-expand"?h(t,e):t.localName==="arcgis-placement"?y(t,e):a(t,e,!1)),t}function m({el:e}){for(let t=e.parentElement;t;t=t?.parentElement??null){if(c.has(t.localName))return t;if("ownedBy"in t&&t.ownedBy instanceof HTMLElement&&c.has(t.ownedBy.localName))return t.ownedBy}}var c=new Set(["arcgis-map","arcgis-scene","arcgis-link-chart","arcgis-expand","arcgis-placement"]);function g(e,t){if(e!==t)return!1;let n=e.localName;return n==="arcgis-expand"||n==="arcgis-placement"}function l(e,t,n="arcgisReady"){let o=e;if(o.view)t(o.view);else{let i=function(d){d.target===e&&(l(e,t,n),e.removeEventListener(n,i))};e.addEventListener(n,i)}}var h=(e,t)=>l(e,n=>{let o=r(t);t.el.shadowRoot?e.content=t.el:t.el.childElem&&e.content!=null&&o.append(t.el.childElem),t.el.view=n}),y=(e,t)=>l(e,n=>{let o=r(t);t.el.childElem&&o.append(t.el.childElem),t.el.view=n}),a=(e,t,n)=>l(e,o=>{n&&u(t),t.el.view=o,t.referenceElement=e},"arcgisViewReadyChange");function b(e){let t=!1,n=e.el.view,o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e.el),"view")??{get:()=>n,set:i=>n=i};Object.defineProperty(e.el,"view",{get:o.get.bind(e.el),set:i=>{o.set.call(e.el,i),i&&!t&&(t=!0,e.arcgisReady.emit())},configurable:!0,enumerable:!0}),n&&(e.el.view=n)}function E(e){return e==null||e===""}function N(e,t){return t!=null&&e?.position===t.position&&e?.heading===t.heading&&e?.tilt===t.tilt&&e?.fov===t.fov}function R(e,t){return t===void 0||e?.targetGeometry!==t?.targetGeometry||e?.rotation!==t?.rotation||e?.scale!==t?.scale}function B(e,t){return s(t?.center,e)}function s(e,t){if(typeof t=="string")return s(e,t.split(",").map(Number));if(!e)return t;if(Array.isArray(t)){let n=t[0],o=t[1],i=t.length>2?t[2]:void 0;if(n!==e.longitude||o!==e.latitude||i!==e.z)return t}else if(t&&!e?.equals(t))return t}function u(e){e.el.childElem&&r(e).append(e.el.childElem)}function r(e){return e.el.shadowRoot??e.el}function v(e,t){let n=e.referenceElement;if(typeof n!="string")return n??void 0;let o=n.includes("#")||n.includes(".")||n.includes("["),i=e.el.getRootNode();return(o?void 0:i.querySelector(`#${n}`))??i.querySelector(n)??void 0}var O=e=>e.el.childElem;async function x(e){let t=typeof e=="function"?e():e;t&&("setFocus"in t&&typeof t.setFocus=="function"?await t.setFocus():t instanceof HTMLElement&&t.focus())}export{w as a,b,E as c,N as d,R as e,B as f,s as g,O as h,x as i};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
4
- import{e as j}from"./E25SBDVK.js";import{a as M}from"./2CEW6Y5Y.js";import"./ARRVHOHV.js";import"./2VHN33LU.js";import"./FOQN4RR4.js";import{A as _,B as d,C as h,D as k,E,F as v,I as U,J as V,O as D,a as w,b as y,e as A,s as L,y as P,z as S}from"./72I5D7CL.js";import"./M6DTSHO5.js";var z=(l,c,n)=>{let u=new Map;for(let e=c;e<=n;e++)u.set(l[e],e);return u},H=S(class extends _{constructor(l){if(super(l),l.type!==P.CHILD)throw Error("repeat() can only be used in text expressions")}dt(l,c,n){let u;n===void 0?n=c:c!==void 0&&(u=c);let e=[],i=[],t=0;for(let m of l)e[t]=u?u(m,t):t,i[t]=n(m,t),t++;return{values:i,keys:e}}render(l,c,n){return this.dt(l,c,n).values}update(l,[c,n,u]){let e=E(l),{values:i,keys:t}=this.dt(c,n,u);if(!Array.isArray(e))return this.ut=t,i;let m=this.ut??=[],p=[],g,$,s=0,r=e.length-1,a=0,o=i.length-1;for(;s<=r&&a<=o;)if(e[s]===null)s++;else if(e[r]===null)r--;else if(m[s]===t[a])p[a]=h(e[s],i[a]),s++,a++;else if(m[r]===t[o])p[o]=h(e[r],i[o]),r--,o--;else if(m[s]===t[o])p[o]=h(e[s],i[o]),d(l,p[o+1],e[s]),s++,o--;else if(m[r]===t[a])p[a]=h(e[r],i[a]),d(l,e[s],e[r]),r--,a++;else if(g===void 0&&(g=z(t,a,o),$=z(m,s,r)),g.has(m[s]))if(g.has(m[r])){let f=$.get(t[a]),b=f!==void 0?e[f]:null;if(b===null){let x=d(l,e[s]);h(x,i[a]),p[a]=x}else p[a]=h(b,i[a]),d(l,e[s],b),e[f]=null;a++}else v(e[r]),r--;else v(e[s]),s++;for(;a<=o;){let f=d(l,p[o+1]);h(f,i[a]),p[a++]=f}for(;s<=r;){let f=e[s++];f!==null&&v(f)}return this.ut=t,k(l,p),A}});var I=w`.arcgis-unit-select{width:100%}.arcgis-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}`,O="arcgis-unit-select",T={label:`${O}__label`},C=class extends U{constructor(){super(...arguments),this.messages=M({}),this.options=[],this.arcgisUnitSelectChange=L()}static{this.properties={options:[1,{type:Array}],selectLabel:1,value:0,messageOverrides:0,label:1}}static{this.styles=I}async destroy(){await this.manager.destroy()}render(){let{messages:c,options:n=[],selectLabel:u,value:e,arcgisUnitSelectChange:i}=this;return y`<calcite-label class=${V(T.label)}>${u}<calcite-select .label=${u} @calciteSelectChange=${t=>{i.emit(t.target.value)}}>${H(n,t=>t,t=>y`<calcite-option .selected=${t===e} .value=${t}>${j(t)?c.systems?.[t]:c.units?.[t]?.pluralCapitalized}</calcite-option>`)}</calcite-select></calcite-label>`}};D("arcgis-unit-select",C);export{C as ArcgisUnitSelect};
3
+ v4.34.0-next.119 */
4
+ import{e as j}from"./ZBOCJ4J2.js";import{a as M}from"./KV7YLE5O.js";import"./BLO6PWUC.js";import"./MHJILUQV.js";import"./GBGOJMP7.js";import{A as _,B as d,C as h,D as k,E,F as v,I as U,J as V,O as D,a as w,b as y,e as A,s as L,y as P,z as S}from"./BK6NJTRW.js";import"./LW6SWPGN.js";var z=(l,c,n)=>{let u=new Map;for(let e=c;e<=n;e++)u.set(l[e],e);return u},H=S(class extends _{constructor(l){if(super(l),l.type!==P.CHILD)throw Error("repeat() can only be used in text expressions")}dt(l,c,n){let u;n===void 0?n=c:c!==void 0&&(u=c);let e=[],i=[],t=0;for(let m of l)e[t]=u?u(m,t):t,i[t]=n(m,t),t++;return{values:i,keys:e}}render(l,c,n){return this.dt(l,c,n).values}update(l,[c,n,u]){let e=E(l),{values:i,keys:t}=this.dt(c,n,u);if(!Array.isArray(e))return this.ut=t,i;let m=this.ut??=[],p=[],g,$,s=0,r=e.length-1,a=0,o=i.length-1;for(;s<=r&&a<=o;)if(e[s]===null)s++;else if(e[r]===null)r--;else if(m[s]===t[a])p[a]=h(e[s],i[a]),s++,a++;else if(m[r]===t[o])p[o]=h(e[r],i[o]),r--,o--;else if(m[s]===t[o])p[o]=h(e[s],i[o]),d(l,p[o+1],e[s]),s++,o--;else if(m[r]===t[a])p[a]=h(e[r],i[a]),d(l,e[s],e[r]),r--,a++;else if(g===void 0&&(g=z(t,a,o),$=z(m,s,r)),g.has(m[s]))if(g.has(m[r])){let f=$.get(t[a]),b=f!==void 0?e[f]:null;if(b===null){let x=d(l,e[s]);h(x,i[a]),p[a]=x}else p[a]=h(b,i[a]),d(l,e[s],b),e[f]=null;a++}else v(e[r]),r--;else v(e[s]),s++;for(;a<=o;){let f=d(l,p[o+1]);h(f,i[a]),p[a++]=f}for(;s<=r;){let f=e[s++];f!==null&&v(f)}return this.ut=t,k(l,p),A}});var I=w`.arcgis-unit-select{width:100%}.arcgis-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}`,O="arcgis-unit-select",T={label:`${O}__label`},C=class extends U{constructor(){super(...arguments),this.messages=M({}),this.options=[],this.arcgisUnitSelectChange=L()}static{this.properties={options:[1,{type:Array}],selectLabel:1,value:0,messageOverrides:0,label:1}}static{this.styles=I}async destroy(){await this.manager.destroy()}render(){let{messages:c,options:n=[],selectLabel:u,value:e,arcgisUnitSelectChange:i}=this;return y`<calcite-label class=${V(T.label)}>${u}<calcite-select .label=${u} @calciteSelectChange=${t=>{i.emit(t.target.value)}}>${H(n,t=>t,t=>y`<calcite-option .selected=${t===e} .value=${t}>${j(t)?c.systems?.[t]:c.units?.[t]?.pluralCapitalized}</calcite-option>`)}</calcite-select></calcite-label>`}};D("arcgis-unit-select",C);export{C as ArcgisUnitSelect};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
3
+ v4.34.0-next.119 */
4
4
  var e={disabled:"esri-disabled",empty:"esri-widget__content--empty",heading:"esri-widget__heading",loaderAnimation:"esri-widget__loader-animation",panel:"esri-widget--panel",widget:"esri-widget",widgetButton:"esri-widget--button",widgetDisabled:"esri-widget--disabled"};export{e 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/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
4
- import h from"./ACNXYPQ6.js";import g from"./TU76Y6WC.js";import{a as b}from"./I7KYRYV7.js";import f from"./RZFEBQ7W.js";import"./YPQDZBW5.js";import"./DPIBQJAX.js";import e from"./J3BCKJ2C.js";import{a as E}from"./2CEW6Y5Y.js";import c from"./RASZITGH.js";import a from"./FEFB2HQN.js";import{a as P,g as V}from"./ARRVHOHV.js";import"./2VHN33LU.js";import"./HTIZ6PEN.js";import{a as x}from"./FOQN4RR4.js";import{G as w,H as v,I as N,J as l,K as D,L as d,O as R,a as B,b as n,g as L,s as A,u as O}from"./72I5D7CL.js";import"./M6DTSHO5.js";export default $arcgis.t(([Q,{substitute:g,formatNumber:y},{watch:_},{stripHTML:I},G,{renderingSanitizer:K},$,,,H,,{d:z},{a:S,d:Z,e:j}])=>{var u="arcgis-features",r={base:u,container:`${u}__container`,contentContainer:`${u}__content-container`,contentFeature:`${u}__content-feature`,flowItemCollapsed:`${u}__flow-item--collapsed`,header:`${u}__header`,footer:`${u}__footer`,featureMenuObserver:`${u}__feature-menu-observer`,actionExit:`${u}__action--exit`,loader:`${u}__loader`,paginationText:`${u}__pagination-text`,paginationActionBar:`${u}__pagination-action-bar`,paginationMenuButton:`${u}__pagination-menu-button`,paginationPrevious:`${u}__pagination-previous`},Y=B`:host{display:flex;overflow:hidden;flex:1 1 auto}.arcgis-features{--calcite-color-background: var(--calcite-color-background);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.arcgis-features img{image-orientation:from-image}.arcgis-features__flow-item--collapsed{--calcite-flow-item-header-border-block-end: none}.arcgis-features__container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-background)}.arcgis-features__container calcite-list{width:100%}.arcgis-features__container:not(:empty){padding:var(--calcite-spacing-md)}.arcgis-features .arcgis-feature,.arcgis-features .arcgis-feature-relationship,.arcgis-features .arcgis-feature-utility-network-associations{background-color:transparent}.arcgis-features__heading{word-break:break-word;word-wrap:break-word}.arcgis-features__header,.arcgis-features__footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.arcgis-features__footer{flex:1}.arcgis-features__pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.arcgis-features__loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.arcgis-features__pagination-action-bar{flex:1}.arcgis-features__pagination-menu-button{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.arcgis-features__icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.arcgis-features__action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.arcgis-features__header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.arcgis-features__content-feature{--calcite-flow-item-footer-padding: 0}.arcgis-features__feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-features__action--exit{transform:scaleX(-1)}`;function ee(h){switch(h?.type){case"point":return h;case"extent":return h.center;case"polygon":return h.centroid;case"multipoint":case"polyline":return h.extent?.center;default:return null}}var k=class extends O{constructor(e){super(e),this.exports=void 0}hostLoaded(){this.component.manager.onLifecycle(()=>_(()=>{let{view:e,trackLocation:t,location:i}=this.component;return t&&e&&i?[t,i,e.size,e.type==="3d"?e.camera:e.viewpoint]:null},()=>void this._updateScreenLocation()))}async _updateScreenLocation(){{$.isLoaded()||await $.load();let{location:e,view:t}=this.component,i=t?.spatialReference,a=i&&e?$.execute(e,i):null;this.exports=this.component.trackLocation&&a&&t?.ready?t.toScreen(a):null}}},te=P(k),M=S.clone();function ie(h){return h?.declaredClass.startsWith("esri.layers.")??!1}var ae=H(Q),T=class extends N{constructor(){super(...arguments),this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._rootFlowItemNode=w(),this._featureMenuViewportNode=w(),this._actionBarMenuNode=w(),this._flowContainerNode=w(),this.messages=E(),this.viewModel=ae(this),this._selectedFeatureComponent=w(),this._cancelOpenRelatedFeature=()=>{let{_openRelatedFeatureAbortController:e}=this;e&&e.abort(),this._openRelatedFeatureAbortController=null},this.screenLocation=te(this),this._openRelatedFeatureAbortController=null,this.flowItems=new G,this.active=this.viewModel.active,this.collapsed=!1,this.content=this.viewModel.content,this.featureMenuOpen=this.viewModel.featureMenuOpen,this.featureMenuTitle=this.viewModel.featureMenuTitle,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.headerActions=new G,this.headingLevel=2,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.promises=this.viewModel.promises,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.spatialReference=this.viewModel.spatialReference,this.heading=this.viewModel.title,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.hideActionBar=!1,this.hideCloseButton=!1,this.showCollapseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideFlow=!1,this.hideHeading=!1,this.hideSpinner=!1,this.autoDestroyDisabled=!1,this.actions=this.viewModel.actions,this.featureViewModelAbilities=this.viewModel.featureViewModelAbilities,this.featuresPerPage=this.viewModel.featuresPerPage,this.goToOverride=this.viewModel.goToOverride,this.includeDefaultActions=this.viewModel.includeDefaultActions,this.state=this.viewModel.state,this.arcgisPropertyChange=V()("selectedFeature","selectedFeatureIndex","state"),this.arcgisReady=A(),this.arcgisTriggerAction=A()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,view:[64,{noAccessor:!0}],referenceElement:1,icon:1,active:0,collapsed:5,content:1,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,headerActions:0,headingLevel:9,initialDisplayMode:1,location:0,map:0,promises:0,responsiveActionsEnabled:5,selectedFeature:0,selectedDrillInFeature:32,selectedFeatureIndex:9,selectedFeatureComponent:32,spatialReference:0,heading:1,timeZone:1,updateLocationEnabled:5,hideActionBar:5,hideCloseButton:5,showCollapseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideFlow:5,hideHeading:5,hideSpinner:5,autoDestroyDisabled:5,messageOverrides:0,label:1,actions:0,featureViewModelAbilities:0,position:1,featuresPerPage:9,goToOverride:0,includeDefaultActions:5,state:3}}static{this.styles=Y}get trackLocation(){return this.viewModel.waitingForResult}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.el.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureViewModel?.title)&&!!(this.content||this.viewModel.selectedFeatureViewModel?.content))}get selectedDrillInFeature(){let e=Array.from(this.flowItems).at(-1);return e&&"graphic"in e?e.graphic??null:null}get selectedFeatureComponent(){return this._selectedFeatureComponent.value??null}async clear(){return this.viewModel.clear()}async close(){this.viewModel.visible=!1}async destroy(){await this.manager.destroy(),this._cancelOpenRelatedFeature(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){return await this.viewModel.fetchFeatures(e,t)}async next(){return this.viewModel.next()}async open(e){this.viewModel.open(e)}async previous(){return this.viewModel.previous()}async setFocus(){this._flowContainerNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e&&e.type==="toggle"&&(e.value=!e.value),await j(e,this.viewModel)}loaded(){this.manager.onLifecycle(()=>[_(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),_(()=>this.viewModel?.view,(e,t)=>this._viewChange(e,t)),_(()=>this.screenLocation,()=>this._closeOpenActionMenu()),_(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),_(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),_(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()})])}_groupResultsByLayer(){let{featureViewModels:e}=this.viewModel,t=new Map;return e.forEach(i=>{let a=i?.graphic;if(!a)return;let s=z(a),o=ie(s)?s:null,c=t.get(o)??[];t.set(o,[...c,i])}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;this._openRelatedFeatureAbortController=t,await e.updateGeometry();let i=e.graphic,a=i?.geometry;if(a==null||i==null)return;this._removeFlowItems(),await this.viewModel.zoomTo({target:a});let s=ee(a);await this.open({features:[i],location:s??void 0}),await this.setFocus(),this._openRelatedFeatureAbortController===t&&(this._openRelatedFeatureAbortController=null)}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"?this._handleFeatureMenuBack():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:i}=this,{id:a}=e,s=i?.attributes,o=e.title??"",c=a==="zoom-to-feature"?g(o,{messages:t}):a==="remove-selected-feature"?g(o,{messages:t}):a==="zoom-to-clustered-features"?g(o,{messages:t}):a==="browse-clustered-features"?g(o,{messages:t}):e.title;return c&&s?g(c,s):c??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode&&this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:i,waitingForResult:a}=this.viewModel;a||!i||e===t||e===-1||(this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewChange(e,t){e&&t&&this.viewModel.clear()}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_removeFlowItems(){this.flowItems.removeAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":return"";case"feature-relationship":return e.allItemsDescription;case"feature-utility-network-association-type":return""}}_handleDrillInBackClick(){this.flowItems?.pop()}_getPositionStyles(){let{screenLocation:e,view:t}=this;if(t==null||e==null)return{};let{padding:i}=t,a=16;return{"--calcite-loader-size":`${a}px`,left:`${e.x-(i.left??0)-a/2}px`,top:`${e.y-(i.top??0)-a/2}px`}}_getHeading(){let{hideHeading:e}=this,{title:t,selectedFeatureViewModel:i}=this.viewModel;return i?i?.state==="error"?this.messages?.errorMessage??"":i?.title||"":!e&&t?t:""}_renderSpinner(){let{referenceElement:e}=this;!e||typeof e=="string"||L(n`<calcite-loader .hidden=${this.hideSpinner||!this.screenLocation} .label=${this.messages.loading??""} inline style=${D(this._getPositionStyles())}></calcite-loader>`,e)}render(){return this._renderSpinner(),n`<div class=${l(r.base)} @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(),this.initialDisplayMode==="list"?this._renderFeaturePaginationText():this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?n`<div class=${l(r.header)}>${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?n`<div class=${l(r.footer)} slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a}=t;return n`<div class=${l(r.paginationText)}>${g(e.pageText??"",{index:y(a+1),total:y(i)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a,pendingPromisesCount:s}=t;return n`<calcite-action appearance=solid class=${l(r.paginationMenuButton)} icon=list .label=${e.selectFeature} .loading=${s>0} @click=${this._handlePaginationMenuButton} scale=s .text=${g(e.pageText??"",{index:y(a+1),total:y(i)})} text-enabled title=${e.selectFeature??d}></calcite-action>`}_renderPagination(){let{previous:e,next:t}=this.messages;return n`<calcite-action-bar class=${l(r.paginationActionBar)} expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action appearance=solid class=${l(r.paginationPrevious)} icon=chevron-left icon-flip-rtl .label=${e??""} @click=${this._previousFeature} scale=s .text=${e??""} title=${e??""??d}></calcite-action><calcite-action appearance=solid icon=chevron-right icon-flip-rtl .label=${t??""} @click=${this._nextFeature} scale=s .text=${t??""} title=${t??""??d}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e){let{initialDisplayMode:t}=this,{selectedFeatureViewModel:i,featureViewModels:a}=this.viewModel,s=e===i,o=a.indexOf(e);return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(o)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(o)}><span .innerHTML=${(K.sanitize(e.title)||this.messages.untitled)??""} slot=content></span>${t==="list"?n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,i=this._groupResultsByLayer(),a=this.initialDisplayMode==="list"?"none":"single";return t.featureViewModels.length?n`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${a}>${Array.from(i.keys(),s=>{let o=i.get(s)?.map(p=>this._renderFeatureMenuItem(p)),c=s?s.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&c!==null?b(s?.uid||"map-graphics",n`<calcite-list-item-group .heading=${c}>${o}</calcite-list-item-group>`):o})}</calcite-list>`:null}_renderHeaderAction(e,t){let i=e.title||"";return e.visible?b(`header-action-${t}`,n`<calcite-action .active=${e.type==="toggle"?e.value:!1} appearance=solid data-action-id=${e.id??d} data-action-uid=${e.uid??d} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${i} title=${i??d}></calcite-action>`):null}_renderHeaderActions(){return this.headerActions.map((e,t)=>this._renderHeaderAction(e,t)).toArray()}_renderContentFeature(){let{headingLevel:e,hideCloseButton:t,_isCollapsed:i,_collapseEnabled:a,featureNavigationTop:s,flowItems:o,initialDisplayMode:c,selectedFeature:p,featureMenuOpen:f}=this,{active:m}=this.viewModel,F=this._getHeading();if(c==="list"&&!p)return null;let C=o.length===0&&(c==="list"?!!p:!f);return n`<calcite-flow-item class=${l(x({[r.contentFeature]:!0,[r.flowItemCollapsed]:i}))} .closable=${!t} .closed=${!m} .collapsed=${i} .collapseDirection=${s?"down":"up"} .collapsible=${a} .headingLevel=${e} .selected=${C} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this.close} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${I(F)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${l(x(r.container,r.contentContainer))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:i,messages:a,initialDisplayMode:s,featureMenuOpen:o,selectedFeature:c,_collapseEnabled:p,_isCollapsed:f,featureNavigationTop:m,headingLevel:F}=this,{active:C,featureViewModels:U,pendingPromisesCount:W}=e,X=i??a.selectFeature;if(s==="feature"&&!o)return null;let q=s==="list"?!c:o;return n`<calcite-flow-item class=${l(x({[r.flowItemCollapsed]:f}))} .closable=${s==="list"&&!t} .closed=${!C} .collapsed=${s==="list"&&f} .collapseDirection=${m?"down":"up"} .collapsible=${s==="list"&&p} .description=${this.hideFeatureMenuHeading?void 0:g(a.total??"",{total:U.length})} .heading=${this.hideFeatureMenuHeading?void 0:X} .headingLevel=${F} .loading=${e.waitingForContents} .selected=${q} @calciteFlowItemBack=${J=>{J.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this.close} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${W>0?n`<calcite-loader class=${l(r.loader)} inline .label=${a.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class=${l(r.container)}>${this._renderFeatureMenu()}</div><div class=${l(r.featureMenuObserver)} ${v(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?n`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-actions width=full>${a.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:i,hideCloseButton:a,active:s}=this,o="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,c=e.flowType==="feature-association",p=i.returnToInitialFeature??"",f=i?.selectFeature,m=this._getActionTitle(M);return n`<calcite-flow-item .closable=${!a} .closed=${!s} .description=${I(this._getDrillInFlowItemDescription(e)??"")} .heading=${I(e.heading??"")} .selected=${t} @calciteFlowItemBack=${F=>{F.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this.close}><calcite-action appearance=transparent class=${l(r.actionExit)} icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${p??""} title=${p??""??d}></calcite-action>${o?n`<calcite-action appearance=transparent icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${f??""} title=${f??d}></calcite-action>`:null}${c?n`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action appearance=solid data-action-id=${M.id??d} data-action-uid=${M.uid??d} .disabled=${M.disabled} .icon=${M.icon??void 0} .loading=${M.active} scale=s text-enabled .text=${m} title=${m??d} @click=${()=>Z(this.viewModel,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class=${l(r.container)}>${e}</div></calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e?.map((a,s)=>this._renderFlowItem(a,this.initialDisplayMode==="list"||!this.featureMenuOpen&&s===e.length-1)),i=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(),t]:[this._renderContentFeature(),t,this._renderFeatureMenuContainer()];return this.hideFlow?i:n`<calcite-flow ${v(this._flowContainerNode)}>${i}</calcite-flow>`}_renderActionBar(){return!this._isCollapsed&&!this.hideActionBar&&this.viewModel.allActions?.length?n`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${v(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>`:null}_renderActions(){return this.viewModel.allActions.toArray().map(e=>{let t=this._getActionTitle(e);return n`<calcite-action .active=${e.type==="toggle"?e.value:!1} appearance=solid data-action-id=${e.id??d} data-action-uid=${e.uid??d} .disabled=${e.disabled} .icon=${e.icon??void 0} .loading=${e.active} scale=s .textEnabled=${!this._hideActionText} .text=${t??""} title=${t??d} @click=${()=>this._triggerAction(e)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureViewModel:t}=this.viewModel;return t?b(t,n`<arcgis-feature .flowItems=${this.flowItems} .graphic=${t.graphic} .map=${this.map} show-relationship-content hide-heading .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view} .headingLevel=${this.headingLevel+1} ${v(this._selectedFeatureComponent)}></arcgis-feature>`):typeof e=="string"?b(e,n`<div .innerHTML=${K.sanitize(e)??""}></div>`):e??null}};R("arcgis-features",T);return T},"widgets/Features/FeaturesViewModel","intl","core/reactiveUtils","applications/Components/stringUtils","core/Collection","applications/Components/sanitizerUtils","geometry/operators/projectOperator",a,c,e,f,g,h)
3
+ v4.34.0-next.119 */
4
+ import h from"./FIKRM5EX.js";import g from"./TG6WBRX6.js";import{a as b}from"./DWFLDEKN.js";import f from"./QMSLIZKA.js";import"./IXMRQD6T.js";import"./CB2NRF27.js";import e from"./HPDTYGEU.js";import{a as E}from"./KV7YLE5O.js";import c from"./EDSOS32V.js";import a from"./HZ2K2XG4.js";import{a as P,g as V}from"./BLO6PWUC.js";import"./MHJILUQV.js";import"./45NFNT3A.js";import{a as x}from"./GBGOJMP7.js";import{G as w,H as v,I as N,J as l,K as D,L as d,O as R,a as B,b as n,g as L,s as A,u as O}from"./BK6NJTRW.js";import"./LW6SWPGN.js";export default $arcgis.t(([Q,{substitute:g,formatNumber:y},{watch:_},{stripHTML:I},G,{renderingSanitizer:K},$,,,H,,{d:z},{a:S,d:Z,e:j}])=>{var u="arcgis-features",r={base:u,container:`${u}__container`,contentContainer:`${u}__content-container`,contentFeature:`${u}__content-feature`,flowItemCollapsed:`${u}__flow-item--collapsed`,header:`${u}__header`,footer:`${u}__footer`,featureMenuObserver:`${u}__feature-menu-observer`,actionExit:`${u}__action--exit`,loader:`${u}__loader`,paginationText:`${u}__pagination-text`,paginationActionBar:`${u}__pagination-action-bar`,paginationMenuButton:`${u}__pagination-menu-button`,paginationPrevious:`${u}__pagination-previous`},Y=B`:host{display:flex;overflow:hidden;flex:1 1 auto}.arcgis-features{--calcite-color-background: var(--calcite-color-background);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.arcgis-features img{image-orientation:from-image}.arcgis-features__flow-item--collapsed{--calcite-flow-item-header-border-block-end: none}.arcgis-features__container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-background)}.arcgis-features__container calcite-list{width:100%}.arcgis-features__container:not(:empty){padding:var(--calcite-spacing-md)}.arcgis-features .arcgis-feature,.arcgis-features .arcgis-feature-relationship,.arcgis-features .arcgis-feature-utility-network-associations{background-color:transparent}.arcgis-features__heading{word-break:break-word;word-wrap:break-word}.arcgis-features__header,.arcgis-features__footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.arcgis-features__footer{flex:1}.arcgis-features__pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.arcgis-features__loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.arcgis-features__pagination-action-bar{flex:1}.arcgis-features__pagination-menu-button{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.arcgis-features__icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.arcgis-features__action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.arcgis-features__header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.arcgis-features__content-feature{--calcite-flow-item-footer-padding: 0}.arcgis-features__feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.arcgis-features__action--exit{transform:scaleX(-1)}`;function ee(h){switch(h?.type){case"point":return h;case"extent":return h.center;case"polygon":return h.centroid;case"multipoint":case"polyline":return h.extent?.center;default:return null}}var k=class extends O{constructor(e){super(e),this.exports=void 0}hostLoaded(){this.component.manager.onLifecycle(()=>_(()=>{let{view:e,trackLocation:t,location:i}=this.component;return t&&e&&i?[t,i,e.size,e.type==="3d"?e.camera:e.viewpoint]:null},()=>void this._updateScreenLocation()))}async _updateScreenLocation(){{$.isLoaded()||await $.load();let{location:e,view:t}=this.component,i=t?.spatialReference,a=i&&e?$.execute(e,i):null;this.exports=this.component.trackLocation&&a&&t?.ready?t.toScreen(a):null}}},te=P(k),M=S.clone();function ie(h){return h?.declaredClass.startsWith("esri.layers.")??!1}var ae=H(Q),T=class extends N{constructor(){super(...arguments),this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._rootFlowItemNode=w(),this._featureMenuViewportNode=w(),this._actionBarMenuNode=w(),this._flowContainerNode=w(),this.messages=E(),this.viewModel=ae(this),this._selectedFeatureComponent=w(),this._cancelOpenRelatedFeature=()=>{let{_openRelatedFeatureAbortController:e}=this;e&&e.abort(),this._openRelatedFeatureAbortController=null},this.screenLocation=te(this),this._openRelatedFeatureAbortController=null,this.flowItems=new G,this.active=this.viewModel.active,this.collapsed=!1,this.content=this.viewModel.content,this.featureMenuOpen=this.viewModel.featureMenuOpen,this.featureMenuTitle=this.viewModel.featureMenuTitle,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.headerActions=new G,this.headingLevel=2,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.promises=this.viewModel.promises,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.spatialReference=this.viewModel.spatialReference,this.heading=this.viewModel.title,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.hideActionBar=!1,this.hideCloseButton=!1,this.showCollapseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideFlow=!1,this.hideHeading=!1,this.hideSpinner=!1,this.autoDestroyDisabled=!1,this.actions=this.viewModel.actions,this.featureViewModelAbilities=this.viewModel.featureViewModelAbilities,this.featuresPerPage=this.viewModel.featuresPerPage,this.goToOverride=this.viewModel.goToOverride,this.includeDefaultActions=this.viewModel.includeDefaultActions,this.state=this.viewModel.state,this.arcgisPropertyChange=V()("selectedFeature","selectedFeatureIndex","state"),this.arcgisReady=A(),this.arcgisTriggerAction=A()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,view:[64,{noAccessor:!0}],referenceElement:1,icon:1,active:0,collapsed:5,content:1,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,headerActions:0,headingLevel:9,initialDisplayMode:1,location:0,map:0,promises:0,responsiveActionsEnabled:5,selectedFeature:0,selectedDrillInFeature:32,selectedFeatureIndex:9,selectedFeatureComponent:32,spatialReference:0,heading:1,timeZone:1,updateLocationEnabled:5,hideActionBar:5,hideCloseButton:5,showCollapseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideFlow:5,hideHeading:5,hideSpinner:5,autoDestroyDisabled:5,messageOverrides:0,label:1,actions:0,featureViewModelAbilities:0,position:1,featuresPerPage:9,goToOverride:0,includeDefaultActions:5,state:3}}static{this.styles=Y}get trackLocation(){return this.viewModel.waitingForResult}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.el.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureViewModel?.title)&&!!(this.content||this.viewModel.selectedFeatureViewModel?.content))}get selectedDrillInFeature(){let e=Array.from(this.flowItems).at(-1);return e&&"graphic"in e?e.graphic??null:null}get selectedFeatureComponent(){return this._selectedFeatureComponent.value??null}async clear(){return this.viewModel.clear()}async close(){this.viewModel.visible=!1}async destroy(){await this.manager.destroy(),this._cancelOpenRelatedFeature(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){return await this.viewModel.fetchFeatures(e,t)}async next(){return this.viewModel.next()}async open(e){this.viewModel.open(e)}async previous(){return this.viewModel.previous()}async setFocus(){this._flowContainerNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e&&e.type==="toggle"&&(e.value=!e.value),await j(e,this.viewModel)}loaded(){this.manager.onLifecycle(()=>[_(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),_(()=>this.viewModel?.view,(e,t)=>this._viewChange(e,t)),_(()=>this.screenLocation,()=>this._closeOpenActionMenu()),_(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),_(()=>this.viewModel?.featureViewModels,()=>this._featureMenuViewportScrollTop()),_(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()})])}_groupResultsByLayer(){let{featureViewModels:e}=this.viewModel,t=new Map;return e.forEach(i=>{let a=i?.graphic;if(!a)return;let s=z(a),o=ie(s)?s:null,c=t.get(o)??[];t.set(o,[...c,i])}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;this._openRelatedFeatureAbortController=t,await e.updateGeometry();let i=e.graphic,a=i?.geometry;if(a==null||i==null)return;this._removeFlowItems(),await this.viewModel.zoomTo({target:a});let s=ee(a);await this.open({features:[i],location:s??void 0}),await this.setFocus(),this._openRelatedFeatureAbortController===t&&(this._openRelatedFeatureAbortController=null)}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"?this._handleFeatureMenuBack():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:i}=this,{id:a}=e,s=i?.attributes,o=e.title??"",c=a==="zoom-to-feature"?g(o,{messages:t}):a==="remove-selected-feature"?g(o,{messages:t}):a==="zoom-to-clustered-features"?g(o,{messages:t}):a==="browse-clustered-features"?g(o,{messages:t}):e.title;return c&&s?g(c,s):c??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode&&this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:i,waitingForResult:a}=this.viewModel;a||!i||e===t||e===-1||(this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewChange(e,t){e&&t&&this.viewModel.clear()}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_removeFlowItems(){this.flowItems.removeAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":return"";case"feature-relationship":return e.allItemsDescription;case"feature-utility-network-association-type":return""}}_handleDrillInBackClick(){this.flowItems?.pop()}_getPositionStyles(){let{screenLocation:e,view:t}=this;if(t==null||e==null)return{};let{padding:i}=t,a=16;return{"--calcite-loader-size":`${a}px`,left:`${e.x-(i.left??0)-a/2}px`,top:`${e.y-(i.top??0)-a/2}px`}}_getHeading(){let{hideHeading:e}=this,{title:t,selectedFeatureViewModel:i}=this.viewModel;return i?i?.state==="error"?this.messages?.errorMessage??"":i?.title||"":!e&&t?t:""}_renderSpinner(){let{referenceElement:e}=this;!e||typeof e=="string"||L(n`<calcite-loader .hidden=${this.hideSpinner||!this.screenLocation} .label=${this.messages.loading??""} inline style=${D(this._getPositionStyles())}></calcite-loader>`,e)}render(){return this._renderSpinner(),n`<div class=${l(r.base)} @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`}_renderFeatureNavigation(){return[this._renderPagination(),this.initialDisplayMode==="list"?this._renderFeaturePaginationText():this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?n`<div class=${l(r.header)}>${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?n`<div class=${l(r.footer)} slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a}=t;return n`<div class=${l(r.paginationText)}>${g(e.pageText??"",{index:y(a+1),total:y(i)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:i,selectedFeatureIndex:a,pendingPromisesCount:s}=t;return n`<calcite-action appearance=solid class=${l(r.paginationMenuButton)} icon=list .label=${e.selectFeature} .loading=${s>0} @click=${this._handlePaginationMenuButton} scale=s .text=${g(e.pageText??"",{index:y(a+1),total:y(i)})} text-enabled title=${e.selectFeature??d}></calcite-action>`}_renderPagination(){let{previous:e,next:t}=this.messages;return n`<calcite-action-bar class=${l(r.paginationActionBar)} expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action appearance=solid class=${l(r.paginationPrevious)} icon=chevron-left icon-flip-rtl .label=${e??""} @click=${this._previousFeature} scale=s .text=${e??""} title=${e??""??d}></calcite-action><calcite-action appearance=solid icon=chevron-right icon-flip-rtl .label=${t??""} @click=${this._nextFeature} scale=s .text=${t??""} title=${t??""??d}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e){let{initialDisplayMode:t}=this,{selectedFeatureViewModel:i,featureViewModels:a}=this.viewModel,s=e===i,o=a.indexOf(e);return n`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(o)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(o)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(o)}><span .innerHTML=${(K.sanitize(e.title)||this.messages.untitled)??""} slot=content></span>${t==="list"?n`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,i=this._groupResultsByLayer(),a=this.initialDisplayMode==="list"?"none":"single";return t.featureViewModels.length?n`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${a}>${Array.from(i.keys(),s=>{let o=i.get(s)?.map(p=>this._renderFeatureMenuItem(p)),c=s?s.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&c!==null?b(s?.uid||"map-graphics",n`<calcite-list-item-group .heading=${c}>${o}</calcite-list-item-group>`):o})}</calcite-list>`:null}_renderHeaderAction(e,t){let i=e.title||"";return e.visible?b(`header-action-${t}`,n`<calcite-action .active=${e.type==="toggle"?e.value:!1} appearance=solid data-action-id=${e.id??d} data-action-uid=${e.uid??d} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${i} title=${i??d}></calcite-action>`):null}_renderHeaderActions(){return this.headerActions.map((e,t)=>this._renderHeaderAction(e,t)).toArray()}_renderContentFeature(){let{headingLevel:e,hideCloseButton:t,_isCollapsed:i,_collapseEnabled:a,featureNavigationTop:s,flowItems:o,initialDisplayMode:c,selectedFeature:p,featureMenuOpen:f}=this,{active:m}=this.viewModel,F=this._getHeading();if(c==="list"&&!p)return null;let C=o.length===0&&(c==="list"?!!p:!f);return n`<calcite-flow-item class=${l(x({[r.contentFeature]:!0,[r.flowItemCollapsed]:i}))} .closable=${!t} .closed=${!m} .collapsed=${i} .collapseDirection=${s?"down":"up"} .collapsible=${a} .headingLevel=${e} .selected=${C} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this.close} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${I(F)} ${v(this._rootFlowItemNode)}>${this._renderHeaderActions()}${this._renderActionBar()}<div class=${l(x(r.container,r.contentContainer))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:i,messages:a,initialDisplayMode:s,featureMenuOpen:o,selectedFeature:c,_collapseEnabled:p,_isCollapsed:f,featureNavigationTop:m,headingLevel:F}=this,{active:C,featureViewModels:U,pendingPromisesCount:W}=e,X=i??a.selectFeature;if(s==="feature"&&!o)return null;let q=s==="list"?!c:o;return n`<calcite-flow-item class=${l(x({[r.flowItemCollapsed]:f}))} .closable=${s==="list"&&!t} .closed=${!C} .collapsed=${s==="list"&&f} .collapseDirection=${m?"down":"up"} .collapsible=${s==="list"&&p} .description=${this.hideFeatureMenuHeading?void 0:g(a.total??"",{total:U.length})} .heading=${this.hideFeatureMenuHeading?void 0:X} .headingLevel=${F} .loading=${e.waitingForContents} .selected=${q} @calciteFlowItemBack=${J=>{J.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this.close} @calciteFlowItemToggle=${this._handleCollapseToggle} ${v(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${W>0?n`<calcite-loader class=${l(r.loader)} inline .label=${a.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class=${l(r.container)}>${this._renderFeatureMenu()}</div><div class=${l(r.featureMenuObserver)} ${v(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?n`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-actions width=full>${a.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:i,hideCloseButton:a,active:s}=this,o="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,c=e.flowType==="feature-association",p=i.returnToInitialFeature??"",f=i?.selectFeature,m=this._getActionTitle(M);return n`<calcite-flow-item .closable=${!a} .closed=${!s} .description=${I(this._getDrillInFlowItemDescription(e)??"")} .heading=${I(e.heading??"")} .selected=${t} @calciteFlowItemBack=${F=>{F.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this.close}><calcite-action appearance=transparent class=${l(r.actionExit)} icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${p??""} title=${p??""??d}></calcite-action>${o?n`<calcite-action appearance=transparent icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${f??""} title=${f??d}></calcite-action>`:null}${c?n`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action appearance=solid data-action-id=${M.id??d} data-action-uid=${M.uid??d} .disabled=${M.disabled} .icon=${M.icon??void 0} .loading=${M.active} scale=s text-enabled .text=${m} title=${m??d} @click=${()=>Z(this.viewModel,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class=${l(r.container)}>${e}</div></calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e?.map((a,s)=>this._renderFlowItem(a,this.initialDisplayMode==="list"||!this.featureMenuOpen&&s===e.length-1)),i=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(),t]:[this._renderContentFeature(),t,this._renderFeatureMenuContainer()];return this.hideFlow?i:n`<calcite-flow ${v(this._flowContainerNode)}>${i}</calcite-flow>`}_renderActionBar(){return!this._isCollapsed&&!this.hideActionBar&&this.viewModel.allActions?.length?n`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s ${v(this._actionBarMenuNode)}>${this._renderActions()}</calcite-action-group></calcite-action-bar>`:null}_renderActions(){return this.viewModel.allActions.toArray().map(e=>{let t=this._getActionTitle(e);return n`<calcite-action .active=${e.type==="toggle"?e.value:!1} appearance=solid data-action-id=${e.id??d} data-action-uid=${e.uid??d} .disabled=${e.disabled} .icon=${e.icon??void 0} .loading=${e.active} scale=s .textEnabled=${!this._hideActionText} .text=${t??""} title=${t??d} @click=${()=>this._triggerAction(e)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureViewModel:t}=this.viewModel;return t?b(t,n`<arcgis-feature .flowItems=${this.flowItems} .graphic=${t.graphic} .map=${this.map} show-relationship-content hide-heading .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view} .headingLevel=${this.headingLevel+1} ${v(this._selectedFeatureComponent)}></arcgis-feature>`):typeof e=="string"?b(e,n`<div .innerHTML=${K.sanitize(e)??""}></div>`):e??null}};R("arcgis-features",T);return T},"widgets/Features/FeaturesViewModel","intl","core/reactiveUtils","applications/Components/stringUtils","core/Collection","applications/Components/sanitizerUtils","geometry/operators/projectOperator",a,c,e,f,g,h)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
4
- import{a as f}from"./OBEMMY3U.js";import a from"./TU76Y6WC.js";import{a as M}from"./I7KYRYV7.js";import{a as E}from"./FOQN4RR4.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"./72I5D7CL.js";import"./M6DTSHO5.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,{g: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} 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)
3
+ v4.34.0-next.119 */
4
+ import{a as f}from"./WTA2OAKI.js";import a from"./TG6WBRX6.js";import{a as M}from"./DWFLDEKN.js";import{a as E}from"./GBGOJMP7.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"./BK6NJTRW.js";import"./LW6SWPGN.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,{g: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} 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)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
4
- import{a as r}from"./FOQN4RR4.js";import{I as c,J as a,O as p,a as o,b as i}from"./72I5D7CL.js";import"./M6DTSHO5.js";var m=o`.arcgis-print__advanced-options-section{border:1px solid var(--calcite-color-border-1);margin-bottom:var(--calcite-spacing-sm)}.arcgis-print__map-only-section{padding:var(--calcite-spacing-sm) var(--calcite-spacing-sm)}.arcgis-print__panel-container{display:flex;flex:1 0;flex-direction:column;gap:var(--calcite-spacing-sm)}.arcgis-print__size-container{--button-width: 32px;display:inline-grid;grid-template-columns:1fr 1fr var(--button-width);column-gap:var(--calcite-spacing-xs);width:100%}.arcgis-print__swap-button{flex:1 0 auto;border:none;color:var(--calcite-color-border-input);align-self:flex-end;margin-bottom:var(--calcite-spacing-md)}.arcgis-print__swap-button calcite-button{width:var(--button-width);height:var(--button-width)}`,n="arcgis-print",s={advancedOptionsSection:`${n}__advanced-options-section`,mapOnlySection:`${n}__map-only-section`,panelContainer:`${n}__panel-container`,sizeContainer:`${n}__size-container`,swapButton:`${n}__swap-button`},l=class extends c{static{this.properties={viewModel:0,messages:0,selectExportsTab:0}}static{this.styles=m}loaded(){this.manager.onLifecycle(()=>[])}render(){return i`<section class=${a(s.mapOnlySection)} role=tabpanel><div class=${a(s.panelContainer)}>${this._renderFileNameInput()}${this._renderFileFormatSection()}${this._renderSizeSection()}${this._renderAdvancedSection()}${this._renderExportButton()}</div></section>`}_renderFileNameInput(){let{fileName:t,fileNamePlaceHolder:e}=this.messages;return i`<calcite-label>${t}<calcite-input .placeholder=${e} .value=${this.viewModel.templateOptions.fileName??""} @calciteInputInput=${d=>{this.viewModel.templateOptions.fileName=d.currentTarget.value}}></calcite-input></calcite-label>`}_renderFileFormatSection(){return i`<arcgis-print-format-select .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-format-select>`}_renderSizeSection(){return i`<div><div class=${a(r(s.sizeContainer))}><calcite-label>${this.messages.width}<calcite-input-number .value=${`${this.viewModel.templateOptions.width}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${t=>{let e=Number(t.target.value);!Number.isNaN(e)&&e>0&&Number.isFinite(e)?this.viewModel.templateOptions.width=e:t.target.value=`${this.viewModel.templateOptions.width}`}}></calcite-input-number></calcite-label><calcite-label>${this.messages.height}<calcite-input-number .value=${`${this.viewModel.templateOptions.height}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${t=>{let e=Number(t.target.value);!Number.isNaN(e)&&e>0&&Number.isFinite(e)?this.viewModel.templateOptions.height=e:t.target.value=`${this.viewModel.templateOptions.height}`}}></calcite-input-number></calcite-label><div class=${a(s.swapButton)}><calcite-button icon-start=arrow-right-left .label=${this.messages.swap} appearance=transparent kind=neutral @click=${()=>{[this.viewModel.templateOptions.width,this.viewModel.templateOptions.height]=[this.viewModel.templateOptions.height,this.viewModel.templateOptions.width],this.requestUpdate()}}></calcite-button></div></div><arcgis-print-preview-input .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-preview-input></div>`}_renderAdvancedSection(){return i`<calcite-block .ariaLabel=${this.messages.advancedOptions} class=${a(r(s.panelContainer,s.advancedOptionsSection))} collapsible .heading=${this.messages.advancedOptions}><arcgis-print-map-only-advanced-options .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-map-only-advanced-options></calcite-block>`}_renderExportButton(){return i`<arcgis-print-export-button .fileName=${this.viewModel.templateOptions.fileName??void 0} .messages=${this.messages} .viewModel=${this.viewModel} .selectExportsTab=${this.selectExportsTab}></arcgis-print-export-button>`}};p("arcgis-print-map-only-panel",l);export{l as PrintMapOnlyPanel};
3
+ v4.34.0-next.119 */
4
+ import{a as r}from"./GBGOJMP7.js";import{I as c,J as a,O as p,a as o,b as i}from"./BK6NJTRW.js";import"./LW6SWPGN.js";var m=o`.arcgis-print__advanced-options-section{border:1px solid var(--calcite-color-border-1);margin-bottom:var(--calcite-spacing-sm)}.arcgis-print__map-only-section{padding:var(--calcite-spacing-sm) var(--calcite-spacing-sm)}.arcgis-print__panel-container{display:flex;flex:1 0;flex-direction:column;gap:var(--calcite-spacing-sm)}.arcgis-print__size-container{--button-width: 32px;display:inline-grid;grid-template-columns:1fr 1fr var(--button-width);column-gap:var(--calcite-spacing-xs);width:100%}.arcgis-print__swap-button{flex:1 0 auto;border:none;color:var(--calcite-color-border-input);align-self:flex-end;margin-bottom:var(--calcite-spacing-md)}.arcgis-print__swap-button calcite-button{width:var(--button-width);height:var(--button-width)}`,n="arcgis-print",s={advancedOptionsSection:`${n}__advanced-options-section`,mapOnlySection:`${n}__map-only-section`,panelContainer:`${n}__panel-container`,sizeContainer:`${n}__size-container`,swapButton:`${n}__swap-button`},l=class extends c{static{this.properties={viewModel:0,messages:0,selectExportsTab:0}}static{this.styles=m}loaded(){this.manager.onLifecycle(()=>[])}render(){return i`<section class=${a(s.mapOnlySection)} role=tabpanel><div class=${a(s.panelContainer)}>${this._renderFileNameInput()}${this._renderFileFormatSection()}${this._renderSizeSection()}${this._renderAdvancedSection()}${this._renderExportButton()}</div></section>`}_renderFileNameInput(){let{fileName:t,fileNamePlaceHolder:e}=this.messages;return i`<calcite-label>${t}<calcite-input .placeholder=${e} .value=${this.viewModel.templateOptions.fileName??""} @calciteInputInput=${d=>{this.viewModel.templateOptions.fileName=d.currentTarget.value}}></calcite-input></calcite-label>`}_renderFileFormatSection(){return i`<arcgis-print-format-select .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-format-select>`}_renderSizeSection(){return i`<div><div class=${a(r(s.sizeContainer))}><calcite-label>${this.messages.width}<calcite-input-number .value=${`${this.viewModel.templateOptions.width}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${t=>{let e=Number(t.target.value);!Number.isNaN(e)&&e>0&&Number.isFinite(e)?this.viewModel.templateOptions.width=e:t.target.value=`${this.viewModel.templateOptions.width}`}}></calcite-input-number></calcite-label><calcite-label>${this.messages.height}<calcite-input-number .value=${`${this.viewModel.templateOptions.height}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${t=>{let e=Number(t.target.value);!Number.isNaN(e)&&e>0&&Number.isFinite(e)?this.viewModel.templateOptions.height=e:t.target.value=`${this.viewModel.templateOptions.height}`}}></calcite-input-number></calcite-label><div class=${a(s.swapButton)}><calcite-button icon-start=arrow-right-left .label=${this.messages.swap} appearance=transparent kind=neutral @click=${()=>{[this.viewModel.templateOptions.width,this.viewModel.templateOptions.height]=[this.viewModel.templateOptions.height,this.viewModel.templateOptions.width],this.requestUpdate()}}></calcite-button></div></div><arcgis-print-preview-input .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-preview-input></div>`}_renderAdvancedSection(){return i`<calcite-block .ariaLabel=${this.messages.advancedOptions} class=${a(r(s.panelContainer,s.advancedOptionsSection))} collapsible .heading=${this.messages.advancedOptions}><arcgis-print-map-only-advanced-options .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-map-only-advanced-options></calcite-block>`}_renderExportButton(){return i`<arcgis-print-export-button .fileName=${this.viewModel.templateOptions.fileName??void 0} .messages=${this.messages} .viewModel=${this.viewModel} .selectExportsTab=${this.selectExportsTab}></arcgis-print-export-button>`}};p("arcgis-print-map-only-panel",l);export{l as PrintMapOnlyPanel};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.118 */
4
- import{I as s,O as r,b as a}from"./72I5D7CL.js";import"./M6DTSHO5.js";export default $arcgis.t(([{watch:p}])=>{var t=class extends s{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let n=this.viewModel.templateOptions,i=Number(e.target.value);if(Number.isNaN(i)||i<=0||!Number.isFinite(i)){e.target.value=`${this._dpi}`;return}n.dpi=i}render(){return a`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};r("arcgis-print-dpi-input",t);return t},"core/reactiveUtils")
3
+ v4.34.0-next.119 */
4
+ import{I as s,O as r,b as a}from"./BK6NJTRW.js";import"./LW6SWPGN.js";export default $arcgis.t(([{watch:p}])=>{var t=class extends s{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let n=this.viewModel.templateOptions,i=Number(e.target.value);if(Number.isNaN(i)||i<=0||!Number.isFinite(i)){e.target.value=`${this._dpi}`;return}n.dpi=i}render(){return a`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};r("arcgis-print-dpi-input",t);return t},"core/reactiveUtils")