@arcgis/map-components 5.1.0-next.31 → 5.1.0-next.33

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 (211) hide show
  1. package/dist/cdn/{RG4S7JVP.js → 24NMCAGY.js} +1 -1
  2. package/dist/cdn/{AZNCJT62.js → 2FSMLU5U.js} +1 -1
  3. package/dist/cdn/{7LYFC7SC.js → 2IPJYKJU.js} +1 -1
  4. package/dist/cdn/{GIICS6MH.js → 2NP32IGG.js} +1 -1
  5. package/dist/cdn/{7VRU553O.js → 36XE7UKL.js} +1 -1
  6. package/dist/cdn/{KX5PBTVM.js → 3FBEBICW.js} +1 -1
  7. package/dist/cdn/{SJUWADQP.js → 3HN6NE4B.js} +1 -1
  8. package/dist/cdn/{H337G76Z.js → 3RTLZWI4.js} +1 -1
  9. package/dist/cdn/{NWQEVQPN.js → 3YNGTAZV.js} +1 -1
  10. package/dist/cdn/{VWHIK5GL.js → 475HALXY.js} +1 -1
  11. package/dist/cdn/{VQ4QWOQY.js → 4D6WLVUM.js} +1 -1
  12. package/dist/cdn/{WO76BRRK.js → 4EVBGIAN.js} +1 -1
  13. package/dist/cdn/{VE5FQNBP.js → 4QTNVNFE.js} +1 -1
  14. package/dist/cdn/{MX7LKRXI.js → 4UVL25FV.js} +1 -1
  15. package/dist/cdn/{7RUBJPVS.js → 53SNABAF.js} +1 -1
  16. package/dist/cdn/{EPII4PE5.js → 5ATDIAJA.js} +1 -1
  17. package/dist/cdn/{JODAZMW3.js → 5BBCM67R.js} +1 -1
  18. package/dist/cdn/{V5WAYR44.js → 5EWDALFY.js} +1 -1
  19. package/dist/cdn/{UEF6TPIT.js → 5HKA7IDN.js} +1 -1
  20. package/dist/cdn/{2Q4WMDEY.js → 5QMWGOX3.js} +1 -1
  21. package/dist/cdn/{LONLK6RH.js → 5RTPMSZH.js} +1 -1
  22. package/dist/cdn/{4YQZ3XVG.js → 5S3DLSNX.js} +1 -1
  23. package/dist/cdn/5Z5SIO3X.js +2 -0
  24. package/dist/cdn/{22YBLZZ5.js → 63DOJOIJ.js} +1 -1
  25. package/dist/cdn/65EBUU4D.js +2 -0
  26. package/dist/cdn/{EUFSNMR4.js → 6IPVVZPA.js} +1 -1
  27. package/dist/cdn/{KUUX4Y7X.js → 6OHZVDN2.js} +1 -1
  28. package/dist/cdn/{ZW733SWS.js → 6VROEHPA.js} +1 -1
  29. package/dist/cdn/{Y6CUKQ7R.js → 76DFK3J6.js} +1 -1
  30. package/dist/cdn/{PL6H7VTE.js → 7AHBK7AM.js} +1 -1
  31. package/dist/cdn/{TTZN7HIT.js → 7BSYHAEK.js} +1 -1
  32. package/dist/cdn/{7WKBNAQD.js → 7LR2Q4VZ.js} +1 -1
  33. package/dist/cdn/{HA465EKI.js → 7P7HEZP3.js} +1 -1
  34. package/dist/cdn/{LGEWMTBM.js → 7VWIJ3J4.js} +1 -1
  35. package/dist/cdn/{ZOAOTITT.js → 7WAWZW23.js} +1 -1
  36. package/dist/cdn/{PUJPVTUS.js → 7XUILQR4.js} +1 -1
  37. package/dist/cdn/{JYDGMTWJ.js → ACW2N5YV.js} +1 -1
  38. package/dist/cdn/{2E5U7E4Y.js → AFFIZ62T.js} +1 -1
  39. package/dist/cdn/{YBL2FOGP.js → B3KVQZVR.js} +1 -1
  40. package/dist/cdn/{VNCC2KP5.js → BJFT5X4W.js} +1 -1
  41. package/dist/cdn/{NBA6VGFB.js → BL4BIAX5.js} +1 -1
  42. package/dist/cdn/{XUESBDWT.js → BPLUYXEJ.js} +1 -1
  43. package/dist/cdn/{R5KGKAEB.js → BVWBXM2C.js} +1 -1
  44. package/dist/cdn/{IP6MMWXP.js → BXYIJOBX.js} +1 -1
  45. package/dist/cdn/{ET6WL43W.js → BY57OTI5.js} +1 -1
  46. package/dist/cdn/{AA6JMN5J.js → C4RARZF3.js} +1 -1
  47. package/dist/cdn/{BJEDYTXQ.js → CKGRSTF2.js} +1 -1
  48. package/dist/cdn/{SMHB2XNO.js → CL5GX5QI.js} +1 -1
  49. package/dist/cdn/{GKZICLQB.js → DBOGW4P2.js} +1 -1
  50. package/dist/cdn/{T36AHJZT.js → DFXSPGAZ.js} +1 -1
  51. package/dist/cdn/{ONRBFGY5.js → DJCDTL26.js} +1 -1
  52. package/dist/cdn/{X7IBOHSI.js → DR5ML7T5.js} +1 -1
  53. package/dist/cdn/{MD2KA2VE.js → DVG5RETA.js} +1 -1
  54. package/dist/cdn/{DQUREUJ4.js → DZS5Q42J.js} +1 -1
  55. package/dist/cdn/{HIASLYKF.js → E25OXJ2U.js} +1 -1
  56. package/dist/cdn/{UMYVF65X.js → E43R5ER3.js} +1 -1
  57. package/dist/cdn/{NQ53C2SG.js → EBZ35GOO.js} +1 -1
  58. package/dist/cdn/{GST63XCD.js → EHT5CS43.js} +1 -1
  59. package/dist/cdn/{EQPYSPT5.js → ERHLYXMP.js} +1 -1
  60. package/dist/cdn/{54WDNPKC.js → EYSYAZ4J.js} +1 -1
  61. package/dist/cdn/{7SZFENQP.js → EZK2RFST.js} +1 -1
  62. package/dist/cdn/F4V2OY4Q.js +2 -0
  63. package/dist/cdn/{44APAUMM.js → FCHTKZY6.js} +1 -1
  64. package/dist/cdn/{P5MTPM2I.js → FD7NCBBM.js} +1 -1
  65. package/dist/cdn/{KYJD5CQL.js → FE2APYXG.js} +1 -1
  66. package/dist/cdn/{IEOFMCCO.js → G3FBIV66.js} +1 -1
  67. package/dist/cdn/{V5FNVAX5.js → G6R4JEE5.js} +1 -1
  68. package/dist/cdn/{LO6QWIYR.js → GS54YVRG.js} +1 -1
  69. package/dist/cdn/{P4DS6L6N.js → H7UJGPZK.js} +1 -1
  70. package/dist/cdn/{TZXIPFOD.js → HSTFBEOX.js} +1 -1
  71. package/dist/cdn/HT6OPWZY.js +2 -0
  72. package/dist/cdn/{4IFAJH4D.js → IBGXYOAC.js} +1 -1
  73. package/dist/cdn/{ITTHJAUG.js → ICKUJGUC.js} +1 -1
  74. package/dist/cdn/{RG3A222F.js → IDLOEQ44.js} +1 -1
  75. package/dist/cdn/{UCWDM6D2.js → IEZBFGQD.js} +1 -1
  76. package/dist/cdn/{WJ4JHHNJ.js → IKTX3IW4.js} +1 -1
  77. package/dist/cdn/{6OMMETC4.js → IQ3NVZRW.js} +1 -1
  78. package/dist/cdn/{QDHEAX7N.js → IQJC5DDW.js} +1 -1
  79. package/dist/cdn/{JWTRJAFZ.js → IX3O7JZ4.js} +1 -1
  80. package/dist/cdn/{SKEB63NG.js → IYCUHGJ7.js} +1 -1
  81. package/dist/cdn/{SEPRRGUF.js → J3O2IER3.js} +1 -1
  82. package/dist/cdn/{5ZHD4P65.js → J62MXFDQ.js} +1 -1
  83. package/dist/cdn/{OPATO46Y.js → JGMP5VI4.js} +1 -1
  84. package/dist/cdn/{W5TN3LOU.js → JH6VEOEP.js} +1 -1
  85. package/dist/cdn/{37VDMTVJ.js → JHDMYGMZ.js} +1 -1
  86. package/dist/cdn/{3ON5H2G5.js → JJ77KMIU.js} +1 -1
  87. package/dist/cdn/{R7YMIGPE.js → JLK76AMD.js} +1 -1
  88. package/dist/cdn/{QCCYKLEL.js → JRSSUIA7.js} +1 -1
  89. package/dist/cdn/{34K7KDP3.js → JS6ROTAN.js} +1 -1
  90. package/dist/cdn/{CDVPXUWH.js → JTE2JUM5.js} +1 -1
  91. package/dist/cdn/{G3DJLLNR.js → K3FURKDC.js} +1 -1
  92. package/dist/cdn/{RB4ZCMX4.js → KAYB563I.js} +1 -1
  93. package/dist/cdn/{B4GFOGFO.js → KGI7THP7.js} +1 -1
  94. package/dist/cdn/{MR5JAWKH.js → KXGOKDLU.js} +1 -1
  95. package/dist/cdn/{YQMPW2VC.js → L3RN5AKJ.js} +1 -1
  96. package/dist/cdn/{42IKCJ2T.js → L7CYER4L.js} +1 -1
  97. package/dist/cdn/{OZICG5FF.js → LY3AAVRF.js} +1 -1
  98. package/dist/cdn/{34Z77QHJ.js → LYZGIGCW.js} +1 -1
  99. package/dist/cdn/{A6SBSKY7.js → M56LVFJH.js} +1 -1
  100. package/dist/cdn/{3NTRW2I5.js → MG2QPYHF.js} +1 -1
  101. package/dist/cdn/{IEC2UOVC.js → MPD2DLTB.js} +1 -1
  102. package/dist/cdn/{7XJ2H56Y.js → MS2XH75X.js} +1 -1
  103. package/dist/cdn/{DW3K3W57.js → MSU55SIV.js} +1 -1
  104. package/dist/cdn/{U5PXE2DX.js → MUNZ6MRL.js} +1 -1
  105. package/dist/cdn/{2HRXVQNT.js → MYZSF67L.js} +1 -1
  106. package/dist/cdn/{INULU27Q.js → NEKDHC7S.js} +1 -1
  107. package/dist/cdn/{US4GUOT3.js → NEZJSLYH.js} +1 -1
  108. package/dist/cdn/{2CZVQJFN.js → NNILRU2G.js} +1 -1
  109. package/dist/cdn/{7LEGZD2O.js → NVE2LVPQ.js} +1 -1
  110. package/dist/cdn/{BHB3PSCU.js → NX5QEE2G.js} +1 -1
  111. package/dist/cdn/{TZHRLKZR.js → O3ANYOKX.js} +1 -1
  112. package/dist/cdn/{6UNF7T5E.js → ODBLXGDW.js} +1 -1
  113. package/dist/cdn/{LY5GZCVF.js → OG75AX6X.js} +1 -1
  114. package/dist/cdn/{P6I2HVEZ.js → ORZ45BVF.js} +1 -1
  115. package/dist/cdn/{AH4HKYPE.js → OWUZH35R.js} +1 -1
  116. package/dist/cdn/{LGO4NCZM.js → P2YYVX3D.js} +1 -1
  117. package/dist/cdn/{PPOG4NAA.js → P7P7MEFD.js} +1 -1
  118. package/dist/cdn/{T4WQQ7MP.js → PAMUXSUF.js} +1 -1
  119. package/dist/cdn/{JIZ6BEMO.js → PLPC4ON4.js} +1 -1
  120. package/dist/cdn/{EY7SYUYY.js → PSGCV2D2.js} +1 -1
  121. package/dist/cdn/{XV2NVNDJ.js → PVW5H5KG.js} +1 -1
  122. package/dist/cdn/{AR47FOKN.js → PWEDRKZN.js} +1 -1
  123. package/dist/cdn/{MYATZCJP.js → Q44BQRIV.js} +1 -1
  124. package/dist/cdn/Q72XLTJZ.js +2 -0
  125. package/dist/cdn/QB2VFS6S.js +2 -0
  126. package/dist/cdn/{KV2UORZN.js → QD32N2J5.js} +1 -1
  127. package/dist/cdn/{QUBU7FFY.js → QI63DR3K.js} +1 -1
  128. package/dist/cdn/{ZXEQN6RW.js → QJ3HQDWW.js} +1 -1
  129. package/dist/cdn/{ZBANIHB3.js → QUHQAYGJ.js} +1 -1
  130. package/dist/cdn/{QAXSOHDW.js → QUNYZKHP.js} +1 -1
  131. package/dist/cdn/{U7GSOBVS.js → RFVCXTCT.js} +1 -1
  132. package/dist/cdn/{MJQIWRRC.js → RL5MZNCU.js} +1 -1
  133. package/dist/cdn/{P4RZQHRD.js → RM3Y5F5N.js} +1 -1
  134. package/dist/cdn/{3W3MBD25.js → RNCWHD7W.js} +1 -1
  135. package/dist/cdn/{RVGCVXBV.js → RS76DJAA.js} +1 -1
  136. package/dist/cdn/{U3CQZ6CI.js → S5VV52Q3.js} +1 -1
  137. package/dist/cdn/{23HX6BD2.js → SIWVYP5U.js} +1 -1
  138. package/dist/cdn/{UXYBJXLL.js → SKIFHS77.js} +1 -1
  139. package/dist/cdn/{QRIK2V22.js → SOEMQOBF.js} +1 -1
  140. package/dist/cdn/{TMXAN3O2.js → SOWQKD7Y.js} +1 -1
  141. package/dist/cdn/{DJMRUJ7O.js → SSHSLCY7.js} +1 -1
  142. package/dist/cdn/{KX25AEKF.js → SSTUJS3O.js} +1 -1
  143. package/dist/cdn/{D3WZ5UUP.js → SV4B5RUV.js} +1 -1
  144. package/dist/cdn/{4MNQPYT6.js → SYHC2JX6.js} +1 -1
  145. package/dist/cdn/{7FS3KABY.js → T3LQQ5M7.js} +1 -1
  146. package/dist/cdn/{HSXR7HAG.js → TAORRIXZ.js} +1 -1
  147. package/dist/cdn/{ODGZ4RGD.js → TFWRZ2CZ.js} +1 -1
  148. package/dist/cdn/{DVMAHZFP.js → TIVQ4K76.js} +1 -1
  149. package/dist/cdn/{KUFUPG4B.js → TLZUSIRU.js} +1 -1
  150. package/dist/cdn/{JF4W5UZ7.js → TMGLTT23.js} +1 -1
  151. package/dist/cdn/{G44JDQZ4.js → TPKF6QNJ.js} +1 -1
  152. package/dist/cdn/{OHUCKLK5.js → TRUGVMER.js} +1 -1
  153. package/dist/cdn/{KEKWNLTW.js → UA4OBYMV.js} +1 -1
  154. package/dist/cdn/{SUAJ2D6L.js → UWN2QX53.js} +1 -1
  155. package/dist/cdn/{L6D5F5SD.js → VMXH5IO7.js} +1 -1
  156. package/dist/cdn/{XP7ST6TO.js → VNNTWKM4.js} +1 -1
  157. package/dist/cdn/{5KRCPR2U.js → VNTAY2FU.js} +1 -1
  158. package/dist/cdn/{ATBESYRQ.js → VO2BVSQD.js} +1 -1
  159. package/dist/cdn/{2NW3IA4C.js → VOCS4OAY.js} +1 -1
  160. package/dist/cdn/{M6ZVATVW.js → VSOEX6V7.js} +1 -1
  161. package/dist/cdn/{YSPFHM7A.js → WFIHNXAP.js} +1 -1
  162. package/dist/cdn/{XDDOM7RA.js → WG6SBJ7V.js} +1 -1
  163. package/dist/cdn/{B2G5OTNZ.js → WLWCCCCK.js} +1 -1
  164. package/dist/cdn/{T5F57ZKY.js → WTJPQO7Z.js} +1 -1
  165. package/dist/cdn/{QB7F6BBW.js → WYK7S4BT.js} +1 -1
  166. package/dist/cdn/{UKG6DYFF.js → WYXBQ4GP.js} +1 -1
  167. package/dist/cdn/{Q3NBRWIQ.js → X2PPE4YT.js} +1 -1
  168. package/dist/cdn/{KVIUDTBB.js → XIIX3XEW.js} +1 -1
  169. package/dist/cdn/{DCI5XVB6.js → XJIF7VYA.js} +1 -1
  170. package/dist/cdn/{J756LIIM.js → XKWAPOZD.js} +1 -1
  171. package/dist/cdn/{M67RIQAG.js → XR4VWNPH.js} +1 -1
  172. package/dist/cdn/{YRUX64GE.js → XWPOK6PZ.js} +1 -1
  173. package/dist/cdn/{XIUUCICM.js → XWYYNCPO.js} +1 -1
  174. package/dist/cdn/Y2NPRY33.js +2 -0
  175. package/dist/cdn/{U557VRFM.js → Y5WK6HGF.js} +1 -1
  176. package/dist/cdn/{CDVHDTSM.js → YLR7446Q.js} +1 -1
  177. package/dist/cdn/{VGR7AU6K.js → YVW62BNQ.js} +1 -1
  178. package/dist/cdn/{KUFW2OOW.js → YWYJJSDU.js} +1 -1
  179. package/dist/cdn/{MFQWNYVF.js → ZKQHQPJM.js} +1 -1
  180. package/dist/cdn/{6M6VT4H6.js → ZN2JKVQS.js} +1 -1
  181. package/dist/cdn/{V47NU4HK.js → ZNFGEB6R.js} +1 -1
  182. package/dist/cdn/{UZFDHLQM.js → ZPASCPXO.js} +1 -1
  183. package/dist/cdn/{MHVCLFTY.js → ZVSSCS26.js} +1 -1
  184. package/dist/cdn/{J5H3B35H.js → ZWVXQ2LZ.js} +1 -1
  185. package/dist/cdn/index.js +1 -1
  186. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  187. package/dist/components/arcgis-features/customElement.js +5 -5
  188. package/dist/components/arcgis-locate/customElement.js +6 -7
  189. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +9 -0
  190. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +4 -4
  191. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +5 -0
  192. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +3 -3
  193. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +5 -0
  194. package/dist/components/arcgis-utility-network-trace-results/customElement.js +3 -3
  195. package/dist/docs/api.json +1 -1
  196. package/dist/docs/docs.json +1 -1
  197. package/dist/docs/vscode.html-custom-data.json +1 -1
  198. package/dist/docs/web-types.json +1 -1
  199. package/dist/loader.js +3 -3
  200. package/dist/types/lumina.d.ts +3 -3
  201. package/dist/types/preact.d.ts +3 -3
  202. package/dist/types/react.d.ts +3 -3
  203. package/dist/types/stencil.d.ts +3 -3
  204. package/package.json +4 -4
  205. package/dist/cdn/4J3CK2QK.js +0 -2
  206. package/dist/cdn/6I4ST6BV.js +0 -2
  207. package/dist/cdn/E3ATQTQG.js +0 -2
  208. package/dist/cdn/EYX4XXBU.js +0 -2
  209. package/dist/cdn/PY4FXGEA.js +0 -2
  210. package/dist/cdn/Y2HW37MS.js +0 -2
  211. package/dist/cdn/ZZAD2X6F.js +0 -2
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{M as l,N as o,O as g,Q as m,U as c,b as n,p as s}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([u,d,y,I,{previewGraphic:i}])=>{var _=new d,w=new y,b=new I;function f(a){if(!a)return null;switch(a.geometryType){case"multipoint":case"point":return b;case"polygon":return _;case"polyline":return w;default:return null}}var r=class extends g{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._io=null,this._imageContainerDiv=l(),this._generatedImageData=null,this.useTrueShape=!1,this.widthInPixels=16,this.heightInPixels=16}static{this.properties={_generatedImageData:16,graphic:0,layer:0,tableSymbolIcon:0,minWidth:9,useTrueShape:5,actualSymbol:0,widthInPixels:9,heightInPixels:9}}get rootLayer(){return this.layer?.type==="subtype-sublayer"?this.layer.parent:this.layer}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}willUpdate(e){e.has("graphic")&&(this.hasUpdated||this.graphic!==null)&&this._changeGraphic()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleImage().catch(e=>{s("warn",this,"Failed processing image")}))}_changeGraphic(){this._changeData()}_changeData(){this._generatedImageData=null,this._attempted=!1}async _generateImage(){return this.actualSymbol&&this.graphic?.geometry&&this.useTrueShape&&!this.layer?await i(new u({attributes:this.graphic.attributes,geometry:this.graphic.geometry}),{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:this.useTrueShape,fallbackSymbol:this.actualSymbol}):this.actualSymbol?await i(null,{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:!1,fallbackSymbol:this.actualSymbol}):this.layer&&this.graphic?this.rootLayer.isTable?this.tableSymbolIcon?await i(null,{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:!1,fallbackSymbol:this.tableSymbolIcon}):"":this.useTrueShape?this.graphic.geometry?await this._generatePreviewGraphic():"":await this._generatePreviewGraphic():""}async _generatePreviewGraphic(){return await i(new u({attributes:this.graphic.attributes,geometry:this.graphic.geometry,layer:this.layer}),{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:this.useTrueShape,fallbackSymbol:f(this.layer)})}async _handleImage(){let e=++this._lastRun;if(!this._generatedImageData||this._generatedImageData==="")try{let t=await this._generateImage();if(this._lastRun!==e||this._generatedImageData===t)return;this._generatedImageData=t}finally{this._attempted=!0}}_addIntersectionObserver(){let e={rootMargin:"50px 0px",threshold:.01};this._imageContainerDiv.value&&requestAnimationFrame(()=>{this.isConnected&&(this._io=new IntersectionObserver(t=>{let h=!1;t.forEach(p=>{p.intersectionRatio>0&&!h?(h=!0,this._isCurrentlyInView=!0,this._handleImage().catch(x=>{s("warn",this,"Failed processing image")})):this._isCurrentlyInView=!1})},e),this._io?.observe(this._imageContainerDiv.value))})}_removeIntersectionObserver(){this._io?.disconnect(),this._io=null}_generateInnerHTML(){return this._generatedImageData?this._generatedImageData.startsWith("<")?this._generatedImageData:`
2
+ import{M as l,N as o,O as g,Q as m,U as c,b as n,p as s}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([u,d,y,I,{previewGraphic:i}])=>{var _=new d,w=new y,b=new I;function f(a){if(!a)return null;switch(a.geometryType){case"multipoint":case"point":return b;case"polygon":return _;case"polyline":return w;default:return null}}var r=class extends g{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._io=null,this._imageContainerDiv=l(),this._generatedImageData=null,this.useTrueShape=!1,this.widthInPixels=16,this.heightInPixels=16}static{this.properties={_generatedImageData:16,graphic:0,layer:0,tableSymbolIcon:0,minWidth:9,useTrueShape:5,actualSymbol:0,widthInPixels:9,heightInPixels:9}}get rootLayer(){return this.layer?.type==="subtype-sublayer"?this.layer.parent:this.layer}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}willUpdate(e){e.has("graphic")&&(this.hasUpdated||this.graphic!==null)&&this._changeGraphic()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleImage().catch(e=>{s("warn",this,"Failed processing image")}))}_changeGraphic(){this._changeData()}_changeData(){this._generatedImageData=null,this._attempted=!1}async _generateImage(){return this.actualSymbol&&this.graphic?.geometry&&this.useTrueShape&&!this.layer?await i(new u({attributes:this.graphic.attributes,geometry:this.graphic.geometry}),{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:this.useTrueShape,fallbackSymbol:this.actualSymbol}):this.actualSymbol?await i(null,{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:!1,fallbackSymbol:this.actualSymbol}):this.layer&&this.graphic?this.rootLayer.isTable?this.tableSymbolIcon?await i(null,{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:!1,fallbackSymbol:this.tableSymbolIcon}):"":this.useTrueShape?this.graphic.geometry?await this._generatePreviewGraphic():"":await this._generatePreviewGraphic():""}async _generatePreviewGraphic(){return await i(new u({attributes:this.graphic.attributes,geometry:this.graphic.geometry,layer:this.layer}),{format:"string",widthInPixels:this.widthInPixels,heightInPixels:this.heightInPixels,useGeometryForShape:this.useTrueShape,fallbackSymbol:f(this.layer)})}async _handleImage(){let e=++this._lastRun;if(!this._generatedImageData||this._generatedImageData==="")try{let t=await this._generateImage();if(this._lastRun!==e||this._generatedImageData===t)return;this._generatedImageData=t}finally{this._attempted=!0}}_addIntersectionObserver(){let e={rootMargin:"50px 0px",threshold:.01};this._imageContainerDiv.value&&requestAnimationFrame(()=>{this.isConnected&&(this._io=new IntersectionObserver(t=>{let h=!1;t.forEach(p=>{p.intersectionRatio>0&&!h?(h=!0,this._isCurrentlyInView=!0,this._handleImage().catch(x=>{s("warn",this,"Failed processing image")})):this._isCurrentlyInView=!1})},e),this._io?.observe(this._imageContainerDiv.value))})}_removeIntersectionObserver(){this._io?.disconnect(),this._io=null}_generateInnerHTML(){return this._generatedImageData?this._generatedImageData.startsWith("<")?this._generatedImageData:`
3
3
  <img
4
4
  alt=''
5
5
  src=${this._generatedImageData}
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{d as h,h as T}from"./IQPGSWSL.js";import j from"./3ON5H2G5.js";import{a as p}from"./IGSZABNU.js";import i from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import{a as v}from"./2NW3IA4C.js";import"./7SZFENQP.js";import f from"./P5MTPM2I.js";import{a as C}from"./PUJPVTUS.js";import{a as g}from"./YMPJFJHK.js";import e from"./6M6VT4H6.js";import d from"./G44JDQZ4.js";import{g as _}from"./2E5U7E4Y.js";import"./W5TN3LOU.js";import a from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as x,P as u,R as b,U as y,a as w,b as c,x as D}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([I,{property:a,subclass:V},{watch:E,whenOnce:L},{forceInteractive:A},,,,M,,O])=>{var R=w`.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}:host{position:relative;overflow:hidden;width:300px}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg)}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,o=(e,i,s,n)=>{for(var r=n>1?void 0:n?H(i,s):i,l=e.length-1,d;l>=0;l--)(d=e[l])&&(r=(n?d(i,s,r):d(r))||r);return n&&r&&j(i,s,r),r},$=Symbol("interactiveHandle"),t=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.minMinDuration=0,this.maxMinDuration=h(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new I}initialize(){this.addHandles(E(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:e,tooltipVisible:i})=>{this.removeHandles($),e&&(e.interactive=i,i&&this.addHandles(A(e),$))},{sync:!0,initial:!0}))}get date(){return this.analysis.date}set date(e){this.analysis.date=e}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(e){this.analysis.discreteOptions.color=e}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(e){this.analysis.discreteOptions.interval=e}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(e){this.analysis.totalDurationOptions.color=e}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(e){this.analysis.totalDurationOptions.mode=e}get localDate(){return T(this.view)}get mode(){return this.analysis.mode}set mode(e){this.analysis.mode=e}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(e){this.analysis.startTimeOfDay=e}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(e){this.analysis.endTimeOfDay=e}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(e){this.analysis.minDurationOptions.color=e}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(e){this.analysis.minDurationOptions.minDuration=e}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(e){this.analysis.minDurationOptions.contextEnabled=e}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(e){this.analysis.minDurationOptions.contextOptions.color=e}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(e){this.analysis.minDurationOptions.contextOptions.interval=e}get utcOffset(){return this.analysis.utcOffset}set utcOffset(e){this.analysis.utcOffset=e}async getDurationAtScreen(e){return await(await L(()=>this.analysisView)).getDurationAtScreen(e)}};o([a()],t.prototype,"date",1);o([a()],t.prototype,"discreteColor",1);o([a()],t.prototype,"discreteInterval",1);o([a()],t.prototype,"totalDurationColor",1);o([a()],t.prototype,"totalDurationMode",1);o([a()],t.prototype,"localDate",1);o([a()],t.prototype,"mode",1);o([a()],t.prototype,"startTimeOfDay",1);o([a()],t.prototype,"endTimeOfDay",1);o([a()],t.prototype,"state",1);o([a()],t.prototype,"minDurationColor",1);o([a()],t.prototype,"minMinDuration",2);o([a()],t.prototype,"maxMinDuration",2);o([a()],t.prototype,"minDuration",1);o([a()],t.prototype,"minDurationContextEnabled",1);o([a()],t.prototype,"minDurationContextColor",1);o([a()],t.prototype,"minDurationContextInterval",1);o([a()],t.prototype,"utcOffset",1);o([a()],t.prototype,"hideShadowDurationTooltip",2);t=o([V("components.shadow-cast.ShadowCastViewModel")],t);var Z=M(t),f=class extends x{constructor(){super(...arguments),this.viewModel=Z(this),this.messages=C(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=_()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=R}get date(){return this.viewModel.date}set date(i){this.viewModel.date=i}async destroy(){await this.manager.destroy()}async getDurationAtScreen(i){return await this.viewModel.getDurationAtScreen(i)}render(){return c`<div aria-label=${this.messages.componentLabel??b} class=${u({root:!0,[g.widget]:!0,[g.widgetDisabled]:this.viewModel.state==="disabled",[g.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${p({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{messages:i,utcOffset:s,viewModel:n}=this,r=this.visualScale;return c`<section class="time-range-section">${v({level:this.headingLevel,children:i.timeRangeHeading})}${p({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${p({hidden:this.hideTimezone,children:c`<calcite-label .scale=${r}>${i.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${n.localDate} .scale=${r} .value=${`${h(s??0,"hours","minutes")}`} @calciteInputTimeZoneChange=${l=>{n.utcOffset=+l.target.value/60}}></calcite-input-time-zone></calcite-label>`})}${p({hidden:this.hideDatePicker,children:c`<calcite-label .scale=${r}>${i.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${r} .valueAsDate=${n.date} @calciteInputDatePickerChange=${l=>{let d=l.currentTarget.valueAsDate;n.date=Array.isArray(d)?d[0]:d}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{viewModel:i}=this;return c`<arcgis-time-of-day-slider mode=range .startTime=${k(this.startTimeOfDay)} .endTime=${k(this.endTimeOfDay)} .label=${this.messages?.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:s})=>{i.startTimeOfDay=h(s.startTime,"minutes","milliseconds"),i.endTimeOfDay=h(s.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:i,headingLevel:s,messages:n,viewModel:r}=this;if(!i)return;let{discreteOptions:l,totalDurationOptions:d,minDurationOptions:z}=i,m=(S,P)=>r.mode===S&&!P?void 0:"hidden-config";return c`<section class="visualization-options-section">${v({level:s,children:n.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(m("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${this.hideMinDurationContextOptions} .hideContextToggle=${this.hideMinDurationContextToggle} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${n} .options=${z} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(m("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${n} .options=${d} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(m("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${n} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{messages:i,viewModel:s}=this,{mode:n}=s;return c`<calcite-select .label=${i.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${r=>{let l=r.target.selectedOption?.value;s.mode=l??"min-duration"}}>${[{mode:"min-duration",label:i.minDuration?.optionLabel},{mode:"total-duration",label:i.totalDuration?.optionLabel},{mode:"discrete",label:i.discrete?.optionLabel}].map(({mode:r,label:l})=>c`<calcite-option .selected=${r===n} .value=${r} .label=${l}></calcite-option>`)}</calcite-select>`}};function k(e){return Math.round(h(e,"milliseconds","minutes"))}y("arcgis-shadow-cast",f);return f},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,d,e,f,i,j)
2
+ import{d as h,h as T}from"./IQPGSWSL.js";import j from"./JJ77KMIU.js";import{a as p}from"./IGSZABNU.js";import i from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import{a as v}from"./VOCS4OAY.js";import"./EZK2RFST.js";import f from"./FD7NCBBM.js";import{a as C}from"./7XUILQR4.js";import{a as g}from"./YMPJFJHK.js";import e from"./ZN2JKVQS.js";import d from"./TPKF6QNJ.js";import{g as _}from"./AFFIZ62T.js";import"./JH6VEOEP.js";import a from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as x,P as u,R as b,U as y,a as w,b as c,x as D}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([I,{property:a,subclass:V},{watch:E,whenOnce:L},{forceInteractive:A},,,,M,,O])=>{var R=w`.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}:host{position:relative;overflow:hidden;width:300px}.root{--section-internal-gap: var(--calcite-spacing-md);display:flex;flex-direction:column;gap:var(--calcite-spacing-lg)}:host([visual-scale="s"]) .root{--section-internal-gap: var(--calcite-spacing-sm)}:host([visual-scale="l"]) .root{--section-internal-gap: var(--calcite-spacing-lg)}.time-range-section arcgis-time-of-day-slider{margin-block-end:var(--section-internal-gap)}.time-range-section calcite-label:last-child,.visualization-options-section calcite-label:last-child{--calcite-label-margin-bottom: 0}.date-picker{flex-grow:1;display:block}.visualization-options{flex-direction:column;display:flex;gap:var(--section-internal-gap)}.hidden-config{display:none}`,j=Object.defineProperty,H=Object.getOwnPropertyDescriptor,o=(e,i,s,n)=>{for(var r=n>1?void 0:n?H(i,s):i,l=e.length-1,d;l>=0;l--)(d=e[l])&&(r=(n?d(i,s,r):d(r))||r);return n&&r&&j(i,s,r),r},$=Symbol("interactiveHandle"),t=class extends O{constructor(){super(...arguments),this.supportedViewType="3d",this.unsupportedErrorMessage="The Shadow Cast component is only supported in 3D views.",this.shouldForceInteractive=!1,this.minMinDuration=0,this.maxMinDuration=h(8,"hours","milliseconds"),this.hideShadowDurationTooltip=!1}constructAnalysis(){return new I}initialize(){this.addHandles(E(()=>({analysisView:this.analysisView,tooltipVisible:!this.hideShadowDurationTooltip}),({analysisView:e,tooltipVisible:i})=>{this.removeHandles($),e&&(e.interactive=i,i&&this.addHandles(A(e),$))},{sync:!0,initial:!0}))}get date(){return this.analysis.date}set date(e){this.analysis.date=e}get discreteColor(){return this.analysis.discreteOptions.color}set discreteColor(e){this.analysis.discreteOptions.color=e}get discreteInterval(){return this.analysis.discreteOptions.interval}set discreteInterval(e){this.analysis.discreteOptions.interval=e}get totalDurationColor(){return this.analysis.totalDurationOptions.color}set totalDurationColor(e){this.analysis.totalDurationOptions.color=e}get totalDurationMode(){return this.analysis.totalDurationOptions.mode}set totalDurationMode(e){this.analysis.totalDurationOptions.mode=e}get localDate(){return T(this.view)}get mode(){return this.analysis.mode}set mode(e){this.analysis.mode=e}get startTimeOfDay(){return this.analysis.startTimeOfDay}set startTimeOfDay(e){this.analysis.startTimeOfDay=e}get endTimeOfDay(){return this.analysis.endTimeOfDay}set endTimeOfDay(e){this.analysis.endTimeOfDay=e}get state(){return this.view?.ready&&this.analysisView?"ready":"disabled"}get minDurationColor(){return this.analysis.minDurationOptions.color}set minDurationColor(e){this.analysis.minDurationOptions.color=e}get minDuration(){return this.analysis.minDurationOptions.minDuration}set minDuration(e){this.analysis.minDurationOptions.minDuration=e}get minDurationContextEnabled(){return this.analysis.minDurationOptions.contextEnabled}set minDurationContextEnabled(e){this.analysis.minDurationOptions.contextEnabled=e}get minDurationContextColor(){return this.analysis.minDurationOptions.contextOptions.color}set minDurationContextColor(e){this.analysis.minDurationOptions.contextOptions.color=e}get minDurationContextInterval(){return this.analysis.minDurationOptions.contextOptions.interval}set minDurationContextInterval(e){this.analysis.minDurationOptions.contextOptions.interval=e}get utcOffset(){return this.analysis.utcOffset}set utcOffset(e){this.analysis.utcOffset=e}async getDurationAtScreen(e){return await(await L(()=>this.analysisView)).getDurationAtScreen(e)}};o([a()],t.prototype,"date",1);o([a()],t.prototype,"discreteColor",1);o([a()],t.prototype,"discreteInterval",1);o([a()],t.prototype,"totalDurationColor",1);o([a()],t.prototype,"totalDurationMode",1);o([a()],t.prototype,"localDate",1);o([a()],t.prototype,"mode",1);o([a()],t.prototype,"startTimeOfDay",1);o([a()],t.prototype,"endTimeOfDay",1);o([a()],t.prototype,"state",1);o([a()],t.prototype,"minDurationColor",1);o([a()],t.prototype,"minMinDuration",2);o([a()],t.prototype,"maxMinDuration",2);o([a()],t.prototype,"minDuration",1);o([a()],t.prototype,"minDurationContextEnabled",1);o([a()],t.prototype,"minDurationContextColor",1);o([a()],t.prototype,"minDurationContextInterval",1);o([a()],t.prototype,"utcOffset",1);o([a()],t.prototype,"hideShadowDurationTooltip",2);t=o([V("components.shadow-cast.ShadowCastViewModel")],t);var Z=M(t),f=class extends x{constructor(){super(...arguments),this.viewModel=Z(this),this.messages=C(),this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.visualScale="m",this.autoDestroyDisabled=!1,this.endTimeOfDay=this.viewModel.endTimeOfDay,this.headingLevel=4,this.hideTimeRangeSlider=!1,this.hideTimezone=!1,this.hideDatePicker=!1,this.hideShadowDurationTooltip=this.viewModel.hideShadowDurationTooltip,this.hideVisualization=this.viewModel.hideVisualization,this.hideVisualizationOptions=!1,this.hideDiscreteOptions=!1,this.hideDiscreteColorPicker=!1,this.hideDiscreteInterval=!1,this.hideTotalDurationOptions=!1,this.hideTotalDurationColorPicker=!1,this.hideTotalDurationModeSelect=!1,this.hideMinDurationOptions=!1,this.hideMinDurationColorPicker=!1,this.hideMinDurationSlider=!1,this.hideMinDurationContextOptions=!1,this.hideMinDurationContextToggle=!1,this.hideMinDurationContextColorPicker=!1,this.hideMinDurationContextInterval=!1,this.icon="measure-building-height-shadow",this.mode=this.viewModel.mode,this.startTimeOfDay=this.viewModel.startTimeOfDay,this.state=this.viewModel.state,this.utcOffset=this.viewModel.utcOffset,this.discreteColor=this.viewModel.discreteColor,this.discreteInterval=this.viewModel.discreteInterval,this.totalDurationColor=this.viewModel.totalDurationColor,this.totalDurationMode=this.viewModel.totalDurationMode,this.minDuration=this.viewModel.minDuration,this.minDurationColor=this.viewModel.minDurationColor,this.minMinDuration=this.viewModel.minMinDuration,this.maxMinDuration=this.viewModel.maxMinDuration,this.minDurationContextEnabled=this.viewModel.minDurationContextEnabled,this.minDurationContextColor=this.viewModel.minDurationContextColor,this.minDurationContextInterval=this.viewModel.minDurationContextInterval,this.arcgisPropertyChange=_()("state"),this.arcgisReady=D()}static{this.properties={analysis:0,view:0,visualScale:3,autoDestroyDisabled:5,date:1,endTimeOfDay:9,headingLevel:9,hideTimeRangeSlider:5,hideTimezone:5,hideDatePicker:5,hideShadowDurationTooltip:5,hideVisualization:5,hideVisualizationOptions:5,hideDiscreteOptions:5,hideDiscreteColorPicker:5,hideDiscreteInterval:5,hideTotalDurationOptions:5,hideTotalDurationColorPicker:5,hideTotalDurationModeSelect:5,hideMinDurationOptions:5,hideMinDurationColorPicker:5,hideMinDurationSlider:5,hideMinDurationContextOptions:5,hideMinDurationContextToggle:5,hideMinDurationContextColorPicker:5,hideMinDurationContextInterval:5,icon:3,label:1,mode:1,referenceElement:1,startTimeOfDay:9,state:32,utcOffset:9,discreteColor:0,discreteInterval:9,totalDurationColor:0,totalDurationMode:1,minDuration:9,minDurationColor:0,minMinDuration:9,maxMinDuration:9,minDurationContextEnabled:5,minDurationContextColor:0,minDurationContextInterval:9}}static{this.styles=R}get date(){return this.viewModel.date}set date(i){this.viewModel.date=i}async destroy(){await this.manager.destroy()}async getDurationAtScreen(i){return await this.viewModel.getDurationAtScreen(i)}render(){return c`<div aria-label=${this.messages.componentLabel??b} class=${u({root:!0,[g.widget]:!0,[g.widgetDisabled]:this.viewModel.state==="disabled",[g.panel]:!0})} role=presentation>${this._renderTimeRangeSection()}${p({hidden:this.hideVisualizationOptions,children:this._renderVisualizationOptionsSection()})}</div>`}_renderTimeRangeSection(){if(!this.analysis||this.hideTimeRangeSlider&&this.hideDatePicker)return;let{messages:i,utcOffset:s,viewModel:n}=this,r=this.visualScale;return c`<section class="time-range-section">${v({level:this.headingLevel,children:i.timeRangeHeading})}${p({hidden:this.hideTimeRangeSlider,children:this._renderTimeRange()})}${p({hidden:this.hideTimezone,children:c`<calcite-label .scale=${r}>${i.timezoneLabel}<calcite-input-time-zone mode=offset overlay-positioning=fixed .referenceDate=${n.localDate} .scale=${r} .value=${`${h(s??0,"hours","minutes")}`} @calciteInputTimeZoneChange=${l=>{n.utcOffset=+l.target.value/60}}></calcite-input-time-zone></calcite-label>`})}${p({hidden:this.hideDatePicker,children:c`<calcite-label .scale=${r}>${i.dateLabel}<calcite-input-date-picker overlay-positioning=fixed placement=bottom .scale=${r} .valueAsDate=${n.date} @calciteInputDatePickerChange=${l=>{let d=l.currentTarget.valueAsDate;n.date=Array.isArray(d)?d[0]:d}}></calcite-input-date-picker></calcite-label>`})}</section>`}_renderTimeRange(){let{viewModel:i}=this;return c`<arcgis-time-of-day-slider mode=range .startTime=${k(this.startTimeOfDay)} .endTime=${k(this.endTimeOfDay)} .label=${this.messages?.timeRangeSliderLabel} .visualScale=${this.visualScale} @arcgisTimeChange=${({currentTarget:s})=>{i.startTimeOfDay=h(s.startTime,"minutes","milliseconds"),i.endTimeOfDay=h(s.endTime,"minutes","milliseconds")}}></arcgis-time-of-day-slider>`}_renderVisualizationOptionsSection(){let{analysis:i,headingLevel:s,messages:n,viewModel:r}=this;if(!i)return;let{discreteOptions:l,totalDurationOptions:d,minDurationOptions:z}=i,m=(S,P)=>r.mode===S&&!P?void 0:"hidden-config";return c`<section class="visualization-options-section">${v({level:s,children:n.visualizationLabel})}<div class="visualization-options">${this._renderModeSelect()}<div class=${u(m("min-duration",this.hideMinDurationOptions))}><arcgis-shadow-cast-min-duration-config .hideColorPicker=${this.hideMinDurationColorPicker} .hideContextColorPicker=${this.hideMinDurationContextColorPicker} .hideContextInterval=${this.hideMinDurationContextInterval} .hideContextOptions=${this.hideMinDurationContextOptions} .hideContextToggle=${this.hideMinDurationContextToggle} .hideSlider=${this.hideMinDurationSlider} .minMinDuration=${this.minMinDuration} .maxMinDuration=${this.maxMinDuration} .messages=${n} .options=${z} .scale=${this.visualScale}></arcgis-shadow-cast-min-duration-config></div><div class=${u(m("total-duration",this.hideTotalDurationOptions))}><arcgis-shadow-cast-total-duration-config .hideColorPicker=${this.hideTotalDurationColorPicker} .hideModeSelect=${this.hideTotalDurationModeSelect} .messages=${n} .options=${d} .scale=${this.visualScale}></arcgis-shadow-cast-total-duration-config></div><div class=${u(m("discrete",this.hideDiscreteOptions))}><arcgis-shadow-cast-discrete-config .hideColorPicker=${this.hideDiscreteColorPicker} .hideInterval=${this.hideDiscreteInterval} .messages=${n} .options=${l} .scale=${this.visualScale}></arcgis-shadow-cast-discrete-config></div></div></section>`}_renderModeSelect(){let{messages:i,viewModel:s}=this,{mode:n}=s;return c`<calcite-select .label=${i.visualizationLabel??""} .scale=${this.visualScale} @calciteSelectChange=${r=>{let l=r.target.selectedOption?.value;s.mode=l??"min-duration"}}>${[{mode:"min-duration",label:i.minDuration?.optionLabel},{mode:"total-duration",label:i.totalDuration?.optionLabel},{mode:"discrete",label:i.discrete?.optionLabel}].map(({mode:r,label:l})=>c`<calcite-option .selected=${r===n} .value=${r} .label=${l}></calcite-option>`)}</calcite-select>`}};function k(e){return Math.round(h(e,"milliseconds","minutes"))}y("arcgis-shadow-cast",f);return f},"analysis/ShadowCastAnalysis","core/accessorSupport/decorators","core/reactiveUtils","applications/Components/analysisUtils",a,d,e,f,i,j)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{O as t,U as a,a as s,b as o}from"./R5KGKAEB.js";import"./3TTFCHAA.js";var l=s`:host{min-width:100px;flex:1 1 auto;display:flex;align-items:center;justify-content:center}.slider-progress-container{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress{--arcgis-internal-video-player-progress-width: 2px;appearance:none;position:absolute;top:calc(50% - var(--arcgis-internal-video-player-progress-width) / 2);left:var(--calcite-spacing-xs);border:none;background:var(--calcite-color-border-1);cursor:pointer;width:calc(100% - var(--calcite-spacing-xs) * 2);height:var(--arcgis-internal-video-player-progress-width)}.progress::-webkit-progress-bar{background-color:var(--calcite-color-border-3)}.progress::-webkit-progress-value{background-color:var(--calcite-color-border-input)}.progress::-moz-progress-bar{background-color:var(--calcite-color-border-3)}.slider{--calcite-slider-track-color: transparent;width:100%}`,i=class extends t{static{this.properties={viewModel:0,buffered:9,value:9}}static{this.styles=l}_onSliderInput({currentTarget:r}){if(typeof r.value=="number"){let e=r.value*this.viewModel.duration/100;this.viewModel.seekTo(e)}}render(){let{value:r,buffered:e}=this;return o`<div class="slider-progress-container" dir=ltr><progress class="progress" max=1 .value=${`${e}`}></progress><div class="slider"><calcite-slider max=100 min=0 .value=${r} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div></div>`}};a("arcgis-video-player-slider",i);export{i as VideoPlayerSlider};
2
+ import{O as t,U as a,a as s,b as o}from"./BVWBXM2C.js";import"./3TTFCHAA.js";var l=s`:host{min-width:100px;flex:1 1 auto;display:flex;align-items:center;justify-content:center}.slider-progress-container{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress{--arcgis-internal-video-player-progress-width: 2px;appearance:none;position:absolute;top:calc(50% - var(--arcgis-internal-video-player-progress-width) / 2);left:var(--calcite-spacing-xs);border:none;background:var(--calcite-color-border-1);cursor:pointer;width:calc(100% - var(--calcite-spacing-xs) * 2);height:var(--arcgis-internal-video-player-progress-width)}.progress::-webkit-progress-bar{background-color:var(--calcite-color-border-3)}.progress::-webkit-progress-value{background-color:var(--calcite-color-border-input)}.progress::-moz-progress-bar{background-color:var(--calcite-color-border-3)}.slider{--calcite-slider-track-color: transparent;width:100%}`,i=class extends t{static{this.properties={viewModel:0,buffered:9,value:9}}static{this.styles=l}_onSliderInput({currentTarget:r}){if(typeof r.value=="number"){let e=r.value*this.viewModel.duration/100;this.viewModel.seekTo(e)}}render(){let{value:r,buffered:e}=this;return o`<div class="slider-progress-container" dir=ltr><progress class="progress" max=1 .value=${`${e}`}></progress><div class="slider"><calcite-slider max=100 min=0 .value=${r} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div></div>`}};a("arcgis-video-player-slider",i);export{i as VideoPlayerSlider};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./AH4HKYPE.js";import d from"./6M6VT4H6.js";import c from"./G44JDQZ4.js";import{g as a}from"./2E5U7E4Y.js";import"./W5TN3LOU.js";import b from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as o,U as l,a as s,x as t}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([n,,,{a:i},d])=>{var _=s`.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}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}.esri-histogram{direction:ltr;width:100%;height:100%}.esri-histogram__content{width:100%;height:100%}.esri-histogram__svg{width:100%;height:100%;display:inline-block;overflow:hidden}.esri-histogram__data-line{stroke:var(--calcite-color-text-3);stroke-width:1px;shape-rendering:crispEdges}.esri-histogram__label{stroke:var(--calcite-color-text-1);stroke-width:0;direction:ltr;unicode-bidi:plaintext;font-size:var(--calcite-font-size-sm)}.esri-histogram__average-data-line{stroke:var(--calcite-color-text-3)}.esri-histogram__average-symbol{font-family:Georgia\\, serif,sans-serif;font-style:italic}.esri-expand__panel-content .esri-histogram{width:100%}:dir(rtl) .esri-histogram{direction:rtl}:dir(rtl) .esri-histogram .esri-histogram__average-label{direction:rtl;unicode-bidi:plaintext}:host{min-width:260px}.esri-classed-color-slider{direction:ltr}.esri-classed-color-slider .esri-slider{z-index:1;font-size:var(--calcite-font-size-sm);position:relative}.esri-classed-color-slider .esri-slider .esri-slider__content{flex-direction:row;height:240px;margin:0 auto 0 40%}.esri-classed-color-slider .esri-slider .esri-slider__track{background-color:var(--calcite-color-transparent);flex:none;display:flex}.esri-classed-color-slider .esri-slider .esri-slider__anchor{border-top:1px solid var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-text-3);width:30px}.esri-classed-color-slider .esri-slider .esri-slider__anchor:hover .esri-slider__label,.esri-classed-color-slider .esri-slider .esri-slider__anchor:focus .esri-slider__label{text-decoration:underline}.esri-classed-color-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb,.esri-classed-color-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb{background-color:var(--calcite-color-inverse-press);border:none;transform:none}.esri-classed-color-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb:after,.esri-classed-color-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb:after{border-left-color:var(--calcite-color-inverse-press)}.esri-classed-color-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb:before,.esri-classed-color-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb:before{background-color:var(--calcite-color-brand);transform:translate(-1.5px)}.esri-classed-color-slider .esri-slider .esri-slider__thumb{background-color:var(--calcite-color-text-3);border:none;border-radius:0;width:6px;height:12px;top:-6px;left:-12px}.esri-classed-color-slider .esri-slider .esri-slider__thumb:before{content:"";background-color:var(--calcite-color-text-3);width:3px;height:12px;transition:transform .125s ease-in-out,background-color .125s ease-in-out;position:absolute;top:0;left:-1.5px}.esri-classed-color-slider .esri-slider .esri-slider__thumb:after{content:"";border-top:6px solid var(--calcite-color-transparent);border-bottom:6px solid var(--calcite-color-transparent);border-left:6px solid var(--calcite-color-text-3);width:0;height:0;position:absolute;top:0;left:6px}.esri-classed-color-slider .esri-slider .esri-slider__label{text-align:right;min-width:50px;line-height:20px;left:auto;right:50px}.esri-classed-color-slider .esri-slider .esri-slider__label:hover{background-color:var(--calcite-color-foreground-2)}.esri-classed-color-slider .esri-slider .esri-slider__segment:hover{cursor:default}.esri-classed-color-slider .esri-slider .esri-slider__range-input{text-align:center;width:50%;margin:auto}.esri-classed-color-slider .esri-slider .esri-slider__label-input{text-align:right;width:70px}.esri-classed-color-slider .esri-slider .esri-slider__max,.esri-classed-color-slider .esri-slider .esri-slider__min{z-index:0;flex:none;width:auto;margin:9px auto;padding:9px 12px;position:relative}.esri-classed-color-slider .esri-slider .esri-slider__max:before,.esri-classed-color-slider .esri-slider .esri-slider__min:before{z-index:-1;content:"";width:100%;height:100%;position:absolute;top:0;left:0}.esri-classed-color-slider .esri-slider .esri-slider__max.esri-slider__range--active,.esri-classed-color-slider .esri-slider .esri-slider__min.esri-slider__range--active{background-color:var(--calcite-color-foreground-1)}.esri-classed-color-slider .esri-slider .esri-slider__max .esri-slider__range-input,.esri-classed-color-slider .esri-slider .esri-slider__min .esri-slider__range-input{margin:0 auto}.esri-classed-color-slider .esri-slider .esri-slider__extra-content{height:100%;display:flex}.esri-classed-color-slider .esri-slider .esri-histogram__svg{overflow:visible}.esri-classed-color-slider .esri-slider .esri-histogram__label{fill:var(--calcite-color-text-2);stroke-width:2px}.esri-classed-color-slider .esri-slider .esri-histogram__average-line,.esri-classed-color-slider .esri-slider .esri-histogram__label{paint-order:stroke;stroke:var(--calcite-color-border-3)}.esri-classed-color-slider .esri-slider .zoom-cap--max{position:absolute;top:0}.esri-classed-color-slider .esri-slider .zoom-cap--min{position:absolute;bottom:0}.esri-classed-color-slider .esri-slider .zoom-cap{stroke-width:0;width:30px;height:11px}.esri-classed-color-slider .esri-slider .zoom-cap:hover{cursor:pointer}.esri-classed-color-slider .esri-slider .zoom-cap:hover .zoom-cap--mask{fill:var(--calcite-color-foreground-1)}.esri-classed-color-slider .esri-slider .zoom-cap:hover .zoom-cap--line{fill:var(--calcite-color-brand)}.esri-classed-color-slider .esri-slider .zoom-cap:hover .zoom-cap--underline,.esri-classed-color-slider .esri-slider .zoom-cap .zoom-cap--mask,.esri-classed-color-slider .esri-slider .zoom-cap .zoom-cap--line{fill:var(--calcite-color-foreground-1)}.esri-classed-color-slider .esri-slider .zoom-cap .zoom-cap--underline{fill:var(--calcite-color-inverse)}.esri-classed-color-slider__ramp{width:30px;height:100%;display:flex;position:relative}.esri-classed-color-slider__ramp svg{stroke:var(--calcite-color-text-3);stroke-width:1px;width:100%;height:100%;position:absolute;left:0}.esri-classed-color-slider__ramp svg rect{width:100%;height:100%}.esri-classed-color-slider__ramp svg path{stroke-width:.5px}.esri-classed-color-slider__histogram-container{flex:1 1 0;width:120px;height:100%;display:flex}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider .esri-slider__content{margin:0 auto 0 35%}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider .esri-slider__track{background-color:var(--calcite-color-transparent);width:12px}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider__anchor--active .esri-slider__label{text-decoration:underline}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb{background-color:var(--calcite-color-inverse-press);border:none;transform:none}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb:after{border-left-color:var(--calcite-color-inverse-press)}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb:before{background-color:var(--calcite-color-brand);transform:translate(-1.5px)}`,h=d(n),r=class extends o{constructor(){super(...arguments),this.widget=h(this),this.viewModel=this.widget.viewModel,this.label=this.widget.label,this.autoDestroyDisabled=!1,this.breaks=this.widget.breaks,this.histogramConfig=this.widget.histogramConfig,this.icon=this.widget.icon,this.inputFormatFunction=this.widget.inputFormatFunction,this.inputParseFunction=this.widget.inputParseFunction,this.labelFormatFunction=this.widget.labelFormatFunction,this.max=this.widget.max,this.min=this.widget.min,this.precision=this.widget.precision,this.state=this.widget.state,this.arcgisPropertyChange=a()("breaks","histogramConfig","max","min","precision","state"),this.arcgisReady=t(),this.arcgisThumbChange=i(()=>this.widget,"thumb-change"),this.arcgisThumbDrag=i(()=>this.widget,"thumb-drag")}static{this.properties={label:16,autoDestroyDisabled:5,breaks:0,histogramConfig:0,icon:1,inputFormatFunction:0,inputParseFunction:0,labelFormatFunction:0,max:9,min:9,precision:9,referenceElement:1,state:32}}static{this.styles=_}async destroy(){await this.manager.destroy()}async updateClassBreakInfos(e){return this.widget.updateClassBreakInfos(e)}async updateFromRendererResult(e,c){return this.widget.updateFromRendererResult(e,c)}};l("arcgis-slider-classed-color-legacy",r);return r},"widgets/smartMapping/ClassedColorSlider",b,c,d,e)
2
+ import e from"./OWUZH35R.js";import d from"./ZN2JKVQS.js";import c from"./TPKF6QNJ.js";import{g as a}from"./AFFIZ62T.js";import"./JH6VEOEP.js";import b from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as o,U as l,a as s,x as t}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([n,,,{a:i},d])=>{var _=s`.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}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}.esri-histogram{direction:ltr;width:100%;height:100%}.esri-histogram__content{width:100%;height:100%}.esri-histogram__svg{width:100%;height:100%;display:inline-block;overflow:hidden}.esri-histogram__data-line{stroke:var(--calcite-color-text-3);stroke-width:1px;shape-rendering:crispEdges}.esri-histogram__label{stroke:var(--calcite-color-text-1);stroke-width:0;direction:ltr;unicode-bidi:plaintext;font-size:var(--calcite-font-size-sm)}.esri-histogram__average-data-line{stroke:var(--calcite-color-text-3)}.esri-histogram__average-symbol{font-family:Georgia\\, serif,sans-serif;font-style:italic}.esri-expand__panel-content .esri-histogram{width:100%}:dir(rtl) .esri-histogram{direction:rtl}:dir(rtl) .esri-histogram .esri-histogram__average-label{direction:rtl;unicode-bidi:plaintext}:host{min-width:260px}.esri-classed-color-slider{direction:ltr}.esri-classed-color-slider .esri-slider{z-index:1;font-size:var(--calcite-font-size-sm);position:relative}.esri-classed-color-slider .esri-slider .esri-slider__content{flex-direction:row;height:240px;margin:0 auto 0 40%}.esri-classed-color-slider .esri-slider .esri-slider__track{background-color:var(--calcite-color-transparent);flex:none;display:flex}.esri-classed-color-slider .esri-slider .esri-slider__anchor{border-top:1px solid var(--calcite-color-foreground-1);border-bottom:1px solid var(--calcite-color-text-3);width:30px}.esri-classed-color-slider .esri-slider .esri-slider__anchor:hover .esri-slider__label,.esri-classed-color-slider .esri-slider .esri-slider__anchor:focus .esri-slider__label{text-decoration:underline}.esri-classed-color-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb,.esri-classed-color-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb{background-color:var(--calcite-color-inverse-press);border:none;transform:none}.esri-classed-color-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb:after,.esri-classed-color-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb:after{border-left-color:var(--calcite-color-inverse-press)}.esri-classed-color-slider .esri-slider .esri-slider__anchor:hover .esri-slider__thumb:before,.esri-classed-color-slider .esri-slider .esri-slider__anchor:focus .esri-slider__thumb:before{background-color:var(--calcite-color-brand);transform:translate(-1.5px)}.esri-classed-color-slider .esri-slider .esri-slider__thumb{background-color:var(--calcite-color-text-3);border:none;border-radius:0;width:6px;height:12px;top:-6px;left:-12px}.esri-classed-color-slider .esri-slider .esri-slider__thumb:before{content:"";background-color:var(--calcite-color-text-3);width:3px;height:12px;transition:transform .125s ease-in-out,background-color .125s ease-in-out;position:absolute;top:0;left:-1.5px}.esri-classed-color-slider .esri-slider .esri-slider__thumb:after{content:"";border-top:6px solid var(--calcite-color-transparent);border-bottom:6px solid var(--calcite-color-transparent);border-left:6px solid var(--calcite-color-text-3);width:0;height:0;position:absolute;top:0;left:6px}.esri-classed-color-slider .esri-slider .esri-slider__label{text-align:right;min-width:50px;line-height:20px;left:auto;right:50px}.esri-classed-color-slider .esri-slider .esri-slider__label:hover{background-color:var(--calcite-color-foreground-2)}.esri-classed-color-slider .esri-slider .esri-slider__segment:hover{cursor:default}.esri-classed-color-slider .esri-slider .esri-slider__range-input{text-align:center;width:50%;margin:auto}.esri-classed-color-slider .esri-slider .esri-slider__label-input{text-align:right;width:70px}.esri-classed-color-slider .esri-slider .esri-slider__max,.esri-classed-color-slider .esri-slider .esri-slider__min{z-index:0;flex:none;width:auto;margin:9px auto;padding:9px 12px;position:relative}.esri-classed-color-slider .esri-slider .esri-slider__max:before,.esri-classed-color-slider .esri-slider .esri-slider__min:before{z-index:-1;content:"";width:100%;height:100%;position:absolute;top:0;left:0}.esri-classed-color-slider .esri-slider .esri-slider__max.esri-slider__range--active,.esri-classed-color-slider .esri-slider .esri-slider__min.esri-slider__range--active{background-color:var(--calcite-color-foreground-1)}.esri-classed-color-slider .esri-slider .esri-slider__max .esri-slider__range-input,.esri-classed-color-slider .esri-slider .esri-slider__min .esri-slider__range-input{margin:0 auto}.esri-classed-color-slider .esri-slider .esri-slider__extra-content{height:100%;display:flex}.esri-classed-color-slider .esri-slider .esri-histogram__svg{overflow:visible}.esri-classed-color-slider .esri-slider .esri-histogram__label{fill:var(--calcite-color-text-2);stroke-width:2px}.esri-classed-color-slider .esri-slider .esri-histogram__average-line,.esri-classed-color-slider .esri-slider .esri-histogram__label{paint-order:stroke;stroke:var(--calcite-color-border-3)}.esri-classed-color-slider .esri-slider .zoom-cap--max{position:absolute;top:0}.esri-classed-color-slider .esri-slider .zoom-cap--min{position:absolute;bottom:0}.esri-classed-color-slider .esri-slider .zoom-cap{stroke-width:0;width:30px;height:11px}.esri-classed-color-slider .esri-slider .zoom-cap:hover{cursor:pointer}.esri-classed-color-slider .esri-slider .zoom-cap:hover .zoom-cap--mask{fill:var(--calcite-color-foreground-1)}.esri-classed-color-slider .esri-slider .zoom-cap:hover .zoom-cap--line{fill:var(--calcite-color-brand)}.esri-classed-color-slider .esri-slider .zoom-cap:hover .zoom-cap--underline,.esri-classed-color-slider .esri-slider .zoom-cap .zoom-cap--mask,.esri-classed-color-slider .esri-slider .zoom-cap .zoom-cap--line{fill:var(--calcite-color-foreground-1)}.esri-classed-color-slider .esri-slider .zoom-cap .zoom-cap--underline{fill:var(--calcite-color-inverse)}.esri-classed-color-slider__ramp{width:30px;height:100%;display:flex;position:relative}.esri-classed-color-slider__ramp svg{stroke:var(--calcite-color-text-3);stroke-width:1px;width:100%;height:100%;position:absolute;left:0}.esri-classed-color-slider__ramp svg rect{width:100%;height:100%}.esri-classed-color-slider__ramp svg path{stroke-width:.5px}.esri-classed-color-slider__histogram-container{flex:1 1 0;width:120px;height:100%;display:flex}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider .esri-slider__content{margin:0 auto 0 35%}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider .esri-slider__track{background-color:var(--calcite-color-transparent);width:12px}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider__anchor--active .esri-slider__label{text-decoration:underline}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb{background-color:var(--calcite-color-inverse-press);border:none;transform:none}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb:after{border-left-color:var(--calcite-color-inverse-press)}.esri-classed-color-slider.esri-classed-color-slider--interactive-track .esri-slider__anchor--active .esri-slider__thumb:before{background-color:var(--calcite-color-brand);transform:translate(-1.5px)}`,h=d(n),r=class extends o{constructor(){super(...arguments),this.widget=h(this),this.viewModel=this.widget.viewModel,this.label=this.widget.label,this.autoDestroyDisabled=!1,this.breaks=this.widget.breaks,this.histogramConfig=this.widget.histogramConfig,this.icon=this.widget.icon,this.inputFormatFunction=this.widget.inputFormatFunction,this.inputParseFunction=this.widget.inputParseFunction,this.labelFormatFunction=this.widget.labelFormatFunction,this.max=this.widget.max,this.min=this.widget.min,this.precision=this.widget.precision,this.state=this.widget.state,this.arcgisPropertyChange=a()("breaks","histogramConfig","max","min","precision","state"),this.arcgisReady=t(),this.arcgisThumbChange=i(()=>this.widget,"thumb-change"),this.arcgisThumbDrag=i(()=>this.widget,"thumb-drag")}static{this.properties={label:16,autoDestroyDisabled:5,breaks:0,histogramConfig:0,icon:1,inputFormatFunction:0,inputParseFunction:0,labelFormatFunction:0,max:9,min:9,precision:9,referenceElement:1,state:32}}static{this.styles=_}async destroy(){await this.manager.destroy()}async updateClassBreakInfos(e){return this.widget.updateClassBreakInfos(e)}async updateFromRendererResult(e,c){return this.widget.updateFromRendererResult(e,c)}};l("arcgis-slider-classed-color-legacy",r);return r},"widgets/smartMapping/ClassedColorSlider",b,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./TZUYWT6D.js";import{Q as v,S as b,b as u,c as g}from"./R5KGKAEB.js";export default $arcgis.t(([{renderColorRampPreviewHTML:R},{e:p,g:w,h:x}])=>{var E=10,y=20,h=10,z=20;function m(s){return typeof s=="number"}function C(s="vertical"){let e="stroke:rgb(200, 200, 200);stroke-width:1";return s==="vertical"?u`<svg height=4 width=10>${g`<line style=${v(e)} x1=0 x2=10 y1=2 y2=2 />`}</svg>`:u`<svg height=10 width=10>${g`<line style=${v(e)} x1=5 x2=5 y1=0 y2=10 />`}</svg>`}function S(s,e="vertical"){let n={height:`${y}px`,opacity:s?.toString()};return u`<div class="univariate-above-below-symbol" style=${v(n)}>${C(e)}</div>`}function $(s,e,n,o="vertical",i){s.infos.forEach((t,l)=>{if(i&&l===2){t.preview=b(S(n,o));return}else{let r=(m(t.size)?p(t.size):0)+(o==="horizontal"?z:h),c=t.preview,f=c?.tagName.toLowerCase()==="div",a=f?c:document.createElement("div");a.className="univariate-above-below-symbol",o==="horizontal"?a.style.width=`${r}px`:a.style.height=`${r}px`,!f&&c&&a.appendChild(c),x(a,w(e,t.label)),t.preview=a}})}function P(s,e="classic"){let n=s.infos,o=n.at(0),i=n.at(-1),t=m(o.size)?p(o.size):0,l=m(i.size)?p(i.size):0;return e==="classic"?(t+h)/2:(t-l)/2}function T(s,e){if(!s)return null;let n=s.infos.map(i=>i.color),o=R(e.type==="full"?n:e.type==="above"?n.slice(0,3):n.slice(2,5),{width:e.width??void 0,height:e.height??void 0,align:e.rampAlignment,cssEffectFilter:e.cssEffectFilter,ariaLabel:e.ariaLabel??void 0});return o.className="color-ramp",e.opacity!=null&&(o.style.opacity=e.opacity.toString()),o}function k(s,e,n,o="vertical"){let i=0,t=s.infos,l=Math.floor(t.length/2),r=e==="full"||e==="above"?0:l,c=e==="full"||e==="below"?t.length-1:l;for(let f=r;f<=c;f++)if(n&&f===l)i+=o==="horizontal"?E:y;else{let a=t[f].size,d=(m(a)?p(a):0)+(o==="horizontal"?z:h);i+=d}return Math.round(i)}function j(s,e,n,o="vertical"){let i=k(s,e,n,o),t=s.infos,l=Math.floor(t.length/2),r=e==="full"||e==="above"?0:l,c=e==="full"||e==="below"?t.length-1:l,f=m(t[r].size)?t[r].size:0,a=m(t[c].size)?t[c].size:0,d=e==="full"?f+a:e==="above"?f:a,L=n?o==="vertical"?y:E:0,M=o==="vertical"?h*(e==="full"?2:1):z*(e==="full"?2:1);return Math.round(i-(p(d)/2+L/2+M/2))}function q(s,e,n,o="vertical"){let i=s.infos,t=i.find(({type:r})=>r==="size-ramp"),l=i.find(({type:r})=>r==="color-ramp");return t&&(t={...t},t.infos=[...t.infos],$(t,e,n,o,!0)),l&&(l={...l},l.infos=[...l.infos]),o==="horizontal"&&(t?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:t,colorRampElement:l}}function B(s,e,n="vertical"){let o=s.infos,i=o.find(({type:l})=>l==="size-ramp"),t=o.find(({type:l})=>l==="color-ramp");return i&&(i={...i},i.infos=[...i.infos],$(i,e,null,n,!1)),t&&(t={...t},t.infos=[...t.infos]),n==="horizontal"&&(i?.infos.reverse(),t?.infos.reverse()),{sizeRampElement:i,colorRampElement:t}}var D={marginLeft:"3px"},H={display:"table-cell",verticalAlign:"middle"},W={display:"flex",alignItems:"flex-start"};return{a:P,b:T,c:k,d:j,e:q,f:B,g:D,h:H,i:W}},"symbols/support/symbolUtils",a)
2
+ import a from"./TZUYWT6D.js";import{Q as v,S as b,b as u,c as g}from"./BVWBXM2C.js";export default $arcgis.t(([{renderColorRampPreviewHTML:R},{e:p,g:w,h:x}])=>{var E=10,y=20,h=10,z=20;function m(s){return typeof s=="number"}function C(s="vertical"){let e="stroke:rgb(200, 200, 200);stroke-width:1";return s==="vertical"?u`<svg height=4 width=10>${g`<line style=${v(e)} x1=0 x2=10 y1=2 y2=2 />`}</svg>`:u`<svg height=10 width=10>${g`<line style=${v(e)} x1=5 x2=5 y1=0 y2=10 />`}</svg>`}function S(s,e="vertical"){let n={height:`${y}px`,opacity:s?.toString()};return u`<div class="univariate-above-below-symbol" style=${v(n)}>${C(e)}</div>`}function $(s,e,n,o="vertical",i){s.infos.forEach((t,l)=>{if(i&&l===2){t.preview=b(S(n,o));return}else{let r=(m(t.size)?p(t.size):0)+(o==="horizontal"?z:h),c=t.preview,f=c?.tagName.toLowerCase()==="div",a=f?c:document.createElement("div");a.className="univariate-above-below-symbol",o==="horizontal"?a.style.width=`${r}px`:a.style.height=`${r}px`,!f&&c&&a.appendChild(c),x(a,w(e,t.label)),t.preview=a}})}function P(s,e="classic"){let n=s.infos,o=n.at(0),i=n.at(-1),t=m(o.size)?p(o.size):0,l=m(i.size)?p(i.size):0;return e==="classic"?(t+h)/2:(t-l)/2}function T(s,e){if(!s)return null;let n=s.infos.map(i=>i.color),o=R(e.type==="full"?n:e.type==="above"?n.slice(0,3):n.slice(2,5),{width:e.width??void 0,height:e.height??void 0,align:e.rampAlignment,cssEffectFilter:e.cssEffectFilter,ariaLabel:e.ariaLabel??void 0});return o.className="color-ramp",e.opacity!=null&&(o.style.opacity=e.opacity.toString()),o}function k(s,e,n,o="vertical"){let i=0,t=s.infos,l=Math.floor(t.length/2),r=e==="full"||e==="above"?0:l,c=e==="full"||e==="below"?t.length-1:l;for(let f=r;f<=c;f++)if(n&&f===l)i+=o==="horizontal"?E:y;else{let a=t[f].size,d=(m(a)?p(a):0)+(o==="horizontal"?z:h);i+=d}return Math.round(i)}function j(s,e,n,o="vertical"){let i=k(s,e,n,o),t=s.infos,l=Math.floor(t.length/2),r=e==="full"||e==="above"?0:l,c=e==="full"||e==="below"?t.length-1:l,f=m(t[r].size)?t[r].size:0,a=m(t[c].size)?t[c].size:0,d=e==="full"?f+a:e==="above"?f:a,L=n?o==="vertical"?y:E:0,M=o==="vertical"?h*(e==="full"?2:1):z*(e==="full"?2:1);return Math.round(i-(p(d)/2+L/2+M/2))}function q(s,e,n,o="vertical"){let i=s.infos,t=i.find(({type:r})=>r==="size-ramp"),l=i.find(({type:r})=>r==="color-ramp");return t&&(t={...t},t.infos=[...t.infos],$(t,e,n,o,!0)),l&&(l={...l},l.infos=[...l.infos]),o==="horizontal"&&(t?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:t,colorRampElement:l}}function B(s,e,n="vertical"){let o=s.infos,i=o.find(({type:l})=>l==="size-ramp"),t=o.find(({type:l})=>l==="color-ramp");return i&&(i={...i},i.infos=[...i.infos],$(i,e,null,n,!1)),t&&(t={...t},t.infos=[...t.infos]),n==="horizontal"&&(i?.infos.reverse(),t?.infos.reverse()),{sizeRampElement:i,colorRampElement:t}}var D={marginLeft:"3px"},H={display:"table-cell",verticalAlign:"middle"},W={display:"flex",alignItems:"flex-start"};return{a:P,b:T,c:k,d:j,e:q,f:B,g:D,h:H,i:W}},"symbols/support/symbolUtils",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{O as p,P as d,U as I,b as t,g as $,x as n}from"./R5KGKAEB.js";import"./3TTFCHAA.js";var g=class extends p{constructor(){super(...arguments),this._showInvalidVersionNotice=!0,this.arcgisCreateVersionList=n(),this.arcgisFlowItemBack=n(),this.arcgisFlowItemClose=n(),this.arcgisGetVersions=n(),this.arcgisManageVersion=n(),this.arcgisNewVersion=n()}static{this.properties={_showInvalidVersionNotice:16,serviceItemElementProps:0}}disconnectedCallback(){super.disconnectedCallback(),this.versionListContainer?.remove()}render(){let{serviceItemElementProps:{allowEditing:b,closable:V,currentUser:f,executionError:u,currentVersionIdentifier:a,flowElement:w,heading:N,isInitialVersionInvalid:x,isVersionAdministrator:C,isVersioningApiAvailable:E,mode:A,pageSize:L,serviceName:i,serviceUrl:c,state:U,strings:o,versionInfos:r}}=this,{_versionList:l}=this,k=x.get(c)&&this._showInvalidVersionNotice?t`<calcite-notice class=${d(this._showInvalidVersionNotice?"invalid-initial-version-notice":"")} closable kind=warning open scale=s width=full icon @calciteNoticeClose=${()=>this._showInvalidVersionNotice=!1}><div slot=title>${o.headers.invalidInitialVersion}</div><div slot=message>${o.loadErrors.invalidInitialVersion}</div></calcite-notice>`:void 0,M=t`<calcite-combobox clear-disabled .ariaLabel=${`combobox-${i}`} .label=${`combobox-${i}`} max-items=5 overlay-positioning=fixed selection-mode=single-persist @calciteComboboxChange=${s=>{let m=s.target,e=r.find(S=>S.versionIdentifier.guid===m.value);this.arcgisManageVersion.emit({actionType:"changeVersion",serviceUrl:c,versionInfo:e})}}>${r?r.map(s=>t`<calcite-combobox-item class=${d(A==="dialog"?"":"calcite-combobox-item")} .heading=${s.versionIdentifier.name} .value=${s.versionIdentifier.guid} .selected=${a.guid===s.versionIdentifier.guid&&a.name===s.versionIdentifier.name}></calcite-combobox-item>`):void 0}</calcite-combobox>`,v,h;return b&&(v=t`<calcite-action icon=list .id=${`action-manage-versions-${i}`} .label=${`action-manage-versions-${i}`} scale=s slot=actions-end .text=${`action-manage-versions-${i}`} @click=${async()=>{let s={closable:V,currentUser:f,currentVersionIdentifier:a,executionError:u,heading:N,isVersionAdministrator:C,isVersioningApiAvailable:E,pageSize:L,serviceName:i,serviceUrl:c,state:U,strings:o,versionInfos:r};this.versionListContainer=document.createElement("div");let m=$(t`<arcgis-version-management-version-list .versionListElementProps=${s} selected show-back-button @arcgisFlowItemBack=${e=>{e.preventDefault(),this.arcgisFlowItemBack.emit()}} @arcgisFlowItemClose=${()=>this.arcgisFlowItemClose.emit()} @arcgisGetVersions=${e=>this.arcgisGetVersions.emit({serviceUrl:e.detail.serviceUrl})} @arcgisManageVersion=${e=>this.arcgisManageVersion.emit(e.detail)} @arcgisNewVersion=${e=>this.arcgisNewVersion.emit({serviceUrl:e.detail.serviceUrl})}></arcgis-version-management-version-list>`,this.versionListContainer);l=Array.from(m.parentNode.childNodes).find(e=>e.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"),w?.append(l),this.arcgisCreateVersionList.emit(l)}}></calcite-action>`,h=t`<calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-manage-versions-${i}`}><span>${o.headers.manageVersions}</span></calcite-tooltip>`),t`<calcite-block expanded .heading=${i}>${k}${M}${v}${h}</calcite-block>`}};I("arcgis-version-management-service-item",g);export{g as ArcgisVersionManagementServiceItem};
2
+ import{O as p,P as d,U as I,b as t,g as $,x as n}from"./BVWBXM2C.js";import"./3TTFCHAA.js";var g=class extends p{constructor(){super(...arguments),this._showInvalidVersionNotice=!0,this.arcgisCreateVersionList=n(),this.arcgisFlowItemBack=n(),this.arcgisFlowItemClose=n(),this.arcgisGetVersions=n(),this.arcgisManageVersion=n(),this.arcgisNewVersion=n()}static{this.properties={_showInvalidVersionNotice:16,serviceItemElementProps:0}}disconnectedCallback(){super.disconnectedCallback(),this.versionListContainer?.remove()}render(){let{serviceItemElementProps:{allowEditing:b,closable:V,currentUser:f,executionError:u,currentVersionIdentifier:a,flowElement:w,heading:N,isInitialVersionInvalid:x,isVersionAdministrator:C,isVersioningApiAvailable:E,mode:A,pageSize:L,serviceName:i,serviceUrl:c,state:U,strings:o,versionInfos:r}}=this,{_versionList:l}=this,k=x.get(c)&&this._showInvalidVersionNotice?t`<calcite-notice class=${d(this._showInvalidVersionNotice?"invalid-initial-version-notice":"")} closable kind=warning open scale=s width=full icon @calciteNoticeClose=${()=>this._showInvalidVersionNotice=!1}><div slot=title>${o.headers.invalidInitialVersion}</div><div slot=message>${o.loadErrors.invalidInitialVersion}</div></calcite-notice>`:void 0,M=t`<calcite-combobox clear-disabled .ariaLabel=${`combobox-${i}`} .label=${`combobox-${i}`} max-items=5 overlay-positioning=fixed selection-mode=single-persist @calciteComboboxChange=${s=>{let m=s.target,e=r.find(S=>S.versionIdentifier.guid===m.value);this.arcgisManageVersion.emit({actionType:"changeVersion",serviceUrl:c,versionInfo:e})}}>${r?r.map(s=>t`<calcite-combobox-item class=${d(A==="dialog"?"":"calcite-combobox-item")} .heading=${s.versionIdentifier.name} .value=${s.versionIdentifier.guid} .selected=${a.guid===s.versionIdentifier.guid&&a.name===s.versionIdentifier.name}></calcite-combobox-item>`):void 0}</calcite-combobox>`,v,h;return b&&(v=t`<calcite-action icon=list .id=${`action-manage-versions-${i}`} .label=${`action-manage-versions-${i}`} scale=s slot=actions-end .text=${`action-manage-versions-${i}`} @click=${async()=>{let s={closable:V,currentUser:f,currentVersionIdentifier:a,executionError:u,heading:N,isVersionAdministrator:C,isVersioningApiAvailable:E,pageSize:L,serviceName:i,serviceUrl:c,state:U,strings:o,versionInfos:r};this.versionListContainer=document.createElement("div");let m=$(t`<arcgis-version-management-version-list .versionListElementProps=${s} selected show-back-button @arcgisFlowItemBack=${e=>{e.preventDefault(),this.arcgisFlowItemBack.emit()}} @arcgisFlowItemClose=${()=>this.arcgisFlowItemClose.emit()} @arcgisGetVersions=${e=>this.arcgisGetVersions.emit({serviceUrl:e.detail.serviceUrl})} @arcgisManageVersion=${e=>this.arcgisManageVersion.emit(e.detail)} @arcgisNewVersion=${e=>this.arcgisNewVersion.emit({serviceUrl:e.detail.serviceUrl})}></arcgis-version-management-version-list>`,this.versionListContainer);l=Array.from(m.parentNode.childNodes).find(e=>e.nodeName.toUpperCase()==="ARCGIS-VERSION-MANAGEMENT-VERSION-LIST"),w?.append(l),this.arcgisCreateVersionList.emit(l)}}></calcite-action>`,h=t`<calcite-tooltip overlay-positioning=fixed .referenceElement=${`action-manage-versions-${i}`}><span>${o.headers.manageVersions}</span></calcite-tooltip>`),t`<calcite-block expanded .heading=${i}>${k}${M}${v}${h}</calcite-block>`}};I("arcgis-version-management-service-item",g);export{g as ArcgisVersionManagementServiceItem};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as c}from"./B2G5OTNZ.js";import j from"./P5MTPM2I.js";import{a as _}from"./PUJPVTUS.js";import{a as r}from"./YMPJFJHK.js";import i from"./6M6VT4H6.js";import e from"./G44JDQZ4.js";import{g as f}from"./2E5U7E4Y.js";import"./W5TN3LOU.js";import a from"./O5TDDX7K.js";import{g as v}from"./LB32PLWG.js";import{N as u,O as p,P as m,Q as g,R as n,U as b,a as d,b as o,x as h}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:x},y,{g:w},,,$])=>{var R=[-45,0,45,-90,90,-135,180,135],M={0:{label:"north",iconName:"chevron-up"},45:{label:"northEast",iconName:"chevron-up-right"},90:{label:"east",iconName:"chevron-right"},135:{label:"southEast",iconName:"chevron-down-right"},180:{label:"south",iconName:"chevron-down"},"-135":{label:"southWest",iconName:"chevron-down-left"},"-90":{label:"west",iconName:"chevron-left"},"-45":{label:"northWest",iconName:"chevron-up-left"}},C=d`:host{outline:none;box-shadow:none!important;background-color:transparent!important;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.root{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media(hover:none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.rotation-container{display:block;width:100%;calcite-action{flex:.3}}.rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`;function B(a){let{x:t,y:e,width:i,height:s}=a.getBoundingClientRect();return{x:t+i/2,y:e+s/2}}function S(a){return a?.spatialReference?.isWebMercator||a?.spatialReference?.isGeographic||!1}var E=$(y),l=class extends p{constructor(){super(...arguments),this.messages=_({}),this._onContextMenu=t=>t.preventDefault(),this._buttons={},this.viewModel=E(this),this.angle=this.viewModel.angle,this.rotation=this.viewModel.rotation,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.disabled=this.viewModel.disabled,this.hideDirectionalButtons=!1,this.icon="move",this.showRotationResetButton=!1,this.showRotationSlider=!1,this.state=this.viewModel.state,this.visualScale="s",this.arcgisPropertyChange=f()("state"),this.arcgisReady=h()}static{this.properties={_rotationEnabled:16,angle:16,rotation:16,view:0,autoDestroyDisabled:5,disabled:5,hideDirectionalButtons:5,icon:1,label:1,messageOverrides:0,referenceElement:1,showRotationResetButton:5,showRotationSlider:5,state:32,visualScale:1}}static{this.styles=C}get _rotationEnabled(){return this.view?.ready?this.view.constraints.rotationEnabled??!1:!0}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[x(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?w(this)?.focus():v(this._buttons[this.viewModel.angle]))})])}_rotateIcon(t){return{"--rotation":`rotate(${t}deg)`}}_setButtonContainerRef(t){t!==void 0?(this._buttonsContainer=t,queueMicrotask(()=>{this._buttons=Object.fromEntries(Array.from(t.children,e=>[Number.parseInt(e.getAttribute("data-angle")??""),e]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(i=>i.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let e=B(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,e)}_onSliderInput({currentTarget:t}){typeof t.value=="number"&&(this.viewModel.rotation=t.value)}_onRotationReset(){this.viewModel.rotation=0}_onClick(t){this.viewModel.moveOnce(t)}render(){let{label:t,disabled:e}=this,i=this.view==null||this.view.type==="2d";return o`<div .ariaLabel=${t??void 0} class=${m({root:!0,[r.widget]:!0,[r.disabled]:e})} tabindex=-1>${i?this._renderContent():this._renderUnsupportedMessage()}</div>`}_renderUnsupportedMessage(){return o`<section class="error"><p>${this.messages.unsupported}</p></section>`}_renderContent(){return[this.hideDirectionalButtons?void 0:this._renderDirectionalButtons(),this.showRotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return c("directional-buttons-container",o`<calcite-action-bar expand-disabled floating layout=grid .scale=${this.visualScale} overflow-actions-disabled><calcite-action-group class="buttons-container" dir=ltr @contextmenu=${{handleEvent:this._onContextMenu,capture:!0}} ${u(this._setButtonContainerRef)}>${R.slice(0,4).map(this._renderButton,this)}${this._renderCompass()}${R.slice(4).map(this._renderButton,this)}</calcite-action-group></calcite-action-bar>`)}_renderButton(t){let{label:e,iconName:i}=M[t],s=this.messages[e];return o`<calcite-action .active=${this.angle===t} alignment=center class="button" data-angle=${t??n} .disabled=${this.disabled} @click=${this._onClick.bind(this,t)} @pointerdown=${this._onButtonPointerDown} .text=${s??""} title=${s??n}><calcite-icon .icon=${i} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||S(this.view)?"compass-needle":"arrow-up",e=this.rotation===0,i=this.messages.resetHeading;return o`<calcite-action alignment=center class="compass" .disabled=${this.disabled||!this._rotationEnabled||e} @click=${this._onRotationReset} style=${g(this._rotateIcon(this.rotation))} .text=${i??""} title=${i??n}>${!e&&o`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return c("slider-container",o`<calcite-action-bar expand-disabled floating layout=horizontal .scale=${this.visualScale}><calcite-action-group class="rotation-container">${this.showRotationResetButton?this._renderRotationResetButton():null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-bar>`)}_renderRotationResetButton(){let t=this.messages.resetHeading;return o`<calcite-action alignment=center class="rotation-reset-button" .disabled=${this.disabled||!this._rotationEnabled} @click=${this._onRotationReset} .text=${t??""} title=${t??n}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderRotationSlider(){return o`<div class="rotation-slider-container"><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled||!this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`}};b("arcgis-directional-pad",l);return l},"core/reactiveUtils","widgets/DirectionalPad/DirectionalPadViewModel",a,e,i,j)
2
+ import{a as c}from"./WLWCCCCK.js";import j from"./FD7NCBBM.js";import{a as _}from"./7XUILQR4.js";import{a as r}from"./YMPJFJHK.js";import i from"./ZN2JKVQS.js";import e from"./TPKF6QNJ.js";import{g as f}from"./AFFIZ62T.js";import"./JH6VEOEP.js";import a from"./O5TDDX7K.js";import{g as v}from"./LB32PLWG.js";import{N as u,O as p,P as m,Q as g,R as n,U as b,a as d,b as o,x as h}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:x},y,{g:w},,,$])=>{var R=[-45,0,45,-90,90,-135,180,135],M={0:{label:"north",iconName:"chevron-up"},45:{label:"northEast",iconName:"chevron-up-right"},90:{label:"east",iconName:"chevron-right"},135:{label:"southEast",iconName:"chevron-down-right"},180:{label:"south",iconName:"chevron-down"},"-135":{label:"southWest",iconName:"chevron-down-left"},"-90":{label:"west",iconName:"chevron-left"},"-45":{label:"northWest",iconName:"chevron-up-left"}},C=d`:host{outline:none;box-shadow:none!important;background-color:transparent!important;user-select:none;calcite-action-pad{display:contents}calcite-action-group{touch-action:none}calcite-action{aspect-ratio:1}}.root{display:flex;flex-direction:column;gap:var(--calcite-spacing-sm)}.buttons-container{--calcite-color-background: transparent;--calcite-action-group-gap: 0;calcite-action{--calcite-color-focus: var(--calcite-color-foreground-3)}calcite-action:not([active]){--calcite-action-background-color-press: var(--calcite-color-foreground-1)}calcite-action[active]{--calcite-action-background-color: var(--calcite-color-foreground-3)}calcite-icon{transform:var(--rotation, unset)}@media(hover:none){calcite-action{--calcite-action-background-color-hover: var(--calcite-color-foreground-1);--calcite-action-text-color-press: var(--calcite-color-text-3)}}}.rotation-container{display:block;width:100%;calcite-action{flex:.3}}.rotation-slider-container{display:flex;flex:1;align-items:center;calcite-slider{flex:1;padding-inline:var(--calcite-spacing-xxs)}}`;function B(a){let{x:t,y:e,width:i,height:s}=a.getBoundingClientRect();return{x:t+i/2,y:e+s/2}}function S(a){return a?.spatialReference?.isWebMercator||a?.spatialReference?.isGeographic||!1}var E=$(y),l=class extends p{constructor(){super(...arguments),this.messages=_({}),this._onContextMenu=t=>t.preventDefault(),this._buttons={},this.viewModel=E(this),this.angle=this.viewModel.angle,this.rotation=this.viewModel.rotation,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.disabled=this.viewModel.disabled,this.hideDirectionalButtons=!1,this.icon="move",this.showRotationResetButton=!1,this.showRotationSlider=!1,this.state=this.viewModel.state,this.visualScale="s",this.arcgisPropertyChange=f()("state"),this.arcgisReady=h()}static{this.properties={_rotationEnabled:16,angle:16,rotation:16,view:0,autoDestroyDisabled:5,disabled:5,hideDirectionalButtons:5,icon:1,label:1,messageOverrides:0,referenceElement:1,showRotationResetButton:5,showRotationSlider:5,state:32,visualScale:1}}static{this.styles=C}get _rotationEnabled(){return this.view?.ready?this.view.constraints.rotationEnabled??!1:!0}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[x(()=>this.viewModel.angle,()=>{this._buttonsContainer?.contains(document.activeElement)&&(this.viewModel.angle==null?w(this)?.focus():v(this._buttons[this.viewModel.angle]))})])}_rotateIcon(t){return{"--rotation":`rotate(${t}deg)`}}_setButtonContainerRef(t){t!==void 0?(this._buttonsContainer=t,queueMicrotask(()=>{this._buttons=Object.fromEntries(Array.from(t.children,e=>[Number.parseInt(e.getAttribute("data-angle")??""),e]))})):(this._buttonsContainer=void 0,this._buttons={})}_onButtonPointerDown(t){if(this._buttonsContainer===void 0)return;t.composedPath().find(i=>i.hasPointerCapture?.(t.pointerId))?.releasePointerCapture(t.pointerId);let e=B(this._buttonsContainer);this.viewModel.beginFollowingPointer(t,e)}_onSliderInput({currentTarget:t}){typeof t.value=="number"&&(this.viewModel.rotation=t.value)}_onRotationReset(){this.viewModel.rotation=0}_onClick(t){this.viewModel.moveOnce(t)}render(){let{label:t,disabled:e}=this,i=this.view==null||this.view.type==="2d";return o`<div .ariaLabel=${t??void 0} class=${m({root:!0,[r.widget]:!0,[r.disabled]:e})} tabindex=-1>${i?this._renderContent():this._renderUnsupportedMessage()}</div>`}_renderUnsupportedMessage(){return o`<section class="error"><p>${this.messages.unsupported}</p></section>`}_renderContent(){return[this.hideDirectionalButtons?void 0:this._renderDirectionalButtons(),this.showRotationSlider?this._renderRotation():void 0]}_renderDirectionalButtons(){return c("directional-buttons-container",o`<calcite-action-bar expand-disabled floating layout=grid .scale=${this.visualScale} overflow-actions-disabled><calcite-action-group class="buttons-container" dir=ltr @contextmenu=${{handleEvent:this._onContextMenu,capture:!0}} ${u(this._setButtonContainerRef)}>${R.slice(0,4).map(this._renderButton,this)}${this._renderCompass()}${R.slice(4).map(this._renderButton,this)}</calcite-action-group></calcite-action-bar>`)}_renderButton(t){let{label:e,iconName:i}=M[t],s=this.messages[e];return o`<calcite-action .active=${this.angle===t} alignment=center class="button" data-angle=${t??n} .disabled=${this.disabled} @click=${this._onClick.bind(this,t)} @pointerdown=${this._onButtonPointerDown} .text=${s??""} title=${s??n}><calcite-icon .icon=${i} .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderCompass(){let t=this.disabled||S(this.view)?"compass-needle":"arrow-up",e=this.rotation===0,i=this.messages.resetHeading;return o`<calcite-action alignment=center class="compass" .disabled=${this.disabled||!this._rotationEnabled||e} @click=${this._onRotationReset} style=${g(this._rotateIcon(this.rotation))} .text=${i??""} title=${i??n}>${!e&&o`<calcite-icon .icon=${t} .scale=${this.visualScale}></calcite-icon>`||""}</calcite-action>`}_renderRotation(){return c("slider-container",o`<calcite-action-bar expand-disabled floating layout=horizontal .scale=${this.visualScale}><calcite-action-group class="rotation-container">${this.showRotationResetButton?this._renderRotationResetButton():null}${this._renderRotationSlider()}</calcite-action-group></calcite-action-bar>`)}_renderRotationResetButton(){let t=this.messages.resetHeading;return o`<calcite-action alignment=center class="rotation-reset-button" .disabled=${this.disabled||!this._rotationEnabled} @click=${this._onRotationReset} .text=${t??""} title=${t??n}><calcite-icon flip-rtl icon=rotate .scale=${this.visualScale}></calcite-icon></calcite-action>`}_renderRotationSlider(){return o`<div class="rotation-slider-container"><calcite-slider .ariaLabel=${this.messages.heading} .disabled=${this.disabled||!this._rotationEnabled} label-handles max=360 min=0 required .scale=${this.visualScale} .value=${Math.round(this.rotation)} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div>`}};b("arcgis-directional-pad",l);return l},"core/reactiveUtils","widgets/DirectionalPad/DirectionalPadViewModel",a,e,i,j)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as W}from"./UZFDHLQM.js";import e from"./EVRD2ZXE.js";import{a as b}from"./IGSZABNU.js";import d from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import{a as x}from"./2NW3IA4C.js";import"./7SZFENQP.js";import{a as S}from"./PUJPVTUS.js";import"./YMPJFJHK.js";import c from"./G44JDQZ4.js";import"./2E5U7E4Y.js";import"./W5TN3LOU.js";import a from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as C,U as j,a as D,b as h,x as w}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([p,{watch:J},H,{property:o,subclass:N},{signal:B},{isAbortError:K},Q,,{a:A},,{a:U,c:k}])=>{var Y=D`.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}:host{transition:max-height .25s ease-in-out;overflow-y:auto}.root{position:relative;display:flex;flex-direction:column;gap:var(--calcite-spacing-xxxl)}.esri-widget__heading{font-weight:var(--calcite-font-weight-normal)}calcite-scrim{--calcite-scrim-background: var(--calcite-color-foreground-1)}.disabled{color:var(--calcite-color-status-danger)}.esri-widget--panel{min-width:unset}`,T="__BUILDING_EXPLORER_FILTER__";function ee(){return`${crypto.randomUUID()}${T}`}function z(t){let e=typeof t=="string"?t:t.id;return!!e&&e.includes(T)}function Z(t,e){for(let i of t)for(let s of i.filters){if(!z(s))continue;let r=e(s);if(r!=null)return r}return null}function te(t,e){for(let i of t){let s=i.filters.filter(l=>!z(l));e!=null&&s.push(e),ie(i.filters,s)||(i.filters=s);let r=i.filters.find(l=>z(l));i.activeFilterId=r!=null?r.id:null}}function ie(t,e){let i=e.length;if(t?.length!==i)return!1;for(let s=0;s<i;++s){let r=e.at(s).toJSON(),l=t.at(s).toJSON();if(r.id="",l.id="",JSON.stringify(r)!==JSON.stringify(l))return!1}return!0}function re(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"x-ray"}}:null}function se(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"solid"}}:null}function G(t){return t.filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}function L(t){let e={fieldValueMap:new Map,allowedValues:[]};for(let i of t){let s=i.fieldValueMap,r=e.fieldValueMap;s.forEach((l,a)=>{r.has(a)||(r.set(a,l),e.allowedValues.push(a))})}return e.allowedValues.sort((i,s)=>i-s),e}function O(t,e){return e.allowedValues.length>0?le(t,e.allowedValues):null}function le(t,e){if(e.length===0)return t;if(t===1/0)return e[e.length-1];if(t===-1/0)return e[0];let i=e[0],s=Math.abs(i-t);for(let r of e){let l=Math.abs(r-t);l<s&&(i=r,s=l)}return i}var ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,X=t=>{throw TypeError(t)},d=(t,e,i,s)=>{for(var r=s>1?void 0:s?oe(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ae(e,i,r),r},ne=(t,e,i)=>e.has(t)||X("Cannot "+i),c=(t,e,i)=>(ne(t,e,"read from private field"),i?i.call(t):e.get(t)),V=(t,e,i)=>e.has(t)?X("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),E,$,v,_,n=class extends H{constructor(t){super(t),V(this,E,B(!0)),V(this,$,B(void 0)),V(this,v,B(null)),V(this,_,new p),this._state="disabled",this._domainInfo=L([]),this._loadLayers=U(),this.layers=new p}initialize(){this.addHandles(this.layers.on("change",()=>void this._onLayersChange())),this._onLayersChange()}destroy(){this._state="disabled"}get disabled(){return this.allowedValues.length===0||c(this,E).value}set disabled(t){c(this,E).value=t}get value(){return(this.state==="ready"?c(this,$).value:this._valueBeforeReady)??0}set value(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}if(t===this.value)return;let e=O(t,this);e!=null&&(c(this,$).value=e)}get min(){return this.allowedValues.length===0?null:Math.min(...this.allowedValues)}get max(){return this.allowedValues.length===0?null:Math.max(...this.allowedValues)}get allowedValues(){return c(this,v).value??this._domainInfo.allowedValues}set allowedValues(t){t==null?c(this,v).value=null:c(this,v).value=t;let e=O(this.value,this);e!=null&&(this.value=e)}get hasNext(){if(this.disabled)return!0;let t=this._valueIndex;return t>=0&&t<this.allowedValues.length-1}get hasPrevious(){return this.disabled?!0:this._valueIndex>0}get layers(){return c(this,_)}set layers(t){c(this,_).removeAll(),c(this,_).addMany(t)}get state(){return this._state}set state(t){this._state=t}get filterExpressions(){return{solid:null,xRay:null}}get _valueIndex(){return this.allowedValues.indexOf(this.value)}select(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}O(t,this)!=null&&(this.disabled=!1,this.value=t)}clear(){if(this.state!=="ready"){this._valueBeforeReady=void 0;return}this.disabled=!0}next(){let{state:t,allowedValues:e,disabled:i,hasNext:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[0];return}s&&(this.value=e[r+1])}}previous(){let{state:t,allowedValues:e,disabled:i,hasPrevious:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[e.length-1];return}s&&(this.value=e[r-1])}}getValueLabel(t){return this.layers.length===0?null:this._domainInfo.fieldValueMap.get(t)??null}async _onLayersChange(){if(this._state="loading",this._domainInfo=L([]),this.layers.length!==0)try{await this._loadLayers(this.layers),this.state="ready",this._setup(),this.changeEmitter?.()}catch(t){K(t)||(this._state="failed")}}};E=new WeakMap;$=new WeakMap;v=new WeakMap;_=new WeakMap;d([o()],n.prototype,"changeEmitter",2);d([o()],n.prototype,"disabled",1);d([o()],n.prototype,"value",1);d([o({readOnly:!0})],n.prototype,"min",1);d([o({readOnly:!0})],n.prototype,"max",1);d([o()],n.prototype,"allowedValues",1);d([o({readOnly:!0})],n.prototype,"hasNext",1);d([o({readOnly:!0})],n.prototype,"hasPrevious",1);d([o({type:p})],n.prototype,"layers",1);d([o()],n.prototype,"_state",2);d([o()],n.prototype,"state",1);d([o({})],n.prototype,"_valueBeforeReady",2);d([o({readOnly:!0})],n.prototype,"_valueIndex",1);d([o()],n.prototype,"_domainInfo",2);n=d([N("esri.components.BuildingExplorer.BuildingNumericFilterViewModel")],n);var de=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,q=t=>{throw TypeError(t)},R=(t,e,i,s)=>{for(var r=s>1?void 0:s?ce(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&de(e,i,r),r},he=(t,e,i)=>e.has(t)||q("Cannot "+i),ue=(t,e,i)=>(he(t,e,"read from private field"),i?i.call(t):e.get(t)),pe=(t,e,i)=>e.has(t)?q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),I,ge="bldglevel",f=class extends n{constructor(t){super(t),pe(this,I,e=>{let i=new RegExp(`${this._levelFieldName}\\s*=\\s*(\\d+)`,"giu"),s=new RegExp(`${this._levelFieldName}\\s*<\\s*(\\d+)`,"giu");for(let{filterMode:r,filterExpression:l}of e.filterBlocks??[]){if(l==null)continue;let a=null;if(r?.type==="solid"?a=i.exec(l):r?.type==="x-ray"&&(a=s.exec(l)),a)return Number.parseInt(a[1],10)}return null})}get filterExpressions(){return this.disabled||!this._levelFieldName?{solid:null,xRay:null}:{xRay:`${this._levelFieldName} < ${this.value}`,solid:`${this._levelFieldName} = ${this.value}`}}get _firstValue(){let t=this.allowedValues;return t.length>0?t[0]:0}_setup(){let t=[];for(let s of this.layers){let r=k(s,ge);r!=null&&(this._levelFieldName=r.fieldName,t.push(r))}this._domainInfo=L(t);let e=this._valueBeforeReady;this._valueBeforeReady=void 0;let i=e??Z(this.layers,ue(this,I));i!=null?this.select(i):(this.disabled=!0,this.value=this._firstValue)}};I=new WeakMap;R([o()],f.prototype,"filterExpressions",1);R([o()],f.prototype,"_levelFieldName",2);R([o()],f.prototype,"_firstValue",1);f=R([N("esri.components.BuildingExplorer.BuildingLevel")],f);var fe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,y=(t,e,i,s)=>{for(var r=s>1?void 0:s?me(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&fe(e,i,r),r},ve="demolishedphase",_e="createdphase",g=class extends n{constructor(t){super(t),this._parseValueFromFilter=e=>{let i=this._createdPhaseFieldName,s=new RegExp(`${i}\\s*<=\\s*(\\d+)\\s*OR\\s*${i}\\s*IS\\s*NULL`,"giu"),r=this._demolishedPhaseFieldName,l=new RegExp(`${r}\\s*>\\s*(\\d+)\\s*OR\\s*${r}\\s*IS\\s*NULL`,"giu");for(let{filterExpression:a}of e.filterBlocks??[]){let M=a?s.exec(a)??l.exec(a):null;if(M)return Number.parseInt(M[1],10)}return null}}get filterExpressions(){if(this.disabled)return{solid:null,xRay:null};let t=[],e=this._createdPhaseFieldName;e&&t.push(`(${e} <= ${this.value} OR ${e} IS NULL)`);let i=this._demolishedPhaseFieldName;i&&t.push(`(${i} > ${this.value} OR ${i} IS NULL)`);let s=t.join(" AND ");return{solid:s,xRay:s}}get _lastValue(){let t=this.allowedValues;return t.length>0?t[t.length-1]:0}_setup(){let t=[];for(let i of this.layers){let s=k(i,_e);s!=null&&(this._createdPhaseFieldName=s.fieldName,t.push(s));let r=k(i,ve);r!=null&&(this._demolishedPhaseFieldName=r.fieldName,t.push(r))}this._domainInfo=L(t);let e=this._valueBeforeReady;if(this._valueBeforeReady=void 0,this.allowedValues.length>0){let i=e??Z(this.layers,this._parseValueFromFilter);this.select(i??this._lastValue)}else this.clear()}};y([o()],g.prototype,"filterExpressions",1);y([o()],g.prototype,"_createdPhaseFieldName",2);y([o()],g.prototype,"_demolishedPhaseFieldName",2);y([o()],g.prototype,"_lastValue",1);g=y([N("esri.components.BuildingExplorer.BuildingPhase")],g);var ye=Object.defineProperty,we=Object.getOwnPropertyDescriptor,m=(t,e,i,s)=>{for(var r=s>1?void 0:s?we(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ye(e,i,r),r},u=class extends H{constructor(){super(...arguments),this.level=new f,this.phase=new g}get layers(){return this._layers}set layers(t){this._layers=t,this.level.layers=t??new p,this.phase.layers=t??new p}get filter(){let t=this.level.filterExpressions,e=this.phase.filterExpressions,i=[],s=se([t.solid,e.solid]);s!=null&&i.push(s);let r=re([t.xRay,e.xRay]);return r!=null&&i.push(r),i.length===0?null:new Q({id:ee(),name:"Building Explorer Filter",filterBlocks:i})}};m([o()],u.prototype,"_layers",2);m([o()],u.prototype,"layers",1);m([o()],u.prototype,"level",2);m([o()],u.prototype,"phase",2);m([o({readOnly:!0})],u.prototype,"filter",1);u=m([N()],u);var F=class extends C{constructor(){super(...arguments),this.messages=S({blocking:!0}),this.#i=new p,this.#r=new u,this.view=A(this),this.autoDestroyDisabled=!1,this.headingLevel=3,this.hideDisciplines=!1,this.hideLevels=!1,this.hidePhases=!1,this.icon="organization",this.arcgisBuildingLevelChange=w({bubbles:!0,composed:!0}),this.arcgisBuildingPhaseChange=w({bubbles:!0,composed:!0}),this.arcgisReady=w()}static{this.properties={view:0,autoDestroyDisabled:5,headingLevel:9,hideDisciplines:5,hideLevels:5,hidePhases:5,icon:1,label:1,layers:0,level:9,phase:9,levels:0,phases:0,levelDisabled:32,phaseDisabled:32,referenceElement:1}}static{this.styles=Y}#i;#r;get#e(){return this.#r.level}get#t(){return this.#r.phase}get minLevel(){return this.#e.min}get maxLevel(){return this.#e.max}get minPhase(){return this.#t.min}get maxPhase(){return this.#t.max}get supported(){return this.view?.type==="3d"}get layers(){return this.#i.toArray()}set layers(e){this.#i.removeAll(),this.#i.addMany(e)}get level(){return this.#e.value}set level(e){e==null?this.#e.clear():this.#e.value=e}get phase(){return this.#t.value}set phase(e){e==null?this.#t.clear():this.#t.value=e}get levels(){return this.#e.allowedValues}set levels(e){e==null?this.#e.allowedValues=null:this.#e.allowedValues=e}get phases(){return this.#t.allowedValues}set phases(e){e==null?this.#t.allowedValues=null:this.#t.allowedValues=e}get levelDisabled(){return this.#e.disabled}get phaseDisabled(){return this.#t.disabled}async destroy(){await this.manager.destroy()}loaded(){this.#e.changeEmitter=()=>this.arcgisBuildingLevelChange.emit(),this.#t.changeEmitter=()=>this.arcgisBuildingPhaseChange.emit(),this.manager.onLifecycle(()=>[J(()=>({layers:this.#i.toArray(),filter:this.#r.filter}),({layers:e,filter:i})=>{te(e,i)},{initial:!0}),J(()=>this.layers,e=>{this.#r.layers=new p(e)})])}render(){let e=this.messages;if(!this.supported)return P({label:e.componentLabel,children:h`<p class="disabled">${e.unsupported}</p>`});if(this.layers.length===0)return P({label:e.componentLabel,children:h`<p class="disabled">${e.noData}</p>`});let i=this.hideLevels||this.#e.allowedValues.length===0,s=this.hidePhases||this.#t.allowedValues.length===0,r=this.#e.state!=="ready"||this.#t.state!=="ready";return P({label:e.componentLabel,loading:r,children:h`${b({hidden:i,children:h`<div>${x({level:this.headingLevel,children:this.messages.level.title})}<arcgis-building-level-picker .messages=${e.level} .level=${this.#e}></arcgis-building-level-picker></div>`})}${b({hidden:s,children:h`<div>${x({level:this.headingLevel,children:this.messages.phase.title})}<arcgis-building-phase-picker .messages=${e.phase} .phase=${this.#t}></arcgis-building-phase-picker></div>`})}${b({hidden:this.hideDisciplines,children:h`<div>${x({level:this.headingLevel,children:this.messages.disciplines.title})}<arcgis-building-discipline-tree .layers=${this.layers} .messages=${this.messages.disciplines}></arcgis-building-discipline-tree></div>`})}`})}};function P(t){return W({class:"root",hideHeader:!0,label:t.label,children:h`${t.children}${t.loading?h`<calcite-scrim .loading=${t.loading}></calcite-scrim>`:null}`})}j("arcgis-building-explorer",F);return F},"core/Collection","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators","applications/Components/reactiveUtils","core/promiseUtils","layers/support/BuildingFilter",a,c,d,e)
2
+ import{a as W}from"./ZPASCPXO.js";import e from"./EVRD2ZXE.js";import{a as b}from"./IGSZABNU.js";import d from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import{a as x}from"./VOCS4OAY.js";import"./EZK2RFST.js";import{a as S}from"./7XUILQR4.js";import"./YMPJFJHK.js";import c from"./TPKF6QNJ.js";import"./AFFIZ62T.js";import"./JH6VEOEP.js";import a from"./O5TDDX7K.js";import"./LB32PLWG.js";import{O as C,U as j,a as D,b as h,x as w}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([p,{watch:J},H,{property:o,subclass:N},{signal:B},{isAbortError:K},Q,,{a:A},,{a:U,c:k}])=>{var Y=D`.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}:host{transition:max-height .25s ease-in-out;overflow-y:auto}.root{position:relative;display:flex;flex-direction:column;gap:var(--calcite-spacing-xxxl)}.esri-widget__heading{font-weight:var(--calcite-font-weight-normal)}calcite-scrim{--calcite-scrim-background: var(--calcite-color-foreground-1)}.disabled{color:var(--calcite-color-status-danger)}.esri-widget--panel{min-width:unset}`,T="__BUILDING_EXPLORER_FILTER__";function ee(){return`${crypto.randomUUID()}${T}`}function z(t){let e=typeof t=="string"?t:t.id;return!!e&&e.includes(T)}function Z(t,e){for(let i of t)for(let s of i.filters){if(!z(s))continue;let r=e(s);if(r!=null)return r}return null}function te(t,e){for(let i of t){let s=i.filters.filter(l=>!z(l));e!=null&&s.push(e),ie(i.filters,s)||(i.filters=s);let r=i.filters.find(l=>z(l));i.activeFilterId=r!=null?r.id:null}}function ie(t,e){let i=e.length;if(t?.length!==i)return!1;for(let s=0;s<i;++s){let r=e.at(s).toJSON(),l=t.at(s).toJSON();if(r.id="",l.id="",JSON.stringify(r)!==JSON.stringify(l))return!1}return!0}function re(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"x-ray"}}:null}function se(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"solid"}}:null}function G(t){return t.filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}function L(t){let e={fieldValueMap:new Map,allowedValues:[]};for(let i of t){let s=i.fieldValueMap,r=e.fieldValueMap;s.forEach((l,a)=>{r.has(a)||(r.set(a,l),e.allowedValues.push(a))})}return e.allowedValues.sort((i,s)=>i-s),e}function O(t,e){return e.allowedValues.length>0?le(t,e.allowedValues):null}function le(t,e){if(e.length===0)return t;if(t===1/0)return e[e.length-1];if(t===-1/0)return e[0];let i=e[0],s=Math.abs(i-t);for(let r of e){let l=Math.abs(r-t);l<s&&(i=r,s=l)}return i}var ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,X=t=>{throw TypeError(t)},d=(t,e,i,s)=>{for(var r=s>1?void 0:s?oe(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ae(e,i,r),r},ne=(t,e,i)=>e.has(t)||X("Cannot "+i),c=(t,e,i)=>(ne(t,e,"read from private field"),i?i.call(t):e.get(t)),V=(t,e,i)=>e.has(t)?X("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),E,$,v,_,n=class extends H{constructor(t){super(t),V(this,E,B(!0)),V(this,$,B(void 0)),V(this,v,B(null)),V(this,_,new p),this._state="disabled",this._domainInfo=L([]),this._loadLayers=U(),this.layers=new p}initialize(){this.addHandles(this.layers.on("change",()=>void this._onLayersChange())),this._onLayersChange()}destroy(){this._state="disabled"}get disabled(){return this.allowedValues.length===0||c(this,E).value}set disabled(t){c(this,E).value=t}get value(){return(this.state==="ready"?c(this,$).value:this._valueBeforeReady)??0}set value(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}if(t===this.value)return;let e=O(t,this);e!=null&&(c(this,$).value=e)}get min(){return this.allowedValues.length===0?null:Math.min(...this.allowedValues)}get max(){return this.allowedValues.length===0?null:Math.max(...this.allowedValues)}get allowedValues(){return c(this,v).value??this._domainInfo.allowedValues}set allowedValues(t){t==null?c(this,v).value=null:c(this,v).value=t;let e=O(this.value,this);e!=null&&(this.value=e)}get hasNext(){if(this.disabled)return!0;let t=this._valueIndex;return t>=0&&t<this.allowedValues.length-1}get hasPrevious(){return this.disabled?!0:this._valueIndex>0}get layers(){return c(this,_)}set layers(t){c(this,_).removeAll(),c(this,_).addMany(t)}get state(){return this._state}set state(t){this._state=t}get filterExpressions(){return{solid:null,xRay:null}}get _valueIndex(){return this.allowedValues.indexOf(this.value)}select(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}O(t,this)!=null&&(this.disabled=!1,this.value=t)}clear(){if(this.state!=="ready"){this._valueBeforeReady=void 0;return}this.disabled=!0}next(){let{state:t,allowedValues:e,disabled:i,hasNext:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[0];return}s&&(this.value=e[r+1])}}previous(){let{state:t,allowedValues:e,disabled:i,hasPrevious:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[e.length-1];return}s&&(this.value=e[r-1])}}getValueLabel(t){return this.layers.length===0?null:this._domainInfo.fieldValueMap.get(t)??null}async _onLayersChange(){if(this._state="loading",this._domainInfo=L([]),this.layers.length!==0)try{await this._loadLayers(this.layers),this.state="ready",this._setup(),this.changeEmitter?.()}catch(t){K(t)||(this._state="failed")}}};E=new WeakMap;$=new WeakMap;v=new WeakMap;_=new WeakMap;d([o()],n.prototype,"changeEmitter",2);d([o()],n.prototype,"disabled",1);d([o()],n.prototype,"value",1);d([o({readOnly:!0})],n.prototype,"min",1);d([o({readOnly:!0})],n.prototype,"max",1);d([o()],n.prototype,"allowedValues",1);d([o({readOnly:!0})],n.prototype,"hasNext",1);d([o({readOnly:!0})],n.prototype,"hasPrevious",1);d([o({type:p})],n.prototype,"layers",1);d([o()],n.prototype,"_state",2);d([o()],n.prototype,"state",1);d([o({})],n.prototype,"_valueBeforeReady",2);d([o({readOnly:!0})],n.prototype,"_valueIndex",1);d([o()],n.prototype,"_domainInfo",2);n=d([N("esri.components.BuildingExplorer.BuildingNumericFilterViewModel")],n);var de=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,q=t=>{throw TypeError(t)},R=(t,e,i,s)=>{for(var r=s>1?void 0:s?ce(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&de(e,i,r),r},he=(t,e,i)=>e.has(t)||q("Cannot "+i),ue=(t,e,i)=>(he(t,e,"read from private field"),i?i.call(t):e.get(t)),pe=(t,e,i)=>e.has(t)?q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),I,ge="bldglevel",f=class extends n{constructor(t){super(t),pe(this,I,e=>{let i=new RegExp(`${this._levelFieldName}\\s*=\\s*(\\d+)`,"giu"),s=new RegExp(`${this._levelFieldName}\\s*<\\s*(\\d+)`,"giu");for(let{filterMode:r,filterExpression:l}of e.filterBlocks??[]){if(l==null)continue;let a=null;if(r?.type==="solid"?a=i.exec(l):r?.type==="x-ray"&&(a=s.exec(l)),a)return Number.parseInt(a[1],10)}return null})}get filterExpressions(){return this.disabled||!this._levelFieldName?{solid:null,xRay:null}:{xRay:`${this._levelFieldName} < ${this.value}`,solid:`${this._levelFieldName} = ${this.value}`}}get _firstValue(){let t=this.allowedValues;return t.length>0?t[0]:0}_setup(){let t=[];for(let s of this.layers){let r=k(s,ge);r!=null&&(this._levelFieldName=r.fieldName,t.push(r))}this._domainInfo=L(t);let e=this._valueBeforeReady;this._valueBeforeReady=void 0;let i=e??Z(this.layers,ue(this,I));i!=null?this.select(i):(this.disabled=!0,this.value=this._firstValue)}};I=new WeakMap;R([o()],f.prototype,"filterExpressions",1);R([o()],f.prototype,"_levelFieldName",2);R([o()],f.prototype,"_firstValue",1);f=R([N("esri.components.BuildingExplorer.BuildingLevel")],f);var fe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,y=(t,e,i,s)=>{for(var r=s>1?void 0:s?me(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&fe(e,i,r),r},ve="demolishedphase",_e="createdphase",g=class extends n{constructor(t){super(t),this._parseValueFromFilter=e=>{let i=this._createdPhaseFieldName,s=new RegExp(`${i}\\s*<=\\s*(\\d+)\\s*OR\\s*${i}\\s*IS\\s*NULL`,"giu"),r=this._demolishedPhaseFieldName,l=new RegExp(`${r}\\s*>\\s*(\\d+)\\s*OR\\s*${r}\\s*IS\\s*NULL`,"giu");for(let{filterExpression:a}of e.filterBlocks??[]){let M=a?s.exec(a)??l.exec(a):null;if(M)return Number.parseInt(M[1],10)}return null}}get filterExpressions(){if(this.disabled)return{solid:null,xRay:null};let t=[],e=this._createdPhaseFieldName;e&&t.push(`(${e} <= ${this.value} OR ${e} IS NULL)`);let i=this._demolishedPhaseFieldName;i&&t.push(`(${i} > ${this.value} OR ${i} IS NULL)`);let s=t.join(" AND ");return{solid:s,xRay:s}}get _lastValue(){let t=this.allowedValues;return t.length>0?t[t.length-1]:0}_setup(){let t=[];for(let i of this.layers){let s=k(i,_e);s!=null&&(this._createdPhaseFieldName=s.fieldName,t.push(s));let r=k(i,ve);r!=null&&(this._demolishedPhaseFieldName=r.fieldName,t.push(r))}this._domainInfo=L(t);let e=this._valueBeforeReady;if(this._valueBeforeReady=void 0,this.allowedValues.length>0){let i=e??Z(this.layers,this._parseValueFromFilter);this.select(i??this._lastValue)}else this.clear()}};y([o()],g.prototype,"filterExpressions",1);y([o()],g.prototype,"_createdPhaseFieldName",2);y([o()],g.prototype,"_demolishedPhaseFieldName",2);y([o()],g.prototype,"_lastValue",1);g=y([N("esri.components.BuildingExplorer.BuildingPhase")],g);var ye=Object.defineProperty,we=Object.getOwnPropertyDescriptor,m=(t,e,i,s)=>{for(var r=s>1?void 0:s?we(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ye(e,i,r),r},u=class extends H{constructor(){super(...arguments),this.level=new f,this.phase=new g}get layers(){return this._layers}set layers(t){this._layers=t,this.level.layers=t??new p,this.phase.layers=t??new p}get filter(){let t=this.level.filterExpressions,e=this.phase.filterExpressions,i=[],s=se([t.solid,e.solid]);s!=null&&i.push(s);let r=re([t.xRay,e.xRay]);return r!=null&&i.push(r),i.length===0?null:new Q({id:ee(),name:"Building Explorer Filter",filterBlocks:i})}};m([o()],u.prototype,"_layers",2);m([o()],u.prototype,"layers",1);m([o()],u.prototype,"level",2);m([o()],u.prototype,"phase",2);m([o({readOnly:!0})],u.prototype,"filter",1);u=m([N()],u);var F=class extends C{constructor(){super(...arguments),this.messages=S({blocking:!0}),this.#i=new p,this.#r=new u,this.view=A(this),this.autoDestroyDisabled=!1,this.headingLevel=3,this.hideDisciplines=!1,this.hideLevels=!1,this.hidePhases=!1,this.icon="organization",this.arcgisBuildingLevelChange=w({bubbles:!0,composed:!0}),this.arcgisBuildingPhaseChange=w({bubbles:!0,composed:!0}),this.arcgisReady=w()}static{this.properties={view:0,autoDestroyDisabled:5,headingLevel:9,hideDisciplines:5,hideLevels:5,hidePhases:5,icon:1,label:1,layers:0,level:9,phase:9,levels:0,phases:0,levelDisabled:32,phaseDisabled:32,referenceElement:1}}static{this.styles=Y}#i;#r;get#e(){return this.#r.level}get#t(){return this.#r.phase}get minLevel(){return this.#e.min}get maxLevel(){return this.#e.max}get minPhase(){return this.#t.min}get maxPhase(){return this.#t.max}get supported(){return this.view?.type==="3d"}get layers(){return this.#i.toArray()}set layers(e){this.#i.removeAll(),this.#i.addMany(e)}get level(){return this.#e.value}set level(e){e==null?this.#e.clear():this.#e.value=e}get phase(){return this.#t.value}set phase(e){e==null?this.#t.clear():this.#t.value=e}get levels(){return this.#e.allowedValues}set levels(e){e==null?this.#e.allowedValues=null:this.#e.allowedValues=e}get phases(){return this.#t.allowedValues}set phases(e){e==null?this.#t.allowedValues=null:this.#t.allowedValues=e}get levelDisabled(){return this.#e.disabled}get phaseDisabled(){return this.#t.disabled}async destroy(){await this.manager.destroy()}loaded(){this.#e.changeEmitter=()=>this.arcgisBuildingLevelChange.emit(),this.#t.changeEmitter=()=>this.arcgisBuildingPhaseChange.emit(),this.manager.onLifecycle(()=>[J(()=>({layers:this.#i.toArray(),filter:this.#r.filter}),({layers:e,filter:i})=>{te(e,i)},{initial:!0}),J(()=>this.layers,e=>{this.#r.layers=new p(e)})])}render(){let e=this.messages;if(!this.supported)return P({label:e.componentLabel,children:h`<p class="disabled">${e.unsupported}</p>`});if(this.layers.length===0)return P({label:e.componentLabel,children:h`<p class="disabled">${e.noData}</p>`});let i=this.hideLevels||this.#e.allowedValues.length===0,s=this.hidePhases||this.#t.allowedValues.length===0,r=this.#e.state!=="ready"||this.#t.state!=="ready";return P({label:e.componentLabel,loading:r,children:h`${b({hidden:i,children:h`<div>${x({level:this.headingLevel,children:this.messages.level.title})}<arcgis-building-level-picker .messages=${e.level} .level=${this.#e}></arcgis-building-level-picker></div>`})}${b({hidden:s,children:h`<div>${x({level:this.headingLevel,children:this.messages.phase.title})}<arcgis-building-phase-picker .messages=${e.phase} .phase=${this.#t}></arcgis-building-phase-picker></div>`})}${b({hidden:this.hideDisciplines,children:h`<div>${x({level:this.headingLevel,children:this.messages.disciplines.title})}<arcgis-building-discipline-tree .layers=${this.layers} .messages=${this.messages.disciplines}></arcgis-building-discipline-tree></div>`})}`})}};function P(t){return W({class:"root",hideHeader:!0,label:t.label,children:h`${t.children}${t.loading?h`<calcite-scrim .loading=${t.loading}></calcite-scrim>`:null}`})}j("arcgis-building-explorer",F);return F},"core/Collection","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators","applications/Components/reactiveUtils","core/promiseUtils","layers/support/BuildingFilter",a,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as p,b as a,c as v}from"./KX5PBTVM.js";import{a as y}from"./Y6CUKQ7R.js";import b from"./6M6VT4H6.js";import{e as d}from"./2E5U7E4Y.js";import"./W5TN3LOU.js";import"./LB32PLWG.js";import{M as e,N as s,O as n,P as c,U as m,a as o,b as t,x as h}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:w},f,{b:l}])=>{var u=o`:host{width:100%;height:100%}`,g=l(f,{omitProps:["container","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=d(),this._mapRef=e(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0}}static{this.styles=[y,p,u]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${c(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction})}</section>`}};m("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
2
+ import{a as p,b as a,c as v}from"./3FBEBICW.js";import{a as y}from"./76DFK3J6.js";import b from"./ZN2JKVQS.js";import{e as d}from"./AFFIZ62T.js";import"./JH6VEOEP.js";import"./LB32PLWG.js";import{M as e,N as s,O as n,P as c,U as m,a as o,b as t,x as h}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:w},f,{b:l}])=>{var u=o`:host{width:100%;height:100%}`,g=l(f,{omitProps:["container","navigation","scale","ui"]}),r=class extends n{constructor(){super(),this._containerRef=e(),this._direction=d(),this._mapRef=e(),this.autoDestroyDisabled=!1,this.view=g(this),this.attributionMode=this.view.attributionMode,this.ready=this.view.ready,this.layer=this.view.layer,this.map=this.view.map,this.arcgisViewReadyChange=h()}static{this.properties={autoDestroyDisabled:5,view:32,aria:0,attributionMode:1,ready:36,layer:0,map:0}}static{this.styles=[y,p,u]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}async destroy(){await this.manager.destroy()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.manager.onLifecycle(()=>[w(()=>this.layer,()=>{this.layer&&this.view&&(this.view.layer=this.layer,this.layer.loaded||this.layer.load())},{initial:!0}),w(()=>this.view.ready,()=>{this.view.ready&&this.arcgisViewReadyChange.emit()},{initial:this.view.ready})])}renderMain(){return t`<div class=${`root ${a.base}`} ${s(this._mapRef)}></div>`}render(){return t`${this.renderMain()}<section class=${c(a.containerUI)} ${s(this._containerRef)}>${v({direction:this._direction})}</section>`}};m("arcgis-video",r);return r},"core/reactiveUtils","views/VideoView",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as _}from"./PUJPVTUS.js";import"./2E5U7E4Y.js";import"./W5TN3LOU.js";import"./LB32PLWG.js";import{M as l,N as h,O as o,U as c,b as n,p as r}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([p])=>{var a=class extends o{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._io=null,this._titleContainerSpan=l(),this._messages=_(),this._generatedTitle=null,this.isNewFeature=!1}static{this.properties={_generatedTitle:16,graphic:0,layer:0,noTitleLabel:1,isNewFeature:5}}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}willUpdate(e){e.has("graphic")&&(this.hasUpdated||this.graphic!==null)&&this._changeGraphic()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleTitle().catch(e=>{r("warn",this,"Failed processing title")}))}get rootLayer(){return this.layer?.type==="subtype-sublayer"?this.layer.parent:this.layer}_changeGraphic(){this._changeData()}_changeData(){this._generatedTitle=null,this._attempted=!1}_createNoTitleLabel(){return this.noTitleLabel===null||this.noTitleLabel===void 0?this._messages.noTitleLabel??"":this.noTitleLabel}async _generateTitle(){if(!(this.layer&&this.graphic))return this._createNoTitleLabel();if(this.layer.getFeatureTitle){let e=this.graphic;if(this.isNewFeature&&this.layer?.objectIdField&&e){let{[this.layer.objectIdField]:i,...s}=e.attributes??{};e=new p({geometry:e.geometry,attributes:{...s}})}return await this.layer.getFeatureTitle(e)||this._createNoTitleLabel()}else return this._createNoTitleLabel()}async _handleTitle(){let e=++this._lastRun;if(!this._generatedTitle||this._generatedTitle==="")try{let t=await this._generateTitle();if(this._lastRun!==e||this._generatedTitle===t)return;this._generatedTitle=t}finally{this._attempted=!0}}_addIntersectionObserver(){let e={rootMargin:"50px 0px",threshold:.01};this._titleContainerSpan.value&&requestAnimationFrame(()=>{this.isConnected&&(this._io=new IntersectionObserver(t=>{let i=!1;t.forEach(s=>{s.intersectionRatio>0&&!i?(i=!0,this._isCurrentlyInView=!0,this._handleTitle().catch(d=>{r("warn",this,"Failed processing title")})):this._isCurrentlyInView=!1})},e),this._io.observe(this._titleContainerSpan.value))})}_removeIntersectionObserver(){this._io?.disconnect(),this._io=null}render(){return n`<span ${h(this._titleContainerSpan)}>${this._generatedTitle??""}</span>`}};c("arcgis-feature-title",a);return a},"Graphic")
2
+ import{a as _}from"./7XUILQR4.js";import"./AFFIZ62T.js";import"./JH6VEOEP.js";import"./LB32PLWG.js";import{M as l,N as h,O as o,U as c,b as n,p as r}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([p])=>{var a=class extends o{constructor(){super(...arguments),this._lastRun=0,this._attempted=!1,this._isCurrentlyInView=!1,this._io=null,this._titleContainerSpan=l(),this._messages=_(),this._generatedTitle=null,this.isNewFeature=!1}static{this.properties={_generatedTitle:16,graphic:0,layer:0,noTitleLabel:1,isNewFeature:5}}loaded(){this.manager.onLifecycle(()=>(this._addIntersectionObserver(),()=>{this._removeIntersectionObserver()}))}willUpdate(e){e.has("graphic")&&(this.hasUpdated||this.graphic!==null)&&this._changeGraphic()}updated(){!this._attempted&&this._isCurrentlyInView&&(this._attempted=!0,this._handleTitle().catch(e=>{r("warn",this,"Failed processing title")}))}get rootLayer(){return this.layer?.type==="subtype-sublayer"?this.layer.parent:this.layer}_changeGraphic(){this._changeData()}_changeData(){this._generatedTitle=null,this._attempted=!1}_createNoTitleLabel(){return this.noTitleLabel===null||this.noTitleLabel===void 0?this._messages.noTitleLabel??"":this.noTitleLabel}async _generateTitle(){if(!(this.layer&&this.graphic))return this._createNoTitleLabel();if(this.layer.getFeatureTitle){let e=this.graphic;if(this.isNewFeature&&this.layer?.objectIdField&&e){let{[this.layer.objectIdField]:i,...s}=e.attributes??{};e=new p({geometry:e.geometry,attributes:{...s}})}return await this.layer.getFeatureTitle(e)||this._createNoTitleLabel()}else return this._createNoTitleLabel()}async _handleTitle(){let e=++this._lastRun;if(!this._generatedTitle||this._generatedTitle==="")try{let t=await this._generateTitle();if(this._lastRun!==e||this._generatedTitle===t)return;this._generatedTitle=t}finally{this._attempted=!0}}_addIntersectionObserver(){let e={rootMargin:"50px 0px",threshold:.01};this._titleContainerSpan.value&&requestAnimationFrame(()=>{this.isConnected&&(this._io=new IntersectionObserver(t=>{let i=!1;t.forEach(s=>{s.intersectionRatio>0&&!i?(i=!0,this._isCurrentlyInView=!0,this._handleTitle().catch(d=>{r("warn",this,"Failed processing title")})):this._isCurrentlyInView=!1})},e),this._io.observe(this._titleContainerSpan.value))})}_removeIntersectionObserver(){this._io?.disconnect(),this._io=null}render(){return n`<span ${h(this._titleContainerSpan)}>${this._generatedTitle??""}</span>`}};c("arcgis-feature-title",a);return a},"Graphic")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{O as s,U as r,b as a}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:p}])=>{var t=class extends s{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let n=this.viewModel.templateOptions,i=Number(e.target.value);if(Number.isNaN(i)||i<=0||!Number.isFinite(i)){e.target.value=`${this._dpi}`;return}n.dpi=i}render(){return a`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};r("arcgis-print-dpi-input",t);return t},"core/reactiveUtils")
2
+ import{O as s,U as r,b as a}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:p}])=>{var t=class extends s{constructor(){super(...arguments),this._dpi=1}static{this.properties={_dpi:16,viewModel:0,messages:0}}loaded(){this.manager.onLifecycle(()=>[p(()=>this.viewModel.templateOptions.dpi,e=>this._dpi=e<=0?1:e,{initial:!0})])}_handleDPIChange(e){let n=this.viewModel.templateOptions,i=Number(e.target.value);if(Number.isNaN(i)||i<=0||!Number.isFinite(i)){e.target.value=`${this._dpi}`;return}n.dpi=i}render(){return a`<div><calcite-label>${this.messages.dpi}<calcite-input-number data-input-name=dpi min=1 .value=${`${this._dpi}`} .max=${Number.MAX_SAFE_INTEGER} @calciteInputNumberInput=${this._handleDPIChange}></calcite-input-number></calcite-label></div>`}};r("arcgis-print-dpi-input",t);return t},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as E}from"./MR5JAWKH.js";import d from"./V5FNVAX5.js";import c from"./6OMMETC4.js";import"./CAXI6CJY.js";import b from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import"./7SZFENQP.js";import{a as S}from"./PUJPVTUS.js";import"./2E5U7E4Y.js";import"./W5TN3LOU.js";import a from"./O5TDDX7K.js";import{b as y}from"./LB32PLWG.js";import{M as v,N as f,O as T,P as h,Q as A,R as o,U as M,b as r}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([{isLayerFromCatalog:O},{h:w},,,{b:I,c:L}])=>{var D={hideChildren:"hide-children"};function R({exclusive:a,visible:e,visibilityAppearance:t}){let i=t==="checkbox";return e?a?"circle-f":i?"check-square-f":"view-visible":a?"circle":i?"square":"view-hide"}function P({connectionStatus:a,publishing:e}){return a?a==="connected"?"beacon":"offline":e?"square":"bullet-point"}function k(a){return a?.listMode===D.hideChildren}function U(a){let e=(a?.layer&&F(a.layer)?a.layer.layer:void 0)??a?.layer;return e?e.type==="catalog"?!1:B(e)??!0:!1}function F(a){return a!=null&&"layer"in a&&a.layer!=null}function B(a){let e=V(a);return e!=null&&"supportsDynamicLayers"in e?e.supportsDynamicLayers:void 0}function V(a){return a&&"capabilities"in a&&a.capabilities!=null&&"exportMap"in a.capabilities?a.capabilities.exportMap:void 0}function G(a){return a?.getAttribute("data-item")}function N(a){let{children:e,error:t}=a,i="incompatible"in a?a.incompatible:!1;return!!e?.filter(n=>!n.hidden).length&&!t&&!i}function q(a){for(let e of a)for(let t of e)if(t.type==="button"||t.type==="toggle")return t}function x(a,e){let t=a.parent,i=a.layer;if(i?.type!=="map-image"||!i.sourceJSON||!t)return!1;let n=i.sourceJSON.layers;if(!n)return!1;let s=n.find(l=>a.id===l.id),c=e==="footprints"?"Feature Layer":"Catalog Dynamic Group Layer";return s?.type!==c?!1:n.find(l=>l.id===t.id)?.type==="Catalog Layer"}var C=class extends T{constructor(){super(...arguments),this._itemRef=v(),this._noticeRef=v(),this.messages=S(),this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.showTemporaryTableIndicators=!1,this.dragEnabled=!1,this.listModeDisabled=!1,this.autoDestroyDisabled=!1}static{this.properties={_title:16,_renderedItemStatus:16,_renderedItemTemporaryIcon:16,_renderedItemToggle:16,_renderedPanel:16,_renderedPanelAction:16,_renderedActions:16,_renderedActionMenu:16,_renderedActionMenuContent:16,_renderedCatalogFootprintIcon:16,_renderedCatalogDynamicIcon:16,_renderedCatalogSelectNode:16,_renderedChildList:16,_hasTables:16,_renderedTablesItem:16,_renderedItemMessage:16,_singleAction:16,_filteredSections:16,_actionsCount:16,activeItem:0,canMove:0,css:0,displayMode:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,showTemporaryTableIndicators:5,dragEnabled:5,item:0,layerTablesEnabled:0,listModeDisabled:5,handleAction:0,handlePanelOpen:0,handleCatalogOpen:0,handleTablesOpen:0,handleSelectedDragItemLayerUidChange:0,handleTooltipReferenceChange:0,parent:0,parentTitles:0,rootGroupUid:1,selectionMode:1,selectedItems:0,selectedDragItemLayerUid:1,visibilityAppearance:1,autoDestroyDisabled:5}}static{this.styles=E}get _title(){let{messages:e}=this;return this.item.title||("untitledTable"in e?e.untitledTable:e.untitledLayer)}get _renderedItemStatus(){let{item:e,parent:t,hideStatusIndicators:i,css:n}=this;if(!i)return null;let{publishing:s}=e,c="updating"in e&&e.updating&&!t,l="connectionStatus"in e?e.connectionStatus:void 0,u=!!l;return r`<calcite-icon class=${h(y(n.statusIndicator,{[n.publishing]:s},"updating"in n&&{[n.updating]:c},"connectionStatus"in n&&{[n.connectionStatus]:u},"connectionStatusConnected"in n&&{[n.connectionStatusConnected]:u&&l==="connected"}))} .icon=${P({connectionStatus:l,publishing:s})} scale=s slot=content-end></calcite-icon>`}get _renderedItemTemporaryIcon(){let{item:e,showTemporaryLayerIndicators:t,showTemporaryTableIndicators:i,css:n}=this,{layer:s}=e,c=s&&"persistenceEnabled"in s&&(O(s)||!s.persistenceEnabled);return(t||i)&&c?r`<calcite-icon class=${h(n.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${this.messages.temporary??o}></calcite-icon>`:null}get _renderedItemToggle(){let{item:e,parent:t,messages:i,visibilityAppearance:n,css:s}=this;if(!("visible"in e)||!("layerVisibility"in i)||!("visibleToggle"in s)||!n)return null;let{visible:c}=e,l=this._getParentVisibilityMode(t);if(l==="inherited")return null;let u=R({visible:c,exclusive:l==="exclusive",visibilityAppearance:n}),d=n==="checkbox",g=i.layerVisibility;return r`<calcite-action class=${h(s.visibleToggle)} .icon=${d?u:void 0} @click=${()=>this._toggleVisibility(e,t)} scale=s .slot=${d?"actions-start":"actions-end"} .text=${g??""} title=${g??o}>${d?null:r`<calcite-icon class=${h(y({[s.visibleIcon]:l!=="exclusive"&&c}))} .icon=${u} scale=s></calcite-icon>`}</calcite-action>`}get _renderedPanel(){let{panel:e}=this.item;return e?.open&&!e.disabled&&!e.flowEnabled?r`<div class=${h(this.css.itemContentBottom)} slot=content-bottom>${e.render()}</div>`:null}get _renderedPanelAction(){let{panel:e}=this.item;if(!e?.visible)return null;let{open:t,title:i,disabled:n}=e,s={icon:e.icon,image:e.image,indicator:!1};return r`<calcite-action .active=${t} .disabled=${n} .icon=${I(s)} @click=${()=>this._togglePanel(e)} scale=s slot=actions-end .text=${i??""} title=${i??void 0??o}>${this._renderFallbackIcon(e)}</calcite-action>`}get _renderedActions(){switch(this._actionsCount){case 0:return null;case 1:return this._singleAction;default:return this._renderedActionMenu}}get _renderedActionMenu(){let{item:e,messages:t}=this,i=t.options;return r`<calcite-action-menu appearance=transparent .label=${t.menu??""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end scale=s slot=actions-end @calciteActionMenuOpen=${this._onActionMenuOpen}><calcite-action icon=ellipsis scale=s slot=trigger .text=${i??""} title=${i??o}></calcite-action>${this._renderedActionMenuContent}</calcite-action-menu>`}get _renderedActionMenuContent(){return this._filteredSections.toArray().map(e=>r`<calcite-action-group>${e.toArray().map(t=>this._renderAction({action:t,textEnabled:!0}))}</calcite-action-group>`)}get _renderedCatalogFootprintIcon(){let{css:e}=this,t=this.item.layer,i=t?.type==="catalog-footprint",n=t?.type==="sublayer"&&x(t,"footprints");return"itemCatalogIcon"in e&&(i||n)?r`<calcite-icon class=${h(e.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`:null}get _renderedCatalogDynamicIcon(){let{css:e}=this,t=this.item.layer,i=t?.type==="catalog-dynamic-group",n=t?.type==="sublayer"&&x(t,"layers-in-view");return"itemCatalogIcon"in e&&(i||n)?r`<calcite-icon class=${h(e.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`:null}get _renderedCatalogSelectNode(){let{_title:e,item:t,hideCatalogLayerList:i}=this;if(!("visible"in t))return;let{layer:n}=t,s=n?.type==="catalog-dynamic-group";return i&&s?r`<calcite-action .disabled=${!n.visible} icon=chevron-right icon-flip-rtl @click=${()=>this._triggerOnCatalogOpen(t)} scale=s slot=actions-end .text=${e}></calcite-action>`:null}get _renderedChildList(){let{dragEnabled:e,item:t,rootGroupUid:i,listModeDisabled:n,selectionMode:s,displayMode:c}=this;if(!("children"in t))return;let l=[...this.parentTitles??[],t.title],{children:u,layer:d}=t,g=d?.type!=="catalog-dynamic-group"&&N(t),$=n?!1:k(d),m=d?.type==="group",_=!$&&!g&&e&&m,b=e?"childrenSortable"in t&&t.childrenSortable&&U(t):!1;return g||_?r`<calcite-list .canPull=${p=>this.canMove?this.canMove(p,"pull"):!1} .canPut=${p=>this.canMove?this.canMove(p,"put"):!1} data-item=${t??o} data-layer-type=${i??o} .displayMode=${c} .dragEnabled=${b} .group=${m?i:`${i}-${d?.uid}`} .label=${t.title} selection-appearance=border .selectionMode=${s}>${u?.filter(p=>!p.hidden&&(this.showErrors||!p.error)).toArray().map(p=>this._renderItem(p,t,l))}${this._renderedTablesItem}</calcite-list>`:null}get _hasTables(){let{layerTablesEnabled:e}=this,t=this.item.layer;if(!e||!t)return!1;switch(t.type){case"knowledge-graph":return e.includes(t.type)&&"tables"in t&&!!t.tables?.length;case"map-image":case"tile":return e.includes(t.type)&&"subtables"in t&&!!t.subtables?.length;default:return!1}}get _renderedTablesItem(){let{item:e,messages:t,css:i}=this,{layer:n}=e;return"itemTableIcon"in i&&"visible"in e&&"tables"in t&&this._hasTables?r`<calcite-list-item class=${h(i.item)} data-layer-id=${n?.id??o} drag-disabled .label=${t.tables} title=${t.tables??o} @calciteListItemSelect=${()=>this._triggerOnTablesOpen(e)}><calcite-icon class=${h(i.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`:null}get _renderedItemMessage(){let{item:e,messages:t,css:i}=this;return e.error?r`<div class=${h(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError"in t?t.tableError:t.layerError}</div></calcite-notice></div>`:"incompatible"in e&&e.incompatible&&"layerIncompatible"in t?r`<div class=${h(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${f(this._noticeRef)}><div slot=message>${t.layerIncompatible}</div></calcite-notice></div>`:null}get _singleAction(){return this._renderAction({action:q(this._filteredSections),textEnabled:!1})}get _filteredSections(){return this.item.actionsSections.map(e=>e.filter(t=>t.visible))}get _actionsCount(){return this.item.actionsSections.reduce((e,t)=>e+t.length,0)}async destroy(){await this.manager.destroy()}willUpdate(){this._itemRef.value&&this._focusSelectedDragEl(this._itemRef.value,this.item),this._noticeRef.value&&this._setTooltipReference(this._noticeRef.value)}updated(){this._itemRef.value&&this._focusSelectedDragEl(this._itemRef.value,this.item),this._noticeRef.value&&this._removeTooltipReference()}_onActionMenuOpen(e){this.item.actionsOpen=e.currentTarget.open}_setTooltipReference(e){this.handleTooltipReferenceChange?.(this.item.layer?.uid,e)}_removeTooltipReference(){this.handleTooltipReferenceChange?.(this.item.layer?.uid,null)}_triggerAction(e,t){!t||!e||(t.type==="toggle"&&(t.value=!t.value),this.handleAction(t,e))}_triggerOnTablesOpen(e){!e||!this.handleTablesOpen||this.handleTablesOpen(e)}_triggerOnCatalogOpen(e){e&&this.handleCatalogOpen?.(e)}_focusSelectedDragEl(e,t){this.selectedDragItemLayerUid===t.layer?.uid&&(w(e),this.handleSelectedDragItemLayerUidChange?.(null))}_handleCalciteListItemToggle(e,t){e.stopPropagation(),t.open=e.target.expanded}_getParentVisibilityMode(e){return e&&"visibilityMode"in e?e.visibilityMode:null}_handleCalciteListItemSelect(e,t,i){if(G(e.target)!==t)return;let n=this._getParentVisibilityMode(i);this.selectionMode!=="none"||n==="inherited"||this._toggleVisibility(t,i)}_togglePanel(e){e.open=!e.open,e.open&&this.handlePanelOpen()}_toggleVisibility(e,t){!e||!("visible"in e)||this._getParentVisibilityMode(t)==="exclusive"&&e.visible||(e.visible=!e.visible)}render(){let e=this.parentTitles??[],{_title:t,item:i,activeItem:n,selectionMode:s,selectedItems:c,messages:l,parent:u,css:d}=this,g="visibleAtCurrentTimeExtent"in i&&"layerInvisibleAtTime"in l&&!i.visibleAtCurrentTimeExtent?`${t} (${l.layerInvisibleAtTime})`:"visibleAtCurrentScale"in i&&"layerInvisibleAtScale"in l&&!i.visibleAtCurrentScale?`${t} (${l.layerInvisibleAtScale})`:t,$="parent"in i&&i.parent?.layer?.type==="catalog",{layer:m}=i,_="visibleAtCurrentScale"in i&&!i.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in i&&!i.visibleAtCurrentTimeExtent;return r`<calcite-list-item class=${h(y(d.item,"itemActive"in d&&{[d.itemActive]:n===i}))} data-item=${i??o} data-layer-id=${m?.id??o} .dragDisabled=${!("sortable"in i&&i.sortable)||$} id=${m?.uid??o} .label=${t} .metadata=${{parentTitles:e,_title:t}} .expanded=${"open"in i&&i.open} .selected=${s!=="none"?c.includes(i):!1} title=${g??o} .unavailable=${_} .value=${m?.uid} @calciteListItemSelect=${b=>"visible"in i&&this._handleCalciteListItemSelect(b,i,u)} @calciteListItemToggle=${b=>"open"in i&&this._handleCalciteListItemToggle(b,i)} ${f(this._itemRef)}>${this._renderedCatalogFootprintIcon}${this._renderedCatalogDynamicIcon}${this._renderedItemStatus}${this._renderedItemToggle}${this._renderedCatalogSelectNode}${this._renderedItemTemporaryIcon}${this._renderedChildList}${this._renderedItemMessage}${this._renderedPanel}${this._renderedPanelAction}${this._renderedActions}</calcite-list-item>`}_renderAction(e){let{item:t}=this,{action:i,textEnabled:n}=e;if(!i)return null;let{active:s,disabled:c,title:l,type:u,indicator:d}=i;return r`<calcite-action .active=${u==="toggle"?i.value:!1} data-action-id=${i.id??o} .disabled=${c} .icon=${I(i)} .indicator=${d} .loading=${s} @click=${()=>this._triggerAction(t,i)} scale=s slot=${(n?void 0:"actions-end")??o} .text=${l??""} .textEnabled=${n} title=${l??void 0??o}>${this._renderFallbackIcon(i)}</calcite-action>`}_renderFallbackIcon(e){let{css:t}=this,{icon:i}=e;if(i)return null;let n="image"in e?e.image:void 0,s={[t.itemActionImage]:!!n};return n?r`<span aria-hidden=true class=${h(y(t.itemActionIcon,s))} style=${A(L(n))}></span>`:null}_renderItem(e,t,i=[]){return r`<arcgis-layer-list-item .activeItem=${this.activeItem} .canMove=${this.canMove} .css=${this.css} .displayMode=${this.displayMode} .dragEnabled=${this.dragEnabled} .item=${e} .layerTablesEnabled=${this.layerTablesEnabled} .listModeDisabled=${this.listModeDisabled} .parent=${t} .parentTitles=${i} .rootGroupUid=${this.rootGroupUid} .selectedDragItemLayerUid=${this.selectedDragItemLayerUid} .selectedItems=${this.selectedItems} .selectionMode=${this.selectionMode} .visibilityAppearance=${this.visibilityAppearance} .handleAction=${this.handleAction} .handleCatalogOpen=${this.handleCatalogOpen} .handlePanelOpen=${this.handlePanelOpen} .handleSelectedDragItemLayerUidChange=${this.handleSelectedDragItemLayerUidChange} .handleTablesOpen=${this.handleTablesOpen} .handleTooltipReferenceChange=${this.handleTooltipReferenceChange} .hideCatalogLayerList=${this.hideCatalogLayerList} .showCloseButton=${this.showCloseButton} .showCollapseButton=${this.showCollapseButton} .showErrors=${this.showErrors} .showFilter=${this.showFilter} .showHeading=${this.showHeading} .hideStatusIndicators=${this.hideStatusIndicators} .showTemporaryLayerIndicators=${this.showTemporaryLayerIndicators} .showTemporaryTableIndicators=${this.showTemporaryTableIndicators}></arcgis-layer-list-item>`}};M("arcgis-layer-list-item",C);return C},"layers/catalog/catalogUtils",a,b,c,d)
2
+ import{a as E}from"./KXGOKDLU.js";import d from"./G6R4JEE5.js";import c from"./IQ3NVZRW.js";import"./CAXI6CJY.js";import b from"./5MHPKAFK.js";import"./PC4PAQXQ.js";import"./EZK2RFST.js";import{a as S}from"./7XUILQR4.js";import"./AFFIZ62T.js";import"./JH6VEOEP.js";import a from"./O5TDDX7K.js";import{b as y}from"./LB32PLWG.js";import{M as v,N as f,O as T,P as h,Q as A,R as o,U as M,b as r}from"./BVWBXM2C.js";import"./3TTFCHAA.js";export default $arcgis.t(([{isLayerFromCatalog:O},{h:w},,,{b:I,c:L}])=>{var D={hideChildren:"hide-children"};function R({exclusive:a,visible:e,visibilityAppearance:t}){let i=t==="checkbox";return e?a?"circle-f":i?"check-square-f":"view-visible":a?"circle":i?"square":"view-hide"}function P({connectionStatus:a,publishing:e}){return a?a==="connected"?"beacon":"offline":e?"square":"bullet-point"}function k(a){return a?.listMode===D.hideChildren}function U(a){let e=(a?.layer&&F(a.layer)?a.layer.layer:void 0)??a?.layer;return e?e.type==="catalog"?!1:B(e)??!0:!1}function F(a){return a!=null&&"layer"in a&&a.layer!=null}function B(a){let e=V(a);return e!=null&&"supportsDynamicLayers"in e?e.supportsDynamicLayers:void 0}function V(a){return a&&"capabilities"in a&&a.capabilities!=null&&"exportMap"in a.capabilities?a.capabilities.exportMap:void 0}function G(a){return a?.getAttribute("data-item")}function N(a){let{children:e,error:t}=a,i="incompatible"in a?a.incompatible:!1;return!!e?.filter(n=>!n.hidden).length&&!t&&!i}function q(a){for(let e of a)for(let t of e)if(t.type==="button"||t.type==="toggle")return t}function x(a,e){let t=a.parent,i=a.layer;if(i?.type!=="map-image"||!i.sourceJSON||!t)return!1;let n=i.sourceJSON.layers;if(!n)return!1;let s=n.find(l=>a.id===l.id),c=e==="footprints"?"Feature Layer":"Catalog Dynamic Group Layer";return s?.type!==c?!1:n.find(l=>l.id===t.id)?.type==="Catalog Layer"}var C=class extends T{constructor(){super(...arguments),this._itemRef=v(),this._noticeRef=v(),this.messages=S(),this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.showTemporaryTableIndicators=!1,this.dragEnabled=!1,this.listModeDisabled=!1,this.autoDestroyDisabled=!1}static{this.properties={_title:16,_renderedItemStatus:16,_renderedItemTemporaryIcon:16,_renderedItemToggle:16,_renderedPanel:16,_renderedPanelAction:16,_renderedActions:16,_renderedActionMenu:16,_renderedActionMenuContent:16,_renderedCatalogFootprintIcon:16,_renderedCatalogDynamicIcon:16,_renderedCatalogSelectNode:16,_renderedChildList:16,_hasTables:16,_renderedTablesItem:16,_renderedItemMessage:16,_singleAction:16,_filteredSections:16,_actionsCount:16,activeItem:0,canMove:0,css:0,displayMode:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,showTemporaryTableIndicators:5,dragEnabled:5,item:0,layerTablesEnabled:0,listModeDisabled:5,handleAction:0,handlePanelOpen:0,handleCatalogOpen:0,handleTablesOpen:0,handleSelectedDragItemLayerUidChange:0,handleTooltipReferenceChange:0,parent:0,parentTitles:0,rootGroupUid:1,selectionMode:1,selectedItems:0,selectedDragItemLayerUid:1,visibilityAppearance:1,autoDestroyDisabled:5}}static{this.styles=E}get _title(){let{messages:e}=this;return this.item.title||("untitledTable"in e?e.untitledTable:e.untitledLayer)}get _renderedItemStatus(){let{item:e,parent:t,hideStatusIndicators:i,css:n}=this;if(!i)return null;let{publishing:s}=e,c="updating"in e&&e.updating&&!t,l="connectionStatus"in e?e.connectionStatus:void 0,u=!!l;return r`<calcite-icon class=${h(y(n.statusIndicator,{[n.publishing]:s},"updating"in n&&{[n.updating]:c},"connectionStatus"in n&&{[n.connectionStatus]:u},"connectionStatusConnected"in n&&{[n.connectionStatusConnected]:u&&l==="connected"}))} .icon=${P({connectionStatus:l,publishing:s})} scale=s slot=content-end></calcite-icon>`}get _renderedItemTemporaryIcon(){let{item:e,showTemporaryLayerIndicators:t,showTemporaryTableIndicators:i,css:n}=this,{layer:s}=e,c=s&&"persistenceEnabled"in s&&(O(s)||!s.persistenceEnabled);return(t||i)&&c?r`<calcite-icon class=${h(n.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${this.messages.temporary??o}></calcite-icon>`:null}get _renderedItemToggle(){let{item:e,parent:t,messages:i,visibilityAppearance:n,css:s}=this;if(!("visible"in e)||!("layerVisibility"in i)||!("visibleToggle"in s)||!n)return null;let{visible:c}=e,l=this._getParentVisibilityMode(t);if(l==="inherited")return null;let u=R({visible:c,exclusive:l==="exclusive",visibilityAppearance:n}),d=n==="checkbox",g=i.layerVisibility;return r`<calcite-action class=${h(s.visibleToggle)} .icon=${d?u:void 0} @click=${()=>this._toggleVisibility(e,t)} scale=s .slot=${d?"actions-start":"actions-end"} .text=${g??""} title=${g??o}>${d?null:r`<calcite-icon class=${h(y({[s.visibleIcon]:l!=="exclusive"&&c}))} .icon=${u} scale=s></calcite-icon>`}</calcite-action>`}get _renderedPanel(){let{panel:e}=this.item;return e?.open&&!e.disabled&&!e.flowEnabled?r`<div class=${h(this.css.itemContentBottom)} slot=content-bottom>${e.render()}</div>`:null}get _renderedPanelAction(){let{panel:e}=this.item;if(!e?.visible)return null;let{open:t,title:i,disabled:n}=e,s={icon:e.icon,image:e.image,indicator:!1};return r`<calcite-action .active=${t} .disabled=${n} .icon=${I(s)} @click=${()=>this._togglePanel(e)} scale=s slot=actions-end .text=${i??""} title=${i??void 0??o}>${this._renderFallbackIcon(e)}</calcite-action>`}get _renderedActions(){switch(this._actionsCount){case 0:return null;case 1:return this._singleAction;default:return this._renderedActionMenu}}get _renderedActionMenu(){let{item:e,messages:t}=this,i=t.options;return r`<calcite-action-menu appearance=transparent .label=${t.menu??""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end scale=s slot=actions-end @calciteActionMenuOpen=${this._onActionMenuOpen}><calcite-action icon=ellipsis scale=s slot=trigger .text=${i??""} title=${i??o}></calcite-action>${this._renderedActionMenuContent}</calcite-action-menu>`}get _renderedActionMenuContent(){return this._filteredSections.toArray().map(e=>r`<calcite-action-group>${e.toArray().map(t=>this._renderAction({action:t,textEnabled:!0}))}</calcite-action-group>`)}get _renderedCatalogFootprintIcon(){let{css:e}=this,t=this.item.layer,i=t?.type==="catalog-footprint",n=t?.type==="sublayer"&&x(t,"footprints");return"itemCatalogIcon"in e&&(i||n)?r`<calcite-icon class=${h(e.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`:null}get _renderedCatalogDynamicIcon(){let{css:e}=this,t=this.item.layer,i=t?.type==="catalog-dynamic-group",n=t?.type==="sublayer"&&x(t,"layers-in-view");return"itemCatalogIcon"in e&&(i||n)?r`<calcite-icon class=${h(e.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`:null}get _renderedCatalogSelectNode(){let{_title:e,item:t,hideCatalogLayerList:i}=this;if(!("visible"in t))return;let{layer:n}=t,s=n?.type==="catalog-dynamic-group";return i&&s?r`<calcite-action .disabled=${!n.visible} icon=chevron-right icon-flip-rtl @click=${()=>this._triggerOnCatalogOpen(t)} scale=s slot=actions-end .text=${e}></calcite-action>`:null}get _renderedChildList(){let{dragEnabled:e,item:t,rootGroupUid:i,listModeDisabled:n,selectionMode:s,displayMode:c}=this;if(!("children"in t))return;let l=[...this.parentTitles??[],t.title],{children:u,layer:d}=t,g=d?.type!=="catalog-dynamic-group"&&N(t),$=n?!1:k(d),m=d?.type==="group",_=!$&&!g&&e&&m,b=e?"childrenSortable"in t&&t.childrenSortable&&U(t):!1;return g||_?r`<calcite-list .canPull=${p=>this.canMove?this.canMove(p,"pull"):!1} .canPut=${p=>this.canMove?this.canMove(p,"put"):!1} data-item=${t??o} data-layer-type=${i??o} .displayMode=${c} .dragEnabled=${b} .group=${m?i:`${i}-${d?.uid}`} .label=${t.title} selection-appearance=border .selectionMode=${s}>${u?.filter(p=>!p.hidden&&(this.showErrors||!p.error)).toArray().map(p=>this._renderItem(p,t,l))}${this._renderedTablesItem}</calcite-list>`:null}get _hasTables(){let{layerTablesEnabled:e}=this,t=this.item.layer;if(!e||!t)return!1;switch(t.type){case"knowledge-graph":return e.includes(t.type)&&"tables"in t&&!!t.tables?.length;case"map-image":case"tile":return e.includes(t.type)&&"subtables"in t&&!!t.subtables?.length;default:return!1}}get _renderedTablesItem(){let{item:e,messages:t,css:i}=this,{layer:n}=e;return"itemTableIcon"in i&&"visible"in e&&"tables"in t&&this._hasTables?r`<calcite-list-item class=${h(i.item)} data-layer-id=${n?.id??o} drag-disabled .label=${t.tables} title=${t.tables??o} @calciteListItemSelect=${()=>this._triggerOnTablesOpen(e)}><calcite-icon class=${h(i.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`:null}get _renderedItemMessage(){let{item:e,messages:t,css:i}=this;return e.error?r`<div class=${h(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${"tableError"in t?t.tableError:t.layerError}</div></calcite-notice></div>`:"incompatible"in e&&e.incompatible&&"layerIncompatible"in t?r`<div class=${h(i.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${f(this._noticeRef)}><div slot=message>${t.layerIncompatible}</div></calcite-notice></div>`:null}get _singleAction(){return this._renderAction({action:q(this._filteredSections),textEnabled:!1})}get _filteredSections(){return this.item.actionsSections.map(e=>e.filter(t=>t.visible))}get _actionsCount(){return this.item.actionsSections.reduce((e,t)=>e+t.length,0)}async destroy(){await this.manager.destroy()}willUpdate(){this._itemRef.value&&this._focusSelectedDragEl(this._itemRef.value,this.item),this._noticeRef.value&&this._setTooltipReference(this._noticeRef.value)}updated(){this._itemRef.value&&this._focusSelectedDragEl(this._itemRef.value,this.item),this._noticeRef.value&&this._removeTooltipReference()}_onActionMenuOpen(e){this.item.actionsOpen=e.currentTarget.open}_setTooltipReference(e){this.handleTooltipReferenceChange?.(this.item.layer?.uid,e)}_removeTooltipReference(){this.handleTooltipReferenceChange?.(this.item.layer?.uid,null)}_triggerAction(e,t){!t||!e||(t.type==="toggle"&&(t.value=!t.value),this.handleAction(t,e))}_triggerOnTablesOpen(e){!e||!this.handleTablesOpen||this.handleTablesOpen(e)}_triggerOnCatalogOpen(e){e&&this.handleCatalogOpen?.(e)}_focusSelectedDragEl(e,t){this.selectedDragItemLayerUid===t.layer?.uid&&(w(e),this.handleSelectedDragItemLayerUidChange?.(null))}_handleCalciteListItemToggle(e,t){e.stopPropagation(),t.open=e.target.expanded}_getParentVisibilityMode(e){return e&&"visibilityMode"in e?e.visibilityMode:null}_handleCalciteListItemSelect(e,t,i){if(G(e.target)!==t)return;let n=this._getParentVisibilityMode(i);this.selectionMode!=="none"||n==="inherited"||this._toggleVisibility(t,i)}_togglePanel(e){e.open=!e.open,e.open&&this.handlePanelOpen()}_toggleVisibility(e,t){!e||!("visible"in e)||this._getParentVisibilityMode(t)==="exclusive"&&e.visible||(e.visible=!e.visible)}render(){let e=this.parentTitles??[],{_title:t,item:i,activeItem:n,selectionMode:s,selectedItems:c,messages:l,parent:u,css:d}=this,g="visibleAtCurrentTimeExtent"in i&&"layerInvisibleAtTime"in l&&!i.visibleAtCurrentTimeExtent?`${t} (${l.layerInvisibleAtTime})`:"visibleAtCurrentScale"in i&&"layerInvisibleAtScale"in l&&!i.visibleAtCurrentScale?`${t} (${l.layerInvisibleAtScale})`:t,$="parent"in i&&i.parent?.layer?.type==="catalog",{layer:m}=i,_="visibleAtCurrentScale"in i&&!i.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in i&&!i.visibleAtCurrentTimeExtent;return r`<calcite-list-item class=${h(y(d.item,"itemActive"in d&&{[d.itemActive]:n===i}))} data-item=${i??o} data-layer-id=${m?.id??o} .dragDisabled=${!("sortable"in i&&i.sortable)||$} id=${m?.uid??o} .label=${t} .metadata=${{parentTitles:e,_title:t}} .expanded=${"open"in i&&i.open} .selected=${s!=="none"?c.includes(i):!1} title=${g??o} .unavailable=${_} .value=${m?.uid} @calciteListItemSelect=${b=>"visible"in i&&this._handleCalciteListItemSelect(b,i,u)} @calciteListItemToggle=${b=>"open"in i&&this._handleCalciteListItemToggle(b,i)} ${f(this._itemRef)}>${this._renderedCatalogFootprintIcon}${this._renderedCatalogDynamicIcon}${this._renderedItemStatus}${this._renderedItemToggle}${this._renderedCatalogSelectNode}${this._renderedItemTemporaryIcon}${this._renderedChildList}${this._renderedItemMessage}${this._renderedPanel}${this._renderedPanelAction}${this._renderedActions}</calcite-list-item>`}_renderAction(e){let{item:t}=this,{action:i,textEnabled:n}=e;if(!i)return null;let{active:s,disabled:c,title:l,type:u,indicator:d}=i;return r`<calcite-action .active=${u==="toggle"?i.value:!1} data-action-id=${i.id??o} .disabled=${c} .icon=${I(i)} .indicator=${d} .loading=${s} @click=${()=>this._triggerAction(t,i)} scale=s slot=${(n?void 0:"actions-end")??o} .text=${l??""} .textEnabled=${n} title=${l??void 0??o}>${this._renderFallbackIcon(i)}</calcite-action>`}_renderFallbackIcon(e){let{css:t}=this,{icon:i}=e;if(i)return null;let n="image"in e?e.image:void 0,s={[t.itemActionImage]:!!n};return n?r`<span aria-hidden=true class=${h(y(t.itemActionIcon,s))} style=${A(L(n))}></span>`:null}_renderItem(e,t,i=[]){return r`<arcgis-layer-list-item .activeItem=${this.activeItem} .canMove=${this.canMove} .css=${this.css} .displayMode=${this.displayMode} .dragEnabled=${this.dragEnabled} .item=${e} .layerTablesEnabled=${this.layerTablesEnabled} .listModeDisabled=${this.listModeDisabled} .parent=${t} .parentTitles=${i} .rootGroupUid=${this.rootGroupUid} .selectedDragItemLayerUid=${this.selectedDragItemLayerUid} .selectedItems=${this.selectedItems} .selectionMode=${this.selectionMode} .visibilityAppearance=${this.visibilityAppearance} .handleAction=${this.handleAction} .handleCatalogOpen=${this.handleCatalogOpen} .handlePanelOpen=${this.handlePanelOpen} .handleSelectedDragItemLayerUidChange=${this.handleSelectedDragItemLayerUidChange} .handleTablesOpen=${this.handleTablesOpen} .handleTooltipReferenceChange=${this.handleTooltipReferenceChange} .hideCatalogLayerList=${this.hideCatalogLayerList} .showCloseButton=${this.showCloseButton} .showCollapseButton=${this.showCollapseButton} .showErrors=${this.showErrors} .showFilter=${this.showFilter} .showHeading=${this.showHeading} .hideStatusIndicators=${this.hideStatusIndicators} .showTemporaryLayerIndicators=${this.showTemporaryLayerIndicators} .showTemporaryTableIndicators=${this.showTemporaryTableIndicators}></arcgis-layer-list-item>`}};M("arcgis-layer-list-item",C);return C},"layers/catalog/catalogUtils",a,b,c,d)