@arcgis/map-components 5.2.0-next.124 → 5.2.0-next.125

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 (455) hide show
  1. package/dist/cdn/{UVNNXZHK.js → 25LV3KCP.js} +1 -1
  2. package/dist/cdn/{FVI77DR5.js → 2B5ENAVA.js} +1 -1
  3. package/dist/cdn/{VNCYGFVL.js → 2CHRFLK4.js} +1 -1
  4. package/dist/cdn/{NGHZR363.js → 2LHQ525N.js} +1 -1
  5. package/dist/cdn/{75PXQ6OP.js → 2LUBBAJK.js} +1 -1
  6. package/dist/cdn/{U7XNKUUX.js → 2RGTCUK2.js} +1 -1
  7. package/dist/cdn/{JZITIN62.js → 2TKV72AS.js} +1 -1
  8. package/dist/cdn/{GUXHPQB5.js → 2Z4QCH6U.js} +1 -1
  9. package/dist/cdn/2ZJLXDK6.js +2 -0
  10. package/dist/cdn/{FPU4EYVQ.js → 36EM3NTZ.js} +1 -1
  11. package/dist/cdn/3FS6K67C.js +2 -0
  12. package/dist/cdn/{4N7TU2OR.js → 3GJ5ZU2P.js} +1 -1
  13. package/dist/cdn/{UNUE5PFY.js → 3IWADUPH.js} +1 -1
  14. package/dist/cdn/{3TR7QOHP.js → 3MQXFKC2.js} +1 -1
  15. package/dist/cdn/{FREVHZUV.js → 3OB36MB3.js} +1 -1
  16. package/dist/cdn/3RTZFOIB.js +2 -0
  17. package/dist/cdn/{BGVMZOKW.js → 3VBXXNTN.js} +1 -1
  18. package/dist/cdn/{3IPZE7AH.js → 3XCESEFU.js} +1 -1
  19. package/dist/cdn/{HIFWGQCW.js → 42KEDKJA.js} +1 -1
  20. package/dist/cdn/{7K2PSLD3.js → 44LLPVTI.js} +1 -1
  21. package/dist/cdn/44NU63UA.js +2 -0
  22. package/dist/cdn/{CD4YOWDM.js → 4C233AOO.js} +1 -1
  23. package/dist/cdn/{UNPUCYYB.js → 4FPCGK34.js} +1 -1
  24. package/dist/cdn/{5ZRBWOVW.js → 4JLRRQSP.js} +1 -1
  25. package/dist/cdn/{3FRV7BIJ.js → 4M472CAO.js} +1 -1
  26. package/dist/cdn/{46TSVHBE.js → 4QD7Q5RL.js} +1 -1
  27. package/dist/cdn/{2N2VGYUB.js → 4SB4TP3X.js} +1 -1
  28. package/dist/cdn/{OKW62U6T.js → 56EBWQ2X.js} +1 -1
  29. package/dist/cdn/{NULCAX3T.js → 5CEWGYZX.js} +1 -1
  30. package/dist/cdn/{YTFEKO3O.js → 5D6MVSNC.js} +1 -1
  31. package/dist/cdn/{CLA3CIOM.js → 5EE4D5NU.js} +1 -1
  32. package/dist/cdn/{OQA22N4T.js → 5ELKTESG.js} +1 -1
  33. package/dist/cdn/{CCFGYVBQ.js → 5NF3EDT4.js} +1 -1
  34. package/dist/cdn/{C7WBBLAB.js → 5NKLQGFI.js} +1 -1
  35. package/dist/cdn/{XYRXOJWA.js → 5UFMDCCR.js} +1 -1
  36. package/dist/cdn/{CQIHGU4E.js → 63FA46BR.js} +1 -1
  37. package/dist/cdn/{EZFBF4SK.js → 6IKFGCI7.js} +1 -1
  38. package/dist/cdn/{HMAZQNBW.js → 6J5QXNJX.js} +1 -1
  39. package/dist/cdn/{OE32VMHB.js → 6OYFC4VZ.js} +1 -1
  40. package/dist/cdn/{TOM7OOAW.js → 6RYFNL57.js} +1 -1
  41. package/dist/cdn/{NK7LY2U6.js → 72VMDAFS.js} +1 -1
  42. package/dist/cdn/{RVFDK6O7.js → 73THNCDA.js} +1 -1
  43. package/dist/cdn/{ESUJ7IS2.js → 73WLPDL3.js} +1 -1
  44. package/dist/cdn/{G6ZEXGBJ.js → 7AYPQVX6.js} +1 -1
  45. package/dist/cdn/{3T274BES.js → 7INLGELH.js} +1 -1
  46. package/dist/cdn/{445GD7KI.js → 7MACTSPL.js} +1 -1
  47. package/dist/cdn/{WXDEBLXC.js → A6JSTNH5.js} +1 -1
  48. package/dist/cdn/{QXVHT3RD.js → AAWDYBYK.js} +1 -1
  49. package/dist/cdn/{ZCC4OFBO.js → AEAPNMXM.js} +1 -1
  50. package/dist/cdn/{XZ32GWWF.js → AEE3ITTX.js} +1 -1
  51. package/dist/cdn/{YHN67JH4.js → AFRAHGIQ.js} +1 -1
  52. package/dist/cdn/{VNFDMKC4.js → AM4FJ6LD.js} +1 -1
  53. package/dist/cdn/{Q4AJYCNY.js → AMCLAGVN.js} +1 -1
  54. package/dist/cdn/{72GW52ZS.js → APKAK7WN.js} +1 -1
  55. package/dist/cdn/{PT5PXWSP.js → B5JTT6EG.js} +1 -1
  56. package/dist/cdn/BIH6F2CW.js +2 -0
  57. package/dist/cdn/{XTYPZLPL.js → BLV3FC2L.js} +1 -1
  58. package/dist/cdn/{6D6CA7SY.js → BMRMUP5N.js} +1 -1
  59. package/dist/cdn/{LVG6IK3M.js → BUHX56TS.js} +1 -1
  60. package/dist/cdn/{USSBJUH7.js → BUQUHDCE.js} +1 -1
  61. package/dist/cdn/BYIK3JAT.js +2 -0
  62. package/dist/cdn/BYZS3H4S.js +2 -0
  63. package/dist/cdn/{EMJLCAFX.js → C4N4FQFP.js} +1 -1
  64. package/dist/cdn/{K777MMP6.js → C7UXNJ5I.js} +1 -1
  65. package/dist/cdn/{LY3Q7ALW.js → CDHRGVNI.js} +1 -1
  66. package/dist/cdn/{QMSOVSAE.js → CG6XJ6N3.js} +1 -1
  67. package/dist/cdn/{33C5FBRZ.js → CTWITXBV.js} +1 -1
  68. package/dist/cdn/{6HN7AAG3.js → DCF5NPMS.js} +1 -1
  69. package/dist/cdn/{TTF3OFS7.js → DDMND66A.js} +1 -1
  70. package/dist/cdn/{6UGAJNGV.js → DDWWAWOY.js} +1 -1
  71. package/dist/cdn/{KORK4WZ7.js → DGHSJCA2.js} +1 -1
  72. package/dist/cdn/{XZL4TGIF.js → DKYYSLNK.js} +1 -1
  73. package/dist/cdn/{WNLOSRMS.js → DQIMHFDG.js} +1 -1
  74. package/dist/cdn/{PYIO65MV.js → DQZCUGYA.js} +1 -1
  75. package/dist/cdn/{CEYTO6OF.js → DYDFKP44.js} +1 -1
  76. package/dist/cdn/{ROP6JGKX.js → E6Q5SBWB.js} +1 -1
  77. package/dist/cdn/{YR2AO44W.js → EA66TPSM.js} +1 -1
  78. package/dist/cdn/{OF4RIQYG.js → EA6BYP6T.js} +1 -1
  79. package/dist/cdn/{DJSH4JQR.js → EHXNLGTZ.js} +1 -1
  80. package/dist/cdn/{YGWKKC4F.js → EITQWPOD.js} +1 -1
  81. package/dist/cdn/{KYWVUIH5.js → EL2BQ6LY.js} +1 -1
  82. package/dist/cdn/{TSVBA2RT.js → EZUPM4AL.js} +1 -1
  83. package/dist/cdn/{P7QBGWAB.js → F4JJJCUL.js} +1 -1
  84. package/dist/cdn/{XPEGBUNJ.js → FAOYV6UX.js} +1 -1
  85. package/dist/cdn/{UJUD6U2G.js → FD7GEMDU.js} +1 -1
  86. package/dist/cdn/{4BKQW4G6.js → FIKOSKHE.js} +1 -1
  87. package/dist/cdn/{YCK3FBCL.js → FJDRDYFD.js} +1 -1
  88. package/dist/cdn/{LTTYKRLO.js → FSX775VS.js} +1 -1
  89. package/dist/cdn/{SERGX3NQ.js → G6XGWHOU.js} +1 -1
  90. package/dist/cdn/{FGE26FPS.js → G7APUHRE.js} +1 -1
  91. package/dist/cdn/{5AV2IOLR.js → GJLGRECD.js} +1 -1
  92. package/dist/cdn/{PUYZDQHZ.js → GLGQUUCZ.js} +1 -1
  93. package/dist/cdn/{VSH4WLRS.js → GU4VFJE5.js} +1 -1
  94. package/dist/cdn/{NVAZ2KQI.js → H4UAU7VY.js} +1 -1
  95. package/dist/cdn/{S7T2NPCW.js → H524VRJK.js} +1 -1
  96. package/dist/cdn/{34E7N7GU.js → HB4DZC74.js} +1 -1
  97. package/dist/cdn/{Q3HN5EAB.js → HE3GFH3Y.js} +1 -1
  98. package/dist/cdn/{WQG2KCVZ.js → HEJ5UVJZ.js} +1 -1
  99. package/dist/cdn/{HTQSLNPO.js → HIFQHVGL.js} +1 -1
  100. package/dist/cdn/{OCZ5FM6Y.js → HJ4HFO7D.js} +1 -1
  101. package/dist/cdn/{LNYZN6UG.js → HMYR7BQD.js} +1 -1
  102. package/dist/cdn/{Z6S36L4E.js → HTYR6B7T.js} +1 -1
  103. package/dist/cdn/{ZUAZUUTW.js → HXRWRNXL.js} +1 -1
  104. package/dist/cdn/{G4HKU5PR.js → I7ESTJQK.js} +1 -1
  105. package/dist/cdn/{LAY2RKKS.js → ICYRLAW6.js} +1 -1
  106. package/dist/cdn/{PNKNAFCB.js → IGROXELE.js} +1 -1
  107. package/dist/cdn/{AXFCL6D2.js → IOSDZQ4I.js} +1 -1
  108. package/dist/cdn/{OQKO2TQ6.js → IRKGDPQT.js} +1 -1
  109. package/dist/cdn/{SXRL4VDZ.js → IRTMUSJ5.js} +1 -1
  110. package/dist/cdn/{5YJQOF7B.js → ISCYIJ46.js} +1 -1
  111. package/dist/cdn/{4CCPFAT6.js → IZH2VVII.js} +1 -1
  112. package/dist/cdn/{JOGQFEA5.js → J272CPYG.js} +1 -1
  113. package/dist/cdn/J3EEBCEJ.js +2 -0
  114. package/dist/cdn/{464EB67Q.js → JFZDHIFY.js} +1 -1
  115. package/dist/cdn/{BJ77QJXM.js → JSI4XVCM.js} +1 -1
  116. package/dist/cdn/{XXRWSBZZ.js → JULO3D2H.js} +1 -1
  117. package/dist/cdn/{RFIH3K75.js → JVBTLEYY.js} +1 -1
  118. package/dist/cdn/JWINHP35.js +2 -0
  119. package/dist/cdn/{R73HRX3M.js → K2H5FBFZ.js} +1 -1
  120. package/dist/cdn/{US6PRR7S.js → K6TPVS6T.js} +1 -1
  121. package/dist/cdn/{2FXIUC33.js → KENAA6EX.js} +1 -1
  122. package/dist/cdn/{RGRWFQHI.js → KHWWBO2D.js} +1 -1
  123. package/dist/cdn/{6EQW3YHG.js → KVTZQ34H.js} +1 -1
  124. package/dist/cdn/{5ZFMOOPU.js → LCWLE76U.js} +1 -1
  125. package/dist/cdn/{UVHSYOZO.js → LDNEFZBQ.js} +1 -1
  126. package/dist/cdn/{W7STZRDX.js → LDSWU43M.js} +1 -1
  127. package/dist/cdn/LENLLEZE.js +2 -0
  128. package/dist/cdn/{PBFSAWUO.js → LFTP2KFZ.js} +1 -1
  129. package/dist/cdn/{UVVQOKEQ.js → LNZXSHWQ.js} +1 -1
  130. package/dist/cdn/{DLW55IF2.js → LPO2FQ5N.js} +1 -1
  131. package/dist/cdn/{EWPICNWR.js → LQCTYUNV.js} +1 -1
  132. package/dist/cdn/{GLH5GJZC.js → LQRBB54H.js} +1 -1
  133. package/dist/cdn/{GPXCRUER.js → LRHP4H7N.js} +1 -1
  134. package/dist/cdn/{JOKDE6AY.js → LSWPK2J3.js} +1 -1
  135. package/dist/cdn/{XQKZNHH7.js → LVQNIROC.js} +1 -1
  136. package/dist/cdn/{P2YZCB7M.js → LWZKP5AT.js} +1 -1
  137. package/dist/cdn/{VCJPPBAJ.js → LXPKUWCG.js} +1 -1
  138. package/dist/cdn/{65PEGLJY.js → MBANEOYT.js} +1 -1
  139. package/dist/cdn/{T3F2I5LQ.js → MBUHYX5N.js} +1 -1
  140. package/dist/cdn/{ZHKAXGX4.js → MEWTGMFY.js} +1 -1
  141. package/dist/cdn/{U65VFGZD.js → MF236WBI.js} +1 -1
  142. package/dist/cdn/{3E36QFXG.js → MRVGFB7R.js} +1 -1
  143. package/dist/cdn/{IWOKTFPQ.js → N2NR2FG5.js} +1 -1
  144. package/dist/cdn/{NGCMS3XY.js → N7AFJJVW.js} +1 -1
  145. package/dist/cdn/{M4JE53PK.js → NG2QZJEO.js} +1 -1
  146. package/dist/cdn/{AFYG4EKW.js → NIE5PNXD.js} +1 -1
  147. package/dist/cdn/{EDMWGUZ2.js → NJ5RRMLJ.js} +1 -1
  148. package/dist/cdn/{WSQEOUFE.js → NML7LK6C.js} +1 -1
  149. package/dist/cdn/{ZZ465HDX.js → NO77DEL2.js} +1 -1
  150. package/dist/cdn/{STUFH2WN.js → NWEM5AZ6.js} +1 -1
  151. package/dist/cdn/{D36LYGSR.js → NWENDZZY.js} +1 -1
  152. package/dist/cdn/{7WBDTHNZ.js → NYXY6QWR.js} +1 -1
  153. package/dist/cdn/O5FA44PS.js +2 -0
  154. package/dist/cdn/{HVWMSTQK.js → O5MUETR5.js} +1 -1
  155. package/dist/cdn/{YDDTPUAV.js → O7CUBBAI.js} +1 -1
  156. package/dist/cdn/OAGAKIW2.js +2 -0
  157. package/dist/cdn/{B3CCMNCB.js → OCGCWC3P.js} +1 -1
  158. package/dist/cdn/{37N43OTX.js → ODAZZCP2.js} +1 -1
  159. package/dist/cdn/{VTDRCYT5.js → OFFTNNCA.js} +1 -1
  160. package/dist/cdn/{YYSME7RS.js → OIYSCYT3.js} +1 -1
  161. package/dist/cdn/{M2LATG4F.js → OJBUMUSV.js} +1 -1
  162. package/dist/cdn/{5XQHTWAB.js → OLZBK6DV.js} +1 -1
  163. package/dist/cdn/{FDTUX3BC.js → OPFQOLLP.js} +1 -1
  164. package/dist/cdn/{YRZRKOE3.js → OVMBMFG3.js} +1 -1
  165. package/dist/cdn/{W4KEAKF6.js → P2T7TMD7.js} +1 -1
  166. package/dist/cdn/{SXQKPD36.js → P4OEIRUK.js} +1 -1
  167. package/dist/cdn/{RPVAC6LC.js → P4ZKTLC3.js} +1 -1
  168. package/dist/cdn/{5JADSW57.js → PB3LAPN6.js} +1 -1
  169. package/dist/cdn/{JVK5SF3A.js → PE7FKM4Y.js} +1 -1
  170. package/dist/cdn/{XSCEZHHS.js → PGQ4RVAW.js} +1 -1
  171. package/dist/cdn/{YIVVKAWZ.js → PGQZ2K6F.js} +1 -1
  172. package/dist/cdn/{UELKEVHS.js → PM2ZNRTW.js} +1 -1
  173. package/dist/cdn/{OE5H2TJY.js → PMFWQLEU.js} +1 -1
  174. package/dist/cdn/{TAC7C2NH.js → PO5XZ4VC.js} +1 -1
  175. package/dist/cdn/{SRN5Z6WH.js → Q63KXTZF.js} +1 -1
  176. package/dist/cdn/{2CE24IDF.js → QCQHFZNJ.js} +1 -1
  177. package/dist/cdn/{M3EXGLNJ.js → QKLKHDU7.js} +1 -1
  178. package/dist/cdn/{J4TWDZII.js → QSKIX6RM.js} +1 -1
  179. package/dist/cdn/{MLJ5RYY3.js → R7GRZX4T.js} +1 -1
  180. package/dist/cdn/{Q7SJABWQ.js → REP2Y3FL.js} +1 -1
  181. package/dist/cdn/{AIB2N4JH.js → RI4CMB5D.js} +1 -1
  182. package/dist/cdn/{QARN2LHH.js → RR3TUS2D.js} +1 -1
  183. package/dist/cdn/{PCB2C5PV.js → RWLJF4S5.js} +1 -1
  184. package/dist/cdn/{IGNKWZED.js → RY2V62OL.js} +1 -1
  185. package/dist/cdn/S5UJIOCL.js +2 -0
  186. package/dist/cdn/{ZQV4HSAF.js → SGWDQIQ6.js} +1 -1
  187. package/dist/cdn/SHX7I64J.js +2 -0
  188. package/dist/cdn/{CNYKQYK2.js → SSJRVJ4B.js} +1 -1
  189. package/dist/cdn/{YG4HDEP3.js → SVEKICHA.js} +1 -1
  190. package/dist/cdn/{HN72HWH3.js → T2NYS5QU.js} +1 -1
  191. package/dist/cdn/{GNASFNLA.js → TBBD3K7K.js} +1 -1
  192. package/dist/cdn/{DEQLGPYU.js → TBVQDBHB.js} +1 -1
  193. package/dist/cdn/{Q2DV5IF7.js → TDNKW7DO.js} +1 -1
  194. package/dist/cdn/{DLFRE6XN.js → TDPA4AAV.js} +1 -1
  195. package/dist/cdn/{UUZB2BTT.js → TM4MANUR.js} +1 -1
  196. package/dist/cdn/{J4MSPT4V.js → TM4YVKG6.js} +1 -1
  197. package/dist/cdn/{SJOO6JRD.js → TQMJ6PQF.js} +1 -1
  198. package/dist/cdn/TQXBEQIV.js +2 -0
  199. package/dist/cdn/{YTNVFW4X.js → U7A72ZYI.js} +1 -1
  200. package/dist/cdn/{SAWQ5RBG.js → UAK6BANU.js} +1 -1
  201. package/dist/cdn/UAVFDEON.js +2 -0
  202. package/dist/cdn/{YAUITFVH.js → UPVXM4VW.js} +1 -1
  203. package/dist/cdn/{HBA66T2F.js → UQND4HWF.js} +1 -1
  204. package/dist/cdn/{WVSZE7NB.js → UQS6LSO5.js} +1 -1
  205. package/dist/cdn/UTCTJCII.js +2 -0
  206. package/dist/cdn/{BUZC2WTF.js → UV43LA4E.js} +1 -1
  207. package/dist/cdn/{KHHVCV55.js → V3GNUYUT.js} +1 -1
  208. package/dist/cdn/{XU42PWPW.js → VBTTL5IO.js} +1 -1
  209. package/dist/cdn/{Y23RNEWZ.js → VCTUZXOT.js} +1 -1
  210. package/dist/cdn/{R7E5VLXC.js → VGAHWEBP.js} +1 -1
  211. package/dist/cdn/{B4QA6HTE.js → VUFQZZUS.js} +1 -1
  212. package/dist/cdn/{LCB5NFAN.js → VV5F3KJG.js} +1 -1
  213. package/dist/cdn/{I6V6IVZG.js → VYL2WRAH.js} +1 -1
  214. package/dist/cdn/{G3KYGRHM.js → W656SZ7U.js} +1 -1
  215. package/dist/cdn/{UQJNSDA5.js → W6MSEHSY.js} +1 -1
  216. package/dist/cdn/{ZZJWG3GK.js → WDGUD3AW.js} +1 -1
  217. package/dist/cdn/{3XZSI7I3.js → WEBLSYMP.js} +1 -1
  218. package/dist/cdn/{3FQCW7VR.js → WJ7JJP72.js} +1 -1
  219. package/dist/cdn/WTYAO7OQ.js +2 -0
  220. package/dist/cdn/{66U6JSLL.js → XB5WB5TW.js} +1 -1
  221. package/dist/cdn/{TM2C2UJ2.js → XBMO67RQ.js} +1 -1
  222. package/dist/cdn/{XHGWAHOF.js → XD4O4M7R.js} +1 -1
  223. package/dist/cdn/{27OE65X3.js → XFXGNOUK.js} +1 -1
  224. package/dist/cdn/{OH3OW6FT.js → XIUOCWDO.js} +1 -1
  225. package/dist/cdn/{HP6BF2MW.js → XVGFEWIA.js} +1 -1
  226. package/dist/cdn/{ZSVZL6PT.js → XZ7CRL7A.js} +1 -1
  227. package/dist/cdn/{EKESUZYM.js → Y53XVNMM.js} +1 -1
  228. package/dist/cdn/{OE4E2DJY.js → Y5QZ3L7W.js} +1 -1
  229. package/dist/cdn/{3NHARVEM.js → Y7N4OQQO.js} +1 -1
  230. package/dist/cdn/{QGFWUN5S.js → YJOQGUU3.js} +1 -1
  231. package/dist/cdn/YPARUN26.js +2 -0
  232. package/dist/cdn/{PLVJUW2N.js → YZVGMCOM.js} +1 -1
  233. package/dist/cdn/{MHL2DRCX.js → Z24KU6OH.js} +1 -1
  234. package/dist/cdn/{BEZWJEYM.js → ZCI2M6MA.js} +1 -1
  235. package/dist/cdn/{FLTAOPLR.js → ZLSKMKZJ.js} +1 -1
  236. package/dist/cdn/ZPMJES3R.js +2 -0
  237. package/dist/cdn/{T7IZYFCL.js → ZPZFZGBT.js} +1 -1
  238. package/dist/cdn/{VHXR7S7C.js → ZSISB5M6.js} +1 -1
  239. package/dist/cdn/{WGWEIAKM.js → ZW2LETAA.js} +1 -1
  240. package/dist/cdn/{G75EAA46.js → ZYPMEZDF.js} +1 -1
  241. package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
  242. package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
  243. package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
  244. package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
  245. package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
  246. package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
  247. package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
  248. package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
  249. package/dist/cdn/assets/features/t9n/messages.en.json +1 -1
  250. package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
  251. package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
  252. package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
  253. package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
  254. package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
  255. package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
  256. package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
  257. package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
  258. package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
  259. package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
  260. package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
  261. package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
  262. package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
  263. package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
  264. package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
  265. package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
  266. package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
  267. package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
  268. package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
  269. package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
  270. package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
  271. package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
  272. package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
  273. package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
  274. package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
  275. package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
  276. package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
  277. package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
  278. package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
  279. package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
  280. package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
  281. package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
  282. package/dist/cdn/assets/selection-list/t9n/messages.ar.json +1 -1
  283. package/dist/cdn/assets/selection-list/t9n/messages.bg.json +1 -1
  284. package/dist/cdn/assets/selection-list/t9n/messages.bs.json +1 -1
  285. package/dist/cdn/assets/selection-list/t9n/messages.ca.json +1 -1
  286. package/dist/cdn/assets/selection-list/t9n/messages.cs.json +1 -1
  287. package/dist/cdn/assets/selection-list/t9n/messages.da.json +1 -1
  288. package/dist/cdn/assets/selection-list/t9n/messages.de.json +1 -1
  289. package/dist/cdn/assets/selection-list/t9n/messages.el.json +1 -1
  290. package/dist/cdn/assets/selection-list/t9n/messages.es.json +1 -1
  291. package/dist/cdn/assets/selection-list/t9n/messages.et.json +1 -1
  292. package/dist/cdn/assets/selection-list/t9n/messages.fi.json +1 -1
  293. package/dist/cdn/assets/selection-list/t9n/messages.fr.json +1 -1
  294. package/dist/cdn/assets/selection-list/t9n/messages.he.json +1 -1
  295. package/dist/cdn/assets/selection-list/t9n/messages.hr.json +1 -1
  296. package/dist/cdn/assets/selection-list/t9n/messages.hu.json +1 -1
  297. package/dist/cdn/assets/selection-list/t9n/messages.id.json +1 -1
  298. package/dist/cdn/assets/selection-list/t9n/messages.it.json +1 -1
  299. package/dist/cdn/assets/selection-list/t9n/messages.ja.json +1 -1
  300. package/dist/cdn/assets/selection-list/t9n/messages.ko.json +1 -1
  301. package/dist/cdn/assets/selection-list/t9n/messages.lt.json +1 -1
  302. package/dist/cdn/assets/selection-list/t9n/messages.lv.json +1 -1
  303. package/dist/cdn/assets/selection-list/t9n/messages.nl.json +1 -1
  304. package/dist/cdn/assets/selection-list/t9n/messages.no.json +1 -1
  305. package/dist/cdn/assets/selection-list/t9n/messages.pl.json +1 -1
  306. package/dist/cdn/assets/selection-list/t9n/messages.pt-BR.json +1 -1
  307. package/dist/cdn/assets/selection-list/t9n/messages.pt-PT.json +1 -1
  308. package/dist/cdn/assets/selection-list/t9n/messages.ro.json +1 -1
  309. package/dist/cdn/assets/selection-list/t9n/messages.ru.json +1 -1
  310. package/dist/cdn/assets/selection-list/t9n/messages.sk.json +1 -1
  311. package/dist/cdn/assets/selection-list/t9n/messages.sl.json +1 -1
  312. package/dist/cdn/assets/selection-list/t9n/messages.sr.json +1 -1
  313. package/dist/cdn/assets/selection-list/t9n/messages.sv.json +1 -1
  314. package/dist/cdn/assets/selection-list/t9n/messages.th.json +1 -1
  315. package/dist/cdn/assets/selection-list/t9n/messages.tr.json +1 -1
  316. package/dist/cdn/assets/selection-list/t9n/messages.uk.json +1 -1
  317. package/dist/cdn/assets/selection-list/t9n/messages.vi.json +1 -1
  318. package/dist/cdn/assets/selection-list/t9n/messages.zh-CN.json +1 -1
  319. package/dist/cdn/assets/selection-list/t9n/messages.zh-HK.json +1 -1
  320. package/dist/cdn/assets/selection-list/t9n/messages.zh-TW.json +1 -1
  321. package/dist/cdn/assets/selection-toolbar/t9n/messages.ar.json +1 -1
  322. package/dist/cdn/assets/selection-toolbar/t9n/messages.bg.json +1 -1
  323. package/dist/cdn/assets/selection-toolbar/t9n/messages.bs.json +1 -1
  324. package/dist/cdn/assets/selection-toolbar/t9n/messages.ca.json +1 -1
  325. package/dist/cdn/assets/selection-toolbar/t9n/messages.cs.json +1 -1
  326. package/dist/cdn/assets/selection-toolbar/t9n/messages.da.json +1 -1
  327. package/dist/cdn/assets/selection-toolbar/t9n/messages.de.json +1 -1
  328. package/dist/cdn/assets/selection-toolbar/t9n/messages.el.json +1 -1
  329. package/dist/cdn/assets/selection-toolbar/t9n/messages.es.json +1 -1
  330. package/dist/cdn/assets/selection-toolbar/t9n/messages.et.json +1 -1
  331. package/dist/cdn/assets/selection-toolbar/t9n/messages.fi.json +1 -1
  332. package/dist/cdn/assets/selection-toolbar/t9n/messages.fr.json +1 -1
  333. package/dist/cdn/assets/selection-toolbar/t9n/messages.he.json +1 -1
  334. package/dist/cdn/assets/selection-toolbar/t9n/messages.hr.json +1 -1
  335. package/dist/cdn/assets/selection-toolbar/t9n/messages.hu.json +1 -1
  336. package/dist/cdn/assets/selection-toolbar/t9n/messages.id.json +1 -1
  337. package/dist/cdn/assets/selection-toolbar/t9n/messages.it.json +1 -1
  338. package/dist/cdn/assets/selection-toolbar/t9n/messages.ja.json +1 -1
  339. package/dist/cdn/assets/selection-toolbar/t9n/messages.ko.json +1 -1
  340. package/dist/cdn/assets/selection-toolbar/t9n/messages.lt.json +1 -1
  341. package/dist/cdn/assets/selection-toolbar/t9n/messages.lv.json +1 -1
  342. package/dist/cdn/assets/selection-toolbar/t9n/messages.nl.json +1 -1
  343. package/dist/cdn/assets/selection-toolbar/t9n/messages.no.json +1 -1
  344. package/dist/cdn/assets/selection-toolbar/t9n/messages.pl.json +1 -1
  345. package/dist/cdn/assets/selection-toolbar/t9n/messages.pt-BR.json +1 -1
  346. package/dist/cdn/assets/selection-toolbar/t9n/messages.pt-PT.json +1 -1
  347. package/dist/cdn/assets/selection-toolbar/t9n/messages.ro.json +1 -1
  348. package/dist/cdn/assets/selection-toolbar/t9n/messages.ru.json +1 -1
  349. package/dist/cdn/assets/selection-toolbar/t9n/messages.sk.json +1 -1
  350. package/dist/cdn/assets/selection-toolbar/t9n/messages.sl.json +1 -1
  351. package/dist/cdn/assets/selection-toolbar/t9n/messages.sr.json +1 -1
  352. package/dist/cdn/assets/selection-toolbar/t9n/messages.sv.json +1 -1
  353. package/dist/cdn/assets/selection-toolbar/t9n/messages.th.json +1 -1
  354. package/dist/cdn/assets/selection-toolbar/t9n/messages.tr.json +1 -1
  355. package/dist/cdn/assets/selection-toolbar/t9n/messages.uk.json +1 -1
  356. package/dist/cdn/assets/selection-toolbar/t9n/messages.vi.json +1 -1
  357. package/dist/cdn/assets/selection-toolbar/t9n/messages.zh-CN.json +1 -1
  358. package/dist/cdn/assets/selection-toolbar/t9n/messages.zh-HK.json +1 -1
  359. package/dist/cdn/assets/selection-toolbar/t9n/messages.zh-TW.json +1 -1
  360. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ar.json +1 -1
  361. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bg.json +1 -1
  362. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.bs.json +1 -1
  363. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ca.json +1 -1
  364. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.cs.json +1 -1
  365. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.da.json +1 -1
  366. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.de.json +1 -1
  367. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.el.json +1 -1
  368. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.es.json +1 -1
  369. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.et.json +1 -1
  370. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fi.json +1 -1
  371. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.fr.json +1 -1
  372. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.he.json +1 -1
  373. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hr.json +1 -1
  374. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.hu.json +1 -1
  375. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.id.json +1 -1
  376. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.it.json +1 -1
  377. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ja.json +1 -1
  378. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ko.json +1 -1
  379. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lt.json +1 -1
  380. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.lv.json +1 -1
  381. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.nl.json +1 -1
  382. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.no.json +1 -1
  383. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pl.json +1 -1
  384. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-BR.json +1 -1
  385. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.pt-PT.json +1 -1
  386. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ro.json +1 -1
  387. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.ru.json +1 -1
  388. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sk.json +1 -1
  389. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sl.json +1 -1
  390. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sr.json +1 -1
  391. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.sv.json +1 -1
  392. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.th.json +1 -1
  393. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.tr.json +1 -1
  394. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.uk.json +1 -1
  395. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.vi.json +1 -1
  396. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-CN.json +1 -1
  397. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-HK.json +1 -1
  398. package/dist/cdn/assets/utility-network-trace-results/t9n/messages.zh-TW.json +1 -1
  399. package/dist/cdn/index.js +1 -1
  400. package/dist/chunks/esri-main.js +1 -1
  401. package/dist/chunks/selectionOverlayPopupController.js +207 -0
  402. package/dist/components/arcgis-feature-table/customElement.d.ts +10 -0
  403. package/dist/components/arcgis-feature-table/customElement.js +2 -2
  404. package/dist/components/arcgis-features/customElement.d.ts +0 -15
  405. package/dist/components/arcgis-features-next/customElement.d.ts +10 -3
  406. package/dist/components/arcgis-features-next/customElement.js +110 -93
  407. package/dist/components/arcgis-features-next/index.js +1 -0
  408. package/dist/components/arcgis-link-chart/customElement.d.ts +21 -1
  409. package/dist/components/arcgis-link-chart/customElement.js +36 -33
  410. package/dist/components/arcgis-map/customElement.d.ts +21 -1
  411. package/dist/components/arcgis-map/customElement.js +26 -23
  412. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
  413. package/dist/components/arcgis-popup/customElement.d.ts +7 -0
  414. package/dist/components/arcgis-popup/customElement.js +46 -43
  415. package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +2 -1
  416. package/dist/components/arcgis-presentation/customElement.d.ts +3 -2
  417. package/dist/components/arcgis-presentation/customElement.js +149 -140
  418. package/dist/components/arcgis-scene/customElement.d.ts +21 -1
  419. package/dist/components/arcgis-scene/customElement.js +25 -22
  420. package/dist/components/arcgis-sketch/customElement.js +1 -1
  421. package/dist/components/arcgis-time-bar/customElement.js +164 -157
  422. package/dist/components/arcgis-time-bar-slider/customElement.js +32 -19
  423. package/dist/components/arcgis-video/customElement.js +11 -11
  424. package/dist/docs/api.json +1 -1
  425. package/dist/docs/docs.json +1 -1
  426. package/dist/docs/vscode.html-custom-data.json +1 -1
  427. package/dist/docs/web-types.json +1 -1
  428. package/dist/loader.js +6 -6
  429. package/dist/types/lumina.d.ts +9 -6
  430. package/dist/types/preact.d.ts +9 -6
  431. package/dist/types/react.d.ts +9 -6
  432. package/dist/types/stencil.d.ts +9 -6
  433. package/package.json +6 -6
  434. package/dist/cdn/2FR4GN2W.js +0 -2
  435. package/dist/cdn/3KIT2HLC.js +0 -2
  436. package/dist/cdn/5Z4QFELH.js +0 -2
  437. package/dist/cdn/6LL2ILG2.js +0 -2
  438. package/dist/cdn/BMSEVLUF.js +0 -2
  439. package/dist/cdn/CNXCJR63.js +0 -2
  440. package/dist/cdn/FNYKN3UB.js +0 -2
  441. package/dist/cdn/H3CCHIXN.js +0 -2
  442. package/dist/cdn/I7GS3EKH.js +0 -2
  443. package/dist/cdn/I7PSZ2EP.js +0 -2
  444. package/dist/cdn/ISK7BEJR.js +0 -2
  445. package/dist/cdn/IYGUG4PD.js +0 -2
  446. package/dist/cdn/JSYLRK26.js +0 -2
  447. package/dist/cdn/MGZCTI2S.js +0 -2
  448. package/dist/cdn/MPYSRYIP.js +0 -2
  449. package/dist/cdn/N3WHO5AH.js +0 -2
  450. package/dist/cdn/P7GH36VO.js +0 -2
  451. package/dist/cdn/RU7PGLLB.js +0 -2
  452. package/dist/cdn/Y462FZAE.js +0 -2
  453. package/dist/cdn/YHZFK4FD.js +0 -2
  454. package/dist/chunks/useArcgisViewReadyError.js +0 -154
  455. /package/dist/cdn/{GFTZ7EZP.js → MNS5VY6U.js} +0 -0
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as y}from"./WQISNLF7.js";import{a as e}from"./4MJJOPAL.js";import{a as v}from"./5JADSW57.js";import{a as w}from"./JD74LG7K.js";import f from"./KORK4WZ7.js";import{h as p}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import b from"./GNASFNLA.js";import"./QUZTFUWM.js";import{b as g}from"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as h,Q as d,R as u,S as a,V as m,a as n,b as c,w as l}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getGoToDuration:x},{watch:o},,{a:f}])=>{var b=n`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{calcite-button{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}}:host([visual-scale="l"]){calcite-button{width:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md));height:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md))}}:host([visual-scale="s"]){calcite-button{width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}}.root{border-radius:50%;box-shadow:var(--arcgis-internal-box-shadow, none)}.icon-container{justify-content:center;display:flex;position:absolute;transform:translate(-50%,-50%)}.icon-container:dir(rtl){transform:translate(50%,-50%)}`,s=class extends h{constructor(){super(...arguments),this._hasInitializedOrientation=!1,this._hasInitializedState=!1,this._lastState="disabled",this.messages=v(),this._orientation={x:0,y:0,z:0},this.view=f(this),this.autoDestroyDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=p()("state","orientation"),this.arcgisReady=l()}static{this.properties={_orientation:16,view:0,autoDestroyDisabled:5,canShowNorth:32,goToOverride:0,icon:3,label:1,messageOverrides:0,orientation:32,referenceElement:1,state:32,visualScale:3}}static{this.styles=b}get canShowNorth(){return y(this.view)}get icon(){return this._icon??(this.state==="rotation"?"arrow-up":"compass-needle")}set icon(t){this._icon=t}get orientation(){return this._orientation}get state(){return!this.view?.ready||this.view.type==="2d"&&!this.view.constraints.rotationEnabled?"disabled":this.canShowNorth?"compass":"rotation"}async destroy(){await this.manager.destroy()}async reset(){let{view:t}=this;t?.ready&&(t?.type==="2d"?e({target:{rotation:0},options:{animationMode:"always",duration:x()}},t,this.goToOverride):e({target:{heading:0}},t,this.goToOverride))}updated(t){t.has("_orientation")&&(this._hasInitializedOrientation?this.arcgisPropertyChange.emit({name:"orientation"}):this._hasInitializedOrientation=!0);let i=this.state;this._hasInitializedState?i!==this._lastState&&this.arcgisPropertyChange.emit({name:"state"}):this._hasInitializedState=!0,this._lastState=i}loaded(){if(!this.view){this.manager.onLifecycle(()=>[o(()=>this.view?.ready,()=>{this._watchRotationOrCamera()},{once:!0})]);return}this._watchRotationOrCamera()}_watchRotationOrCamera(){if(!this.view)return;let t=[];this.view.type==="2d"?t.push(o(()=>this.view?.rotation,i=>this._updateForRotation(i),{initial:!0})):t.push(o(()=>this.view?.camera,i=>this._updateForCamera(i),{initial:!0})),this.manager.onLifecycle(()=>t)}_updateForRotation(t){t!=null&&(this._orientation={z:t})}_updateForCamera(t){if(!t)return;let i=-t.heading;this._orientation={x:0,y:0,z:i}}render(){let{messages:t,icon:i}=this;return c`<div class=${d(g("root",w.arcgisButton))}><calcite-button .disabled=${this.state==="disabled"} kind=neutral .label=${t.reset} @click=${this.reset} round .scale=${this.visualScale} title=${t.reset??a}><div aria-hidden=true class="icon-container" title=${t.reset??a}><calcite-icon .scale=${this.visualScale} .icon=${i} style=${u(_(this.orientation))}></calcite-icon></div></calcite-button></div>`}},_=r=>({transform:`rotateZ(${r.z}deg)`});m("arcgis-compass",s);return s},"applications/Components/navigationDuration","core/reactiveUtils",b,f)
2
+ import{b as y}from"./WQISNLF7.js";import{a as e}from"./4MJJOPAL.js";import{a as v}from"./PB3LAPN6.js";import{a as w}from"./JD74LG7K.js";import f from"./DGHSJCA2.js";import{h as p}from"./PGQ4RVAW.js";import"./25LV3KCP.js";import b from"./TBBD3K7K.js";import"./QUZTFUWM.js";import{b as g}from"./FAOYV6UX.js";import"./XURWCCLX.js";import{O as h,Q as d,R as u,S as a,V as m,a as n,b as c,w as l}from"./MNS5VY6U.js";import"./H6RQVSYM.js";export default $arcgis.t(([{getGoToDuration:x},{watch:o},,{a:f}])=>{var b=n`.arcgis-button{--calcite-icon-color: var(--calcite-color-text-3);--calcite-button-background-color: var(--calcite-color-foreground-1);color:var(--calcite-color-text-3);line-height:var(--calcite-font-line-height-relative-tight);calcite-button{--calcite-offset-invert-focus: 1}display:flex;flex-flow:column;cursor:pointer;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);:hover{--calcite-icon-color: var(--calcite-color-text-1);--calcite-button-background-color: var(--calcite-color-transparent-hover)}}:host{calcite-button{width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl)}}:host([visual-scale="l"]){calcite-button{width:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md));height:calc(var(--calcite-spacing-xxxl) + var(--calcite-spacing-md))}}:host([visual-scale="s"]){calcite-button{width:var(--calcite-spacing-xxl);height:var(--calcite-spacing-xxl)}}.root{border-radius:50%;box-shadow:var(--arcgis-internal-box-shadow, none)}.icon-container{justify-content:center;display:flex;position:absolute;transform:translate(-50%,-50%)}.icon-container:dir(rtl){transform:translate(50%,-50%)}`,s=class extends h{constructor(){super(...arguments),this._hasInitializedOrientation=!1,this._hasInitializedState=!1,this._lastState="disabled",this.messages=v(),this._orientation={x:0,y:0,z:0},this.view=f(this),this.autoDestroyDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=p()("state","orientation"),this.arcgisReady=l()}static{this.properties={_orientation:16,view:0,autoDestroyDisabled:5,canShowNorth:32,goToOverride:0,icon:3,label:1,messageOverrides:0,orientation:32,referenceElement:1,state:32,visualScale:3}}static{this.styles=b}get canShowNorth(){return y(this.view)}get icon(){return this._icon??(this.state==="rotation"?"arrow-up":"compass-needle")}set icon(t){this._icon=t}get orientation(){return this._orientation}get state(){return!this.view?.ready||this.view.type==="2d"&&!this.view.constraints.rotationEnabled?"disabled":this.canShowNorth?"compass":"rotation"}async destroy(){await this.manager.destroy()}async reset(){let{view:t}=this;t?.ready&&(t?.type==="2d"?e({target:{rotation:0},options:{animationMode:"always",duration:x()}},t,this.goToOverride):e({target:{heading:0}},t,this.goToOverride))}updated(t){t.has("_orientation")&&(this._hasInitializedOrientation?this.arcgisPropertyChange.emit({name:"orientation"}):this._hasInitializedOrientation=!0);let i=this.state;this._hasInitializedState?i!==this._lastState&&this.arcgisPropertyChange.emit({name:"state"}):this._hasInitializedState=!0,this._lastState=i}loaded(){if(!this.view){this.manager.onLifecycle(()=>[o(()=>this.view?.ready,()=>{this._watchRotationOrCamera()},{once:!0})]);return}this._watchRotationOrCamera()}_watchRotationOrCamera(){if(!this.view)return;let t=[];this.view.type==="2d"?t.push(o(()=>this.view?.rotation,i=>this._updateForRotation(i),{initial:!0})):t.push(o(()=>this.view?.camera,i=>this._updateForCamera(i),{initial:!0})),this.manager.onLifecycle(()=>t)}_updateForRotation(t){t!=null&&(this._orientation={z:t})}_updateForCamera(t){if(!t)return;let i=-t.heading;this._orientation={x:0,y:0,z:i}}render(){let{messages:t,icon:i}=this;return c`<div class=${d(g("root",w.arcgisButton))}><calcite-button .disabled=${this.state==="disabled"} kind=neutral .label=${t.reset} @click=${this.reset} round .scale=${this.visualScale} title=${t.reset??a}><div aria-hidden=true class="icon-container" title=${t.reset??a}><calcite-icon .scale=${this.visualScale} .icon=${i} style=${u(_(this.orientation))}></calcite-icon></div></calcite-button></div>`}},_=r=>({transform:`rotateZ(${r.z}deg)`});m("arcgis-compass",s);return s},"applications/Components/navigationDuration","core/reactiveUtils",b,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./SKNX46RX.js";import{R as v,T as b,b as u,c as g}from"./GFTZ7EZP.js";export default $arcgis.t(([{renderColorRampPreviewHTML:R},{c:p,e:w,f:x}])=>{var E=10,y=20,h=10,z=20;function m(s){return typeof s=="number"}function C(s="vertical"){let e="stroke:rgb(200, 200, 200);stroke-width:1";return s==="vertical"?u`<svg height=4 width=10>${g`<line style=${v(e)} x1=0 x2=10 y1=2 y2=2 />`}</svg>`:u`<svg height=10 width=10>${g`<line style=${v(e)} x1=5 x2=5 y1=0 y2=10 />`}</svg>`}function S(s,e="vertical"){let n={height:`${y}px`,opacity:s?.toString()};return u`<div class="univariate-above-below-symbol" style=${v(n)}>${C(e)}</div>`}function $(s,e,n,o="vertical",i){s.infos.forEach((t,l)=>{if(i&&l===2){t.preview=b(S(n,o));return}else{let r=(m(t.size)?p(t.size):0)+(o==="horizontal"?z:h),c=t.preview,f=c?.tagName.toLowerCase()==="div",a=f?c:document.createElement("div");a.className="univariate-above-below-symbol",o==="horizontal"?a.style.width=`${r}px`:a.style.height=`${r}px`,!f&&c&&a.appendChild(c),x(a,w(e,t.label)),t.preview=a}})}function P(s,e="classic"){let n=s.infos,o=n.at(0),i=n.at(-1),t=m(o.size)?p(o.size):0,l=m(i.size)?p(i.size):0;return e==="classic"?(t+h)/2:(t-l)/2}function T(s,e){if(!s)return null;let n=s.infos.map(i=>i.color),o=R(e.type==="full"?n:e.type==="above"?n.slice(0,3):n.slice(2,5),{width:e.width??void 0,height:e.height??void 0,align:e.rampAlignment,cssEffectFilter:e.cssEffectFilter,ariaLabel:e.ariaLabel??void 0});return o.className="color-ramp",e.opacity!=null&&(o.style.opacity=e.opacity.toString()),o}function k(s,e,n,o="vertical"){let i=0,t=s.infos,l=Math.floor(t.length/2),r=e==="full"||e==="above"?0:l,c=e==="full"||e==="below"?t.length-1:l;for(let f=r;f<=c;f++)if(n&&f===l)i+=o==="horizontal"?E:y;else{let a=t[f].size,d=(m(a)?p(a):0)+(o==="horizontal"?z:h);i+=d}return Math.round(i)}function j(s,e,n,o="vertical"){let i=k(s,e,n,o),t=s.infos,l=Math.floor(t.length/2),r=e==="full"||e==="above"?0:l,c=e==="full"||e==="below"?t.length-1:l,f=m(t[r].size)?t[r].size:0,a=m(t[c].size)?t[c].size:0,d=e==="full"?f+a:e==="above"?f:a,L=n?o==="vertical"?y:E:0,M=o==="vertical"?h*(e==="full"?2:1):z*(e==="full"?2:1);return Math.round(i-(p(d)/2+L/2+M/2))}function q(s,e,n,o="vertical"){let i=s.infos,t=i.find(({type:r})=>r==="size-ramp"),l=i.find(({type:r})=>r==="color-ramp");return t&&(t={...t},t.infos=[...t.infos],$(t,e,n,o,!0)),l&&(l={...l},l.infos=[...l.infos]),o==="horizontal"&&(t?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:t,colorRampElement:l}}function B(s,e,n="vertical"){let o=s.infos,i=o.find(({type:l})=>l==="size-ramp"),t=o.find(({type:l})=>l==="color-ramp");return i&&(i={...i},i.infos=[...i.infos],$(i,e,null,n,!1)),t&&(t={...t},t.infos=[...t.infos]),n==="horizontal"&&(i?.infos.reverse(),t?.infos.reverse()),{sizeRampElement:i,colorRampElement:t}}var D={marginLeft:"3px"},H={display:"table-cell",verticalAlign:"middle"},W={display:"flex",alignItems:"flex-start"};return{a:P,b:T,c:k,d:j,e:q,f:B,g:D,h:H,i:W}},"symbols/support/symbolUtils",a)
2
+ import a from"./SKNX46RX.js";import{R as v,T as b,b as u,c as g}from"./MNS5VY6U.js";export default $arcgis.t(([{renderColorRampPreviewHTML:R},{c:p,e:w,f:x}])=>{var E=10,y=20,h=10,z=20;function m(s){return typeof s=="number"}function C(s="vertical"){let e="stroke:rgb(200, 200, 200);stroke-width:1";return s==="vertical"?u`<svg height=4 width=10>${g`<line style=${v(e)} x1=0 x2=10 y1=2 y2=2 />`}</svg>`:u`<svg height=10 width=10>${g`<line style=${v(e)} x1=5 x2=5 y1=0 y2=10 />`}</svg>`}function S(s,e="vertical"){let n={height:`${y}px`,opacity:s?.toString()};return u`<div class="univariate-above-below-symbol" style=${v(n)}>${C(e)}</div>`}function $(s,e,n,o="vertical",i){s.infos.forEach((t,l)=>{if(i&&l===2){t.preview=b(S(n,o));return}else{let r=(m(t.size)?p(t.size):0)+(o==="horizontal"?z:h),c=t.preview,f=c?.tagName.toLowerCase()==="div",a=f?c:document.createElement("div");a.className="univariate-above-below-symbol",o==="horizontal"?a.style.width=`${r}px`:a.style.height=`${r}px`,!f&&c&&a.appendChild(c),x(a,w(e,t.label)),t.preview=a}})}function P(s,e="classic"){let n=s.infos,o=n.at(0),i=n.at(-1),t=m(o.size)?p(o.size):0,l=m(i.size)?p(i.size):0;return e==="classic"?(t+h)/2:(t-l)/2}function T(s,e){if(!s)return null;let n=s.infos.map(i=>i.color),o=R(e.type==="full"?n:e.type==="above"?n.slice(0,3):n.slice(2,5),{width:e.width??void 0,height:e.height??void 0,align:e.rampAlignment,cssEffectFilter:e.cssEffectFilter,ariaLabel:e.ariaLabel??void 0});return o.className="color-ramp",e.opacity!=null&&(o.style.opacity=e.opacity.toString()),o}function k(s,e,n,o="vertical"){let i=0,t=s.infos,l=Math.floor(t.length/2),r=e==="full"||e==="above"?0:l,c=e==="full"||e==="below"?t.length-1:l;for(let f=r;f<=c;f++)if(n&&f===l)i+=o==="horizontal"?E:y;else{let a=t[f].size,d=(m(a)?p(a):0)+(o==="horizontal"?z:h);i+=d}return Math.round(i)}function j(s,e,n,o="vertical"){let i=k(s,e,n,o),t=s.infos,l=Math.floor(t.length/2),r=e==="full"||e==="above"?0:l,c=e==="full"||e==="below"?t.length-1:l,f=m(t[r].size)?t[r].size:0,a=m(t[c].size)?t[c].size:0,d=e==="full"?f+a:e==="above"?f:a,L=n?o==="vertical"?y:E:0,M=o==="vertical"?h*(e==="full"?2:1):z*(e==="full"?2:1);return Math.round(i-(p(d)/2+L/2+M/2))}function q(s,e,n,o="vertical"){let i=s.infos,t=i.find(({type:r})=>r==="size-ramp"),l=i.find(({type:r})=>r==="color-ramp");return t&&(t={...t},t.infos=[...t.infos],$(t,e,n,o,!0)),l&&(l={...l},l.infos=[...l.infos]),o==="horizontal"&&(t?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:t,colorRampElement:l}}function B(s,e,n="vertical"){let o=s.infos,i=o.find(({type:l})=>l==="size-ramp"),t=o.find(({type:l})=>l==="color-ramp");return i&&(i={...i},i.infos=[...i.infos],$(i,e,null,n,!1)),t&&(t={...t},t.infos=[...t.infos]),n==="horizontal"&&(i?.infos.reverse(),t?.infos.reverse()),{sizeRampElement:i,colorRampElement:t}}var D={marginLeft:"3px"},H={display:"table-cell",verticalAlign:"middle"},W={display:"flex",alignItems:"flex-start"};return{a:P,b:T,c:k,d:j,e:q,f:B,g:D,h:H,i:W}},"symbols/support/symbolUtils",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as W}from"./37N43OTX.js";import f from"./QGFWUN5S.js";import{a as w}from"./POKO37D3.js";import e from"./YG4HDEP3.js";import"./VJVKFKSG.js";import{a as x}from"./OCZ5FM6Y.js";import{a as S}from"./5JADSW57.js";import"./JD74LG7K.js";import d from"./KORK4WZ7.js";import"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as C,V as j,a as D,b as c,w as b}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([p,{watch:J},H,{property:o,subclass:R},{signal:O},{isAbortError:K},Q,,{a:A},,{b:k,c:U}])=>{var Y=D`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{transition:max-height .25s ease-in-out;overflow-y:auto}.root{position:relative;display:flex;flex-direction:column;gap:var(--calcite-spacing-xxxl)}.esri-widget__heading{font-weight:var(--calcite-font-weight-normal)}calcite-scrim{--calcite-scrim-background: var(--calcite-color-foreground-1)}.disabled{color:var(--calcite-color-status-danger)}.esri-widget--panel{min-width:unset}`,T="__BUILDING_EXPLORER_FILTER__";function ee(){return`${crypto.randomUUID()}${T}`}function z(t){let e=typeof t=="string"?t:t.id;return!!e&&e.includes(T)}function Z(t,e){for(let i of t)for(let s of i.filters){if(!z(s))continue;let r=e(s);if(r!=null)return r}return null}function te(t,e){for(let i of t){let s=i.filters.filter(l=>!z(l));e!=null&&s.push(e),ie(i.filters,s)||(i.filters=s);let r=i.filters.find(l=>z(l));i.activeFilterId=r!=null?r.id:null}}function ie(t,e){let i=e.length;if(t?.length!==i)return!1;for(let s=0;s<i;++s){let r=e.at(s).toJSON(),l=t.at(s).toJSON();if(r.id="",l.id="",JSON.stringify(r)!==JSON.stringify(l))return!1}return!0}function re(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"x-ray"}}:null}function se(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"solid"}}:null}function G(t){return t.filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}function N(t){let e={fieldValueMap:new Map,allowedValues:[]};for(let i of t){let s=i.fieldValueMap,r=e.fieldValueMap;s.forEach((l,a)=>{r.has(a)||(r.set(a,l),e.allowedValues.push(a))})}return e.allowedValues.sort((i,s)=>i-s),e}function P(t,e){return e.allowedValues.length>0?le(t,e.allowedValues):null}function le(t,e){if(e.length===0)return t;if(t===1/0)return e[e.length-1];if(t===-1/0)return e[0];let i=e[0],s=Math.abs(i-t);for(let r of e){let l=Math.abs(r-t);l<s&&(i=r,s=l)}return i}var ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,X=t=>{throw TypeError(t)},d=(t,e,i,s)=>{for(var r=s>1?void 0:s?oe(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ae(e,i,r),r},ne=(t,e,i)=>e.has(t)||X("Cannot "+i),h=(t,e,i)=>(ne(t,e,"read from private field"),i?i.call(t):e.get(t)),V=(t,e,i)=>e.has(t)?X("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),$,L,v,_,n=class extends H{constructor(t){super(t),V(this,$,O(!0)),V(this,L,O(void 0)),V(this,v,O(null)),V(this,_,new p),this._state="disabled",this._domainInfo=N([]),this._loadLayers=U(),this.layers=new p}initialize(){this.addHandles(this.layers.on("change",()=>{this._onLayersChange()})),this._onLayersChange()}destroy(){this._state="disabled"}get disabled(){return this.allowedValues.length===0||h(this,$).value}set disabled(t){h(this,$).value=t}get value(){return(this.state==="ready"?h(this,L).value:this._valueBeforeReady)??0}set value(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}if(t===this.value)return;let e=P(t,this);e!=null&&(h(this,L).value=e)}get min(){return this.allowedValues.length===0?null:Math.min(...this.allowedValues)}get max(){return this.allowedValues.length===0?null:Math.max(...this.allowedValues)}get allowedValues(){return h(this,v).value??this._domainInfo.allowedValues}set allowedValues(t){t==null?h(this,v).value=null:h(this,v).value=t;let e=P(this.value,this);e!=null&&(this.value=e)}get hasNext(){if(this.disabled)return!0;let t=this._valueIndex;return t>=0&&t<this.allowedValues.length-1}get hasPrevious(){return this.disabled?!0:this._valueIndex>0}get layers(){return h(this,_)}set layers(t){h(this,_).removeAll(),h(this,_).addMany(t)}get state(){return this._state}set state(t){this._state=t}get filterExpressions(){return{solid:null,xRay:null}}get _valueIndex(){return this.allowedValues.indexOf(this.value)}select(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}P(t,this)!=null&&(this.disabled=!1,this.value=t)}clear(){if(this.state!=="ready"){this._valueBeforeReady=void 0;return}this.disabled=!0}next(){let{state:t,allowedValues:e,disabled:i,hasNext:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[0];return}s&&(this.value=e[r+1])}}previous(){let{state:t,allowedValues:e,disabled:i,hasPrevious:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[e.length-1];return}s&&(this.value=e[r-1])}}getValueLabel(t){return this.layers.length===0?null:this._domainInfo.fieldValueMap.get(t)??null}async _onLayersChange(){if(this._state="loading",this._domainInfo=N([]),this.layers.length!==0)try{await this._loadLayers(this.layers),this.state="ready",this._setup(),this.changeEmitter?.()}catch(t){K(t)||(this._state="failed")}}};$=new WeakMap;L=new WeakMap;v=new WeakMap;_=new WeakMap;d([o()],n.prototype,"changeEmitter",2);d([o()],n.prototype,"disabled",1);d([o()],n.prototype,"value",1);d([o({readOnly:!0})],n.prototype,"min",1);d([o({readOnly:!0})],n.prototype,"max",1);d([o()],n.prototype,"allowedValues",1);d([o({readOnly:!0})],n.prototype,"hasNext",1);d([o({readOnly:!0})],n.prototype,"hasPrevious",1);d([o({type:p})],n.prototype,"layers",1);d([o()],n.prototype,"_state",2);d([o()],n.prototype,"state",1);d([o({})],n.prototype,"_valueBeforeReady",2);d([o({readOnly:!0})],n.prototype,"_valueIndex",1);d([o()],n.prototype,"_domainInfo",2);n=d([R("esri.components.BuildingExplorer.BuildingNumericFilterViewModel")],n);var de=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,q=t=>{throw TypeError(t)},B=(t,e,i,s)=>{for(var r=s>1?void 0:s?ce(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&de(e,i,r),r},he=(t,e,i)=>e.has(t)||q("Cannot "+i),ue=(t,e,i)=>(he(t,e,"read from private field"),i?i.call(t):e.get(t)),pe=(t,e,i)=>e.has(t)?q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),I,ge="bldglevel",f=class extends n{constructor(t){super(t),pe(this,I,e=>{let i=new RegExp(`${this._levelFieldName}\\s*=\\s*(\\d+)`,"giu"),s=new RegExp(`${this._levelFieldName}\\s*<\\s*(\\d+)`,"giu");for(let{filterMode:r,filterExpression:l}of e.filterBlocks??[]){if(l==null)continue;let a=null;if(r?.type==="solid"?a=i.exec(l):r?.type==="x-ray"&&(a=s.exec(l)),a)return Number.parseInt(a[1],10)}return null})}get filterExpressions(){return this.disabled||!this._levelFieldName?{solid:null,xRay:null}:{xRay:`${this._levelFieldName} < ${this.value}`,solid:`${this._levelFieldName} = ${this.value}`}}get _firstValue(){let t=this.allowedValues;return t.length>0?t[0]:0}_setup(){let t=[];for(let s of this.layers){let r=k(s,ge);r!=null&&(this._levelFieldName=r.fieldName,t.push(r))}this._domainInfo=N(t);let e=this._valueBeforeReady;this._valueBeforeReady=void 0;let i=e??Z(this.layers,ue(this,I));i!=null?this.select(i):(this.disabled=!0,this.value=this._firstValue)}};I=new WeakMap;B([o()],f.prototype,"filterExpressions",1);B([o()],f.prototype,"_levelFieldName",2);B([o()],f.prototype,"_firstValue",1);f=B([R("esri.components.BuildingExplorer.BuildingLevel")],f);var fe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,y=(t,e,i,s)=>{for(var r=s>1?void 0:s?me(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&fe(e,i,r),r},ve="demolishedphase",_e="createdphase",g=class extends n{constructor(t){super(t),this._parseValueFromFilter=e=>{let i=this._createdPhaseFieldName,s=new RegExp(`${i}\\s*<=\\s*(\\d+)\\s*OR\\s*${i}\\s*IS\\s*NULL`,"giu"),r=this._demolishedPhaseFieldName,l=new RegExp(`${r}\\s*>\\s*(\\d+)\\s*OR\\s*${r}\\s*IS\\s*NULL`,"giu");for(let{filterExpression:a}of e.filterBlocks??[]){let M=a?s.exec(a)??l.exec(a):null;if(M)return Number.parseInt(M[1],10)}return null}}get filterExpressions(){if(this.disabled)return{solid:null,xRay:null};let t=[],e=this._createdPhaseFieldName;e&&t.push(`(${e} <= ${this.value} OR ${e} IS NULL)`);let i=this._demolishedPhaseFieldName;i&&t.push(`(${i} > ${this.value} OR ${i} IS NULL)`);let s=t.join(" AND ");return{solid:s,xRay:s}}get _lastValue(){let t=this.allowedValues;return t.length>0?t[t.length-1]:0}_setup(){let t=[];for(let i of this.layers){let s=k(i,_e);s!=null&&(this._createdPhaseFieldName=s.fieldName,t.push(s));let r=k(i,ve);r!=null&&(this._demolishedPhaseFieldName=r.fieldName,t.push(r))}this._domainInfo=N(t);let e=this._valueBeforeReady;if(this._valueBeforeReady=void 0,this.allowedValues.length>0){let i=e??Z(this.layers,this._parseValueFromFilter);this.select(i??this._lastValue)}else this.clear()}};y([o()],g.prototype,"filterExpressions",1);y([o()],g.prototype,"_createdPhaseFieldName",2);y([o()],g.prototype,"_demolishedPhaseFieldName",2);y([o()],g.prototype,"_lastValue",1);g=y([R("esri.components.BuildingExplorer.BuildingPhase")],g);var ye=Object.defineProperty,be=Object.getOwnPropertyDescriptor,m=(t,e,i,s)=>{for(var r=s>1?void 0:s?be(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ye(e,i,r),r},u=class extends H{constructor(){super(...arguments),this.level=new f,this.phase=new g}get layers(){return this._layers}set layers(t){this._layers=t,this.level.layers=t??new p,this.phase.layers=t??new p}get filter(){let t=this.level.filterExpressions,e=this.phase.filterExpressions,i=[],s=se([t.solid,e.solid]);s!=null&&i.push(s);let r=re([t.xRay,e.xRay]);return r!=null&&i.push(r),i.length===0?null:new Q({id:ee(),name:"Building Explorer Filter",filterBlocks:i})}};m([o()],u.prototype,"_layers",2);m([o()],u.prototype,"layers",1);m([o()],u.prototype,"level",2);m([o()],u.prototype,"phase",2);m([o({readOnly:!0})],u.prototype,"filter",1);u=m([R()],u);var F=class extends C{constructor(){super(...arguments),this.messages=S({blocking:!0}),this.#i=new p,this.#r=new u,this.view=A(this),this.autoDestroyDisabled=!1,this.headingLevel=3,this.hideDisciplines=!1,this.hideLevels=!1,this.hidePhases=!1,this.icon="organization",this.arcgisBuildingLevelChange=b({bubbles:!0,composed:!0}),this.arcgisBuildingPhaseChange=b({bubbles:!0,composed:!0}),this.arcgisReady=b()}static{this.properties={view:0,autoDestroyDisabled:5,headingLevel:9,hideDisciplines:5,hideLevels:5,hidePhases:5,icon:1,label:1,layers:0,level:9,phase:9,levels:0,phases:0,levelDisabled:32,phaseDisabled:32,referenceElement:1}}static{this.styles=Y}#i;#r;get#e(){return this.#r.level}get#t(){return this.#r.phase}get minLevel(){return this.#e.min}get maxLevel(){return this.#e.max}get minPhase(){return this.#t.min}get maxPhase(){return this.#t.max}get supported(){return this.view?.type==="3d"}get layers(){return this.#i.toArray()}set layers(e){this.#i.removeAll(),this.#i.addMany(e)}get level(){return this.#e.value}set level(e){e==null?this.#e.clear():this.#e.value=e}get phase(){return this.#t.value}set phase(e){e==null?this.#t.clear():this.#t.value=e}get levels(){return this.#e.allowedValues}set levels(e){e==null?this.#e.allowedValues=null:this.#e.allowedValues=e}get phases(){return this.#t.allowedValues}set phases(e){e==null?this.#t.allowedValues=null:this.#t.allowedValues=e}get levelDisabled(){return this.#e.disabled}get phaseDisabled(){return this.#t.disabled}async destroy(){await this.manager.destroy()}loaded(){this.#e.changeEmitter=()=>this.arcgisBuildingLevelChange.emit(),this.#t.changeEmitter=()=>this.arcgisBuildingPhaseChange.emit(),this.manager.onLifecycle(()=>[J(()=>({layers:this.#i.toArray(),filter:this.#r.filter,levelState:this.#e.state,phaseState:this.#t.state}),({layers:e,filter:i,levelState:s,phaseState:r})=>{s!=="ready"||r!=="ready"||te(e,i)},{initial:!0}),J(()=>this.layers,e=>{this.#r.layers=new p(e)},{initial:!0})])}render(){let e=this.messages;if(!this.supported)return E({label:e.componentLabel,children:c`<p class="disabled">${e.unsupported}</p>`});if(this.layers.length===0)return E({label:e.componentLabel,children:c`<p class="disabled">${e.noData}</p>`});if(this.#e.state==="failed"||this.#t.state==="failed")return E({label:e.componentLabel,children:c`<p class="disabled">${e.failed}</p>`});let i=this.hideLevels||this.#e.allowedValues.length<2,s=this.hidePhases||this.#t.allowedValues.length<2,r=this.#e.state!=="ready"||this.#t.state!=="ready";return E({label:e.componentLabel,loading:r,children:c`${w({hidden:i,children:c`<div>${x({level:this.headingLevel,children:this.messages.level.title})}<arcgis-building-level-picker .messages=${e.level} .level=${this.#e}></arcgis-building-level-picker></div>`})}${w({hidden:s,children:c`<div>${x({level:this.headingLevel,children:this.messages.phase.title})}<arcgis-building-phase-picker .messages=${e.phase} .phase=${this.#t}></arcgis-building-phase-picker></div>`})}${w({hidden:this.hideDisciplines,children:c`<div>${x({level:this.headingLevel,children:this.messages.disciplines.title})}<arcgis-building-discipline-tree .layers=${this.layers} .messages=${this.messages.disciplines}></arcgis-building-discipline-tree></div>`})}`})}};function E(t){return W({class:"root",hideHeader:!0,label:t.label,children:c`${t.children}${t.loading?c`<calcite-scrim .loading=${t.loading}></calcite-scrim>`:null}`})}j("arcgis-building-explorer",F);return F},"core/Collection","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators","applications/Components/reactiveUtils","core/promiseUtils","layers/support/BuildingFilter",a,d,e,f)
2
+ import{a as W}from"./ODAZZCP2.js";import f from"./YJOQGUU3.js";import{a as w}from"./POKO37D3.js";import e from"./SVEKICHA.js";import"./VJVKFKSG.js";import{a as x}from"./HJ4HFO7D.js";import{a as S}from"./PB3LAPN6.js";import"./JD74LG7K.js";import d from"./DGHSJCA2.js";import"./PGQ4RVAW.js";import"./25LV3KCP.js";import a from"./TBBD3K7K.js";import"./QUZTFUWM.js";import"./FAOYV6UX.js";import"./XURWCCLX.js";import{O as C,V as j,a as D,b as c,w as b}from"./MNS5VY6U.js";import"./H6RQVSYM.js";export default $arcgis.t(([p,{watch:J},H,{property:o,subclass:R},{signal:O},{isAbortError:K},Q,,{a:A},,{b:k,c:U}])=>{var Y=D`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{transition:max-height .25s ease-in-out;overflow-y:auto}.root{position:relative;display:flex;flex-direction:column;gap:var(--calcite-spacing-xxxl)}.esri-widget__heading{font-weight:var(--calcite-font-weight-normal)}calcite-scrim{--calcite-scrim-background: var(--calcite-color-foreground-1)}.disabled{color:var(--calcite-color-status-danger)}.esri-widget--panel{min-width:unset}`,T="__BUILDING_EXPLORER_FILTER__";function ee(){return`${crypto.randomUUID()}${T}`}function z(t){let e=typeof t=="string"?t:t.id;return!!e&&e.includes(T)}function Z(t,e){for(let i of t)for(let s of i.filters){if(!z(s))continue;let r=e(s);if(r!=null)return r}return null}function te(t,e){for(let i of t){let s=i.filters.filter(l=>!z(l));e!=null&&s.push(e),ie(i.filters,s)||(i.filters=s);let r=i.filters.find(l=>z(l));i.activeFilterId=r!=null?r.id:null}}function ie(t,e){let i=e.length;if(t?.length!==i)return!1;for(let s=0;s<i;++s){let r=e.at(s).toJSON(),l=t.at(s).toJSON();if(r.id="",l.id="",JSON.stringify(r)!==JSON.stringify(l))return!1}return!0}function re(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"x-ray"}}:null}function se(t){let e=G(t);return e?{filterExpression:e,filterMode:{type:"solid"}}:null}function G(t){return t.filter(e=>!!e).map(e=>`(${e})`).join(" AND ")}function N(t){let e={fieldValueMap:new Map,allowedValues:[]};for(let i of t){let s=i.fieldValueMap,r=e.fieldValueMap;s.forEach((l,a)=>{r.has(a)||(r.set(a,l),e.allowedValues.push(a))})}return e.allowedValues.sort((i,s)=>i-s),e}function P(t,e){return e.allowedValues.length>0?le(t,e.allowedValues):null}function le(t,e){if(e.length===0)return t;if(t===1/0)return e[e.length-1];if(t===-1/0)return e[0];let i=e[0],s=Math.abs(i-t);for(let r of e){let l=Math.abs(r-t);l<s&&(i=r,s=l)}return i}var ae=Object.defineProperty,oe=Object.getOwnPropertyDescriptor,X=t=>{throw TypeError(t)},d=(t,e,i,s)=>{for(var r=s>1?void 0:s?oe(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ae(e,i,r),r},ne=(t,e,i)=>e.has(t)||X("Cannot "+i),h=(t,e,i)=>(ne(t,e,"read from private field"),i?i.call(t):e.get(t)),V=(t,e,i)=>e.has(t)?X("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),$,L,v,_,n=class extends H{constructor(t){super(t),V(this,$,O(!0)),V(this,L,O(void 0)),V(this,v,O(null)),V(this,_,new p),this._state="disabled",this._domainInfo=N([]),this._loadLayers=U(),this.layers=new p}initialize(){this.addHandles(this.layers.on("change",()=>{this._onLayersChange()})),this._onLayersChange()}destroy(){this._state="disabled"}get disabled(){return this.allowedValues.length===0||h(this,$).value}set disabled(t){h(this,$).value=t}get value(){return(this.state==="ready"?h(this,L).value:this._valueBeforeReady)??0}set value(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}if(t===this.value)return;let e=P(t,this);e!=null&&(h(this,L).value=e)}get min(){return this.allowedValues.length===0?null:Math.min(...this.allowedValues)}get max(){return this.allowedValues.length===0?null:Math.max(...this.allowedValues)}get allowedValues(){return h(this,v).value??this._domainInfo.allowedValues}set allowedValues(t){t==null?h(this,v).value=null:h(this,v).value=t;let e=P(this.value,this);e!=null&&(this.value=e)}get hasNext(){if(this.disabled)return!0;let t=this._valueIndex;return t>=0&&t<this.allowedValues.length-1}get hasPrevious(){return this.disabled?!0:this._valueIndex>0}get layers(){return h(this,_)}set layers(t){h(this,_).removeAll(),h(this,_).addMany(t)}get state(){return this._state}set state(t){this._state=t}get filterExpressions(){return{solid:null,xRay:null}}get _valueIndex(){return this.allowedValues.indexOf(this.value)}select(t){if(this.state!=="ready"){this._valueBeforeReady=t;return}P(t,this)!=null&&(this.disabled=!1,this.value=t)}clear(){if(this.state!=="ready"){this._valueBeforeReady=void 0;return}this.disabled=!0}next(){let{state:t,allowedValues:e,disabled:i,hasNext:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[0];return}s&&(this.value=e[r+1])}}previous(){let{state:t,allowedValues:e,disabled:i,hasPrevious:s,_valueIndex:r}=this;if(t!=="ready"&&this._valueBeforeReady!=null){this._valueBeforeReady++;return}if(e.length!==0){if(i){this.disabled=!1,this.value=e[e.length-1];return}s&&(this.value=e[r-1])}}getValueLabel(t){return this.layers.length===0?null:this._domainInfo.fieldValueMap.get(t)??null}async _onLayersChange(){if(this._state="loading",this._domainInfo=N([]),this.layers.length!==0)try{await this._loadLayers(this.layers),this.state="ready",this._setup(),this.changeEmitter?.()}catch(t){K(t)||(this._state="failed")}}};$=new WeakMap;L=new WeakMap;v=new WeakMap;_=new WeakMap;d([o()],n.prototype,"changeEmitter",2);d([o()],n.prototype,"disabled",1);d([o()],n.prototype,"value",1);d([o({readOnly:!0})],n.prototype,"min",1);d([o({readOnly:!0})],n.prototype,"max",1);d([o()],n.prototype,"allowedValues",1);d([o({readOnly:!0})],n.prototype,"hasNext",1);d([o({readOnly:!0})],n.prototype,"hasPrevious",1);d([o({type:p})],n.prototype,"layers",1);d([o()],n.prototype,"_state",2);d([o()],n.prototype,"state",1);d([o({})],n.prototype,"_valueBeforeReady",2);d([o({readOnly:!0})],n.prototype,"_valueIndex",1);d([o()],n.prototype,"_domainInfo",2);n=d([R("esri.components.BuildingExplorer.BuildingNumericFilterViewModel")],n);var de=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,q=t=>{throw TypeError(t)},B=(t,e,i,s)=>{for(var r=s>1?void 0:s?ce(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&de(e,i,r),r},he=(t,e,i)=>e.has(t)||q("Cannot "+i),ue=(t,e,i)=>(he(t,e,"read from private field"),i?i.call(t):e.get(t)),pe=(t,e,i)=>e.has(t)?q("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),I,ge="bldglevel",f=class extends n{constructor(t){super(t),pe(this,I,e=>{let i=new RegExp(`${this._levelFieldName}\\s*=\\s*(\\d+)`,"giu"),s=new RegExp(`${this._levelFieldName}\\s*<\\s*(\\d+)`,"giu");for(let{filterMode:r,filterExpression:l}of e.filterBlocks??[]){if(l==null)continue;let a=null;if(r?.type==="solid"?a=i.exec(l):r?.type==="x-ray"&&(a=s.exec(l)),a)return Number.parseInt(a[1],10)}return null})}get filterExpressions(){return this.disabled||!this._levelFieldName?{solid:null,xRay:null}:{xRay:`${this._levelFieldName} < ${this.value}`,solid:`${this._levelFieldName} = ${this.value}`}}get _firstValue(){let t=this.allowedValues;return t.length>0?t[0]:0}_setup(){let t=[];for(let s of this.layers){let r=k(s,ge);r!=null&&(this._levelFieldName=r.fieldName,t.push(r))}this._domainInfo=N(t);let e=this._valueBeforeReady;this._valueBeforeReady=void 0;let i=e??Z(this.layers,ue(this,I));i!=null?this.select(i):(this.disabled=!0,this.value=this._firstValue)}};I=new WeakMap;B([o()],f.prototype,"filterExpressions",1);B([o()],f.prototype,"_levelFieldName",2);B([o()],f.prototype,"_firstValue",1);f=B([R("esri.components.BuildingExplorer.BuildingLevel")],f);var fe=Object.defineProperty,me=Object.getOwnPropertyDescriptor,y=(t,e,i,s)=>{for(var r=s>1?void 0:s?me(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&fe(e,i,r),r},ve="demolishedphase",_e="createdphase",g=class extends n{constructor(t){super(t),this._parseValueFromFilter=e=>{let i=this._createdPhaseFieldName,s=new RegExp(`${i}\\s*<=\\s*(\\d+)\\s*OR\\s*${i}\\s*IS\\s*NULL`,"giu"),r=this._demolishedPhaseFieldName,l=new RegExp(`${r}\\s*>\\s*(\\d+)\\s*OR\\s*${r}\\s*IS\\s*NULL`,"giu");for(let{filterExpression:a}of e.filterBlocks??[]){let M=a?s.exec(a)??l.exec(a):null;if(M)return Number.parseInt(M[1],10)}return null}}get filterExpressions(){if(this.disabled)return{solid:null,xRay:null};let t=[],e=this._createdPhaseFieldName;e&&t.push(`(${e} <= ${this.value} OR ${e} IS NULL)`);let i=this._demolishedPhaseFieldName;i&&t.push(`(${i} > ${this.value} OR ${i} IS NULL)`);let s=t.join(" AND ");return{solid:s,xRay:s}}get _lastValue(){let t=this.allowedValues;return t.length>0?t[t.length-1]:0}_setup(){let t=[];for(let i of this.layers){let s=k(i,_e);s!=null&&(this._createdPhaseFieldName=s.fieldName,t.push(s));let r=k(i,ve);r!=null&&(this._demolishedPhaseFieldName=r.fieldName,t.push(r))}this._domainInfo=N(t);let e=this._valueBeforeReady;if(this._valueBeforeReady=void 0,this.allowedValues.length>0){let i=e??Z(this.layers,this._parseValueFromFilter);this.select(i??this._lastValue)}else this.clear()}};y([o()],g.prototype,"filterExpressions",1);y([o()],g.prototype,"_createdPhaseFieldName",2);y([o()],g.prototype,"_demolishedPhaseFieldName",2);y([o()],g.prototype,"_lastValue",1);g=y([R("esri.components.BuildingExplorer.BuildingPhase")],g);var ye=Object.defineProperty,be=Object.getOwnPropertyDescriptor,m=(t,e,i,s)=>{for(var r=s>1?void 0:s?be(e,i):e,l=t.length-1,a;l>=0;l--)(a=t[l])&&(r=(s?a(e,i,r):a(r))||r);return s&&r&&ye(e,i,r),r},u=class extends H{constructor(){super(...arguments),this.level=new f,this.phase=new g}get layers(){return this._layers}set layers(t){this._layers=t,this.level.layers=t??new p,this.phase.layers=t??new p}get filter(){let t=this.level.filterExpressions,e=this.phase.filterExpressions,i=[],s=se([t.solid,e.solid]);s!=null&&i.push(s);let r=re([t.xRay,e.xRay]);return r!=null&&i.push(r),i.length===0?null:new Q({id:ee(),name:"Building Explorer Filter",filterBlocks:i})}};m([o()],u.prototype,"_layers",2);m([o()],u.prototype,"layers",1);m([o()],u.prototype,"level",2);m([o()],u.prototype,"phase",2);m([o({readOnly:!0})],u.prototype,"filter",1);u=m([R()],u);var F=class extends C{constructor(){super(...arguments),this.messages=S({blocking:!0}),this.#i=new p,this.#r=new u,this.view=A(this),this.autoDestroyDisabled=!1,this.headingLevel=3,this.hideDisciplines=!1,this.hideLevels=!1,this.hidePhases=!1,this.icon="organization",this.arcgisBuildingLevelChange=b({bubbles:!0,composed:!0}),this.arcgisBuildingPhaseChange=b({bubbles:!0,composed:!0}),this.arcgisReady=b()}static{this.properties={view:0,autoDestroyDisabled:5,headingLevel:9,hideDisciplines:5,hideLevels:5,hidePhases:5,icon:1,label:1,layers:0,level:9,phase:9,levels:0,phases:0,levelDisabled:32,phaseDisabled:32,referenceElement:1}}static{this.styles=Y}#i;#r;get#e(){return this.#r.level}get#t(){return this.#r.phase}get minLevel(){return this.#e.min}get maxLevel(){return this.#e.max}get minPhase(){return this.#t.min}get maxPhase(){return this.#t.max}get supported(){return this.view?.type==="3d"}get layers(){return this.#i.toArray()}set layers(e){this.#i.removeAll(),this.#i.addMany(e)}get level(){return this.#e.value}set level(e){e==null?this.#e.clear():this.#e.value=e}get phase(){return this.#t.value}set phase(e){e==null?this.#t.clear():this.#t.value=e}get levels(){return this.#e.allowedValues}set levels(e){e==null?this.#e.allowedValues=null:this.#e.allowedValues=e}get phases(){return this.#t.allowedValues}set phases(e){e==null?this.#t.allowedValues=null:this.#t.allowedValues=e}get levelDisabled(){return this.#e.disabled}get phaseDisabled(){return this.#t.disabled}async destroy(){await this.manager.destroy()}loaded(){this.#e.changeEmitter=()=>this.arcgisBuildingLevelChange.emit(),this.#t.changeEmitter=()=>this.arcgisBuildingPhaseChange.emit(),this.manager.onLifecycle(()=>[J(()=>({layers:this.#i.toArray(),filter:this.#r.filter,levelState:this.#e.state,phaseState:this.#t.state}),({layers:e,filter:i,levelState:s,phaseState:r})=>{s!=="ready"||r!=="ready"||te(e,i)},{initial:!0}),J(()=>this.layers,e=>{this.#r.layers=new p(e)},{initial:!0})])}render(){let e=this.messages;if(!this.supported)return E({label:e.componentLabel,children:c`<p class="disabled">${e.unsupported}</p>`});if(this.layers.length===0)return E({label:e.componentLabel,children:c`<p class="disabled">${e.noData}</p>`});if(this.#e.state==="failed"||this.#t.state==="failed")return E({label:e.componentLabel,children:c`<p class="disabled">${e.failed}</p>`});let i=this.hideLevels||this.#e.allowedValues.length<2,s=this.hidePhases||this.#t.allowedValues.length<2,r=this.#e.state!=="ready"||this.#t.state!=="ready";return E({label:e.componentLabel,loading:r,children:c`${w({hidden:i,children:c`<div>${x({level:this.headingLevel,children:this.messages.level.title})}<arcgis-building-level-picker .messages=${e.level} .level=${this.#e}></arcgis-building-level-picker></div>`})}${w({hidden:s,children:c`<div>${x({level:this.headingLevel,children:this.messages.phase.title})}<arcgis-building-phase-picker .messages=${e.phase} .phase=${this.#t}></arcgis-building-phase-picker></div>`})}${w({hidden:this.hideDisciplines,children:c`<div>${x({level:this.headingLevel,children:this.messages.disciplines.title})}<arcgis-building-discipline-tree .layers=${this.layers} .messages=${this.messages.disciplines}></arcgis-building-discipline-tree></div>`})}`})}};function E(t){return W({class:"root",hideHeader:!0,label:t.label,children:c`${t.children}${t.loading?c`<calcite-scrim .loading=${t.loading}></calcite-scrim>`:null}`})}j("arcgis-building-explorer",F);return F},"core/Collection","core/reactiveUtils","core/Accessor","core/accessorSupport/decorators","applications/Components/reactiveUtils","core/promiseUtils","layers/support/BuildingFilter",a,d,e,f)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as $}from"./XEK22IDA.js";import i from"./TMJX7DFH.js";import f from"./YG4HDEP3.js";import"./VJVKFKSG.js";import e from"./SJOO6JRD.js";import{a as F}from"./5JADSW57.js";import d from"./5ZRBWOVW.js";import c from"./KORK4WZ7.js";import{h as w}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import a from"./GNASFNLA.js";import"./QUZTFUWM.js";import"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as g,V as b,a as T,b as r,w as h}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:l,subclass:x},B,_,{getAllStandardFeatureTemplatesForLayer:D,getTemplatesForLayers:L},{isTable:y,getEffectiveLayerCapabilities:E},{watch:v},,{a:M},,S,,{g:m,h: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 P=S(s),u=class extends g{constructor(){super(...arguments),this._messages=F(),this.viewModel=P(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,i)
2
+ import{a as $}from"./XEK22IDA.js";import i from"./TMJX7DFH.js";import f from"./SVEKICHA.js";import"./VJVKFKSG.js";import e from"./TQMJ6PQF.js";import{a as F}from"./PB3LAPN6.js";import d from"./4JLRRQSP.js";import c from"./DGHSJCA2.js";import{h as w}from"./PGQ4RVAW.js";import"./25LV3KCP.js";import a from"./TBBD3K7K.js";import"./QUZTFUWM.js";import"./FAOYV6UX.js";import"./XURWCCLX.js";import{O as g,V as b,a as T,b as r,w as h}from"./MNS5VY6U.js";import"./H6RQVSYM.js";export default $arcgis.t(([{property:l,subclass:x},B,_,{getAllStandardFeatureTemplatesForLayer:D,getTemplatesForLayers:L},{isTable:y,getEffectiveLayerCapabilities:E},{watch:v},,{a:M},,S,,{g:m,h: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 P=S(s),u=class extends g{constructor(){super(...arguments),this._messages=F(),this.viewModel=P(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,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{b as g}from"./O7RSAJOS.js";import{o as l}from"./GFTZ7EZP.js";export default $arcgis.t(([c,{getZonedDateTimeParts:y,offsetDate:T,truncateDate:D}])=>{var f={count:10};function x(e){return b(e)&&e.interval.unit===g?(l("warn","arcgis-slider-time",'A stop interval with an "unknown" time unit is not supported. The default stop definition will be used.'),f):e}function F(e){return!!e&&"count"in e}function I(e){return!!e&&"dates"in e}function b(e){return!!e&&"interval"in e}var p=1e4;function w(e,r){let{start:t,end:n}=e;if(!t||!n||t.getTime()>n.getTime()||r<=0)return[];if(r>p)return w(e,f.count);let u=[],a=t.getTime(),i=n.getTime()-a;for(let s=0;s<=r;s++)u.push(new Date(a+s/r*i));return u}function Z(e,r){let{start:t,end:n}=e,{value:u,unit:a}=r;if(!t||!n||t.getTime()>n.getTime()||u<=0)return[];let i=n.getTime()-t.getTime(),s=r.toMilliseconds();if(s<=0||i/s>p)return w(e,f.count);let m=[],o=t;for(;o.getTime()<=n.getTime();)m.push(new Date(o)),o=T(o,u,a);return m}function j(e,r){let[t,n]=e;if(t)switch(r){case"time-window":return n?new c({start:t,end:n}):void 0;case"cumulative-from-start":return new c({start:null,end:t});case"cumulative-from-end":return new c({start:t,end:null});case"instant":return new c({start:t,end:t})}}function A(e,r,t,n){let{value:u,unit:a}=t;if(e.getTime()>r.getTime()||u<=0||a==="unknown")return[];let i=D(e,t,n),s=[];for(;i.getTime()<=r.getTime();)i.getTime()>=e.getTime()&&s.push(i),i=T(i,u,a,n);return s}function C(e,r){let t=new Intl.DateTimeFormat("en",{day:"2-digit",month:"2-digit",timeZone:r,year:"numeric"}).formatToParts(e),n=t.find(({type:i})=>i==="year")?.value??"1900",u=t.find(({type:i})=>i==="month")?.value??"01",a=t.find(({type:i})=>i==="day")?.value??"01";return`${n}-${u}-${a}`}function M(e,r){let t=new Intl.DateTimeFormat("en",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:r}).formatToParts(e),n=t.find(({type:i})=>i==="hour")?.value??"00",u=t.find(({type:i})=>i==="minute")?.value??"00",a=t.find(({type:i})=>i==="second")?.value??"00";return`${n}:${u}:${a}`}function B(e,r,t){let n=/^(\d{4})-(\d{2})-(\d{2})$/u.exec(e),u=/^(\d{2}):(\d{2}):(\d{2})$/u.exec(r);if(!n||!u)return;let a=Number(n[1]),i=Number(n[2]),s=Number(n[3]),m=Number(u[1]),o=Number(u[2]),v=Number(u[3]),d=new Date(Date.UTC(a,i-1,s,m,o,v)),h=(y(d,t)?.offsetMinutes??0)*6e4;return new Date(d.getTime()-h)}return{a:f,b:x,c:F,d:I,e:b,f:w,g:Z,h:j,i:A,j:C,k:M,l:B}},"time/TimeExtent","core/timeUtils")
2
+ import{b as g}from"./O7RSAJOS.js";import{o as l}from"./MNS5VY6U.js";export default $arcgis.t(([c,{getZonedDateTimeParts:y,offsetDate:T,truncateDate:D}])=>{var f={count:10};function x(e){return b(e)&&e.interval.unit===g?(l("warn","arcgis-slider-time",'A stop interval with an "unknown" time unit is not supported. The default stop definition will be used.'),f):e}function F(e){return!!e&&"count"in e}function I(e){return!!e&&"dates"in e}function b(e){return!!e&&"interval"in e}var p=1e4;function w(e,r){let{start:t,end:n}=e;if(!t||!n||t.getTime()>n.getTime()||r<=0)return[];if(r>p)return w(e,f.count);let u=[],a=t.getTime(),i=n.getTime()-a;for(let s=0;s<=r;s++)u.push(new Date(a+s/r*i));return u}function Z(e,r){let{start:t,end:n}=e,{value:u,unit:a}=r;if(!t||!n||t.getTime()>n.getTime()||u<=0)return[];let i=n.getTime()-t.getTime(),s=r.toMilliseconds();if(s<=0||i/s>p)return w(e,f.count);let m=[],o=t;for(;o.getTime()<=n.getTime();)m.push(new Date(o)),o=T(o,u,a);return m}function j(e,r){let[t,n]=e;if(t)switch(r){case"time-window":return n?new c({start:t,end:n}):void 0;case"cumulative-from-start":return new c({start:null,end:t});case"cumulative-from-end":return new c({start:t,end:null});case"instant":return new c({start:t,end:t})}}function A(e,r,t,n){let{value:u,unit:a}=t;if(e.getTime()>r.getTime()||u<=0||a==="unknown")return[];let i=D(e,t,n),s=[];for(;i.getTime()<=r.getTime();)i.getTime()>=e.getTime()&&s.push(i),i=T(i,u,a,n);return s}function C(e,r){let t=new Intl.DateTimeFormat("en",{day:"2-digit",month:"2-digit",timeZone:r,year:"numeric"}).formatToParts(e),n=t.find(({type:i})=>i==="year")?.value??"1900",u=t.find(({type:i})=>i==="month")?.value??"01",a=t.find(({type:i})=>i==="day")?.value??"01";return`${n}-${u}-${a}`}function M(e,r){let t=new Intl.DateTimeFormat("en",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit",timeZone:r}).formatToParts(e),n=t.find(({type:i})=>i==="hour")?.value??"00",u=t.find(({type:i})=>i==="minute")?.value??"00",a=t.find(({type:i})=>i==="second")?.value??"00";return`${n}:${u}:${a}`}function B(e,r,t){let n=/^(\d{4})-(\d{2})-(\d{2})$/u.exec(e),u=/^(\d{2}):(\d{2}):(\d{2})$/u.exec(r);if(!n||!u)return;let a=Number(n[1]),i=Number(n[2]),s=Number(n[3]),m=Number(u[1]),o=Number(u[2]),v=Number(u[3]),d=new Date(Date.UTC(a,i-1,s,m,o,v)),h=(y(d,t)?.offsetMinutes??0)*6e4;return new Date(d.getTime()-h)}return{a:f,b:x,c:F,d:I,e:b,f:w,g:Z,h:j,i:A,j:C,k:M,l:B}},"time/TimeExtent","core/timeUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{O as o,V as r,a as l,b as e}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:n}])=>{var c=l`:host{display:flex;flex-direction:column;height:100%}.layout-section{padding:var(--calcite-spacing-sm) var(--calcite-spacing-sm);display:flex;flex-direction:column;flex-grow:1;gap:var(--calcite-spacing-md)}.panel-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--calcite-spacing-sm)}.advanced-options-section{border:1px solid var(--calcite-color-border-1);margin-bottom:var(--calcite-spacing-sm)}`,a=class extends o{constructor(){super(...arguments),this.hideAdvancedOptions=!1,this.autoPopulateAuthor=!1,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1}static{this.properties={_selectedTemplate:16,_showSelectedTemplateTitleText:16,hideAdvancedOptions:5,autoPopulateAuthor:5,viewModel:0,messages:0,showTemplateSelector:0,selectExportsTab:0,hideFeatureAttributes:5,hideIncludeTables:5}}static{this.styles=c}loaded(){this.manager.onLifecycle(()=>{let t,s=n(()=>this.viewModel.templateOptions.id,i=>{t?.remove(),this._selectedTemplate=i?this.viewModel.getLayoutTemplateById(i)??void 0:void 0,t=n(()=>this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasTitleText,()=>{this._showSelectedTemplateTitleText=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasTitleText??!0},{initial:!0})},{initial:!0});return()=>{s.remove(),t?.remove()}})}render(){return e`<section class="layout-section" tabindex=-1><div class="panel-container">${this._renderTitleInput()}${this._renderTemplateSelect()}${this._renderFileFormatSection()}${this._renderAdvancedSection()}</div>${this._renderExportButton()}</section>`}_renderTitleInput(){if(!this._showSelectedTemplateTitleText)return null;let{title:t,titlePlaceHolder:s}=this.messages;return e`<calcite-label>${t}<calcite-input .placeholder=${s} .value=${this.viewModel.templateOptions.title??""} @calciteInputInput=${i=>{this.viewModel.templateOptions.title=i.currentTarget.value}}></calcite-input></calcite-label>`}_renderTemplateSelect(){return e`<div><calcite-label>${this.messages.template}<arcgis-print-template-select .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this.showTemplateSelector}></arcgis-print-template-select></calcite-label><arcgis-print-preview-input .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-preview-input></div>`}_renderFileFormatSection(){return e`<arcgis-print-format-select .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-format-select>`}_renderAdvancedSection(){return this.hideAdvancedOptions?null:e`<calcite-block .ariaLabel=${this.messages.advancedOptions} class="advanced-options-section" expandable .disabled=${!this._selectedTemplate} .heading=${this.messages.advancedOptions}><arcgis-print-layout-advanced-options .autoPopulateAuthor=${this.autoPopulateAuthor} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-layout-advanced-options></calcite-block>`}_renderExportButton(){return e`<arcgis-print-export-button .fileName=${this.viewModel.templateOptions.title??void 0} .messages=${this.messages} .viewModel=${this.viewModel} .selectExportsTab=${this.selectExportsTab}></arcgis-print-export-button>`}};r("arcgis-print-layout-panel",a);return a},"core/reactiveUtils")
2
+ import{O as o,V as r,a as l,b as e}from"./MNS5VY6U.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:n}])=>{var c=l`:host{display:flex;flex-direction:column;height:100%}.layout-section{padding:var(--calcite-spacing-sm) var(--calcite-spacing-sm);display:flex;flex-direction:column;flex-grow:1;gap:var(--calcite-spacing-md)}.panel-container{display:flex;flex-grow:1;flex-direction:column;gap:var(--calcite-spacing-sm)}.advanced-options-section{border:1px solid var(--calcite-color-border-1);margin-bottom:var(--calcite-spacing-sm)}`,a=class extends o{constructor(){super(...arguments),this.hideAdvancedOptions=!1,this.autoPopulateAuthor=!1,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1}static{this.properties={_selectedTemplate:16,_showSelectedTemplateTitleText:16,hideAdvancedOptions:5,autoPopulateAuthor:5,viewModel:0,messages:0,showTemplateSelector:0,selectExportsTab:0,hideFeatureAttributes:5,hideIncludeTables:5}}static{this.styles=c}loaded(){this.manager.onLifecycle(()=>{let t,s=n(()=>this.viewModel.templateOptions.id,i=>{t?.remove(),this._selectedTemplate=i?this.viewModel.getLayoutTemplateById(i)??void 0:void 0,t=n(()=>this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasTitleText,()=>{this._showSelectedTemplateTitleText=this._selectedTemplate?.layoutTemplateInfo?.layoutOptions?.hasTitleText??!0},{initial:!0})},{initial:!0});return()=>{s.remove(),t?.remove()}})}render(){return e`<section class="layout-section" tabindex=-1><div class="panel-container">${this._renderTitleInput()}${this._renderTemplateSelect()}${this._renderFileFormatSection()}${this._renderAdvancedSection()}</div>${this._renderExportButton()}</section>`}_renderTitleInput(){if(!this._showSelectedTemplateTitleText)return null;let{title:t,titlePlaceHolder:s}=this.messages;return e`<calcite-label>${t}<calcite-input .placeholder=${s} .value=${this.viewModel.templateOptions.title??""} @calciteInputInput=${i=>{this.viewModel.templateOptions.title=i.currentTarget.value}}></calcite-input></calcite-label>`}_renderTemplateSelect(){return e`<div><calcite-label>${this.messages.template}<arcgis-print-template-select .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this.showTemplateSelector}></arcgis-print-template-select></calcite-label><arcgis-print-preview-input .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-preview-input></div>`}_renderFileFormatSection(){return e`<arcgis-print-format-select .viewModel=${this.viewModel} .messages=${this.messages}></arcgis-print-format-select>`}_renderAdvancedSection(){return this.hideAdvancedOptions?null:e`<calcite-block .ariaLabel=${this.messages.advancedOptions} class="advanced-options-section" expandable .disabled=${!this._selectedTemplate} .heading=${this.messages.advancedOptions}><arcgis-print-layout-advanced-options .autoPopulateAuthor=${this.autoPopulateAuthor} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-print-layout-advanced-options></calcite-block>`}_renderExportButton(){return e`<arcgis-print-export-button .fileName=${this.viewModel.templateOptions.title??void 0} .messages=${this.messages} .viewModel=${this.viewModel} .selectExportsTab=${this.selectExportsTab}></arcgis-print-export-button>`}};r("arcgis-print-layout-panel",a);return a},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{O as a,V as t,a as i,b as o}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";var c=i`:host{min-width:100px;flex:1 1 auto;display:flex;align-items:center;justify-content:center}.slider-progress-container{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress{--arcgis-internal-video-player-progress-width: 2px;appearance:none;position:absolute;top:calc(50% - var(--arcgis-internal-video-player-progress-width) / 2);left:var(--calcite-spacing-xs);border:none;background:var(--calcite-color-border-1);cursor:pointer;width:calc(100% - var(--calcite-spacing-xs) * 2);height:var(--arcgis-internal-video-player-progress-width)}.progress::-webkit-progress-bar{background-color:var(--calcite-color-border-3)}.progress::-webkit-progress-value{background-color:var(--calcite-color-border-input)}.progress::-moz-progress-bar{background-color:var(--calcite-color-border-3)}.slider{--calcite-slider-track-color: transparent;width:100%}`,s=class extends a{static{this.properties={viewModel:0,buffered:9,messages:0,value:9}}static{this.styles=c}_onSliderInput({currentTarget:e}){if(typeof e.value=="number"){let r=e.value*this.viewModel.duration/100;this.viewModel.seekTo(r)}}render(){let{buffered:e,messages:r,value:l}=this;return o`<div class="slider-progress-container" dir=ltr><progress class="progress" max=1 .value=${`${e}`}></progress><div class="slider"><calcite-slider .label=${r.playbackProgress} max=100 min=0 .value=${l} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div></div>`}};t("arcgis-video-player-slider",s);export{s as VideoPlayerSlider};
2
+ import{O as a,V as t,a as i,b as o}from"./MNS5VY6U.js";import"./H6RQVSYM.js";var c=i`:host{min-width:100px;flex:1 1 auto;display:flex;align-items:center;justify-content:center}.slider-progress-container{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress{--arcgis-internal-video-player-progress-width: 2px;appearance:none;position:absolute;top:calc(50% - var(--arcgis-internal-video-player-progress-width) / 2);left:var(--calcite-spacing-xs);border:none;background:var(--calcite-color-border-1);cursor:pointer;width:calc(100% - var(--calcite-spacing-xs) * 2);height:var(--arcgis-internal-video-player-progress-width)}.progress::-webkit-progress-bar{background-color:var(--calcite-color-border-3)}.progress::-webkit-progress-value{background-color:var(--calcite-color-border-input)}.progress::-moz-progress-bar{background-color:var(--calcite-color-border-3)}.slider{--calcite-slider-track-color: transparent;width:100%}`,s=class extends a{static{this.properties={viewModel:0,buffered:9,messages:0,value:9}}static{this.styles=c}_onSliderInput({currentTarget:e}){if(typeof e.value=="number"){let r=e.value*this.viewModel.duration/100;this.viewModel.seekTo(r)}}render(){let{buffered:e,messages:r,value:l}=this;return o`<div class="slider-progress-container" dir=ltr><progress class="progress" max=1 .value=${`${e}`}></progress><div class="slider"><calcite-slider .label=${r.playbackProgress} max=100 min=0 .value=${l} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div></div>`}};t("arcgis-video-player-slider",s);export{s as VideoPlayerSlider};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import j from"./SJOO6JRD.js";import{a as u}from"./5JADSW57.js";import{a as s}from"./JD74LG7K.js";import f from"./ISK7BEJR.js";import e from"./5ZRBWOVW.js";import d from"./KORK4WZ7.js";import{h as w}from"./XSCEZHHS.js";import"./UVNNXZHK.js";import b from"./GNASFNLA.js";import"./QUZTFUWM.js";import{b as m}from"./XPEGBUNJ.js";import"./XURWCCLX.js";import{O as h,Q as g,V as p,a as c,b as i,w as a}from"./GFTZ7EZP.js";import"./H6RQVSYM.js";export default $arcgis.t(([_,{watch:n},,,,l,v])=>{var b=c`.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{--panel-min-height--large: 240px;display:flex;flex-direction:column;flex-grow:1}.root{display:flex;position:relative;flex-grow:1;min-height:var(--panel-min-height--large)}.root section[aria-hidden=true]{display:none}.panel-items-centered{display:flex;align-items:center}.container{display:flex;flex-direction:column;flex-grow:1}.header-title{margin:0 auto 0 0;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}.panel-error{color:var(--calcite-color-status-danger)}`,x=v(_),f=r=>{if(!r)return"all";let e=typeof r=="string"?r.split(",").map(t=>t.trim()).filter(t=>t):[r];return!e.length||e.includes("all")?"all":e},d=class extends h{constructor(){super(...arguments),this.messages=u({blocking:!0}),this.viewModel=x(this),this.error=null,this._showTemplates=!1,this.view=this.viewModel.view,this.hideHeader=!1,this.icon="print",this.hideAdvancedOptions=!1,this.allowedFormats=this.viewModel.allowedFormats,this.allowedLayouts=this.viewModel.allowedLayouts,this.autoPopulateAuthor=!1,this.exportedLinks=this.viewModel.exportedLinks,this.extraParameters=this.viewModel.extraParameters,this.headingLevel=3,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1,this.excludeOrganizationTemplates=!1,this.outSpatialReference=this.viewModel.outSpatialReference,this.portal=this.viewModel.portal,this.showPrintAreaEnabled=this.viewModel.showPrintAreaEnabled,this.printServiceUrl=this.viewModel.printServiceUrl,this.templateCustomTextElements=this.viewModel.templateCustomTextElements,this.templateOptions=this.viewModel.templateOptions,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisComplete=l(()=>this.viewModel,"complete"),this.arcgisPropertyChange=w()("state"),this.arcgisReady=a(),this.arcgisSubmit=l(()=>this.viewModel,"submit"),this.arcgisBrowseTemplatesChange=a(),this.arcgisSaveAs=a()}static{this.properties={error:16,_showTemplates:16,view:0,hideHeader:5,referenceElement:1,icon:1,hideAdvancedOptions:5,allowedFormats:[1,{type:String,converter:f}],allowedLayouts:[1,{type:String,converter:f}],autoPopulateAuthor:5,allowedFormatsForSaving:1,exportedLinks:0,extraParameters:0,headingLevel:9,hideFeatureAttributes:5,hideIncludeTables:5,excludeDefaultTemplates:5,excludeOrganizationTemplates:5,outSpatialReference:0,portal:0,showPrintAreaEnabled:5,printServiceUrl:1,showSaveAs:5,templateCustomTextElements:0,templateOptions:0,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=b}get excludeDefaultTemplates(){return!this.viewModel.includeDefaultTemplates}set excludeDefaultTemplates(e){this.viewModel.includeDefaultTemplates=!e}addPortalTemplate(e){return this.viewModel.addPortalTemplate(e)}async destroy(){await this.manager.destroy(),this.viewModel.destroy()}loaded(){this.manager.onLifecycle(()=>[n(()=>this.viewModel.error,o=>this.error=o),n(()=>this.viewModel.state,o=>{o==="ready"&&this.arcgisReady.emit()}),this.viewModel.browseTemplates.on("change",o=>{this.arcgisBrowseTemplatesChange.emit(o)}),n(()=>[this.printServiceUrl,this.portal],()=>{this.viewModel.load()},{initial:!0})]);let{height:e,width:t}=this.viewModel.templateOptions;this.viewModel.templateOptions.width=t||800,this.viewModel.templateOptions.height=e||1100}_showTemplateSelector(){this._showTemplates=!0}_hideTemplateSelector(){this._showTemplates=!1}render(){let e={"panel-items-centered":this.viewModel.state==="initializing"};return i`<div class=${g(m("root",s.widget,s.panel,e))}>${this._renderPanel()}</div>`}_renderPanel(){return this.viewModel.state==="disabled"||this.viewModel.state==="initializing"?i`<calcite-loader .label=${this.messages.loading} scale=m></calcite-loader>`:i`<calcite-flow><calcite-flow-item .selected=${!this._showTemplates}><div class="container">${this._renderPanelHeader()}${this._renderPanelContent()}</div></calcite-flow-item><calcite-flow-item .heading=${this.messages.chooseTemplate} .selected=${this._showTemplates} @calciteFlowItemBack=${e=>{e.preventDefault(),this._showTemplates=!1}}><arcgis-print-template-selector .messages=${this.messages} .viewModel=${this.viewModel} .hideTemplateSelector=${this._hideTemplateSelector.bind(this)} .excludeOrganizationTemplates=${this.excludeOrganizationTemplates}><slot name=browse-template-button></slot></arcgis-print-template-selector></calcite-flow-item></calcite-flow>`}_renderPanelHeader(){return this.hideHeader?null:i`<header class="header-title">${this.messages.export}</header>`}_renderPanelContent(){let e=this.viewModel.view,t=e?.type!=="2d";return this.error||t?i`<div class="panel-error">${e?t?this.messages.sceneViewError:this.messages.serviceError:this.messages.noViewError}</div>`:i`<arcgis-print-main-panel .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this._showTemplateSelector.bind(this)} .hideAdvancedOptions=${this.hideAdvancedOptions} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .autoPopulateAuthor=${this.autoPopulateAuthor} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-main-panel>`}};p("arcgis-print",d);return d},"widgets/Print/PrintViewModel","core/reactiveUtils",b,d,e,f,j)
2
+ import j from"./TQMJ6PQF.js";import{a as u}from"./PB3LAPN6.js";import{a as s}from"./JD74LG7K.js";import f from"./ZPMJES3R.js";import e from"./4JLRRQSP.js";import d from"./DGHSJCA2.js";import{h as w}from"./PGQ4RVAW.js";import"./25LV3KCP.js";import b from"./TBBD3K7K.js";import"./QUZTFUWM.js";import{b as m}from"./FAOYV6UX.js";import"./XURWCCLX.js";import{O as h,Q as g,V as p,a as c,b as i,w as a}from"./MNS5VY6U.js";import"./H6RQVSYM.js";export default $arcgis.t(([_,{watch:n},,,,l,v])=>{var b=c`.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{--panel-min-height--large: 240px;display:flex;flex-direction:column;flex-grow:1}.root{display:flex;position:relative;flex-grow:1;min-height:var(--panel-min-height--large)}.root section[aria-hidden=true]{display:none}.panel-items-centered{display:flex;align-items:center}.container{display:flex;flex-direction:column;flex-grow:1}.header-title{margin:0 auto 0 0;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}.panel-error{color:var(--calcite-color-status-danger)}`,x=v(_),f=r=>{if(!r)return"all";let e=typeof r=="string"?r.split(",").map(t=>t.trim()).filter(t=>t):[r];return!e.length||e.includes("all")?"all":e},d=class extends h{constructor(){super(...arguments),this.messages=u({blocking:!0}),this.viewModel=x(this),this.error=null,this._showTemplates=!1,this.view=this.viewModel.view,this.hideHeader=!1,this.icon="print",this.hideAdvancedOptions=!1,this.allowedFormats=this.viewModel.allowedFormats,this.allowedLayouts=this.viewModel.allowedLayouts,this.autoPopulateAuthor=!1,this.exportedLinks=this.viewModel.exportedLinks,this.extraParameters=this.viewModel.extraParameters,this.headingLevel=3,this.hideFeatureAttributes=!1,this.hideIncludeTables=!1,this.excludeOrganizationTemplates=!1,this.outSpatialReference=this.viewModel.outSpatialReference,this.portal=this.viewModel.portal,this.showPrintAreaEnabled=this.viewModel.showPrintAreaEnabled,this.printServiceUrl=this.viewModel.printServiceUrl,this.templateCustomTextElements=this.viewModel.templateCustomTextElements,this.templateOptions=this.viewModel.templateOptions,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisComplete=l(()=>this.viewModel,"complete"),this.arcgisPropertyChange=w()("state"),this.arcgisReady=a(),this.arcgisSubmit=l(()=>this.viewModel,"submit"),this.arcgisBrowseTemplatesChange=a(),this.arcgisSaveAs=a()}static{this.properties={error:16,_showTemplates:16,view:0,hideHeader:5,referenceElement:1,icon:1,hideAdvancedOptions:5,allowedFormats:[1,{type:String,converter:f}],allowedLayouts:[1,{type:String,converter:f}],autoPopulateAuthor:5,allowedFormatsForSaving:1,exportedLinks:0,extraParameters:0,headingLevel:9,hideFeatureAttributes:5,hideIncludeTables:5,excludeDefaultTemplates:5,excludeOrganizationTemplates:5,outSpatialReference:0,portal:0,showPrintAreaEnabled:5,printServiceUrl:1,showSaveAs:5,templateCustomTextElements:0,templateOptions:0,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=b}get excludeDefaultTemplates(){return!this.viewModel.includeDefaultTemplates}set excludeDefaultTemplates(e){this.viewModel.includeDefaultTemplates=!e}addPortalTemplate(e){return this.viewModel.addPortalTemplate(e)}async destroy(){await this.manager.destroy(),this.viewModel.destroy()}loaded(){this.manager.onLifecycle(()=>[n(()=>this.viewModel.error,o=>this.error=o),n(()=>this.viewModel.state,o=>{o==="ready"&&this.arcgisReady.emit()}),this.viewModel.browseTemplates.on("change",o=>{this.arcgisBrowseTemplatesChange.emit(o)}),n(()=>[this.printServiceUrl,this.portal],()=>{this.viewModel.load()},{initial:!0})]);let{height:e,width:t}=this.viewModel.templateOptions;this.viewModel.templateOptions.width=t||800,this.viewModel.templateOptions.height=e||1100}_showTemplateSelector(){this._showTemplates=!0}_hideTemplateSelector(){this._showTemplates=!1}render(){let e={"panel-items-centered":this.viewModel.state==="initializing"};return i`<div class=${g(m("root",s.widget,s.panel,e))}>${this._renderPanel()}</div>`}_renderPanel(){return this.viewModel.state==="disabled"||this.viewModel.state==="initializing"?i`<calcite-loader .label=${this.messages.loading} scale=m></calcite-loader>`:i`<calcite-flow><calcite-flow-item .selected=${!this._showTemplates}><div class="container">${this._renderPanelHeader()}${this._renderPanelContent()}</div></calcite-flow-item><calcite-flow-item .heading=${this.messages.chooseTemplate} .selected=${this._showTemplates} @calciteFlowItemBack=${e=>{e.preventDefault(),this._showTemplates=!1}}><arcgis-print-template-selector .messages=${this.messages} .viewModel=${this.viewModel} .hideTemplateSelector=${this._hideTemplateSelector.bind(this)} .excludeOrganizationTemplates=${this.excludeOrganizationTemplates}><slot name=browse-template-button></slot></arcgis-print-template-selector></calcite-flow-item></calcite-flow>`}_renderPanelHeader(){return this.hideHeader?null:i`<header class="header-title">${this.messages.export}</header>`}_renderPanelContent(){let e=this.viewModel.view,t=e?.type!=="2d";return this.error||t?i`<div class="panel-error">${e?t?this.messages.sceneViewError:this.messages.serviceError:this.messages.noViewError}</div>`:i`<arcgis-print-main-panel .messages=${this.messages} .viewModel=${this.viewModel} .showTemplateSelector=${this._showTemplateSelector.bind(this)} .hideAdvancedOptions=${this.hideAdvancedOptions} .hideFeatureAttributes=${this.hideFeatureAttributes} .hideIncludeTables=${this.hideIncludeTables} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .autoPopulateAuthor=${this.autoPopulateAuthor} .showSaveAs=${this.showSaveAs} .arcgisSaveAs=${this.arcgisSaveAs}></arcgis-print-main-panel>`}};p("arcgis-print",d);return d},"widgets/Print/PrintViewModel","core/reactiveUtils",b,d,e,f,j)