@arcgis/map-components 5.0.8 → 5.0.10

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 (221) hide show
  1. package/dist/cdn/{RUNR4PHJ.js → 26UCEAP3.js} +1 -1
  2. package/dist/cdn/{WCBA3F5G.js → 2CD26SYH.js} +1 -1
  3. package/dist/cdn/2DXXZCIQ.js +2 -0
  4. package/dist/cdn/{DLCRIX3F.js → 2SVYHHVN.js} +1 -1
  5. package/dist/cdn/{7SBVVOP3.js → 34YLSNWS.js} +1 -1
  6. package/dist/cdn/{ZDMBWQNI.js → 3643BBK6.js} +1 -1
  7. package/dist/cdn/{TPGQZBGS.js → 3GVKFZWQ.js} +1 -1
  8. package/dist/cdn/{7BSE4Y2A.js → 3PY5Y64M.js} +1 -1
  9. package/dist/cdn/{HC3MHWTP.js → 3Q7XL7W7.js} +1 -1
  10. package/dist/cdn/{62PPRW5H.js → 3WARW7XG.js} +1 -1
  11. package/dist/cdn/{H5ZGEYHN.js → 3ZOV6BXY.js} +1 -1
  12. package/dist/cdn/{JY37VVM4.js → 444XIRZM.js} +1 -1
  13. package/dist/cdn/4DS724NP.js +2 -0
  14. package/dist/cdn/{FWLGMF7U.js → 4FTAIGTM.js} +1 -1
  15. package/dist/cdn/{IENGLEJA.js → 54IVMNFB.js} +1 -1
  16. package/dist/cdn/{OIXQVXVX.js → 57JWHCAH.js} +1 -1
  17. package/dist/cdn/5DWOHF4O.js +2 -0
  18. package/dist/cdn/{QK23OZPY.js → 5F2P2HHQ.js} +1 -1
  19. package/dist/cdn/{4QL2L5HG.js → 5GAZ5576.js} +1 -1
  20. package/dist/cdn/{DGBQDSJV.js → 5QQGD5IE.js} +1 -1
  21. package/dist/cdn/{64DLLWCT.js → 5R3MYPZN.js} +1 -1
  22. package/dist/cdn/{NJBN5VJA.js → 5RH2Q2XJ.js} +1 -1
  23. package/dist/cdn/{WB6NANDC.js → 5XL57S3R.js} +1 -1
  24. package/dist/cdn/{6Z5BZD4S.js → 6EWHBACJ.js} +1 -1
  25. package/dist/cdn/6NP6SP7N.js +2 -0
  26. package/dist/cdn/{452XJTUD.js → 6O2ZQG6K.js} +1 -1
  27. package/dist/cdn/{IPN4LJ7V.js → 6PR5ZAGE.js} +1 -1
  28. package/dist/cdn/{65GHL7AK.js → 6QVNN73N.js} +1 -1
  29. package/dist/cdn/{N46RUHPV.js → 73ADD2ST.js} +1 -1
  30. package/dist/cdn/{2ERUSYFG.js → 74OHXSLR.js} +1 -1
  31. package/dist/cdn/{CWTYBVDX.js → 7BL4R6UO.js} +1 -1
  32. package/dist/cdn/{32Q5BYKS.js → 7HU5L4UW.js} +1 -1
  33. package/dist/cdn/{NXMSFJ7A.js → 7LO5AUFO.js} +1 -1
  34. package/dist/cdn/{FRQBH455.js → 7UM3MUX2.js} +1 -1
  35. package/dist/cdn/{G5CFCDWX.js → 7W7KIY47.js} +1 -1
  36. package/dist/cdn/{XFRWBORH.js → A2JM7YOI.js} +1 -1
  37. package/dist/cdn/{BNQQ7JMQ.js → A67UIGNH.js} +1 -1
  38. package/dist/cdn/{QLKVY23N.js → A7DUC33A.js} +1 -1
  39. package/dist/cdn/{RMXIPB4F.js → AVFJRQFL.js} +1 -1
  40. package/dist/cdn/{QOYZ3JEZ.js → AWQ5JJQ2.js} +1 -1
  41. package/dist/cdn/{QIVD6SID.js → AXRMZ7U6.js} +1 -1
  42. package/dist/cdn/{ZAXHNBK4.js → B4U3EWER.js} +1 -1
  43. package/dist/cdn/{6FKMR33M.js → B65SDLV4.js} +1 -1
  44. package/dist/cdn/{MS7JRJ6R.js → BHM5WW5A.js} +1 -1
  45. package/dist/cdn/{CVVCPCHQ.js → BLTDBKUR.js} +1 -1
  46. package/dist/cdn/{DAXUZZYI.js → BU3L3NMX.js} +1 -1
  47. package/dist/cdn/{OJS2HGOV.js → BUL44EC3.js} +1 -1
  48. package/dist/cdn/{SKTGMQNL.js → C6AF4MSP.js} +1 -1
  49. package/dist/cdn/{7VUB7AFJ.js → CKYQURFS.js} +1 -1
  50. package/dist/cdn/{HX5VKOH7.js → CRZ4HTQ7.js} +1 -1
  51. package/dist/cdn/{L7U7JQYH.js → CX6UPSNM.js} +1 -1
  52. package/dist/cdn/{EZNR44ZZ.js → CXOB4PZV.js} +1 -1
  53. package/dist/cdn/CZQ5NDPB.js +2 -0
  54. package/dist/cdn/{VRQRANLV.js → DMKJ6K6T.js} +1 -1
  55. package/dist/cdn/{C4OFSKWZ.js → EB57QKAY.js} +1 -1
  56. package/dist/cdn/{RLGD7QFK.js → ED3L6FYZ.js} +1 -1
  57. package/dist/cdn/{KLUJHBJX.js → EJESLMSS.js} +1 -1
  58. package/dist/cdn/{JQA7633S.js → EKVMZYRA.js} +1 -1
  59. package/dist/cdn/{5226JY7U.js → EN5UJU7M.js} +1 -1
  60. package/dist/cdn/{Y6QLR3JD.js → ERBWWZQA.js} +1 -1
  61. package/dist/cdn/{33YWYJ4B.js → ET47SHS3.js} +1 -1
  62. package/dist/cdn/{2WZ3RMR7.js → EWEYUKDY.js} +1 -1
  63. package/dist/cdn/{GYOEIXYM.js → FAXGMRG4.js} +1 -1
  64. package/dist/cdn/{M2MYLPEX.js → FBRFXPYT.js} +1 -1
  65. package/dist/cdn/{DZXBV52D.js → FIBOLFW6.js} +1 -1
  66. package/dist/cdn/{VF5OXNNE.js → FLJEHVGP.js} +1 -1
  67. package/dist/cdn/FMALIUO4.js +2 -0
  68. package/dist/cdn/{OEEM2YOU.js → FMKDJBHO.js} +1 -1
  69. package/dist/cdn/{KH3CK4NM.js → FPYYHVUG.js} +1 -1
  70. package/dist/cdn/{MYPHE7JL.js → FQERYING.js} +1 -1
  71. package/dist/cdn/{BXEQ2GR7.js → FQGSB7BH.js} +1 -1
  72. package/dist/cdn/{WUDIJWPW.js → FTLFLDIB.js} +1 -1
  73. package/dist/cdn/{A5GHD7L7.js → FWBUBKS7.js} +1 -1
  74. package/dist/cdn/{GNF5NJB7.js → G52VTWWT.js} +1 -1
  75. package/dist/cdn/{KBXRLSRQ.js → G53QNLVP.js} +1 -1
  76. package/dist/cdn/{R4BFR6CR.js → G73P2REW.js} +1 -1
  77. package/dist/cdn/{LNKIDH5D.js → GGQGE7ZF.js} +1 -1
  78. package/dist/cdn/{QITFIJJH.js → GLGLU47Q.js} +1 -1
  79. package/dist/cdn/{ARB7ESUF.js → H2WPK23B.js} +1 -1
  80. package/dist/cdn/{MRRD3ZPK.js → H7QIL2RM.js} +1 -1
  81. package/dist/cdn/{E4NS5EP3.js → H7WGDHML.js} +1 -1
  82. package/dist/cdn/{43SFYWBA.js → HCVJLZP6.js} +1 -1
  83. package/dist/cdn/{PTX37QR4.js → HE2EMIPI.js} +1 -1
  84. package/dist/cdn/{OIPOVOS7.js → HIP6RFN2.js} +1 -1
  85. package/dist/cdn/{JW4IYKZW.js → HMJE37EF.js} +1 -1
  86. package/dist/cdn/{KS2NA752.js → IJ5E43JT.js} +1 -1
  87. package/dist/cdn/{NQ7AJXP5.js → IPUTUWHD.js} +1 -1
  88. package/dist/cdn/{ZLYS2U4C.js → IQI6KCQH.js} +1 -1
  89. package/dist/cdn/{NZEXJWD3.js → IRVSV5KJ.js} +1 -1
  90. package/dist/cdn/{GCJHT65W.js → ISKWJGGD.js} +1 -1
  91. package/dist/cdn/{4HIKXNLJ.js → IUT2VFA4.js} +1 -1
  92. package/dist/cdn/{YLCINN3O.js → IVLODVOE.js} +1 -1
  93. package/dist/cdn/{GHNGYP3W.js → JJNMGYIF.js} +1 -1
  94. package/dist/cdn/JR6VM7VT.js +2 -0
  95. package/dist/cdn/{3QMAQRDF.js → JTWSHWNO.js} +1 -1
  96. package/dist/cdn/{ZRR7SK7S.js → JTWYBRTA.js} +1 -1
  97. package/dist/cdn/{QDB572U4.js → JXDYG2IQ.js} +1 -1
  98. package/dist/cdn/{SUKF2DNP.js → JZLBVTTJ.js} +1 -1
  99. package/dist/cdn/{4QLSHCCH.js → K42GGHFW.js} +1 -1
  100. package/dist/cdn/{FDCGR4B4.js → K6GXXW3D.js} +1 -1
  101. package/dist/cdn/{I3EZXW2U.js → KCSDUZEW.js} +1 -1
  102. package/dist/cdn/{ZCZAVJTC.js → KM32PCCD.js} +1 -1
  103. package/dist/cdn/{GEEP3X2Y.js → KTFH4OMN.js} +1 -1
  104. package/dist/cdn/{AYFGP5ZN.js → KXW5VKYX.js} +1 -1
  105. package/dist/cdn/{2KLBPWCO.js → KYPWKQTO.js} +1 -1
  106. package/dist/cdn/{3AJGQWWJ.js → MCGJBF6G.js} +1 -1
  107. package/dist/cdn/{PAIWJPLK.js → MIX2NW3K.js} +1 -1
  108. package/dist/cdn/{FKAXOX2G.js → MKIJ4OO6.js} +1 -1
  109. package/dist/cdn/{BXMF7CDZ.js → MTX42FRB.js} +1 -1
  110. package/dist/cdn/{ZZDZPOW3.js → N7JNITFB.js} +1 -1
  111. package/dist/cdn/{3XA7FNHU.js → NDOU6XUL.js} +1 -1
  112. package/dist/cdn/{BLRU43VQ.js → NJUXKUDJ.js} +1 -1
  113. package/dist/cdn/NM6TCMXU.js +2 -0
  114. package/dist/cdn/{V5KZVJFN.js → NQRQEZLD.js} +1 -1
  115. package/dist/cdn/{TM62FNIH.js → O62ODZW4.js} +1 -1
  116. package/dist/cdn/{AJAD4RUP.js → O75XVQT5.js} +1 -1
  117. package/dist/cdn/OHQWZMXB.js +2 -0
  118. package/dist/cdn/{NIIMT3SS.js → OIRQX4K4.js} +1 -1
  119. package/dist/cdn/{H6NJXUN6.js → OMFGZXZL.js} +1 -1
  120. package/dist/cdn/{AGBHCVRA.js → OSIIOSSS.js} +1 -1
  121. package/dist/cdn/{4MJ6RR6C.js → OXWTHPY6.js} +1 -1
  122. package/dist/cdn/{UPJWDEDA.js → OZS77YEK.js} +1 -1
  123. package/dist/cdn/{BWSEQK6S.js → P7P7J36T.js} +1 -1
  124. package/dist/cdn/{V7B4YUMV.js → PEZSSXWS.js} +1 -1
  125. package/dist/cdn/{L4TUBH7W.js → PLZPYBQR.js} +1 -1
  126. package/dist/cdn/{O2CHOEOT.js → POD3MFGZ.js} +1 -1
  127. package/dist/cdn/{CWMCSQSK.js → PWV6D2SL.js} +1 -1
  128. package/dist/cdn/Q3G44O4X.js +2 -0
  129. package/dist/cdn/{PF2QXZ63.js → Q5O3TAIF.js} +1 -1
  130. package/dist/cdn/{RS7XEIXD.js → Q76ESOVF.js} +1 -1
  131. package/dist/cdn/{AWIUYN3W.js → QEFULS3X.js} +1 -1
  132. package/dist/cdn/{A3ZA5MCJ.js → QIJP3J5Z.js} +1 -1
  133. package/dist/cdn/{OMUYJPC3.js → QNFTWF3H.js} +1 -1
  134. package/dist/cdn/{UQN4KPNM.js → R3IRIYO5.js} +1 -1
  135. package/dist/cdn/{IB2J54RM.js → R4CKGCKN.js} +1 -1
  136. package/dist/cdn/{DJ3SEHH7.js → REPV7Y3Z.js} +1 -1
  137. package/dist/cdn/{AXFOWKQN.js → RMKR32JP.js} +1 -1
  138. package/dist/cdn/{VUEBCRTT.js → RT4IDHHI.js} +1 -1
  139. package/dist/cdn/{QUMXEH6O.js → RUOVJOLE.js} +1 -1
  140. package/dist/cdn/{YRRD6IOX.js → RWOVJDSP.js} +1 -1
  141. package/dist/cdn/{THWXFLFI.js → RZMAT6ZB.js} +1 -1
  142. package/dist/cdn/{QDM5XPXZ.js → S75CBWY7.js} +1 -1
  143. package/dist/cdn/{LGKCESB4.js → SLZSHM5D.js} +1 -1
  144. package/dist/cdn/{U2AWOURC.js → SQ4TM5PR.js} +1 -1
  145. package/dist/cdn/{I2JJUUZQ.js → SUC5V273.js} +1 -1
  146. package/dist/cdn/{LU6GBARZ.js → TCLV7Q7J.js} +1 -1
  147. package/dist/cdn/{UPEU3R2L.js → TMXXSKKH.js} +1 -1
  148. package/dist/cdn/{F3QMZQEN.js → TMY6KO4C.js} +1 -1
  149. package/dist/cdn/{YK2NREJU.js → U2E3O2S4.js} +1 -1
  150. package/dist/cdn/{4VANT2H2.js → U67IMY5G.js} +1 -1
  151. package/dist/cdn/{4Y5ZV64K.js → UIII7DGV.js} +1 -1
  152. package/dist/cdn/{M2M7DHX2.js → UJC6SFYK.js} +1 -1
  153. package/dist/cdn/{TX2C55A4.js → ULULSU27.js} +1 -1
  154. package/dist/cdn/{6KELW6YE.js → URLJ4O3R.js} +1 -1
  155. package/dist/cdn/{E52S65JA.js → VBIZIGF3.js} +1 -1
  156. package/dist/cdn/{JADRITCD.js → VDKAGGLJ.js} +1 -1
  157. package/dist/cdn/{HM67OIIC.js → VHCWNQVT.js} +1 -1
  158. package/dist/cdn/{IPMDK4MT.js → VKQ2KPFK.js} +1 -1
  159. package/dist/cdn/{WH46XXVN.js → VNNHQTF5.js} +1 -1
  160. package/dist/cdn/{3UQI2KLK.js → VOC4AMMN.js} +1 -1
  161. package/dist/cdn/{RL3YYALU.js → VQT7BSXU.js} +1 -1
  162. package/dist/cdn/{P6WTQUAO.js → W2BFLHN5.js} +1 -1
  163. package/dist/cdn/{LDESQMMT.js → W3JGBX2V.js} +1 -1
  164. package/dist/cdn/{O2756ASS.js → WJ5C5UAU.js} +1 -1
  165. package/dist/cdn/{YCCZLRZB.js → WNUQWTS5.js} +1 -1
  166. package/dist/cdn/{SQ2BHLMX.js → WOEZ7IZP.js} +1 -1
  167. package/dist/cdn/{3MNBJANP.js → X562IF4C.js} +1 -1
  168. package/dist/cdn/{IE2YLVLQ.js → XAXPEQ52.js} +1 -1
  169. package/dist/cdn/{5HY425PW.js → XFS62KN4.js} +1 -1
  170. package/dist/cdn/{HEUVUMO7.js → XGBC6MSH.js} +1 -1
  171. package/dist/cdn/{X2MXOMPH.js → XQOKECHI.js} +1 -1
  172. package/dist/cdn/{4K34BUTQ.js → XTTUQ2RA.js} +1 -1
  173. package/dist/cdn/{K6KI46YC.js → XV5BKEEX.js} +1 -1
  174. package/dist/cdn/{JTB4D5Y2.js → Y5XRMGH4.js} +1 -1
  175. package/dist/cdn/{VF3Q4EFN.js → Y7E4JKAI.js} +1 -1
  176. package/dist/cdn/{LNKGOWH7.js → YA6XYOU6.js} +1 -1
  177. package/dist/cdn/{AKBJKSH3.js → YSPMYODD.js} +1 -1
  178. package/dist/cdn/{2BKO4X64.js → YVIMCR3P.js} +1 -1
  179. package/dist/cdn/{BGCXNQ5U.js → YXT4NNLG.js} +1 -1
  180. package/dist/cdn/{2PSYTKRG.js → ZGXLR24C.js} +1 -1
  181. package/dist/cdn/{CQ4OP5KR.js → ZHVC4UBZ.js} +1 -1
  182. package/dist/cdn/{G6Z2GTC7.js → ZI7LN2XU.js} +1 -1
  183. package/dist/cdn/{V64WJLLP.js → ZTQHMZWL.js} +1 -1
  184. package/dist/cdn/{57QXQ42V.js → ZWFVPETR.js} +1 -1
  185. package/dist/cdn/index.js +1 -1
  186. package/dist/chunks/runtime.js +1 -1
  187. package/dist/chunks/slots.js +4 -4
  188. package/dist/chunks/useArcgisViewReadyError.js +6 -6
  189. package/dist/components/arcgis-daylight/customElement.js +132 -132
  190. package/dist/components/arcgis-feature-table/customElement.js +1 -1
  191. package/dist/components/arcgis-features/customElement.js +5 -5
  192. package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +20 -19
  193. package/dist/components/arcgis-search/customElement.js +1 -1
  194. package/dist/components/arcgis-shadow-cast/customElement.js +34 -34
  195. package/dist/components/arcgis-slice/customElement.js +5 -4
  196. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +9 -0
  197. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +4 -4
  198. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +5 -0
  199. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +3 -3
  200. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +5 -0
  201. package/dist/components/arcgis-utility-network-trace-results/customElement.js +3 -3
  202. package/dist/docs/api.json +1 -1
  203. package/dist/docs/docs.json +1 -1
  204. package/dist/docs/vscode.html-custom-data.json +1 -1
  205. package/dist/docs/web-types.json +1 -1
  206. package/dist/loader.js +3 -3
  207. package/dist/types/lumina.d.ts +3 -3
  208. package/dist/types/preact.d.ts +3 -3
  209. package/dist/types/react.d.ts +3 -3
  210. package/dist/types/stencil.d.ts +3 -3
  211. package/package.json +4 -4
  212. package/dist/cdn/BC5B7PGD.js +0 -2
  213. package/dist/cdn/J3TV3V5W.js +0 -2
  214. package/dist/cdn/LFH2LJU7.js +0 -2
  215. package/dist/cdn/LTDNG7YS.js +0 -2
  216. package/dist/cdn/MI2C6GGG.js +0 -2
  217. package/dist/cdn/MPTRSZMX.js +0 -2
  218. package/dist/cdn/N4RWJWIQ.js +0 -2
  219. package/dist/cdn/QT5JEHEL.js +0 -2
  220. package/dist/cdn/UPP7IN72.js +0 -2
  221. package/dist/cdn/W5ABTJHB.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as x}from"./QIVD6SID.js";import"./M2M7DHX2.js";import j from"./65GHL7AK.js";import{a as _}from"./UQN4KPNM.js";import{a as s}from"./DHVEHATY.js";import i from"./IE2YLVLQ.js";import e from"./DAXUZZYI.js";import{g as v}from"./THWXFLFI.js";import"./WUDIJWPW.js";import b from"./KTDXN3YM.js";import{b as w}from"./ZNBKMZP7.js";import{O as h,P as c,Q as f,R as d,U as u,a as g,b as a,x as m}from"./E52S65JA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{when:M},$,,,,b])=>{var B=g`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.root{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.root .loader:before,.root .loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.root{width:280px;max-height:80vh}.ui-corner calcite-panel>.root.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.root,.view-width-greater-than-large .ui-corner>.root{width:450px}@container (width<=200px) or (width>=350px){.root .item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`,R=b($),l={small:200,default:280,wide:435},p=class extends h{constructor(){super(...arguments),this.messages=_({}),this.viewModel=R(this),this._width=0,this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.disabled=!1,this.headingLevel=2,this.icon="basemap",this.label="",this.source=this.viewModel.source,this.state=this.viewModel.state,this.arcgisPropertyChange=v()("activeBasemap","state"),this.arcgisReady=m()}static{this.properties={_width:16,view:0,activeBasemap:1,autoDestroyDisabled:5,disabled:7,headingLevel:9,icon:1,label:1,messageOverrides:0,referenceElement:1,source:0,state:32}}static{this.styles=B}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[M(()=>this.source,()=>{this.viewModel.loadSource()},{sync:!0,initial:!0}),(()=>{let i=new ResizeObserver(t=>{for(let r of t)this._width=r.contentRect.width}),e=this.el;return e&&i.observe(e),{remove(){i?.disconnect()}}})()])}_getRoundRobinIndex(i,e){return(i+e)%e}_handleKeyDown(i){let{key:e}=i;if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e))return;i.preventDefault();let{items:t,activeBasemapIndex:r}=this.viewModel,o=e==="ArrowUp"||e==="ArrowLeft"?this._getRoundRobinIndex(Math.max(r-1,-1),t.length):this._getRoundRobinIndex(r+1,t.length),n=t.at(o);n?.state==="ready"&&(this.viewModel.activeBasemap=n.basemap)}render(){let i=this.source.state==="loading",e=this.disabled||this.state==="disabled",t=this.viewModel.items,r={"source-loading":i,[s.disabled]:e},o=this._width;r["layout-grid"]=o>=l.wide||o<=l.small,r["narrow-items"]=o<l.default;let n=i?a`<div class="loader"></div>`:null,y=i?null:t.length>0?a`<div aria-disabled=${this.disabled??d} aria-label=${this.label??d} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${t.map((k,z)=>a`<arcgis-basemap-gallery-item .disabled=${e} .item=${k} .itemIndex=${z} .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-basemap-gallery-item>`)}</div>`:a`<div class=${c(s.empty)}>${x({level:this.headingLevel,children:this.messages.noBasemaps})}</div>`;return a`<div class=${c(w("root",s.widget,s.panel,r))} style=${f({"--esri-basemap-gallery-small":`${l.small}px`})}>${[n,y]}</div>`}};u("arcgis-basemap-gallery",p);return p},"core/reactiveUtils","widgets/BasemapGallery/BasemapGalleryViewModel",b,e,i,j)
