@arcgis/map-components 5.1.0-next.26 → 5.1.0-next.27

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 (222) hide show
  1. package/dist/cdn/{FHVJILOP.js → 227WPY6O.js} +1 -1
  2. package/dist/cdn/{F3NCON5F.js → 22YBLZZ5.js} +1 -1
  3. package/dist/cdn/{IDBLPYXK.js → 23HX6BD2.js} +1 -1
  4. package/dist/cdn/{SJJ4MLVA.js → 2AHOSQID.js} +1 -1
  5. package/dist/cdn/{MYJWBY4N.js → 2CHBGF6N.js} +1 -1
  6. package/dist/cdn/{NS6A57H7.js → 2CZVQJFN.js} +1 -1
  7. package/dist/cdn/{7OJESD5U.js → 2D47DQA5.js} +1 -1
  8. package/dist/cdn/{HFWMJJFD.js → 2E5U7E4Y.js} +1 -1
  9. package/dist/cdn/{LGF6DK5V.js → 2HRXVQNT.js} +1 -1
  10. package/dist/cdn/{LMI2OZRD.js → 2NW3IA4C.js} +1 -1
  11. package/dist/cdn/{NIEHEX74.js → 34K7KDP3.js} +1 -1
  12. package/dist/cdn/{EHWPP2OD.js → 34Z77QHJ.js} +1 -1
  13. package/dist/cdn/{5KNN577Y.js → 3NTRW2I5.js} +1 -1
  14. package/dist/cdn/{Y7BSBKHO.js → 3ON5H2G5.js} +1 -1
  15. package/dist/cdn/{7D64YYLS.js → 3W3MBD25.js} +1 -1
  16. package/dist/cdn/{DV3AMXLQ.js → 42IKCJ2T.js} +1 -1
  17. package/dist/cdn/{WQZ44Y3Z.js → 44APAUMM.js} +1 -1
  18. package/dist/cdn/{7W7RNWBM.js → 4J3CK2QK.js} +1 -1
  19. package/dist/cdn/{KG3JO6AR.js → 4MNQPYT6.js} +1 -1
  20. package/dist/cdn/{ZZ7EY45U.js → 4WKSSPS5.js} +1 -1
  21. package/dist/cdn/{Q4HJ76OE.js → 4YQZ3XVG.js} +1 -1
  22. package/dist/cdn/{PTGYG2U4.js → 54WDNPKC.js} +1 -1
  23. package/dist/cdn/{MQNRWUJV.js → 5KRCPR2U.js} +1 -1
  24. package/dist/cdn/{MSGBVT7B.js → 5ZHD4P65.js} +1 -1
  25. package/dist/cdn/{QH2WUE6T.js → 6M6VT4H6.js} +1 -1
  26. package/dist/cdn/{N2VUYFEK.js → 6UNF7T5E.js} +1 -1
  27. package/dist/cdn/{64XTP54A.js → 7FS3KABY.js} +1 -1
  28. package/dist/cdn/{IIGVQFLD.js → 7LEGZD2O.js} +1 -1
  29. package/dist/cdn/{AEQFRO7B.js → 7LYFC7SC.js} +1 -1
  30. package/dist/cdn/{ICCQCKZB.js → 7RUBJPVS.js} +1 -1
  31. package/dist/cdn/{YKFPLV7U.js → 7SZFENQP.js} +1 -1
  32. package/dist/cdn/{DUSCPURL.js → 7VRU553O.js} +1 -1
  33. package/dist/cdn/{FOZBLOPX.js → 7WKBNAQD.js} +1 -1
  34. package/dist/cdn/{2ELWNWRV.js → 7XJ2H56Y.js} +1 -1
  35. package/dist/cdn/{JTUDL7ZD.js → AA6JMN5J.js} +1 -1
  36. package/dist/cdn/{EAV2N3XM.js → AH4HKYPE.js} +1 -1
  37. package/dist/cdn/{BQUMWB3P.js → AR47FOKN.js} +1 -1
  38. package/dist/cdn/{VTWJOYZO.js → ATBESYRQ.js} +1 -1
  39. package/dist/cdn/{KB6ZC3F2.js → AZNCJT62.js} +1 -1
  40. package/dist/cdn/{ZSUULNWA.js → B2G5OTNZ.js} +1 -1
  41. package/dist/cdn/{AHAR3YRD.js → B4GFOGFO.js} +1 -1
  42. package/dist/cdn/{4Q2WOBXH.js → BHB3PSCU.js} +1 -1
  43. package/dist/cdn/{PX7OQ23D.js → BJEDYTXQ.js} +1 -1
  44. package/dist/cdn/{TCB332AR.js → BTIV4UDX.js} +1 -1
  45. package/dist/cdn/{VRC4A6UI.js → CDVHDTSM.js} +1 -1
  46. package/dist/cdn/{RTXZGZRC.js → CDVPXUWH.js} +1 -1
  47. package/dist/cdn/{ZENXKKZU.js → CGXRBQGQ.js} +1 -1
  48. package/dist/cdn/{XE7L75G7.js → DJMRUJ7O.js} +1 -1
  49. package/dist/cdn/{BSZYRTSR.js → DVMAHZFP.js} +1 -1
  50. package/dist/cdn/{M6NRIDED.js → DW3K3W57.js} +1 -1
  51. package/dist/cdn/E3ATQTQG.js +2 -0
  52. package/dist/cdn/{IOZAX7QH.js → EAQLT2UN.js} +1 -1
  53. package/dist/cdn/{QAGNYSNU.js → EPII4PE5.js} +1 -1
  54. package/dist/cdn/{7E3PHG6R.js → EQPYSPT5.js} +1 -1
  55. package/dist/cdn/{BX4XQZE3.js → ET6WL43W.js} +1 -1
  56. package/dist/cdn/{23TQHX3R.js → EUFSNMR4.js} +1 -1
  57. package/dist/cdn/{U4FOROQE.js → EY7SYUYY.js} +1 -1
  58. package/dist/cdn/{JYFXOUAR.js → EYX4XXBU.js} +1 -1
  59. package/dist/cdn/{NBS2JRKZ.js → G3DJLLNR.js} +1 -1
  60. package/dist/cdn/{TJXR3SIG.js → G44JDQZ4.js} +1 -1
  61. package/dist/cdn/{EXSFSEK3.js → GIICS6MH.js} +1 -1
  62. package/dist/cdn/{IGCGKXVQ.js → GKZICLQB.js} +1 -1
  63. package/dist/cdn/{YWYMFFO5.js → GST63XCD.js} +1 -1
  64. package/dist/cdn/{DTLIZIOI.js → H337G76Z.js} +1 -1
  65. package/dist/cdn/{5EZ4KU4A.js → HA465EKI.js} +1 -1
  66. package/dist/cdn/{YPGLFMTV.js → IEC2UOVC.js} +1 -1
  67. package/dist/cdn/{5JF5N6II.js → IEOFMCCO.js} +1 -1
  68. package/dist/cdn/{667Y5WZS.js → INULU27Q.js} +1 -1
  69. package/dist/cdn/{5YYDQKYB.js → IP6MMWXP.js} +1 -1
  70. package/dist/cdn/{SUUWINLA.js → ITTHJAUG.js} +1 -1
  71. package/dist/cdn/{DCF4XOHG.js → J5H3B35H.js} +1 -1
  72. package/dist/cdn/{XEKVZSQD.js → J756LIIM.js} +1 -1
  73. package/dist/cdn/{N7SXGVEK.js → JF4W5UZ7.js} +1 -1
  74. package/dist/cdn/{5DS4JPW6.js → JIZ6BEMO.js} +1 -1
  75. package/dist/cdn/{4HVMKKUC.js → JODAZMW3.js} +1 -1
  76. package/dist/cdn/{ZKB2DJMQ.js → JWTRJAFZ.js} +1 -1
  77. package/dist/cdn/{CHQK4O2O.js → JYDGMTWJ.js} +1 -1
  78. package/dist/cdn/{LQA4IF5M.js → K6T4CJK7.js} +1 -1
  79. package/dist/cdn/{XLAV73BO.js → KEKWNLTW.js} +1 -1
  80. package/dist/cdn/{P7GCX7CN.js → KUFUPG4B.js} +1 -1
  81. package/dist/cdn/{PAFLJ4T6.js → KUFW2OOW.js} +1 -1
  82. package/dist/cdn/{QPCLA4EJ.js → KUUX4Y7X.js} +1 -1
  83. package/dist/cdn/{MIK35PDX.js → KV2UORZN.js} +1 -1
  84. package/dist/cdn/{VW43RPYP.js → KVIUDTBB.js} +1 -1
  85. package/dist/cdn/{NCUVQ62D.js → KX25AEKF.js} +1 -1
  86. package/dist/cdn/KX5PBTVM.js +2 -0
  87. package/dist/cdn/{NGFJVQMO.js → KYJD5CQL.js} +1 -1
  88. package/dist/cdn/{JEG2YAUH.js → L6D5F5SD.js} +1 -1
  89. package/dist/cdn/{TPA4RUZY.js → LGEWMTBM.js} +1 -1
  90. package/dist/cdn/{7DAFL3QP.js → LGO4NCZM.js} +1 -1
  91. package/dist/cdn/{FSTB6YQB.js → LO6QWIYR.js} +1 -1
  92. package/dist/cdn/{UB6YWPE6.js → LY5GZCVF.js} +1 -1
  93. package/dist/cdn/{CYHPOGKU.js → M67RIQAG.js} +1 -1
  94. package/dist/cdn/{TO4AP4NZ.js → M6ZVATVW.js} +1 -1
  95. package/dist/cdn/{L4QA437J.js → MBIE3GJO.js} +1 -1
  96. package/dist/cdn/{46PYSV4C.js → MD2KA2VE.js} +1 -1
  97. package/dist/cdn/{YLAOXZXB.js → MFQWNYVF.js} +1 -1
  98. package/dist/cdn/{ZO5DJCAZ.js → MGI5SXEX.js} +1 -1
  99. package/dist/cdn/{YIABICX7.js → MHVCLFTY.js} +1 -1
  100. package/dist/cdn/{5JHCBJB4.js → MLTG7WO5.js} +1 -1
  101. package/dist/cdn/{CP3VD55W.js → MR5JAWKH.js} +1 -1
  102. package/dist/cdn/{LGCAKLVB.js → MX7LKRXI.js} +1 -1
  103. package/dist/cdn/{OI6PBJPY.js → MYATZCJP.js} +1 -1
  104. package/dist/cdn/{2LOKXZGA.js → NBA6VGFB.js} +1 -1
  105. package/dist/cdn/{HNDFLEFC.js → NQ53C2SG.js} +1 -1
  106. package/dist/cdn/{S5XIZMAX.js → NWQEVQPN.js} +1 -1
  107. package/dist/cdn/{O3GU57ZF.js → ODGZ4RGD.js} +1 -1
  108. package/dist/cdn/{ISVOJLBX.js → OIFWL2YB.js} +1 -1
  109. package/dist/cdn/{ITX6LJ6O.js → ONRBFGY5.js} +1 -1
  110. package/dist/cdn/{Z4BYNRYD.js → OPATO46Y.js} +1 -1
  111. package/dist/cdn/{AODIPCQO.js → OZICG5FF.js} +1 -1
  112. package/dist/cdn/{S2L4RRRK.js → P4DS6L6N.js} +1 -1
  113. package/dist/cdn/{PJ3PYFJ4.js → P5MTPM2I.js} +1 -1
  114. package/dist/cdn/{NKRZ2VLU.js → P6I2HVEZ.js} +1 -1
  115. package/dist/cdn/{UENUQ4KE.js → PI6KXXB5.js} +1 -1
  116. package/dist/cdn/{74J22H6S.js → PL6H7VTE.js} +1 -1
  117. package/dist/cdn/{K3C4REJ2.js → PPOG4NAA.js} +1 -1
  118. package/dist/cdn/{46LACOKN.js → PUJPVTUS.js} +1 -1
  119. package/dist/cdn/PY4FXGEA.js +2 -0
  120. package/dist/cdn/{5YQWN4HC.js → QAXSOHDW.js} +1 -1
  121. package/dist/cdn/{PEIVXKOI.js → QB7F6BBW.js} +1 -1
  122. package/dist/cdn/{B752UU56.js → QCCYKLEL.js} +1 -1
  123. package/dist/cdn/{T6LJGCEK.js → QDHEAX7N.js} +1 -1
  124. package/dist/cdn/{C3D6DL63.js → QIXAQV3Y.js} +1 -1
  125. package/dist/cdn/{GU3IZVNE.js → QRIK2V22.js} +1 -1
  126. package/dist/cdn/{RTWFIBP2.js → QUBU7FFY.js} +1 -1
  127. package/dist/cdn/{RO7BCT67.js → R7YMIGPE.js} +1 -1
  128. package/dist/cdn/{Z7KZKGZH.js → RB4ZCMX4.js} +1 -1
  129. package/dist/cdn/{R3UMLKV7.js → RCZV4CQN.js} +1 -1
  130. package/dist/cdn/{HIALRIA5.js → RG3A222F.js} +1 -1
  131. package/dist/cdn/{HVP4D5QA.js → RG4S7JVP.js} +1 -1
  132. package/dist/cdn/{27PMZPVO.js → RVGCVXBV.js} +1 -1
  133. package/dist/cdn/{RSXH2YEV.js → SEPRRGUF.js} +1 -1
  134. package/dist/cdn/{SRSSON6V.js → SJUWADQP.js} +1 -1
  135. package/dist/cdn/{AGWQDLNI.js → SKEB63NG.js} +1 -1
  136. package/dist/cdn/{APV3AYJF.js → SMHB2XNO.js} +1 -1
  137. package/dist/cdn/{ZNKRUHBB.js → SUZEU5HH.js} +2 -2
  138. package/dist/cdn/SY5BLQ77.js +2 -0
  139. package/dist/cdn/{NVPDQFVK.js → T4WQQ7MP.js} +1 -1
  140. package/dist/cdn/{JPC5EARH.js → T5F57ZKY.js} +1 -1
  141. package/dist/cdn/{KC37LMMM.js → TBB5FDQB.js} +1 -1
  142. package/dist/cdn/{LA4NAQGV.js → TLUXYPPY.js} +1 -1
  143. package/dist/cdn/{FOJRNP3B.js → TMXAN3O2.js} +1 -1
  144. package/dist/cdn/TTZN7HIT.js +2 -0
  145. package/dist/cdn/{DQRCKBRU.js → TZHRLKZR.js} +1 -1
  146. package/dist/cdn/{YP2LBGBB.js → TZXIPFOD.js} +1 -1
  147. package/dist/cdn/{FKLSUEE4.js → U3CQZ6CI.js} +1 -1
  148. package/dist/cdn/{3YF5ELCV.js → U557VRFM.js} +1 -1
  149. package/dist/cdn/{HCWAOP6D.js → U5PXE2DX.js} +1 -1
  150. package/dist/cdn/{GPUGICGT.js → U7GSOBVS.js} +1 -1
  151. package/dist/cdn/{XILIHQ2Y.js → UCWDM6D2.js} +1 -1
  152. package/dist/cdn/{EV3HXCIH.js → UEF6TPIT.js} +1 -1
  153. package/dist/cdn/{5FZ74RGF.js → UKG6DYFF.js} +1 -1
  154. package/dist/cdn/{7FXNEMXE.js → UMYVF65X.js} +1 -1
  155. package/dist/cdn/{4LG73L7E.js → US4GUOT3.js} +1 -1
  156. package/dist/cdn/{FXW2QMCP.js → UXYBJXLL.js} +1 -1
  157. package/dist/cdn/{Q4Z6YWQ4.js → UZFDHLQM.js} +1 -1
  158. package/dist/cdn/{UMQX5AKE.js → V5WAYR44.js} +1 -1
  159. package/dist/cdn/{OPPTQDUJ.js → VGP43HGK.js} +1 -1
  160. package/dist/cdn/{FGPK4XM4.js → VGR7AU6K.js} +1 -1
  161. package/dist/cdn/{IWN6U37Z.js → VH3WALH4.js} +1 -1
  162. package/dist/cdn/{5HUNDZSE.js → VNCC2KP5.js} +1 -1
  163. package/dist/cdn/{5OZFNWAD.js → VQ4QWOQY.js} +1 -1
  164. package/dist/cdn/{QJPNEXAO.js → VWHIK5GL.js} +1 -1
  165. package/dist/cdn/{NJN3I6EV.js → W5TN3LOU.js} +1 -1
  166. package/dist/cdn/{C5QG2S6I.js → WJ4JHHNJ.js} +1 -1
  167. package/dist/cdn/{VQ5WECKT.js → X7IBOHSI.js} +1 -1
  168. package/dist/cdn/{7BPH252S.js → XDDOM7RA.js} +1 -1
  169. package/dist/cdn/{XUQOEMSH.js → XIUUCICM.js} +1 -1
  170. package/dist/cdn/{CB36GREW.js → XP7ST6TO.js} +1 -1
  171. package/dist/cdn/{WMSKSUGI.js → XUESBDWT.js} +1 -1
  172. package/dist/cdn/{BMITVMTW.js → XV2NVNDJ.js} +1 -1
  173. package/dist/cdn/{G7OKKTPN.js → YOOYHZ7L.js} +1 -1
  174. package/dist/cdn/{3RWP2MFY.js → YQMPW2VC.js} +1 -1
  175. package/dist/cdn/{OOITGE5V.js → YRUX64GE.js} +1 -1
  176. package/dist/cdn/{GK27I2Y5.js → YSPFHM7A.js} +1 -1
  177. package/dist/cdn/{U77W27GO.js → YTOLDZ6E.js} +1 -1
  178. package/dist/cdn/{S4DXV4PM.js → YXYHUSBB.js} +1 -1
  179. package/dist/cdn/{G44PNNZ4.js → ZBANIHB3.js} +1 -1
  180. package/dist/cdn/{Q5LEXBSY.js → ZOAOTITT.js} +1 -1
  181. package/dist/cdn/{XAM2764P.js → ZW733SWS.js} +1 -1
  182. package/dist/cdn/{UIQHTGAK.js → ZXEQN6RW.js} +1 -1
  183. package/dist/cdn/ZZAD2X6F.js +2 -0
  184. package/dist/cdn/index.js +1 -1
  185. package/dist/chunks/action-utils.js +2 -2
  186. package/dist/chunks/esri-main.js +1 -1
  187. package/dist/chunks/heading.js +2 -2
  188. package/dist/chunks/slots.js +9 -9
  189. package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
  190. package/dist/components/arcgis-compass/customElement.js +1 -1
  191. package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
  192. package/dist/components/arcgis-feature-media/customElement.js +1 -1
  193. package/dist/components/arcgis-features/customElement.d.ts +1 -1
  194. package/dist/components/arcgis-features/customElement.js +59 -58
  195. package/dist/components/arcgis-home/customElement.js +2 -2
  196. package/dist/components/arcgis-link-chart/customElement.js +1 -1
  197. package/dist/components/arcgis-locate/customElement.js +17 -16
  198. package/dist/components/arcgis-map/customElement.js +1 -1
  199. package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
  200. package/dist/components/arcgis-popup/customElement.d.ts +1 -1
  201. package/dist/components/arcgis-presentation/customElement.js +6 -6
  202. package/dist/components/arcgis-scene/customElement.js +1 -1
  203. package/dist/components/arcgis-sketch/customElement.d.ts +8 -0
  204. package/dist/components/arcgis-sketch/customElement.js +1 -1
  205. package/dist/components/arcgis-zoom/customElement.js +1 -1
  206. package/dist/docs/api.json +1 -1
  207. package/dist/docs/docs.json +1 -1
  208. package/dist/docs/vscode.html-custom-data.json +1 -1
  209. package/dist/docs/web-types.json +1 -1
  210. package/dist/loader.js +1 -1
  211. package/dist/types/lumina.d.ts +1 -1
  212. package/dist/types/preact.d.ts +1 -1
  213. package/dist/types/react.d.ts +1 -1
  214. package/dist/types/stencil.d.ts +1 -1
  215. package/package.json +4 -4
  216. package/dist/cdn/4Y6EXK2P.js +0 -2
  217. package/dist/cdn/DS6FJ2ZR.js +0 -2
  218. package/dist/cdn/K3WRWVQH.js +0 -2
  219. package/dist/cdn/X7YUOD3X.js +0 -2
  220. package/dist/cdn/XL5VSTUT.js +0 -2
  221. package/dist/cdn/YSACVRKP.js +0 -2
  222. /package/dist/cdn/{BDUD457O.js → R5KGKAEB.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./TCB332AR.js";import"./7WLTT4K3.js";import{a as w}from"./46LACOKN.js";import"./HFWMJJFD.js";import"./NJN3I6EV.js";import"./LB32PLWG.js";import{M as b,N as g,O as v,U as $,a as _,b as r,p as d,r as m,s as f,x as o}from"./BDUD457O.js";import"./3TTFCHAA.js";export default $arcgis.t(([{queryAllJSON:R},C,,,T,{r:p}])=>{var E=_`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,F={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935},y=class extends v{constructor(){super(...arguments),this._defaultPopupTemplateEnabled=!0,this._messages=w({blocking:!0}),this._elementsWithoutLayer=[],this._popoverRef=b(),this._featuresFromSelectedLayer=[],this._layerIdToFeatures=new Map,this._layerIdToLayer=new Map,this._subtypeCodeToFeatures=new Map,this._sourceIdToElements=new Map,this._unLayers=[],this._compareByFeatureTitle=(e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0}),this._compareByLayerTitle=([,e],[,t])=>{let s=e[0].feature.layer,a=t[0].feature.layer,l=s?.title??"",c=a?.title??"";return l.localeCompare(c,void 0,{numeric:!0})},this._queryFeaturesOnLayer=async([e,t])=>{let s=this.utilityNetwork?.getLayerIdBySourceId(e),a=this._getLayerByLayerId(s),l=this._getElementsUniqueByGlobalId(t);if(s==null||!a){this._elementsWithoutLayer.push(...l);return}let c=a.createQuery();c.gdbVersion=this.utilityNetwork?.gdbVersion,c.objectIds=l.map(i=>i.objectId),c.outFields=["*"];let{features:n}=T.fromJSON(await R(a,c)),u=await Promise.all(n.map(async i=>{i.layer=a.type==="subtype-group"?a.findSublayerForFeature(i):a,i.origin=i.layer;let h=i.layer;if(i.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled)||(i.popupTemplate=h.createPopupTemplate()),h&&"getFeatureTitle"in h){let L=await h.getFeatureTitle(i)||p(i);return{feature:i,label:L}}return{feature:i,label:p(i)}}));a.type==="subtype-group"?u.forEach(i=>this._addOrCreateMapValue(this._subtypeCodeToFeatures,i.feature.layer.subtypeCode,i)):this._layerIdToFeatures.set(s,u)},this._aggregateGeometryRefChange=e=>{e&&(this._aggregatedGeometryComponentElement=e)},this._featuresRefChange=e=>{e&&(this._featuresComponentElement=e)},this._aggregatedGeometryDisabled=!1,this.aggregatedGeometryGraphicsColor=new C([255,255,0,.6]),this.hideFeatureResults=!1,this.isElementsSelected=!1,this.layers=[],this.state="ready",this.traceResultFeatures=[],this.autoDestroyDisabled=!1,this.arcgisAggregatedGeometryGraphicsColorChange=o(),this.arcgisHideGraphicsChange=o(),this.arcgisSelectedLayerChange=o(),this.arcgisSelectedResultTypeChange=o(),this.arcgisTraceResultFeaturesReady=o(),this._renderLayerListItem=([,e])=>{if(!e.length)return null;let t=e[0].feature.layer,s=t?.title||this._messages.unknown;return r`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this._setSelectedLayerAndFeatures(t)}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${e.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`},this._renderFeatureListItem=e=>{let{feature:t,label:s}=e;return r`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this.selectedFeature=t}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`}}static{this.properties={_aggregatedGeometryDisabled:16,aggregatedGeometryGraphicsColor:0,hideFeatureResults:5,featuresFromSelectedLayer:32,isElementsSelected:5,layers:0,messageOverrides:0,numResults:32,referenceElement:1,selectedFeature:0,selectedLayer:0,state:1,traceConfigTitle:1,traceError:0,traceResult:0,traceResultFeatures:0,utilityNetwork:0,view:0,autoDestroyDisabled:5}}static{this.styles=E}get featuresFromSelectedLayer(){return this._featuresFromSelectedLayer.map(({feature:e})=>e)}get numResults(){return this.traceResultFeatures.length+this._elementsWithoutLayer.length}clearAggregatedGeometryGraphics(){this._aggregatedGeometryComponentElement?.destroy()}async destroy(){this._layerIdToFeatures.clear(),this._subtypeCodeToFeatures.clear(),this._sourceIdToElements.clear(),this._aggregatedGeometryComponentElement?.destroy(),this._featuresComponentElement?.destroy(),await this.manager.destroy()}load(){this.traceResult&&(this._setSourceIdToElements(),this._loadDependencies().then(()=>this._queryTraceResultsFeatures()).finally(()=>{this.arcgisTraceResultFeaturesReady.emit(),this.state="ready"}))}willUpdate(e){e.has("isElementsSelected")&&this.arcgisSelectedResultTypeChange.emit(),e.has("selectedLayer")&&this.arcgisSelectedLayerChange.emit(),e.has("traceResult")&&(this.isElementsSelected=!1,this.traceResult||(this.traceResultFeatures=[],this._elementsWithoutLayer=[])),(e.has("layers")||e.has("utilityNetwork"))&&this._loadDependencies()}loaded(){this.utilityNetwork||d("warn",this,m("utilityNetwork")),this.layers.length===0&&d("warn",this,f("layers")),this.view||d("warn",this,m("view"))}disconnectedCallback(){super.disconnectedCallback(),this._layerIdToLayer.clear()}_addOrCreateMapValue(e,t,s){let a=e.get(t);a==null?e.set(t,[s]):a.push(s)}_getLayerByLayerId(e){if(e==null)return;let{_layerIdToLayer:t,_unLayers:s}=this;if(t.get(e))return t.get(e);let a=s.find(l=>"layerId"in l&&l.layerId===e);return a&&t.set(e,a),a}_getElementsUniqueByGlobalId(e){return Array.from(new Map(e.map(t=>[t.globalId,t])).values())}_handleHideGraphicsChange(e){e.stopPropagation();let t=e.detail;this.arcgisHideGraphicsChange.emit(t),this._aggregatedGeometryDisabled=t,t&&this._popoverRef.value?.open&&(this._popoverRef.value.open=!1)}async _loadDependencies(){let{layers:e,utilityNetwork:t}=this;if(!t)return;t.loaded||(this.state="loading",await t.load()),this._unLayers=e.filter(a=>t.isUtilityLayer(a));let s=this._unLayers.filter(a=>!a.loaded).map(a=>a.load());s.length>0&&(this.state="loading",await Promise.allSettled(s))}async _queryTraceResultsFeatures(){let e=Array.from(this._sourceIdToElements.entries());if(!e.length)return;this.state="loading";let t=e.map(this._queryFeaturesOnLayer);(await Promise.allSettled(t)).forEach((l,c)=>{if(l.status==="rejected"){let[n]=e[c];d("error",this,`Failed to query features for source ${n}. Reason: ${l.reason}`)}});let s=Array.from(this._layerIdToFeatures.values()),a=Array.from(this._subtypeCodeToFeatures.values());this.traceResultFeatures=s.concat(a).flat().map(({feature:l})=>l)}_setSelectedLayerAndFeatures(e){let t;if(!e)t=[];else if(e.type==="subtype-sublayer"){let{subtypeCode:s}=e;t=this._subtypeCodeToFeatures.get(s)??[]}else{let{layerId:s}=e;t=this._layerIdToFeatures.get(s)??[]}this._featuresFromSelectedLayer=t.sort(this._compareByFeatureTitle),this.selectedLayer=e}_setSourceIdToElements(){this.traceResult.elements?.forEach(e=>this._addOrCreateMapValue(this._sourceIdToElements,e.networkSourceId,e))}render(){let{traceError:e,traceResult:t}=this;if(e)return this._renderErrorLanding(e);if(!t)return this._renderNoTraceLanding();let{elements:s,globalFunctionResults:a,aggregatedGeometry:l}=t;if(!s.length&&!a.length&&!l)return this._renderNoResultsLanding();if(this.state==="loading")return this._renderGettingResults();if(this.selectedFeature){let n=this._featuresComponentElement,u=n?.selectedFeature?[n.selectedFeature]:[this.selectedFeature];return r`<arcgis-features .referenceElement=${this.referenceElement} .features=${u} .view=${this.view} open .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} @arcgisClose=${()=>this.selectedFeature=void 0} .autoDestroyDisabled=${this.autoDestroyDisabled} ${g(this._featuresRefChange)}></arcgis-features>`}let c=s.length>0&&!a.length&&!l;return this.hideFeatureResults&&c?this._renderFeaturesAreHiddenLanding():r`<calcite-flow>${c?null:r`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(t)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}",this.numResults.toString())} .selected=${(c||this.isElementsSelected)&&!this.selectedLayer} @calciteFlowItemBack=${()=>this.isElementsSelected=!1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title??void 0} .description=${this._messages.headings.totalFeatures.replace("{number}",this._featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${()=>this.selectedLayer=void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`}_renderGettingResults(){return r`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`}_renderLanding(e){let{elements:t,globalFunctionResults:s,aggregatedGeometry:a}=e;return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${a!=null?this._renderAggregatedGeometry(a):null}${a!=null&&!t.length?this._renderNoSelectableResults():null}${t.length>0?this.hideFeatureResults?this._renderFeaturesAreHidden():this._renderElementsResults():null}${s.length>0?this._renderFunctionsResults(s):null}</calcite-panel>`}_renderAggregatedGeometry(e){return r`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} auto-destroy-disabled ${g(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()} .disabled=${this._aggregatedGeometryDisabled}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable ${g(this._popoverRef)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${t=>{let s=t.target.value;this.arcgisAggregatedGeometryGraphicsColorChange.emit(s)}} .disabled=${this._aggregatedGeometryDisabled}></calcite-color-picker></calcite-popover></div>`}_renderFeaturesAreHiddenLanding(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${this._renderFeaturesAreHidden()}</calcite-panel>`}_renderFeaturesAreHidden(){return r`<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div>`}_renderNoSelectableResults(){return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}_renderElementsResults(){return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${()=>this.isElementsSelected=!0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}_renderFunctionsResults(e){return r`<div class="functions-heading">${this._messages.headings.functions}</div><calcite-table .caption=${this._messages.labels.functionResults}>${e.filter(t=>t.networkAttributeName!=null&&t.result!=null).map(t=>r`<calcite-table-row><calcite-table-cell>${t.networkAttributeName}</calcite-table-cell><calcite-table-cell>${t.result}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`}_renderLayerList(){let e=Array.from(this._layerIdToFeatures.entries()),t=Array.from(this._subtypeCodeToFeatures.entries()),s=e.concat(t).sort(this._compareByLayerTitle).map(this._renderLayerListItem);return this._elementsWithoutLayer.length>0&&s.push(this._renderUnknownListItem()),r`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state==="loading"}>${s}</calcite-list>`}_renderUnknownListItem(){return r`<calcite-list-item .label=${this._messages.unknown} disabled><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`}_renderFeaturesList(){return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}>${this._featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`}_renderTraceResultsHeading(){return r`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle?r`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>`:null}</div>`}_renderErrorLanding(e){let t=e.message;switch(e.details?.raw?.extendedCode){case F.dirtyAreasDiscovered:t=this._messages.traceErrors.dirtyAreasDiscovered;break;case F.noValidControllers:t=this._messages.traceErrors.noValidControllers;break}return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.traceFailedHeading}</div><div class="no-results-description">${this._messages.traceFailedDescription}</div><div class="no-results-description">${t}</div></div></calcite-panel>`}_renderNoResultsLanding(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div></calcite-panel>`}_renderNoTraceLanding(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`}};$("arcgis-utility-network-trace-results",y);return y},"applications/Components/featureUtils","Color","core/Error","Graphic","rest/support/FeatureSet",a)
