@arcgis/map-components 5.1.18 → 5.1.20

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 (223) hide show
  1. package/dist/cdn/{JOATGYK2.js → 2G4RSDC5.js} +1 -1
  2. package/dist/cdn/{TLXFVR5Z.js → 2J7ZXNFK.js} +1 -1
  3. package/dist/cdn/{EL4Q2AJ4.js → 2NWMICLT.js} +1 -1
  4. package/dist/cdn/{SLCACVHZ.js → 2OGN54PM.js} +1 -1
  5. package/dist/cdn/{M3L7J5RO.js → 2POTMVTD.js} +1 -1
  6. package/dist/cdn/{XAYOCNTD.js → 2SLHV3V2.js} +1 -1
  7. package/dist/cdn/{W754O7QY.js → 2TIO6R5N.js} +1 -1
  8. package/dist/cdn/{IIK75D4C.js → 3DCVGXVM.js} +1 -1
  9. package/dist/cdn/{4OUIPGUI.js → 3J7SANLG.js} +1 -1
  10. package/dist/cdn/{CFCZFQZY.js → 3JVYTPGR.js} +1 -1
  11. package/dist/cdn/{IN4KQ5O3.js → 3KK53EGO.js} +1 -1
  12. package/dist/cdn/{54FA4Y4O.js → 3KXHQNFD.js} +1 -1
  13. package/dist/cdn/{VALFR3QA.js → 433JOJDS.js} +1 -1
  14. package/dist/cdn/{M4YS2AVM.js → 45ZGWSQR.js} +1 -1
  15. package/dist/cdn/{TX4AYUYM.js → 4B5Z6TMZ.js} +1 -1
  16. package/dist/cdn/{CYMSXR7C.js → 4FZUERNX.js} +1 -1
  17. package/dist/cdn/{27LB4N6W.js → 4MZPJ74Q.js} +1 -1
  18. package/dist/cdn/{I2VW4D67.js → 4Q2VCK4K.js} +1 -1
  19. package/dist/cdn/{M42QW4YA.js → 4QIP2EED.js} +1 -1
  20. package/dist/cdn/{BTZ5NGAX.js → 524QE5ES.js} +1 -1
  21. package/dist/cdn/{DCJXJS53.js → 56JX3YF3.js} +1 -1
  22. package/dist/cdn/{SS62WABL.js → 57VB26ZK.js} +1 -1
  23. package/dist/cdn/{FLAEVQQX.js → 5AXYUWVC.js} +1 -1
  24. package/dist/cdn/{THAFS6VB.js → 5CF2Z6ZI.js} +1 -1
  25. package/dist/cdn/{BVQ4GAVV.js → 5FHCOAPM.js} +1 -1
  26. package/dist/cdn/{RT3ZGFU5.js → 5MPZ7N7V.js} +1 -1
  27. package/dist/cdn/{H2ZIAUG3.js → 5PYRNDKM.js} +1 -1
  28. package/dist/cdn/{G5ZENJNX.js → 6DOLL7M6.js} +1 -1
  29. package/dist/cdn/{SWPH245A.js → 6MTUWDG4.js} +1 -1
  30. package/dist/cdn/{G2Q6ET6J.js → 6Q4VS5FB.js} +1 -1
  31. package/dist/cdn/{HNNPI3G2.js → 6RXGJL4D.js} +1 -1
  32. package/dist/cdn/{APU5PHZO.js → 6SC3NQT5.js} +1 -1
  33. package/dist/cdn/{H6DAAATQ.js → 6TFWOLWL.js} +1 -1
  34. package/dist/cdn/{5W3MO7V6.js → 6VCVB7CP.js} +1 -1
  35. package/dist/cdn/{QZYTQ5ZI.js → 6WULAOPI.js} +1 -1
  36. package/dist/cdn/{4AR5RZB3.js → 737WZVPB.js} +1 -1
  37. package/dist/cdn/{N3CLKDNB.js → 7EH7JWIM.js} +1 -1
  38. package/dist/cdn/{FZAXYTSH.js → 7Q7Z2UK7.js} +1 -1
  39. package/dist/cdn/{5NR5324C.js → 7QGERLOF.js} +1 -1
  40. package/dist/cdn/{GT44UDSF.js → 7R7IXZWQ.js} +1 -1
  41. package/dist/cdn/{MWJEYMCK.js → 7UOOAKCD.js} +1 -1
  42. package/dist/cdn/{N3TKSXLA.js → 7VAPKAXO.js} +1 -1
  43. package/dist/cdn/{KGOTEEE4.js → A5WJ7Z6Q.js} +1 -1
  44. package/dist/cdn/{GV5NWDXH.js → AMWGZI34.js} +1 -1
  45. package/dist/cdn/{TV73OXB7.js → AORKLLNU.js} +1 -1
  46. package/dist/cdn/{2LYPUTAW.js → AQYI2S2G.js} +1 -1
  47. package/dist/cdn/{MFDQ35YJ.js → AU4UFNTV.js} +1 -1
  48. package/dist/cdn/{QV6GMN34.js → AYMCTDNP.js} +1 -1
  49. package/dist/cdn/{HSAC6UGY.js → BHEMWP5P.js} +1 -1
  50. package/dist/cdn/{R6JRYC5D.js → BJIXGNUA.js} +1 -1
  51. package/dist/cdn/{ONSWNNFC.js → BPVJCQO3.js} +1 -1
  52. package/dist/cdn/{E6CA2TPJ.js → BR37FXZ6.js} +1 -1
  53. package/dist/cdn/{PKRS474I.js → BRVWY5SK.js} +1 -1
  54. package/dist/cdn/{TTZZ72HL.js → BUMSN4JR.js} +1 -1
  55. package/dist/cdn/{YBD2EKZM.js → BW2DD2ET.js} +1 -1
  56. package/dist/cdn/{TCC2Z73R.js → C2ZSPP42.js} +1 -1
  57. package/dist/cdn/{R4HVLY25.js → CIZ7PFBR.js} +1 -1
  58. package/dist/cdn/CJUVITPB.js +2 -0
  59. package/dist/cdn/{3ZLVPBSJ.js → CKZQXE6W.js} +1 -1
  60. package/dist/cdn/{BDFF5Q7L.js → CLAXFBVL.js} +1 -1
  61. package/dist/cdn/{PQMSGNIB.js → CNEECTVU.js} +1 -1
  62. package/dist/cdn/{B6Y632CT.js → CT6N4FOM.js} +1 -1
  63. package/dist/cdn/{CHPFWPW2.js → CXU3WHCN.js} +1 -1
  64. package/dist/cdn/{HS7MYAZ5.js → D2PQNNLJ.js} +1 -1
  65. package/dist/cdn/{HL2V3Q5K.js → DACFK2ZN.js} +1 -1
  66. package/dist/cdn/{HYKDXH2N.js → DGYZXMW2.js} +1 -1
  67. package/dist/cdn/{S36F2LPP.js → DT7OLRN5.js} +1 -1
  68. package/dist/cdn/{AMPTQL5E.js → DZTCRJLM.js} +1 -1
  69. package/dist/cdn/{M4W6CGM7.js → E6B6VPOV.js} +1 -1
  70. package/dist/cdn/{ELMZWS6K.js → EK5AQNIN.js} +1 -1
  71. package/dist/cdn/{RYNXW24W.js → ESWR65M6.js} +1 -1
  72. package/dist/cdn/{B4ZGB3QA.js → F5RAN5Z4.js} +1 -1
  73. package/dist/cdn/{LKDIMIS5.js → FCXRDRG5.js} +1 -1
  74. package/dist/cdn/{UUE6RAEH.js → FCZGSEMO.js} +1 -1
  75. package/dist/cdn/{YMOL2EEY.js → FISTXGMZ.js} +1 -1
  76. package/dist/cdn/{ZMR4MNV5.js → FRDIOWRC.js} +1 -1
  77. package/dist/cdn/{YQXEAXQ5.js → FUEQP5I2.js} +1 -1
  78. package/dist/cdn/{ARP2GDDI.js → FUN6GOI3.js} +1 -1
  79. package/dist/cdn/{F3WA3DV7.js → G2KDBPZI.js} +1 -1
  80. package/dist/cdn/{V3JXLX2A.js → G63M4VW3.js} +1 -1
  81. package/dist/cdn/{VOLAIB2C.js → G6XC3FF7.js} +1 -1
  82. package/dist/cdn/{IZK3AWMA.js → GCKN7YJ7.js} +1 -1
  83. package/dist/cdn/{C3MVTAT2.js → GDCR5JLJ.js} +1 -1
  84. package/dist/cdn/{6DOMQ5SQ.js → GHZZXW3L.js} +1 -1
  85. package/dist/cdn/{5EPTQCEV.js → GWSUFM53.js} +1 -1
  86. package/dist/cdn/{6AE22EBI.js → H2K3S5WK.js} +1 -1
  87. package/dist/cdn/{NO2ZBWK3.js → H4KUZXZR.js} +1 -1
  88. package/dist/cdn/{Q3TZB6AU.js → H5JESGYR.js} +1 -1
  89. package/dist/cdn/{HF7XLCWK.js → H7RYRG3G.js} +1 -1
  90. package/dist/cdn/{AIUY7CBX.js → HFGAKUMC.js} +1 -1
  91. package/dist/cdn/{2GV4FHDP.js → HJQXLEEP.js} +1 -1
  92. package/dist/cdn/{YKKZONOI.js → HOZXZYJE.js} +1 -1
  93. package/dist/cdn/{VDRIQLVU.js → HPRLJIFS.js} +1 -1
  94. package/dist/cdn/{SSA5ZRKI.js → I3PQNSOR.js} +1 -1
  95. package/dist/cdn/{OOQ6TCBY.js → I3ROQ7RV.js} +1 -1
  96. package/dist/cdn/IEJG6XG7.js +2 -0
  97. package/dist/cdn/{LCFHMZMF.js → IFYI2GIC.js} +1 -1
  98. package/dist/cdn/{52FXR7QV.js → IY4NHKFH.js} +1 -1
  99. package/dist/cdn/{VUN5UFH5.js → IYVNBWXG.js} +1 -1
  100. package/dist/cdn/{7JGELVKU.js → JC4AN7AM.js} +1 -1
  101. package/dist/cdn/{SPO3YLTL.js → JFMISDEZ.js} +1 -1
  102. package/dist/cdn/{O55L6ALD.js → JJWRHG4N.js} +1 -1
  103. package/dist/cdn/{K6ERMTC2.js → JSHPMRXQ.js} +1 -1
  104. package/dist/cdn/{MTKNXEC6.js → JTBSLGCM.js} +1 -1
  105. package/dist/cdn/{ZMWPDPRP.js → JW77P6OQ.js} +1 -1
  106. package/dist/cdn/{3BH23BGO.js → JWUQWA5E.js} +1 -1
  107. package/dist/cdn/{L4ZZBSSQ.js → JZOLWYNE.js} +1 -1
  108. package/dist/cdn/{KJU4AWHL.js → KCIBVZTK.js} +1 -1
  109. package/dist/cdn/{SEDMCJAJ.js → KCY7N5ES.js} +1 -1
  110. package/dist/cdn/{DY4GBXYV.js → KLR4UVHB.js} +1 -1
  111. package/dist/cdn/{RFV7WQS2.js → KPOXOFW2.js} +1 -1
  112. package/dist/cdn/{EYL76XBH.js → KVG3MFRP.js} +1 -1
  113. package/dist/cdn/{FSXNIKM2.js → KXM47IFH.js} +1 -1
  114. package/dist/cdn/{FHHK6ZB4.js → L3D4CMFK.js} +1 -1
  115. package/dist/cdn/{DIKBF6FY.js → L3H7GXX5.js} +1 -1
  116. package/dist/cdn/{DMRMU26C.js → L4NPXEZY.js} +1 -1
  117. package/dist/cdn/{2RAWLOON.js → L744Q7E7.js} +1 -1
  118. package/dist/cdn/{YK2E6DIK.js → LAH2CK3T.js} +1 -1
  119. package/dist/cdn/{ZXGUPPAS.js → LBEJK5G7.js} +1 -1
  120. package/dist/cdn/{MTVOY2KK.js → LC7TIUAB.js} +1 -1
  121. package/dist/cdn/{SP72NCNL.js → LI67ZMSF.js} +1 -1
  122. package/dist/cdn/{GZC4B6U5.js → LLYDMAOG.js} +1 -1
  123. package/dist/cdn/{YV7HCE6U.js → LOPSE7EQ.js} +1 -1
  124. package/dist/cdn/{IGIRVWHE.js → M5BF3LTA.js} +1 -1
  125. package/dist/cdn/{ERHBJRRO.js → M6GXEAEQ.js} +1 -1
  126. package/dist/cdn/{JYMOBZ77.js → MJODOEKS.js} +1 -1
  127. package/dist/cdn/{7ATYQLHB.js → MQAXDC6Z.js} +1 -1
  128. package/dist/cdn/{VONZMHU7.js → MXA2F2B7.js} +1 -1
  129. package/dist/cdn/{TLVI5ME4.js → MZ76MKJL.js} +1 -1
  130. package/dist/cdn/{SUVX6ZCS.js → N7EBN7PM.js} +1 -1
  131. package/dist/cdn/{T6CWS6QQ.js → NH2MGWOJ.js} +1 -1
  132. package/dist/cdn/{GGVPSOR7.js → NLRDAHCR.js} +1 -1
  133. package/dist/cdn/{VYI7GOLL.js → NTCS6562.js} +1 -1
  134. package/dist/cdn/{OQDJ3Q2E.js → NTJZPBIY.js} +1 -1
  135. package/dist/cdn/{64U3WLHP.js → NUEROYXS.js} +1 -1
  136. package/dist/cdn/{5ETKXZGA.js → NXZRQ5NB.js} +1 -1
  137. package/dist/cdn/{CQ6LLVAM.js → ODCTDK2N.js} +1 -1
  138. package/dist/cdn/{RPLSZ5AT.js → OGXX6IZK.js} +1 -1
  139. package/dist/cdn/{KSKFXZSR.js → OH5YOB2K.js} +1 -1
  140. package/dist/cdn/{JE6BLRPO.js → OJSA3X4J.js} +1 -1
  141. package/dist/cdn/{H5QJ7R6R.js → OOZR4FL2.js} +1 -1
  142. package/dist/cdn/{R5JT5ZWR.js → OTERFQSC.js} +1 -1
  143. package/dist/cdn/{EXKW2KPC.js → OTMD53XP.js} +1 -1
  144. package/dist/cdn/{VKO4A4GJ.js → OXBBIVWD.js} +1 -1
  145. package/dist/cdn/{GOHF7PGQ.js → OY7XDVG6.js} +1 -1
  146. package/dist/cdn/{UNXDVEQF.js → PH7R4HUQ.js} +1 -1
  147. package/dist/cdn/{VJ7WT7PQ.js → PQEOXY6L.js} +1 -1
  148. package/dist/cdn/{4F3K7IUD.js → PRLSLYSG.js} +1 -1
  149. package/dist/cdn/{HICTAA66.js → Q2TBIVWR.js} +1 -1
  150. package/dist/cdn/{M4Y4QS55.js → Q42BFTQG.js} +1 -1
  151. package/dist/cdn/{ZYL5EBBW.js → Q4Y6V4YG.js} +1 -1
  152. package/dist/cdn/{SZQ2AOZT.js → Q67GJR3U.js} +1 -1
  153. package/dist/cdn/{XIEJOHGF.js → QDITZVEJ.js} +1 -1
  154. package/dist/cdn/{DM3MD7JA.js → QP7PMZ7A.js} +1 -1
  155. package/dist/cdn/{EVPRCBAI.js → QW3JNSYP.js} +1 -1
  156. package/dist/cdn/{HNUGFAKR.js → R24HXWWL.js} +1 -1
  157. package/dist/cdn/{YMCZ6QTH.js → R4ICYNDS.js} +1 -1
  158. package/dist/cdn/{KTXAJ2DB.js → RJGHLICJ.js} +1 -1
  159. package/dist/cdn/{7L5T3IEJ.js → RL4J5T7U.js} +1 -1
  160. package/dist/cdn/{M5PLYEPL.js → RMBJABFX.js} +1 -1
  161. package/dist/cdn/{ZN34WWP5.js → ROPB5CQF.js} +1 -1
  162. package/dist/cdn/{3F2BRXA2.js → S4UHZYYK.js} +1 -1
  163. package/dist/cdn/{EP66FMOK.js → SRSO2SXJ.js} +1 -1
  164. package/dist/cdn/{QFPMSGHU.js → SWRXXV4U.js} +1 -1
  165. package/dist/cdn/{UX47O4BJ.js → T66RLEYX.js} +1 -1
  166. package/dist/cdn/{IWDXPMDV.js → T6EX4G3K.js} +1 -1
  167. package/dist/cdn/{Y4GOMXEZ.js → T6TRZE7S.js} +1 -1
  168. package/dist/cdn/{SXADP7KD.js → T6Y6YVFU.js} +1 -1
  169. package/dist/cdn/{FCSYWTYK.js → TCZAIN7E.js} +1 -1
  170. package/dist/cdn/{QIKQXIVO.js → TFFHID6Q.js} +1 -1
  171. package/dist/cdn/{YMJNGKMN.js → TG2R6YV2.js} +1 -1
  172. package/dist/cdn/{U64YQCOA.js → TL5CAEGE.js} +1 -1
  173. package/dist/cdn/{MT66FYBI.js → TOIRMIAF.js} +1 -1
  174. package/dist/cdn/{66ULPWTV.js → TPTUI4YH.js} +1 -1
  175. package/dist/cdn/{I3FI2K7M.js → TTIMGYIQ.js} +1 -1
  176. package/dist/cdn/{XYJZHM5X.js → TWNTU2L6.js} +1 -1
  177. package/dist/cdn/{P4O5IAEG.js → U5Q3XL5Y.js} +1 -1
  178. package/dist/cdn/{52SELLV3.js → UGBVB2MS.js} +1 -1
  179. package/dist/cdn/{HBSSYTV2.js → UGR4AJSO.js} +1 -1
  180. package/dist/cdn/{KXZNQXJ3.js → UH2MNUI7.js} +1 -1
  181. package/dist/cdn/{MSDPAJJL.js → UOYFQNOQ.js} +1 -1
  182. package/dist/cdn/UQ5ZSR7E.js +2 -0
  183. package/dist/cdn/{VY66LYIS.js → UREAJ2AG.js} +1 -1
  184. package/dist/cdn/{HW4DPAO7.js → URGRF6M2.js} +1 -1
  185. package/dist/cdn/{MKXJ2C5M.js → V4R2DCH6.js} +1 -1
  186. package/dist/cdn/{WS4AU26J.js → VAKSQQSU.js} +1 -1
  187. package/dist/cdn/{MUYJ5KSI.js → VMEI2UVD.js} +1 -1
  188. package/dist/cdn/{G3SFKKZA.js → VSTHYJS3.js} +1 -1
  189. package/dist/cdn/{JV7TB7O5.js → VU7NKLG3.js} +1 -1
  190. package/dist/cdn/{DGMZXZLE.js → WAPIRNC2.js} +1 -1
  191. package/dist/cdn/{J2Z7KVAP.js → WCPUO4NB.js} +1 -1
  192. package/dist/cdn/{VY3NYCBE.js → WFPPPX5S.js} +1 -1
  193. package/dist/cdn/{7COWZ6SD.js → WH5TBYOY.js} +1 -1
  194. package/dist/cdn/{KIPYX5UP.js → WIHES4LK.js} +1 -1
  195. package/dist/cdn/{O4TGJAIW.js → WIM3AJVV.js} +1 -1
  196. package/dist/cdn/{OL6DJ5EY.js → WW3THOXJ.js} +1 -1
  197. package/dist/cdn/{LNCWHBCZ.js → X4DX5BPX.js} +1 -1
  198. package/dist/cdn/{BI5TI52S.js → X5HYTDCA.js} +1 -1
  199. package/dist/cdn/{R4K3EZSS.js → XA5N2MLV.js} +1 -1
  200. package/dist/cdn/{LICI7TTI.js → XBBKSJW6.js} +1 -1
  201. package/dist/cdn/{77JT2N4C.js → XDDP5UCJ.js} +1 -1
  202. package/dist/cdn/{YTVANQHD.js → XLZ5GHKA.js} +1 -1
  203. package/dist/cdn/{ZZ4NMFYJ.js → XP2KHUKL.js} +1 -1
  204. package/dist/cdn/XRWDBALT.js +2 -0
  205. package/dist/cdn/{NITBP7YY.js → XZ4VHTF3.js} +1 -1
  206. package/dist/cdn/{Y6UHKD3G.js → YIAUPERW.js} +1 -1
  207. package/dist/cdn/{XYCW3UV5.js → YRIYZ47H.js} +1 -1
  208. package/dist/cdn/{HQIVCZ2R.js → ZBPHESYO.js} +1 -1
  209. package/dist/cdn/{3IQH3R3C.js → ZD5BFDPJ.js} +1 -1
  210. package/dist/cdn/{GDGTCPJ5.js → ZKEQFYV5.js} +1 -1
  211. package/dist/cdn/{UVGD5UT3.js → ZRBMOCZY.js} +1 -1
  212. package/dist/cdn/{33WF7YNR.js → ZTOIJJXX.js} +1 -1
  213. package/dist/cdn/{PESILX5Q.js → ZYBIWL24.js} +1 -1
  214. package/dist/cdn/index.js +1 -1
  215. package/dist/chunks/runtime.js +1 -1
  216. package/dist/docs/api.json +1 -1
  217. package/dist/docs/docs.json +1 -1
  218. package/dist/docs/web-types.json +1 -1
  219. package/package.json +4 -4
  220. package/dist/cdn/AZJ4YOON.js +0 -2
  221. package/dist/cdn/DEPJWPQM.js +0 -2
  222. package/dist/cdn/JUFG45LR.js +0 -2
  223. package/dist/cdn/S33GSQPE.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./R3NYK6BO.js";import{a as A}from"./CQ6LLVAM.js";import"./VOLAIB2C.js";import"./LICI7TTI.js";import"./DCJXJS53.js";import{O as C,U as x,a as I,b as w,p as c,r as m,x as T}from"./YV7HCE6U.js";import"./3TTFCHAA.js";export default $arcgis.t(([G,L,u,N,$,F,_,S,{c:k,f:P}])=>{var H=I`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`,v=class extends C{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.isSelectWaiting=!1,this.traceLocationType="starting-point",this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationChange=T(),this.arcgisTraceLocationSelectEnd=T(),this.arcgisTraceLocationSelectStart=T()}static{this.properties={isSelectWaiting:16,beforeTraceLocationSelectStart:0,afterHitTest:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,spatialTolerance:9,autoDestroyDisabled:5,utilityNetwork:0}}static{this.styles=H}async destroy(){this._resetCursor(),await this.manager.destroy()}async load(){u.isLoaded()||await u.load()}_calculatePercentAlong(t,e){let r=t.clone(),l=r.spatialReference,o=e.spatialReference;if(!l||!o)return c("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let i=e;if(!l.equals(o)){let f=u.execute(e,l);if(!f)return c("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;i=f}let s=N.getNearestCoordinate(r,i);if(s.isEmpty)return c("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=s.coordinate,n=a.x-.5,p=a.y-.5,h=a.x+.5,g=a.y+.5,y=new $({hasZ:!1,hasM:!0,paths:[[[n,p],[h,g]]],spatialReference:r.spatialReference}),d=G.execute(r,y);if(d.length>0){let f=L.execute(r,{unit:"feet"}),b;return d[0].paths[0][0][0]===r.paths[0][0][0]?b=L.execute(d[0],{unit:"feet"}):d.length>1?b=L.execute(d[1],{unit:"feet"}):b=0,b/f}return c("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get _edgeSourceLayerIds(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async _handleAddButtonClick(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){c("error",this,"Cannot add trace location."),e||c("error",this,m("sketchViewModel")),t||c("error",this,m("view"));return}if(this.beforeTraceLocationSelectStart){this.isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this.isSelectWaiting=!1}}await this._startSketch(t,e)}async _startSketch(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this._clickHandler?.remove(),this._clickHandler=e.on("create",r=>this._handleSketchComplete(r,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}_handleSketchComplete(t,e,r){if(t.state==="complete"&&t.graphic){r.layer.remove(t.graphic),this._performHitTest(t,e,r);return}t.state==="cancel"&&(this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit())}async _performHitTest(t,e,r){let{utilityNetwork:l}=this,{graphic:o}=t;if(!l){c("error",this,m("utilityNetwork")),this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit();return}if(o?.geometry?.type!=="point"){c("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let i=o.geometry,s=e.toScreen(i);if(!s){c("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let a=(await e.hitTest(s,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(!a.length){c("info",this,"No usable hit test results found."),this._startSketch(e,r);return}this._resetCursor(),await this._processHitTestResults(a,i,e)?this.arcgisTraceLocationSelectEnd.emit():this._startSketch(e,r)}_resetCursor(){let{view:t,sketchViewModel:e}=this;if(!t){c("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async _processHitTestResults(t,e,r){if(!t.length)return c("error",this,"There are no hit test results to process."),!1;let l=t[0],o=t.map(a=>{let n=a,p=n.graphic;return p.origin=n.layer,p.sourceLayer=n.layer,p}),i=l.graphic;if(this.afterHitTest)try{i=await this.afterHitTest(o)}catch{i=null}if(!i)return c("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this._ensureNecessaryAttributes(i);return s?await this._generateTraceLocation(s,e,r):(c("error",this,"Unable to ensure necessary attributes on the selected graphic."),this.arcgisTraceLocationSelectEnd.emit(),!0)}async _ensureNecessaryAttributes(t){let e=(k(t.layer),t.layer),r=e.geometryType===null,l=e.fieldsIndex?.get("assetgroup")??!1,o=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=e.fieldsIndex?.get("assettype")??!1,s=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),n=t.getObjectId(),p=l?!!t.getAttribute(o):!0,h=i?!!t.getAttribute(s):!0,g=!!t.geometry;if(a&&n&&p&&h&&(g||r))return t;let y=e.createQuery();return y.objectIds=[n],(await e.queryFeatures(y))?.features[0]||null}async _generateTraceLocation(t,e,r){let{traceLocations:l}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateFlagInfo(t,e);if(!s)return c("error",this,"Unable to generate flag info for trace location."),!1;let a=l?.filter(p=>p.spatialProperties.mapGraphic?.getGlobalId()===o)??[];if(a.length>0){if(i!=="polyline")return c("warn",this,"A flag with the same globalId already exists."),!1;if(a.some(p=>Math.abs(p.traceLocation.percentAlong-s.traceLocation.percentAlong)<=this.spatialTolerance))return c("warn",this,"A flag with the same globalId already exists within tolerance."),!1}let n=this._addFlagGraphic(t,e,r);return n?(s.spatialProperties.flagGraphic=n,l?.add(s),!0):(c("warn",this,"Unable to add flag graphic."),!1)}async _generateFlagInfo(t,e){let{traceLocationType:r,utilityNetwork:l}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateItemTitle(t);if(i==="point"||i==="polygon"){let a=l?.getTerminalConfiguration(t),n=a?a.terminals[0].id:1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:n}),flagProperties:{title:s,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([n]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(i==="polyline"){let a=this._calculatePercentAlong(t.geometry,e);return a<0?(c("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,percentAlong:a}),flagProperties:{title:s,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!i){let a=P(t.layer)?t.layer.parent:t.layer,n=a&&this._edgeSourceLayerIds.includes(a.layerId),p=l?.getTerminalConfiguration(t),h=p?p.terminals[0].id:n?-1:1,g=n?.5:-1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:h,percentAlong:g}),flagProperties:{title:s,expanded:!1,terminalConfiguration:p??void 0,selectedTerminals:p?new Set([h]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async _generateItemTitle(t){let{messages:e}=this,r=(k(t.layer),t.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(t):null)||t?.getObjectId()?.toString()||e.labels.unknown}_addFlagGraphic(t,e,r){let l=t.geometry?t.geometry.type==="point"?t.geometry:e:null,o=this._createFlagSymbol(),i=new F({geometry:l,symbol:o,attributes:t.attributes});return r.graphics.add(i),i}_createFlagSymbol(){let{traceLocationType:t}=this,e=[244,21,21,.6],r=[21,244,21,.6];return t==="stopping-point"?new S({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new S({color:e,style:"square",size:12,outline:{color:e,width:0}}):new S({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_handleClearButtonClick(){let{view:t,traceLocations:e}=this;e?.forEach(r=>{r.spatialProperties.flagGraphic&&t&&t.graphics.remove(r.spatialProperties.flagGraphic)}),e?.removeAll()}renderAddLocationBlock(){let{traceLocationType:t,messages:e,traceLocations:r,view:l}=this,o=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,i=o.heading,s=o.description,a=o.buttonText;return w`<calcite-block .heading=${i} .label=${i} expanded .description=${s}>${r?.length?w`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button><arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${t} .view=${l}></arcgis-utility-network-trace-location-list>`:null}<div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this._handleAddButtonClick()}>${a}</calcite-button></div></calcite-block>`}render(){return w`<div class="root">${this.renderAddLocationBlock()}</div>`}};x("arcgis-utility-network-trace-location",v);return v},"geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol",a)
2
+ import a from"./R3NYK6BO.js";import{a as A}from"./ODCTDK2N.js";import"./G6XC3FF7.js";import"./XBBKSJW6.js";import"./56JX3YF3.js";import{O as C,U as x,a as I,b as w,p as c,r as m,x as T}from"./LOPSE7EQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([G,L,u,N,$,F,_,S,{c:k,f:P}])=>{var H=I`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{justify-content:center;display:grid}.clear-button{--calcite-button-border-color: transparent}`,v=class extends C{constructor(){super(...arguments),this.messages=A({blocking:!0}),this.isSelectWaiting=!1,this.traceLocationType="starting-point",this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationChange=T(),this.arcgisTraceLocationSelectEnd=T(),this.arcgisTraceLocationSelectStart=T()}static{this.properties={isSelectWaiting:16,beforeTraceLocationSelectStart:0,afterHitTest:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,sketchViewModel:0,spatialTolerance:9,autoDestroyDisabled:5,utilityNetwork:0}}static{this.styles=H}async destroy(){this._resetCursor(),await this.manager.destroy()}async load(){u.isLoaded()||await u.load()}_calculatePercentAlong(t,e){let r=t.clone(),l=r.spatialReference,o=e.spatialReference;if(!l||!o)return c("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let i=e;if(!l.equals(o)){let f=u.execute(e,l);if(!f)return c("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;i=f}let s=N.getNearestCoordinate(r,i);if(s.isEmpty)return c("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=s.coordinate,n=a.x-.5,p=a.y-.5,h=a.x+.5,g=a.y+.5,y=new $({hasZ:!1,hasM:!0,paths:[[[n,p],[h,g]]],spatialReference:r.spatialReference}),d=G.execute(r,y);if(d.length>0){let f=L.execute(r,{unit:"feet"}),b;return d[0].paths[0][0][0]===r.paths[0][0][0]?b=L.execute(d[0],{unit:"feet"}):d.length>1?b=L.execute(d[1],{unit:"feet"}):b=0,b/f}return c("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get _edgeSourceLayerIds(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async _handleAddButtonClick(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){c("error",this,"Cannot add trace location."),e||c("error",this,m("sketchViewModel")),t||c("error",this,m("view"));return}if(this.beforeTraceLocationSelectStart){this.isSelectWaiting=!0;try{await this.beforeTraceLocationSelectStart()}finally{this.isSelectWaiting=!1}}await this._startSketch(t,e)}async _startSketch(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this._clickHandler?.remove(),this._clickHandler=e.on("create",r=>this._handleSketchComplete(r,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}_handleSketchComplete(t,e,r){if(t.state==="complete"&&t.graphic){r.layer.remove(t.graphic),this._performHitTest(t,e,r);return}t.state==="cancel"&&(this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit())}async _performHitTest(t,e,r){let{utilityNetwork:l}=this,{graphic:o}=t;if(!l){c("error",this,m("utilityNetwork")),this._resetCursor(),this.arcgisTraceLocationSelectEnd.emit();return}if(o?.geometry?.type!=="point"){c("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let i=o.geometry,s=e.toScreen(i);if(!s){c("warn",this,"No screen point available for hit test."),this._startSketch(e,r);return}let a=(await e.hitTest(s,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(!a.length){c("info",this,"No usable hit test results found."),this._startSketch(e,r);return}this._resetCursor(),await this._processHitTestResults(a,i,e)?this.arcgisTraceLocationSelectEnd.emit():this._startSketch(e,r)}_resetCursor(){let{view:t,sketchViewModel:e}=this;if(!t){c("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this._clickHandler?.remove(),this._clickHandler=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async _processHitTestResults(t,e,r){if(!t.length)return c("error",this,"There are no hit test results to process."),!1;let l=t[0],o=t.map(a=>{let n=a,p=n.graphic;return p.origin=n.layer,p.sourceLayer=n.layer,p}),i=l.graphic;if(this.afterHitTest)try{i=await this.afterHitTest(o)}catch{i=null}if(!i)return c("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this._ensureNecessaryAttributes(i);return s?await this._generateTraceLocation(s,e,r):(c("error",this,"Unable to ensure necessary attributes on the selected graphic."),this.arcgisTraceLocationSelectEnd.emit(),!0)}async _ensureNecessaryAttributes(t){let e=(k(t.layer),t.layer),r=e.geometryType===null,l=e.fieldsIndex?.get("assetgroup")??!1,o=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",i=e.fieldsIndex?.get("assettype")??!1,s=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),n=t.getObjectId(),p=l?!!t.getAttribute(o):!0,h=i?!!t.getAttribute(s):!0,g=!!t.geometry;if(a&&n&&p&&h&&(g||r))return t;let y=e.createQuery();return y.objectIds=[n],(await e.queryFeatures(y))?.features[0]||null}async _generateTraceLocation(t,e,r){let{traceLocations:l}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateFlagInfo(t,e);if(!s)return c("error",this,"Unable to generate flag info for trace location."),!1;let a=l?.filter(p=>p.spatialProperties.mapGraphic?.getGlobalId()===o)??[];if(a.length>0){if(i!=="polyline")return c("warn",this,"A flag with the same globalId already exists."),!1;if(a.some(p=>Math.abs(p.traceLocation.percentAlong-s.traceLocation.percentAlong)<=this.spatialTolerance))return c("warn",this,"A flag with the same globalId already exists within tolerance."),!1}let n=this._addFlagGraphic(t,e,r);return n?(s.spatialProperties.flagGraphic=n,l?.add(s),!0):(c("warn",this,"Unable to add flag graphic."),!1)}async _generateFlagInfo(t,e){let{traceLocationType:r,utilityNetwork:l}=this,o=t.getGlobalId()??"",i=t.geometry?.type,s=await this._generateItemTitle(t);if(i==="point"||i==="polygon"){let a=l?.getTerminalConfiguration(t),n=a?a.terminals[0].id:1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:n}),flagProperties:{title:s,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([n]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(i==="polyline"){let a=this._calculatePercentAlong(t.geometry,e);return a<0?(c("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,percentAlong:a}),flagProperties:{title:s,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!i){let a=P(t.layer)?t.layer.parent:t.layer,n=a&&this._edgeSourceLayerIds.includes(a.layerId),p=l?.getTerminalConfiguration(t),h=p?p.terminals[0].id:n?-1:1,g=n?.5:-1;return{traceLocation:new _({type:r,isFilterBarrier:!1,globalId:o,terminalId:h,percentAlong:g}),flagProperties:{title:s,expanded:!1,terminalConfiguration:p??void 0,selectedTerminals:p?new Set([h]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async _generateItemTitle(t){let{messages:e}=this,r=(k(t.layer),t.layer);return("getFeatureTitle"in r?await r.getFeatureTitle(t):null)||t?.getObjectId()?.toString()||e.labels.unknown}_addFlagGraphic(t,e,r){let l=t.geometry?t.geometry.type==="point"?t.geometry:e:null,o=this._createFlagSymbol(),i=new F({geometry:l,symbol:o,attributes:t.attributes});return r.graphics.add(i),i}_createFlagSymbol(){let{traceLocationType:t}=this,e=[244,21,21,.6],r=[21,244,21,.6];return t==="stopping-point"?new S({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new S({color:e,style:"square",size:12,outline:{color:e,width:0}}):new S({color:r,style:"circle",size:12,outline:{color:r,width:0}})}_handleClearButtonClick(){let{view:t,traceLocations:e}=this;e?.forEach(r=>{r.spatialProperties.flagGraphic&&t&&t.graphics.remove(r.spatialProperties.flagGraphic)}),e?.removeAll()}renderAddLocationBlock(){let{traceLocationType:t,messages:e,traceLocations:r,view:l}=this,o=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,i=o.heading,s=o.description,a=o.buttonText;return w`<calcite-block .heading=${i} .label=${i} expanded .description=${s}>${r?.length?w`<calcite-button class="clear-button" slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this._handleClearButtonClick()}>${e.buttons.clear}</calcite-button><arcgis-utility-network-trace-location-list .traceLocations=${r} .traceLocationType=${t} .view=${l}></arcgis-utility-network-trace-location-list>`:null}<div class="button-container"><calcite-button .loading=${this.isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this._handleAddButtonClick()}>${a}</calcite-button></div></calcite-block>`}render(){return w`<div class="root">${this.renderAddLocationBlock()}</div>`}};x("arcgis-utility-network-trace-location",v);return v},"geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import f from"./CHPFWPW2.js";import{a as y}from"./IN4KQ5O3.js";import{a as p}from"./XUKTPPFV.js";import{a as d}from"./ZMWPDPRP.js";import e from"./LNCWHBCZ.js";import"./VOLAIB2C.js";import"./LICI7TTI.js";import b from"./EVPRCBAI.js";import"./DCJXJS53.js";import{M as n,N as o,O as c,P as h,U as v,b as a,x as r}from"./YV7HCE6U.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:s},C,E,A,{d:u,e:g},{a:e,b:w,f:m},{a:f,b:b,c:V}])=>{var R=w(E,{}),_=w(C,{}),l=class extends c{constructor(){super(),this._containerRef=n(),this._mapRef=n(),this._uiController=new f(this),this.extraContent=new A,this.arcgisLoadError=b(this),this.arcgisViewReadyError=V(this),this._map=R(this),this.view=_(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.selectionManager=this.view.selectionManager,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=e(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=e(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=e(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=e(()=>this.view,"click"),this.arcgisViewDoubleClick=e(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=e(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=e(()=>this.view,"drag"),this.arcgisViewHold=e(()=>this.view,"hold"),this.arcgisViewImmediateClick=e(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=e(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=e(()=>this.view,"key-down"),this.arcgisViewKeyUp=e(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=e(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=e(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=e(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=e(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=e(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=e(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=e(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=e(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=e(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=e(()=>this.view,"vertical-two-finger-drag"),this.view.ui={components:[]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,canZoomIn:36,canZoomOut:36,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,hideAttribution:5,highlights:0,interacting:32,ipsInfo:0,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,scale:9,selectionManager:32,slotGroupRefs:32,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:36,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[d,y]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let t=g(i,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){u(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async fetchPopupFeatures(i,t){return this.view.fetchPopupFeatures(i,t)}async destroy(){await this.manager.destroy()}async goTo(i,t){return await this.view.goTo(i,t)}async hitTest(i,t){return await this.view.hitTest(i,t)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,t){return this.view.toScreen(i,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(t)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,t=>{t&&(this._map=t)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),s(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)},{initial:!0})])}renderMain(){return a`<div class=${h(p.base)} ${o(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(p.containerUI)} ${o(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>`}};v("arcgis-map",l);return l},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,e,f)
2
+ import f from"./CXU3WHCN.js";import{a as y}from"./3KK53EGO.js";import{a as p}from"./XUKTPPFV.js";import{a as d}from"./JW77P6OQ.js";import e from"./X4DX5BPX.js";import"./G6XC3FF7.js";import"./XBBKSJW6.js";import b from"./QW3JNSYP.js";import"./56JX3YF3.js";import{M as n,N as o,O as c,P as h,U as v,b as a,x as r}from"./LOPSE7EQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{watch:s},C,E,A,{d:u,e:g},{a:e,b:w,f:m},{a:f,b:b,c:V}])=>{var R=w(E,{}),_=w(C,{}),l=class extends c{constructor(){super(),this._containerRef=n(),this._mapRef=n(),this._uiController=new f(this),this.extraContent=new A,this.arcgisLoadError=b(this),this.arcgisViewReadyError=V(this),this._map=R(this),this.view=_(this),this.animationsDisabled=this.view.animationsEnabled,this.allLayerViews=this.view.allLayerViews,this.analyses=this.view.analyses,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.background=this.view.background,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.highlights=this.view.highlights,this.ipsInfo=this._map.ipsInfo,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.ready=this.view.ready,this.resizeAlign=this.view.resizeAlign,this.resolution=this.view.resolution,this.rotation=this.view.rotation,this.selectionManager=this.view.selectionManager,this.slotGroupRefs=this._uiController.slotGroupRefs,this.spatialReference=this.view.spatialReference,this.spatialReferenceLocked=this.view.spatialReferenceLocked,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.timeZone=this.view.timeZone,this.updating=this.view.updating,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=e(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=e(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=e(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=e(()=>this.view,"click"),this.arcgisViewDoubleClick=e(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=e(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=e(()=>this.view,"drag"),this.arcgisViewHold=e(()=>this.view,"hold"),this.arcgisViewImmediateClick=e(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=e(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=e(()=>this.view,"key-down"),this.arcgisViewKeyUp=e(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=e(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=e(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=e(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=e(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=e(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=e(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=e(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=e(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=e(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=e(()=>this.view,"vertical-two-finger-drag"),this.view.ui={components:[]}}static{this.properties={_map:16,view:32,animationsDisabled:5,aria:0,allLayerViews:32,analyses:0,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,background:0,basemap:1,basemapView:0,canZoomIn:36,canZoomOut:36,center:1,constraints:0,displayFilterDisabled:5,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,hideAttribution:5,highlights:0,interacting:32,ipsInfo:0,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,padding:0,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,ready:36,resizeAlign:1,resolution:40,rotation:9,scale:9,selectionManager:32,slotGroupRefs:32,spatialReference:0,spatialReferenceLocked:5,stationary:32,suspended:39,theme:0,timeExtent:0,timeZone:1,updating:36,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[d,y]}get aria(){return this.view?.aria}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get center(){return this.view.center}set center(i){let t=g(i,this.view);t&&(this.view.center=t)}get extent(){return this.view.extent}set extent(i){i&&!this.extent?.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){m(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get popupElement(){return this._uiController.popupElement||null}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){u(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async fetchPopupFeatures(i,t){return this.view.fetchPopupFeatures(i,t)}async destroy(){await this.manager.destroy()}async goTo(i,t){return await this.view.goTo(i,t)}async hitTest(i,t){return await this.view.hitTest(i,t)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i){return this.view.toMap(i)}toScreen(i,t){return this.view.toScreen(i,t)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,t){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(t)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view?.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,t=>{t&&(this._map=t)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,()=>this.arcgisViewReadyChange.emit(),{initial:this.view.ready}),s(()=>this.view.attributionHeight,t=>{this._uiController.handleAttributionHeightChange(t)},{initial:!0})])}renderMain(){return a`<div class=${h(p.base)} ${o(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(p.containerUI)} ${o(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>`}};v("arcgis-map",l);return l},"core/reactiveUtils","views/MapView","WebMap","core/Collection",b,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as v}from"./54VXNFQ4.js";import{d as S}from"./DCJXJS53.js";import{P as d,R as g,b as m,c as h,d as p}from"./YV7HCE6U.js";var x=Symbol.for(""),y=t=>{if(t?.r===x)return t?._$litStatic$},_=t=>({_$litStatic$:t,r:x});var M=new Map,u=t=>(a,...s)=>{let r=s.length,n,o,i=[],l=[],c,e=0,$=!1;for(;e<r;){for(c=a[e];e<r&&(o=s[e],(n=y(o))!==void 0);)c+=n+a[++e],$=!0;e!==r&&l.push(o),i.push(c),e++}if(e===r&&i.push(a[r]),$){let f=i.join("$$lit$$");(a=M.get(f))===void 0&&(i.raw=i,M.set(f,a=i)),s=l}return t(a,...s)},b=u(m),j=u(h),k=u(p);function A({level:t,class:a,id:s,children:r,excludeGlobalCss:n}){let o=w(t),i=`h${o}`,l=_(i);return b`<${l} .ariaLevel=${String(o)} class=${d(S(n?a:v.heading,a))} id=${s??g} role=heading>${r}</${l}>`}function C(t,a,s){return Math.min(Math.max(t,a),s)}function w(t){return C(Math.ceil(t),1,6)}function B(t,a=1){return w(t+a)}export{A as a,B as b};
2
+ import{a as v}from"./54VXNFQ4.js";import{d as S}from"./56JX3YF3.js";import{P as d,R as g,b as m,c as h,d as p}from"./LOPSE7EQ.js";var x=Symbol.for(""),y=t=>{if(t?.r===x)return t?._$litStatic$},_=t=>({_$litStatic$:t,r:x});var M=new Map,u=t=>(a,...s)=>{let r=s.length,n,o,i=[],l=[],c,e=0,$=!1;for(;e<r;){for(c=a[e];e<r&&(o=s[e],(n=y(o))!==void 0);)c+=n+a[++e],$=!0;e!==r&&l.push(o),i.push(c),e++}if(e===r&&i.push(a[r]),$){let f=i.join("$$lit$$");(a=M.get(f))===void 0&&(i.raw=i,M.set(f,a=i)),s=l}return t(a,...s)},b=u(m),j=u(h),k=u(p);function A({level:t,class:a,id:s,children:r,excludeGlobalCss:n}){let o=w(t),i=`h${o}`,l=_(i);return b`<${l} .ariaLevel=${String(o)} class=${d(S(n?a:v.heading,a))} id=${s??g} role=heading>${r}</${l}>`}function C(t,a,s){return Math.min(Math.max(t,a),s)}function w(t){return C(Math.ceil(t),1,6)}function B(t,a=1){return w(t+a)}export{A as a,B as b};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as $}from"./MP6Z45SA.js";import f from"./R3NYK6BO.js";import e from"./MSDPAJJL.js";import{a as F}from"./CQ6LLVAM.js";import d from"./LNCWHBCZ.js";import c from"./PQMSGNIB.js";import{h as w}from"./VOLAIB2C.js";import"./LICI7TTI.js";import a from"./EVPRCBAI.js";import"./DCJXJS53.js";import{O as g,U as b,a as T,b as r,x as h}from"./YV7HCE6U.js";import"./3TTFCHAA.js";export default $arcgis.t(([{property:l,subclass:x},B,_,{getAllStandardFeatureTemplatesForLayer:D,getTemplatesForLayers:L},{isTable:y,getEffectiveLayerCapabilities:E},{watch:v},,{a:M},,S,{e:m,f:f}])=>{var U=T`:host{display:flex;position:relative;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.root{display:flex;flex:1 1 auto;overflow:hidden auto;transition:max-height .25s ease-in-out}.root>*{width:100%;box-sizing:border-box}.feature-template-tabs{--calcite-tab-background-color: transparent}`,C=Object.defineProperty,R=Object.getOwnPropertyDescriptor,a=(t,e,i,o)=>{for(var n=o>1?void 0:o?R(e,i):e,p=t.length-1,c;p>=0;p--)(c=t[p])&&(n=(o?c(e,i,n):c(n))||n);return o&&n&&C(e,i,n),n};function I(t){switch(t){case"point":case"multipoint":case"polyline":case"polygon":case"extent":case"mesh":return t}return"noneSpecified"}var A=t=>I(t.layer.geometryType??""),s=class extends B{constructor(t){super(t),this._hasRunInitialLoad=!1,this.favoritesEnabled=!1,this.recentlyUsedEnabled=!1,this.hideTemplateDescription=!1,this.filterText="",this.recentFilterText="",this.favoritesFilterText="",this.display="grouped",this.groupBy="layer",this.hideTemplatesMode="never",this.disableTemplatesMode="never",this.sectionSortBy="system",this.templateSortBy="alphabetical",this.sharedTemplatesDisabled=!1,this.excludeTables=!1,this.favorites=new Set,this.fetchingTemplateMetaData=!1,this.recentlyUsed=[]}async handleTemplateSourceDefinitionChanged(){if(this._hasRunInitialLoad=!1,this.applicationTemplates){await this._restore();return}try{this.fetchingTemplateMetaData=!0;let t=this.activeLayers;if(await Promise.allSettled(t.map(e=>e.load())),this.sharedTemplatesDisabled){let e=[];for(let i of t){let o=D(i);o.length>0&&e.push({layer:i,templates:o})}this.mapTemplates=e;return}this.mapTemplates=await L(t,this.view,void 0,{returnVisibleTemplatesOnly:!0}),await this._restore()}catch{this.mapTemplates=[]}finally{this.fetchingTemplateMetaData=!1}}get loading(){return!this._hasRunInitialLoad||this.layers!==void 0||this.applicationTemplates!==void 0||!this.view?.ready}async addFavorite(t){this.favorites.add(t.id),this.favorites=new Set(this.favorites)}async removeFavorite(t){this.favorites.delete(t.id),this.favorites=new Set(this.favorites)}addRecent(t){if(!this.recentlyUsedEnabled)return;let e=this.recentlyUsed.filter(i=>i!==t.id);e.unshift(t.id)>20&&(e.length=20),this.recentlyUsed=e}async removeRecent(t){this.recentlyUsed=this.recentlyUsed.filter(e=>e!==t.id)}async _restore(){try{if(this.favoritesEnabled&&this.restoreFavorites){let t=await this.restoreFavorites();this.favorites=new Set(t??[])}}catch{}try{if(this.recentlyUsedEnabled&&this.restoreRecentlyUsed){let t=await this.restoreRecentlyUsed();this.recentlyUsed=t??[]}}catch{}}_sortTemplates(t){if(this.templateSortByFunction){let e=this.templateSortByFunction(t)??null;return e===null?t:e}return this.templateSortBy==="alphabetical"?t.toSorted((e,i)=>e.label.localeCompare(i.label)):t}_sortSections(t){if(this.sectionSortByFunction){let e=this.sectionSortByFunction(t);e&&(t=e)}else if(this.sectionSortBy==="alphabetical")t=t.toSorted((e,i)=>e.sectionName.localeCompare(i.sectionName));else if(this.groupBy==="geometry"&&!this.groupByFunction){let e={point:1,multipoint:2,polyline:3,polygon:4,extent:5,mesh:6,noneSpecified:7};t=t.toSorted((i,o)=>{let n=e[i.sectionName]??10,p=e[o.sectionName]??10;return n-p})}for(let e of t)e.templates=this._sortTemplates(e.templates);return t}_layerIsVisibleAtCurrentScale(t){if(!this.view)return!0;let e=t;f(t)&&(e=t.parent);let i=this.view.allLayerViews.find(o=>o.layer===e);if(!i)return!0;if(f(t)){let o=this.view.scale;if(i.visibleAtCurrentScale){let n=t.minScale,p=t.maxScale,c=!n,d=!p;return!c&&o<=n&&(c=!0),!d&&o>=p&&(d=!0),c&&d}}return i.visibleAtCurrentScale}get activeLayers(){let t=[];for(let e of this.layers??[])if(m(e))for(let i of e.sublayers)t.push(i);else t.push(e);if(this.layers===void 0||this.layers===null){for(let e of[...this.view?.map?.allLayers?.slice(0).reverse()??[],...this.excludeTables?[]:this.view?.map?.allTables?.slice(0).reverse()??[]])if(e.type==="feature"||e.type==="scene"||e.type==="geojson"||e.type==="oriented-imagery"||e.type==="knowledge-graph")t.push(e);else if(m(e))for(let i of e.sublayers)t.push(i)}return t}get selectedTemplate(){return this.allTemplates.find(t=>t.id===this.selectedTemplateId)}get effectiveTemplates(){return this.templates.map(t=>({...t,templates:t.templates.filter(e=>this.inclusionFilter(e))})).filter(t=>t.templates.length>0)}get templateList(){return this._sortTemplates(this.effectiveTemplates.flatMap(t=>t.templates))}get allTemplates(){return this._sortTemplates(this.templates.flatMap(t=>t.templates))}inclusionFilter(t){if(this.excludeTables&&y(t.layer)||this.applicationFilterFunction?.(t)===!1)return!1;let e=E(t.layer)?.operations;return e?.supportsEditing===!1&&!e?.supportsAdd?!1:y(t.layer)?!0:!(this.hideTemplatesMode==="visible"&&!t.layer.visible||this.hideTemplatesMode==="scale"&&!this._layerIsVisibleAtCurrentScale(t.layer))}get templateSetKey(){return this._sortTemplates(this.allTemplates).map(t=>t.id).join(",")}get disabledTemplates(){let t=new Set;for(let e of this.allTemplates){if(this.applicationDisabledFunction&&this.applicationDisabledFunction(e)){t.add(e);continue}if(!y(e.layer)){if(this.disableTemplatesMode==="visible"&&!e.layer.visible){t.add(e);continue}if(this.disableTemplatesMode==="scale"&&this.view&&!this._layerIsVisibleAtCurrentScale(e.layer)){t.add(e);continue}}}return t}get templates(){return this.applicationTemplates??this.organizedMapTemplates}get organizedMapTemplates(){if(this.groupByFunction||this.groupBy==="geometry"){let t=!this.groupByFunction,e=this.groupByFunction??A,i=new Map;for(let o of this.mapTemplates??[])for(let n of o.templates){let p=new _({template:n,layer:o.layer}),c=e(p);if(c!=null)if(i.has(c))i.get(c)?.templates.push(p);else{let d={sectionName:c,...t?{autoTranslate:!0}:{},templates:[p]};i.set(c,d)}}return this._sortSections(Array.from(i.values()))}return this._sortSections((this.mapTemplates??[]).map(({layer:t,templates:e})=>({sectionName:t.title??"",templates:e.map(i=>new _({layer:t,template:i}))})).filter(t=>t.templates.length>0))}get updating(){return this.fetchingTemplateMetaData}get favoriteTemplates(){let t=[];for(let e of this.effectiveTemplates)for(let i of e.templates)this.favorites.has(i.id)&&t.push(i);return t}get recentTemplates(){let t=new Map;for(let i of this.effectiveTemplates)for(let o of i.templates)t.set(o.id,o);let e=[];for(let i of this.recentlyUsed)t.has(i)&&e.push(t.get(i));return e}};a([l()],s.prototype,"loading",1);a([l()],s.prototype,"_hasRunInitialLoad",2);a([l()],s.prototype,"activeLayers",1);a([l()],s.prototype,"favoritesEnabled",2);a([l()],s.prototype,"recentlyUsedEnabled",2);a([l()],s.prototype,"hideTemplateDescription",2);a([l()],s.prototype,"filterText",2);a([l()],s.prototype,"recentFilterText",2);a([l()],s.prototype,"favoritesFilterText",2);a([l()],s.prototype,"selectedTemplateId",2);a([l()],s.prototype,"selectedTemplate",1);a([l()],s.prototype,"layers",2);a([l()],s.prototype,"restoreFavorites",2);a([l()],s.prototype,"restoreRecentlyUsed",2);a([l()],s.prototype,"applicationDisabledFunction",2);a([l()],s.prototype,"applicationFilterFunction",2);a([l()],s.prototype,"display",2);a([l()],s.prototype,"groupBy",2);a([l()],s.prototype,"hideTemplatesMode",2);a([l()],s.prototype,"disableTemplatesMode",2);a([l()],s.prototype,"groupByFunction",2);a([l()],s.prototype,"sectionSortBy",2);a([l()],s.prototype,"templateSortBy",2);a([l()],s.prototype,"sectionSortByFunction",2);a([l()],s.prototype,"templateSortByFunction",2);a([l()],s.prototype,"sharedTemplatesDisabled",2);a([l()],s.prototype,"excludeTables",2);a([l()],s.prototype,"favorites",2);a([l()],s.prototype,"effectiveTemplates",1);a([l()],s.prototype,"templateList",1);a([l()],s.prototype,"allTemplates",1);a([l()],s.prototype,"templateSetKey",1);a([l()],s.prototype,"disabledTemplates",1);a([l()],s.prototype,"templates",1);a([l()],s.prototype,"mapTemplates",2);a([l()],s.prototype,"organizedMapTemplates",1);a([l()],s.prototype,"fetchingTemplateMetaData",2);a([l()],s.prototype,"updating",1);a([l()],s.prototype,"applicationTemplates",2);a([l()],s.prototype,"favoriteTemplates",1);a([l()],s.prototype,"recentTemplates",1);a([l()],s.prototype,"recentlyUsed",2);a([l()],s.prototype,"view",2);s=a([x("components.feature-templates.FeatureTemplatesViewModel")],s);var N=S(s),u=class extends g{constructor(){super(...arguments),this._messages=F(),this.viewModel=N(this),this.favoritesEnabled=this.viewModel.favoritesEnabled,this.favorites=this.viewModel.favorites,this.restoreFavorites=this.viewModel.restoreFavorites,this.restoreRecentlyUsed=this.viewModel.restoreRecentlyUsed,this.recentlyUsed=this.viewModel.recentlyUsed,this.sharedTemplatesDisabled=this.viewModel.sharedTemplatesDisabled,this.filterText=this.viewModel.filterText,this.recentFilterText=this.viewModel.recentFilterText,this.favoritesFilterText=this.viewModel.favoritesFilterText,this.recentlyUsedEnabled=this.viewModel.recentlyUsedEnabled,this.excludeTables=this.viewModel.excludeTables,this.effectiveTemplates=this.viewModel.effectiveTemplates,this.applicationTemplates=this.viewModel.applicationTemplates,this.selectedTemplateId=this.viewModel.selectedTemplateId,this.selectedTemplate=this.viewModel.selectedTemplate,this.applicationFilterFunction=this.viewModel.applicationFilterFunction,this.applicationDisabledFunction=this.viewModel.applicationDisabledFunction,this.display=this.viewModel.display,this.groupBy=this.viewModel.groupBy,this.sectionSortBy=this.viewModel.sectionSortBy,this.templateSortBy=this.viewModel.templateSortBy,this.templateSortByFunction=this.viewModel.templateSortByFunction,this.sectionSortByFunction=this.viewModel.sectionSortByFunction,this.hideTemplatesMode=this.viewModel.hideTemplatesMode,this.disableTemplatesMode=this.viewModel.disableTemplatesMode,this.groupByFunction=this.viewModel.groupByFunction,this.hideTemplateDescription=this.viewModel.hideTemplateDescription,this.layers=this.viewModel.layers,this.view=M(this),this.autoDestroyDisabled=!1,this.updating=this.viewModel.updating,this.disabled=!1,this.showCollapseButton=!1,this.showFilter=!1,this.minRequiredFilterCount=2,this.arcgisPropertyChange=w()("effectiveTemplates","filterText","recentlyUsed","favorites"),this.arcgisReady=h(),this.arcgisTemplatesChanged=h(),this.arcgisSelectTemplate=h()}static{this.properties={favoritesEnabled:5,favorites:32,restoreFavorites:0,restoreRecentlyUsed:0,recentlyUsed:32,sharedTemplatesDisabled:5,filterText:1,recentFilterText:1,favoritesFilterText:1,recentlyUsedEnabled:5,excludeTables:5,effectiveTemplates:32,applicationTemplates:0,selectedTemplateId:1,selectedTemplate:32,applicationFilterFunction:0,applicationDisabledFunction:0,display:1,groupBy:1,sectionSortBy:1,templateSortBy:1,templateSortByFunction:0,sectionSortByFunction:0,hideTemplatesMode:1,disableTemplatesMode:1,groupByFunction:0,hideTemplateDescription:5,layers:0,view:0,referenceElement:1,autoDestroyDisabled:5,updating:32,disabled:5,showCollapseButton:5,showFilter:5,minRequiredFilterCount:9}}static{this.styles=U}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[v(()=>this.view,()=>{this.viewModel.view=this.view},{initial:!0}),v(()=>this.viewModel.templateSetKey,()=>{this.arcgisTemplatesChanged.emit()}),v(()=>[this.viewModel.activeLayers?.map(e=>e.id).join(","),this.viewModel?.applicationTemplates,this.viewModel?.sharedTemplatesDisabled],$(()=>this.viewModel.handleTemplateSourceDefinitionChanged(),10),{initial:!0})])}_handleSelectTemplate(e){this.selectedTemplateId=e.id,this.arcgisSelectTemplate.emit({template:e}),this.viewModel.addRecent(e)}_removeTemplateFromList(e,i){if(i==="favorites"){this.viewModel.removeFavorite(e);return}this.viewModel.removeRecent(e)}_renderTemplates(){return this.effectiveTemplates.length===0?r`<calcite-notice icon=list open class="filter-no-results"><div slot=message>${this._messages.noTemplates}</div></calcite-notice>`:r`<calcite-list .filterPlaceholder=${this._messages.filterPlaceholder??""} .filterText=${this.filterText} .label=${this._messages?.templates??""} .filterEnabled=${this.showFilter&&this.viewModel.templateList.length>=this.minRequiredFilterCount} selection-appearance=border selection-mode=single @calciteListFilter=${e=>{this.filterText=e.target.filterText}}>${this.display==="grouped"?this.effectiveTemplates.map(e=>r`<calcite-list-item-group .heading=${e.autoTranslate?this._messages[e.sectionName]??"":e.sectionName}>${e.templates.map(i=>r`<calcite-list-item .disabled=${this.viewModel.disabledTemplates.has(i)} .label=${i.label} .selected=${i.id===this.selectedTemplateId} .description=${this.hideTemplateDescription?void 0:i.description} .value=${i.id} @calciteListItemSelect=${()=>{this._handleSelectTemplate(i)}}><arcgis-template-image slot=content-start .template=${i}></arcgis-template-image>${this._renderAddFavorite(i)}</calcite-list-item>`)}</calcite-list-item-group>`):this.viewModel.templateList.map(e=>r`<calcite-list-item .disabled=${this.viewModel.disabledTemplates.has(e)} .label=${e.label} .selected=${e.id===this.selectedTemplateId} .description=${this.hideTemplateDescription?void 0:e.description} .value=${e.id} @calciteListItemSelect=${()=>{this._handleSelectTemplate(e)}}><arcgis-template-image slot=content-start .template=${e}></arcgis-template-image>${this._renderAddFavorite(e)}</calcite-list-item>`)}${this._renderFilteredEmpty()}</calcite-list>`}_renderAddFavorite(e){return this.viewModel.favoritesEnabled?r`<calcite-action slot=actions-end .icon=${this.viewModel.favorites.has(e.id)?"heart-f":"heart"} @click=${()=>{this.viewModel.favorites.has(e.id)?this.viewModel.removeFavorite(e):this.viewModel.addFavorite(e)}} .text=${this._messages.addFavorite??""}></calcite-action>`:""}_renderList(e){let i=e==="favorites"?this.viewModel.favoriteTemplates:this.viewModel.recentTemplates;return i.length===0?r`<calcite-notice icon=list open class="filter-no-results"><div slot=message>${e==="favorites"?this._messages.noFavorites:this._messages.noRecent}</div></calcite-notice>`:r`<calcite-list .filterText=${e==="favorites"?this.favoritesFilterText:this.recentFilterText} .filterPlaceholder=${this._messages.filterPlaceholder??""} .label=${(e==="favorites"?this._messages.favorites:this._messages.recent)??""} .filterEnabled=${this.showFilter} selection-appearance=border selection-mode=single @calciteListFilter=${o=>{this.filterText=o.target.filterText}}>${i.map(o=>r`<calcite-list-item .disabled=${this.viewModel.disabledTemplates.has(o)} .label=${o.label} .description=${this.hideTemplateDescription?void 0:o.description} .value=${o.id} @calciteListItemSelect=${()=>{this._handleSelectTemplate(o)}}><arcgis-template-image slot=content-start .template=${o}></arcgis-template-image><calcite-action slot=actions-end icon=x @click=${()=>{this._removeTemplateFromList(o,e)}} .text=${(e==="favorites"?this._messages.removeFavorite:this._messages.removeRecent)??""}></calcite-action></calcite-list-item>`)}${this._renderFilteredEmpty()}</calcite-list>`}_renderFilteredEmpty(){return r`<calcite-notice icon=filter slot=filter-no-results open class="filter-no-results"><div slot=message>${this._messages.noMatchingTemplates}</div></calcite-notice>`}_renderContent(){return this.effectiveTemplates.length===0&&this.viewModel.loading?null:this.favoritesEnabled||this.recentlyUsedEnabled?r`<calcite-tabs class="feature-template-tabs"><calcite-tab-nav slot=title-group><calcite-tab-title icon-start=templates selected>${this._messages.templates}</calcite-tab-title>${this.recentlyUsedEnabled?r`<calcite-tab-title icon-start=clock>${this._messages.recent}</calcite-tab-title>`:""}${this.favoritesEnabled?r`<calcite-tab-title icon-start=heart>${this._messages.favorites}</calcite-tab-title>`:""}</calcite-tab-nav><calcite-tab selected>${this._renderTemplates()}</calcite-tab><calcite-tab>${this._renderList("recent")}</calcite-tab><calcite-tab>${this._renderList("favorites")}</calcite-tab></calcite-tabs>`:this._renderTemplates()}render(){return r`<div class="root">${this._renderContent()}${this.viewModel.updating||this.disabled?r`<calcite-scrim><calcite-loader scale=s label .hidden=${!this.viewModel.updating}></calcite-loader></calcite-scrim>`:null}</div>`}};b("arcgis-feature-templates",u);return u},"core/accessorSupport/decorators","core/Accessor","editing/templates/TemplateListItem","applications/Components/templateUtils","applications/Components/layerUtils","core/reactiveUtils",a,c,d,e,f)
2
+ import{a as $}from"./MP6Z45SA.js";import f from"./R3NYK6BO.js";import e from"./UOYFQNOQ.js";import{a as F}from"./ODCTDK2N.js";import d from"./X4DX5BPX.js";import c from"./CNEECTVU.js";import{h as w}from"./G6XC3FF7.js";import"./XBBKSJW6.js";import a from"./QW3JNSYP.js";import"./56JX3YF3.js";import{O as g,U as b,a as T,b as r,x as h}from"./LOPSE7EQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{property:l,subclass:x},B,_,{getAllStandardFeatureTemplatesForLayer:D,getTemplatesForLayers:L},{isTable:y,getEffectiveLayerCapabilities:E},{watch:v},,{a:M},,S,{e:m,f:f}])=>{var U=T`:host{display:flex;position:relative;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.root{display:flex;flex:1 1 auto;overflow:hidden auto;transition:max-height .25s ease-in-out}.root>*{width:100%;box-sizing:border-box}.feature-template-tabs{--calcite-tab-background-color: transparent}`,C=Object.defineProperty,R=Object.getOwnPropertyDescriptor,a=(t,e,i,o)=>{for(var n=o>1?void 0:o?R(e,i):e,p=t.length-1,c;p>=0;p--)(c=t[p])&&(n=(o?c(e,i,n):c(n))||n);return o&&n&&C(e,i,n),n};function I(t){switch(t){case"point":case"multipoint":case"polyline":case"polygon":case"extent":case"mesh":return t}return"noneSpecified"}var A=t=>I(t.layer.geometryType??""),s=class extends B{constructor(t){super(t),this._hasRunInitialLoad=!1,this.favoritesEnabled=!1,this.recentlyUsedEnabled=!1,this.hideTemplateDescription=!1,this.filterText="",this.recentFilterText="",this.favoritesFilterText="",this.display="grouped",this.groupBy="layer",this.hideTemplatesMode="never",this.disableTemplatesMode="never",this.sectionSortBy="system",this.templateSortBy="alphabetical",this.sharedTemplatesDisabled=!1,this.excludeTables=!1,this.favorites=new Set,this.fetchingTemplateMetaData=!1,this.recentlyUsed=[]}async handleTemplateSourceDefinitionChanged(){if(this._hasRunInitialLoad=!1,this.applicationTemplates){await this._restore();return}try{this.fetchingTemplateMetaData=!0;let t=this.activeLayers;if(await Promise.allSettled(t.map(e=>e.load())),this.sharedTemplatesDisabled){let e=[];for(let i of t){let o=D(i);o.length>0&&e.push({layer:i,templates:o})}this.mapTemplates=e;return}this.mapTemplates=await L(t,this.view,void 0,{returnVisibleTemplatesOnly:!0}),await this._restore()}catch{this.mapTemplates=[]}finally{this.fetchingTemplateMetaData=!1}}get loading(){return!this._hasRunInitialLoad||this.layers!==void 0||this.applicationTemplates!==void 0||!this.view?.ready}async addFavorite(t){this.favorites.add(t.id),this.favorites=new Set(this.favorites)}async removeFavorite(t){this.favorites.delete(t.id),this.favorites=new Set(this.favorites)}addRecent(t){if(!this.recentlyUsedEnabled)return;let e=this.recentlyUsed.filter(i=>i!==t.id);e.unshift(t.id)>20&&(e.length=20),this.recentlyUsed=e}async removeRecent(t){this.recentlyUsed=this.recentlyUsed.filter(e=>e!==t.id)}async _restore(){try{if(this.favoritesEnabled&&this.restoreFavorites){let t=await this.restoreFavorites();this.favorites=new Set(t??[])}}catch{}try{if(this.recentlyUsedEnabled&&this.restoreRecentlyUsed){let t=await this.restoreRecentlyUsed();this.recentlyUsed=t??[]}}catch{}}_sortTemplates(t){if(this.templateSortByFunction){let e=this.templateSortByFunction(t)??null;return e===null?t:e}return this.templateSortBy==="alphabetical"?t.toSorted((e,i)=>e.label.localeCompare(i.label)):t}_sortSections(t){if(this.sectionSortByFunction){let e=this.sectionSortByFunction(t);e&&(t=e)}else if(this.sectionSortBy==="alphabetical")t=t.toSorted((e,i)=>e.sectionName.localeCompare(i.sectionName));else if(this.groupBy==="geometry"&&!this.groupByFunction){let e={point:1,multipoint:2,polyline:3,polygon:4,extent:5,mesh:6,noneSpecified:7};t=t.toSorted((i,o)=>{let n=e[i.sectionName]??10,p=e[o.sectionName]??10;return n-p})}for(let e of t)e.templates=this._sortTemplates(e.templates);return t}_layerIsVisibleAtCurrentScale(t){if(!this.view)return!0;let e=t;f(t)&&(e=t.parent);let i=this.view.allLayerViews.find(o=>o.layer===e);if(!i)return!0;if(f(t)){let o=this.view.scale;if(i.visibleAtCurrentScale){let n=t.minScale,p=t.maxScale,c=!n,d=!p;return!c&&o<=n&&(c=!0),!d&&o>=p&&(d=!0),c&&d}}return i.visibleAtCurrentScale}get activeLayers(){let t=[];for(let e of this.layers??[])if(m(e))for(let i of e.sublayers)t.push(i);else t.push(e);if(this.layers===void 0||this.layers===null){for(let e of[...this.view?.map?.allLayers?.slice(0).reverse()??[],...this.excludeTables?[]:this.view?.map?.allTables?.slice(0).reverse()??[]])if(e.type==="feature"||e.type==="scene"||e.type==="geojson"||e.type==="oriented-imagery"||e.type==="knowledge-graph")t.push(e);else if(m(e))for(let i of e.sublayers)t.push(i)}return t}get selectedTemplate(){return this.allTemplates.find(t=>t.id===this.selectedTemplateId)}get effectiveTemplates(){return this.templates.map(t=>({...t,templates:t.templates.filter(e=>this.inclusionFilter(e))})).filter(t=>t.templates.length>0)}get templateList(){return this._sortTemplates(this.effectiveTemplates.flatMap(t=>t.templates))}get allTemplates(){return this._sortTemplates(this.templates.flatMap(t=>t.templates))}inclusionFilter(t){if(this.excludeTables&&y(t.layer)||this.applicationFilterFunction?.(t)===!1)return!1;let e=E(t.layer)?.operations;return e?.supportsEditing===!1&&!e?.supportsAdd?!1:y(t.layer)?!0:!(this.hideTemplatesMode==="visible"&&!t.layer.visible||this.hideTemplatesMode==="scale"&&!this._layerIsVisibleAtCurrentScale(t.layer))}get templateSetKey(){return this._sortTemplates(this.allTemplates).map(t=>t.id).join(",")}get disabledTemplates(){let t=new Set;for(let e of this.allTemplates){if(this.applicationDisabledFunction&&this.applicationDisabledFunction(e)){t.add(e);continue}if(!y(e.layer)){if(this.disableTemplatesMode==="visible"&&!e.layer.visible){t.add(e);continue}if(this.disableTemplatesMode==="scale"&&this.view&&!this._layerIsVisibleAtCurrentScale(e.layer)){t.add(e);continue}}}return t}get templates(){return this.applicationTemplates??this.organizedMapTemplates}get organizedMapTemplates(){if(this.groupByFunction||this.groupBy==="geometry"){let t=!this.groupByFunction,e=this.groupByFunction??A,i=new Map;for(let o of this.mapTemplates??[])for(let n of o.templates){let p=new _({template:n,layer:o.layer}),c=e(p);if(c!=null)if(i.has(c))i.get(c)?.templates.push(p);else{let d={sectionName:c,...t?{autoTranslate:!0}:{},templates:[p]};i.set(c,d)}}return this._sortSections(Array.from(i.values()))}return this._sortSections((this.mapTemplates??[]).map(({layer:t,templates:e})=>({sectionName:t.title??"",templates:e.map(i=>new _({layer:t,template:i}))})).filter(t=>t.templates.length>0))}get updating(){return this.fetchingTemplateMetaData}get favoriteTemplates(){let t=[];for(let e of this.effectiveTemplates)for(let i of e.templates)this.favorites.has(i.id)&&t.push(i);return t}get recentTemplates(){let t=new Map;for(let i of this.effectiveTemplates)for(let o of i.templates)t.set(o.id,o);let e=[];for(let i of this.recentlyUsed)t.has(i)&&e.push(t.get(i));return e}};a([l()],s.prototype,"loading",1);a([l()],s.prototype,"_hasRunInitialLoad",2);a([l()],s.prototype,"activeLayers",1);a([l()],s.prototype,"favoritesEnabled",2);a([l()],s.prototype,"recentlyUsedEnabled",2);a([l()],s.prototype,"hideTemplateDescription",2);a([l()],s.prototype,"filterText",2);a([l()],s.prototype,"recentFilterText",2);a([l()],s.prototype,"favoritesFilterText",2);a([l()],s.prototype,"selectedTemplateId",2);a([l()],s.prototype,"selectedTemplate",1);a([l()],s.prototype,"layers",2);a([l()],s.prototype,"restoreFavorites",2);a([l()],s.prototype,"restoreRecentlyUsed",2);a([l()],s.prototype,"applicationDisabledFunction",2);a([l()],s.prototype,"applicationFilterFunction",2);a([l()],s.prototype,"display",2);a([l()],s.prototype,"groupBy",2);a([l()],s.prototype,"hideTemplatesMode",2);a([l()],s.prototype,"disableTemplatesMode",2);a([l()],s.prototype,"groupByFunction",2);a([l()],s.prototype,"sectionSortBy",2);a([l()],s.prototype,"templateSortBy",2);a([l()],s.prototype,"sectionSortByFunction",2);a([l()],s.prototype,"templateSortByFunction",2);a([l()],s.prototype,"sharedTemplatesDisabled",2);a([l()],s.prototype,"excludeTables",2);a([l()],s.prototype,"favorites",2);a([l()],s.prototype,"effectiveTemplates",1);a([l()],s.prototype,"templateList",1);a([l()],s.prototype,"allTemplates",1);a([l()],s.prototype,"templateSetKey",1);a([l()],s.prototype,"disabledTemplates",1);a([l()],s.prototype,"templates",1);a([l()],s.prototype,"mapTemplates",2);a([l()],s.prototype,"organizedMapTemplates",1);a([l()],s.prototype,"fetchingTemplateMetaData",2);a([l()],s.prototype,"updating",1);a([l()],s.prototype,"applicationTemplates",2);a([l()],s.prototype,"favoriteTemplates",1);a([l()],s.prototype,"recentTemplates",1);a([l()],s.prototype,"recentlyUsed",2);a([l()],s.prototype,"view",2);s=a([x("components.feature-templates.FeatureTemplatesViewModel")],s);var N=S(s),u=class extends g{constructor(){super(...arguments),this._messages=F(),this.viewModel=N(this),this.favoritesEnabled=this.viewModel.favoritesEnabled,this.favorites=this.viewModel.favorites,this.restoreFavorites=this.viewModel.restoreFavorites,this.restoreRecentlyUsed=this.viewModel.restoreRecentlyUsed,this.recentlyUsed=this.viewModel.recentlyUsed,this.sharedTemplatesDisabled=this.viewModel.sharedTemplatesDisabled,this.filterText=this.viewModel.filterText,this.recentFilterText=this.viewModel.recentFilterText,this.favoritesFilterText=this.viewModel.favoritesFilterText,this.recentlyUsedEnabled=this.viewModel.recentlyUsedEnabled,this.excludeTables=this.viewModel.excludeTables,this.effectiveTemplates=this.viewModel.effectiveTemplates,this.applicationTemplates=this.viewModel.applicationTemplates,this.selectedTemplateId=this.viewModel.selectedTemplateId,this.selectedTemplate=this.viewModel.selectedTemplate,this.applicationFilterFunction=this.viewModel.applicationFilterFunction,this.applicationDisabledFunction=this.viewModel.applicationDisabledFunction,this.display=this.viewModel.display,this.groupBy=this.viewModel.groupBy,this.sectionSortBy=this.viewModel.sectionSortBy,this.templateSortBy=this.viewModel.templateSortBy,this.templateSortByFunction=this.viewModel.templateSortByFunction,this.sectionSortByFunction=this.viewModel.sectionSortByFunction,this.hideTemplatesMode=this.viewModel.hideTemplatesMode,this.disableTemplatesMode=this.viewModel.disableTemplatesMode,this.groupByFunction=this.viewModel.groupByFunction,this.hideTemplateDescription=this.viewModel.hideTemplateDescription,this.layers=this.viewModel.layers,this.view=M(this),this.autoDestroyDisabled=!1,this.updating=this.viewModel.updating,this.disabled=!1,this.showCollapseButton=!1,this.showFilter=!1,this.minRequiredFilterCount=2,this.arcgisPropertyChange=w()("effectiveTemplates","filterText","recentlyUsed","favorites"),this.arcgisReady=h(),this.arcgisTemplatesChanged=h(),this.arcgisSelectTemplate=h()}static{this.properties={favoritesEnabled:5,favorites:32,restoreFavorites:0,restoreRecentlyUsed:0,recentlyUsed:32,sharedTemplatesDisabled:5,filterText:1,recentFilterText:1,favoritesFilterText:1,recentlyUsedEnabled:5,excludeTables:5,effectiveTemplates:32,applicationTemplates:0,selectedTemplateId:1,selectedTemplate:32,applicationFilterFunction:0,applicationDisabledFunction:0,display:1,groupBy:1,sectionSortBy:1,templateSortBy:1,templateSortByFunction:0,sectionSortByFunction:0,hideTemplatesMode:1,disableTemplatesMode:1,groupByFunction:0,hideTemplateDescription:5,layers:0,view:0,referenceElement:1,autoDestroyDisabled:5,updating:32,disabled:5,showCollapseButton:5,showFilter:5,minRequiredFilterCount:9}}static{this.styles=U}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[v(()=>this.view,()=>{this.viewModel.view=this.view},{initial:!0}),v(()=>this.viewModel.templateSetKey,()=>{this.arcgisTemplatesChanged.emit()}),v(()=>[this.viewModel.activeLayers?.map(e=>e.id).join(","),this.viewModel?.applicationTemplates,this.viewModel?.sharedTemplatesDisabled],$(()=>this.viewModel.handleTemplateSourceDefinitionChanged(),10),{initial:!0})])}_handleSelectTemplate(e){this.selectedTemplateId=e.id,this.arcgisSelectTemplate.emit({template:e}),this.viewModel.addRecent(e)}_removeTemplateFromList(e,i){if(i==="favorites"){this.viewModel.removeFavorite(e);return}this.viewModel.removeRecent(e)}_renderTemplates(){return this.effectiveTemplates.length===0?r`<calcite-notice icon=list open class="filter-no-results"><div slot=message>${this._messages.noTemplates}</div></calcite-notice>`:r`<calcite-list .filterPlaceholder=${this._messages.filterPlaceholder??""} .filterText=${this.filterText} .label=${this._messages?.templates??""} .filterEnabled=${this.showFilter&&this.viewModel.templateList.length>=this.minRequiredFilterCount} selection-appearance=border selection-mode=single @calciteListFilter=${e=>{this.filterText=e.target.filterText}}>${this.display==="grouped"?this.effectiveTemplates.map(e=>r`<calcite-list-item-group .heading=${e.autoTranslate?this._messages[e.sectionName]??"":e.sectionName}>${e.templates.map(i=>r`<calcite-list-item .disabled=${this.viewModel.disabledTemplates.has(i)} .label=${i.label} .selected=${i.id===this.selectedTemplateId} .description=${this.hideTemplateDescription?void 0:i.description} .value=${i.id} @calciteListItemSelect=${()=>{this._handleSelectTemplate(i)}}><arcgis-template-image slot=content-start .template=${i}></arcgis-template-image>${this._renderAddFavorite(i)}</calcite-list-item>`)}</calcite-list-item-group>`):this.viewModel.templateList.map(e=>r`<calcite-list-item .disabled=${this.viewModel.disabledTemplates.has(e)} .label=${e.label} .selected=${e.id===this.selectedTemplateId} .description=${this.hideTemplateDescription?void 0:e.description} .value=${e.id} @calciteListItemSelect=${()=>{this._handleSelectTemplate(e)}}><arcgis-template-image slot=content-start .template=${e}></arcgis-template-image>${this._renderAddFavorite(e)}</calcite-list-item>`)}${this._renderFilteredEmpty()}</calcite-list>`}_renderAddFavorite(e){return this.viewModel.favoritesEnabled?r`<calcite-action slot=actions-end .icon=${this.viewModel.favorites.has(e.id)?"heart-f":"heart"} @click=${()=>{this.viewModel.favorites.has(e.id)?this.viewModel.removeFavorite(e):this.viewModel.addFavorite(e)}} .text=${this._messages.addFavorite??""}></calcite-action>`:""}_renderList(e){let i=e==="favorites"?this.viewModel.favoriteTemplates:this.viewModel.recentTemplates;return i.length===0?r`<calcite-notice icon=list open class="filter-no-results"><div slot=message>${e==="favorites"?this._messages.noFavorites:this._messages.noRecent}</div></calcite-notice>`:r`<calcite-list .filterText=${e==="favorites"?this.favoritesFilterText:this.recentFilterText} .filterPlaceholder=${this._messages.filterPlaceholder??""} .label=${(e==="favorites"?this._messages.favorites:this._messages.recent)??""} .filterEnabled=${this.showFilter} selection-appearance=border selection-mode=single @calciteListFilter=${o=>{this.filterText=o.target.filterText}}>${i.map(o=>r`<calcite-list-item .disabled=${this.viewModel.disabledTemplates.has(o)} .label=${o.label} .description=${this.hideTemplateDescription?void 0:o.description} .value=${o.id} @calciteListItemSelect=${()=>{this._handleSelectTemplate(o)}}><arcgis-template-image slot=content-start .template=${o}></arcgis-template-image><calcite-action slot=actions-end icon=x @click=${()=>{this._removeTemplateFromList(o,e)}} .text=${(e==="favorites"?this._messages.removeFavorite:this._messages.removeRecent)??""}></calcite-action></calcite-list-item>`)}${this._renderFilteredEmpty()}</calcite-list>`}_renderFilteredEmpty(){return r`<calcite-notice icon=filter slot=filter-no-results open class="filter-no-results"><div slot=message>${this._messages.noMatchingTemplates}</div></calcite-notice>`}_renderContent(){return this.effectiveTemplates.length===0&&this.viewModel.loading?null:this.favoritesEnabled||this.recentlyUsedEnabled?r`<calcite-tabs class="feature-template-tabs"><calcite-tab-nav slot=title-group><calcite-tab-title icon-start=templates selected>${this._messages.templates}</calcite-tab-title>${this.recentlyUsedEnabled?r`<calcite-tab-title icon-start=clock>${this._messages.recent}</calcite-tab-title>`:""}${this.favoritesEnabled?r`<calcite-tab-title icon-start=heart>${this._messages.favorites}</calcite-tab-title>`:""}</calcite-tab-nav><calcite-tab selected>${this._renderTemplates()}</calcite-tab><calcite-tab>${this._renderList("recent")}</calcite-tab><calcite-tab>${this._renderList("favorites")}</calcite-tab></calcite-tabs>`:this._renderTemplates()}render(){return r`<div class="root">${this._renderContent()}${this.viewModel.updating||this.disabled?r`<calcite-scrim><calcite-loader scale=s label .hidden=${!this.viewModel.updating}></calcite-loader></calcite-scrim>`:null}</div>`}};b("arcgis-feature-templates",u);return u},"core/accessorSupport/decorators","core/Accessor","editing/templates/TemplateListItem","applications/Components/templateUtils","applications/Components/layerUtils","core/reactiveUtils",a,c,d,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as A,b as D}from"./LICI7TTI.js";import{e as L,h as _}from"./DCJXJS53.js";import{h as E,j as x,k as C,l as u,m,n as P,o as f,v,w as O,y as w}from"./YV7HCE6U.js";var N=e=>(...r)=>{let t=m(),o=new e(...r),s=o.exports;u(t.at(-1));let n=o.component.manager;n.W(o,s),o.watchExports(n.W.bind(n,o)),P(o);let a=[o.component,...t].reverse();return v(a,i=>i===void 0?void 0:M(o,i,s),s)},M=(e,{host:r,key:t,isReactive:o},s)=>{let n=r,a=n[t]!==e.exports,i=n[t]!==s,c=s!==e.exports;if(a&&!i&&c&&(n[t]=e.exports),r===e.component){if(o){let p=e.component.manager;i&&p.W(e,n[t]),e.onUpdate(h=>{if(h.has(t)){let y=n[t];y!==e.exports&&p.W(e,y)}})}e.O=o?void 0:t}let d=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{n[t]!==e.exports&&(d?f(()=>{n[t]=e.exports}):n[t]=e.exports)})};var b=e=>V(void 0,e),se=e=>r=>V(r,e),g=class extends w{constructor(r,t){super(r);let o=this.exports;try{x(this.component);let s=t(this.component,this),n=this.exports!==o;if(E(s)){n||this.setProvisionalExports(s);let a=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this.P.reject(s)}}catchUpLifecycle(){}},V=N(g);var re=e=>(...r)=>{let t=m(),o=new e(...r);return u(t.at(-1)),o};var ne=e=>b((r,t)=>{let o=globalThis.matchMedia(e),s=()=>{t.exports=o.matches};s(),t.onLifecycle(()=>(o.addEventListener("change",s),()=>o.removeEventListener("change",s)))}),R="ltr",ie=()=>b((e,r)=>{r.exports=R,r.onLifecycle(()=>{let t=()=>{let o=_(e.el,"dir",R);r.exports=o==="rtl"?"rtl":"ltr"};return t(),L(e.el,["dir"],t)})}),ae=e=>(r={})=>b((t,o)=>{let s=A(t.el),n={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},a=t;o.onLifecycle(()=>D(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:l,lang:d})=>{let p={...l,_lang:d,_t9nLocale:c,_loading:!1};o.exports=p;let h=l.componentLabel;typeof h=="string"&&"label"in t&&t.label==null&&(t.label??=h),i(a.messageOverrides)},r.name));let i=c=>{let l=o.exports,d=l._original??l,p=j(d,c);c&&(p._original=d),o.exports=p};return"messageOverrides"in a&&o.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),r.blocking?(o.setProvisionalExports(n,!1),o.ready):n}),j=(e,r)=>{if(!r)return e;let t={...e};return Object.entries(r).forEach(([o,s])=>{e[o]!==void 0&&(typeof s=="object"?t[o]=j(e[o],s):t[o]=s??e[o])}),t},ce=e=>T,U="arcgisPropertyChange",T=(...e)=>{let r=C(),t=O(U,void 0,r),o=!0;return r.manager.onUpdated(s=>{if(o||!r.el.isConnected){o=!1;return}for(let n of e)s.has(n)&&t.emit({name:n})}),t};export{N as a,b,se as c,re as d,ne as e,ie as f,ae as g,ce as h};
2
+ import{a as A,b as D}from"./XBBKSJW6.js";import{e as L,h as _}from"./56JX3YF3.js";import{h as E,j as x,k as C,l as u,m,n as P,o as f,v,w as O,y as w}from"./LOPSE7EQ.js";var N=e=>(...r)=>{let t=m(),o=new e(...r),s=o.exports;u(t.at(-1));let n=o.component.manager;n.W(o,s),o.watchExports(n.W.bind(n,o)),P(o);let a=[o.component,...t].reverse();return v(a,i=>i===void 0?void 0:M(o,i,s),s)},M=(e,{host:r,key:t,isReactive:o},s)=>{let n=r,a=n[t]!==e.exports,i=n[t]!==s,c=s!==e.exports;if(a&&!i&&c&&(n[t]=e.exports),r===e.component){if(o){let p=e.component.manager;i&&p.W(e,n[t]),e.onUpdate(h=>{if(h.has(t)){let y=n[t];y!==e.exports&&p.W(e,y)}})}e.O=o?void 0:t}let d=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{n[t]!==e.exports&&(d?f(()=>{n[t]=e.exports}):n[t]=e.exports)})};var b=e=>V(void 0,e),se=e=>r=>V(r,e),g=class extends w{constructor(r,t){super(r);let o=this.exports;try{x(this.component);let s=t(this.component,this),n=this.exports!==o;if(E(s)){n||this.setProvisionalExports(s);let a=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this.P.reject(s)}}catchUpLifecycle(){}},V=N(g);var re=e=>(...r)=>{let t=m(),o=new e(...r);return u(t.at(-1)),o};var ne=e=>b((r,t)=>{let o=globalThis.matchMedia(e),s=()=>{t.exports=o.matches};s(),t.onLifecycle(()=>(o.addEventListener("change",s),()=>o.removeEventListener("change",s)))}),R="ltr",ie=()=>b((e,r)=>{r.exports=R,r.onLifecycle(()=>{let t=()=>{let o=_(e.el,"dir",R);r.exports=o==="rtl"?"rtl":"ltr"};return t(),L(e.el,["dir"],t)})}),ae=e=>(r={})=>b((t,o)=>{let s=A(t.el),n={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},a=t;o.onLifecycle(()=>D(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:l,lang:d})=>{let p={...l,_lang:d,_t9nLocale:c,_loading:!1};o.exports=p;let h=l.componentLabel;typeof h=="string"&&"label"in t&&t.label==null&&(t.label??=h),i(a.messageOverrides)},r.name));let i=c=>{let l=o.exports,d=l._original??l,p=j(d,c);c&&(p._original=d),o.exports=p};return"messageOverrides"in a&&o.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),r.blocking?(o.setProvisionalExports(n,!1),o.ready):n}),j=(e,r)=>{if(!r)return e;let t={...e};return Object.entries(r).forEach(([o,s])=>{e[o]!==void 0&&(typeof s=="object"?t[o]=j(e[o],s):t[o]=s??e[o])}),t},ce=e=>T,U="arcgisPropertyChange",T=(...e)=>{let r=C(),t=O(U,void 0,r),o=!0;return r.manager.onUpdated(s=>{if(o||!r.el.isConnected){o=!1;return}for(let n of e)s.has(n)&&t.emit({name:n})}),t};export{N as a,b,se as c,re as d,ne as e,ie as f,ae as g,ce as h};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./3F2BRXA2.js";import a from"./KYU6MBFA.js";import{d as v}from"./DCJXJS53.js";import{O as m,P as l,Q as e,U as d,a as p,b as t}from"./YV7HCE6U.js";import"./3TTFCHAA.js";export default $arcgis.t(([,{a:f,b:b,d:g,f:h,g:y,h:r,i:u}])=>{var F=p`.layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.layer-row,.symbol{display:flex;justify-content:center}.ramps{margin-left:var(--calcite-spacing-md)}:dir(rtl) .ramps{margin-right:var(--calcite-spacing-md);margin-left:auto}.size-ramp~.layer-cell-info{width:80%;max-width:80%}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.ramp-label{position:relative;padding:0 var(--calcite-spacing-sm);line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.ramp-label:before{display:block;position:absolute;top:.25em;right:100%;border-width:3px 4px 3px 0;border-style:solid;border-color:transparent var(--calcite-color-text-1) transparent transparent;width:0;height:0;content:""}.ramp-label:first-child{margin-top:calc(var(--calcite-font-size-sm) / 3 * -1)}.ramp-label:last-child{bottom:calc(var(--calcite-font-size-sm) * .25 * -1)}:dir(rtl) .ramp-label:before{right:auto;left:100%;border-width:3px 0 3px 4px;border-color:transparent transparent transparent var(--calcite-color-text-1)}.univariate-label{position:relative;margin-left:7px;line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.univariate-label:before{display:block;position:absolute;top:.45em;left:-19px;border-width:1px 0 0;border-style:solid;width:14px;height:0;content:""}.univariate-label:first-child{top:calc(var(--calcite-font-size-sm) / 2.2 * -1)}.univariate-label:last-child{bottom:calc(var(--calcite-font-size-sm) / 2.2 * -1)}:dir(rtl) .univariate-label{margin-right:var(--calcite-spacing-sm);margin-left:auto}:dir(rtl) .univariate-label:before{right:-19px;left:auto}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,s=class extends m{constructor(){super(...arguments),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=F}render(){let{legendElement:x,opacity:w}=this,{sizeRampElement:a,colorRampElement:o}=h(x,this.messages);if(!a)return null;let $=f(a),z=12,n=g(a,"full",!1),E=b(o,{width:z,height:n,rampAlignment:"vertical",opacity:w,type:"full",cssEffectFilter:this.cssEffectFilter,ariaLabel:this.messages.previewColorRampAriaLabel}),C=a.infos.length-1,L=a.infos.map((i,c)=>c===0||c===C?t`<div class=${l(i.label?o?"univariate-label":"ramp-label":void 0)}>${i.label}</div>`:null),R={display:"table-cell",verticalAlign:"middle"},j={marginTop:`${$}px`},A={height:`${n}px`};return t`<div style=${e(u)}><div class="layer-body">${a.infos.map(i=>t`<div class=${l(v("layer-row","size-ramp"))}><div class="symbol" style=${e(R)}>${i.preview}</div></div>`)}</div><div style=${e(j)}><div style=${e(y)}><div style=${e(r)}><div class="ramps">${E}</div></div><div style=${e(r)}><div class="ramp-labels" style=${e(A)}>${L}</div></div></div></div></div>`}};d("arcgis-legend-classic-univariate-color-size-ramp",s);return s},a,b)
2
+ import b from"./S4UHZYYK.js";import a from"./KYU6MBFA.js";import{d as v}from"./56JX3YF3.js";import{O as m,P as l,Q as e,U as d,a as p,b as t}from"./LOPSE7EQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([,{a:f,b:b,d:g,f:h,g:y,h:r,i:u}])=>{var F=p`.layer-body{margin-left:var(--calcite-spacing-sm)}:dir(rtl) .layer-body{margin-right:var(--calcite-spacing-sm);margin-left:0;overflow:auto}.layer-row,.symbol{display:flex;justify-content:center}.ramps{margin-left:var(--calcite-spacing-md)}:dir(rtl) .ramps{margin-right:var(--calcite-spacing-md);margin-left:auto}.size-ramp~.layer-cell-info{width:80%;max-width:80%}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.ramp-label{position:relative;padding:0 var(--calcite-spacing-sm);line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.ramp-label:before{display:block;position:absolute;top:.25em;right:100%;border-width:3px 4px 3px 0;border-style:solid;border-color:transparent var(--calcite-color-text-1) transparent transparent;width:0;height:0;content:""}.ramp-label:first-child{margin-top:calc(var(--calcite-font-size-sm) / 3 * -1)}.ramp-label:last-child{bottom:calc(var(--calcite-font-size-sm) * .25 * -1)}:dir(rtl) .ramp-label:before{right:auto;left:100%;border-width:3px 0 3px 4px;border-color:transparent transparent transparent var(--calcite-color-text-1)}.univariate-label{position:relative;margin-left:7px;line-height:1em;white-space:nowrap;font-size:var(--calcite-font-size-sm)}.univariate-label:before{display:block;position:absolute;top:.45em;left:-19px;border-width:1px 0 0;border-style:solid;width:14px;height:0;content:""}.univariate-label:first-child{top:calc(var(--calcite-font-size-sm) / 2.2 * -1)}.univariate-label:last-child{bottom:calc(var(--calcite-font-size-sm) / 2.2 * -1)}:dir(rtl) .univariate-label{margin-right:var(--calcite-spacing-sm);margin-left:auto}:dir(rtl) .univariate-label:before{right:-19px;left:auto}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,s=class extends m{constructor(){super(...arguments),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=F}render(){let{legendElement:x,opacity:w}=this,{sizeRampElement:a,colorRampElement:o}=h(x,this.messages);if(!a)return null;let $=f(a),z=12,n=g(a,"full",!1),E=b(o,{width:z,height:n,rampAlignment:"vertical",opacity:w,type:"full",cssEffectFilter:this.cssEffectFilter,ariaLabel:this.messages.previewColorRampAriaLabel}),C=a.infos.length-1,L=a.infos.map((i,c)=>c===0||c===C?t`<div class=${l(i.label?o?"univariate-label":"ramp-label":void 0)}>${i.label}</div>`:null),R={display:"table-cell",verticalAlign:"middle"},j={marginTop:`${$}px`},A={height:`${n}px`};return t`<div style=${e(u)}><div class="layer-body">${a.infos.map(i=>t`<div class=${l(v("layer-row","size-ramp"))}><div class="symbol" style=${e(R)}>${i.preview}</div></div>`)}</div><div style=${e(j)}><div style=${e(y)}><div style=${e(r)}><div class="ramps">${E}</div></div><div style=${e(r)}><div class="ramp-labels" style=${e(A)}>${L}</div></div></div></div></div>`}};d("arcgis-legend-classic-univariate-color-size-ramp",s);return s},a,b)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{O as s,U as n,a as i,b as e}from"./YV7HCE6U.js";import"./3TTFCHAA.js";var r=i`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`,t=class extends s{static{this.properties={viewModel:0,messages:0}}static{this.styles=r}loaded(){this.manager.onLifecycle(()=>[])}render(){return e`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderAttributionSection()}${this._renderCustomTextElementSection()}</div>`}_renderScaleSection(){return e`<arcgis-print-scale-section .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-scale-section>`}_renderDpiSection(){return e`<arcgis-print-dpi-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-dpi-input>`}_renderOutSpatialReferenceSection(){return e`<arcgis-print-out-spatial-reference-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-out-spatial-reference-input>`}_renderAttributionSection(){return e`<div><calcite-label layout=inline><calcite-checkbox .checked=${this.viewModel.templateOptions.attributionEnabled} @calciteCheckboxChange=${a=>this.viewModel.templateOptions.attributionEnabled=a.target.checked}></calcite-checkbox>${this.messages.attribution}</calcite-label></div>`}_renderCustomTextElementSection(){return e`<arcgis-print-custom-text-elements .viewModel=${this.viewModel}></arcgis-print-custom-text-elements>`}};n("arcgis-print-map-only-advanced-options",t);export{t as PrintMapOnlyAdvancedOptions};
2
+ import{O as s,U as n,a as i,b as e}from"./LOPSE7EQ.js";import"./3TTFCHAA.js";var r=i`.advanced-options-container{padding:var(--calcite-spacing-xxs);display:flex;flex-direction:column;gap:var(--calcite-spacing-xs)}`,t=class extends s{static{this.properties={viewModel:0,messages:0}}static{this.styles=r}loaded(){this.manager.onLifecycle(()=>[])}render(){return e`<div aria-labelledby=${`${this.el.id}__advancedOptionsForLayout`} class="advanced-options-container">${this._renderScaleSection()}${this._renderDpiSection()}${this._renderOutSpatialReferenceSection()}${this._renderAttributionSection()}${this._renderCustomTextElementSection()}</div>`}_renderScaleSection(){return e`<arcgis-print-scale-section .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-scale-section>`}_renderDpiSection(){return e`<arcgis-print-dpi-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-dpi-input>`}_renderOutSpatialReferenceSection(){return e`<arcgis-print-out-spatial-reference-input .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-out-spatial-reference-input>`}_renderAttributionSection(){return e`<div><calcite-label layout=inline><calcite-checkbox .checked=${this.viewModel.templateOptions.attributionEnabled} @calciteCheckboxChange=${a=>this.viewModel.templateOptions.attributionEnabled=a.target.checked}></calcite-checkbox>${this.messages.attribution}</calcite-label></div>`}_renderCustomTextElementSection(){return e`<arcgis-print-custom-text-elements .viewModel=${this.viewModel}></arcgis-print-custom-text-elements>`}};n("arcgis-print-map-only-advanced-options",t);export{t as PrintMapOnlyAdvancedOptions};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import j from"./RPLSZ5AT.js";import i from"./DMRMU26C.js";import f from"./LNCWHBCZ.js";import e from"./PQMSGNIB.js";import{f as g,h}from"./VOLAIB2C.js";import"./LICI7TTI.js";import b from"./EVPRCBAI.js";import{g as d}from"./DCJXJS53.js";import{O as c,U as s,a as n,q as r,x as a}from"./YV7HCE6U.js";import"./3TTFCHAA.js";export default $arcgis.t(([{on:w},f,x,{b:u,g:m},,{a:i},b,p])=>{var y=n`.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{--arcgis-internal-feature-table-icon-color: var(--calcite-icon-color);--arcgis-internal-feature-table-background-color: var(--calcite-color-surface-2);--arcgis-internal-feature-table-background-color-secondary: var(--calcite-color-surface-1);--arcgis-internal-feature-table-text-color: var(--calcite-color-text-1);--arcgis-internal-feature-table-text-color-secondary: var(--calcite-color-text-2);--arcgis-internal-feature-table-text-color-tertiary: var(--calcite-color-text-3);--arcgis-internal-feature-table-text-color-hover: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-interactive-text-color: var(--calcite-color-text-1);--arcgis-internal-feature-table-interactive-text-color-hover: var(--calcite-color-text-1);--arcgis-internal-feature-table-text-color-link: var(--calcite-color-text-link);--arcgis-internal-feature-table-text-color-link-hover: var(--calcite-color-text-highlight);--arcgis-internal-feature-table-column-header-background-color: var(--calcite-color-surface-1);--arcgis-internal-feature-table-column-header-sorted-background-color: var( --arcgis-internal-feature-table-background-color );--arcgis-internal-feature-table-column-header-icon-color: var(--arcgis-internal-feature-table-icon-color);--arcgis-internal-feature-table-column-header-text-color: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-column-header-text-font-weight: var(--calcite-font-weight-regular);--arcgis-internal-feature-table-row-background-color: var(--calcite-color-surface-2);--arcgis-internal-feature-table-row-background-color-hover: var(--calcite-color-surface-3);--arcgis-internal-feature-table-selection-checkbox-color: var(--calcite-icon-color, var(--calcite-color-brand));--arcgis-internal-feature-table-selected-row-text-color: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-selected-row-text-color-hover: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-selected-row-background-color-primary: var(--calcite-color-brand);--arcgis-internal-feature-table-selected-row-background-color-secondary: var(--calcite-color-surface-2);--arcgis-internal-feature-table-selected-row-background-color: color-mix( in sRGB, var(--arcgis-internal-feature-table-selected-row-background-color-primary) 10%, var(--arcgis-internal-feature-table-selected-row-background-color-secondary) );--arcgis-internal-feature-table-selected-row-background-color-hover: color-mix( in sRGB, var(--arcgis-internal-feature-table-selected-row-background-color-primary) 20%, var(--arcgis-internal-feature-table-selected-row-background-color-secondary) )}.esri-feature-table{--icon-size: 64px;flex-direction:column;width:100%;height:100%;display:flex}.esri-feature-table__content{--calcite-action-text-color: var(--arcgis-internal-feature-table-interactive-text-color);--calcite-action-text-color-press: var(--arcgis-internal-feature-table-interactive-text-color-hover);--calcite-panel-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary);--calcite-panel-header-action-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-header-background-color: var(--arcgis-internal-feature-table-background-color);--calcite-panel-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-icon-color: var(--arcgis-internal-feature-table-text-color);overflow:hidden}.esri-feature-table__content calcite-pagination{justify-content:center}.esri-feature-table calcite-scrim>div:first-child{min-width:300px;max-width:400px;max-height:100%;position:relative}.esri-feature-table__collapsed{min-width:500px}.esri-feature-table__collapsed:not(:last-child){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);min-width:300px;max-width:300px}.esri-feature-table__expanded{min-width:300px;display:flex}.esri-feature-table__expanded:not(:last-child){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-2)}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child{flex:2 1 0}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child calcite-panel{min-width:fit-content}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child calcite-panel>div:first-child{flex:2 1 0}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child .esri-feature-table__collapsed{max-width:inherit}.esri-feature-table__table-container{flex:1 1 0;min-height:0;margin:0;padding:0;display:flex;width:100%;height:100%}.esri-feature-table__table-container calcite-panel>div{overflow-y:auto}.esri-feature-table__table-container calcite-panel div{flex:1 1 0;display:flex}.esri-feature-table__table-container calcite-panel div .esri-feature-table__attachments-view__list{--calcite-list-label-text-color: var(--arcgis-internal-feature-table-text-color);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);color:var(--arcgis-internal-feature-table-text-color);flex:1 1 0;min-width:480px;overflow-y:auto}.esri-feature-table__table-container calcite-panel div .esri-feature-table__attachments-view__list__filesize{cursor:default;align-items:center;height:100%;margin-inline-end:var(--calcite-space-md);display:flex}.esri-feature-table__table-navigation{--calcite-label-margin-bottom: 0;background-color:var(--arcgis-internal-feature-table-background-color);width:100%;line-height:initial;align-items:center;padding-block-start:var(--calcite-space-base);display:flex}.esri-feature-table__table-navigation calcite-action:first-child{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);transform:scaleX(-1)}.esri-feature-table__table-navigation calcite-chip{--calcite-chip-close-icon-color: var(--calcite-color-text-inverse);margin-inline-end:var(--calcite-space-md)}.esri-feature-table__table-navigation calcite-label{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline:var(--calcite-space-md);height:100%}.esri-feature-table__table-navigation calcite-action{display:flex;overflow:hidden}.esri-feature-table__table-navigation div:last-child{float:inline-end;align-items:center;height:100%;margin-inline:auto 0;display:flex}.esri-feature-table__table-navigation calcite-action:last-child{float:inline-end;margin-inline:auto 0;display:flex}.esri-feature-table__attachments-view{background-color:var(--arcgis-internal-feature-table-background-color);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);min-width:300px}.esri-feature-table__attachments-view__content{background-color:var(--arcgis-internal-feature-table-background-color-secondary);padding:var(--calcite-space-md);flex-direction:column;justify-content:center;align-items:center;width:100%;max-height:100%;overflow-y:auto}.esri-feature-table__attachments-view__details,.esri-feature-table__attachments-view__drop-area{flex-direction:column;justify-content:center;align-items:center;width:100%}.esri-feature-table__attachments-view__details{padding:var(--calcite-space-xl);max-height:100%}.esri-feature-table__attachments-view__details img{display:block;padding:var(--calcite-space-sm);max-width:100%;max-height:100%}.esri-feature-table__attachments-view__details calcite-action{position:sticky}.esri-feature-table__attachments-view__drop-area{border:var(--calcite-border-width-sm) dashed var(--calcite-color-border-input);border-radius:var(--calcite-corner-radius-round);text-align:center}.esri-feature-table__attachments-view__drop-area form{justify-content:center;display:flex}.esri-feature-table__attachments-view__drop-area form fieldset{border:none;display:flex;flex-direction:column;align-items:center}.esri-feature-table__attachments-view__drop-area form fieldset calcite-button,.esri-feature-table__attachments-view__drop-area form fieldset span{margin-bottom:var(--calcite-space-sm)}.esri-feature-table__attachments-view__drop-area__label{margin-bottom:var(--calcite-space-md);font-size:var(--calcite-font-size-md)}.esri-feature-table__attachments-view__drop-area__message{margin-bottom:var(--calcite-space-md);word-break:break-all}.esri-feature-table__attachments-view__icon{--calcite-icon-color: var(--arcgis-internal-feature-table-icon-color);margin-bottom:var(--calcite-space-md);block-size:var(--icon-size);inline-size:var(--icon-size)}.esri-feature-table__attachments-view__information{--calcite-button-border-color: var(--calcite-color-brand);--calcite-button-text-color: var(--calcite-color-brand);padding:var(--calcite-space-md);flex-direction:column;max-width:200px;overflow-y:auto}.esri-feature-table__attachments-view__information calcite-button,.esri-feature-table__attachments-view__information calcite-icon,.esri-feature-table__attachments-view__information img{margin-block-end:var(--calcite-space-md)}.esri-feature-table__attachments-view__information__data{margin-block-end:var(--calcite-space-md);word-wrap:break-word;color:var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__attachments-view__information__label{color:var(--arcgis-internal-feature-table-text-color-tertiary);font-weight:var(--calcite-font-weight-regular)}.esri-feature-table__attachments-view__list-item--delete{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.esri-feature-table__attachments-view__list__thumbnail{margin-block:var(--calcite-space-sm);justify-content:center;align-items:center}.esri-feature-table__attachments-view__list__thumbnail span{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-round);width:var(--icon-size);height:var(--icon-size);color:var(--arcgis-internal-feature-table-text-color-tertiary);justify-content:center;align-items:center;display:flex;overflow:hidden}.esri-feature-table__menu-popover{--calcite-popover-text-color: var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__menu-popover calcite-list{--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-list-label-text-color: var(--arcgis-internal-feature-table-text-color);color:var(--arcgis-internal-feature-table-text-color);max-width:300px;max-height:260px;overflow-y:auto}.esri-feature-table__dialog{--calcite-dialog-content-space: 0;--calcite-dialog-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-dialog-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary)}.esri-feature-table__dialog calcite-progress{position:sticky;top:0;margin-bottom:var(--calcite-space-sm)}.esri-feature-table__dialog calcite-pagination{justify-content:center;width:100%}.esri-feature-table__dialog calcite-panel{--calcite-panel-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary);--calcite-panel-header-action-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-icon-color: var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__dialog img{width:auto;max-width:100%}.esri-feature-table__dialog__content{display:flex;flex-direction:column;flex-grow:1;align-items:center;justify-content:center}.esri-feature-table__dialog__header{color:var(--arcgis-internal-feature-table-text-color);display:flex;flex-direction:row;gap:var(--calcite-space-sm);justify-content:space-between;width:100%}.esri-feature-table__dialog__header span{align-self:center;word-break:break-all;padding-inline-start:var(--calcite-space-md)}.esri-feature-table__footer__message{gap:var(--calcite-space-sm);margin:0 var(--calcite-space-md);align-items:center;display:flex}.esri-feature-table__footer__icon--danger{color:var(--calcite-color-status-danger)}.esri-feature-table__footer__icon--success{color:var(--calcite-color-status-success)}.esri-feature-table__layer-switcher-menu{--calcite-dropdown-item-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-dropdown-item-text-color-press: var(--arcgis-internal-feature-table-text-color);align-items:center;display:flex}calcite-button.esri-attachments-column__button,calcite-button.esri-column__show-related-records-button{--calcite-button-background-color: transparent;--calcite-button-icon-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-offset-invert-focus: 2}calcite-button.esri-attachments-column__button:hover,calcite-button.esri-column__show-related-records-button:hover{--calcite-button-icon-color: var(--arcgis-internal-feature-table-text-color-link-hover);--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link-hover)}.esri-column__show-related-records-button{height:100%;display:flex}.esri-attachments-column__button{overflow:hidden}.esri-attachments-column__button>div{display:flex;overflow:hidden}.esri-attachments-column__button>div>div:first-child{text-overflow:ellipsis;width:100%;margin-inline-end:var(--calcite-space-2xl);overflow:hidden}.esri-attachments-column__button>div span{align-self:center;position:absolute;inset-inline-end:var(--calcite-space-3xl)}.esri-attachments-column__content{flex-direction:row;justify-content:space-between;width:100%;height:100%;display:flex;overflow:hidden}.esri-attachments-column__content>div:first-child{text-overflow:ellipsis;line-height:0;overflow:hidden}.esri-attachments-column__button calcite-icon,.esri-attachments-column__button img,.esri-attachments-column__content calcite-icon,.esri-attachments-column__content img{max-width:var(--calcite-space-2xl);max-height:var(--calcite-space-2xl);vertical-align:middle;margin-inline-end:var(--calcite-space-2xs);display:inline-flex}.esri-grid{background-color:var(--arcgis-internal-feature-table-background-color);width:100%;height:100%}.esri-grid vaadin-grid{border-block-end:none;border-inline:none;background-color:inherit;color:inherit;font-family:inherit;font-size:var(--calcite-font-size);overflow:visible}.esri-grid vaadin-grid[reordering]::part(cell):after{content:normal}.esri-grid vaadin-grid[reordering]::part(frozen-cell),.esri-grid vaadin-grid[reordering]::part(frozen-to-end-cell),.esri-grid vaadin-grid[reordering]::part(reorder-allowed-cell){filter:brightness(.9) contrast(1.1)}.esri-grid vaadin-grid::part(empty-state){border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);color:var(--arcgis-internal-feature-table-text-color)}.esri-grid vaadin-grid::part(cell editing){z-index:2}.esri-grid vaadin-grid::part(frozen-cell),.esri-grid vaadin-grid::part(frozen-to-end-cell){z-index:4}.esri-grid vaadin-grid::part(cell last-frozen-cell){overflow:visible}.esri-grid vaadin-grid::part(cell text-wrap){text-wrap:wrap}.esri-grid vaadin-grid-cell-content{box-sizing:border-box!important;align-items:center;padding:var(--calcite-space-2xs) var(--calcite-space-sm);height:100%;min-height:var(--calcite-font-line-height-fixed-3xl)}.esri-grid vaadin-grid::part(cell){border-inline-end:var(--calcite-border-width-sm) solid;border-color:var(--calcite-color-surface-4);line-height:28px;color:var(--arcgis-internal-feature-table-text-color)}.esri-grid vaadin-grid::part(cell):focus:after{outline-color:var(--calcite-color-brand)}.esri-grid vaadin-grid[overflow~=start]::part(cell last-frozen-cell){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}[dir=rtl].esri-grid vaadin-grid[overflow~=start]::part(cell last-frozen-cell){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid[overflow~=end]::part(cell first-frozen-to-end-cell){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}[dir=rtl].esri-grid vaadin-grid[overflow~=end]::part(cell first-frozen-to-end-cell){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid::part(body-cell){background-color:var(--arcgis-internal-feature-table-row-background-color)}.esri-grid vaadin-grid::part(body-cell):hover{background-color:var(--arcgis-internal-feature-table-row-background-color-hover);color:var(--arcgis-internal-feature-table-text-color-hover)}.esri-grid vaadin-grid::part(body-cell invalid){color:var(--arcgis-internal-feature-table-text-color-tertiary);font-style:italic}.esri-grid vaadin-grid::part(header-cell){background-color:var(--arcgis-internal-feature-table-column-header-background-color)}.esri-grid vaadin-grid::part(header-cell invalid){font-weight:var(--calcite-font-weight-bold)}.esri-grid vaadin-grid[overflow~=top]::part(header-cell){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid::part(header-cell direction){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-brand);background-color:var(--arcgis-internal-feature-table-column-header-sorted-background-color)}.esri-grid vaadin-grid[overflow~=top]::part(header-cell direction){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-brand)}.esri-grid vaadin-grid::part(body-cell highlight){background-color:var(--calcite-color-surface-4)}.esri-grid vaadin-grid::part(selected-row-cell){background-color:var(--arcgis-internal-feature-table-selected-row-background-color);color:var(--arcgis-internal-feature-table-selected-row-text-color)}.esri-grid vaadin-grid::part(selected-row-cell):hover{background-color:var(--arcgis-internal-feature-table-selected-row-background-color-hover);color:var(--arcgis-internal-feature-table-selected-row-text-color-hover)}.esri-grid vaadin-grid::part(body-cell pending-edit){border:var(--calcite-border-width-md) solid var(--calcite-color-status-success);background-color:color-mix(in sRGB,var(--calcite-color-status-success) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit):hover{background-color:color-mix(in sRGB,var(--calcite-color-status-success-hover) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit-invalid){border:var(--calcite-border-width-md) dashed var(--calcite-color-status-danger);background-color:color-mix(in sRGB,var(--calcite-color-status-danger) 20%,var(--arcgis-internal-feature-table-background-color));font-weight:var(--calcite-font-weight-bold)}.esri-grid vaadin-grid::part(body-cell pending-edit-invalid):hover{background-color:color-mix(in sRGB,var(--calcite-color-status-danger-hover) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit-other){cursor:not-allowed;color:var(--arcgis-internal-feature-table-text-color-tertiary)}.esri-grid vaadin-checkbox{line-height:var(--calcite-font-line-height-relative-snug)}.esri-grid vaadin-checkbox::part(checkbox){background-color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-snug)}.esri-grid vaadin-checkbox[checked]::part(checkbox){background-color:var(--arcgis-internal-feature-table-selection-checkbox-color)}.esri-grid vaadin-grid-sorter[direction]::part(indicators),.esri-grid vaadin-grid-sorter[direction]::part(order){color:var(--arcgis-internal-feature-table-column-header-text-color)}.esri-grid .esri-grid__content{background-color:var(--arcgis-internal-feature-table-background-color-secondary);width:100%;height:100%}.esri-grid .esri-grid__grid{width:100%;height:100%}.esri-grid a{color:var(--arcgis-internal-feature-table-text-color-link);text-decoration:underline}.esri-grid a:hover,.esri-grid a:focus{color:var(--arcgis-internal-feature-table-text-color-link-hover)}.esri-grid .esri-column__content--full{width:100%;height:100%;position:absolute;top:0;left:0}.esri-grid .esri-column__header-content{text-align:start;align-items:flex-start;width:100%;height:100%;font-weight:var(--calcite-font-weight-regular);display:flex;overflow:hidden}.esri-grid .esri-column__header-content:has(calcite-icon:only-child){justify-content:center;align-items:center}.esri-grid .esri-column__header-content div{width:100%;flex-flow:column wrap;display:flex;overflow:hidden}.esri-grid .esri-column__header-content div span{text-overflow:ellipsis;width:100%;line-height:var(--calcite-font-line-height-fixed-xl);overflow:hidden}.esri-grid .esri-column__header-content calcite-icon{color:var(--arcgis-internal-feature-table-column-header-icon-color);height:var(--calcite-space-2xl);margin-inline-end:var(--calcite-space-2xs)}.esri-grid .esri-column__header-content calcite-dropdown{float:inline-end;max-height:180px}.esri-grid .esri-column__header-content calcite-dropdown calcite-action{--calcite-icon-color: var(--arcgis-internal-feature-table-column-header-icon-color)}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-group{max-width:200px;overflow-x:auto}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-group:only-of-type{max-height:180px;overflow:visible}.esri-grid .esri-column__header-content calcite-dropdown[open] calcite-dropdown-item{display:flex}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-item,.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-item[hidden]{display:none}.esri-grid .esri-column__header-description{color:var(--arcgis-internal-feature-table-text-color-tertiary);font-size:var(--calcite-font-size-sm)}.esri-grid .esri-column__sorter:hover{cursor:pointer}.esri-grid .esri-column__sorter,.esri-grid .esri-column__header-label{color:var(--arcgis-internal-feature-table-column-header-text-color);flex-grow:1;font-weight:var(--arcgis-internal-feature-table-column-header-text-font-weight);align-items:center;display:flex;overflow:hidden}.esri-column__header-menu-icon{margin-inline-end:15px}.esri-column__cell-input{border:none;flex:1 1 0;width:100%;height:100%}.esri-column__cell__input-container{flex-direction:column;align-items:center;width:100%;display:flex}.esri-column__cell__input-container input,.esri-column__cell__input-container select{padding:0;position:absolute;top:0;left:0}.esri-column__cell__input-container div,.esri-column__cell__input-container input,.esri-column__cell__input-container select{width:100%;display:flex}.esri-column__cell__input-container calcite-action-bar{background-color:var(--arcgis-internal-feature-table-background-color-secondary)}.esri-column__cell__input-container div:first-child{flex-direction:column}.esri-column__cell__input-container calcite-input-time-zone{--calcite-dropdown-width: 200px}.esri-column__cell__input-container calcite-input-time-picker:last-child,.esri-column__cell__input-container calcite-input-time-picker:nth-child(2),.esri-column__cell__input-container calcite-input-time-zone{margin-top:-1px}.esri-feature-table .esri-editor__prompt--danger{border-top:solid 3px var(--calcite-color-status-danger);background-color:var(--calcite-color-surface-1);color:var(--arcgis-internal-feature-table-text-color);flex-flow:column;max-height:85%;padding-block:var(--calcite-space-md);padding-inline:15px;animation:.25s ease-in-out esri-fade-in-up;display:flex;position:absolute;bottom:0;left:0;right:0;box-shadow:0 1px 2px #0000004d}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__header{color:var(--calcite-color-status-danger);flex:none;align-items:center;gap:7px;margin-bottom:var(--calcite-space-md);display:flex}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__header__heading{color:var(--arcgis-internal-feature-table-text-color);margin:0 3px}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__message{word-break:break-word;color:inherit;flex:auto;padding:0 0 12px;font-weight:var(--calcite-font-weight-regular);overflow:hidden auto}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__divider{color:inherit;border-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:1px;flex:none;margin:0 0 12px}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__actions{flex-direction:row;display:flex}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__half-width-button{width:50%}`,k=b(x),l=class extends c{constructor(){super(...arguments),this._direction=g(),this.widget=k(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.attachmentsColumns=this.widget.attachmentsColumns,this.attributeTableTemplate=this.widget.attributeTableTemplate,this.actionColumn=this.widget.actionColumn,this.actionColumnConfig=this.widget.actionColumnConfig,this.activeFilters=this.widget.activeFilters,this.activeSortOrders=this.widget.activeSortOrders,this.allColumns=this.widget.allColumns,this.allRelatedTablesVisible=this.widget.allRelatedTablesVisible,this.allVisibleColumns=this.widget.allVisibleColumns,this.attachmentsEnabled=this.widget.attachmentsEnabled,this.attachmentsViewOptions=this.widget.attachmentsViewOptions,this.autoDestroyDisabled=!1,this.autoRefreshDisabled=this.widget.autoRefreshEnabled,this.autoSaveDisabled=this.widget.autoSaveEnabled,this.canAddRelatedFeature=this.widget.canAddRelatedFeature,this.closed=this.widget.closed,this.collapsed=this.widget.collapsed,this.columnPerformanceModeDisabled=this.widget.columnPerformanceModeEnabled,this.columnReorderingDisabled=this.widget.columnReorderingEnabled,this.columns=this.widget.columns,this.definitionExpression=this.widget.definitionExpression,this.description=this.widget.description,this.disabled=this.widget.disabled,this.editingEnabled=this.widget.editingEnabled,this.effectiveSize=this.widget.effectiveSize,this.fieldColumns=this.widget.fieldColumns,this.filterByLayerScaleRange=this.widget.filterByLayerScaleRange,this.filterBySelectionEnabled=this.widget.filterBySelectionEnabled,this.filterByViewExtent=this.widget.filterByViewExtent,this.filterGeometry=this.widget.filterGeometry,this.groupColumns=this.widget.groupColumns,this.hasContingentValues=this.widget.hasContingentValues,this.hasInvalidPendingEdits=this.widget.hasInvalidPendingEdits,this.hasPendingEdits=this.widget.hasPendingEdits,this.hiddenFields=this.widget.hiddenFields,this.hideColumnDescriptions=this.widget.visibleElements.columnDescriptions,this.hideColumnMenuItemsSortAscending=this.widget.visibleElements.columnMenuItems.sortAscending,this.hideColumnMenuItemsSortDescending=this.widget.visibleElements.columnMenuItems.sortDescending,this.hideColumnMenus=this.widget.visibleElements.columnMenus,this.hideColumnVisibilityMenu=this.widget.visibleElements.columnVisibilityMenu,this.hideColumnVisibilityMenuItemsFilter=this.widget.visibleElements.columnVisibilityMenuItems.filter,this.hideColumnVisibilityMenuItemsHeader=this.widget.visibleElements.columnVisibilityMenuItems.header,this.hideColumnVisibilityMenuItemsToggleAll=this.widget.visibleElements.columnVisibilityMenuItems.toggleAll,this.hideHeader=this.widget.visibleElements.header,this.hideLayerDropdownIcons=this.widget.visibleElements.layerDropdownIcons,this.hideMenu=this.widget.visibleElements.menu,this.hideMenuItemsClearSelection=this.widget.visibleElements.menuItems.clearSelection,this.hideMenuItemsDeleteSelection=this.widget.visibleElements.menuItems.deleteSelection,this.hideMenuItemsExportSelectionToCsv=this.widget.visibleElements.menuItems.exportSelectionToCSV,this.hideMenuItemsRefreshData=this.widget.visibleElements.menuItems.refreshData,this.hideMenuItemsSelectedRecordsShowAllToggle=this.widget.visibleElements.menuItems.selectedRecordsShowAllToggle,this.hideMenuItemsSelectedRecordsShowSelectedToggle=this.widget.visibleElements.menuItems.selectedRecordsShowSelectedToggle,this.hideMenuItemsZoomToSelection=this.widget.visibleElements.menuItems.zoomToSelection,this.hideProgress=this.widget.visibleElements.progress,this.hideSelectionColumn=this.widget.visibleElements.selectionColumn,this.hideTooltips=this.widget.visibleElements.tooltips,this.highlightDisabled=this.widget.highlightEnabled,this.highlightIds=this.widget.highlightIds,this.initialSize=this.widget.initialSize,this.icon=this.widget.icon,this.isQueryingOrSyncing=this.widget.isQueryingOrSyncing,this.isSyncingAttachments=this.widget.isSyncingAttachments,this.label=this.widget.label,this.layer=this.widget.layer,this.mapLayerId=p(this,e=>{e&&(this.layer=e)}),this.layerView=this.widget.layerView,this.layers=this.widget.layers,this.maxSize=this.widget.maxSize,this.menuConfig=this.widget.menuConfig,this.multipleSelectionDisabled=this.widget.multipleSelectionEnabled,this.multipleSortEnabled=this.widget.multiSortEnabled,this.multipleSortPriority=this.widget.multipleSortPriority,this.navigationScale=this.widget.navigationScale,this.noDataMessage=this.widget.noDataMessage,this.objectIds=this.widget.objectIds,this.outFields=this.widget.outFields,this.pageCount=this.widget.pageCount,this.pageIndex=this.widget.pageIndex,this.pageSize=this.widget.pageSize,this.paginationEnabled=this.widget.paginationEnabled,this.relatedRecordsEnabled=this.widget.relatedRecordsEnabled,this.relatedTable=this.widget.relatedTable,this.relatedTables=this.widget.relatedTables,this.relationship=this.widget.relationship,this.relationshipColumns=this.widget.relationshipColumns,this.returnGeometryEnabled=this.widget.returnGeometryEnabled,this.returnMEnabled=this.widget.returnMEnabled,this.returnZEnabled=this.widget.returnZEnabled,this.rowHighlightIds=this.widget.rowHighlightIds,this.selectionManager=this.widget.selectionManager,this.showCollapse=this.widget.visibleElements.collapse,this.showClose=this.widget.visibleElements.close,this.showLayerDropdown=this.widget.visibleElements.layerDropdown,this.size=this.widget.size,this.state=this.widget.state,this.supportsAddAttachments=this.widget.supportsAddAttachments,this.supportsAttachments=this.widget.supportsAttachments,this.supportsDeleteAttachments=this.widget.supportsDeleteAttachments,this.supportsResizeAttachments=this.widget.supportsResizeAttachments,this.supportsUpdateAttachments=this.widget.supportsUpdateAttachments,this.syncTemplateOnChangesDisabled=this.widget.syncTemplateOnChangesEnabled,this.syncViewSelection=this.widget.syncViewSelection,this.tableController=this.widget.tableController,this.tableParent=this.widget.tableParent,this.tableTemplate=this.widget.tableTemplate,this.tableTitle=this.widget.title,this.timeExtent=this.widget.timeExtent,this.timeZone=this.widget.timeZone,this.visibleColumns=this.widget.visibleColumns,this.arcgisCellClick=i(()=>this.widget,"cell-click"),this.arcgisCellDblClick=i(()=>this.widget,"cell-dblclick"),this.arcgisCellKeydown=i(()=>this.widget,"cell-keydown"),this.arcgisCellPointerout=i(()=>this.widget,"cell-pointerout"),this.arcgisCellPointerover=i(()=>this.widget,"cell-pointerover"),this.arcgisColumnReorder=i(()=>this.widget,"column-reorder"),this.arcgisPropertyChange=h()("effectiveSize","isQueryingOrSyncing","layerView","size","state"),this.arcgisReady=a(),this.arcgisSelectionChange=a()}static{this.properties={view:0,attachmentsColumns:32,attributeTableTemplate:0,actionColumn:32,actionColumnConfig:0,activeFilters:32,activeSortOrders:32,allColumns:32,allRelatedTablesVisible:36,allVisibleColumns:32,attachmentsEnabled:5,attachmentsViewOptions:0,autoDestroyDisabled:5,autoRefreshDisabled:5,autoSaveDisabled:5,canAddRelatedFeature:36,closed:5,collapsed:5,columnPerformanceModeDisabled:5,columnReorderingDisabled:5,columns:32,definitionExpression:1,description:1,disabled:7,editingEnabled:5,effectiveSize:40,fieldColumns:32,filterByLayerScaleRange:5,filterBySelectionEnabled:5,filterByViewExtent:5,filterGeometry:0,groupColumns:32,hasContingentValues:36,hasInvalidPendingEdits:36,hasPendingEdits:36,hiddenFields:0,hideColumnDescriptions:5,hideColumnMenuItemsSortAscending:5,hideColumnMenuItemsSortDescending:5,hideColumnMenus:5,hideColumnVisibilityMenu:5,hideColumnVisibilityMenuItemsFilter:5,hideColumnVisibilityMenuItemsHeader:5,hideColumnVisibilityMenuItemsToggleAll:5,hideHeader:5,hideLayerDropdownIcons:5,hideMenu:5,hideMenuItemsClearSelection:5,hideMenuItemsDeleteSelection:5,hideMenuItemsExportSelectionToCsv:5,hideMenuItemsRefreshData:5,hideMenuItemsSelectedRecordsShowAllToggle:5,hideMenuItemsSelectedRecordsShowSelectedToggle:5,hideMenuItemsToggleColumns:5,hideMenuItemsZoomToSelection:5,hideProgress:5,hideSelectionColumn:5,hideTooltips:5,highlightDisabled:5,highlightIds:0,initialSize:9,icon:1,isQueryingOrSyncing:36,isSyncingAttachments:36,label:1,layer:0,mapLayerId:1,layerItemId:1,layerUrl:1,layerId:9,layerView:32,layers:0,maxSize:9,menuConfig:0,multipleSelectionDisabled:5,multipleSortEnabled:5,multipleSortPriority:1,navigationScale:1,noDataMessage:1,objectIds:0,outFields:0,pageCount:40,pageIndex:9,pageSize:9,paginationEnabled:5,referenceElement:1,relatedRecordsEnabled:5,relatedTable:32,relatedTables:0,relationship:32,relationshipColumns:32,returnGeometryEnabled:5,returnMEnabled:5,returnZEnabled:5,rowHighlightIds:0,selectionManager:0,showCollapse:5,showClose:5,showLayerDropdown:5,size:40,state:32,supportsAddAttachments:36,supportsAttachments:36,supportsDeleteAttachments:36,supportsResizeAttachments:36,supportsUpdateAttachments:36,syncTemplateOnChangesDisabled:5,syncViewSelection:5,tableController:32,tableDisabled:5,tableParent:32,tableTemplate:0,tableTitle:1,timeExtent:0,timeZone:1,visibleColumns:32}}static{this.styles=y}get hideMenuItemsToggleColumns(){return this.hideColumnVisibilityMenu}set hideMenuItemsToggleColumns(e){this.hideColumnVisibilityMenu=e}get tableDisabled(){return this.widget.disabled}set tableDisabled(e){this.widget.disabled=e}addPendingEdits(e){this.widget.addPendingEdits(e)}async deleteSelection(e){await this.widget.deleteSelection(e)}async destroy(){await this.manager.destroy()}async discardPendingEdits(e,t){return await this.widget.discardPendingEdits(e,t)}async exportSelectionToCSV(e){await this.widget.exportSelectionToCSV(e)}async findColumn(e){return this.widget.findColumn(e)}async getFeatureStoreItemByObjectId(e){return this.widget.getFeatureStoreItemByObjectId(e)}async goToPage(e){this.widget.goToPage(e)}async hideColumn(e){this.widget.hideColumn(e)}async nextPage(){this.widget.nextPage()}async previousPage(){this.widget.previousPage()}async refresh(){await this.widget.refresh()}async refreshCellContent(){this.widget.refreshCellContent()}async savePendingEdits(){this.widget.savePendingEdits()}async scrollToBottom(){this.widget.scrollToBottom()}async scrollToIndex(e){this.widget.scrollToIndex(e)}async scrollToLeft(){this.widget.scrollLeft()}async scrollToRow(e){this.widget.scrollToRow(e)}async scrollToTop(){this.widget.scrollToTop()}async showAllColumns(){this.widget.showAllColumns()}async showColumn(e){this.widget.showColumn(e)}async sortColumn(e,t){this.widget.sortColumn(e,t)}async toggleColumnVisibility(e){this.widget.toggleColumnVisibility(e)}async zoomToSelection(){this.widget.zoomToSelection()}load(){this.manager.onLifecycle(()=>[w(()=>this.widget.highlightIds,"change",this.arcgisSelectionChange.emit)])}willUpdate(e){if(e.has("layerItemId")&&(u(this.layerItemId)?this.layer=null:this.layerItemId&&f.fromPortalItem({portalItem:{id:this.layerItemId}}).then(t=>{this.layer=t}).catch(r(this))),e.has("layerUrl")){let t=this.layerUrl;if(t){let o=t;typeof this.layerId=="number"&&(o=`${t}/${this.layerId}`);let v={url:o};f.fromArcGISServerUrl(v).then(_=>{this.layer=_}).catch(r(this))}else this.layer=null}}loaded(){m(this)?.classList.add("arcgis-feature-table");let e=d(this.el);this.setAttribute("calcite-mode",e),this.widget.direction=this._direction}};s("arcgis-feature-table",l);return l},"core/reactiveUtils","layers/Layer","widgets/FeatureTable",b,e,f,i,j)
2
+ import j from"./OGXX6IZK.js";import i from"./L4NPXEZY.js";import f from"./X4DX5BPX.js";import e from"./CNEECTVU.js";import{f as g,h}from"./G6XC3FF7.js";import"./XBBKSJW6.js";import b from"./QW3JNSYP.js";import{g as d}from"./56JX3YF3.js";import{O as c,U as s,a as n,q as r,x as a}from"./LOPSE7EQ.js";import"./3TTFCHAA.js";export default $arcgis.t(([{on:w},f,x,{b:u,g:m},,{a:i},b,p])=>{var y=n`.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{--arcgis-internal-feature-table-icon-color: var(--calcite-icon-color);--arcgis-internal-feature-table-background-color: var(--calcite-color-surface-2);--arcgis-internal-feature-table-background-color-secondary: var(--calcite-color-surface-1);--arcgis-internal-feature-table-text-color: var(--calcite-color-text-1);--arcgis-internal-feature-table-text-color-secondary: var(--calcite-color-text-2);--arcgis-internal-feature-table-text-color-tertiary: var(--calcite-color-text-3);--arcgis-internal-feature-table-text-color-hover: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-interactive-text-color: var(--calcite-color-text-1);--arcgis-internal-feature-table-interactive-text-color-hover: var(--calcite-color-text-1);--arcgis-internal-feature-table-text-color-link: var(--calcite-color-text-link);--arcgis-internal-feature-table-text-color-link-hover: var(--calcite-color-text-highlight);--arcgis-internal-feature-table-column-header-background-color: var(--calcite-color-surface-1);--arcgis-internal-feature-table-column-header-sorted-background-color: var( --arcgis-internal-feature-table-background-color );--arcgis-internal-feature-table-column-header-icon-color: var(--arcgis-internal-feature-table-icon-color);--arcgis-internal-feature-table-column-header-text-color: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-column-header-text-font-weight: var(--calcite-font-weight-regular);--arcgis-internal-feature-table-row-background-color: var(--calcite-color-surface-2);--arcgis-internal-feature-table-row-background-color-hover: var(--calcite-color-surface-3);--arcgis-internal-feature-table-selection-checkbox-color: var(--calcite-icon-color, var(--calcite-color-brand));--arcgis-internal-feature-table-selected-row-text-color: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-selected-row-text-color-hover: var(--arcgis-internal-feature-table-text-color);--arcgis-internal-feature-table-selected-row-background-color-primary: var(--calcite-color-brand);--arcgis-internal-feature-table-selected-row-background-color-secondary: var(--calcite-color-surface-2);--arcgis-internal-feature-table-selected-row-background-color: color-mix( in sRGB, var(--arcgis-internal-feature-table-selected-row-background-color-primary) 10%, var(--arcgis-internal-feature-table-selected-row-background-color-secondary) );--arcgis-internal-feature-table-selected-row-background-color-hover: color-mix( in sRGB, var(--arcgis-internal-feature-table-selected-row-background-color-primary) 20%, var(--arcgis-internal-feature-table-selected-row-background-color-secondary) )}.esri-feature-table{--icon-size: 64px;flex-direction:column;width:100%;height:100%;display:flex}.esri-feature-table__content{--calcite-action-text-color: var(--arcgis-internal-feature-table-interactive-text-color);--calcite-action-text-color-press: var(--arcgis-internal-feature-table-interactive-text-color-hover);--calcite-panel-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary);--calcite-panel-header-action-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-header-background-color: var(--arcgis-internal-feature-table-background-color);--calcite-panel-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-icon-color: var(--arcgis-internal-feature-table-text-color);overflow:hidden}.esri-feature-table__content calcite-pagination{justify-content:center}.esri-feature-table calcite-scrim>div:first-child{min-width:300px;max-width:400px;max-height:100%;position:relative}.esri-feature-table__collapsed{min-width:500px}.esri-feature-table__collapsed:not(:last-child){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);min-width:300px;max-width:300px}.esri-feature-table__expanded{min-width:300px;display:flex}.esri-feature-table__expanded:not(:last-child){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-2)}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child{flex:2 1 0}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child calcite-panel{min-width:fit-content}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child calcite-panel>div:first-child{flex:2 1 0}.esri-feature-table__expanded.esri-feature-table__table-container--attachments:last-child .esri-feature-table__collapsed{max-width:inherit}.esri-feature-table__table-container{flex:1 1 0;min-height:0;margin:0;padding:0;display:flex;width:100%;height:100%}.esri-feature-table__table-container calcite-panel>div{overflow-y:auto}.esri-feature-table__table-container calcite-panel div{flex:1 1 0;display:flex}.esri-feature-table__table-container calcite-panel div .esri-feature-table__attachments-view__list{--calcite-list-label-text-color: var(--arcgis-internal-feature-table-text-color);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);color:var(--arcgis-internal-feature-table-text-color);flex:1 1 0;min-width:480px;overflow-y:auto}.esri-feature-table__table-container calcite-panel div .esri-feature-table__attachments-view__list__filesize{cursor:default;align-items:center;height:100%;margin-inline-end:var(--calcite-space-md);display:flex}.esri-feature-table__table-navigation{--calcite-label-margin-bottom: 0;background-color:var(--arcgis-internal-feature-table-background-color);width:100%;line-height:initial;align-items:center;padding-block-start:var(--calcite-space-base);display:flex}.esri-feature-table__table-navigation calcite-action:first-child{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);transform:scaleX(-1)}.esri-feature-table__table-navigation calcite-chip{--calcite-chip-close-icon-color: var(--calcite-color-text-inverse);margin-inline-end:var(--calcite-space-md)}.esri-feature-table__table-navigation calcite-label{border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline:var(--calcite-space-md);height:100%}.esri-feature-table__table-navigation calcite-action{display:flex;overflow:hidden}.esri-feature-table__table-navigation div:last-child{float:inline-end;align-items:center;height:100%;margin-inline:auto 0;display:flex}.esri-feature-table__table-navigation calcite-action:last-child{float:inline-end;margin-inline:auto 0;display:flex}.esri-feature-table__attachments-view{background-color:var(--arcgis-internal-feature-table-background-color);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-2);min-width:300px}.esri-feature-table__attachments-view__content{background-color:var(--arcgis-internal-feature-table-background-color-secondary);padding:var(--calcite-space-md);flex-direction:column;justify-content:center;align-items:center;width:100%;max-height:100%;overflow-y:auto}.esri-feature-table__attachments-view__details,.esri-feature-table__attachments-view__drop-area{flex-direction:column;justify-content:center;align-items:center;width:100%}.esri-feature-table__attachments-view__details{padding:var(--calcite-space-xl);max-height:100%}.esri-feature-table__attachments-view__details img{display:block;padding:var(--calcite-space-sm);max-width:100%;max-height:100%}.esri-feature-table__attachments-view__details calcite-action{position:sticky}.esri-feature-table__attachments-view__drop-area{border:var(--calcite-border-width-sm) dashed var(--calcite-color-border-input);border-radius:var(--calcite-corner-radius-round);text-align:center}.esri-feature-table__attachments-view__drop-area form{justify-content:center;display:flex}.esri-feature-table__attachments-view__drop-area form fieldset{border:none;display:flex;flex-direction:column;align-items:center}.esri-feature-table__attachments-view__drop-area form fieldset calcite-button,.esri-feature-table__attachments-view__drop-area form fieldset span{margin-bottom:var(--calcite-space-sm)}.esri-feature-table__attachments-view__drop-area__label{margin-bottom:var(--calcite-space-md);font-size:var(--calcite-font-size-md)}.esri-feature-table__attachments-view__drop-area__message{margin-bottom:var(--calcite-space-md);word-break:break-all}.esri-feature-table__attachments-view__icon{--calcite-icon-color: var(--arcgis-internal-feature-table-icon-color);margin-bottom:var(--calcite-space-md);block-size:var(--icon-size);inline-size:var(--icon-size)}.esri-feature-table__attachments-view__information{--calcite-button-border-color: var(--calcite-color-brand);--calcite-button-text-color: var(--calcite-color-brand);padding:var(--calcite-space-md);flex-direction:column;max-width:200px;overflow-y:auto}.esri-feature-table__attachments-view__information calcite-button,.esri-feature-table__attachments-view__information calcite-icon,.esri-feature-table__attachments-view__information img{margin-block-end:var(--calcite-space-md)}.esri-feature-table__attachments-view__information__data{margin-block-end:var(--calcite-space-md);word-wrap:break-word;color:var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__attachments-view__information__label{color:var(--arcgis-internal-feature-table-text-color-tertiary);font-weight:var(--calcite-font-weight-regular)}.esri-feature-table__attachments-view__list-item--delete{border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.esri-feature-table__attachments-view__list__thumbnail{margin-block:var(--calcite-space-sm);justify-content:center;align-items:center}.esri-feature-table__attachments-view__list__thumbnail span{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-round);width:var(--icon-size);height:var(--icon-size);color:var(--arcgis-internal-feature-table-text-color-tertiary);justify-content:center;align-items:center;display:flex;overflow:hidden}.esri-feature-table__menu-popover{--calcite-popover-text-color: var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__menu-popover calcite-list{--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-list-label-text-color: var(--arcgis-internal-feature-table-text-color);color:var(--arcgis-internal-feature-table-text-color);max-width:300px;max-height:260px;overflow-y:auto}.esri-feature-table__dialog{--calcite-dialog-content-space: 0;--calcite-dialog-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-dialog-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary)}.esri-feature-table__dialog calcite-progress{position:sticky;top:0;margin-bottom:var(--calcite-space-sm)}.esri-feature-table__dialog calcite-pagination{justify-content:center;width:100%}.esri-feature-table__dialog calcite-panel{--calcite-panel-description-text-color: var(--arcgis-internal-feature-table-text-color-secondary);--calcite-panel-header-action-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-heading-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-panel-icon-color: var(--arcgis-internal-feature-table-text-color)}.esri-feature-table__dialog img{width:auto;max-width:100%}.esri-feature-table__dialog__content{display:flex;flex-direction:column;flex-grow:1;align-items:center;justify-content:center}.esri-feature-table__dialog__header{color:var(--arcgis-internal-feature-table-text-color);display:flex;flex-direction:row;gap:var(--calcite-space-sm);justify-content:space-between;width:100%}.esri-feature-table__dialog__header span{align-self:center;word-break:break-all;padding-inline-start:var(--calcite-space-md)}.esri-feature-table__footer__message{gap:var(--calcite-space-sm);margin:0 var(--calcite-space-md);align-items:center;display:flex}.esri-feature-table__footer__icon--danger{color:var(--calcite-color-status-danger)}.esri-feature-table__footer__icon--success{color:var(--calcite-color-status-success)}.esri-feature-table__layer-switcher-menu{--calcite-dropdown-item-text-color: var(--arcgis-internal-feature-table-text-color);--calcite-dropdown-item-text-color-press: var(--arcgis-internal-feature-table-text-color);align-items:center;display:flex}calcite-button.esri-attachments-column__button,calcite-button.esri-column__show-related-records-button{--calcite-button-background-color: transparent;--calcite-button-icon-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link);--calcite-offset-invert-focus: 2}calcite-button.esri-attachments-column__button:hover,calcite-button.esri-column__show-related-records-button:hover{--calcite-button-icon-color: var(--arcgis-internal-feature-table-text-color-link-hover);--calcite-button-text-color: var(--arcgis-internal-feature-table-text-color-link-hover)}.esri-column__show-related-records-button{height:100%;display:flex}.esri-attachments-column__button{overflow:hidden}.esri-attachments-column__button>div{display:flex;overflow:hidden}.esri-attachments-column__button>div>div:first-child{text-overflow:ellipsis;width:100%;margin-inline-end:var(--calcite-space-2xl);overflow:hidden}.esri-attachments-column__button>div span{align-self:center;position:absolute;inset-inline-end:var(--calcite-space-3xl)}.esri-attachments-column__content{flex-direction:row;justify-content:space-between;width:100%;height:100%;display:flex;overflow:hidden}.esri-attachments-column__content>div:first-child{text-overflow:ellipsis;line-height:0;overflow:hidden}.esri-attachments-column__button calcite-icon,.esri-attachments-column__button img,.esri-attachments-column__content calcite-icon,.esri-attachments-column__content img{max-width:var(--calcite-space-2xl);max-height:var(--calcite-space-2xl);vertical-align:middle;margin-inline-end:var(--calcite-space-2xs);display:inline-flex}.esri-grid{background-color:var(--arcgis-internal-feature-table-background-color);width:100%;height:100%}.esri-grid vaadin-grid{border-block-end:none;border-inline:none;background-color:inherit;color:inherit;font-family:inherit;font-size:var(--calcite-font-size);overflow:visible}.esri-grid vaadin-grid[reordering]::part(cell):after{content:normal}.esri-grid vaadin-grid[reordering]::part(frozen-cell),.esri-grid vaadin-grid[reordering]::part(frozen-to-end-cell),.esri-grid vaadin-grid[reordering]::part(reorder-allowed-cell){filter:brightness(.9) contrast(1.1)}.esri-grid vaadin-grid::part(empty-state){border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-2);color:var(--arcgis-internal-feature-table-text-color)}.esri-grid vaadin-grid::part(cell editing){z-index:2}.esri-grid vaadin-grid::part(frozen-cell),.esri-grid vaadin-grid::part(frozen-to-end-cell){z-index:4}.esri-grid vaadin-grid::part(cell last-frozen-cell){overflow:visible}.esri-grid vaadin-grid::part(cell text-wrap){text-wrap:wrap}.esri-grid vaadin-grid-cell-content{box-sizing:border-box!important;align-items:center;padding:var(--calcite-space-2xs) var(--calcite-space-sm);height:100%;min-height:var(--calcite-font-line-height-fixed-3xl)}.esri-grid vaadin-grid::part(cell){border-inline-end:var(--calcite-border-width-sm) solid;border-color:var(--calcite-color-surface-4);line-height:28px;color:var(--arcgis-internal-feature-table-text-color)}.esri-grid vaadin-grid::part(cell):focus:after{outline-color:var(--calcite-color-brand)}.esri-grid vaadin-grid[overflow~=start]::part(cell last-frozen-cell){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}[dir=rtl].esri-grid vaadin-grid[overflow~=start]::part(cell last-frozen-cell){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid[overflow~=end]::part(cell first-frozen-to-end-cell){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}[dir=rtl].esri-grid vaadin-grid[overflow~=end]::part(cell first-frozen-to-end-cell){border-inline-end:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid::part(body-cell){background-color:var(--arcgis-internal-feature-table-row-background-color)}.esri-grid vaadin-grid::part(body-cell):hover{background-color:var(--arcgis-internal-feature-table-row-background-color-hover);color:var(--arcgis-internal-feature-table-text-color-hover)}.esri-grid vaadin-grid::part(body-cell invalid){color:var(--arcgis-internal-feature-table-text-color-tertiary);font-style:italic}.esri-grid vaadin-grid::part(header-cell){background-color:var(--arcgis-internal-feature-table-column-header-background-color)}.esri-grid vaadin-grid::part(header-cell invalid){font-weight:var(--calcite-font-weight-bold)}.esri-grid vaadin-grid[overflow~=top]::part(header-cell){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-text-3)}.esri-grid vaadin-grid::part(header-cell direction){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-brand);background-color:var(--arcgis-internal-feature-table-column-header-sorted-background-color)}.esri-grid vaadin-grid[overflow~=top]::part(header-cell direction){border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-brand)}.esri-grid vaadin-grid::part(body-cell highlight){background-color:var(--calcite-color-surface-4)}.esri-grid vaadin-grid::part(selected-row-cell){background-color:var(--arcgis-internal-feature-table-selected-row-background-color);color:var(--arcgis-internal-feature-table-selected-row-text-color)}.esri-grid vaadin-grid::part(selected-row-cell):hover{background-color:var(--arcgis-internal-feature-table-selected-row-background-color-hover);color:var(--arcgis-internal-feature-table-selected-row-text-color-hover)}.esri-grid vaadin-grid::part(body-cell pending-edit){border:var(--calcite-border-width-md) solid var(--calcite-color-status-success);background-color:color-mix(in sRGB,var(--calcite-color-status-success) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit):hover{background-color:color-mix(in sRGB,var(--calcite-color-status-success-hover) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit-invalid){border:var(--calcite-border-width-md) dashed var(--calcite-color-status-danger);background-color:color-mix(in sRGB,var(--calcite-color-status-danger) 20%,var(--arcgis-internal-feature-table-background-color));font-weight:var(--calcite-font-weight-bold)}.esri-grid vaadin-grid::part(body-cell pending-edit-invalid):hover{background-color:color-mix(in sRGB,var(--calcite-color-status-danger-hover) 20%,var(--arcgis-internal-feature-table-background-color))}.esri-grid vaadin-grid::part(body-cell pending-edit-other){cursor:not-allowed;color:var(--arcgis-internal-feature-table-text-color-tertiary)}.esri-grid vaadin-checkbox{line-height:var(--calcite-font-line-height-relative-snug)}.esri-grid vaadin-checkbox::part(checkbox){background-color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-snug)}.esri-grid vaadin-checkbox[checked]::part(checkbox){background-color:var(--arcgis-internal-feature-table-selection-checkbox-color)}.esri-grid vaadin-grid-sorter[direction]::part(indicators),.esri-grid vaadin-grid-sorter[direction]::part(order){color:var(--arcgis-internal-feature-table-column-header-text-color)}.esri-grid .esri-grid__content{background-color:var(--arcgis-internal-feature-table-background-color-secondary);width:100%;height:100%}.esri-grid .esri-grid__grid{width:100%;height:100%}.esri-grid a{color:var(--arcgis-internal-feature-table-text-color-link);text-decoration:underline}.esri-grid a:hover,.esri-grid a:focus{color:var(--arcgis-internal-feature-table-text-color-link-hover)}.esri-grid .esri-column__content--full{width:100%;height:100%;position:absolute;top:0;left:0}.esri-grid .esri-column__header-content{text-align:start;align-items:flex-start;width:100%;height:100%;font-weight:var(--calcite-font-weight-regular);display:flex;overflow:hidden}.esri-grid .esri-column__header-content:has(calcite-icon:only-child){justify-content:center;align-items:center}.esri-grid .esri-column__header-content div{width:100%;flex-flow:column wrap;display:flex;overflow:hidden}.esri-grid .esri-column__header-content div span{text-overflow:ellipsis;width:100%;line-height:var(--calcite-font-line-height-fixed-xl);overflow:hidden}.esri-grid .esri-column__header-content calcite-icon{color:var(--arcgis-internal-feature-table-column-header-icon-color);height:var(--calcite-space-2xl);margin-inline-end:var(--calcite-space-2xs)}.esri-grid .esri-column__header-content calcite-dropdown{float:inline-end;max-height:180px}.esri-grid .esri-column__header-content calcite-dropdown calcite-action{--calcite-icon-color: var(--arcgis-internal-feature-table-column-header-icon-color)}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-group{max-width:200px;overflow-x:auto}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-group:only-of-type{max-height:180px;overflow:visible}.esri-grid .esri-column__header-content calcite-dropdown[open] calcite-dropdown-item{display:flex}.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-item,.esri-grid .esri-column__header-content calcite-dropdown calcite-dropdown-item[hidden]{display:none}.esri-grid .esri-column__header-description{color:var(--arcgis-internal-feature-table-text-color-tertiary);font-size:var(--calcite-font-size-sm)}.esri-grid .esri-column__sorter:hover{cursor:pointer}.esri-grid .esri-column__sorter,.esri-grid .esri-column__header-label{color:var(--arcgis-internal-feature-table-column-header-text-color);flex-grow:1;font-weight:var(--arcgis-internal-feature-table-column-header-text-font-weight);align-items:center;display:flex;overflow:hidden}.esri-column__header-menu-icon{margin-inline-end:15px}.esri-column__cell-input{border:none;flex:1 1 0;width:100%;height:100%}.esri-column__cell__input-container{flex-direction:column;align-items:center;width:100%;display:flex}.esri-column__cell__input-container input,.esri-column__cell__input-container select{padding:0;position:absolute;top:0;left:0}.esri-column__cell__input-container div,.esri-column__cell__input-container input,.esri-column__cell__input-container select{width:100%;display:flex}.esri-column__cell__input-container calcite-action-bar{background-color:var(--arcgis-internal-feature-table-background-color-secondary)}.esri-column__cell__input-container div:first-child{flex-direction:column}.esri-column__cell__input-container calcite-input-time-zone{--calcite-dropdown-width: 200px}.esri-column__cell__input-container calcite-input-time-picker:last-child,.esri-column__cell__input-container calcite-input-time-picker:nth-child(2),.esri-column__cell__input-container calcite-input-time-zone{margin-top:-1px}.esri-feature-table .esri-editor__prompt--danger{border-top:solid 3px var(--calcite-color-status-danger);background-color:var(--calcite-color-surface-1);color:var(--arcgis-internal-feature-table-text-color);flex-flow:column;max-height:85%;padding-block:var(--calcite-space-md);padding-inline:15px;animation:.25s ease-in-out esri-fade-in-up;display:flex;position:absolute;bottom:0;left:0;right:0;box-shadow:0 1px 2px #0000004d}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__header{color:var(--calcite-color-status-danger);flex:none;align-items:center;gap:7px;margin-bottom:var(--calcite-space-md);display:flex}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__header__heading{color:var(--arcgis-internal-feature-table-text-color);margin:0 3px}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__message{word-break:break-word;color:inherit;flex:auto;padding:0 0 12px;font-weight:var(--calcite-font-weight-regular);overflow:hidden auto}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__divider{color:inherit;border-color:var(--calcite-color-border-2);border-bottom-style:solid;border-bottom-width:1px;flex:none;margin:0 0 12px}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__actions{flex-direction:row;display:flex}.esri-feature-table .esri-editor__prompt--danger .esri-editor__prompt__half-width-button{width:50%}`,k=b(x),l=class extends c{constructor(){super(...arguments),this._direction=g(),this.widget=k(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.attachmentsColumns=this.widget.attachmentsColumns,this.attributeTableTemplate=this.widget.attributeTableTemplate,this.actionColumn=this.widget.actionColumn,this.actionColumnConfig=this.widget.actionColumnConfig,this.activeFilters=this.widget.activeFilters,this.activeSortOrders=this.widget.activeSortOrders,this.allColumns=this.widget.allColumns,this.allRelatedTablesVisible=this.widget.allRelatedTablesVisible,this.allVisibleColumns=this.widget.allVisibleColumns,this.attachmentsEnabled=this.widget.attachmentsEnabled,this.attachmentsViewOptions=this.widget.attachmentsViewOptions,this.autoDestroyDisabled=!1,this.autoRefreshDisabled=this.widget.autoRefreshEnabled,this.autoSaveDisabled=this.widget.autoSaveEnabled,this.canAddRelatedFeature=this.widget.canAddRelatedFeature,this.closed=this.widget.closed,this.collapsed=this.widget.collapsed,this.columnPerformanceModeDisabled=this.widget.columnPerformanceModeEnabled,this.columnReorderingDisabled=this.widget.columnReorderingEnabled,this.columns=this.widget.columns,this.definitionExpression=this.widget.definitionExpression,this.description=this.widget.description,this.disabled=this.widget.disabled,this.editingEnabled=this.widget.editingEnabled,this.effectiveSize=this.widget.effectiveSize,this.fieldColumns=this.widget.fieldColumns,this.filterByLayerScaleRange=this.widget.filterByLayerScaleRange,this.filterBySelectionEnabled=this.widget.filterBySelectionEnabled,this.filterByViewExtent=this.widget.filterByViewExtent,this.filterGeometry=this.widget.filterGeometry,this.groupColumns=this.widget.groupColumns,this.hasContingentValues=this.widget.hasContingentValues,this.hasInvalidPendingEdits=this.widget.hasInvalidPendingEdits,this.hasPendingEdits=this.widget.hasPendingEdits,this.hiddenFields=this.widget.hiddenFields,this.hideColumnDescriptions=this.widget.visibleElements.columnDescriptions,this.hideColumnMenuItemsSortAscending=this.widget.visibleElements.columnMenuItems.sortAscending,this.hideColumnMenuItemsSortDescending=this.widget.visibleElements.columnMenuItems.sortDescending,this.hideColumnMenus=this.widget.visibleElements.columnMenus,this.hideColumnVisibilityMenu=this.widget.visibleElements.columnVisibilityMenu,this.hideColumnVisibilityMenuItemsFilter=this.widget.visibleElements.columnVisibilityMenuItems.filter,this.hideColumnVisibilityMenuItemsHeader=this.widget.visibleElements.columnVisibilityMenuItems.header,this.hideColumnVisibilityMenuItemsToggleAll=this.widget.visibleElements.columnVisibilityMenuItems.toggleAll,this.hideHeader=this.widget.visibleElements.header,this.hideLayerDropdownIcons=this.widget.visibleElements.layerDropdownIcons,this.hideMenu=this.widget.visibleElements.menu,this.hideMenuItemsClearSelection=this.widget.visibleElements.menuItems.clearSelection,this.hideMenuItemsDeleteSelection=this.widget.visibleElements.menuItems.deleteSelection,this.hideMenuItemsExportSelectionToCsv=this.widget.visibleElements.menuItems.exportSelectionToCSV,this.hideMenuItemsRefreshData=this.widget.visibleElements.menuItems.refreshData,this.hideMenuItemsSelectedRecordsShowAllToggle=this.widget.visibleElements.menuItems.selectedRecordsShowAllToggle,this.hideMenuItemsSelectedRecordsShowSelectedToggle=this.widget.visibleElements.menuItems.selectedRecordsShowSelectedToggle,this.hideMenuItemsZoomToSelection=this.widget.visibleElements.menuItems.zoomToSelection,this.hideProgress=this.widget.visibleElements.progress,this.hideSelectionColumn=this.widget.visibleElements.selectionColumn,this.hideTooltips=this.widget.visibleElements.tooltips,this.highlightDisabled=this.widget.highlightEnabled,this.highlightIds=this.widget.highlightIds,this.initialSize=this.widget.initialSize,this.icon=this.widget.icon,this.isQueryingOrSyncing=this.widget.isQueryingOrSyncing,this.isSyncingAttachments=this.widget.isSyncingAttachments,this.label=this.widget.label,this.layer=this.widget.layer,this.mapLayerId=p(this,e=>{e&&(this.layer=e)}),this.layerView=this.widget.layerView,this.layers=this.widget.layers,this.maxSize=this.widget.maxSize,this.menuConfig=this.widget.menuConfig,this.multipleSelectionDisabled=this.widget.multipleSelectionEnabled,this.multipleSortEnabled=this.widget.multiSortEnabled,this.multipleSortPriority=this.widget.multipleSortPriority,this.navigationScale=this.widget.navigationScale,this.noDataMessage=this.widget.noDataMessage,this.objectIds=this.widget.objectIds,this.outFields=this.widget.outFields,this.pageCount=this.widget.pageCount,this.pageIndex=this.widget.pageIndex,this.pageSize=this.widget.pageSize,this.paginationEnabled=this.widget.paginationEnabled,this.relatedRecordsEnabled=this.widget.relatedRecordsEnabled,this.relatedTable=this.widget.relatedTable,this.relatedTables=this.widget.relatedTables,this.relationship=this.widget.relationship,this.relationshipColumns=this.widget.relationshipColumns,this.returnGeometryEnabled=this.widget.returnGeometryEnabled,this.returnMEnabled=this.widget.returnMEnabled,this.returnZEnabled=this.widget.returnZEnabled,this.rowHighlightIds=this.widget.rowHighlightIds,this.selectionManager=this.widget.selectionManager,this.showCollapse=this.widget.visibleElements.collapse,this.showClose=this.widget.visibleElements.close,this.showLayerDropdown=this.widget.visibleElements.layerDropdown,this.size=this.widget.size,this.state=this.widget.state,this.supportsAddAttachments=this.widget.supportsAddAttachments,this.supportsAttachments=this.widget.supportsAttachments,this.supportsDeleteAttachments=this.widget.supportsDeleteAttachments,this.supportsResizeAttachments=this.widget.supportsResizeAttachments,this.supportsUpdateAttachments=this.widget.supportsUpdateAttachments,this.syncTemplateOnChangesDisabled=this.widget.syncTemplateOnChangesEnabled,this.syncViewSelection=this.widget.syncViewSelection,this.tableController=this.widget.tableController,this.tableParent=this.widget.tableParent,this.tableTemplate=this.widget.tableTemplate,this.tableTitle=this.widget.title,this.timeExtent=this.widget.timeExtent,this.timeZone=this.widget.timeZone,this.visibleColumns=this.widget.visibleColumns,this.arcgisCellClick=i(()=>this.widget,"cell-click"),this.arcgisCellDblClick=i(()=>this.widget,"cell-dblclick"),this.arcgisCellKeydown=i(()=>this.widget,"cell-keydown"),this.arcgisCellPointerout=i(()=>this.widget,"cell-pointerout"),this.arcgisCellPointerover=i(()=>this.widget,"cell-pointerover"),this.arcgisColumnReorder=i(()=>this.widget,"column-reorder"),this.arcgisPropertyChange=h()("effectiveSize","isQueryingOrSyncing","layerView","size","state"),this.arcgisReady=a(),this.arcgisSelectionChange=a()}static{this.properties={view:0,attachmentsColumns:32,attributeTableTemplate:0,actionColumn:32,actionColumnConfig:0,activeFilters:32,activeSortOrders:32,allColumns:32,allRelatedTablesVisible:36,allVisibleColumns:32,attachmentsEnabled:5,attachmentsViewOptions:0,autoDestroyDisabled:5,autoRefreshDisabled:5,autoSaveDisabled:5,canAddRelatedFeature:36,closed:5,collapsed:5,columnPerformanceModeDisabled:5,columnReorderingDisabled:5,columns:32,definitionExpression:1,description:1,disabled:7,editingEnabled:5,effectiveSize:40,fieldColumns:32,filterByLayerScaleRange:5,filterBySelectionEnabled:5,filterByViewExtent:5,filterGeometry:0,groupColumns:32,hasContingentValues:36,hasInvalidPendingEdits:36,hasPendingEdits:36,hiddenFields:0,hideColumnDescriptions:5,hideColumnMenuItemsSortAscending:5,hideColumnMenuItemsSortDescending:5,hideColumnMenus:5,hideColumnVisibilityMenu:5,hideColumnVisibilityMenuItemsFilter:5,hideColumnVisibilityMenuItemsHeader:5,hideColumnVisibilityMenuItemsToggleAll:5,hideHeader:5,hideLayerDropdownIcons:5,hideMenu:5,hideMenuItemsClearSelection:5,hideMenuItemsDeleteSelection:5,hideMenuItemsExportSelectionToCsv:5,hideMenuItemsRefreshData:5,hideMenuItemsSelectedRecordsShowAllToggle:5,hideMenuItemsSelectedRecordsShowSelectedToggle:5,hideMenuItemsToggleColumns:5,hideMenuItemsZoomToSelection:5,hideProgress:5,hideSelectionColumn:5,hideTooltips:5,highlightDisabled:5,highlightIds:0,initialSize:9,icon:1,isQueryingOrSyncing:36,isSyncingAttachments:36,label:1,layer:0,mapLayerId:1,layerItemId:1,layerUrl:1,layerId:9,layerView:32,layers:0,maxSize:9,menuConfig:0,multipleSelectionDisabled:5,multipleSortEnabled:5,multipleSortPriority:1,navigationScale:1,noDataMessage:1,objectIds:0,outFields:0,pageCount:40,pageIndex:9,pageSize:9,paginationEnabled:5,referenceElement:1,relatedRecordsEnabled:5,relatedTable:32,relatedTables:0,relationship:32,relationshipColumns:32,returnGeometryEnabled:5,returnMEnabled:5,returnZEnabled:5,rowHighlightIds:0,selectionManager:0,showCollapse:5,showClose:5,showLayerDropdown:5,size:40,state:32,supportsAddAttachments:36,supportsAttachments:36,supportsDeleteAttachments:36,supportsResizeAttachments:36,supportsUpdateAttachments:36,syncTemplateOnChangesDisabled:5,syncViewSelection:5,tableController:32,tableDisabled:5,tableParent:32,tableTemplate:0,tableTitle:1,timeExtent:0,timeZone:1,visibleColumns:32}}static{this.styles=y}get hideMenuItemsToggleColumns(){return this.hideColumnVisibilityMenu}set hideMenuItemsToggleColumns(e){this.hideColumnVisibilityMenu=e}get tableDisabled(){return this.widget.disabled}set tableDisabled(e){this.widget.disabled=e}addPendingEdits(e){this.widget.addPendingEdits(e)}async deleteSelection(e){await this.widget.deleteSelection(e)}async destroy(){await this.manager.destroy()}async discardPendingEdits(e,t){return await this.widget.discardPendingEdits(e,t)}async exportSelectionToCSV(e){await this.widget.exportSelectionToCSV(e)}async findColumn(e){return this.widget.findColumn(e)}async getFeatureStoreItemByObjectId(e){return this.widget.getFeatureStoreItemByObjectId(e)}async goToPage(e){this.widget.goToPage(e)}async hideColumn(e){this.widget.hideColumn(e)}async nextPage(){this.widget.nextPage()}async previousPage(){this.widget.previousPage()}async refresh(){await this.widget.refresh()}async refreshCellContent(){this.widget.refreshCellContent()}async savePendingEdits(){this.widget.savePendingEdits()}async scrollToBottom(){this.widget.scrollToBottom()}async scrollToIndex(e){this.widget.scrollToIndex(e)}async scrollToLeft(){this.widget.scrollLeft()}async scrollToRow(e){this.widget.scrollToRow(e)}async scrollToTop(){this.widget.scrollToTop()}async showAllColumns(){this.widget.showAllColumns()}async showColumn(e){this.widget.showColumn(e)}async sortColumn(e,t){this.widget.sortColumn(e,t)}async toggleColumnVisibility(e){this.widget.toggleColumnVisibility(e)}async zoomToSelection(){this.widget.zoomToSelection()}load(){this.manager.onLifecycle(()=>[w(()=>this.widget.highlightIds,"change",this.arcgisSelectionChange.emit)])}willUpdate(e){if(e.has("layerItemId")&&(u(this.layerItemId)?this.layer=null:this.layerItemId&&f.fromPortalItem({portalItem:{id:this.layerItemId}}).then(t=>{this.layer=t}).catch(r(this))),e.has("layerUrl")){let t=this.layerUrl;if(t){let o=t;typeof this.layerId=="number"&&(o=`${t}/${this.layerId}`);let v={url:o};f.fromArcGISServerUrl(v).then(_=>{this.layer=_}).catch(r(this))}else this.layer=null}}loaded(){m(this)?.classList.add("arcgis-feature-table");let e=d(this.el);this.setAttribute("calcite-mode",e),this.widget.direction=this._direction}};s("arcgis-feature-table",l);return l},"core/reactiveUtils","layers/Layer","widgets/FeatureTable",b,e,f,i,j)