2
+ import{a as x}from"./AXRMZ7U6.js";import"./UJC6SFYK.js";import j from"./6QVNN73N.js";import{a as _}from"./R3IRIYO5.js";import{a as s}from"./DHVEHATY.js";import i from"./XAXPEQ52.js";import e from"./BU3L3NMX.js";import{g as v}from"./RZMAT6ZB.js";import"./FTLFLDIB.js";import b from"./KTDXN3YM.js";import{b as w}from"./ZNBKMZP7.js";import{O as h,P as c,Q as f,R as d,U as u,a as g,b as a,x as m}from"./VBIZIGF3.js";import"./ALDX5YZO.js";export default $arcgis.t(([{when:M},$,,,,b])=>{var B=g`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex;width:var(--arcgis-internal-panel-width, 300px)}:host(:focus-within){z-index:1;outline-offset:var(--calcite-spacing-base);outline:var(--calcite-spacing-base) solid var(--calcite-color-brand)}.root{position:relative;overflow-y:auto;container-type:inline-size;width:100%;min-height:32px;transition:max-height .25s ease-in-out}.root .loader:before,.root .loader:after{opacity:1;content:"";height:var(--calcite-spacing-px);transition:opacity .5s ease-in-out;position:absolute;top:0}.root .loader:before{z-index:0;background-color:var(--calcite-color-foreground-1);width:100%}.root .loader:after{z-index:0;background-color:var(--calcite-color-foreground-3);width:20%;animation:1.5s linear infinite looping-progresss-bar-ani}.esri-disabled arcgis-basemap-gallery-item{opacity:var(--calcite-opacity-light);pointer-events:none;animation:none}.empty-message{padding:12px 15px;animation:.5s ease-in-out esri-fade-in}.loader{width:100%;height:var(--calcite-spacing-base);animation:.5s ease-in-out esri-fade-in;position:absolute;top:0;left:0;right:0}.item-container{flex-flow:column;gap:3px;margin:0;padding-block:3px;padding-inline:3px;list-style:none;transition:opacity .25s ease-in-out;display:flex;position:relative}calcite-popover>.root{width:280px;max-height:80vh}.ui-corner calcite-panel>.root.widget.widget--panel{width:unset}.view-width-greater-than-large calcite-popover>.root,.view-width-greater-than-large .ui-corner>.root{width:450px}@container (width<=200px) or (width>=350px){.root .item-container{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:var(--calcite-spacing-md) var(--calcite-spacing-lg);padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg);display:grid}}`,R=b($),l={small:200,default:280,wide:435},p=class extends h{constructor(){super(...arguments),this.messages=_({}),this.viewModel=R(this),this._width=0,this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.disabled=!1,this.headingLevel=2,this.icon="basemap",this.label="",this.source=this.viewModel.source,this.state=this.viewModel.state,this.arcgisPropertyChange=v()("activeBasemap","state"),this.arcgisReady=m()}static{this.properties={_width:16,view:0,activeBasemap:1,autoDestroyDisabled:5,disabled:7,headingLevel:9,icon:1,label:1,messageOverrides:0,referenceElement:1,source:0,state:32}}static{this.styles=B}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[M(()=>this.source,()=>{this.viewModel.loadSource()},{sync:!0,initial:!0}),(()=>{let i=new ResizeObserver(t=>{for(let r of t)this._width=r.contentRect.width}),e=this.el;return e&&i.observe(e),{remove(){i?.disconnect()}}})()])}_getRoundRobinIndex(i,e){return(i+e)%e}_handleKeyDown(i){let{key:e}=i;if(!["ArrowUp","ArrowDown","ArrowRight","ArrowLeft"].includes(e))return;i.preventDefault();let{items:t,activeBasemapIndex:r}=this.viewModel,o=e==="ArrowUp"||e==="ArrowLeft"?this._getRoundRobinIndex(Math.max(r-1,-1),t.length):this._getRoundRobinIndex(r+1,t.length),n=t.at(o);n?.state==="ready"&&(this.viewModel.activeBasemap=n.basemap)}render(){let i=this.source.state==="loading",e=this.disabled||this.state==="disabled",t=this.viewModel.items,r={"source-loading":i,[s.disabled]:e},o=this._width;r["layout-grid"]=o>=l.wide||o<=l.small,r["narrow-items"]=o<l.default;let n=i?a`<div class="loader"></div>`:null,y=i?null:t.length>0?a`<div aria-disabled=${this.disabled??d} aria-label=${this.label??d} class="item-container" @keydown=${this._handleKeyDown} role=radiogroup>${t.map((k,z)=>a`<arcgis-basemap-gallery-item .disabled=${e} .item=${k} .itemIndex=${z} .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-basemap-gallery-item>`)}</div>`:a`<div class=${c(s.empty)}>${x({level:this.headingLevel,children:this.messages.noBasemaps})}</div>`;return a`<div class=${c(w("root",s.widget,s.panel,r))} style=${f({"--esri-basemap-gallery-small":`${l.small}px`})}>${[n,y]}</div>`}};u("arcgis-basemap-gallery",p);return p},"core/reactiveUtils","widgets/BasemapGallery/BasemapGalleryViewModel",b,e,i,j)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{O as s,U as r,b as a}from"./E52S65JA.js";import"./ALDX5YZO.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"./VBIZIGF3.js";import"./ALDX5YZO.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.0/LICENSE.txt */
2
- import{c as m}from"./W5ABTJHB.js";import{b as r,e as c}from"./THWXFLFI.js";import{a as u}from"./ZNBKMZP7.js";import{M as h,b as a,x as i,z as l}from"./E52S65JA.js";export default $arcgis.t(([{when:E,watch:g}])=>{var d=class extends l{constructor(t){super(t),this.direction=c(),this.popupRef=h(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[E(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),E(()=>this.component.view.popup?.visible,()=>{this.popupElement?.open&&(this.popupElement.open=!1)})]}async openPopup(t){if(this._assignDefaultPopup(),this.closePopup(),this.popupElement){await this.popupElement.componentOnReady(),this.popupElement.open=!0;let{fetchFeatures:o}=t;delete t.fetchFeatures,Object.assign(this.popupElement,t),o&&this.popupElement.fetchFeatures()}else await this.component.view.openPopup(t)}closePopup(){this.popupElement&&(this.popupElement.open=!1),this.component.view.closePopup()}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this._assignDefaultPopup(),this.popupElement&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupElement.handleViewClick(t);e?.length&&this.openPopup({location:o,promises:e})}}_handlePopupSlotChange(t){let o=u(t.target,"arcgis-popup");!this.popupElement&&o.length?this.popupElement=o[0]:o.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return m({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,handlePopupSlotChange:t=>this._handlePopupSlotChange(t),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}},_=r((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>{let{map:e}=p;if(!e||e.destroyed)return[];let n=[];return e.loadError&&n.push(e),e.basemap?.loadError&&n.push(e.basemap),e.ground.loadError&&n.push(e.ground),[...e.allLayers,...e.allTables].forEach(s=>{s.loadError&&n.push(s)}),n},e=>{e.length&&(p.loadErrorSources=e,o.emit())})),o}),L=r((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>p.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:d,b:_,c:L}},"core/reactiveUtils")
2
+ import{c as m}from"./NM6TCMXU.js";import{b as s,e as c}from"./RZMAT6ZB.js";import{a as u}from"./ZNBKMZP7.js";import{M as h,b as a,x as i,z as l}from"./VBIZIGF3.js";export default $arcgis.t(([{when:E,watch:g}])=>{var d=class extends l{constructor(t){super(t),this.direction=c(),this.popupRef=h(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[E(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),E(()=>this.component.view.popup?.visible,()=>{this.popupElement?.open&&(this.popupElement.open=!1)})]}async openPopup(t){if(this._assignDefaultPopup(),this.closePopup(),this.popupElement){await this.popupElement.componentOnReady(),this.popupElement.open=!0;let{fetchFeatures:o}=t;delete t.fetchFeatures,Object.assign(this.popupElement,t),o&&this.popupElement.fetchFeatures()}else await this.component.view.openPopup(t)}closePopup(){this.popupElement&&(this.popupElement.open=!1),this.component.view.closePopup()}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this._assignDefaultPopup(),this.popupElement&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupElement.handleViewClick(t);e?.length?this.openPopup({location:o,promises:e}):this.popupElement.open&&this.closePopup()}}_handlePopupSlotChange(t){let o=u(t.target,"arcgis-popup");!this.popupElement&&o.length?this.popupElement=o[0]:o.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return m({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,handlePopupSlotChange:t=>this._handlePopupSlotChange(t),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}},_=s((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>{let{map:e}=p;if(!e||e.destroyed)return[];let n=[];return e.loadError&&n.push(e),e.basemap?.loadError&&n.push(e.basemap),e.ground.loadError&&n.push(e.ground),[...e.allLayers,...e.allTables].forEach(r=>{r.loadError&&n.push(r)}),n},e=>{e.length&&(p.loadErrorSources=e,o.emit())})),o}),L=s((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>p.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:d,b:_,c:L}},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{b as u}from"./ZNBKMZP7.js";import{O as m,P as f,R as h,U as x,a as p,b as s}from"./E52S65JA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{whenOnce:$},{addProxy:w}])=>{var v=(r,e,i=!1)=>{if(!r||!e)return!1;let t=new URL(r),o=new URL(e);return!i&&t.protocol!==o.protocol||t.host==null||o.host==null?!1:t.host.toLowerCase()===o.host.toLowerCase()&&t.port===o.port};var b=p`.export-section{padding:var(--calcite-spacing-xxs)}.export-section-centered{text-align:center}.exported-files-empty{display:flex;flex-direction:column;align-items:center;padding:var(--calcite-spacing-lg) var(--calcite-spacing-sm);font-size:small}.exported-files-title{font-weight:700;font-size:var(--calcite-font-size)}.exported-file{display:flex;align-items:center;justify-content:space-between}.exported-file-link-title,.exported-file-link-description{word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}`;function L(r){let{state:e,extension:i}=r;switch(e){case"pending":return"spinner";case"error":return"exclamation-mark-circle";default:return i?.toLowerCase()?.includes("pdf")?"file-pdf":"file"}}function g(r,e){return!r||r==="all"||!!(e&&r.includes(e))}var c=class extends m{constructor(){super(...arguments),this._handleLinkClick=e=>{if(e?.state!=="ready"||!e.url)return;let i=e.url,t=document.createElement("a");t.target="_blank",t.href=i,t.rel="noreferrer",t.download=e.formattedName??"";{t.click();return}}}static{this.properties={showSaveAs:5,viewModel:0,messages:0,allowedFormatsForSaving:1,arcgisSaveAs:0}}static{this.styles=b}loaded(){this.manager.onLifecycle(()=>[this.viewModel.exportedLinks.on("change",()=>this.requestUpdate())])}render(){let e=this.viewModel.exportedLinks,i={"export-section-centered":!e.length};return s`<section class=${f(u("export-section",i))}>${e.length===0?s`<div class="exported-files-empty"><calcite-icon icon=file scale=l></calcite-icon><div><p class="exported-files-title">${this.messages.noExportedFiles}</p><div>${this.messages.exportHint}</div></div></div>`:s`<calcite-list .filterEnabled=${e.length>10} .label=${this.messages.exportedLinksList} selection-mode=none>${e.map(t=>s`<calcite-list-item .label=${t.formattedName??""}>${this._renderExportedLinkItemContent(t)}${this._renderExportedLinkItemIcon(t)}${this._renderExportedLinkItemAction(t)}</calcite-list-item>${this._renderExportedLinkItemPopover(t)}`)}</calcite-list>`}</section>`}_renderExportedLinkItemPopover(e){let i=this.messages,t=e.formattedName??"",{state:o}=e,a=this.showSaveAs&&o!=="error"&&g(this.allowedFormatsForSaving,e.extension);return o!=="pending"&&a?s`<calcite-popover auto-close label=Popover offset-distance=1 overlay-positioning=fixed pointer-disabled .referenceElement=${`${t}-popover-button`} scale=s><calcite-list label>${e.portalItem?s`<calcite-list-item .label=${i.openItem} @calciteListItemSelect=${()=>{let l=e.portalItem;if(!l?.itemPageUrl)return;let n=document.createElement("a");n.target="_blank",n.href=l.itemPageUrl,n.rel="noreferrer",n.click()}}><calcite-icon icon=launch2 scale=s slot=content-start></calcite-icon></calcite-list-item>`:s`<calcite-list-item .label=${i.saveAs} @calciteListItemSelect=${async()=>{$(()=>e.portalItem).then(l=>{l.itemPageUrl&&this.requestUpdate()}),this.arcgisSaveAs.emit(e)}}><calcite-icon icon=save scale=s slot=content-start></calcite-icon></calcite-list-item>`}<calcite-list-item label=Delete @calciteListItemSelect=${()=>this.viewModel.exportedLinks.remove(e)}><calcite-icon icon=trash scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-popover>`:null}_renderExportedLinkItemContent(e){let i=this.messages,{url:t,state:o,error:a}=e,l=e.formattedName??"",n=t||null;n&&(n=w(n));let d=v(n,document.location.href),k=o==="error"?a?.name==="print-task:cim-symbol-unsupported"?i.exportWebMapCIMError:i.exportWebMapError:null;return s`<div class="exported-file" slot=content @click=${()=>this._handleLinkClick(e)}><div><div class="exported-file-link-title">${l}</div><div class="exported-file-link-description">${o==="pending"?i.generatingExport:k||(d?i.ready:i.linkReady)}</div></div>${o==="ready"?s`<calcite-icon .ariaLabel=${`${l}. ${i.linkReady}`} .icon=${d?"download-to":"launch"} scale=s slot=content-end></calcite-icon>`:null}</div>`}_renderExportedLinkItemIcon(e){return e.state==="pending"?s`<calcite-loader inline .label=${this.messages.generatingExport} scale=m slot=content-start></calcite-loader>`:s`<calcite-icon .icon=${L(e)} scale=s slot=content-start></calcite-icon>`}_renderExportedLinkItemAction(e){let{state:i}=e,t=e.formattedName??"",o=this.showSaveAs&&i!=="error"&&g(this.allowedFormatsForSaving,e.extension);return i!=="pending"?s`<calcite-action .icon=${o?"ellipsis":"x"} id=${(o?`${t}-popover-button`:void 0)??h} @click=${o?void 0:()=>{this.viewModel.exportedLinks.remove(e)}} slot=actions-end .text=${o?"options":"remove"}></calcite-action>`:null}};x("arcgis-print-exports-panel",c);return c},"core/reactiveUtils","core/urlUtils")
2
+ import{b as u}from"./ZNBKMZP7.js";import{O as m,P as f,R as h,U as x,a as p,b as s}from"./VBIZIGF3.js";import"./ALDX5YZO.js";export default $arcgis.t(([{whenOnce:$},{addProxy:w}])=>{var v=(r,e,i=!1)=>{if(!r||!e)return!1;let t=new URL(r),o=new URL(e);return!i&&t.protocol!==o.protocol||t.host==null||o.host==null?!1:t.host.toLowerCase()===o.host.toLowerCase()&&t.port===o.port};var b=p`.export-section{padding:var(--calcite-spacing-xxs)}.export-section-centered{text-align:center}.exported-files-empty{display:flex;flex-direction:column;align-items:center;padding:var(--calcite-spacing-lg) var(--calcite-spacing-sm);font-size:small}.exported-files-title{font-weight:700;font-size:var(--calcite-font-size)}.exported-file{display:flex;align-items:center;justify-content:space-between}.exported-file-link-title,.exported-file-link-description{word-wrap:break-word;word-break:break-all;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical}`;function L(r){let{state:e,extension:i}=r;switch(e){case"pending":return"spinner";case"error":return"exclamation-mark-circle";default:return i?.toLowerCase()?.includes("pdf")?"file-pdf":"file"}}function g(r,e){return!r||r==="all"||!!(e&&r.includes(e))}var c=class extends m{constructor(){super(...arguments),this._handleLinkClick=e=>{if(e?.state!=="ready"||!e.url)return;let i=e.url,t=document.createElement("a");t.target="_blank",t.href=i,t.rel="noreferrer",t.download=e.formattedName??"";{t.click();return}}}static{this.properties={showSaveAs:5,viewModel:0,messages:0,allowedFormatsForSaving:1,arcgisSaveAs:0}}static{this.styles=b}loaded(){this.manager.onLifecycle(()=>[this.viewModel.exportedLinks.on("change",()=>this.requestUpdate())])}render(){let e=this.viewModel.exportedLinks,i={"export-section-centered":!e.length};return s`<section class=${f(u("export-section",i))}>${e.length===0?s`<div class="exported-files-empty"><calcite-icon icon=file scale=l></calcite-icon><div><p class="exported-files-title">${this.messages.noExportedFiles}</p><div>${this.messages.exportHint}</div></div></div>`:s`<calcite-list .filterEnabled=${e.length>10} .label=${this.messages.exportedLinksList} selection-mode=none>${e.map(t=>s`<calcite-list-item .label=${t.formattedName??""}>${this._renderExportedLinkItemContent(t)}${this._renderExportedLinkItemIcon(t)}${this._renderExportedLinkItemAction(t)}</calcite-list-item>${this._renderExportedLinkItemPopover(t)}`)}</calcite-list>`}</section>`}_renderExportedLinkItemPopover(e){let i=this.messages,t=e.formattedName??"",{state:o}=e,a=this.showSaveAs&&o!=="error"&&g(this.allowedFormatsForSaving,e.extension);return o!=="pending"&&a?s`<calcite-popover auto-close label=Popover offset-distance=1 overlay-positioning=fixed pointer-disabled .referenceElement=${`${t}-popover-button`} scale=s><calcite-list label>${e.portalItem?s`<calcite-list-item .label=${i.openItem} @calciteListItemSelect=${()=>{let l=e.portalItem;if(!l?.itemPageUrl)return;let n=document.createElement("a");n.target="_blank",n.href=l.itemPageUrl,n.rel="noreferrer",n.click()}}><calcite-icon icon=launch2 scale=s slot=content-start></calcite-icon></calcite-list-item>`:s`<calcite-list-item .label=${i.saveAs} @calciteListItemSelect=${async()=>{$(()=>e.portalItem).then(l=>{l.itemPageUrl&&this.requestUpdate()}),this.arcgisSaveAs.emit(e)}}><calcite-icon icon=save scale=s slot=content-start></calcite-icon></calcite-list-item>`}<calcite-list-item label=Delete @calciteListItemSelect=${()=>this.viewModel.exportedLinks.remove(e)}><calcite-icon icon=trash scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-popover>`:null}_renderExportedLinkItemContent(e){let i=this.messages,{url:t,state:o,error:a}=e,l=e.formattedName??"",n=t||null;n&&(n=w(n));let d=v(n,document.location.href),k=o==="error"?a?.name==="print-task:cim-symbol-unsupported"?i.exportWebMapCIMError:i.exportWebMapError:null;return s`<div class="exported-file" slot=content @click=${()=>this._handleLinkClick(e)}><div><div class="exported-file-link-title">${l}</div><div class="exported-file-link-description">${o==="pending"?i.generatingExport:k||(d?i.ready:i.linkReady)}</div></div>${o==="ready"?s`<calcite-icon .ariaLabel=${`${l}. ${i.linkReady}`} .icon=${d?"download-to":"launch"} scale=s slot=content-end></calcite-icon>`:null}</div>`}_renderExportedLinkItemIcon(e){return e.state==="pending"?s`<calcite-loader inline .label=${this.messages.generatingExport} scale=m slot=content-start></calcite-loader>`:s`<calcite-icon .icon=${L(e)} scale=s slot=content-start></calcite-icon>`}_renderExportedLinkItemAction(e){let{state:i}=e,t=e.formattedName??"",o=this.showSaveAs&&i!=="error"&&g(this.allowedFormatsForSaving,e.extension);return i!=="pending"?s`<calcite-action .icon=${o?"ellipsis":"x"} id=${(o?`${t}-popover-button`:void 0)??h} @click=${o?void 0:()=>{this.viewModel.exportedLinks.remove(e)}} slot=actions-end .text=${o?"options":"remove"}></calcite-action>`:null}};x("arcgis-print-exports-panel",c);return c},"core/reactiveUtils","core/urlUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import b from"./WB6NANDC.js";import"./7TXQADKX.js";import{b as $}from"./ZNBKMZP7.js";import{O as A,P as y,Q as w,R as d,U as x,a as v,b as a}from"./E52S65JA.js";import"./ALDX5YZO.js";export default $arcgis.t(([_,I,S,k,{watch:P},{d:u}])=>{function L(i){let e=i.toLowerCase();return e==="image/bmp"||e==="image/emf"||e==="image/exif"||e==="image/gif"||e==="image/x-icon"||e==="image/jpeg"||e==="image/png"||e==="image/tiff"||e==="image/x-wmf"}function T(i){return i?i==="text/plain"?"file-text":i==="application/pdf"?"file-pdf":i==="text/csv"?"file-csv":i==="application/gpx+xml"?"file-gpx":i==="application/x-dwf"?"file-cad":i==="application/postscript"||i==="application/json"||i==="text/xml"||i==="model/vrml"?"file-code":i==="application/x-zip-compressed"||i==="application/x-7z-compressed"||i==="application/x-gzip"||i==="application/x-tar"||i==="application/x-gtar"||i==="application/x-bzip2"||i==="application/gzip"||i==="application/x-compress"||i==="application/x-apple-diskimage"||i==="application/x-rar-compressed"||i==="application/zip"?"file-zip":i.includes("image/")?"file-image":i.includes("audio/")?"file-sound":i.includes("video/")?"file-video":i.includes("msexcel")||i.includes("ms-excel")||i.includes("spreadsheetml")?"file-excel":i.includes("msword")||i.includes("ms-word")||i.includes("wordprocessingml")?"file-word":i.includes("powerpoint")||i.includes("presentationml")?"file-report":"file":"file"}var j=v`.item-link{display:flex;flex-grow:1}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}`,C=S.ofType(_),b=class extends A{constructor(){super(...arguments),this._attachmentInfos=new C,this._attachmentLayer=null,this._supportsImageOrientation=window?.CSS?.supports("image-orientation","from-image"),this.getAttachmentsPromise=null,this.hideSection=!1,this.headingLevel=2}static{this.properties={effectiveDisplayType:16,getAttachmentsPromise:16,hideSection:16,supportsResizeAttachments:16,attachmentKeywords:0,attachmentTypes:0,description:1,displayType:1,graphic:0,heading:1,messages:0,orderByFields:0,headingLevel:9}}static{this.styles=j}get _supportsTypeWildcard(){let{graphic:e}=this;if(!e)return!1;let t=u(e);return t?.loaded&&"capabilities"in t&&t.capabilities&&"attachment"in t.capabilities&&t.capabilities.attachment&&"supportsResize"in t.capabilities.attachment&&t.capabilities.attachment.supportsTypeWildcard||!1}get effectiveDisplayType(){let{displayType:e}=this;return!e||e==="auto"?this.supportsResizeAttachments?"preview":"list":e}get supportsResizeAttachments(){let{graphic:e}=this;if(!e)return!1;let t=u(e);return t?.loaded&&"capabilities"in t&&t.capabilities&&"attachment"in t.capabilities&&t.capabilities.attachment&&"supportsResize"in t.capabilities.attachment&&t.capabilities.attachment.supportsResize||!1}loaded(){this.manager.onLifecycle(()=>[P(()=>this.graphic,()=>this.graphicChanged(),{initial:!0})])}async getAttachments(){let{_attachmentLayer:e,_attachmentInfos:t,orderByFields:o,attachmentTypes:n,attachmentKeywords:s,_supportsTypeWildcard:g}=this;if(!e||typeof e.queryAttachments!="function")throw new k("invalid-layer","getAttachments(): A valid layer is required.");let l=this.graphic?.getObjectId();if(typeof l!="number")throw new k("invalid-object-id","getAttachments(): Numeric object id is required");let m=o?.map(c=>`${c.field} ${c.order==="descending"?"DESC":"ASC"}`),f=new I({objectIds:[l],returnMetadata:!0,orderByFields:m,attachmentTypes:g?n?.filter(Boolean).map(c=>`${c}/*`):void 0,keywords:s}),r=[],h=e.queryAttachments(f).then(c=>c[l]||r).catch(()=>r);this.getAttachmentsPromise=h;let p=await h;t.destroyAll(),p.length&&t.addMany(p),this.getAttachmentsPromise=null}setAttachmentLayer(){let{graphic:e}=this,t=u(e);this._attachmentLayer=t?t.type==="scene"&&t.associatedLayer!=null?t.associatedLayer:t:null}graphicChanged(){this.graphic&&(this.setAttachmentLayer(),this.getAttachments().catch(()=>this._attachmentInfos.destroyAll()))}getCSSTransform(e){let{orientationInfo:t}=e;return!this._supportsImageOrientation&&t?[t.rotation?`rotate(${t.rotation}deg)`:"",t.mirrored?"scaleX(-1)":""].join(" "):""}render(){return a`<div class="root" .hidden=${!(this.getAttachmentsPromise||this._attachmentInfos.length>0)}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`}renderAttachmentsList(e){return a`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel??""} interaction-mode=static selection-mode=none>${e.toArray().filter(Boolean).map(t=>this.renderAttachmentListItem(t))}</calcite-list>`}renderAttachmentsPreview(e){return a`<calcite-card-group .label=${this.messages?.componentLabel??""}>${this.getAttachmentsPromise?a`<calcite-card loading></calcite-card>`:e.toArray().filter(Boolean).map(t=>this.renderAttachmentPreviewItem(t))}</calcite-card-group>`}renderAttachments(){let{effectiveDisplayType:e,_attachmentInfos:t}=this;return e==="preview"?this.renderAttachmentsPreview(t):this.renderAttachmentsList(t)}renderAttachmentListItem(e){let{supportsResizeAttachments:t}=this,{contentType:o,name:n,url:s,size:g}=e,l=64,m=n||this.messages?.noTitle,f=T(o),r=this.getCSSTransform(e),h=r?{transform:r,"image-orientation":"none"}:{},p=t&&L(o),c=a`<a class=${y($("item-link","item-link--list",{"item-link--list-icon":!p}))} slot=content-start href=${s??void 0??d} rel=noreferrer target=_blank>${p?a`<img alt=${n??d} src=${`${s}${s?.includes("?")?"&":"?"}w=${l}&s=${g}`} style=${w(h)} title=${n??d}>`:a`<calcite-icon .icon=${f}></calcite-icon>`}</a>`,z=a`<calcite-link slot=content .href=${s??void 0} rel=noreferrer target=_blank>${m}</calcite-link>`;return a`<calcite-list-item .label=${m}>${c}${z}</calcite-list-item>`}renderAttachmentPreviewItem(e){let{supportsResizeAttachments:t}=this,{contentType:o,name:n,url:s,size:g}=e,l=225,m=n||this.messages?.noTitle,f=T(o),r=this.getCSSTransform(e),h=r?{transform:r,"image-orientation":"none"}:{},p=a`<a class=${y($("item-link","item-link--preview"))} slot=thumbnail href=${s??void 0??d} rel=noreferrer target=_blank>${t&&L(o)?a`<img alt=${n??d} src=${`${s}${s?.includes("?")?"&":"?"}w=${l}&s=${g}`} style=${w(h)} title=${n??d}>`:a`<calcite-icon scale=l .icon=${f}></calcite-icon>`}</a>`;return a`<calcite-card .label=${m}>${p}<span class="item-description" slot=description>${m}</span></calcite-card>`}};x("arcgis-feature-attachments",b);return b},"rest/query/support/AttachmentInfo","rest/support/AttachmentQuery","core/Collection","core/Error","core/reactiveUtils",b)
2
+ import b from"./5XL57S3R.js";import"./7TXQADKX.js";import{b as $}from"./ZNBKMZP7.js";import{O as A,P as y,Q as w,R as d,U as x,a as v,b as a}from"./VBIZIGF3.js";import"./ALDX5YZO.js";export default $arcgis.t(([_,I,S,k,{watch:P},{d:u}])=>{function L(i){let e=i.toLowerCase();return e==="image/bmp"||e==="image/emf"||e==="image/exif"||e==="image/gif"||e==="image/x-icon"||e==="image/jpeg"||e==="image/png"||e==="image/tiff"||e==="image/x-wmf"}function T(i){return i?i==="text/plain"?"file-text":i==="application/pdf"?"file-pdf":i==="text/csv"?"file-csv":i==="application/gpx+xml"?"file-gpx":i==="application/x-dwf"?"file-cad":i==="application/postscript"||i==="application/json"||i==="text/xml"||i==="model/vrml"?"file-code":i==="application/x-zip-compressed"||i==="application/x-7z-compressed"||i==="application/x-gzip"||i==="application/x-tar"||i==="application/x-gtar"||i==="application/x-bzip2"||i==="application/gzip"||i==="application/x-compress"||i==="application/x-apple-diskimage"||i==="application/x-rar-compressed"||i==="application/zip"?"file-zip":i.includes("image/")?"file-image":i.includes("audio/")?"file-sound":i.includes("video/")?"file-video":i.includes("msexcel")||i.includes("ms-excel")||i.includes("spreadsheetml")?"file-excel":i.includes("msword")||i.includes("ms-word")||i.includes("wordprocessingml")?"file-word":i.includes("powerpoint")||i.includes("presentationml")?"file-report":"file":"file"}var j=v`.item-link{display:flex;flex-grow:1}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}`,C=S.ofType(_),b=class extends A{constructor(){super(...arguments),this._attachmentInfos=new C,this._attachmentLayer=null,this._supportsImageOrientation=window?.CSS?.supports("image-orientation","from-image"),this.getAttachmentsPromise=null,this.hideSection=!1,this.headingLevel=2}static{this.properties={effectiveDisplayType:16,getAttachmentsPromise:16,hideSection:16,supportsResizeAttachments:16,attachmentKeywords:0,attachmentTypes:0,description:1,displayType:1,graphic:0,heading:1,messages:0,orderByFields:0,headingLevel:9}}static{this.styles=j}get _supportsTypeWildcard(){let{graphic:e}=this;if(!e)return!1;let t=u(e);return t?.loaded&&"capabilities"in t&&t.capabilities&&"attachment"in t.capabilities&&t.capabilities.attachment&&"supportsResize"in t.capabilities.attachment&&t.capabilities.attachment.supportsTypeWildcard||!1}get effectiveDisplayType(){let{displayType:e}=this;return!e||e==="auto"?this.supportsResizeAttachments?"preview":"list":e}get supportsResizeAttachments(){let{graphic:e}=this;if(!e)return!1;let t=u(e);return t?.loaded&&"capabilities"in t&&t.capabilities&&"attachment"in t.capabilities&&t.capabilities.attachment&&"supportsResize"in t.capabilities.attachment&&t.capabilities.attachment.supportsResize||!1}loaded(){this.manager.onLifecycle(()=>[P(()=>this.graphic,()=>this.graphicChanged(),{initial:!0})])}async getAttachments(){let{_attachmentLayer:e,_attachmentInfos:t,orderByFields:o,attachmentTypes:n,attachmentKeywords:s,_supportsTypeWildcard:g}=this;if(!e||typeof e.queryAttachments!="function")throw new k("invalid-layer","getAttachments(): A valid layer is required.");let l=this.graphic?.getObjectId();if(typeof l!="number")throw new k("invalid-object-id","getAttachments(): Numeric object id is required");let m=o?.map(c=>`${c.field} ${c.order==="descending"?"DESC":"ASC"}`),f=new I({objectIds:[l],returnMetadata:!0,orderByFields:m,attachmentTypes:g?n?.filter(Boolean).map(c=>`${c}/*`):void 0,keywords:s}),r=[],h=e.queryAttachments(f).then(c=>c[l]||r).catch(()=>r);this.getAttachmentsPromise=h;let p=await h;t.destroyAll(),p.length&&t.addMany(p),this.getAttachmentsPromise=null}setAttachmentLayer(){let{graphic:e}=this,t=u(e);this._attachmentLayer=t?t.type==="scene"&&t.associatedLayer!=null?t.associatedLayer:t:null}graphicChanged(){this.graphic&&(this.setAttachmentLayer(),this.getAttachments().catch(()=>this._attachmentInfos.destroyAll()))}getCSSTransform(e){let{orientationInfo:t}=e;return!this._supportsImageOrientation&&t?[t.rotation?`rotate(${t.rotation}deg)`:"",t.mirrored?"scaleX(-1)":""].join(" "):""}render(){return a`<div class="root" .hidden=${!(this.getAttachmentsPromise||this._attachmentInfos.length>0)}><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`}renderAttachmentsList(e){return a`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel??""} interaction-mode=static selection-mode=none>${e.toArray().filter(Boolean).map(t=>this.renderAttachmentListItem(t))}</calcite-list>`}renderAttachmentsPreview(e){return a`<calcite-card-group .label=${this.messages?.componentLabel??""}>${this.getAttachmentsPromise?a`<calcite-card loading></calcite-card>`:e.toArray().filter(Boolean).map(t=>this.renderAttachmentPreviewItem(t))}</calcite-card-group>`}renderAttachments(){let{effectiveDisplayType:e,_attachmentInfos:t}=this;return e==="preview"?this.renderAttachmentsPreview(t):this.renderAttachmentsList(t)}renderAttachmentListItem(e){let{supportsResizeAttachments:t}=this,{contentType:o,name:n,url:s,size:g}=e,l=64,m=n||this.messages?.noTitle,f=T(o),r=this.getCSSTransform(e),h=r?{transform:r,"image-orientation":"none"}:{},p=t&&L(o),c=a`<a class=${y($("item-link","item-link--list",{"item-link--list-icon":!p}))} slot=content-start href=${s??void 0??d} rel=noreferrer target=_blank>${p?a`<img alt=${n??d} src=${`${s}${s?.includes("?")?"&":"?"}w=${l}&s=${g}`} style=${w(h)} title=${n??d}>`:a`<calcite-icon .icon=${f}></calcite-icon>`}</a>`,z=a`<calcite-link slot=content .href=${s??void 0} rel=noreferrer target=_blank>${m}</calcite-link>`;return a`<calcite-list-item .label=${m}>${c}${z}</calcite-list-item>`}renderAttachmentPreviewItem(e){let{supportsResizeAttachments:t}=this,{contentType:o,name:n,url:s,size:g}=e,l=225,m=n||this.messages?.noTitle,f=T(o),r=this.getCSSTransform(e),h=r?{transform:r,"image-orientation":"none"}:{},p=a`<a class=${y($("item-link","item-link--preview"))} slot=thumbnail href=${s??void 0??d} rel=noreferrer target=_blank>${t&&L(o)?a`<img alt=${n??d} src=${`${s}${s?.includes("?")?"&":"?"}w=${l}&s=${g}`} style=${w(h)} title=${n??d}>`:a`<calcite-icon scale=l .icon=${f}></calcite-icon>`}</a>`;return a`<calcite-card .label=${m}>${p}<span class="item-description" slot=description>${m}</span></calcite-card>`}};x("arcgis-feature-attachments",b);return b},"rest/query/support/AttachmentInfo","rest/support/AttachmentQuery","core/Collection","core/Error","core/reactiveUtils",b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{M as s,N as n,O as c,P as h,Q as t,U as l,a as o,b as a}from"./E52S65JA.js";import"./ALDX5YZO.js";var d=o`:host .container{border:1px solid transparent;touch-action:none;--fast-transition-time: .1s;--slow-transition-time: .3s}:host(.animate-level),.container,.item,.rect{transition:height var(--slow-transition-time) cubic-bezier(.63,-.265,.48,1.64),width var(--slow-transition-time) cubic-bezier(.63,-.265,.48,1.64),background-color var(--fast-transition-time) ease-in-out,border-color var(--fast-transition-time) ease-in-out}:host,.container,.item,.rect{will-change:height;transition:height var(--fast-transition-time) ease-out,width var(--fast-transition-time) ease-out,background-color var(--fast-transition-time) ease-in-out,border-color var(--fast-transition-time) ease-in-out}.rect{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotateX(66deg) rotate(45deg);border:var(--calcite-border-width-md) solid rgb(from var(--calcite-color-text-3) r g b / .5);background-color:rgb(from var(--calcite-color-foreground-1) r g b / .7);&.active{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-brand)}&.hover{border-color:var(--calcite-color-brand)}}.item{pointer-events:none;position:absolute;left:50%;transform:translate(-50%,-50%)}`,i=class extends c{constructor(){super(...arguments),this.#t=s(),this.baseWidth=0,this.hovered=!1,this.active=!1,this.height=0}static{this.properties={messages:0,baseWidth:9,level:9,width:9,hovered:5,active:5,height:9}}static{this.styles=d}#t;focus(){this.#t.value?.focus()}render(){if(this.messages==null)return null;let e=this.width??this.baseWidth,r=e*.8;return a`<div class="container" style=${t({height:`${this.height}px`})}><div class="item" style=${t({width:`${Math.round(e)}px`,height:`${Math.round(e)}px`})}><button class=${h({rect:!0,active:this.active,hover:this.hovered})} style=${t({width:`${Math.round(r)}px`,height:`${Math.round(r)}px`})} tabindex=-1 type=button ${n(this.#t)}></button></div></div>`}};l("arcgis-building-level-item",i);export{i as BuildingLevelItem};
2
+ import{M as s,N as n,O as c,P as h,Q as t,U as l,a as o,b as a}from"./VBIZIGF3.js";import"./ALDX5YZO.js";var d=o`:host .container{border:1px solid transparent;touch-action:none;--fast-transition-time: .1s;--slow-transition-time: .3s}:host(.animate-level),.container,.item,.rect{transition:height var(--slow-transition-time) cubic-bezier(.63,-.265,.48,1.64),width var(--slow-transition-time) cubic-bezier(.63,-.265,.48,1.64),background-color var(--fast-transition-time) ease-in-out,border-color var(--fast-transition-time) ease-in-out}:host,.container,.item,.rect{will-change:height;transition:height var(--fast-transition-time) ease-out,width var(--fast-transition-time) ease-out,background-color var(--fast-transition-time) ease-in-out,border-color var(--fast-transition-time) ease-in-out}.rect{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotateX(66deg) rotate(45deg);border:var(--calcite-border-width-md) solid rgb(from var(--calcite-color-text-3) r g b / .5);background-color:rgb(from var(--calcite-color-foreground-1) r g b / .7);&.active{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-brand)}&.hover{border-color:var(--calcite-color-brand)}}.item{pointer-events:none;position:absolute;left:50%;transform:translate(-50%,-50%)}`,i=class extends c{constructor(){super(...arguments),this.#t=s(),this.baseWidth=0,this.hovered=!1,this.active=!1,this.height=0}static{this.properties={messages:0,baseWidth:9,level:9,width:9,hovered:5,active:5,height:9}}static{this.styles=d}#t;focus(){this.#t.value?.focus()}render(){if(this.messages==null)return null;let e=this.width??this.baseWidth,r=e*.8;return a`<div class="container" style=${t({height:`${this.height}px`})}><div class="item" style=${t({width:`${Math.round(e)}px`,height:`${Math.round(e)}px`})}><button class=${h({rect:!0,active:this.active,hover:this.hovered})} style=${t({width:`${Math.round(r)}px`,height:`${Math.round(r)}px`})} tabindex=-1 type=button ${n(this.#t)}></button></div></div>`}};l("arcgis-building-level-item",i);export{i as BuildingLevelItem};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as W}from"./BXEQ2GR7.js";import e from"./FWKUXDNJ.js";import{a as b}from"./WCESLPME.js";import d from"./DXIOCBFP.js";import"./E7SYUWIQ.js";import{a as x}from"./QIVD6SID.js";import"./M2M7DHX2.js";import{a as S}from"./UQN4KPNM.js";import"./DHVEHATY.js";import c from"./DAXUZZYI.js";import"./THWXFLFI.js";import"./WUDIJWPW.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as C,U as j,a as D,b as h,x as w}from"./E52S65JA.js";import"./ALDX5YZO.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"./FQGSB7BH.js";import e from"./FWKUXDNJ.js";import{a as b}from"./WCESLPME.js";import d from"./DXIOCBFP.js";import"./E7SYUWIQ.js";import{a as x}from"./AXRMZ7U6.js";import"./UJC6SFYK.js";import{a as S}from"./R3IRIYO5.js";import"./DHVEHATY.js";import c from"./BU3L3NMX.js";import"./RZMAT6ZB.js";import"./FTLFLDIB.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as C,U as j,a as D,b as h,x as w}from"./VBIZIGF3.js";import"./ALDX5YZO.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.0/LICENSE.txt */
2
- import{a as u}from"./UQN4KPNM.js";import"./THWXFLFI.js";import"./WUDIJWPW.js";import"./ZNBKMZP7.js";import{O as g,U as h,a as m,b as c,p as s,s as p}from"./E52S65JA.js";import"./ALDX5YZO.js";export default $arcgis.t(([v,{substitute:y}])=>{var x=m`:host{margin-block-start:0;padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item [slot=content-bottom]{background-color:transparent;display:none}calcite-list-item[expanded] [slot=content-bottom]{display:unset}.warning{color:var(--calcite-color-status-danger)}.terminals{padding-block:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-xl);padding-inline-end:var(--calcite-spacing-sm);display:flex;flex-direction:column}.filter-barrier-container{display:flex;width:100%;calcite-label{width:100%}}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,d=class extends g{constructor(){super(...arguments),this._messages=u({blocking:!0}),this.traceLocations=new v,this.traceLocationType="starting-point"}static{this.properties={traceLocations:0,traceLocationType:1}}static{this.styles=x}_handleTraceLocationItemRemoved(e){let i=e.spatialProperties.flagGraphic?.layer,{traceLocations:t}=this;e.spatialProperties.flagGraphic&&i&&i.remove(e.spatialProperties.flagGraphic),t?.remove(e)}_renderTerminal(e,i){let{flagProperties:t}=e,{selectedTerminals:r}=t;if(!e)return s("warn",this,"One or more elements in `traceLocations` are missing the required property `flag`."),null;let{name:n,id:a}=i,o=r?.has(a)??!1;return c`<calcite-label layout=inline><calcite-checkbox .value=${a} .checked=${o} @calciteCheckboxChange=${l=>{l.target.checked?r?.add(a):r?.delete(a),this.requestUpdate()}}></calcite-checkbox>${n}</calcite-label>`}_renderTerminalError(){let{_messages:e}=this;return c`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${e.errors.noTerminalSelected}</div></calcite-notice>`}_renderFilterBarrier(e){let{_messages:i}=this,{traceLocation:t}=e;return c`<div class="filter-barrier-container"><calcite-label layout=inline><div class="filter-barrier">${i.labels.filterBarrier}<calcite-switch .checked=${t.isFilterBarrier} @calciteSwitchChange=${r=>{t.isFilterBarrier=r.target.checked}}></calcite-switch></div></calcite-label></div>`}_renderContents(e){let{flagProperties:i}=e,{terminalConfiguration:t,selectedTerminals:r}=i,n=e.traceLocation.type==="barrier",a=t&&t.terminals.length>0&&r?.size===0;return c`<calcite-action .icon=${i.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{i.expanded=!i.expanded,this.requestUpdate()}}></calcite-action>${a&&c`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${i.expanded&&c`<div class="terminals" slot=content-bottom>${n&&this._renderFilterBarrier(e)||""}${t&&this._renderTerminals(e)||""}${a&&this._renderTerminalError()||""}</div>`||""}`}_renderTerminals(e){let{flagProperties:i}=e,{terminalConfiguration:t}=i;if(!t)return s("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=t.terminals;return!r||r.length===0?(s("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[]):r.map(n=>this._renderTerminal(e,n))}_renderListItem(e){let{flagProperties:i}=e,{terminalConfiguration:t,expanded:r,title:n}=i,a=n,o=t&&t.id!==0,l=e.traceLocation.type==="barrier",f=o||l,b=t?.name??void 0;return c`<calcite-list-item .label=${a} .description=${b} .value=${a} .expanded=${r}>${f?this._renderContents(e):c`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this._handleTraceLocationItemRemoved(e)}></calcite-action></calcite-list-item>`}render(){let{_messages:e,traceLocationType:i}=this,t=y(e.labels.list,{traceLocationType:i}),r=this.traceLocations?.map(n=>this._renderListItem(n)).toArray()??[];return r.length===0?(s("warn",this,p("traceLocations")),null):c`<div><calcite-list interaction-mode=static selection-mode=none .label=${t}>${r}</calcite-list></div>`}};h("arcgis-utility-network-trace-location-list",d);return d},"core/Collection","intl")
2
+ import{a as u}from"./R3IRIYO5.js";import"./RZMAT6ZB.js";import"./FTLFLDIB.js";import"./ZNBKMZP7.js";import{O as g,U as h,a as m,b as c,p as s,s as p}from"./VBIZIGF3.js";import"./ALDX5YZO.js";export default $arcgis.t(([v,{substitute:y}])=>{var x=m`:host{margin-block-start:0;padding:0 var(--calcite-spacing-sm) var(--calcite-spacing-sm) var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}calcite-list{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item [slot=content-bottom]{background-color:transparent;display:none}calcite-list-item[expanded] [slot=content-bottom]{display:unset}.warning{color:var(--calcite-color-status-danger)}.terminals{padding-block:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-xl);padding-inline-end:var(--calcite-spacing-sm);display:flex;flex-direction:column}.filter-barrier-container{display:flex;width:100%;calcite-label{width:100%}}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,d=class extends g{constructor(){super(...arguments),this._messages=u({blocking:!0}),this.traceLocations=new v,this.traceLocationType="starting-point"}static{this.properties={traceLocations:0,traceLocationType:1}}static{this.styles=x}_handleTraceLocationItemRemoved(e){let i=e.spatialProperties.flagGraphic?.layer,{traceLocations:t}=this;e.spatialProperties.flagGraphic&&i&&i.remove(e.spatialProperties.flagGraphic),t?.remove(e)}_renderTerminal(e,i){let{flagProperties:t}=e,{selectedTerminals:r}=t;if(!e)return s("warn",this,"One or more elements in `traceLocations` are missing the required property `flag`."),null;let{name:n,id:a}=i,o=r?.has(a)??!1;return c`<calcite-label layout=inline><calcite-checkbox .value=${a} .checked=${o} @calciteCheckboxChange=${l=>{l.target.checked?r?.add(a):r?.delete(a),this.requestUpdate()}}></calcite-checkbox>${n}</calcite-label>`}_renderTerminalError(){let{_messages:e}=this;return c`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${e.errors.noTerminalSelected}</div></calcite-notice>`}_renderFilterBarrier(e){let{_messages:i}=this,{traceLocation:t}=e;return c`<div class="filter-barrier-container"><calcite-label layout=inline><div class="filter-barrier">${i.labels.filterBarrier}<calcite-switch .checked=${t.isFilterBarrier} @calciteSwitchChange=${r=>{t.isFilterBarrier=r.target.checked}}></calcite-switch></div></calcite-label></div>`}_renderContents(e){let{flagProperties:i}=e,{terminalConfiguration:t,selectedTerminals:r}=i,n=e.traceLocation.type==="barrier",a=t&&t.terminals.length>0&&r?.size===0;return c`<calcite-action .icon=${i.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{i.expanded=!i.expanded,this.requestUpdate()}}></calcite-action>${a&&c`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${i.expanded&&c`<div class="terminals" slot=content-bottom>${n&&this._renderFilterBarrier(e)||""}${t&&this._renderTerminals(e)||""}${a&&this._renderTerminalError()||""}</div>`||""}`}_renderTerminals(e){let{flagProperties:i}=e,{terminalConfiguration:t}=i;if(!t)return s("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=t.terminals;return!r||r.length===0?(s("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[]):r.map(n=>this._renderTerminal(e,n))}_renderListItem(e){let{flagProperties:i}=e,{terminalConfiguration:t,expanded:r,title:n}=i,a=n,o=t&&t.id!==0,l=e.traceLocation.type==="barrier",f=o||l,b=t?.name??void 0;return c`<calcite-list-item .label=${a} .description=${b} .value=${a} .expanded=${r}>${f?this._renderContents(e):c`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this._handleTraceLocationItemRemoved(e)}></calcite-action></calcite-list-item>`}render(){let{_messages:e,traceLocationType:i}=this,t=y(e.labels.list,{traceLocationType:i}),r=this.traceLocations?.map(n=>this._renderListItem(n)).toArray()??[];return r.length===0?(s("warn",this,p("traceLocations")),null):c`<div><calcite-list interaction-mode=static selection-mode=none .label=${t}>${r}</calcite-list></div>`}};h("arcgis-utility-network-trace-location-list",d);return d},"core/Collection","intl")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as i}from"./UQN4KPNM.js";import"./THWXFLFI.js";import"./WUDIJWPW.js";import"./ZNBKMZP7.js";import{O as s,U as t,b as r}from"./E52S65JA.js";import"./ALDX5YZO.js";var e=class extends s{constructor(){super(...arguments),this._messages=i({blocking:!0}),this.errorName=""}static{this.properties={errorName:1}}render(){return r`<calcite-alert icon=x-octagon kind=danger open .label=${this.errorName}><div slot=title>${this._messages.errrorTitle}</div><div slot=message>${this._messages.errorMessage}</div><calcite-link slot=link href=https://esriurl.com/webgl-faq>${this._messages.webglFaq}</calcite-link></calcite-alert>`}};t("arcgis-webgl-error",e);export{e as ArcgisWebGlError};
2
+ import{a as i}from"./R3IRIYO5.js";import"./RZMAT6ZB.js";import"./FTLFLDIB.js";import"./ZNBKMZP7.js";import{O as s,U as t,b as r}from"./VBIZIGF3.js";import"./ALDX5YZO.js";var e=class extends s{constructor(){super(...arguments),this._messages=i({blocking:!0}),this.errorName=""}static{this.properties={errorName:1}}render(){return r`<calcite-alert icon=x-octagon kind=danger open .label=${this.errorName}><div slot=title>${this._messages.errrorTitle}</div><div slot=message>${this._messages.errorMessage}</div><calcite-link slot=link href=https://esriurl.com/webgl-faq>${this._messages.webglFaq}</calcite-link></calcite-alert>`}};t("arcgis-webgl-error",e);export{e as ArcgisWebGlError};