2
+ import a from"./BTIV4UDX.js";import"./7WLTT4K3.js";import{a as w}from"./PUJPVTUS.js";import"./2E5U7E4Y.js";import"./W5TN3LOU.js";import"./LB32PLWG.js";import{M as b,N as g,O as v,U as $,a as _,b as r,p as d,r as m,s as f,x as o}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{queryAllJSON:R},C,,,T,{r:p}])=>{var E=_`:host{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}arcgis-features{height:100%}calcite-flow{min-height:var(--arcgis-internal-panel-height-sm, 240px);height:100%}calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.white-panel-background{--calcite-panel-background-color: var(--calcite-color-foreground-1)}.aggregated-geometry-container{display:flex;justify-content:space-between;padding:0 var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-md)}#elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);margin:0 var(--calcite-spacing-sm)}.no-selectable-results{padding:0 var(--calcite-spacing-md);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size)}.results-heading{display:flex;flex-direction:column;margin:var(--calcite-spacing-md);gap:var(--calcite-spacing-xs)}.results-heading .results-heading-title{font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.results-heading .results-heading-subtitle{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3)}.functions-heading{padding:var(--calcite-spacing-md) var(--calcite-spacing-md) var(--calcite-spacing-xxs) var(--calcite-spacing-md);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}.no-results-landing{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:var(--calcite-spacing-sm) var(--calcite-spacing-xl) var(--calcite-spacing-xl) var(--calcite-spacing-xl);gap:var(--calcite-spacing-md)}.no-results-landing calcite-icon{margin-bottom:var(--calcite-spacing-sm);--calcite-icon-color: var(--calcite-color-text-3)}.no-results-landing .no-results-heading{font-size:var(--calcite-font-size-2)}.no-results-landing .no-results-description{color:var(--calcite-color-text-3)}`,F={dirtyAreasDiscovered:-2147208511,noValidControllers:-2147208935},y=class extends v{constructor(){super(...arguments),this._defaultPopupTemplateEnabled=!0,this._messages=w({blocking:!0}),this._elementsWithoutLayer=[],this._popoverRef=b(),this._featuresFromSelectedLayer=[],this._layerIdToFeatures=new Map,this._layerIdToLayer=new Map,this._subtypeCodeToFeatures=new Map,this._sourceIdToElements=new Map,this._unLayers=[],this._compareByFeatureTitle=(e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0}),this._compareByLayerTitle=([,e],[,t])=>{let s=e[0].feature.layer,a=t[0].feature.layer,l=s?.title??"",c=a?.title??"";return l.localeCompare(c,void 0,{numeric:!0})},this._queryFeaturesOnLayer=async([e,t])=>{let s=this.utilityNetwork?.getLayerIdBySourceId(e),a=this._getLayerByLayerId(s),l=this._getElementsUniqueByGlobalId(t);if(s==null||!a){this._elementsWithoutLayer.push(...l);return}let c=a.createQuery();c.gdbVersion=this.utilityNetwork?.gdbVersion,c.objectIds=l.map(i=>i.objectId),c.outFields=["*"];let{features:n}=T.fromJSON(await R(a,c)),u=await Promise.all(n.map(async i=>{i.layer=a.type==="subtype-group"?a.findSublayerForFeature(i):a,i.origin=i.layer;let h=i.layer;if(i.getEffectivePopupTemplate(this._defaultPopupTemplateEnabled)||(i.popupTemplate=h.createPopupTemplate()),h&&"getFeatureTitle"in h){let L=await h.getFeatureTitle(i)||p(i);return{feature:i,label:L}}return{feature:i,label:p(i)}}));a.type==="subtype-group"?u.forEach(i=>this._addOrCreateMapValue(this._subtypeCodeToFeatures,i.feature.layer.subtypeCode,i)):this._layerIdToFeatures.set(s,u)},this._aggregateGeometryRefChange=e=>{e&&(this._aggregatedGeometryComponentElement=e)},this._featuresRefChange=e=>{e&&(this._featuresComponentElement=e)},this._aggregatedGeometryDisabled=!1,this.aggregatedGeometryGraphicsColor=new C([255,255,0,.6]),this.hideFeatureResults=!1,this.isElementsSelected=!1,this.layers=[],this.state="ready",this.traceResultFeatures=[],this.autoDestroyDisabled=!1,this.arcgisAggregatedGeometryGraphicsColorChange=o(),this.arcgisHideGraphicsChange=o(),this.arcgisSelectedLayerChange=o(),this.arcgisSelectedResultTypeChange=o(),this.arcgisTraceResultFeaturesReady=o(),this._renderLayerListItem=([,e])=>{if(!e.length)return null;let t=e[0].feature.layer,s=t?.title||this._messages.unknown;return r`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this._setSelectedLayerAndFeatures(t)}><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${e.length}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`},this._renderFeatureListItem=e=>{let{feature:t,label:s}=e;return r`<calcite-list-item .label=${s} @calciteListItemSelect=${()=>this.selectedFeature=t}><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item>`}}static{this.properties={_aggregatedGeometryDisabled:16,aggregatedGeometryGraphicsColor:0,hideFeatureResults:5,featuresFromSelectedLayer:32,isElementsSelected:5,layers:0,messageOverrides:0,numResults:32,referenceElement:1,selectedFeature:0,selectedLayer:0,state:1,traceConfigTitle:1,traceError:0,traceResult:0,traceResultFeatures:0,utilityNetwork:0,view:0,autoDestroyDisabled:5}}static{this.styles=E}get featuresFromSelectedLayer(){return this._featuresFromSelectedLayer.map(({feature:e})=>e)}get numResults(){return this.traceResultFeatures.length+this._elementsWithoutLayer.length}clearAggregatedGeometryGraphics(){this._aggregatedGeometryComponentElement?.destroy()}async destroy(){this._layerIdToFeatures.clear(),this._subtypeCodeToFeatures.clear(),this._sourceIdToElements.clear(),this._aggregatedGeometryComponentElement?.destroy(),this._featuresComponentElement?.destroy(),await this.manager.destroy()}load(){this.traceResult&&(this._setSourceIdToElements(),this._loadDependencies().then(()=>this._queryTraceResultsFeatures()).finally(()=>{this.arcgisTraceResultFeaturesReady.emit(),this.state="ready"}))}willUpdate(e){e.has("isElementsSelected")&&this.arcgisSelectedResultTypeChange.emit(),e.has("selectedLayer")&&this.arcgisSelectedLayerChange.emit(),e.has("traceResult")&&(this.isElementsSelected=!1,this.traceResult||(this.traceResultFeatures=[],this._elementsWithoutLayer=[])),(e.has("layers")||e.has("utilityNetwork"))&&this._loadDependencies()}loaded(){this.utilityNetwork||d("warn",this,m("utilityNetwork")),this.layers.length===0&&d("warn",this,f("layers")),this.view||d("warn",this,m("view"))}disconnectedCallback(){super.disconnectedCallback(),this._layerIdToLayer.clear()}_addOrCreateMapValue(e,t,s){let a=e.get(t);a==null?e.set(t,[s]):a.push(s)}_getLayerByLayerId(e){if(e==null)return;let{_layerIdToLayer:t,_unLayers:s}=this;if(t.get(e))return t.get(e);let a=s.find(l=>"layerId"in l&&l.layerId===e);return a&&t.set(e,a),a}_getElementsUniqueByGlobalId(e){return Array.from(new Map(e.map(t=>[t.globalId,t])).values())}_handleHideGraphicsChange(e){e.stopPropagation();let t=e.detail;this.arcgisHideGraphicsChange.emit(t),this._aggregatedGeometryDisabled=t,t&&this._popoverRef.value?.open&&(this._popoverRef.value.open=!1)}async _loadDependencies(){let{layers:e,utilityNetwork:t}=this;if(!t)return;t.loaded||(this.state="loading",await t.load()),this._unLayers=e.filter(a=>t.isUtilityLayer(a));let s=this._unLayers.filter(a=>!a.loaded).map(a=>a.load());s.length>0&&(this.state="loading",await Promise.allSettled(s))}async _queryTraceResultsFeatures(){let e=Array.from(this._sourceIdToElements.entries());if(!e.length)return;this.state="loading";let t=e.map(this._queryFeaturesOnLayer);(await Promise.allSettled(t)).forEach((l,c)=>{if(l.status==="rejected"){let[n]=e[c];d("error",this,`Failed to query features for source ${n}. Reason: ${l.reason}`)}});let s=Array.from(this._layerIdToFeatures.values()),a=Array.from(this._subtypeCodeToFeatures.values());this.traceResultFeatures=s.concat(a).flat().map(({feature:l})=>l)}_setSelectedLayerAndFeatures(e){let t;if(!e)t=[];else if(e.type==="subtype-sublayer"){let{subtypeCode:s}=e;t=this._subtypeCodeToFeatures.get(s)??[]}else{let{layerId:s}=e;t=this._layerIdToFeatures.get(s)??[]}this._featuresFromSelectedLayer=t.sort(this._compareByFeatureTitle),this.selectedLayer=e}_setSourceIdToElements(){this.traceResult.elements?.forEach(e=>this._addOrCreateMapValue(this._sourceIdToElements,e.networkSourceId,e))}render(){let{traceError:e,traceResult:t}=this;if(e)return this._renderErrorLanding(e);if(!t)return this._renderNoTraceLanding();let{elements:s,globalFunctionResults:a,aggregatedGeometry:l}=t;if(!s.length&&!a.length&&!l)return this._renderNoResultsLanding();if(this.state==="loading")return this._renderGettingResults();if(this.selectedFeature){let n=this._featuresComponentElement,u=n?.selectedFeature?[n.selectedFeature]:[this.selectedFeature];return r`<arcgis-features .referenceElement=${this.referenceElement} .features=${u} .view=${this.view} open .defaultPopupTemplateEnabled=${this._defaultPopupTemplateEnabled} @arcgisClose=${()=>this.selectedFeature=void 0} .autoDestroyDisabled=${this.autoDestroyDisabled} ${g(this._featuresRefChange)}></arcgis-features>`}let c=s.length>0&&!a.length&&!l;return this.hideFeatureResults&&c?this._renderFeaturesAreHiddenLanding():r`<calcite-flow>${c?null:r`<calcite-flow-item .selected=${!this.isElementsSelected}>${this._renderLanding(t)}</calcite-flow-item>`}<calcite-flow-item .heading=${this._messages.headings.features} .description=${this._messages.headings.totalFeatures.replace("{number}",this.numResults.toString())} .selected=${(c||this.isElementsSelected)&&!this.selectedLayer} @calciteFlowItemBack=${()=>this.isElementsSelected=!1}>${this._renderLayerList()}</calcite-flow-item><calcite-flow-item .heading=${this.selectedLayer?.title??void 0} .description=${this._messages.headings.totalFeatures.replace("{number}",this._featuresFromSelectedLayer.length.toString())} .selected=${!!this.selectedLayer} @calciteFlowItemBack=${()=>this.selectedLayer=void 0}>${this._renderFeaturesList()}</calcite-flow-item></calcite-flow>`}_renderGettingResults(){return r`<calcite-panel class="white-panel-background"><calcite-loader .label=${this._messages.gettingResults} .text=${this._messages.gettingResults}></calcite-loader></calcite-panel>`}_renderLanding(e){let{elements:t,globalFunctionResults:s,aggregatedGeometry:a}=e;return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${a!=null?this._renderAggregatedGeometry(a):null}${a!=null&&!t.length?this._renderNoSelectableResults():null}${t.length>0?this.hideFeatureResults?this._renderFeaturesAreHidden():this._renderElementsResults():null}${s.length>0?this._renderFunctionsResults(s):null}</calcite-panel>`}_renderAggregatedGeometry(e){return r`<div class="aggregated-geometry-container"><arcgis-utility-network-aggregated-geometry .graphicsColor=${this.aggregatedGeometryGraphicsColor} .geometry=${e} .view=${this.view} @arcgisHideGraphicsChange=${this._handleHideGraphicsChange} auto-destroy-disabled ${g(this._aggregateGeometryRefChange)}></arcgis-utility-network-aggregated-geometry><calcite-swatch id=geometry-color-swatch .label=${this._messages.labels.aggregatedGeometryGraphicsColor} .color=${this.aggregatedGeometryGraphicsColor.toCss()} .disabled=${this._aggregatedGeometryDisabled}></calcite-swatch><calcite-popover .heading=${this._messages.headings.setColor} .label=${this._messages.headings.setColor} reference-element=geometry-color-swatch closable ${g(this._popoverRef)}><calcite-color-picker alpha-channel channels-disabled clearable hex-disabled saved-disabled .value=${this.aggregatedGeometryGraphicsColor} @calciteColorPickerChange=${t=>{let s=t.target.value;this.arcgisAggregatedGeometryGraphicsColorChange.emit(s)}} .disabled=${this._aggregatedGeometryDisabled}></calcite-color-picker></calcite-popover></div>`}_renderFeaturesAreHiddenLanding(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}${this._renderFeaturesAreHidden()}</calcite-panel>`}_renderFeaturesAreHidden(){return r`<div class="no-selectable-results">${this._messages.resultFeaturesAreHidden}</div>`}_renderNoSelectableResults(){return r`<div class="no-selectable-results">${this._messages.noSelectableFeatures}</div>`}_renderElementsResults(){return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}><calcite-list-item id=elements-list-item .label=${this._messages.headings.features} @calciteListItemSelect=${()=>this.isElementsSelected=!0}><calcite-chip .label=${this._messages.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}_renderFunctionsResults(e){return r`<div class="functions-heading">${this._messages.headings.functions}</div><calcite-table .caption=${this._messages.labels.functionResults}>${e.filter(t=>t.networkAttributeName!=null&&t.result!=null).map(t=>r`<calcite-table-row><calcite-table-cell>${t.networkAttributeName}</calcite-table-cell><calcite-table-cell>${t.result}</calcite-table-cell></calcite-table-row>`)}</calcite-table>`}_renderLayerList(){let e=Array.from(this._layerIdToFeatures.entries()),t=Array.from(this._subtypeCodeToFeatures.entries()),s=e.concat(t).sort(this._compareByLayerTitle).map(this._renderLayerListItem);return this._elementsWithoutLayer.length>0&&s.push(this._renderUnknownListItem()),r`<calcite-list .label=${this._messages.labels.traceResultElementsByLayer} .loading=${this.state==="loading"}>${s}</calcite-list>`}_renderUnknownListItem(){return r`<calcite-list-item .label=${this._messages.unknown} disabled><calcite-chip .label=${this._messages.labels.numElements} slot=content-end scale=s>${this._elementsWithoutLayer.length}</calcite-chip></calcite-list-item>`}_renderFeaturesList(){return r`<calcite-list .label=${this._messages.headings.traceResultsGeneric}>${this._featuresFromSelectedLayer.map(this._renderFeatureListItem)}</calcite-list>`}_renderTraceResultsHeading(){return r`<div class="results-heading"><div class="results-heading-title">${this._messages.headings.traceResultsGeneric}</div>${this.traceConfigTitle?r`<div class="results-heading-subtitle">${this.traceConfigTitle}</div>`:null}</div>`}_renderErrorLanding(e){let t=e.message;switch(e.details?.raw?.extendedCode){case F.dirtyAreasDiscovered:t=this._messages.traceErrors.dirtyAreasDiscovered;break;case F.noValidControllers:t=this._messages.traceErrors.noValidControllers;break}return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.traceFailedHeading}</div><div class="no-results-description">${this._messages.traceFailedDescription}</div><div class="no-results-description">${t}</div></div></calcite-panel>`}_renderNoResultsLanding(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=exclamation-mark-triangle scale=l></calcite-icon><div class="no-results-heading">${this._messages.noResultsHeading}</div><div class="no-results-description">${this._messages.noResultsDescription}</div></div></calcite-panel>`}_renderNoTraceLanding(){return r`<calcite-panel class="white-panel-background">${this._renderTraceResultsHeading()}<div class="no-results-landing"><calcite-icon icon=utility-network-trace scale=l></calcite-icon><div class="no-results-heading">${this._messages.noTraceConfigHeading}</div><div class="no-results-description">${this._messages.noTraceConfigDescription}</div></div></calcite-panel>`}};$("arcgis-utility-network-trace-results",y);return y},"applications/Components/featureUtils","Color","core/Error","Graphic","rest/support/FeatureSet",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import h from"./Y7BSBKHO.js";import g from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import{a as $}from"./LMI2OZRD.js";import"./YKFPLV7U.js";import e from"./PJ3PYFJ4.js";import{a as k}from"./46LACOKN.js";import{a as p}from"./YMPJFJHK.js";import d from"./QH2WUE6T.js";import c from"./TJXR3SIG.js";import{g as _}from"./HFWMJJFD.js";import"./NJN3I6EV.js";import a from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as m,P as y,R as b,U as w,a as f,b as r,x}from"./BDUD457O.js";import"./3TTFCHAA.js";export default $arcgis.t(([{ignoreAbortErrors:C},{watch:V},G,{property:d,subclass:A},,,,L,,z])=>{var j=f`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.container{display:flex;overflow-y:auto;--layer-item-background: var(--calcite-color-foreground-2);flex-direction:column;flex-shrink:0;flex-basis:auto;justify-content:space-between;gap:var(--arcgis-internal-panel-gap)}.error{color:var(--calcite-color-status-danger)}.container,.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-slice-fade-in .25s ease-in-out}.error p,.hint p{margin:0;padding:0}.hint:not(:has(*)){display:none}.layer-item{--calcite-color-foreground-2: var(--layer-item-background);--calcite-color-foreground-1: var(--layer-item-background)}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}.actions:not(:has(*)){display:none}@keyframes arcgis-slice-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`,T=Object.defineProperty,D=Object.getOwnPropertyDescriptor,s=(e,i,t,l)=>{for(var a=l>1?void 0:l?D(i,t):i,n=e.length-1,c;n>=0;n--)(c=e[n])&&(a=(l?c(i,t,a):c(a))||a);return l&&a&&T(i,t,a),a},u=new Set,o=class extends z{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="SliceViewModel is only supported in 3D views."}async pickLayerToExclude(){let e=this.analysisView;if(e){let i=super.start({operation:t=>e.pickLayerToExclude(t),clear:!1});this._excludingLayers=i,i.finally(()=>{this._excludingLayers===i&&(this._excludingLayers=void 0)}),await i.catch()}}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.shape=null}initialize(){u.add(this)}destroy(){u.delete(this)}get state(){return this.disabled||!this.ready?"disabled":this._excludingLayers?"excludingLayer":this.operationState==="active"?"slicing":this.analysis.valid?"sliced":"ready"}get shape(){return this.analysis.shape}set shape(e){this.analysis.shape=e}get tiltEnabled(){return this.analysis.tiltEnabled}set tiltEnabled(e){this.analysis.tiltEnabled=e}get excludedLayers(){return this.analysis.excludedLayers}set excludedLayers(e){this.analysis.excludedLayers=e}get excludeGroundSurface(){return this.analysis.excludeGroundSurface}set excludeGroundSurface(e){this.analysis.excludeGroundSurface=e}async start(){u.forEach(e=>{e.view===this.view&&e!==this&&e.clear()}),await super.start()}onConnectToAnalysisView(e){e.active=!0}constructAnalysis(){return new G}};s([d()],o.prototype,"_excludingLayers",2);s([d({readOnly:!0})],o.prototype,"state",1);s([d()],o.prototype,"shape",1);s([d()],o.prototype,"tiltEnabled",1);s([d()],o.prototype,"excludedLayers",1);s([d()],o.prototype,"excludeGroundSurface",1);o=s([A("esri.components.Slice.SliceViewModel")],o);var P=L(o),h=class extends m{constructor(){super(...arguments),this.viewModel=P(this),this._messages=k(),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.excludeGroundSurface=this.viewModel.excludeGroundSurface,this.excludedLayers=this.viewModel.excludedLayers,this.headingLevel=3,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="slice",this.shape=this.viewModel.shape,this.state=this.viewModel.state,this.tiltEnabled=this.viewModel.tiltEnabled,this.arcgisPropertyChange=_()("analysis","state"),this.arcgisReady=x()}static{this.properties={_hasVoxelLayers:16,view:0,analysis:0,autoDestroyDisabled:5,excludeGroundSurface:5,excludedLayers:0,headingLevel:9,hideStartButton:5,hideVisualization:5,icon:3,label:1,messageOverrides:0,referenceElement:1,shape:0,state:32,tiltEnabled:5}}static{this.styles=j}get _hasVoxelLayers(){let i=this.viewModel?.view;return i!=null?i.allLayerViews.some(t=>t.type==="voxel-3d"):!1}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){C(this.viewModel.start())}load(){this.manager.onLifecycle(()=>[V(()=>this._renderContainerNode(),()=>this.requestUpdate())])}render(){return r`<div class=${y({[p.widget]:!0,[p.panel]:!0})} role=presentation>${this._renderContainerNode()}</div>`}_renderContainerNode(){let i=this._messages,{state:t,hideVisualization:l,supported:a}=this.viewModel,n=t==="slicing"||t==="excludingLayer";if(l||!a)return null;a||r`<div class="container"><div class="error"><p>${this._messages.unsupported}</p></div></div>`;let{excludedLayers:c}=this.viewModel,v=this.excludeGroundSurface,M=c.length>0||v,g=t==="disabled";return r`<div class="container"><div class="hint">${t==="excludingLayer"?r`<p class="hint-text">${i.excludeHint}</p>`:null}${t==="slicing"?r`<p class="hint-text">${this._hasVoxelLayers?i.voxelHint:i.hint}</p><p class="hint-text">${i.verticalHint}</p>`:null}</div>${!n&&M?r`<div class="layer-list">${$({class:"layer-list-title",level:this.headingLevel,children:i.excludedLayers})}${B({layers:c.toArray(),excludeGroundSurface:v,onLayerClick:E=>{this.excludedLayers.remove(E)},onGroundClick:()=>{this.excludeGroundSurface=!1},listLabel:i.excludedLayers,layerActionLabel:i.includeLayer,groundItemTitle:i.ground})}</div>`:null}<div class="actions">${!n&&!this.hideStartButton?r`<calcite-button class="new-slice-button" .disabled=${g} @click=${this.start}>${i.newSlice}</calcite-button>`:null}${t==="sliced"?r`<calcite-button appearance=outline-fill class="exclude-button" .disabled=${g} @click=${()=>this.viewModel.pickLayerToExclude()}>${i.excludeLayer}</calcite-button>`:null}${t==="excludingLayer"?r`<calcite-button appearance=outline-fill class="cancel-button" .disabled=${g} @click=${()=>this.viewModel.stop()}>${i.cancel}</calcite-button>`:null}</div></div>`}};function S(e){return r`<calcite-list-item class="layer-item" data-testid=${`list-item-${e.uid}`} .label=${e.title??""}><calcite-action icon=x @click=${e.onClick} slot=actions-end .text=${e.actionLabel} title=${e.actionLabel??b}></calcite-action></calcite-list-item>`}function B(e){let i=e.layers.map(t=>S({uid:t.uid,title:t.title??"",onClick:()=>e.onLayerClick(t),actionLabel:e.layerActionLabel}));return e.excludeGroundSurface&&i.push(S({uid:"ground",title:e.groundItemTitle,onClick:e.onGroundClick,actionLabel:e.layerActionLabel})),r`<calcite-list .label=${e.listLabel} selection-mode=none>${i}</calcite-list>`}w("arcgis-slice",h);return h},"core/promiseUtils","core/reactiveUtils","analysis/SliceAnalysis","core/accessorSupport/decorators",a,c,d,e,g,h)
2
+ import h from"./3ON5H2G5.js";import g from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import{a as $}from"./2NW3IA4C.js";import"./7SZFENQP.js";import e from"./P5MTPM2I.js";import{a as k}from"./PUJPVTUS.js";import{a as p}from"./YMPJFJHK.js";import d from"./6M6VT4H6.js";import c from"./G44JDQZ4.js";import{g as _}from"./2E5U7E4Y.js";import"./W5TN3LOU.js";import a from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as m,P as y,R as b,U as w,a as f,b as r,x}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{ignoreAbortErrors:C},{watch:V},G,{property:d,subclass:A},,,,L,,z])=>{var j=f`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.container{display:flex;overflow-y:auto;--layer-item-background: var(--calcite-color-foreground-2);flex-direction:column;flex-shrink:0;flex-basis:auto;justify-content:space-between;gap:var(--arcgis-internal-panel-gap)}.error{color:var(--calcite-color-status-danger)}.container,.hint{display:flex;flex-direction:column;gap:var(--arcgis-internal-panel-gap)}.error,.hint{overflow:hidden;animation:arcgis-slice-fade-in .25s ease-in-out}.error p,.hint p{margin:0;padding:0}.hint:not(:has(*)){display:none}.layer-item{--calcite-color-foreground-2: var(--layer-item-background);--calcite-color-foreground-1: var(--layer-item-background)}.actions{display:flex;flex-flow:column;gap:var(--arcgis-internal-panel-actions-gap);justify-content:center}.actions:not(:has(*)){display:none}@keyframes arcgis-slice-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}`,T=Object.defineProperty,D=Object.getOwnPropertyDescriptor,s=(e,i,t,l)=>{for(var a=l>1?void 0:l?D(i,t):i,n=e.length-1,c;n>=0;n--)(c=e[n])&&(a=(l?c(i,t,a):c(a))||a);return l&&a&&T(i,t,a),a},u=new Set,o=class extends z{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="SliceViewModel is only supported in 3D views."}async pickLayerToExclude(){let e=this.analysisView;if(e){let i=super.start({operation:t=>e.pickLayerToExclude(t),clear:!1});this._excludingLayers=i,i.finally(()=>{this._excludingLayers===i&&(this._excludingLayers=void 0)}),await i.catch()}}async place(e){await this.analysisView?.place(e)}clearAnalysis(){this.analysis.shape=null}initialize(){u.add(this)}destroy(){u.delete(this)}get state(){return this.disabled||!this.ready?"disabled":this._excludingLayers?"excludingLayer":this.operationState==="active"?"slicing":this.analysis.valid?"sliced":"ready"}get shape(){return this.analysis.shape}set shape(e){this.analysis.shape=e}get tiltEnabled(){return this.analysis.tiltEnabled}set tiltEnabled(e){this.analysis.tiltEnabled=e}get excludedLayers(){return this.analysis.excludedLayers}set excludedLayers(e){this.analysis.excludedLayers=e}get excludeGroundSurface(){return this.analysis.excludeGroundSurface}set excludeGroundSurface(e){this.analysis.excludeGroundSurface=e}async start(){u.forEach(e=>{e.view===this.view&&e!==this&&e.clear()}),await super.start()}onConnectToAnalysisView(e){e.active=!0}constructAnalysis(){return new G}};s([d()],o.prototype,"_excludingLayers",2);s([d({readOnly:!0})],o.prototype,"state",1);s([d()],o.prototype,"shape",1);s([d()],o.prototype,"tiltEnabled",1);s([d()],o.prototype,"excludedLayers",1);s([d()],o.prototype,"excludeGroundSurface",1);o=s([A("esri.components.Slice.SliceViewModel")],o);var P=L(o),h=class extends m{constructor(){super(...arguments),this.viewModel=P(this),this._messages=k(),this.view=this.viewModel.view,this.analysis=this.viewModel.analysis,this.autoDestroyDisabled=!1,this.excludeGroundSurface=this.viewModel.excludeGroundSurface,this.excludedLayers=this.viewModel.excludedLayers,this.headingLevel=3,this.hideStartButton=!1,this.hideVisualization=this.viewModel.hideVisualization,this.icon="slice",this.shape=this.viewModel.shape,this.state=this.viewModel.state,this.tiltEnabled=this.viewModel.tiltEnabled,this.arcgisPropertyChange=_()("analysis","state"),this.arcgisReady=x()}static{this.properties={_hasVoxelLayers:16,view:0,analysis:0,autoDestroyDisabled:5,excludeGroundSurface:5,excludedLayers:0,headingLevel:9,hideStartButton:5,hideVisualization:5,icon:3,label:1,messageOverrides:0,referenceElement:1,shape:0,state:32,tiltEnabled:5}}static{this.styles=j}get _hasVoxelLayers(){let i=this.viewModel?.view;return i!=null?i.allLayerViews.some(t=>t.type==="voxel-3d"):!1}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async start(){C(this.viewModel.start())}load(){this.manager.onLifecycle(()=>[V(()=>this._renderContainerNode(),()=>this.requestUpdate())])}render(){return r`<div class=${y({[p.widget]:!0,[p.panel]:!0})} role=presentation>${this._renderContainerNode()}</div>`}_renderContainerNode(){let i=this._messages,{state:t,hideVisualization:l,supported:a}=this.viewModel,n=t==="slicing"||t==="excludingLayer";if(l||!a)return null;a||r`<div class="container"><div class="error"><p>${this._messages.unsupported}</p></div></div>`;let{excludedLayers:c}=this.viewModel,v=this.excludeGroundSurface,M=c.length>0||v,g=t==="disabled";return r`<div class="container"><div class="hint">${t==="excludingLayer"?r`<p class="hint-text">${i.excludeHint}</p>`:null}${t==="slicing"?r`<p class="hint-text">${this._hasVoxelLayers?i.voxelHint:i.hint}</p><p class="hint-text">${i.verticalHint}</p>`:null}</div>${!n&&M?r`<div class="layer-list">${$({class:"layer-list-title",level:this.headingLevel,children:i.excludedLayers})}${B({layers:c.toArray(),excludeGroundSurface:v,onLayerClick:E=>{this.excludedLayers.remove(E)},onGroundClick:()=>{this.excludeGroundSurface=!1},listLabel:i.excludedLayers,layerActionLabel:i.includeLayer,groundItemTitle:i.ground})}</div>`:null}<div class="actions">${!n&&!this.hideStartButton?r`<calcite-button class="new-slice-button" .disabled=${g} @click=${this.start}>${i.newSlice}</calcite-button>`:null}${t==="sliced"?r`<calcite-button appearance=outline-fill class="exclude-button" .disabled=${g} @click=${()=>this.viewModel.pickLayerToExclude()}>${i.excludeLayer}</calcite-button>`:null}${t==="excludingLayer"?r`<calcite-button appearance=outline-fill class="cancel-button" .disabled=${g} @click=${()=>this.viewModel.stop()}>${i.cancel}</calcite-button>`:null}</div></div>`}};function S(e){return r`<calcite-list-item class="layer-item" data-testid=${`list-item-${e.uid}`} .label=${e.title??""}><calcite-action icon=x @click=${e.onClick} slot=actions-end .text=${e.actionLabel} title=${e.actionLabel??b}></calcite-action></calcite-list-item>`}function B(e){let i=e.layers.map(t=>S({uid:t.uid,title:t.title??"",onClick:()=>e.onLayerClick(t),actionLabel:e.layerActionLabel}));return e.excludeGroundSurface&&i.push(S({uid:"ground",title:e.groundItemTitle,onClick:e.onGroundClick,actionLabel:e.layerActionLabel})),r`<calcite-list .label=${e.listLabel} selection-mode=none>${i}</calcite-list>`}w("arcgis-slice",h);return h},"core/promiseUtils","core/reactiveUtils","analysis/SliceAnalysis","core/accessorSupport/decorators",a,c,d,e,g,h)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import c from"./GU3IZVNE.js";import b from"./TZUYWT6D.js";import{e as w}from"./HFWMJJFD.js";import"./NJN3I6EV.js";import"./LB32PLWG.js";import{O as y,Q as t,U as g,a as h,b as a}from"./BDUD457O.js";import"./3TTFCHAA.js";export default $arcgis.t(([,{a:u,b:s,c:x,d:o,e:$}])=>{var S=h`.layer-row{display:flex;align-items:center}.symbol{display:block;margin:auto}.symbol-container{position:relative}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.layer-cell-info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.univariate-color-ramp-card{position:relative}.univariate-color-ramp-card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-background);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-background);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,n=class extends y{constructor(){super(...arguments),this._direction=w(),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=S}render(){let{legendElement:E,opacity:l}=this,{sizeRampElement:e,colorRampElement:c}=$(E,this.messages,l,"horizontal");if(!e)return null;let z=x(e,"full",!0,"horizontal"),k=o(e,"above",!0,"horizontal"),L=o(e,"below",!0,"horizontal"),d=12,p=this.messages?.previewColorRampAriaLabel,m=s(c,{width:k,height:d,rampAlignment:"horizontal",opacity:l,type:"above",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),A=s(c,{width:L,height:d,rampAlignment:"horizontal",opacity:l,type:"below",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),f=u(e,"card"),v=e.infos.map(i=>i.label),F=v.length-1,R=v.map((i,b)=>b===0||b===F?a`<div>${i}</div>`:null),C={display:"flex",flexDirection:"column"},D={display:"flex",flexDirection:"row"},r={marginTop:"3px",display:"flex"};this._direction==="rtl"?r.marginRight=`${f}px`:r.marginLeft=`${f}px`;let j={width:`${z}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return a`<div class="layer-row" style=${t(C)}><div class="symbol-container" style=${t(D)}>${e.infos.map(i=>a`<div class="symbol">${i.preview}</div>`)}</div>${m?a`<div class="univariate-color-ramp-card" style=${t(r)}><div>${m}</div><div>${A}</div></div>`:null}<div class="layer-cell layer-cell-info"><div class="ramp-labels" style=${t(j)}>${R}</div></div></div>`}};g("arcgis-legend-card-univariate-above-and-below-ramp",n);return n},b,c)
2
+ import c from"./QRIK2V22.js";import b from"./TZUYWT6D.js";import{e as w}from"./2E5U7E4Y.js";import"./W5TN3LOU.js";import"./LB32PLWG.js";import{O as y,Q as t,U as g,a as h,b as a}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([,{a:u,b:s,c:x,d:o,e:$}])=>{var S=h`.layer-row{display:flex;align-items:center}.symbol{display:block;margin:auto}.symbol-container{position:relative}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.layer-cell-info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.univariate-color-ramp-card{position:relative}.univariate-color-ramp-card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-background);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-background);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,n=class extends y{constructor(){super(...arguments),this._direction=w(),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=S}render(){let{legendElement:E,opacity:l}=this,{sizeRampElement:e,colorRampElement:c}=$(E,this.messages,l,"horizontal");if(!e)return null;let z=x(e,"full",!0,"horizontal"),k=o(e,"above",!0,"horizontal"),L=o(e,"below",!0,"horizontal"),d=12,p=this.messages?.previewColorRampAriaLabel,m=s(c,{width:k,height:d,rampAlignment:"horizontal",opacity:l,type:"above",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),A=s(c,{width:L,height:d,rampAlignment:"horizontal",opacity:l,type:"below",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),f=u(e,"card"),v=e.infos.map(i=>i.label),F=v.length-1,R=v.map((i,b)=>b===0||b===F?a`<div>${i}</div>`:null),C={display:"flex",flexDirection:"column"},D={display:"flex",flexDirection:"row"},r={marginTop:"3px",display:"flex"};this._direction==="rtl"?r.marginRight=`${f}px`:r.marginLeft=`${f}px`;let j={width:`${z}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return a`<div class="layer-row" style=${t(C)}><div class="symbol-container" style=${t(D)}>${e.infos.map(i=>a`<div class="symbol">${i.preview}</div>`)}</div>${m?a`<div class="univariate-color-ramp-card" style=${t(r)}><div>${m}</div><div>${A}</div></div>`:null}<div class="layer-cell layer-cell-info"><div class="ramp-labels" style=${t(j)}>${R}</div></div></div>`}};g("arcgis-legend-card-univariate-above-and-below-ramp",n);return n},b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./EVRD2ZXE.js";import a from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import{O as f,R as v,U as w,a as m,b as y}from"./BDUD457O.js";import"./3TTFCHAA.js";export default $arcgis.t(([g,$,{property:n,subclass:E},{watch:V,on:D},{c:C},{a:L,b:S}])=>{var k=Object.defineProperty,N=Object.getOwnPropertyDescriptor,d=(e,t,i,r)=>{for(var s=r>1?void 0:r?N(t,i):t,l=e.length-1,a;l>=0;l--)(a=e[l])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&k(t,i,s),s},o=class extends ${constructor(e){super(e),this.id="root",this.children=new g,this.layers=new g,this.level=0,this.childIds=new Set,this.layerUniqueIds=new Set}initialize(){this.addHandles([this.layers.on("before-add",e=>{this.layerUniqueIds.has(e.item.uid)?e.preventDefault():this.layerUniqueIds.add(e.item.uid)}),this.layers.on("after-add",({item:e})=>{this.addHandles([V(()=>e.visible,()=>this.notifyChange("visible"),{initial:!0}),V(()=>e.title,()=>this.notifyChange("title"),{initial:!0})],e.uid)}),this.layers.on("before-remove",({item:e})=>{this.removeHandles(e.uid),this.notifyChange("title"),this.notifyChange("visible")}),this.children.on("before-add",e=>{this.childIds.has(e.item.id)?e.preventDefault():(e.item._set("parent",this),this.childIds.add(e.item.id))})])}destroy(){this.children.forEach(e=>e.destroy())}get hasChildren(){return this.children.length>0}get isDiscipline(){return this.level===1}get visible(){return O(this.layers,e=>e.visible)}get title(){return O(this.layers,e=>e.title)||this.layers.map(e=>e.title).join(", ")||null}toggleVisibility(e){let t=e===void 0?!this.visible:e;this.layers.forEach(i=>{i.visible=t}),t&&this.parent!=null&&this.parent.toggleVisibility(!0)}toggleAllSiblingsVisibility(e){let t=e===void 0?!this.visible:e;this.toggleVisibility(t),this.parent!=null&&(this.parent.toggleVisibility(t),this.parent.children.forEach(i=>i.toggleVisibility(t)))}};d([n({})],o.prototype,"id",2);d([n()],o.prototype,"parent",2);d([n({readOnly:!0})],o.prototype,"children",2);d([n({readOnly:!0})],o.prototype,"layers",2);d([n({})],o.prototype,"level",2);d([n({readOnly:!0})],o.prototype,"hasChildren",1);d([n({readOnly:!0})],o.prototype,"isDiscipline",1);d([n({readOnly:!0})],o.prototype,"visible",1);d([n({readOnly:!0})],o.prototype,"title",1);o=d([E("esri.widgets.BuildingExplorer.support.LayerTreeNode")],o);function O(e,t){let i=null;for(let r of e){let s=t(r);if(i!=null&&i!==s)return null;i=s}return i}var A=Object.defineProperty,I=Object.getOwnPropertyDescriptor,_=e=>{throw TypeError(e)},p=(e,t,i,r)=>{for(var s=r>1?void 0:r?I(t,i):t,l=e.length-1,a;l>=0;l--)(a=e[l])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&A(t,i,s),s},T=(e,t,i)=>t.has(e)||_("Cannot "+i),u=(e,t,i)=>(T(e,t,"read from private field"),i?i.call(e):t.get(e)),F=(e,t,i)=>t.has(e)?_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),c,h=class extends ${constructor(e){super(e),this.root=new o,F(this,c,new g),this.state="disabled",this.loadLayers=L()}initialize(){this.addHandles(D(()=>this.layers,"change",()=>void this._onLayersChange(),{onListenerAdd:()=>void this._onLayersChange(),onListenerRemove:()=>void this._onLayersChange()})),this._onLayersChange()}destroy(){this._set("state","disabled"),this.root.destroy()}get layers(){return u(this,c)}set layers(e){u(this,c).removeAll(),u(this,c).addMany(e)}updateLayerTree(){this.root.destroy(),this._set("root",new o);let e=new Map,t=this.layers.length>1?"modelName":"id";return this.layers.forEach(i=>{let r=S(i);this.addNodesForSublayers(r??i,this.root,e,t)}),this}addNodeForLayer(e,t,i,r){let s=String(e[r]).toLowerCase();if(s==null||e.isEmpty)return;let l=`${t.id}/${s}`,a=i.get(l);a||(a=new o({id:s,level:t.level+1}),i.set(l,a)),a.layers.push(e),t.children.push(a),this.addNodesForSublayers(e,a,i,r)}addNodesForSublayers(e,t,i,r){(e.type==="building-scene"||e.type==="building-group"&&!e.isEmpty)&&e.sublayers.forEach(s=>this.addNodeForLayer(s,t,i,r))}async _onLayersChange(){if(this._set("state","loading"),this.layers.length!==0)try{await this.loadLayers(this.layers),this.updateLayerTree(),this._set("state","ready")}catch(e){C(e)||this._set("state","failed")}}};c=new WeakMap;p([n()],h.prototype,"root",2);p([n()],h.prototype,"layers",1);p([n()],h.prototype,"state",2);h=p([E("esri.components.BuildingExplorer.BuildingDisciplinesViewModel")],h);var P=m`.label{--calcite-label-margin-bottom: 0}`,b=class extends f{constructor(){super(...arguments),this.#e=new h,this.toggleSiblingsVisibility=!1}static{this.properties={layers:0,messages:0,toggleSiblingsVisibility:5}}static{this.styles=P}#e;get layers(){return this.#e.layers.toArray()}set layers(t){this.#e.layers=new g(t)}render(){let t=this.messages,i=this.#e;return t==null?null:y`<calcite-tree lines selection-mode=none>${x({node:i.root,messages:t})}</calcite-tree>`}};function j(e){let t=e.node,i=t.visible===!0,r=t.visible===null,s=i?e.messages.hideSublayer:e.messages.showSublayer;return y`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${i} .indeterminate=${r} .label=${s} @click=${l=>{l.stopPropagation(),(l.metaKey||l.ctrlKey)&&e.toggleSiblingsVisibility&&(t.toggleVisibility(),t.toggleAllSiblingsVisibility())}} title=${s??v} @calciteCheckboxChange=${l=>{t.toggleVisibility(l.currentTarget.checked)}}></calcite-checkbox>${e.node.title}</calcite-label>${e.node.hasChildren?y`<calcite-tree lines selection-mode=none slot=children>${x({node:e.node,messages:e.messages})}</calcite-tree>`:null}</calcite-tree-item>`}function x(e){return e.node.children.toArray().reverse().map(t=>j({node:t,messages:e.messages,toggleSiblingsVisibility:e.toggleSiblingsVisibility}))}w("arcgis-building-discipline-tree",b);return b},"core/Collection","core/Accessor","core/accessorSupport/decorators","core/reactiveUtils",a,b)
2
+ import b from"./EVRD2ZXE.js";import a from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import{O as f,R as v,U as w,a as m,b as y}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([g,$,{property:n,subclass:E},{watch:V,on:D},{c:C},{a:L,b:S}])=>{var k=Object.defineProperty,N=Object.getOwnPropertyDescriptor,d=(e,t,i,r)=>{for(var s=r>1?void 0:r?N(t,i):t,l=e.length-1,a;l>=0;l--)(a=e[l])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&k(t,i,s),s},o=class extends ${constructor(e){super(e),this.id="root",this.children=new g,this.layers=new g,this.level=0,this.childIds=new Set,this.layerUniqueIds=new Set}initialize(){this.addHandles([this.layers.on("before-add",e=>{this.layerUniqueIds.has(e.item.uid)?e.preventDefault():this.layerUniqueIds.add(e.item.uid)}),this.layers.on("after-add",({item:e})=>{this.addHandles([V(()=>e.visible,()=>this.notifyChange("visible"),{initial:!0}),V(()=>e.title,()=>this.notifyChange("title"),{initial:!0})],e.uid)}),this.layers.on("before-remove",({item:e})=>{this.removeHandles(e.uid),this.notifyChange("title"),this.notifyChange("visible")}),this.children.on("before-add",e=>{this.childIds.has(e.item.id)?e.preventDefault():(e.item._set("parent",this),this.childIds.add(e.item.id))})])}destroy(){this.children.forEach(e=>e.destroy())}get hasChildren(){return this.children.length>0}get isDiscipline(){return this.level===1}get visible(){return O(this.layers,e=>e.visible)}get title(){return O(this.layers,e=>e.title)||this.layers.map(e=>e.title).join(", ")||null}toggleVisibility(e){let t=e===void 0?!this.visible:e;this.layers.forEach(i=>{i.visible=t}),t&&this.parent!=null&&this.parent.toggleVisibility(!0)}toggleAllSiblingsVisibility(e){let t=e===void 0?!this.visible:e;this.toggleVisibility(t),this.parent!=null&&(this.parent.toggleVisibility(t),this.parent.children.forEach(i=>i.toggleVisibility(t)))}};d([n({})],o.prototype,"id",2);d([n()],o.prototype,"parent",2);d([n({readOnly:!0})],o.prototype,"children",2);d([n({readOnly:!0})],o.prototype,"layers",2);d([n({})],o.prototype,"level",2);d([n({readOnly:!0})],o.prototype,"hasChildren",1);d([n({readOnly:!0})],o.prototype,"isDiscipline",1);d([n({readOnly:!0})],o.prototype,"visible",1);d([n({readOnly:!0})],o.prototype,"title",1);o=d([E("esri.widgets.BuildingExplorer.support.LayerTreeNode")],o);function O(e,t){let i=null;for(let r of e){let s=t(r);if(i!=null&&i!==s)return null;i=s}return i}var A=Object.defineProperty,I=Object.getOwnPropertyDescriptor,_=e=>{throw TypeError(e)},p=(e,t,i,r)=>{for(var s=r>1?void 0:r?I(t,i):t,l=e.length-1,a;l>=0;l--)(a=e[l])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&A(t,i,s),s},T=(e,t,i)=>t.has(e)||_("Cannot "+i),u=(e,t,i)=>(T(e,t,"read from private field"),i?i.call(e):t.get(e)),F=(e,t,i)=>t.has(e)?_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),c,h=class extends ${constructor(e){super(e),this.root=new o,F(this,c,new g),this.state="disabled",this.loadLayers=L()}initialize(){this.addHandles(D(()=>this.layers,"change",()=>void this._onLayersChange(),{onListenerAdd:()=>void this._onLayersChange(),onListenerRemove:()=>void this._onLayersChange()})),this._onLayersChange()}destroy(){this._set("state","disabled"),this.root.destroy()}get layers(){return u(this,c)}set layers(e){u(this,c).removeAll(),u(this,c).addMany(e)}updateLayerTree(){this.root.destroy(),this._set("root",new o);let e=new Map,t=this.layers.length>1?"modelName":"id";return this.layers.forEach(i=>{let r=S(i);this.addNodesForSublayers(r??i,this.root,e,t)}),this}addNodeForLayer(e,t,i,r){let s=String(e[r]).toLowerCase();if(s==null||e.isEmpty)return;let l=`${t.id}/${s}`,a=i.get(l);a||(a=new o({id:s,level:t.level+1}),i.set(l,a)),a.layers.push(e),t.children.push(a),this.addNodesForSublayers(e,a,i,r)}addNodesForSublayers(e,t,i,r){(e.type==="building-scene"||e.type==="building-group"&&!e.isEmpty)&&e.sublayers.forEach(s=>this.addNodeForLayer(s,t,i,r))}async _onLayersChange(){if(this._set("state","loading"),this.layers.length!==0)try{await this.loadLayers(this.layers),this.updateLayerTree(),this._set("state","ready")}catch(e){C(e)||this._set("state","failed")}}};c=new WeakMap;p([n()],h.prototype,"root",2);p([n()],h.prototype,"layers",1);p([n()],h.prototype,"state",2);h=p([E("esri.components.BuildingExplorer.BuildingDisciplinesViewModel")],h);var P=m`.label{--calcite-label-margin-bottom: 0}`,b=class extends f{constructor(){super(...arguments),this.#e=new h,this.toggleSiblingsVisibility=!1}static{this.properties={layers:0,messages:0,toggleSiblingsVisibility:5}}static{this.styles=P}#e;get layers(){return this.#e.layers.toArray()}set layers(t){this.#e.layers=new g(t)}render(){let t=this.messages,i=this.#e;return t==null?null:y`<calcite-tree lines selection-mode=none>${x({node:i.root,messages:t})}</calcite-tree>`}};function j(e){let t=e.node,i=t.visible===!0,r=t.visible===null,s=i?e.messages.hideSublayer:e.messages.showSublayer;return y`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${i} .indeterminate=${r} .label=${s} @click=${l=>{l.stopPropagation(),(l.metaKey||l.ctrlKey)&&e.toggleSiblingsVisibility&&(t.toggleVisibility(),t.toggleAllSiblingsVisibility())}} title=${s??v} @calciteCheckboxChange=${l=>{t.toggleVisibility(l.currentTarget.checked)}}></calcite-checkbox>${e.node.title}</calcite-label>${e.node.hasChildren?y`<calcite-tree lines selection-mode=none slot=children>${x({node:e.node,messages:e.messages})}</calcite-tree>`:null}</calcite-tree-item>`}function x(e){return e.node.children.toArray().reverse().map(t=>j({node:t,messages:e.messages,toggleSiblingsVisibility:e.toggleSiblingsVisibility}))}w("arcgis-building-discipline-tree",b);return b},"core/Collection","core/Accessor","core/accessorSupport/decorators","core/reactiveUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as f}from"./46LACOKN.js";import{a as v}from"./YMPJFJHK.js";import b from"./TJXR3SIG.js";import{g as d}from"./HFWMJJFD.js";import"./NJN3I6EV.js";import a from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as m,P as u,R as s,U as h,a as n,b as l,x as r}from"./BDUD457O.js";import"./3TTFCHAA.js";export default $arcgis.t(([{ignoreAbortErrors:z},{when:w},,{a:g}])=>{function y(t){if(!t)return!1;if(t.type==="3d")return t.ready;if(!t?.ready)return!1;let e=b(t),o=t.constraints?.effectiveMaxScale;return o===0||e>o}function p(t){if(!t)return!1;if(t.type==="3d")return t.ready;if(!t?.ready)return!1;let e=b(t),o=t.constraints?.effectiveMinScale;return o===0||e<o}function b(t){let e=t?.animation?.target;return(e&&"then"in e?void 0:e?.scale)??t?.scale??0}var x=n`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`,c=class extends m{constructor(){super(...arguments),this.messages=f({}),this._state="disabled",this.view=g(this),this.autoDestroyDisabled=!1,this.icon="magnifying-glass-plus",this.layout="vertical",this.visualScale="m",this.arcgisActionZoom=r(),this.arcgisPropertyChange=d()("state"),this.arcgisReady=r()}static{this.properties={_state:16,view:0,autoDestroyDisabled:5,icon:1,label:1,layout:3,messageOverrides:0,referenceElement:1,visualScale:1,state:32}}static{this.styles=x}get state(){return this._state}async destroy(){await this.manager.destroy()}async zoomIn(){await this.zoomBy(1)}async zoomOut(){await this.zoomBy(-1)}loaded(){this.manager.onLifecycle(()=>[w(()=>this.view?.ready?"ready":"disabled",e=>{this._state=e},{sync:!0,initial:!0})])}async zoomBy(e){let{view:o}=this,a=e===1;if(!(!(a?y(o):p(o))||!o))if(this.arcgisActionZoom.emit({action:a?"zoomIn":"zoomOut"}),o.type==="2d"){let i=o.mapViewNavigation;a?await i.zoomIn():await i.zoomOut()}else await z(o.goTo({zoom:o.zoom+e}))}render(){let e=y(this.view),o=p(this.view),{zoomIn:a,zoomOut:i}=this.messages;return l`<div class=${u({[v.arcgisButton]:!0,horizontal:this.layout==="horizontal"})}><calcite-button class="zoom-in" .disabled=${!e} icon-start=plus kind=neutral .label=${a} @click=${this.zoomIn} .scale=${this.visualScale} title=${a??s}></calcite-button><calcite-button class="zoom-out" .disabled=${!o} icon-start=minus kind=neutral .label=${i} @click=${this.zoomOut} .scale=${this.visualScale} title=${i??s}></calcite-button></div>`}};h("arcgis-zoom",c);return c},"core/promiseUtils","core/reactiveUtils",a,b)
2
+ import{a as f}from"./PUJPVTUS.js";import{a as v}from"./YMPJFJHK.js";import b from"./G44JDQZ4.js";import{g as d}from"./2E5U7E4Y.js";import"./W5TN3LOU.js";import a from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as m,P as u,R as s,U as h,a as n,b as l,x as r}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{ignoreAbortErrors:z},{when:w},,{a:g}])=>{function y(t){if(!t)return!1;if(t.type==="3d")return t.ready;if(!t?.ready)return!1;let e=b(t),o=t.constraints?.effectiveMaxScale;return o===0||e>o}function p(t){if(!t)return!1;if(t.type==="3d")return t.ready;if(!t?.ready)return!1;let e=b(t),o=t.constraints?.effectiveMinScale;return o===0||e<o}function b(t){let e=t?.animation?.target;return(e&&"then"in e?void 0:e?.scale)??t?.scale??0}var x=n`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{display:flex;max-width:fit-content}.zoom-out{border-block-start:solid 1px var(--calcite-color-border-1)}.horizontal{flex-flow:row-reverse nowrap}.horizontal .zoom-out{border-block-start:none;border-inline-end:solid 1px var(--calcite-color-border-1)}`,c=class extends m{constructor(){super(...arguments),this.messages=f({}),this._state="disabled",this.view=g(this),this.autoDestroyDisabled=!1,this.icon="magnifying-glass-plus",this.layout="vertical",this.visualScale="m",this.arcgisActionZoom=r(),this.arcgisPropertyChange=d()("state"),this.arcgisReady=r()}static{this.properties={_state:16,view:0,autoDestroyDisabled:5,icon:1,label:1,layout:3,messageOverrides:0,referenceElement:1,visualScale:1,state:32}}static{this.styles=x}get state(){return this._state}async destroy(){await this.manager.destroy()}async zoomIn(){await this.zoomBy(1)}async zoomOut(){await this.zoomBy(-1)}loaded(){this.manager.onLifecycle(()=>[w(()=>this.view?.ready?"ready":"disabled",e=>{this._state=e},{sync:!0,initial:!0})])}async zoomBy(e){let{view:o}=this,a=e===1;if(!(!(a?y(o):p(o))||!o))if(this.arcgisActionZoom.emit({action:a?"zoomIn":"zoomOut"}),o.type==="2d"){let i=o.mapViewNavigation;a?await i.zoomIn():await i.zoomOut()}else await z(o.goTo({zoom:o.zoom+e}))}render(){let e=y(this.view),o=p(this.view),{zoomIn:a,zoomOut:i}=this.messages;return l`<div class=${u({[v.arcgisButton]:!0,horizontal:this.layout==="horizontal"})}><calcite-button class="zoom-in" .disabled=${!e} icon-start=plus kind=neutral .label=${a} @click=${this.zoomIn} .scale=${this.visualScale} title=${a??s}></calcite-button><calcite-button class="zoom-out" .disabled=${!o} icon-start=minus kind=neutral .label=${i} @click=${this.zoomOut} .scale=${this.visualScale} title=${i??s}></calcite-button></div>`}};h("arcgis-zoom",c);return c},"core/promiseUtils","core/reactiveUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./QH2WUE6T.js";import a from"./TJXR3SIG.js";import{a as r}from"./HFWMJJFD.js";export default $arcgis.t(([{watch:a},{b:i},{c:n}])=>{var v=(e,o)=>s=>m(s,e),t=class extends n{#o=void 0;constructor(o,s){super(o,s),new i(this.component)}hostLoad(){this.#o=a(()=>this.component.el.view,o=>{this.instance.view=o,this.instance.map=o?.map},{sync:!0,initial:!0})}hostDestroy(){this.#o?.remove(),super.hostDestroy()}},m=r(t);return v},"core/reactiveUtils",a,b)
2
+ import b from"./6M6VT4H6.js";import a from"./G44JDQZ4.js";import{a as r}from"./2E5U7E4Y.js";export default $arcgis.t(([{watch:a},{b:i},{c:n}])=>{var v=(e,o)=>s=>m(s,e),t=class extends n{#o=void 0;constructor(o,s){super(o,s),new i(this.component)}hostLoad(){this.#o=a(()=>this.component.el.view,o=>{this.instance.view=o,this.instance.map=o?.map},{sync:!0,initial:!0})}hostDestroy(){this.#o?.remove(),super.hostDestroy()}},m=r(t);return v},"core/reactiveUtils",a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as u}from"./KSH446AM.js";import{a as c}from"./ZSUULNWA.js";import{e as v}from"./HFWMJJFD.js";import"./NJN3I6EV.js";import"./LB32PLWG.js";import{O as l,P as s,R as d,U as p,a as n,b as t,x as h}from"./BDUD457O.js";import"./3TTFCHAA.js";export default $arcgis.t(([{when:w,watch:f}])=>{var x=n`:host{--num-phases: 7;--container-width: 100cqw;--phase-size: 24px;--arrow-width: 16px;--padding: var(--calcite-spacing-xxs);--divider-width-min: var(--calcite-spacing-base);--divider-width-max: var(--calcite-spacing-xl);--divider-width: calc( (var(--container-width) - (var(--phase-size) * var(--num-phases)) - (var(--arrow-width) * 2) - (var(--padding) * 2) ) / (var(--num-phases) - 1) );container-type:inline-size}.phase-picker,.phases-container{display:flex;flex-direction:row;align-items:center}.phases-container{position:relative;flex-shrink:1;padding:var(--calcite-spacing-xxs);overflow:hidden}.phase-button{appearance:none;display:flex;flex-shrink:0;align-items:center;justify-content:center;border:solid var(--calcite-border-width-sm) var(--calcite-color-border-2);border-radius:var(--calcite-corner-radius-pill);background:var(--calcite-color-background);cursor:pointer;padding:1px 0 0;width:var(--phase-size);height:var(--phase-size);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-regular)}.phase-button:hover{border-width:var(--calcite-border-width-md);border-color:var(--calcite-color-brand)}.phase-button:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.phase-button.active{border-color:var(--calcite-color-brand);background-color:var(--calcite-foreground-1)}.phase-button.current{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.arrow-left,.arrow-right{--calcite-internal-action-padding-inline: 0;width:var(--arrow-width);min-width:var(--arrow-width)}.divider{flex:0;background:var(--calcite-color-border-1);min-width:clamp(var(--divider-width-min),var(--divider-width),var(--divider-width-max));height:var(--calcite-border-width-sm)}.divider.active{background-color:var(--calcite-color-brand)}`,o=class extends l{constructor(){super(...arguments),this.#i=v(),this.#e=!0,this.#a=!1,this.arcgisBuildingPhaseChange=h({bubbles:!0,composed:!0})}static{this.properties={messages:0,phase:0,numberOfPhases:32,phaseHeight:32}}static{this.styles=x}get phases(){return this.phase?.allowedValues??[]}#i;#e;#a;#t(){let e=this.renderRoot.querySelector("button.current");e&&(this.#e&&(e.scrollIntoView({block:"nearest",inline:"center"}),this.#e=!1),this.#a&&(e.focus(),this.#a=!1))}#r(){this.phase&&(this.phase.next(),this.arcgisBuildingPhaseChange.emit())}#s(){this.phase&&(this.phase.previous(),this.arcgisBuildingPhaseChange.emit())}#c(e){this.phase!=null&&this.phase?.value!==e&&(this.phase?.select(e),this.arcgisBuildingPhaseChange.emit())}get numberOfPhases(){return this.phases.length}get phaseHeight(){let e=14,r=e*2/Math.sqrt(this.numberOfPhases);return Math.round(u(r,2,e))}loaded(){this.listen("keydown",e=>{switch(e.key){case"ArrowDown":case"ArrowLeft":e.stopPropagation(),e.preventDefault(),this.#s(),this.#a=!0;break;case"ArrowUp":case"ArrowRight":e.stopPropagation(),e.preventDefault(),this.#r(),this.#a=!0;break}}),this.manager.onLifecycle(()=>[w(()=>this.phase?.state==="ready",()=>{requestAnimationFrame(()=>{this.#e=!0,this.#t()})},{initial:!0}),f(()=>this.phase?.value,()=>{this.#e=!0,this.#t()})])}render(){let e=this.phase,r=this.messages;return!r||e==null?null:t`<div class="phase-picker">${g({className:"arrow-left",disabled:!1,icon:this.#i==="rtl"?"chevron-right":"chevron-left",onClick:()=>this.#s(),text:r.previousPhase})}<div class="phases-container">${this.phases.map((i,m)=>t`${m>0&&t`<span class=${s({divider:!0,active:e.value>=i})}></span>`||""}${c(i,t`<button class=${s({"phase-button":!0,active:e.value>=i,current:e.value===i})} @click=${()=>{this.#c(i)}}>${i}</button>`)}`)}</div>${g({className:"arrow-right",disabled:!1,icon:this.#i==="rtl"?"chevron-left":"chevron-right",onClick:()=>this.#r(),text:r.nextPhase})}</div>`}};function g(a){return c(a.className,t`<calcite-action appearance=transparent class=${s(a.className)} .disabled=${a.disabled} .icon=${a.icon} icon-flip-rtl @click=${a.onClick} scale=s .text=${a.text} title=${a.text??d}></calcite-action>`)}p("arcgis-building-phase-picker",o);return o},"core/reactiveUtils")
2
+ import{b as u}from"./KSH446AM.js";import{a as c}from"./B2G5OTNZ.js";import{e as v}from"./2E5U7E4Y.js";import"./W5TN3LOU.js";import"./LB32PLWG.js";import{O as l,P as s,R as d,U as p,a as n,b as t,x as h}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{when:w,watch:f}])=>{var x=n`:host{--num-phases: 7;--container-width: 100cqw;--phase-size: 24px;--arrow-width: 16px;--padding: var(--calcite-spacing-xxs);--divider-width-min: var(--calcite-spacing-base);--divider-width-max: var(--calcite-spacing-xl);--divider-width: calc( (var(--container-width) - (var(--phase-size) * var(--num-phases)) - (var(--arrow-width) * 2) - (var(--padding) * 2) ) / (var(--num-phases) - 1) );container-type:inline-size}.phase-picker,.phases-container{display:flex;flex-direction:row;align-items:center}.phases-container{position:relative;flex-shrink:1;padding:var(--calcite-spacing-xxs);overflow:hidden}.phase-button{appearance:none;display:flex;flex-shrink:0;align-items:center;justify-content:center;border:solid var(--calcite-border-width-sm) var(--calcite-color-border-2);border-radius:var(--calcite-corner-radius-pill);background:var(--calcite-color-background);cursor:pointer;padding:1px 0 0;width:var(--phase-size);height:var(--phase-size);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-regular)}.phase-button:hover{border-width:var(--calcite-border-width-md);border-color:var(--calcite-color-brand)}.phase-button:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.phase-button.active{border-color:var(--calcite-color-brand);background-color:var(--calcite-foreground-1)}.phase-button.current{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}.arrow-left,.arrow-right{--calcite-internal-action-padding-inline: 0;width:var(--arrow-width);min-width:var(--arrow-width)}.divider{flex:0;background:var(--calcite-color-border-1);min-width:clamp(var(--divider-width-min),var(--divider-width),var(--divider-width-max));height:var(--calcite-border-width-sm)}.divider.active{background-color:var(--calcite-color-brand)}`,o=class extends l{constructor(){super(...arguments),this.#i=v(),this.#e=!0,this.#a=!1,this.arcgisBuildingPhaseChange=h({bubbles:!0,composed:!0})}static{this.properties={messages:0,phase:0,numberOfPhases:32,phaseHeight:32}}static{this.styles=x}get phases(){return this.phase?.allowedValues??[]}#i;#e;#a;#t(){let e=this.renderRoot.querySelector("button.current");e&&(this.#e&&(e.scrollIntoView({block:"nearest",inline:"center"}),this.#e=!1),this.#a&&(e.focus(),this.#a=!1))}#r(){this.phase&&(this.phase.next(),this.arcgisBuildingPhaseChange.emit())}#s(){this.phase&&(this.phase.previous(),this.arcgisBuildingPhaseChange.emit())}#c(e){this.phase!=null&&this.phase?.value!==e&&(this.phase?.select(e),this.arcgisBuildingPhaseChange.emit())}get numberOfPhases(){return this.phases.length}get phaseHeight(){let e=14,r=e*2/Math.sqrt(this.numberOfPhases);return Math.round(u(r,2,e))}loaded(){this.listen("keydown",e=>{switch(e.key){case"ArrowDown":case"ArrowLeft":e.stopPropagation(),e.preventDefault(),this.#s(),this.#a=!0;break;case"ArrowUp":case"ArrowRight":e.stopPropagation(),e.preventDefault(),this.#r(),this.#a=!0;break}}),this.manager.onLifecycle(()=>[w(()=>this.phase?.state==="ready",()=>{requestAnimationFrame(()=>{this.#e=!0,this.#t()})},{initial:!0}),f(()=>this.phase?.value,()=>{this.#e=!0,this.#t()})])}render(){let e=this.phase,r=this.messages;return!r||e==null?null:t`<div class="phase-picker">${g({className:"arrow-left",disabled:!1,icon:this.#i==="rtl"?"chevron-right":"chevron-left",onClick:()=>this.#s(),text:r.previousPhase})}<div class="phases-container">${this.phases.map((i,m)=>t`${m>0&&t`<span class=${s({divider:!0,active:e.value>=i})}></span>`||""}${c(i,t`<button class=${s({"phase-button":!0,active:e.value>=i,current:e.value===i})} @click=${()=>{this.#c(i)}}>${i}</button>`)}`)}</div>${g({className:"arrow-right",disabled:!1,icon:this.#i==="rtl"?"chevron-left":"chevron-right",onClick:()=>this.#r(),text:r.nextPhase})}</div>`}};function g(a){return c(a.className,t`<calcite-action appearance=transparent class=${s(a.className)} .disabled=${a.disabled} .icon=${a.icon} icon-flip-rtl @click=${a.onClick} scale=s .text=${a.text} title=${a.text??d}></calcite-action>`)}p("arcgis-building-phase-picker",o);return o},"core/reactiveUtils")