@esri/solutions-components 1.2.0-next.35 → 1.2.0-next.37

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 (489) hide show
  1. package/dist/cdn/{B5DG7MHH.js → 24GFQBBP.js} +2 -2
  2. package/dist/cdn/{H7SGDNC5.js → 2FBFQ2FF.js} +2 -2
  3. package/dist/cdn/{NJQBU7CR.js → 2I3XBAD6.js} +2 -2
  4. package/dist/cdn/{YHUNJ3ML.js → 2JY3LFAY.js} +2 -2
  5. package/dist/cdn/{UA5UBWLP.js → 2LH54QCN.js} +2 -2
  6. package/dist/cdn/{F62APU22.js → 2PMRXHBC.js} +2 -2
  7. package/dist/cdn/{UGWNXUFJ.js → 32SQEJ32.js} +2 -2
  8. package/dist/cdn/{W64KXNUQ.js → 36TCBSHS.js} +2 -2
  9. package/dist/cdn/{PRGZNWJV.js → 36ZEDQEQ.js} +2 -2
  10. package/dist/cdn/{QGM6TJLI.js → 3BQPEIW4.js} +2 -2
  11. package/dist/cdn/{LHJUIZBT.js → 3E4YA4DX.js} +2 -2
  12. package/dist/cdn/{XZ5T5VBY.js → 3EZ6ZHBT.js} +2 -2
  13. package/dist/cdn/{FJ5COB3V.js → 3FCPDGAP.js} +2 -2
  14. package/dist/cdn/{NOZ2AV5D.js → 3MLQ5VLG.js} +2 -2
  15. package/dist/cdn/{GPS7M3MZ.js → 3NKNRU2S.js} +2 -2
  16. package/dist/cdn/{J3V6JALQ.js → 3PWYLWF3.js} +2 -2
  17. package/dist/cdn/{DVEWQYBN.js → 3VAHJ6OS.js} +1 -1
  18. package/dist/cdn/{C27WWRWN.js → 3YTMGW67.js} +2 -2
  19. package/dist/cdn/{BVLBXGUG.js → 423EZ5EV.js} +2 -2
  20. package/dist/cdn/{WYD7SFWY.js → 424EU24N.js} +1 -1
  21. package/dist/cdn/452XRCXF.js +4 -0
  22. package/dist/cdn/{452H4YLI.js → 46VNDLON.js} +2 -2
  23. package/dist/cdn/{PDVTMMC5.js → 4A5SM2SV.js} +3 -3
  24. package/dist/cdn/{YMK5DBGR.js → 4BQMZQ72.js} +2 -2
  25. package/dist/cdn/{QAMHZBOL.js → 4KS7QQ4H.js} +2 -2
  26. package/dist/cdn/{E2OWCPHL.js → 4WQFSTBO.js} +2 -2
  27. package/dist/cdn/{OVCHPDJI.js → 4YBAWYKJ.js} +2 -2
  28. package/dist/cdn/4YVOMO6V.js +4 -0
  29. package/dist/cdn/{II2EKN44.js → 4ZPW2OXL.js} +2 -2
  30. package/dist/cdn/{BKDFIGQN.js → 4ZQSXXK2.js} +2 -2
  31. package/dist/cdn/{KC3COFFL.js → 53GOGPNG.js} +2 -2
  32. package/dist/cdn/{RLADC6ZH.js → 5BNQCACV.js} +1 -1
  33. package/dist/cdn/5DX6WVAZ.js +4 -0
  34. package/dist/cdn/{U5R65CBD.js → 5IFLAE53.js} +2 -2
  35. package/dist/cdn/{GOQMLFFQ.js → 5M2QMRJL.js} +2 -2
  36. package/dist/cdn/{GHWKVBNL.js → 5NEG6V7C.js} +2 -2
  37. package/dist/cdn/{KT322YWI.js → 5S2WCZEA.js} +2 -2
  38. package/dist/cdn/{KUU3H6DM.js → 5SD4GLV7.js} +1 -1
  39. package/dist/cdn/{TOVO7FLD.js → 5TVCMZSS.js} +1 -1
  40. package/dist/cdn/{EJP6XSNT.js → 5UGMN35T.js} +2 -2
  41. package/dist/cdn/{W43Q7E2D.js → 5XA5H7WP.js} +2 -2
  42. package/dist/cdn/{LDTZWJSI.js → 5Y6D7GAD.js} +2 -2
  43. package/dist/cdn/{2LENHCY2.js → 63Y6PNJA.js} +2 -2
  44. package/dist/cdn/{DOOGD72N.js → 6CE4YRSO.js} +2 -2
  45. package/dist/cdn/{QBUS2XC4.js → 6DQJ62GT.js} +2 -2
  46. package/dist/cdn/{DLCSMGPX.js → 6ECJVVSW.js} +2 -2
  47. package/dist/cdn/{2ER7UUJH.js → 6FXZTARY.js} +2 -2
  48. package/dist/cdn/{AKMP3RHE.js → 6M2YQHKL.js} +2 -2
  49. package/dist/cdn/{JXQHDGFE.js → 6O6N23MM.js} +2 -2
  50. package/dist/cdn/{4JWEF3A7.js → 6SXHSBLJ.js} +2 -2
  51. package/dist/cdn/{XVSV3RV7.js → 6XD3ZRKO.js} +2 -2
  52. package/dist/cdn/{TFF3C5WO.js → 6YYMH5PX.js} +2 -2
  53. package/dist/cdn/{U77QOKF7.js → 72MBRWK6.js} +2 -2
  54. package/dist/cdn/72RLVVSX.js +4 -0
  55. package/dist/cdn/74LUVNL4.js +4 -0
  56. package/dist/cdn/{NSAM3Z2I.js → 7ESB4BIX.js} +2 -2
  57. package/dist/cdn/{7W6EJX6E.js → 7JSNAR22.js} +2 -2
  58. package/dist/cdn/{33Q4FILP.js → 7KEV5EDQ.js} +2 -2
  59. package/dist/cdn/{EWRCYITS.js → 7P42WTQV.js} +1 -1
  60. package/dist/cdn/{DFEAJG43.js → 7ZDOFCTW.js} +2 -2
  61. package/dist/cdn/{SDSPTQ4P.js → A3NNJFSP.js} +1 -1
  62. package/dist/cdn/{AZJVG23H.js → A4PYZCF4.js} +2 -2
  63. package/dist/cdn/{MATQV33Q.js → AGX3RZG4.js} +2 -2
  64. package/dist/cdn/{P5MC5ZOS.js → ANAB56OE.js} +1 -1
  65. package/dist/cdn/{FDERPD3Z.js → AP6ZDTQD.js} +2 -2
  66. package/dist/cdn/{EYPYJLO3.js → APVSI2SZ.js} +2 -2
  67. package/dist/cdn/{UPSPO6Q6.js → AQKOJPHG.js} +2 -2
  68. package/dist/cdn/{F2E4GD3J.js → AR5WNEZQ.js} +2 -2
  69. package/dist/cdn/{CAFWZN3Q.js → B2NJWJEX.js} +2 -2
  70. package/dist/cdn/{RPOWI7AN.js → B4G4HG7G.js} +2 -2
  71. package/dist/cdn/{SOSUPZ6Z.js → BAXA4KPA.js} +2 -2
  72. package/dist/cdn/{53RDOENQ.js → BB7HSIAW.js} +2 -2
  73. package/dist/cdn/{MNYIDOED.js → BGDVCFC5.js} +2 -2
  74. package/dist/cdn/BHJ3FK5R.js +4 -0
  75. package/dist/cdn/{UPK4BCIL.js → BMP2GO3P.js} +2 -2
  76. package/dist/cdn/{BEG2TOQV.js → BN4PITTB.js} +2 -2
  77. package/dist/cdn/{RZQ5TYUK.js → BYSR45CB.js} +2 -2
  78. package/dist/cdn/{HQVBD5JD.js → BZIZPNUK.js} +2 -2
  79. package/dist/cdn/{G3BITZ2H.js → C3BQFXQF.js} +2 -2
  80. package/dist/cdn/{23FGLOT6.js → C6NBFMUN.js} +2 -2
  81. package/dist/cdn/{F57FN2B7.js → CDOBISBF.js} +3 -3
  82. package/dist/cdn/{C3VVC4C4.js → CDOFMMN2.js} +2 -2
  83. package/dist/cdn/{CZG4YI7M.js → CIYZ2AN4.js} +2 -2
  84. package/dist/cdn/{5QCLOSQV.js → CONGS255.js} +2 -2
  85. package/dist/cdn/{NQ6LZCAO.js → CQ6F4CMD.js} +2 -2
  86. package/dist/cdn/{KWEQV7YG.js → CQYVMXJQ.js} +2 -2
  87. package/dist/cdn/{VJ2NSIZG.js → CYFMM5FD.js} +2 -2
  88. package/dist/cdn/{YJPOFS37.js → CYYJ6NL6.js} +2 -2
  89. package/dist/cdn/{Y2YDWSQW.js → DLFTUS6N.js} +2 -2
  90. package/dist/cdn/DN2WILUJ.js +4 -0
  91. package/dist/cdn/{UXYHGXW5.js → DPIPFQHC.js} +2 -2
  92. package/dist/cdn/{HBU2D3OK.js → DPLAIA57.js} +2 -2
  93. package/dist/cdn/{6W4SZKHC.js → DTQRFAUA.js} +1 -1
  94. package/dist/cdn/{FIZY6G5H.js → DWTENLEP.js} +2 -2
  95. package/dist/cdn/{726Z6HOK.js → DXZTJZGT.js} +2 -2
  96. package/dist/cdn/{PLP4AUXD.js → E2A66IT7.js} +2 -2
  97. package/dist/cdn/{MRIG2YO3.js → E4XCFS73.js} +2 -2
  98. package/dist/cdn/{PSFFLNY5.js → E4ZK7PXW.js} +2 -2
  99. package/dist/cdn/{5VBN7ISR.js → E5LNNUQ4.js} +2 -2
  100. package/dist/cdn/EGU4CQRY.js +18 -0
  101. package/dist/cdn/{EEIXNMVO.js → EH6ZHRL2.js} +2 -2
  102. package/dist/cdn/{BKJHOEZU.js → EKSP7YLO.js} +2 -2
  103. package/dist/cdn/{PGHMWU3D.js → EQCPPTQ6.js} +2 -2
  104. package/dist/cdn/{EECYCFWL.js → ER2FWAYR.js} +2 -2
  105. package/dist/cdn/{YLSCZUU6.js → EUKVXDNG.js} +2 -2
  106. package/dist/cdn/{F7MGFTCQ.js → EV5XUWL7.js} +2 -2
  107. package/dist/cdn/{3N25OU3J.js → EVQFZAOY.js} +1 -1
  108. package/dist/cdn/{FCD4N3ZW.js → F4QK3JD4.js} +2 -2
  109. package/dist/cdn/F5NZOEPR.js +4 -0
  110. package/dist/cdn/{OUED4MLC.js → FIUWMVQQ.js} +2 -2
  111. package/dist/cdn/{H5MEOZDB.js → FIYQ7AVM.js} +1 -1
  112. package/dist/cdn/{IHF42XGT.js → FIZ4MXAR.js} +2 -2
  113. package/dist/cdn/{VISD52LT.js → FJ7MBYCT.js} +1 -1
  114. package/dist/cdn/{YPHUWWV7.js → FJTFQRL5.js} +2 -2
  115. package/dist/cdn/{PUXPSAVO.js → FREL7BD5.js} +2 -2
  116. package/dist/cdn/{MNMVQPBS.js → FSPSNGCT.js} +1 -1
  117. package/dist/cdn/{5IFWWA3H.js → FUZ33ABZ.js} +2 -2
  118. package/dist/cdn/{JCTPFMKF.js → FVDU6QYT.js} +2 -2
  119. package/dist/cdn/{U3LIFD6P.js → FW2LIJOW.js} +2 -2
  120. package/dist/cdn/{Q4O2Y3MB.js → G4KYQBYG.js} +2 -2
  121. package/dist/cdn/{F4ANZSV2.js → G57RFHLM.js} +1 -1
  122. package/dist/cdn/{JFZ6S5ZR.js → G7YTZWI3.js} +2 -2
  123. package/dist/cdn/{O24P4ZWY.js → GBSAWLN7.js} +2 -2
  124. package/dist/cdn/{3FJ2NMMC.js → GEQYI5LQ.js} +1 -1
  125. package/dist/cdn/{K7UPKLEM.js → GEZ43YJ3.js} +2 -2
  126. package/dist/cdn/{WXEDRX6B.js → GHHGZTF2.js} +1 -1
  127. package/dist/cdn/{5SSW7Y3K.js → GLMGQOCD.js} +2 -2
  128. package/dist/cdn/{GF5XRNMK.js → GNCDKWP7.js} +2 -2
  129. package/dist/cdn/{4ETO6FSU.js → GOHR2WBV.js} +2 -2
  130. package/dist/cdn/{Q7SWNS7T.js → GTQQFSR7.js} +2 -2
  131. package/dist/cdn/{47THXKD7.js → GUONN762.js} +2 -2
  132. package/dist/cdn/{PU2JEWLV.js → GURJXEVE.js} +2 -2
  133. package/dist/cdn/{EO22SHSN.js → GVUIEVOK.js} +2 -2
  134. package/dist/cdn/{NR2RWD3G.js → GW6YU6ST.js} +2 -2
  135. package/dist/cdn/{GP3PPM7C.js → GXRYK5M3.js} +2 -2
  136. package/dist/cdn/{EAPEHWA6.js → H5HNEV3N.js} +2 -2
  137. package/dist/cdn/{7LPAPZPU.js → HBVYVKPT.js} +2 -2
  138. package/dist/cdn/{54D2Q7JB.js → HD26QQR3.js} +20 -20
  139. package/dist/cdn/{TTYH46CZ.js → HI4EEQYA.js} +2 -2
  140. package/dist/cdn/{CFTWPEYJ.js → HISYT2BM.js} +2 -2
  141. package/dist/cdn/HRO2O5YA.js +4 -0
  142. package/dist/cdn/{I2OMO5AF.js → HSNKQLTD.js} +2 -2
  143. package/dist/cdn/{X36X6MUL.js → HYVQWVII.js} +1 -1
  144. package/dist/cdn/{ZHUJKDJZ.js → I2NF5AQL.js} +2 -2
  145. package/dist/cdn/{SBRY65ME.js → I4MPIKEW.js} +2 -2
  146. package/dist/cdn/{YUDVYFYK.js → I66BIXLD.js} +2 -2
  147. package/dist/cdn/{CJ55BFN4.js → I7FYKKZQ.js} +2 -2
  148. package/dist/cdn/{C2ZOVOPY.js → IA4DQPM2.js} +2 -2
  149. package/dist/cdn/{UJGZQYSB.js → IA6P4LLI.js} +2 -2
  150. package/dist/cdn/{UEWK7WEY.js → IBJ2NRSR.js} +2 -2
  151. package/dist/cdn/{XECAMJCZ.js → ICNTIMFT.js} +2 -2
  152. package/dist/cdn/{R5426IXX.js → IG7YJRSC.js} +2 -2
  153. package/dist/cdn/{3DIJDENJ.js → IKS56X7L.js} +2 -2
  154. package/dist/cdn/{PHLPHUZR.js → ILFJYMBN.js} +2 -2
  155. package/dist/cdn/{JHORWHA2.js → IOMYEAZ5.js} +2 -2
  156. package/dist/cdn/{UHACBH77.js → ISDRJ7X5.js} +2 -2
  157. package/dist/cdn/{LMD6RFKF.js → IUALFASY.js} +2 -2
  158. package/dist/cdn/{DQA76X3J.js → IXQX4XPD.js} +2 -2
  159. package/dist/cdn/J72BYK5B.js +4 -0
  160. package/dist/cdn/{4I5EVC4E.js → J7Q4KRMI.js} +2 -2
  161. package/dist/cdn/{WKXQ4CDC.js → JAIFS46U.js} +2 -2
  162. package/dist/cdn/JCTZWSLP.js +18 -0
  163. package/dist/cdn/{XQTX6OA2.js → JE475QOP.js} +2 -2
  164. package/dist/cdn/{FGVNYPS4.js → JGUMEH2C.js} +2 -2
  165. package/dist/cdn/{TV2IMW4B.js → JMDQYQ4K.js} +2 -2
  166. package/dist/cdn/{Q2OCZM23.js → JSIXRLNJ.js} +2 -2
  167. package/dist/cdn/{3MZHBNPF.js → JVSFJEUY.js} +2 -2
  168. package/dist/cdn/{BPI6FZ7H.js → JXOMNVZL.js} +2 -2
  169. package/dist/cdn/{HIUFTFCE.js → JZIHZER2.js} +2 -2
  170. package/dist/cdn/{APZG4DQ2.js → K3SBDFS5.js} +2 -2
  171. package/dist/cdn/{SVAPESHQ.js → K4SZKA6R.js} +2 -2
  172. package/dist/cdn/{VQG4I24V.js → K5HBJGDW.js} +2 -2
  173. package/dist/cdn/{3NXTQ2LG.js → K62D3BRE.js} +2 -2
  174. package/dist/cdn/{L3MDCUJN.js → K6NIWIL6.js} +2 -2
  175. package/dist/cdn/{2NT2F4WJ.js → KBWXAZ4H.js} +2 -2
  176. package/dist/cdn/{3YRAWZUZ.js → KGHT2XEI.js} +2 -2
  177. package/dist/cdn/{LL5S26MO.js → KIVPWFPC.js} +2 -2
  178. package/dist/cdn/{GKVHUWB4.js → KJNCDHLD.js} +2 -2
  179. package/dist/cdn/{OCFKULCG.js → KKQN5HZN.js} +2 -2
  180. package/dist/cdn/KMHUVZZI.js +18 -0
  181. package/dist/cdn/{IQSX2PS2.js → KMKNTBIH.js} +2 -2
  182. package/dist/cdn/{S5H7SXZP.js → KPEDGFTA.js} +2 -2
  183. package/dist/cdn/{6WG5PP6R.js → KZMYX67M.js} +2 -2
  184. package/dist/cdn/{GWNEUXVW.js → L5MQY34Z.js} +2 -2
  185. package/dist/cdn/{ZRKJZ3NG.js → L6TIHRIP.js} +2 -2
  186. package/dist/cdn/{PGVJ7TAF.js → LASDKRI4.js} +2 -2
  187. package/dist/cdn/{WLTXVG73.js → LJ43GGEC.js} +2 -2
  188. package/dist/cdn/{AS7FG6KA.js → LKSAOR3Q.js} +2 -2
  189. package/dist/cdn/{KEVGCYOD.js → LM4EBPP6.js} +2 -2
  190. package/dist/cdn/LO44SNEK.js +4 -0
  191. package/dist/cdn/{TSVPTY5X.js → LSSZKYSS.js} +2 -2
  192. package/dist/cdn/{XELDZ5WC.js → LUQ4WLNW.js} +2 -2
  193. package/dist/cdn/{XUAUP5UD.js → LZEOQZID.js} +2 -2
  194. package/dist/cdn/{3JM3B4OX.js → M4FQFEFR.js} +2 -2
  195. package/dist/cdn/{CNIGVYFK.js → M7M2CGEJ.js} +2 -2
  196. package/dist/cdn/{MRKA2VZW.js → M7NFV3CM.js} +2 -2
  197. package/dist/cdn/{KSNTFOGZ.js → MDHPRL5E.js} +1 -1
  198. package/dist/cdn/{IKVHXZ3U.js → MGCF2UNQ.js} +2 -2
  199. package/dist/cdn/MKFL7RJ7.js +4 -0
  200. package/dist/cdn/{CN56TZC4.js → MKGO4FB3.js} +1 -1
  201. package/dist/cdn/MOLY4YNP.js +4 -0
  202. package/dist/cdn/{D73JDJX5.js → MPVYH7ZS.js} +2 -2
  203. package/dist/cdn/{TY3Z22SJ.js → MRGELRV4.js} +3 -3
  204. package/dist/cdn/{OC34KPAE.js → MVF3OTGI.js} +2 -2
  205. package/dist/cdn/{IJMX3WHX.js → N33O2BIB.js} +1 -1
  206. package/dist/cdn/{H3YODQR5.js → N3KRZFHG.js} +2 -2
  207. package/dist/cdn/{JGHG6FT3.js → N6GNJA45.js} +2 -2
  208. package/dist/cdn/{6UZSVHNV.js → NAEBOEYF.js} +1 -1
  209. package/dist/cdn/{VKDCA5UF.js → NAZ5XBGE.js} +2 -2
  210. package/dist/cdn/{ISNPPNRQ.js → NC56FO2U.js} +2 -2
  211. package/dist/cdn/{M5HWGCGL.js → NDP7NBM5.js} +2 -2
  212. package/dist/cdn/{7PAF7CNO.js → NELITFII.js} +2 -2
  213. package/dist/cdn/{IOTPW2AJ.js → NEOMIFQL.js} +1 -1
  214. package/dist/cdn/{SUDJ3QJQ.js → NI4UN53N.js} +2 -2
  215. package/dist/cdn/{HK67EOND.js → NKYMARCE.js} +2 -2
  216. package/dist/cdn/{B3R6WK5M.js → NSPCTDM2.js} +2 -2
  217. package/dist/cdn/{4HYUCEEW.js → NUZ3X3TY.js} +3 -3
  218. package/dist/cdn/{LZKNYSNH.js → NXULBGLI.js} +2 -2
  219. package/dist/cdn/{OZDXDKIE.js → O3JRO5FX.js} +2 -2
  220. package/dist/cdn/{FY4NHLO7.js → OD3D7QYW.js} +2 -2
  221. package/dist/cdn/{IRTZHNJ2.js → OJEB2OUL.js} +3 -3
  222. package/dist/cdn/{PZM2KMF5.js → OKT4Y73O.js} +1 -1
  223. package/dist/cdn/{6EDB6GK3.js → OSXEN5JP.js} +1 -1
  224. package/dist/cdn/{ILXA7GQX.js → P2WGO4LL.js} +2 -2
  225. package/dist/cdn/{SL2KLULR.js → P4LHHV2L.js} +2 -2
  226. package/dist/cdn/{GBVCSYHJ.js → P624LHBW.js} +2 -2
  227. package/dist/cdn/{WDABZAMD.js → PDMV5IT4.js} +2 -2
  228. package/dist/cdn/{U7KZK2EY.js → PFR23FJ6.js} +2 -2
  229. package/dist/cdn/{XG3IGQNL.js → PHCA5N7C.js} +2 -2
  230. package/dist/cdn/{PF3SMK6J.js → PJ6KNZ6S.js} +2 -2
  231. package/dist/cdn/{OTD7G2LZ.js → PJLPIBTV.js} +2 -2
  232. package/dist/cdn/{RGWPFZBE.js → PL2C3G4A.js} +2 -2
  233. package/dist/cdn/{RJTIJXKK.js → PLFFKHEM.js} +2 -2
  234. package/dist/cdn/{46X2JXUZ.js → PM2UKFMR.js} +1 -1
  235. package/dist/cdn/{VOGT362X.js → PRRKNEDA.js} +2 -2
  236. package/dist/cdn/{UY3VZJPX.js → PTGWJCD4.js} +1 -1
  237. package/dist/cdn/{ZG5QDNEY.js → PUW47NDX.js} +2 -2
  238. package/dist/cdn/{2M6JD42W.js → PVA2IKH3.js} +2 -2
  239. package/dist/cdn/{4XK3CYJA.js → PWFBJW3E.js} +2 -2
  240. package/dist/cdn/{OQN43J5V.js → Q3PHBE3I.js} +2 -2
  241. package/dist/cdn/{KNXO4SHH.js → QBO4NBIH.js} +2 -2
  242. package/dist/cdn/{YJ7ARJVK.js → QDZFT6XX.js} +2 -2
  243. package/dist/cdn/{KPBDPVOH.js → QGEWNXUV.js} +2 -2
  244. package/dist/cdn/{5V5ZHMSG.js → QJSSZFXP.js} +2 -2
  245. package/dist/cdn/{SCD4O3HR.js → QNWIK3CL.js} +2 -2
  246. package/dist/cdn/{ZIAMK572.js → QOYBKS3B.js} +2 -2
  247. package/dist/cdn/{7R3HFPO5.js → QWXW2AN3.js} +2 -2
  248. package/dist/cdn/{WASE4EMU.js → QX3WCFMI.js} +2 -2
  249. package/dist/cdn/{OC6XS4V3.js → R5UDEZYK.js} +2 -2
  250. package/dist/cdn/{6EPLFGYN.js → R7KYO5ZG.js} +2 -2
  251. package/dist/cdn/{GIN3MYSZ.js → RBRNL7SB.js} +2 -2
  252. package/dist/cdn/{EBGWAP5Z.js → RCCXKNQ4.js} +2 -2
  253. package/dist/cdn/{XU7REEAW.js → REVZPMUQ.js} +2 -2
  254. package/dist/cdn/{7A2PBJ4H.js → RGRJX7VL.js} +2 -2
  255. package/dist/cdn/{YWFST23Y.js → RIPIPE2H.js} +2 -2
  256. package/dist/cdn/{YADRL4DR.js → RKQ7SMUL.js} +2 -2
  257. package/dist/cdn/{JH6DHGLR.js → RMEHXLBL.js} +2 -2
  258. package/dist/cdn/{RW7ZM26C.js → RTVUTDYU.js} +2 -2
  259. package/dist/cdn/{AAXE4NNV.js → SDCYJLL6.js} +2 -2
  260. package/dist/cdn/{LBWCS2F2.js → SGIH2ISG.js} +2 -2
  261. package/dist/cdn/{CJDJS6PW.js → SI5WT33D.js} +2 -2
  262. package/dist/cdn/{2HPBUJHT.js → SIXQTLOX.js} +2 -2
  263. package/dist/cdn/SJYRSHGU.js +4 -0
  264. package/dist/cdn/{NARMCTDX.js → SLIJNZF2.js} +2 -2
  265. package/dist/cdn/SNCHHDKU.js +4 -0
  266. package/dist/cdn/{LBVSC6V5.js → SOHBYYBW.js} +1 -1
  267. package/dist/cdn/{E3SSTVN6.js → SSPNUWJG.js} +2 -2
  268. package/dist/cdn/{QRMHDSPG.js → STRJM3V4.js} +2 -2
  269. package/dist/cdn/{JLPE7SCU.js → SUNKHACZ.js} +2 -2
  270. package/dist/cdn/SW2P7VRT.js +4 -0
  271. package/dist/cdn/{47BDB4P2.js → T5C25ZMO.js} +2 -2
  272. package/dist/cdn/{UJWRBULT.js → T5JH5TJ3.js} +2 -2
  273. package/dist/cdn/{5WJ6ZL2F.js → T7DEXXTT.js} +2 -2
  274. package/dist/cdn/{JQKSXJYV.js → TA2RACYZ.js} +2 -2
  275. package/dist/cdn/{66IIONNC.js → TBUT4K52.js} +2 -2
  276. package/dist/cdn/{IWI73FFP.js → TDLHGHAT.js} +2 -2
  277. package/dist/cdn/{MPODIKYY.js → TENPACT4.js} +1 -1
  278. package/dist/cdn/{HFRR75VA.js → THCQ6NVA.js} +2 -2
  279. package/dist/cdn/{XIS3BUIS.js → TKLY3JHO.js} +2 -2
  280. package/dist/cdn/{RYI242BN.js → TKTQN74R.js} +2 -2
  281. package/dist/cdn/{YJQC45UC.js → TPBFTLWD.js} +2 -2
  282. package/dist/cdn/{GOLYOFYE.js → TPKKVCOQ.js} +2 -2
  283. package/dist/cdn/{B4CMZXG3.js → TPYSHDIM.js} +2 -2
  284. package/dist/cdn/{SMCQMEMR.js → TSADEK2J.js} +2 -2
  285. package/dist/cdn/{D4GTHJLZ.js → TVUJAFGV.js} +2 -2
  286. package/dist/cdn/{MKMGVPCZ.js → TWK424K2.js} +2 -2
  287. package/dist/cdn/{MV6XNLAM.js → UECAUOPR.js} +2 -2
  288. package/dist/cdn/UHIV6FPP.js +4 -0
  289. package/dist/cdn/{XY7KPZMX.js → UHNQFO36.js} +2 -2
  290. package/dist/cdn/{ONDXGQGY.js → UJ2AWWAN.js} +2 -2
  291. package/dist/cdn/{WKMFPSQW.js → UOQ3FCNP.js} +2 -2
  292. package/dist/cdn/{KRUY7SP2.js → UQ2IVIDC.js} +2 -2
  293. package/dist/cdn/{YPX4SI53.js → URNR4MX5.js} +1 -1
  294. package/dist/cdn/{2SG2PXGL.js → UVQ562IF.js} +2 -2
  295. package/dist/cdn/{USIRKXKZ.js → UXZ6E3YI.js} +1 -1
  296. package/dist/cdn/{Y7K6LQIN.js → V3NAW6GR.js} +2 -2
  297. package/dist/cdn/{ASXBKBK2.js → V4RJF5IE.js} +2 -2
  298. package/dist/cdn/{Y6CYPHR2.js → VEGWRELS.js} +2 -2
  299. package/dist/cdn/{WQRHTLJO.js → VLJFRLND.js} +2 -2
  300. package/dist/cdn/{QTMY6775.js → VMG4O43V.js} +2 -2
  301. package/dist/cdn/{M5WBP3MF.js → VTHVAWU2.js} +2 -2
  302. package/dist/cdn/{GT2JLUV4.js → WI2CLU5D.js} +2 -2
  303. package/dist/cdn/{NZ2UFQWL.js → WIB5D523.js} +2 -2
  304. package/dist/cdn/WIKGMFQB.js +4 -0
  305. package/dist/cdn/{UJ6PB446.js → WMTY2QON.js} +4 -4
  306. package/dist/cdn/{MQVB3EYO.js → WOIOCP7E.js} +2 -2
  307. package/dist/cdn/{BKCHP3B5.js → WPI5SW6Q.js} +2 -2
  308. package/dist/cdn/{O5EUNI6K.js → WQS2ODC4.js} +1 -1
  309. package/dist/cdn/{LWS5H7PA.js → WSG3X4W7.js} +2 -2
  310. package/dist/cdn/{E4DP6L26.js → WSPGBA5V.js} +2 -2
  311. package/dist/cdn/{QW6SMLEJ.js → WVD743FV.js} +1 -1
  312. package/dist/cdn/{K75CGTHV.js → WWUEVP3G.js} +2 -2
  313. package/dist/cdn/WYGC7ZWZ.js +4 -0
  314. package/dist/cdn/{U7254QFF.js → WZDGYMAK.js} +2 -2
  315. package/dist/cdn/{3L7BNK46.js → X4PRZYID.js} +2 -2
  316. package/dist/cdn/{FPO2DWSK.js → XAEGXLNW.js} +2 -2
  317. package/dist/cdn/{OB2XVGF2.js → XAYDYTK3.js} +2 -2
  318. package/dist/cdn/{CLQS3XZJ.js → XDAOOCEG.js} +2 -2
  319. package/dist/cdn/{QZ7Q5VPY.js → XGIL5KIH.js} +1 -1
  320. package/dist/cdn/{NL3VLVHN.js → XLGAWE5C.js} +2 -2
  321. package/dist/cdn/{DYGURLI3.js → XMVLPCMO.js} +2 -2
  322. package/dist/cdn/{LPOXKLZD.js → XNZSJ7ZH.js} +2 -2
  323. package/dist/cdn/{VE5735VO.js → XOBJ2UJL.js} +2 -2
  324. package/dist/cdn/{I762EBNV.js → XPW2JHBD.js} +2 -2
  325. package/dist/cdn/{RXNWGOXC.js → XQJZEMYH.js} +2 -2
  326. package/dist/cdn/{HQYGQQAN.js → XQQMJQSG.js} +2 -2
  327. package/dist/cdn/{QAVV5U2X.js → XSKJGWBR.js} +2 -2
  328. package/dist/cdn/{P6MMMMO7.js → XT472227.js} +2 -2
  329. package/dist/cdn/{BCESZOJS.js → XTBSIMMN.js} +2 -2
  330. package/dist/cdn/{OYAG7QQN.js → XYSG7JPV.js} +1 -1
  331. package/dist/cdn/{YFLTGUED.js → YA4XILWS.js} +2 -2
  332. package/dist/cdn/{XE7CWWZX.js → YAGATS6J.js} +2 -2
  333. package/dist/cdn/{66NEFBOE.js → YAX3KOMD.js} +1 -1
  334. package/dist/cdn/{GG2UJSZY.js → YF5KQ6I7.js} +2 -2
  335. package/dist/cdn/{CJ2LQ2KZ.js → YGWIZXL6.js} +2 -2
  336. package/dist/cdn/{BKZWROLB.js → YIAF3YJA.js} +2 -2
  337. package/dist/cdn/{QC6TPXOS.js → YJRF44L6.js} +2 -2
  338. package/dist/cdn/{RAGS7E4J.js → YKF6Z6IG.js} +2 -2
  339. package/dist/cdn/YNHPEGMO.js +4 -0
  340. package/dist/cdn/{ZE3S7KFP.js → YTAA5GHS.js} +1 -1
  341. package/dist/cdn/{TSYM7JGM.js → YTZDATT6.js} +2 -2
  342. package/dist/cdn/{OW44CMT4.js → YY2GZYFM.js} +2 -2
  343. package/dist/cdn/YZ55MUBG.js +4 -0
  344. package/dist/cdn/{JIP3YG24.js → YZR4IOOG.js} +2 -2
  345. package/dist/cdn/{H6O2K3QN.js → Z43YJGZV.js} +2 -2
  346. package/dist/cdn/{3YO3ZWJZ.js → Z6SHSJSK.js} +2 -2
  347. package/dist/cdn/{UI44CDNQ.js → ZE2JTU52.js} +2 -2
  348. package/dist/cdn/{PHOLF6NG.js → ZHNZL6MM.js} +2 -2
  349. package/dist/cdn/{4JD2T6JR.js → ZPJJ3H5I.js} +1 -1
  350. package/dist/cdn/{Z2YE22PL.js → ZRIYWZA2.js} +2 -2
  351. package/dist/cdn/{M3MNKMIM.js → ZVAI3FZ3.js} +1 -1
  352. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  353. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  354. package/dist/cdn/index.js +2 -2
  355. package/dist/chunks/Auth.js +18 -15
  356. package/dist/chunks/appConfig.js +1 -1
  357. package/dist/chunks/cardFetchingUtils.js +307 -26
  358. package/dist/chunks/cardsHelpers.js +1 -1
  359. package/dist/chunks/common.js +3 -3
  360. package/dist/chunks/deployAppContexts.js +1 -1
  361. package/dist/chunks/downloadUtils.js +1 -1
  362. package/dist/chunks/getItemIcon.js +1 -1
  363. package/dist/chunks/helpers.js +5 -5
  364. package/dist/chunks/interfaces.js +1 -1
  365. package/dist/chunks/mapViewUtils.js +1 -1
  366. package/dist/chunks/pciUtils.js +1 -1
  367. package/dist/chunks/popupUtils.js +1 -1
  368. package/dist/chunks/privilegeUtils.js +1 -1
  369. package/dist/chunks/publicNotificationContext.js +1 -1
  370. package/dist/chunks/queryUtils.js +1 -1
  371. package/dist/chunks/runtime.js +1 -1
  372. package/dist/chunks/solution-deployed-card.js +1 -1
  373. package/dist/chunks/solution-store.js +1 -1
  374. package/dist/chunks/templates.js +1 -1
  375. package/dist/chunks/useT9n.js +1 -1
  376. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +6 -0
  377. package/dist/components/arcgis-solutions-assistant/customElement.js +40 -36
  378. package/dist/components/buffer-tools/customElement.js +1 -1
  379. package/dist/components/card-manager/customElement.js +1 -1
  380. package/dist/components/consent-manager/customElement.js +1 -1
  381. package/dist/components/create-feature/customElement.js +1 -1
  382. package/dist/components/create-related-feature/customElement.js +1 -1
  383. package/dist/components/crowdsource-manager/customElement.js +1 -1
  384. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  385. package/dist/components/deduct-calculator/customElement.js +1 -1
  386. package/dist/components/delete-button/customElement.js +1 -1
  387. package/dist/components/delete-dialog/customElement.js +1 -1
  388. package/dist/components/edit-card/customElement.js +1 -1
  389. package/dist/components/feature-details/customElement.js +1 -1
  390. package/dist/components/feature-list/customElement.js +1 -1
  391. package/dist/components/field-selection/customElement.js +1 -1
  392. package/dist/components/info-card/customElement.js +1 -1
  393. package/dist/components/json-editor/customElement.js +1 -1
  394. package/dist/components/layer-list/customElement.js +1 -1
  395. package/dist/components/layer-table/customElement.js +1 -1
  396. package/dist/components/map-basemap-gallery/customElement.js +1 -1
  397. package/dist/components/map-card/customElement.js +1 -1
  398. package/dist/components/map-draw-tools/customElement.js +1 -1
  399. package/dist/components/map-floor-filter/customElement.js +1 -1
  400. package/dist/components/map-fullscreen/customElement.js +1 -1
  401. package/dist/components/map-layer-picker/customElement.js +1 -1
  402. package/dist/components/map-legend/customElement.js +1 -1
  403. package/dist/components/map-picker/customElement.js +1 -1
  404. package/dist/components/map-search/customElement.js +1 -1
  405. package/dist/components/map-select-tools/customElement.js +1 -1
  406. package/dist/components/map-tools/customElement.js +1 -1
  407. package/dist/components/pci-calculator/customElement.js +1 -1
  408. package/dist/components/pdf-download/customElement.js +1 -1
  409. package/dist/components/public-notification/customElement.js +1 -1
  410. package/dist/components/refine-selection/customElement.js +1 -1
  411. package/dist/components/selection-tool/customElement.js +1 -1
  412. package/dist/components/solution-configuration/customElement.js +1 -1
  413. package/dist/components/solution-configure-titles/customElement.js +37 -36
  414. package/dist/components/solution-contents/customElement.js +1 -1
  415. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  416. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  417. package/dist/components/solution-deployed-card/customElement.js +1 -1
  418. package/dist/components/solution-deployed-card-panel/customElement.js +1 -1
  419. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  420. package/dist/components/solution-details-card/customElement.js +1 -1
  421. package/dist/components/solution-details-panel/customElement.js +14 -18
  422. package/dist/components/solution-item/customElement.js +1 -1
  423. package/dist/components/solution-item-accordion/customElement.js +1 -1
  424. package/dist/components/solution-item-details/customElement.js +1 -1
  425. package/dist/components/solution-item-diagram/customElement.js +1 -1
  426. package/dist/components/solution-item-icon/customElement.js +1 -1
  427. package/dist/components/solution-item-sharing/customElement.js +1 -1
  428. package/dist/components/solution-organization-variables/customElement.js +1 -1
  429. package/dist/components/solution-resource-card/customElement.js +1 -1
  430. package/dist/components/solution-resource-item/customElement.js +1 -1
  431. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  432. package/dist/components/solution-social-share/customElement.js +1 -1
  433. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  434. package/dist/components/solution-template-data/customElement.js +1 -1
  435. package/dist/components/solution-variables/customElement.js +1 -1
  436. package/dist/components/solutions-all-panel/customElement.js +5 -6
  437. package/dist/components/solutions-all-shell/customElement.js +1 -1
  438. package/dist/components/solutions-deploy-app/customElement.d.ts +9 -0
  439. package/dist/components/solutions-deploy-app/customElement.js +36 -28
  440. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  441. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  442. package/dist/components/solutions-deployed-panel/customElement.js +9 -10
  443. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  444. package/dist/components/solutions-filter-panel/customElement.js +2 -2
  445. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  446. package/dist/components/solutions-resources/customElement.js +1 -1
  447. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  448. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  449. package/dist/components/spatial-ref/customElement.js +1 -1
  450. package/dist/components/store-manager/customElement.js +1 -1
  451. package/dist/docs/api.json +122 -2
  452. package/dist/docs/docs.json +85 -3
  453. package/dist/docs/vscode.html-custom-data.json +32 -1
  454. package/dist/docs/web-types.json +50 -4
  455. package/dist/index.js +1 -1
  456. package/dist/loader.js +3 -3
  457. package/dist/types/lumina.d.ts +2 -2
  458. package/dist/types/preact.d.ts +2 -2
  459. package/dist/types/preact10.d.ts +2 -2
  460. package/dist/types/react.d.ts +2 -2
  461. package/dist/types/stencil.d.ts +2 -2
  462. package/dist/utils/Auth.d.ts +3 -1
  463. package/package.json +1 -1
  464. package/dist/cdn/2VKMKYL6.js +0 -18
  465. package/dist/cdn/57J42JUN.js +0 -4
  466. package/dist/cdn/5A26Z5P3.js +0 -4
  467. package/dist/cdn/5OZR325I.js +0 -4
  468. package/dist/cdn/65WJMWR3.js +0 -4
  469. package/dist/cdn/6KJSUNIO.js +0 -4
  470. package/dist/cdn/7HTC5YEL.js +0 -4
  471. package/dist/cdn/A7OPEKUN.js +0 -4
  472. package/dist/cdn/AG3TIL56.js +0 -4
  473. package/dist/cdn/DKCAZENN.js +0 -4
  474. package/dist/cdn/FTKOEAFC.js +0 -4
  475. package/dist/cdn/HZ3LIX7G.js +0 -4
  476. package/dist/cdn/J7LK2CL5.js +0 -18
  477. package/dist/cdn/JDN2ZHDI.js +0 -4
  478. package/dist/cdn/LC4GTXHD.js +0 -4
  479. package/dist/cdn/LSXCQZSF.js +0 -4
  480. package/dist/cdn/LZQ63MH5.js +0 -4
  481. package/dist/cdn/NXRGD3NX.js +0 -18
  482. package/dist/cdn/QXICXAYA.js +0 -4
  483. package/dist/cdn/RVEEZ7ZT.js +0 -4
  484. package/dist/cdn/SKN6RBMC.js +0 -4
  485. package/dist/cdn/SNZW2GSZ.js +0 -4
  486. package/dist/cdn/TNKW7I2F.js +0 -4
  487. package/dist/cdn/YVBCISOO.js +0 -4
  488. package/dist/cdn/YXI7DFWF.js +0 -4
  489. package/dist/chunks/CardsFetcher.js +0 -288
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.37 */
4
+ import e from"./2FBFQ2FF.js";import d from"./NUZ3X3TY.js";import"./5SD4GLV7.js";import"./P4LHHV2L.js";import"./ZE2JTU52.js";import c from"./NEOMIFQL.js";import b from"./KKQN5HZN.js";import a from"./KPEDGFTA.js";import"./PL2C3G4A.js";import"./HYVQWVII.js";import"./SDCYJLL6.js";import"./YGWIZXL6.js";import"./YZR4IOOG.js";import"./3BQPEIW4.js";import"./WVD743FV.js";import"./OSXEN5JP.js";import"./LASDKRI4.js";import"./YAX3KOMD.js";import"./A3NNJFSP.js";import"./5TVCMZSS.js";import"./RCCXKNQ4.js";import"./UVQ562IF.js";import"./HSNKQLTD.js";import"./DTQRFAUA.js";import"./PM2UKFMR.js";import"./LSSZKYSS.js";import"./SOHBYYBW.js";import"./MKGO4FB3.js";import"./WI2CLU5D.js";import"./TWK424K2.js";import"./IG7YJRSC.js";import"./PDMV5IT4.js";import"./MDHPRL5E.js";import"./NAEBOEYF.js";export default $arcgis.t(([,,,,a])=>{return a},a,b,c,d,e)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import{a as i}from"./IWI73FFP.js";import{a as s,c as l,d as r}from"./EBGWAP5Z.js";async function u(n,a){var e;return!((e=n?.extent)===null||e===void 0)&&e.length?s(n.extent):await r(a)}async function g(n,a,e,c,d){let o=await r(d);return[{label:"{{shared.fields.location.none:translate}}",location:{type:"none"}},{label:"{{shared.fields.location.org:translate}}",description:c,location:{type:"org",extent:l(o),spatialReference:o.spatialReference}},{label:"{{shared.fields.location.custom:translate}}",description:"{{shared.fields.location.customDescription:translate}}",entityType:i({type:a}),location:{type:"custom",spatialReference:o.spatialReference}}].map(t=>(!n&&t.location.type==="custom"||n&&!e&&t.location.type==="none"?t.selected=!0:e?.type===t.location.type&&(t.location=e,t.selected=!0),t))}export{u as a,g as b};
3
+ v1.2.0-next.37 */
4
+ import{a as i}from"./TDLHGHAT.js";import{a as s,c as l,d as r}from"./RCCXKNQ4.js";async function u(n,a){var e;return!((e=n?.extent)===null||e===void 0)&&e.length?s(n.extent):await r(a)}async function g(n,a,e,c,d){let o=await r(d);return[{label:"{{shared.fields.location.none:translate}}",location:{type:"none"}},{label:"{{shared.fields.location.org:translate}}",description:c,location:{type:"org",extent:l(o),spatialReference:o.spatialReference}},{label:"{{shared.fields.location.custom:translate}}",description:"{{shared.fields.location.customDescription:translate}}",entityType:i({type:a}),location:{type:"custom",spatialReference:o.spatialReference}}].map(t=>(!n&&t.location.type==="custom"||n&&!e&&t.location.type==="none"?t.selected=!0:e?.type===t.location.type&&(t.location=e,t.selected=!0),t))}export{u as a,g as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import{c as r}from"./Q4O2Y3MB.js";import{b as o}from"./MKMGVPCZ.js";var s=o(r);export{s as a};
3
+ v1.2.0-next.37 */
4
+ import{c as r}from"./G4KYQBYG.js";import{b as o}from"./TWK424K2.js";var s=o(r);export{s as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
3
+ v1.2.0-next.37 */
4
4
  function V(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function F(t){return Object.keys(t).some(e=>{let r=t[e];if(!r)return!1;switch(r&&r.toParam&&(r=r.toParam()),r.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function M(t){let e={};return Object.keys(t).forEach(r=>{var n,o;let s=t[r];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,c;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;c=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":c=JSON.stringify(s);break;case"Date":c=s.valueOf();break;case"Function":c=null;break;case"Boolean":c=s+"";break;default:c=s;break}(c||c===0||typeof c=="string"||Array.isArray(c))&&(e[r]=c)}),e}function Q(t,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(r=>Q(t,r)).join("&"):encodeURIComponent(t)+"="+encodeURIComponent(e)}function T(t){let e=M(t);return Object.keys(e).map(r=>Q(r,e[r])).join("&")}var X=globalThis.FormData,Te=globalThis.File,Se=globalThis.Blob;function Y(t,e){let r=F(t)||e,n=M(t);if(r){let o=new X;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return T(t)}var k=class extends Error{constructor(e,r,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",r=r||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=r==="UNKNOWN_ERROR_CODE"?e:`${r}: ${e}`,this.originalMessage=e,this.code=r,this.response=n,this.url=o,this.options=s}};var ge={noCorsDomains:[],crossOriginNoCorsDomains:{},pendingNoCorsRequests:{}},L="ARCGIS_REST_JS_NO_CORS";globalThis[L]||(globalThis[L]=Object.assign({},ge));var w=globalThis[L];function B(t){let e=new URL(t);t=e.origin+e.pathname,e.search.includes("f=json")&&(t+="?f=json");let r=e.origin;return w.pendingNoCorsRequests[r]?w.pendingNoCorsRequests[r]:(w.pendingNoCorsRequests[r]=fetch(t,{mode:"no-cors",credentials:"include",cache:"no-store"}).then(n=>{w.noCorsDomains.indexOf(r)===-1&&w.noCorsDomains.push(r),w.crossOriginNoCorsDomains[r.toLowerCase()]=Date.now(),delete w.pendingNoCorsRequests[r]}).catch(n=>(delete w.pendingNoCorsRequests[r],Promise.reject(new Error(`no-cors request to ${r} failed`)))),w.pendingNoCorsRequests[r])}function Z(t){t.forEach(e=>{e=e.toLowerCase(),/^https?:\/\//.test(e)?z(e):(z("http://"+e),z("https://"+e))})}function z(t){let r=new URL(t).origin;w.noCorsDomains.indexOf(r)===-1&&w.noCorsDomains.push(r)}function J(t){let e=!1;if(w.noCorsDomains.length){let r=new URL(t).origin.toLowerCase();e=w.noCorsDomains.some(n=>r.includes(n))}return e}function ee(t){let e=!1;if(J(t)){let r=new URL(t).origin.toLowerCase(),n=w.crossOriginNoCorsDomains[r]||0;Date.now()-60*6e4>n&&(e=!0)}return e}function te(t){console&&console.warn&&console.warn.apply(console,[t])}function re(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}function ne(t,e){var r;if(!e&&!window||!t)return!1;{e=e||window;let n=(r=e.location)===null||r===void 0?void 0:r.origin;return t.startsWith(n)}}var H="@esri/arcgis-rest-js";function we(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var A=class extends k{constructor(e="AUTHENTICATION_ERROR",r="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,r,n,o,s),this.name="ArcGISAuthError",this.message=r==="AUTHENTICATION_ERROR_CODE"?e:`${r}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,r=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(c=>{let u=Object.assign(Object.assign({},this.options),{authentication:c});return oe(this.url,u)}).then(c=>{s(c)}).catch(c=>{c.name==="ArcGISAuthError"&&n<r?o(s,i):c.name===this.name&&c.message===this.message&&n>=r?i(this):i(c)})};return new Promise((s,i)=>{o(s,i)})}};function Ee(t,e,r,n,o){if(t.code>=400){let{message:s,code:i}=t;throw new k(s,i,t,e,n)}if(t.error){let{message:s,code:i,messageCode:c}=t.error,u=c||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new A(s,u,t,e,n):new k(s,u,t,e,n)}if(t.status==="failed"||t.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(t.statusMessage).message,i=JSON.parse(t.statusMessage).code}catch{s=t.statusMessage||t.message}throw new k(s,i,t,e,n)}return t}function oe(t,e){let r=we(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},r),e),{params:Object.assign(Object.assign({},r.params),e.params),headers:Object.assign(Object.assign({},r.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),c=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};J(t)&&(u.credentials="include"),n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&t.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let x;if(typeof n.authentication=="string"){let a=n.authentication;x={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(a)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AAPT")&&!n.authentication.startsWith("AATK")&&!n.authentication.startsWith("AAST")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(te("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else x=n.authentication;let p=t,d=!1;typeof window<"u"&&(d=ne(t));let R=!d&&ee(t);n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&t.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let S=Promise.resolve();return R&&(u.credentials="include",S=B(t)),S.then(()=>x?x.getToken(t).catch(a=>(a.url=t,a.options=n,c=a,Promise.resolve(""))):Promise.resolve("")).then(a=>{a.length&&(i.token=a),x&&x.getDomainCredentials&&(u.credentials=x.getDomainCredentials(t));let l={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(l["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let b=T(i)===""?t:t+"?"+T(i);n.maxUrlLength&&b.length>n.maxUrlLength||!n.maxUrlLength&&b.length>2e3||i.token&&n.hideToken?(u.method="POST",a.length&&n.hideToken&&(i.token=a,delete l["X-Esri-Authorization"])):t=b}let m=new RegExp("/items/.+/updateResources").test(t);return u.method==="POST"&&(u.body=Y(i,m)),u.headers=Object.assign(Object.assign({},l),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=H),!F(i)&&!m&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(t,u):re().then(({fetch:h})=>h(t,u))}).then(a=>{if(!a.ok)return a.json().then(l=>{let{status:m,statusText:h}=a,{message:b,details:D}=l.error,v=`${b}. ${D?D.join(" "):""}`.trim();throw new k(v,`HTTP ${m} ${h}`,l,t,n)}).catch(l=>{if(l.name==="ArcGISRequestError")throw l;let{status:m,statusText:h}=a;throw new k(h,`HTTP ${m}`,a,t,n)});if(s)return a;switch(i.f){case"json":return a.json();case"geojson":return a.json();case"html":return a.text();case"text":return a.text();default:return a.blob()}}).then(a=>{if((i.f==="json"||i.f==="geojson")&&!s){let l=Ee(a,p,i,n,c);if(a&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(t)&&Array.isArray(a.authorizedCrossOriginNoCorsDomains)&&Z(a.authorizedCrossOriginNoCorsDomains),c){let m=t.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[m]={token:[],expires:new Date(Date.now()+86400*1e3)},c=null}return l}else return a})}function f(t,e={params:{f:"json"}}){let{request:r}=e,n=V(e,["request"]);return r?r(t,n):oe(t,n).catch(o=>o instanceof A&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function xe(t){let[e,r]=t.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(r)}}function se(t){return!t||t.length<=0?{}:t.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,r)=>{let{key:n,value:o}=xe(r);return e[n]=o,e},{})}var ie=300*1e3;function C(t,e){let r=e;return r.rawResponse=!1,f(t,r).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-ie),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-ie)),o})}function E(t){return typeof t!="string"||(t=t.trim(),t[t.length-1]==="/"&&(t=t.slice(0,-1))),t}var q=/^https?:\/\/(\S+)\.arcgis\.com.+/;function ae(t){return q.test(t)}function _e(t){if(!q.test(t))return t;switch(K(t)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function K(t){if(!q.test(t))return null;let r=t.match(q)[1].split(".").pop();return r.includes("dev")?"dev":r.includes("qa")?"qa":"production"}function ce(t,e){let r=E(_e(e)).replace(/https?:\/\//,""),n=E(t).replace(/https?:\/\//,"");return new RegExp(n,"i").test(r)}function ue(t,e){let r=ae(t),n=ae(e),o=K(t),s=K(e);return!!(r&&n&&o===s)}function le(t,e,r="https://www.arcgis.com/sharing/rest"){let n=`${r}/oauth2/validateAppAccess`;return f(n,{method:"POST",params:{f:"json",client_id:e,token:t}})}function ot(t,e,r){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},r),t);return o.params=e.reduce((s,i)=>((t[i]||typeof t[i]=="boolean"||typeof t[i]=="number"&&t[i]===0)&&(s[i]=t[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var _;(function(t){t.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",t.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",t.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",t.NOT_FEDERATED="NOT_FEDERATED",t.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(_||(_={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",r=_.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${r}: ${e}`,this.originalMessage=e,this.code=r,this.response=n,this.url=o,this.options=s}};var N=class extends Error{constructor(){super("The user has denied your authorization request.");let r=new.target.prototype;Object.setPrototypeOf(this,r),this.name="ArcGISAccessDeniedError"}};var he;(function(t){t.ArcGISRequestError="ArcGISRequestError",t.ArcGISAuthError="ArcGISAuthError",t.ArcGISAccessDeniedError="ArcGISAccessDeniedError",t.ArcGISTokenRequestError="ArcGISTokenRequestError"})(he||(he={}));var j=class{constructor(e){this.portal=e.portal?E(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let r=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=f(r,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var W;(function(t){t.Success="Succeeded",t.Failed="Failed",t.Waiting="Waiting",t.Cancelled="Cancelled",t.Cancelling="Cancelling",t.New="New",t.Executing="Executing",t.Submitted="Submitted",t.Failure="Failure",t.TimedOut="TimedOut",t.Error="Error",t.Status="Etatus",t.Unknown="Unknown"})(W||(W={}));function fe(t){let e=`${E(t.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,r=t.token,n=t.clientId;delete t.portal,delete t.clientId,delete t.token;let o=Object.assign(Object.assign({},t),{httpMethod:"POST",params:{client_id:n,auth_token:r}});return f(e,o).then(s=>{if(!s.success)throw new k("Unable to revoke token",500,s,e,o);return s})}function $(t,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function pe(t,e=window){if(!e&&window&&(e=window),t&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(t);return e.crypto.subtle.digest("SHA-256",n).then(o=>$(new Uint8Array(o),e))}return Promise.resolve(null)}function G(t){!t&&window&&(t=window);let e=t.crypto.getRandomValues(new Uint8Array(32));return $(e)}function de(t,e){return typeof t=="string"?t:typeof t=="object"?t.id:G(e)}function me(t,e,r){return JSON.stringify(typeof e=="string"||!e?{id:t,originalUrl:r}:Object.assign({id:t},e))}function ye(t){return typeof t.userId=="string"||typeof t.expires=="number"}var O=class t extends j{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?E(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.state=e.state,this.federatedServers={},this.trustedDomains=[],e.server){let r=this.getServerRootUrl(e.server);this.federatedServers[r]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,r){!r&&window&&(r=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:c,popup:u,popupWindowFeatures:x,locale:p,params:d,style:R,pkce:S,state:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),l=de(a,r),m=`ARCGIS_REST_JS_AUTH_STATE_${s}`;r.localStorage.setItem(m,l);let h=`${E(n)}/oauth2/authorize`,b={client_id:s,response_type:S?"code":"token",expiration:i,redirect_uri:c,state:me(l,a,r.location.href),locale:p,style:R};o!=="arcgis"&&(h=`${E(n)}/oauth2/social/authorize`,b.socialLoginProviderName=o,b.autoAccountCreateForSocial=!0);let D;if(S){let v=G(r),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;r.localStorage.setItem(U,v),D=pe(v,r).then(function(g){b.code_challenge_method=g?"S256":"plain",b.code_challenge=g||v})}else D=Promise.resolve();return D.then(()=>{if(h=`${h}?${T(b)}`,d&&(h=`${h}&${T(d)}`),u)return new Promise((v,U)=>{r.addEventListener(`arcgis-rest-js-popup-auth-${s}`,g=>{if(g.detail.error==="access_denied"){let P=new N;return U(P),P}if(g.detail.errorMessage){let P=new A(g.detail.errorMessage,g.detail.error);return U(P),P}v(new t({clientId:s,portal:n,ssl:g.detail.ssl,token:g.detail.token,tokenExpires:g.detail.expires,username:g.detail.username,refreshToken:g.detail.refreshToken,refreshTokenExpires:g.detail.refreshTokenExpires,redirectUri:c,state:g.detail.state}))},{once:!0}),r.open(h,"oauth-window",x),r.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});r.location.href=h})}static completeOAuth2(e,r){!r&&window&&(r=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:c}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,x=r.localStorage.getItem(u),p=se(i?r.location.search.replace(/^\?/,""):r.location.hash.replace(/^#/,"")),d=p&&p.state?JSON.parse(p.state):void 0;function R(a,l,m){if(r.localStorage.removeItem(u),s&&r.opener){r.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:l,errorMessage:a}})),r.close();return}return m&&r.history.replaceState(r.history.state,"",m),l==="access_denied"?Promise.reject(new N):Promise.reject(new A(a,l))}function S(a,l){if(r.localStorage.removeItem(u),s&&r.opener){r.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign(Object.assign({},a),{state:l})})),r.close();return}return l.originalUrl&&r.history.replaceState(r.history.state,"",l.originalUrl),new t({clientId:o,portal:n,ssl:a.ssl,token:a.token,tokenExpires:a.expires,username:a.username,refreshToken:a.refreshToken,refreshTokenExpires:a.refreshTokenExpires,redirectUri:c||location.href.replace(location.search,""),state:l})}if(!x||!d)return R("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(d.id!==x)return R("Saved client state did not match server sent state.","mismatched-auth-state");if(p.error){let a=p.error,l=p.error_description||"Unknown error";return R(l,a,d.originalUrl)}if(i&&p.code){let a=E(`${n}/oauth2/token/`),l=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,m=r.localStorage.getItem(l);return r.localStorage.removeItem(l),C(a,{httpMethod:"POST",params:{client_id:o,code_verifier:m,grant_type:"authorization_code",redirect_uri:c||location.href.replace(location.search,""),code:p.code}}).then(h=>S(Object.assign(Object.assign({},h),d),d)).catch(h=>R(h.originalMessage,h.code,d.originalUrl))}return!i&&p.access_token?Promise.resolve(S(Object.assign({token:p.access_token,expires:new Date(Date.now()+parseInt(p.expires_in,10)*1e3),ssl:p.ssl==="true",username:p.username},d),d)):R("Unknown error","oauth-error",d.originalUrl)}static fromParent(e,r){!r&&window&&(r=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===r.parent&&i.data)try{return o(t.parentMessageHandler(i))}catch(c){return s(c)}},r.addEventListener("message",n,!1),r.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(r.removeEventListener("message",n,!1),o))}static authorize(e,r){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:c}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};c&&(u.state=c);let x=`${n}/oauth2/authorize?${T(u)}`;r.writeHead(301,{Location:x}),r.end()}static exchangeAuthorizationCode(e,r){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return C(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:r}}).then(i=>new t({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,_.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let r=JSON.parse(e);return new t({clientId:r.clientId,refreshToken:r.refreshToken,refreshTokenExpires:r.refreshTokenExpires?new Date(r.refreshTokenExpires):void 0,username:r.username,password:r.password,token:r.token,tokenExpires:r.tokenExpires?new Date(r.tokenExpires):void 0,portal:r.portal,ssl:r.ssl,tokenDuration:r.tokenDuration,redirectUri:r.redirectUri,server:r.server})}static fromCredential(e,r){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return r.hasServer?new t({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new t({portal:E(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let r=e.data.credential;return ye(r)?t.fromCredential(r,{hasPortal:!0,hasServer:!1,server:r.server}):new t(r)}if(e.data.type==="arcgis:auth:error"){let r=new Error(e.data.error.message);throw r.name=e.data.error.name,r}else throw new Error("Unknown message type.")}static destroy(e){return fe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let r=new t(e);return r.getUser().then(()=>r)}static signIn(e){let r=new t(e);return r.getUser().then(()=>r)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let r=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=f(r,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,r){return ue(this.portal,e)?this.getFreshToken(r):new RegExp(this.portal,"i").test(e)?this.getFreshToken(r):this.getTokenForServer(e,r)}validateAppAccess(e){return this.getToken(this.portal).then(r=>le(r,e))}toJSON(){return{type:"ArcGISIdentityManager",clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,r){!r&&window&&(r=window),this._hostHandler=this.createPostMessageHandler(e),r.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",_.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[r]=E(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=r.match(/(https?:\/\/)(.+)/),[i,...c]=s.split("/");return`${o}${i.toLowerCase()}/${c.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(r=>e.startsWith(r.toLowerCase()))?"include":"same-origin")}signOut(){return t.destroy(this)}createPostMessageHandler(e){return r=>{let n=e.indexOf(r.origin)>-1,o=r.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let c=this.toCredential();c.server=c.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:c}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};r.source.postMessage(i,r.origin)}}}getTokenForServer(e,r){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>f(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ce(s.owningSystemUrl,this.portal))return f(`${s.owningSystemUrl}/sharing/rest/info`,r);throw new y(`${e} is not federated with ${this.portal}.`,_.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,_.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,r){return f(e,{params:{token:this.token,serverUrl:r,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,_.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let r={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:H};return(this.server?f(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>f(n.authInfo.tokenServicesUrl,Object.assign({params:r},e))):f(`${this.portal}/generateToken`,Object.assign({params:r},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,_.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return C(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,_.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,r){return this._token=e,this._tokenExpires=r,this}exchangeRefreshToken(e){let r=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return C(`${this.portal}/oauth2/token`,r).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,_.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(r=>!r.startsWith("http://")).map(r=>r.startsWith("https://")?r:`https://${r}`)),this))}};function I(t){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new O(t)}I.beginOAuth2=function(...t){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),O.beginOAuth2(...t)};I.completeOAuth2=function(...t){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),t.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),O.completeOAuth2(...t)};I.fromParent=function(...t){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),O.fromParent(...t)};I.authorize=function(...t){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),O.authorize(...t)};I.exchangeAuthorizationCode=function(...t){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),O.exchangeAuthorizationCode(...t)};I.fromCredential=function(...t){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),O.fromCredential(...t)};I.deserialize=function(...t){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),O.deserialize(...t)};export{Y as a,te as b,A as c,f as d,ot as e,E as f,O as g};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import{a as l}from"./HBU2D3OK.js";import{b as h}from"./Q4O2Y3MB.js";import"./MKMGVPCZ.js";import"./R5426IXX.js";import{F as r,H as n,h as i,i as a}from"./KSNTFOGZ.js";import"./6UZSVHNV.js";var c=i`:host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:.5rem .75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(2n){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:.5em .7em;font-weight:400}`,m={content:"instant-apps-keyboard-shortcuts__content"},o=class extends r{constructor(){super(...arguments),this._messages=l({name:"instant-apps-keyboard-shortcuts",blocking:!0})}static{this.properties={view:0}}static{this.styles=c}_getMapViewCommands(){let t=this.view?.type==="2d"&&this.view.constraints.rotationEnabled,e=this._messages?[{alias:this._messages.mapShortcuts.arrowKeys,title:this._messages.mapShortcuts.nudge,show:!0},{alias:"N",title:this._messages.mapShortcuts.N,show:t},{alias:"A",title:this._messages.mapShortcuts.A,show:t},{alias:"D",title:this._messages.mapShortcuts.D,show:t},{alias:"+",title:this._messages.mapShortcuts.plus,show:!0},{alias:"-",title:this._messages.mapShortcuts.minus,show:!0}]:[];return this._messages?e.filter(s=>s.show):[]}_getSceneViewCommands(){let t=this.view?.type==="3d"&&this.view.viewingMode==="global",e=this._messages?[{alias:this._messages.mapShortcuts.arrowKeys,title:this._messages.mapShortcuts.nudge,show:!!t},{alias:"P",title:this._messages.sceneShortcuts.P,show:!0},{alias:"N",title:this._messages.sceneShortcuts.N,show:!0},{alias:"W",title:this._messages.sceneShortcuts.W,show:!0},{alias:"A",title:this._messages.sceneShortcuts.A,show:!0},{alias:"D",title:this._messages.sceneShortcuts.D,show:!0},{alias:"S",title:this._messages.sceneShortcuts.S,show:!0},{alias:"J",title:this._messages.sceneShortcuts.globalCommands.J,show:!!t},{alias:"U",title:this._messages.sceneShortcuts.globalCommands.U,show:!!t}]:[];return this._messages?e.filter(s=>s.show):[]}_isMacLike(){return/(Mac)/iu.test(navigator.platform)}render(){let t=this.view?.type==="2d"||!this.view?this._getMapViewCommands():this._getSceneViewCommands(),e=this._isMacLike()?"Option":"Alt";return a`<calcite-block open class=${n(m.content)} .heading=${this._messages.generalShortcuts?.label}><table>${this.renderTableHeader()}<tr><td>${`${e} + M`}</td><td>${this._messages.generalShortcuts?.title}</td></tr></table><calcite-label>${this._messages.generalShortcuts?.title}</calcite-label><table>${this.renderTableHeader()}${t.map(s=>a`<tr><td>${s.alias}</td><td>${s.title}</td></tr>`)}</table></calcite-block>`}renderTableHeader(){return this._messages?a`<tr><th>${this._messages.generalShortcuts?.shortcut}</th><th>${this._messages.generalShortcuts?.action}</th></tr>`:null}};h("instant-apps-keyboard-shortcuts",o);export{o as InstantAppsKeyboardShortcuts};
3
+ v1.2.0-next.37 */
4
+ import{a as l}from"./DPLAIA57.js";import{b as h}from"./G4KYQBYG.js";import"./TWK424K2.js";import"./IG7YJRSC.js";import{F as r,H as n,h as i,i as a}from"./MDHPRL5E.js";import"./NAEBOEYF.js";var c=i`:host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:.5rem .75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(2n){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:.5em .7em;font-weight:400}`,m={content:"instant-apps-keyboard-shortcuts__content"},o=class extends r{constructor(){super(...arguments),this._messages=l({name:"instant-apps-keyboard-shortcuts",blocking:!0})}static{this.properties={view:0}}static{this.styles=c}_getMapViewCommands(){let t=this.view?.type==="2d"&&this.view.constraints.rotationEnabled,e=this._messages?[{alias:this._messages.mapShortcuts.arrowKeys,title:this._messages.mapShortcuts.nudge,show:!0},{alias:"N",title:this._messages.mapShortcuts.N,show:t},{alias:"A",title:this._messages.mapShortcuts.A,show:t},{alias:"D",title:this._messages.mapShortcuts.D,show:t},{alias:"+",title:this._messages.mapShortcuts.plus,show:!0},{alias:"-",title:this._messages.mapShortcuts.minus,show:!0}]:[];return this._messages?e.filter(s=>s.show):[]}_getSceneViewCommands(){let t=this.view?.type==="3d"&&this.view.viewingMode==="global",e=this._messages?[{alias:this._messages.mapShortcuts.arrowKeys,title:this._messages.mapShortcuts.nudge,show:!!t},{alias:"P",title:this._messages.sceneShortcuts.P,show:!0},{alias:"N",title:this._messages.sceneShortcuts.N,show:!0},{alias:"W",title:this._messages.sceneShortcuts.W,show:!0},{alias:"A",title:this._messages.sceneShortcuts.A,show:!0},{alias:"D",title:this._messages.sceneShortcuts.D,show:!0},{alias:"S",title:this._messages.sceneShortcuts.S,show:!0},{alias:"J",title:this._messages.sceneShortcuts.globalCommands.J,show:!!t},{alias:"U",title:this._messages.sceneShortcuts.globalCommands.U,show:!!t}]:[];return this._messages?e.filter(s=>s.show):[]}_isMacLike(){return/(Mac)/iu.test(navigator.platform)}render(){let t=this.view?.type==="2d"||!this.view?this._getMapViewCommands():this._getSceneViewCommands(),e=this._isMacLike()?"Option":"Alt";return a`<calcite-block open class=${n(m.content)} .heading=${this._messages.generalShortcuts?.label}><table>${this.renderTableHeader()}<tr><td>${`${e} + M`}</td><td>${this._messages.generalShortcuts?.title}</td></tr></table><calcite-label>${this._messages.generalShortcuts?.title}</calcite-label><table>${this.renderTableHeader()}${t.map(s=>a`<tr><td>${s.alias}</td><td>${s.title}</td></tr>`)}</table></calcite-block>`}renderTableHeader(){return this._messages?a`<tr><th>${this._messages.generalShortcuts?.shortcut}</th><th>${this._messages.generalShortcuts?.action}</th></tr>`:null}};h("instant-apps-keyboard-shortcuts",o);export{o as InstantAppsKeyboardShortcuts};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import{a as x}from"./HQYGQQAN.js";import"./Q4O2Y3MB.js";import e from"./7A2PBJ4H.js";import c from"./IOTPW2AJ.js";import b from"./OCFKULCG.js";import a from"./S5H7SXZP.js";import"./IJMX3WHX.js";import"./RGWPFZBE.js";import"./X36X6MUL.js";import"./AAXE4NNV.js";import"./CJ2LQ2KZ.js";import"./JIP3YG24.js";import"./QGM6TJLI.js";import"./QW6SMLEJ.js";import"./6EDB6GK3.js";import"./PGVJ7TAF.js";import"./66NEFBOE.js";import"./SDSPTQ4P.js";import"./TOVO7FLD.js";import"./EBGWAP5Z.js";import"./2SG2PXGL.js";import"./I2OMO5AF.js";import"./6W4SZKHC.js";import"./46X2JXUZ.js";import"./TSVPTY5X.js";import"./LBVSC6V5.js";import"./CN56TZC4.js";import{a as I}from"./GT2JLUV4.js";import"./MKMGVPCZ.js";import"./R5426IXX.js";import{b as L}from"./WDABZAMD.js";import{D as h,E as r,F as $,H as d,I as v,h as f,i as l,l as w,p as m,s as y}from"./KSNTFOGZ.js";import"./6UZSVHNV.js";export default $arcgis.t(([,,{a:s},{d:C}])=>{var O=f`@layer{/** @license
3
+ v1.2.0-next.37 */
4
+ import{a as x}from"./XQQMJQSG.js";import"./G4KYQBYG.js";import e from"./RGRJX7VL.js";import c from"./NEOMIFQL.js";import b from"./KKQN5HZN.js";import a from"./KPEDGFTA.js";import"./N33O2BIB.js";import"./PL2C3G4A.js";import"./HYVQWVII.js";import"./SDCYJLL6.js";import"./YGWIZXL6.js";import"./YZR4IOOG.js";import"./3BQPEIW4.js";import"./WVD743FV.js";import"./OSXEN5JP.js";import"./LASDKRI4.js";import"./YAX3KOMD.js";import"./A3NNJFSP.js";import"./5TVCMZSS.js";import"./RCCXKNQ4.js";import"./UVQ562IF.js";import"./HSNKQLTD.js";import"./DTQRFAUA.js";import"./PM2UKFMR.js";import"./LSSZKYSS.js";import"./SOHBYYBW.js";import"./MKGO4FB3.js";import{a as I}from"./WI2CLU5D.js";import"./TWK424K2.js";import"./IG7YJRSC.js";import{b as L}from"./PDMV5IT4.js";import{D as h,E as r,F as $,H as d,I as v,h as f,i as l,l as w,p as m,s as y}from"./MDHPRL5E.js";import"./NAEBOEYF.js";export default $arcgis.t(([,,{a:s},{d:C}])=>{var O=f`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import{a as e}from"./UI44CDNQ.js";import{a as d}from"./HBU2D3OK.js";import{b as h}from"./Q4O2Y3MB.js";import"./MKMGVPCZ.js";import"./R5426IXX.js";import{F as n,H as c,I as a,J as p,h as r,i}from"./KSNTFOGZ.js";import"./6UZSVHNV.js";export default $arcgis.t(([l])=>{var m=r`:host{display:block}.instant-apps-compass{position:relative;height:100px;width:100px;border-radius:50%}.instant-apps-compass #instant-compass{position:absolute;top:calc(50% - 16px);right:calc(50% - 16px);z-index:10}.instant-apps-compass #dir-ring{height:100px;width:100px;border-radius:50%;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-border-1);position:relative}.instant-apps-compass #dir-ring .dir-heading{position:absolute;--calcite-fab-background-color: transparent;--calcite-fab-text-color: var(--calcite-color-text-1);--calcite-fab-shadow: none}.instant-apps-compass #dir-ring #north{right:39px;top:5px}.instant-apps-compass #dir-ring #east{right:6px;top:38px}.instant-apps-compass #dir-ring #west{left:4px;top:38px}.instant-apps-compass #dir-ring #south{right:39px;bottom:3px}`,g={base:"instant-apps-compass"},o=class extends n{constructor(){super(...arguments),this._messages=d({name:"instant-apps-compass",blocking:!0}),this.rotationWatcherKey="rotationWatcher",this.baseClass=g.base,this.rotation=0}static{this.properties={baseClass:16,rotation:16,view:0}}static{this.styles=m}get view(){return this._view}set view(t){this._view=t,this.handles.has(this.rotationWatcherKey)&&this.handles.remove(this.rotationWatcherKey),this.handles.add(t.watch("rotation",()=>{this.rotation=Math.floor(t.rotation)}),this.rotationWatcherKey)}load(){this.initializeModules()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}initializeModules(){this.handles=new l}goToHeading(t){let s=this._view.viewpoint.clone();s.rotation=this.decideRotation(t),this._view.goTo(s)}decideRotation(t){switch(t){case"north":return 0;case"east":return 270;case"south":return 180;case"west":return 90}}render(){return i`<div class=${c(this.baseClass)}><arcgis-compass id=instant-compass .view=${this.view}></arcgis-compass>${this.renderDirectionRing()}</div>`}renderDirectionRing(){return e("dir-ring",i`<div id=dir-ring style=${a({transform:`rotate(${this.rotation}deg)`})}>${["north","east","south","west"].map(t=>this._renderHeading(t))}</div>`)}_renderHeading(t){let s=this._messages[t];return e(t,i`<calcite-fab scale=s .text=${s.charAt(0).toLocaleUpperCase()} text-enabled icon class="dir-heading" id=${t??p} style=${a({transform:`rotate(-${this.rotation}deg)`})} @click=${()=>this.goToHeading(t)}></calcite-fab>`)}};h("instant-apps-compass",o);return o},"core/Handles")
3
+ v1.2.0-next.37 */
4
+ import{a as e}from"./ZE2JTU52.js";import{a as d}from"./DPLAIA57.js";import{b as h}from"./G4KYQBYG.js";import"./TWK424K2.js";import"./IG7YJRSC.js";import{F as n,H as c,I as a,J as p,h as r,i}from"./MDHPRL5E.js";import"./NAEBOEYF.js";export default $arcgis.t(([l])=>{var m=r`:host{display:block}.instant-apps-compass{position:relative;height:100px;width:100px;border-radius:50%}.instant-apps-compass #instant-compass{position:absolute;top:calc(50% - 16px);right:calc(50% - 16px);z-index:10}.instant-apps-compass #dir-ring{height:100px;width:100px;border-radius:50%;background-color:var(--calcite-color-foreground-1);border:1px solid var(--calcite-color-border-1);position:relative}.instant-apps-compass #dir-ring .dir-heading{position:absolute;--calcite-fab-background-color: transparent;--calcite-fab-text-color: var(--calcite-color-text-1);--calcite-fab-shadow: none}.instant-apps-compass #dir-ring #north{right:39px;top:5px}.instant-apps-compass #dir-ring #east{right:6px;top:38px}.instant-apps-compass #dir-ring #west{left:4px;top:38px}.instant-apps-compass #dir-ring #south{right:39px;bottom:3px}`,g={base:"instant-apps-compass"},o=class extends n{constructor(){super(...arguments),this._messages=d({name:"instant-apps-compass",blocking:!0}),this.rotationWatcherKey="rotationWatcher",this.baseClass=g.base,this.rotation=0}static{this.properties={baseClass:16,rotation:16,view:0}}static{this.styles=m}get view(){return this._view}set view(t){this._view=t,this.handles.has(this.rotationWatcherKey)&&this.handles.remove(this.rotationWatcherKey),this.handles.add(t.watch("rotation",()=>{this.rotation=Math.floor(t.rotation)}),this.rotationWatcherKey)}load(){this.initializeModules()}disconnectedCallback(){super.disconnectedCallback(),this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}initializeModules(){this.handles=new l}goToHeading(t){let s=this._view.viewpoint.clone();s.rotation=this.decideRotation(t),this._view.goTo(s)}decideRotation(t){switch(t){case"north":return 0;case"east":return 270;case"south":return 180;case"west":return 90}}render(){return i`<div class=${c(this.baseClass)}><arcgis-compass id=instant-compass .view=${this.view}></arcgis-compass>${this.renderDirectionRing()}</div>`}renderDirectionRing(){return e("dir-ring",i`<div id=dir-ring style=${a({transform:`rotate(${this.rotation}deg)`})}>${["north","east","south","west"].map(t=>this._renderHeading(t))}</div>`)}_renderHeading(t){let s=this._messages[t];return e(t,i`<calcite-fab scale=s .text=${s.charAt(0).toLocaleUpperCase()} text-enabled icon class="dir-heading" id=${t??p} style=${a({transform:`rotate(-${this.rotation}deg)`})} @click=${()=>this.goToHeading(t)}></calcite-fab>`)}};h("instant-apps-compass",o);return o},"core/Handles")
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import{a as b}from"./GT2JLUV4.js";import"./MKMGVPCZ.js";import"./R5426IXX.js";import{b as m}from"./WDABZAMD.js";import{D as a,E as n,F as f,H as g,I as t,J as c,h as v,i as e,j as h}from"./KSNTFOGZ.js";import"./6UZSVHNV.js";export default $arcgis.t(([x,k])=>{var $=v`/** @license
3
+ v1.2.0-next.37 */
4
+ import{a as b}from"./WI2CLU5D.js";import"./TWK424K2.js";import"./IG7YJRSC.js";import{b as m}from"./PDMV5IT4.js";import{D as a,E as n,F as f,H as g,I as t,J as c,h as v,i as e,j as h}from"./MDHPRL5E.js";import"./NAEBOEYF.js";export default $arcgis.t(([x,k])=>{var $=v`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the 'License');
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import{a as u}from"./VISD52LT.js";import{a as x}from"./WYD7SFWY.js";import{b as h}from"./Q4O2Y3MB.js";import{a as m}from"./MKMGVPCZ.js";import"./R5426IXX.js";import{F as c,H as i,I as _,h as d,i as e,l,p as o}from"./KSNTFOGZ.js";import"./6UZSVHNV.js";var f=(a=>(a.TOP_LEFT="top-left",a.TOP_CENTER="top-center",a.TOP_RIGHT="top-right",a.CENTER_LEFT="center-left",a.CENTER="center",a.CENTER_RIGHT="center-right",a.BOTTOM_LEFT="bottom-left",a.BOTTOM_CENTER="bottom-center",a.BOTTOM_RIGHT="bottom-right",a))(f||{}),y=d`:host{--instant-apps-landing-page-background-color: var(--calcite-color-brand);--instant-apps-landing-page-text-color: var(--calcite-color-text-inverse);--instant-apps-landing-page-entry-button-color: var(--calcite-color-brand);--instant-apps-landing-page-title-text-font-size: var(--calcite-font-size-6);--instant-apps-landing-page-subtitle-text-font-size: var( --calcite-font-size-3 );--instant-apps-landing-page-description-text-font-size: var( --calcite-font-size-0 );--instant-apps-landing-page-icon-image-scale--s: 100px;--instant-apps-landing-page-icon-image-scale--m: 250px;--instant-apps-landing-page-icon-image-scale--l: 500px;--instant-apps-landing-page-entry-button-margin: 0}:host .instant-apps-landing-page{box-sizing:border-box;position:absolute;top:0;left:0;z-index:9000;display:flex;flex-direction:column;width:100%;height:100%;padding:60px;transition:top .5s ease-in-out;background-color:var(--instant-apps-landing-page-background-color);color:var(--instant-apps-landing-page-text-color)}:host .instant-apps-landing-page__title-text{color:var(--instant-apps-landing-page-text-color);font-size:var(--instant-apps-landing-page-title-text-font-size);margin:10px 0}:host .instant-apps-landing-page__subtitle-text{font-weight:var(--calcite-font-weight-medium);font-size:var(--instant-apps-landing-page-subtitle-text-font-size);margin:10px 0}:host .instant-apps-landing-page__description-text{font-size:var(--instant-apps-landing-page-description-text-font-size);width:50%;min-width:250px;margin-top:10px;overflow-y:auto;flex:1 1 auto}:host .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__subtitle-text{text-shadow:0px 4px 3px rgba(0,0,0,.4),0px 8px 13px rgba(0,0,0,.1),0px 18px 23px rgba(0,0,0,.1)}:host .instant-apps-landing-page__icon-image{margin-bottom:10px}:host .instant-apps-landing-page__icon-image-scale--s{width:100px}:host .instant-apps-landing-page__icon-image-scale--m{width:250px}:host .instant-apps-landing-page__icon-image-scale--l{width:500px}:host .instant-apps-landing-page__button-container{display:flex;padding:20px 0}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{margin:var(--instant-apps-landing-page-entry-button-margin)}:host .instant-apps-landing-page__entry-button{--calcite-color-brand: var( --instant-apps-landing-page-entry-button-color );--calcite-color-brand-hover: var( --instant-apps-landing-page-entry-button-color );--calcite-color-brand-press: var( --instant-apps-landing-page-entry-button-color )}:host .instant-apps-landing-page__background-action{position:absolute;top:1%;right:.5%;max-width:300px}:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text,:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text,:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text,:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text,:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__remove-transition{transition:none}:host .instant-apps-landing-page__remove-padding{padding:0}:host .instant-apps-landing-page--closed-no-transition{display:none}:host .instant-apps-landing-page--closed{top:-100%}:host .instant-apps-landing-page__alignment--top-center{justify-content:flex-start;align-items:center}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-y:auto}:host .instant-apps-landing-page__alignment--center{justify-content:center;align-items:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;overflow-y:auto}:host .instant-apps-landing-page__alignment--bottom-center{justify-content:flex-end;align-items:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;overflow-y:auto}:host .instant-apps-landing-page__alignment--top-left{justify-content:flex-start;align-items:flex-start}:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-start;overflow-y:auto}:host .instant-apps-landing-page__alignment--center-left{justify-content:center;align-items:flex-start}:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-start;overflow-y:auto}:host .instant-apps-landing-page__alignment--bottom-left{justify-content:flex-end;align-items:flex-start}:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-start;overflow-y:auto}:host .instant-apps-landing-page__alignment--top-right{justify-content:flex-start;align-items:flex-end}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end;overflow-y:auto}:host .instant-apps-landing-page__alignment--center-right{justify-content:center;align-items:flex-end}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end;overflow-y:auto}:host .instant-apps-landing-page__alignment--bottom-right{justify-content:flex-end;align-items:flex-end}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end;overflow-y:auto}:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host instant-apps-sign-in{width:50%}@media screen and (max-width:500px){:host instant-apps-sign-in{width:100%}}@media only screen and (max-width:768px){:host .instant-apps-landing-page__icon-image{max-width:70%;margin-bottom:20px}:host .instant-apps-landing-page__description-text{width:80%}:host .instant-apps-landing-page__title-text{font-size:var(--calcite-font-size-3)}:host .instant-apps-landing-page__subtitle-text{font-size:var(--calcite-font-size-0)}:host .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;margin-top:auto}:host .instant-apps-landing-page__button-container{display:flex;flex-direction:column;width:100%;margin-top:auto}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{width:100%;margin-right:unset;margin-bottom:10px}:host .instant-apps-landing-page instant-apps-sign-in{margin-bottom:auto}}@media only screen and (max-width:896px)and (orientation:landscape){:host .instant-apps-landing-page__icon-image{max-width:25%}}`,n={BASE:"instant-apps-landing-page",rtl:"instant-apps-landing-page--rtl",titleText:"instant-apps-landing-page__title-text",subtitleText:"instant-apps-landing-page__subtitle-text",descriptionText:"instant-apps-landing-page__description-text",closed:"instant-apps-landing-page--closed",closedNoTransition:"instant-apps-landing-page--closed-no-transition",iconImage:"instant-apps-landing-page__icon-image",removeTransition:"instant-apps-landing-page__remove-transition",alignment:"instant-apps-landing-page__alignment--",entryButton:"instant-apps-landing-page__entry-button",contentContainer:"instant-apps-landing-page__content-container",buttonContainer:"instant-apps-landing-page__button-container",backgroundAction:"instant-apps-landing-page__background-action",iconImageScale:{s:" instant-apps-landing-page__icon-image-scale--s",m:" instant-apps-landing-page__icon-image-scale--m",l:" instant-apps-landing-page__icon-image-scale--l"}},r=class extends c{constructor(){super(...arguments),this._sanitizer=new x({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this._direction=m(),this.iconImageScale="m",this.alignment=f.CENTER,this.disableTransition=!0,this.open=!0,this.entryButtonScale="l",this.fontFamily="var(--calcite-sans-family);",this.landingPageClose=o(),this.landingPageOpen=o()}static{this.properties={titleText:1,subtitleText:1,descriptionText:1,entryButtonText:1,iconImage:1,iconImageScale:1,iconImageAltText:1,alignment:0,disableTransition:5,backgroundImageSrc:1,open:5,entryButtonScale:1,fontFamily:3,enableSignIn:5,portal:0,oauthappid:1}}static{this.styles=y}willUpdate(t){t.has("open")&&(this.hasUpdated||!this.open)&&(this.open?this.landingPageOpen.emit():this.landingPageClose.emit()),this.checkEnableSignIn()}closeLandingPage(){this.open=!1}getAlignmentClass(){return` ${n.alignment}${this.alignment}`}getIconImageScale(){let{iconImageScale:t}=this,{s,m:p,l:g}=n.iconImageScale;return t==="l"?g:t==="s"?s:p}getContentStyle(){let t=u(this.fontFamily);return this.backgroundImageSrc?{fontFamily:t,backgroundSize:"cover",backgroundImage:`url("${this.backgroundImageSrc}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center"}:{fontFamily:t}}checkEnableSignIn(){if(this.enableSignIn){let t=localStorage.getItem("signing-in")?Number(localStorage.getItem("signing-in")):null;t!=null&&((Date.now()-t)/(60*1e3)<2&&(this.open=!1),localStorage.removeItem("signing-in"))}}render(){return this.renderLandingPageContent()}renderLandingPageContent(){let t=this.open?"":this.disableTransition?` ${n.closedNoTransition}`:` ${n.closed}`,s=this.getAlignmentClass(),p=this.disableTransition?` ${n.removeTransition}`:"",g=this._direction==="rtl"?` ${n.rtl}`:"",b=this.getContentStyle();return e`<div style=${_(b)} class=${`${n.BASE}${g}${s}${t}${p}`}><div class=${i(n.backgroundAction)}><slot name=background-action></slot></div><div class=${i(n.contentContainer)}>${this.renderIconImage()}${this.renderTitleText()}${this.renderSubtitleText()}${this.renderDescriptionText()}</div>${this.renderEntryButtonContainer()}</div>`}renderEntryButtonContainer(){return this.enableSignIn?this.renderLandingPageSignIn():e`<div class=${i(n.buttonContainer)}>${this.renderEntryButton()}<slot name=secondary-action></slot></div>`}renderLandingPageSignIn(){return e`<instant-apps-sign-in type=landingPage landing-page .portal=${this.portal} .oauthappid=${this.oauthappid} .closeLandingPage=${this.closeLandingPage.bind(this)}></instant-apps-sign-in>`}renderIconImage(){return this.iconImage?e`<img class=${`${n.iconImage}${this.getIconImageScale()}`} src=${this.iconImage??l} alt=${this.iconImageAltText??l}>`:null}renderTitleText(){return e`<h1 class=${i(n.titleText)}>${this.titleText}</h1>`}renderSubtitleText(){return e`<span class=${i(n.subtitleText)}>${this.subtitleText}</span>`}renderDescriptionText(){return e`<p class=${i(n.descriptionText)} .innerHTML=${this._sanitizer?.sanitize(this.descriptionText)??""??""}></p>`}renderEntryButton(){return e`<calcite-button class=${i(n.entryButton)} @click=${this.closeLandingPage} .scale=${this.entryButtonScale} appearance=outline-fill>${this.entryButtonText?this.entryButtonText:"Enter"}</calcite-button>`}};h("instant-apps-landing-page",r);export{r as InstantAppsLandingPage};
3
+ v1.2.0-next.37 */
4
+ import{a as u}from"./FJ7MBYCT.js";import{a as x}from"./424EU24N.js";import{b as h}from"./G4KYQBYG.js";import{a as m}from"./TWK424K2.js";import"./IG7YJRSC.js";import{F as c,H as i,I as _,h as d,i as e,l,p as o}from"./MDHPRL5E.js";import"./NAEBOEYF.js";var f=(a=>(a.TOP_LEFT="top-left",a.TOP_CENTER="top-center",a.TOP_RIGHT="top-right",a.CENTER_LEFT="center-left",a.CENTER="center",a.CENTER_RIGHT="center-right",a.BOTTOM_LEFT="bottom-left",a.BOTTOM_CENTER="bottom-center",a.BOTTOM_RIGHT="bottom-right",a))(f||{}),y=d`:host{--instant-apps-landing-page-background-color: var(--calcite-color-brand);--instant-apps-landing-page-text-color: var(--calcite-color-text-inverse);--instant-apps-landing-page-entry-button-color: var(--calcite-color-brand);--instant-apps-landing-page-title-text-font-size: var(--calcite-font-size-6);--instant-apps-landing-page-subtitle-text-font-size: var( --calcite-font-size-3 );--instant-apps-landing-page-description-text-font-size: var( --calcite-font-size-0 );--instant-apps-landing-page-icon-image-scale--s: 100px;--instant-apps-landing-page-icon-image-scale--m: 250px;--instant-apps-landing-page-icon-image-scale--l: 500px;--instant-apps-landing-page-entry-button-margin: 0}:host .instant-apps-landing-page{box-sizing:border-box;position:absolute;top:0;left:0;z-index:9000;display:flex;flex-direction:column;width:100%;height:100%;padding:60px;transition:top .5s ease-in-out;background-color:var(--instant-apps-landing-page-background-color);color:var(--instant-apps-landing-page-text-color)}:host .instant-apps-landing-page__title-text{color:var(--instant-apps-landing-page-text-color);font-size:var(--instant-apps-landing-page-title-text-font-size);margin:10px 0}:host .instant-apps-landing-page__subtitle-text{font-weight:var(--calcite-font-weight-medium);font-size:var(--instant-apps-landing-page-subtitle-text-font-size);margin:10px 0}:host .instant-apps-landing-page__description-text{font-size:var(--instant-apps-landing-page-description-text-font-size);width:50%;min-width:250px;margin-top:10px;overflow-y:auto;flex:1 1 auto}:host .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__subtitle-text{text-shadow:0px 4px 3px rgba(0,0,0,.4),0px 8px 13px rgba(0,0,0,.1),0px 18px 23px rgba(0,0,0,.1)}:host .instant-apps-landing-page__icon-image{margin-bottom:10px}:host .instant-apps-landing-page__icon-image-scale--s{width:100px}:host .instant-apps-landing-page__icon-image-scale--m{width:250px}:host .instant-apps-landing-page__icon-image-scale--l{width:500px}:host .instant-apps-landing-page__button-container{display:flex;padding:20px 0}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{margin:var(--instant-apps-landing-page-entry-button-margin)}:host .instant-apps-landing-page__entry-button{--calcite-color-brand: var( --instant-apps-landing-page-entry-button-color );--calcite-color-brand-hover: var( --instant-apps-landing-page-entry-button-color );--calcite-color-brand-press: var( --instant-apps-landing-page-entry-button-color )}:host .instant-apps-landing-page__background-action{position:absolute;top:1%;right:.5%;max-width:300px}:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text,:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text,:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text,:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text,:host .instant-apps-landing-page--rtl.instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__remove-transition{transition:none}:host .instant-apps-landing-page__remove-padding{padding:0}:host .instant-apps-landing-page--closed-no-transition{display:none}:host .instant-apps-landing-page--closed{top:-100%}:host .instant-apps-landing-page__alignment--top-center{justify-content:flex-start;align-items:center}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;justify-content:center;overflow-y:auto}:host .instant-apps-landing-page__alignment--center{justify-content:center;align-items:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;overflow-y:auto}:host .instant-apps-landing-page__alignment--bottom-center{justify-content:flex-end;align-items:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;overflow-y:auto}:host .instant-apps-landing-page__alignment--top-left{justify-content:flex-start;align-items:flex-start}:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-start;overflow-y:auto}:host .instant-apps-landing-page__alignment--center-left{justify-content:center;align-items:flex-start}:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-start;overflow-y:auto}:host .instant-apps-landing-page__alignment--bottom-left{justify-content:flex-end;align-items:flex-start}:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-start;overflow-y:auto}:host .instant-apps-landing-page__alignment--top-right{justify-content:flex-start;align-items:flex-end}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end;overflow-y:auto}:host .instant-apps-landing-page__alignment--center-right{justify-content:center;align-items:flex-end}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end;overflow-y:auto}:host .instant-apps-landing-page__alignment--bottom-right{justify-content:flex-end;align-items:flex-end}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:flex-end;overflow-y:auto}:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-left .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:left}:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-center .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:center}:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--top-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--center-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__title-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__subtitle-text,:host .instant-apps-landing-page__alignment--bottom-right .instant-apps-landing-page__content-container .instant-apps-landing-page__description-text{text-align:right}:host instant-apps-sign-in{width:50%}@media screen and (max-width:500px){:host instant-apps-sign-in{width:100%}}@media only screen and (max-width:768px){:host .instant-apps-landing-page__icon-image{max-width:70%;margin-bottom:20px}:host .instant-apps-landing-page__description-text{width:80%}:host .instant-apps-landing-page__title-text{font-size:var(--calcite-font-size-3)}:host .instant-apps-landing-page__subtitle-text{font-size:var(--calcite-font-size-0)}:host .instant-apps-landing-page__content-container{display:flex;flex-direction:column;align-items:center;margin-top:auto}:host .instant-apps-landing-page__button-container{display:flex;flex-direction:column;width:100%;margin-top:auto}:host .instant-apps-landing-page__button-container .instant-apps-landing-page__entry-button{width:100%;margin-right:unset;margin-bottom:10px}:host .instant-apps-landing-page instant-apps-sign-in{margin-bottom:auto}}@media only screen and (max-width:896px)and (orientation:landscape){:host .instant-apps-landing-page__icon-image{max-width:25%}}`,n={BASE:"instant-apps-landing-page",rtl:"instant-apps-landing-page--rtl",titleText:"instant-apps-landing-page__title-text",subtitleText:"instant-apps-landing-page__subtitle-text",descriptionText:"instant-apps-landing-page__description-text",closed:"instant-apps-landing-page--closed",closedNoTransition:"instant-apps-landing-page--closed-no-transition",iconImage:"instant-apps-landing-page__icon-image",removeTransition:"instant-apps-landing-page__remove-transition",alignment:"instant-apps-landing-page__alignment--",entryButton:"instant-apps-landing-page__entry-button",contentContainer:"instant-apps-landing-page__content-container",buttonContainer:"instant-apps-landing-page__button-container",backgroundAction:"instant-apps-landing-page__background-action",iconImageScale:{s:" instant-apps-landing-page__icon-image-scale--s",m:" instant-apps-landing-page__icon-image-scale--m",l:" instant-apps-landing-page__icon-image-scale--l"}},r=class extends c{constructor(){super(...arguments),this._sanitizer=new x({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this._direction=m(),this.iconImageScale="m",this.alignment=f.CENTER,this.disableTransition=!0,this.open=!0,this.entryButtonScale="l",this.fontFamily="var(--calcite-sans-family);",this.landingPageClose=o(),this.landingPageOpen=o()}static{this.properties={titleText:1,subtitleText:1,descriptionText:1,entryButtonText:1,iconImage:1,iconImageScale:1,iconImageAltText:1,alignment:0,disableTransition:5,backgroundImageSrc:1,open:5,entryButtonScale:1,fontFamily:3,enableSignIn:5,portal:0,oauthappid:1}}static{this.styles=y}willUpdate(t){t.has("open")&&(this.hasUpdated||!this.open)&&(this.open?this.landingPageOpen.emit():this.landingPageClose.emit()),this.checkEnableSignIn()}closeLandingPage(){this.open=!1}getAlignmentClass(){return` ${n.alignment}${this.alignment}`}getIconImageScale(){let{iconImageScale:t}=this,{s,m:p,l:g}=n.iconImageScale;return t==="l"?g:t==="s"?s:p}getContentStyle(){let t=u(this.fontFamily);return this.backgroundImageSrc?{fontFamily:t,backgroundSize:"cover",backgroundImage:`url("${this.backgroundImageSrc}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center"}:{fontFamily:t}}checkEnableSignIn(){if(this.enableSignIn){let t=localStorage.getItem("signing-in")?Number(localStorage.getItem("signing-in")):null;t!=null&&((Date.now()-t)/(60*1e3)<2&&(this.open=!1),localStorage.removeItem("signing-in"))}}render(){return this.renderLandingPageContent()}renderLandingPageContent(){let t=this.open?"":this.disableTransition?` ${n.closedNoTransition}`:` ${n.closed}`,s=this.getAlignmentClass(),p=this.disableTransition?` ${n.removeTransition}`:"",g=this._direction==="rtl"?` ${n.rtl}`:"",b=this.getContentStyle();return e`<div style=${_(b)} class=${`${n.BASE}${g}${s}${t}${p}`}><div class=${i(n.backgroundAction)}><slot name=background-action></slot></div><div class=${i(n.contentContainer)}>${this.renderIconImage()}${this.renderTitleText()}${this.renderSubtitleText()}${this.renderDescriptionText()}</div>${this.renderEntryButtonContainer()}</div>`}renderEntryButtonContainer(){return this.enableSignIn?this.renderLandingPageSignIn():e`<div class=${i(n.buttonContainer)}>${this.renderEntryButton()}<slot name=secondary-action></slot></div>`}renderLandingPageSignIn(){return e`<instant-apps-sign-in type=landingPage landing-page .portal=${this.portal} .oauthappid=${this.oauthappid} .closeLandingPage=${this.closeLandingPage.bind(this)}></instant-apps-sign-in>`}renderIconImage(){return this.iconImage?e`<img class=${`${n.iconImage}${this.getIconImageScale()}`} src=${this.iconImage??l} alt=${this.iconImageAltText??l}>`:null}renderTitleText(){return e`<h1 class=${i(n.titleText)}>${this.titleText}</h1>`}renderSubtitleText(){return e`<span class=${i(n.subtitleText)}>${this.subtitleText}</span>`}renderDescriptionText(){return e`<p class=${i(n.descriptionText)} .innerHTML=${this._sanitizer?.sanitize(this.descriptionText)??""??""}></p>`}renderEntryButton(){return e`<calcite-button class=${i(n.entryButton)} @click=${this.closeLandingPage} .scale=${this.entryButtonScale} appearance=outline-fill>${this.entryButtonText?this.entryButtonText:"Enter"}</calcite-button>`}};h("instant-apps-landing-page",r);export{r as InstantAppsLandingPage};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import{a as S}from"./PZM2KMF5.js";import{a as x}from"./UI44CDNQ.js";import{a as L}from"./HBU2D3OK.js";import{b as I}from"./Q4O2Y3MB.js";import"./MKMGVPCZ.js";import"./R5426IXX.js";import{D as $,E as v,F as k,H as p,h as F,i as l,l as h,p as b}from"./KSNTFOGZ.js";import"./6UZSVHNV.js";export default $arcgis.t(([T,m])=>{var D="instant-apps-filter-list calcite-mode-light",P="instant-apps-filter-list calcite-mode-dark",y=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(f){return f.replaceAll("'","''")}function g(f,e=!1){if(f){let t=new Date(f),i=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(e){let s=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return`${i} ${s}`}else return i}}function _(f){if(f!=null){f.value=["",""];let e=f.shadowRoot?.querySelectorAll("calcite-input");if(e!=null)for(let t of e)t.value=""}}var O=F`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__time-picker-input-container{display:grid;grid-template-columns:auto 32px;width:100%}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:first-child{grid-column:1;grid-row:1}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:last-child{grid-column:1;grid-row:2}.instant-apps-filter-list__time-picker-input-container calcite-action{grid-column:2;grid-row:1/span 2;height:64px;width:33px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media(prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,d={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",timeInputContainer:"instant-apps-filter-list__time-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},C=class extends k{constructor(){super(...arguments),this._messages=L({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=$(),this.panelEl=$(),this.isLayerExpUpdated=!1,this.isInitUpdateComplete=!1,this.baseClass=D,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=b(),this.filterUpdate=b()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=O}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(s=>s.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.isInitUpdateComplete=!1,this.handleLayerExpressionsUpdate())}async load(){this.baseClass=S(this.el)==="dark"?P:D,!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(e){e.has("view")&&this.handleWhenView(),e.has("layerExpressions")&&(this.isInitUpdateComplete=!1,this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(d.operatorDesc)} .heading=${this._messages[t]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(e,t){let i=this.panelEl.value?.querySelector(`[id='${e.id}']`);i&&(_(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t))}handleResetTimePicker(e,t){this.resetTimePicker(e),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}resetTimePicker(e){let t=this.panelEl.value?.querySelector(`[id='${e.id}-min']`),i=this.panelEl.value?.querySelector(`[id='${e.id}-max']`);!t||!i||(t.value=e.min,i.value=e.max)}initInput(e,t){let{type:i,numDisplayOption:s,displayOption:n}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t);if(i==="time-only")return this.renderTimePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:s,displayOption:n}=t,a="";i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":i==="number"||i==="range"?a="numberRange":i==="time-only"&&(a="timePicker"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&_(s);break}case"numberRange":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=t.min,s.maxValue=t.max);break}case"timePicker":t.range=void 0,this.resetTimePicker(t)}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.value?.querySelector(`[id='${t}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(e=>{if(!y.includes(e.type))return;let t=e;if(t.type==="point-cloud"){if(!this.initPointCloudFilters)return;t.filters=this.initPointCloudFilters[t.id]}else if(t.type==="map-image")t.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[t.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;t.definitionExpression=this.initDefExpressions[t.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return i?(await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:i})=>i===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e);if(!i)return!1;let{field:s}=t;if(s!=null)if(this.setExpressionFormat(i,t,s),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(n[`min${s}`],t.format.places),t.max=this.roundMaxNumberUp(n[`max${s}`],t.format.places)):(t.min=n[`min${s}`],t.max=n[`max${s}`]),t?.range&&Object.keys(t.range).length){let{min:a,max:r}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=g(a[`min${i}`]),t.max=g(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} '${r??o}'`:t.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateTimeExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=a[`min${i}`],t.max=a[`max${i}`],s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} TIME '${r??o}'`:t.definitionExpression=`${i} BETWEEN TIME '${r}' AND TIME '${o}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(e);if(!s)return!1;await this.getFeatureAttributes(s,t);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(t.codedValues=n,this.sortCodedValues(t),t.selectedFields?.length){let a=t.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return t.definitionExpression=`${t.field} IN (${a})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:s}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,s&&Object.keys(s).length?(e.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,t)}isLayerSupported(e){return e&&y.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let s=t?.field;if(s){let n=this.getInitDefExprFromLayer(e);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let s=await this.queryForFeatures(e,t,t.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let s=this.getQueryCount(e,i);return e!=null&&t>s}async handlePagination(e,t,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let u=t.clone();u.num=i,u.start=c,o.push(this.queryForFeatures(e,u,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(u=>{u?.length&&a.fields&&a.fields.push(...u)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((u,E)=>u.localeCompare(E)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((u,E)=>u-E):a.type==="coded-value"&&a.codedValues?this.sortCodedValues(a):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(s=>{let n=s.attributes?.[i];return n!=null&&n!==""})?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!y.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}.geometry;if(s){let n="extent"in s?s:T.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===t.field),n=s?.domain?.type;t.type=n==="coded-value"||n==="range"?n:t.type,await this.updateExpression(e,t,s)}))}async updateExpression(e,t,i){let s=await this.handleExpressionType(e,t,i);this.requestUpdate(),s&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"time-only":return await this.updateTimeExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateTimeExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateTimeExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,s){let n=this.getInitDefExprFromLayerExpression(t);(s||s===0)&&(i||i===0)&&(s===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=n?`(${n}) AND ${e?.field} BETWEEN ${s} AND ${i}`:`${e?.field} BETWEEN ${s} AND ${i}`,e.active=!0)),e.range={min:s,max:i}}handleCheckboxChange(e,t,i){let s=i.target;t.active=s.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(e,t,s,n),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:n,type:a}=e;if(e.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);e.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):a==="time-only"?`${n} IN (${r.map(o=>`TIME ${o}`).join(",")})`:`${n} IN (${r.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let s=i.target,[n,a]=s.valueAsDate,r=n?g(Math.floor(n.getTime()),!0):void 0,o=a?g(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}handleTimePickerRangeChange(e,t,i,s){let n=s.target,a=n.value;e.range==null&&(e.range={min:void 0,max:void 0}),i?e.max&&a>e.max?(e.range.min=e.max,n.value=e.range.min):e.min&&a<e.min?(e.range.min=e.min,n.value=e.range.min):e.range.min=a:e.max&&a>e.max?(e.range.max=e.max,n.value=e.range.max):e.min&&a<e.min?(e.range.max=e.min,n.value=e.range.max):e.range.max=a,(e.range.min||e.range.max)&&(e.definitionExpression=this.constructTimeDefinitionExpression(e.field,e.range.min,e.range.max),e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}constructTimeDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN TIME '${t}' AND TIME '${i}'`:`${e} > TIME '${t}'`:`${e} < TIME '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(document.location.search).get("filter");if(!e){this.filterCount=0;return}let t=e.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(t)}applyFilters(e){let t=0;return e.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:s,selectedFields:n,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"||a==="time-only"?{type:"range",layerId:e.id,expressionId:i.toString(),range:s}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:s}=e,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(n,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(e),a=t?.length>0&&n!=null&&n!==""?`(${t.join(s)}) AND (${n})`:t.length>0?t.join(s):n;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),await this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.isInitUpdateComplete||!this.view?.ready||(this.updateInitExpressions(),this.handleURLParams(),this.initExpressions())}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.value?.querySelector(t),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(e){let t=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,i=t.type==="map-image"?t.findSublayerById(e.sublayerId):t;if(i&&i.type!=="point-cloud"&&y.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let s of e.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&t.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let s;if(!String(e).includes("e"))s=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[n,a]=String(e).split("e").map(o=>Number(o)),r=a+t;s=Math[i](+`${n}e${r}`)*Math.pow(10,-t)}return+s.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let s=e?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(t.format=s.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let t=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===e.id);return t?.type==="map-image"?t?.findSublayerById(e.sublayerId):t}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=m.convertDateFormatToIntlOptions("short-date-long-time");return m.formatDate(t,i)}if(e.type==="time-only"){let i=m.convertDateFormatToIntlOptions("long-time");return m.formatTimeOnly(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),s=new Date(e),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(!this.view?.map)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables.toArray()??[]).forEach(t=>{if(!y.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}}),this.isInitUpdateComplete=!0}sortCodedValues(e){typeof e.fields?.[0]=="number"?e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s-n}):e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s.localeCompare(n)})}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${v(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${x("filter-container",l`<div class=${p(d.filterContainer)}>${e}${t}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(e){let{id:t}=e;return e.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?x(`${t}-${s}`,l`<div class=${p(d.filterItemContainer)}><div class=${p(d.filterItemTitle)}><p>${i.name}</p></div><div class=${p(d.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??h} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,e,i)}></calcite-checkbox></div></div>`):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(e);return x(e.id,l`<calcite-block .heading=${e.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${t}</calcite-block>`)}renderCombobox(e,t){return x("combo-select",l`<label class=${p(d.filterUIItemContainer)}><span>${t.name}</span><calcite-combobox id=${t.id.toString()??h} @calciteComboboxChange=${this.handleComboSelect.bind(this,t,e)} .label=${t.name} .placeholder=${t.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${t.fields?.map((i,s)=>this.renderComboboxItem(t,i,s))}</calcite-combobox></label>`)}renderComboboxItem(e,t,i){let s=this.createLabel(e,t),n=e?.selectedFields?.includes(t)??!1;return x(`${s}-${i}`,l`<calcite-combobox-item .value=${t} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(e,t){let i=t?.min,s=t?.max,n=t?.step?t.step:1,a=i!=null&&s!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:s,u=[o,c];return a?x(t?.id.toString(),l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.numberInputContainer)}><calcite-slider id=${t?.id.toString()??h} @calciteSliderChange=${this.handleSliderChange.bind(this,t,e)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${u} .groupSeparator=${t?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(e,t){let{min:i,max:s}=t,n=[t?.range?.min,t?.range?.max];return i!=null&&s!=null?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.dateInputContainer)}><calcite-input-date-picker id=${t?.id.toString()??h} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,t,e)} .min=${i} .max=${s} calendars=1 overlay-positioning=fixed lang=${m.getLocale()??"en"??h} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??h} scale=s></calcite-action></div></label>`:void 0}renderTimePicker(e,t){let{min:i,max:s,range:n}=t,a=i!=null&&s!=null,r=n?.min!=null?n.min:i,o=n?.max!=null?n.max:s;return a?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.timeInputContainer)}><calcite-input-time-picker .id=${`${t?.id.toString()}-min`} .value=${r} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!0)}></calcite-input-time-picker><calcite-input-time-picker .id=${`${t?.id.toString()}-max`} .value=${o} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!1)}></calcite-input-time-picker><calcite-action @click=${this.handleResetTimePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetTimePicker} title=${this._messages.resetTimePicker??h} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let e=this.closeBtnText??this._messages.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(d.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${t} @click=${this.handleResetFilter} ${v(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${t} kind=brand @click=${this.closeBtnOnClick}>${e}</calcite-button>`:void 0}</div>`}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l`<calcite-action id=${t??h} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??h} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,e)}></calcite-action>`:void 0}};I("instant-apps-filter-list",C);return C},"geometry/support/jsonUtils","intl")
3
+ v1.2.0-next.37 */
4
+ import{a as S}from"./OKT4Y73O.js";import{a as x}from"./ZE2JTU52.js";import{a as L}from"./DPLAIA57.js";import{b as I}from"./G4KYQBYG.js";import"./TWK424K2.js";import"./IG7YJRSC.js";import{D as $,E as v,F as k,H as p,h as F,i as l,l as h,p as b}from"./MDHPRL5E.js";import"./NAEBOEYF.js";export default $arcgis.t(([T,m])=>{var D="instant-apps-filter-list calcite-mode-light",P="instant-apps-filter-list calcite-mode-dark",y=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(f){return f.replaceAll("'","''")}function g(f,e=!1){if(f){let t=new Date(f),i=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(e){let s=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return`${i} ${s}`}else return i}}function _(f){if(f!=null){f.value=["",""];let e=f.shadowRoot?.querySelectorAll("calcite-input");if(e!=null)for(let t of e)t.value=""}}var O=F`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__time-picker-input-container{display:grid;grid-template-columns:auto 32px;width:100%}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:first-child{grid-column:1;grid-row:1}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:last-child{grid-column:1;grid-row:2}.instant-apps-filter-list__time-picker-input-container calcite-action{grid-column:2;grid-row:1/span 2;height:64px;width:33px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media(prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,d={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",timeInputContainer:"instant-apps-filter-list__time-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},C=class extends k{constructor(){super(...arguments),this._messages=L({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=$(),this.panelEl=$(),this.isLayerExpUpdated=!1,this.isInitUpdateComplete=!1,this.baseClass=D,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=b(),this.filterUpdate=b()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=O}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(s=>s.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.isInitUpdateComplete=!1,this.handleLayerExpressionsUpdate())}async load(){this.baseClass=S(this.el)==="dark"?P:D,!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(e){e.has("view")&&this.handleWhenView(),e.has("layerExpressions")&&(this.isInitUpdateComplete=!1,this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(d.operatorDesc)} .heading=${this._messages[t]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(e,t){let i=this.panelEl.value?.querySelector(`[id='${e.id}']`);i&&(_(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t))}handleResetTimePicker(e,t){this.resetTimePicker(e),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}resetTimePicker(e){let t=this.panelEl.value?.querySelector(`[id='${e.id}-min']`),i=this.panelEl.value?.querySelector(`[id='${e.id}-max']`);!t||!i||(t.value=e.min,i.value=e.max)}initInput(e,t){let{type:i,numDisplayOption:s,displayOption:n}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t);if(i==="time-only")return this.renderTimePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:s,displayOption:n}=t,a="";i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":i==="number"||i==="range"?a="numberRange":i==="time-only"&&(a="timePicker"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&_(s);break}case"numberRange":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=t.min,s.maxValue=t.max);break}case"timePicker":t.range=void 0,this.resetTimePicker(t)}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.value?.querySelector(`[id='${t}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(e=>{if(!y.includes(e.type))return;let t=e;if(t.type==="point-cloud"){if(!this.initPointCloudFilters)return;t.filters=this.initPointCloudFilters[t.id]}else if(t.type==="map-image")t.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[t.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;t.definitionExpression=this.initDefExpressions[t.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return i?(await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:i})=>i===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e);if(!i)return!1;let{field:s}=t;if(s!=null)if(this.setExpressionFormat(i,t,s),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(n[`min${s}`],t.format.places),t.max=this.roundMaxNumberUp(n[`max${s}`],t.format.places)):(t.min=n[`min${s}`],t.max=n[`max${s}`]),t?.range&&Object.keys(t.range).length){let{min:a,max:r}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=g(a[`min${i}`]),t.max=g(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} '${r??o}'`:t.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateTimeExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e);if(!n)return!1;let a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=a[`min${i}`],t.max=a[`max${i}`],s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} TIME '${r??o}'`:t.definitionExpression=`${i} BETWEEN TIME '${r}' AND TIME '${o}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(e);if(!s)return!1;await this.getFeatureAttributes(s,t);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(t.codedValues=n,this.sortCodedValues(t),t.selectedFields?.length){let a=t.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return t.definitionExpression=`${t.field} IN (${a})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:s}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,s&&Object.keys(s).length?(e.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,t)}isLayerSupported(e){return e&&y.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let s=t?.field;if(s){let n=this.getInitDefExprFromLayer(e);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let s=await this.queryForFeatures(e,t,t.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let s=this.getQueryCount(e,i);return e!=null&&t>s}async handlePagination(e,t,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let u=t.clone();u.num=i,u.start=c,o.push(this.queryForFeatures(e,u,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(u=>{u?.length&&a.fields&&a.fields.push(...u)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((u,E)=>u.localeCompare(E)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((u,E)=>u-E):a.type==="coded-value"&&a.codedValues?this.sortCodedValues(a):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(s=>{let n=s.attributes?.[i];return n!=null&&n!==""})?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!y.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}.geometry;if(s){let n="extent"in s?s:T.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===t.field),n=s?.domain?.type;t.type=n==="coded-value"||n==="range"?n:t.type,await this.updateExpression(e,t,s)}))}async updateExpression(e,t,i){let s=await this.handleExpressionType(e,t,i);this.requestUpdate(),s&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"time-only":return await this.updateTimeExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateTimeExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateTimeExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,s){let n=this.getInitDefExprFromLayerExpression(t);(s||s===0)&&(i||i===0)&&(s===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=n?`(${n}) AND ${e?.field} BETWEEN ${s} AND ${i}`:`${e?.field} BETWEEN ${s} AND ${i}`,e.active=!0)),e.range={min:s,max:i}}handleCheckboxChange(e,t,i){let s=i.target;t.active=s.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(e,t,s,n),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:n,type:a}=e;if(e.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);e.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):a==="time-only"?`${n} IN (${r.map(o=>`TIME ${o}`).join(",")})`:`${n} IN (${r.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let s=i.target,[n,a]=s.valueAsDate,r=n?g(Math.floor(n.getTime()),!0):void 0,o=a?g(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}handleTimePickerRangeChange(e,t,i,s){let n=s.target,a=n.value;e.range==null&&(e.range={min:void 0,max:void 0}),i?e.max&&a>e.max?(e.range.min=e.max,n.value=e.range.min):e.min&&a<e.min?(e.range.min=e.min,n.value=e.range.min):e.range.min=a:e.max&&a>e.max?(e.range.max=e.max,n.value=e.range.max):e.min&&a<e.min?(e.range.max=e.min,n.value=e.range.max):e.range.max=a,(e.range.min||e.range.max)&&(e.definitionExpression=this.constructTimeDefinitionExpression(e.field,e.range.min,e.range.max),e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}constructTimeDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN TIME '${t}' AND TIME '${i}'`:`${e} > TIME '${t}'`:`${e} < TIME '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(document.location.search).get("filter");if(!e){this.filterCount=0;return}let t=e.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(t)}applyFilters(e){let t=0;return e.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:s,selectedFields:n,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"||a==="time-only"?{type:"range",layerId:e.id,expressionId:i.toString(),range:s}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:s}=e,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(n,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(e),a=t?.length>0&&n!=null&&n!==""?`(${t.join(s)}) AND (${n})`:t.length>0?t.join(s):n;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),await this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.isInitUpdateComplete||!this.view?.ready||(this.updateInitExpressions(),this.handleURLParams(),this.initExpressions())}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.value?.querySelector(t),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(e){let t=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,i=t.type==="map-image"?t.findSublayerById(e.sublayerId):t;if(i&&i.type!=="point-cloud"&&y.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let s of e.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&t.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let s;if(!String(e).includes("e"))s=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[n,a]=String(e).split("e").map(o=>Number(o)),r=a+t;s=Math[i](+`${n}e${r}`)*Math.pow(10,-t)}return+s.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let s=e?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(t.format=s.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let t=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===e.id);return t?.type==="map-image"?t?.findSublayerById(e.sublayerId):t}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=m.convertDateFormatToIntlOptions("short-date-long-time");return m.formatDate(t,i)}if(e.type==="time-only"){let i=m.convertDateFormatToIntlOptions("long-time");return m.formatTimeOnly(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),s=new Date(e),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(!this.view?.map)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables.toArray()??[]).forEach(t=>{if(!y.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}}),this.isInitUpdateComplete=!0}sortCodedValues(e){typeof e.fields?.[0]=="number"?e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s-n}):e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s.localeCompare(n)})}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${v(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${x("filter-container",l`<div class=${p(d.filterContainer)}>${e}${t}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(e){let{id:t}=e;return e.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?x(`${t}-${s}`,l`<div class=${p(d.filterItemContainer)}><div class=${p(d.filterItemTitle)}><p>${i.name}</p></div><div class=${p(d.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??h} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,e,i)}></calcite-checkbox></div></div>`):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(e);return x(e.id,l`<calcite-block .heading=${e.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${t}</calcite-block>`)}renderCombobox(e,t){return x("combo-select",l`<label class=${p(d.filterUIItemContainer)}><span>${t.name}</span><calcite-combobox id=${t.id.toString()??h} @calciteComboboxChange=${this.handleComboSelect.bind(this,t,e)} .label=${t.name} .placeholder=${t.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${t.fields?.map((i,s)=>this.renderComboboxItem(t,i,s))}</calcite-combobox></label>`)}renderComboboxItem(e,t,i){let s=this.createLabel(e,t),n=e?.selectedFields?.includes(t)??!1;return x(`${s}-${i}`,l`<calcite-combobox-item .value=${t} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(e,t){let i=t?.min,s=t?.max,n=t?.step?t.step:1,a=i!=null&&s!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:s,u=[o,c];return a?x(t?.id.toString(),l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.numberInputContainer)}><calcite-slider id=${t?.id.toString()??h} @calciteSliderChange=${this.handleSliderChange.bind(this,t,e)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${u} .groupSeparator=${t?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(e,t){let{min:i,max:s}=t,n=[t?.range?.min,t?.range?.max];return i!=null&&s!=null?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.dateInputContainer)}><calcite-input-date-picker id=${t?.id.toString()??h} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,t,e)} .min=${i} .max=${s} calendars=1 overlay-positioning=fixed lang=${m.getLocale()??"en"??h} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??h} scale=s></calcite-action></div></label>`:void 0}renderTimePicker(e,t){let{min:i,max:s,range:n}=t,a=i!=null&&s!=null,r=n?.min!=null?n.min:i,o=n?.max!=null?n.max:s;return a?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.timeInputContainer)}><calcite-input-time-picker .id=${`${t?.id.toString()}-min`} .value=${r} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!0)}></calcite-input-time-picker><calcite-input-time-picker .id=${`${t?.id.toString()}-max`} .value=${o} overlay-positioning=fixed lang=${m.getLocale()??"en"??h} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!1)}></calcite-input-time-picker><calcite-action @click=${this.handleResetTimePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetTimePicker} title=${this._messages.resetTimePicker??h} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let e=this.closeBtnText??this._messages.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(d.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${t} @click=${this.handleResetFilter} ${v(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${t} kind=brand @click=${this.closeBtnOnClick}>${e}</calcite-button>`:void 0}</div>`}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l`<calcite-action id=${t??h} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??h} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,e)}></calcite-action>`:void 0}};I("instant-apps-filter-list",C);return C},"geometry/support/jsonUtils","intl")
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.37 */
4
+ import f from"./36ZEDQEQ.js";import e from"./MRGELRV4.js";import b from"./RKQ7SMUL.js";import a from"./KPEDGFTA.js";import{K as m,M as _,N as k,q as g,sa as L}from"./PL2C3G4A.js";import{k as M}from"./HSNKQLTD.js";import{a as R}from"./WI2CLU5D.js";import{b as $}from"./PDMV5IT4.js";import{D as c,E as d,F as y,H as p,I as w,J as v,h as x,i as s,p as u}from"./MDHPRL5E.js";export default $arcgis.t(([{b:f,c:P,e:I},{b:A,c:S},{a:E},{a:C,c:T}])=>{var O=x`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */.display-flex{display:flex}.flex-direction-row{flex-direction:row}.flex-direction-column{flex-direction:column}.cursor-default{cursor:default}solution-details-card[id*=you-may-also-like]{width:240px}.border-bottom{border-bottom-color:var(--calcite-color-border-1);border-bottom-width:var(--calcite-spacing-px);border-bottom-style:solid}ul{list-style-type:disc;margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}ul ul{list-style-type:circle}li{margin:var(--calcite-spacing-sm) var(--calcite-spacing-none)}calcite-label{--calcite-label-margin-bottom: var(--calcite-spacing-none)}.padding-1{padding:var(--calcite-spacing-lg)}.padding-1-5{padding:var(--calcite-spacing-xl)}.padding-2px{padding:var(--calcite-spacing-base)}.padding-bottom-1{padding-bottom:var(--calcite-spacing-lg)}.padding-top-md{padding-top:var(--calcite-spacing-md)}.padding-bottom-1-5{padding-bottom:var(--calcite-spacing-xxl)}.padding-top-1{padding-top:var(--calcite-spacing-lg)}.padding-top-1-5{padding-top:var(--calcite-spacing-xxl)}.padding-top-1-2{padding-top:var(--calcite-spacing-sm)}.padding-end-1{padding-inline-end:var(--calcite-spacing-lg)}.padding-end-2{padding-inline-end:var(--calcite-spacing-xxxl)}.padding-start-1{padding-inline-start:var(--calcite-spacing-lg)}.margin-bottom-1{margin-bottom:var(--calcite-spacing-lg)}.margin-bottom-1-5{margin-bottom:var(--calcite-spacing-xxl)}.margin-end-1{margin-inline-end:var(--calcite-spacing-lg)}.margin-top-0{margin-top:var(--calcite-spacing-none)}.margin-top-1{margin-top:var(--calcite-spacing-lg)}.margin-sides-0-5{margin-left:var(--calcite-spacing-sm);margin-right:var(--calcite-spacing-sm)}.margin-block-start-end-0{margin-block-start:var(--calcite-spacing-none);margin-block-end:var(--calcite-spacing-none)}.align-self-center{align-self:center;padding:5px;--calcite-fab-shadow: #FFFFFF00}.align-items-center{align-items:center}.align-items-baseline{align-items:baseline}.button-width{width:260px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.button-width{width:auto}}.image-width{width:395px;flex-grow:0;flex-shrink:0}@media(max-width:1280px){.image-width{flex-grow:2;flex-shrink:.5}}.width-full{width:100%}.card-group{overflow:hidden}calcite-card{width:450px;--calcite-card-border-color: transparent}@media(max-width:1496px){calcite-card{width:calc(100% / 3 - .5rem)}}@media(max-width:1100px){calcite-card{width:calc(50% - .5rem)}}@media(max-width:550px){calcite-card{width:100%}}.max-height-300{max-height:300px}.display-none{display:none}.cursor-pointer{cursor:pointer}calcite-card:hover img{-webkit-filter:brightness(50%);filter:brightness(50%);-webkit-transition:all 1s ease;-moz-transition:all 1s ease;-o-transition:all 1s ease;-ms-transition:all 1s ease;transition:all 1s ease}calcite-card:hover .hover-text{opacity:1;color:#fff}calcite-card:hover{border:var(--calcite-spacing-base) solid var(--calcite-ui-brand);box-sizing:border-box;cursor:pointer;padding:var(--calcite-spacing-base)}.hover-text{transition:.5s ease;opacity:0;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);text-align:center;display:flex;flex-direction:row;align-items:center;height:100%;font-size:var(--calcite-spacing-xl)}.card-image-wrap{width:100%;position:relative;margin-bottom:0;-webkit-box-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto}.card-image{width:100%;display:block}video,img{max-width:100%;height:auto}img{overflow-clip-margin:content-box;overflow:clip}.margin-inline-unset{margin-inline:unset}.collapsible-div{overflow:hidden;transition:max-height .3s ease-in-out}.collapsible-div.expanded{max-height:100%}.back-color-override{--calcite-panel-background-color: var(--calcite-color-foreground-2)}.back-color-override-1{background-color:var(--calcite-color-foreground-1)}.title-font{font-size:1.8rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.heading-font{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.line-height-xxl{line-height:var(--calcite-spacing-xxl)}.font-1{font-size:var(--calcite-spacing-lg)}.font-color-1{color:var(--calcite-color-text-1)}h1{font-weight:unset;margin:var(--calcite-spacing-none);padding:var(--calcite-spacing-none)}.item-padding{--calcite-internal-accordion-item-padding: var(--calcite-spacing-xl)}.accordion-bg{--calcite-accordion-background-color: var(--calcite-color-foreground-1)}.table-cell{font-size:var(--calcite-spacing-lg);color:var(--calcite-color-text-1)}calcite-table-header{font-weight:var(--calcite-font-weight-medium);--calcite-internal-table-cell-font-size: var(--calcite-font-size-md)}`,b=class extends y{constructor(){super(),this._showScreenshotsShowMore=!1,this._showYouMayAlsoLikeShowMore=!1,this._isScreenshotsRowExpanded=!1,this._isYouMayAlsoLikeRowExpanded=!1,this._screenshotsRowBaseHeight=340,this._templates=[],this._translations=R({name:"solution-details-panel",blocking:!0}),this._youMayAlsoLikeBaseHeight=340,this._allCards=[],this._authContextConsumer=f({context:I,subscribe:!0}),this._configureLearnMore="",this._customDeploymentMappings={},this._deployDialogRef=c(),this._deployingDialogRef=c(),this._overviewAccordionItemElement=c(),this._privilegePopoverRef=c(),this._privileges=[],this._regexFsUrl="https?:\\/\\/.+FeatureServer\\b",this._regexID="\\b[0-9A-F]{32}\\b",this._releaseNotesAccordionItemElement=c(),this._relatedResourcesAccordionItemElement=c(),this._screenshotsAccordionItemElement=c(),this._screenshotsDialogRef=c(),this._screenshotsElement=c(),this._termsOfUseAccordionItemElement=c(),this._userOptions=[],this._userSessionContextConsumer=f({context:P,subscribe:!0}),this._youMayAlsoLikeAccordionItemElement=c(),this._youMayAlsoLikeElement=c(),this._signInParamValue=null,this.templatesFetched=u(),this.itemPropertiesFetched=u(),this.sortTypeChanged=u(),this.tokenRefreshed=u(),this.listenOn(window,"detailsCardSelected",this._detailsCardSelected),this.listenOn(window,"allCardsFetched",this._allCardsFetched),this.listenOn(window,"deployAppTabSelected",this._handleDeployAppTabSelected)}static{this.properties={card:0,_showScreenshotsShowMore:16,_showYouMayAlsoLikeShowMore:16,_isScreenshotsRowExpanded:16,_isYouMayAlsoLikeRowExpanded:16,_itemProperties:16,_missingPrivilegeMessages:16,_screenshotsRowBaseHeight:16,_templates:16,_translations:16,_youMayAlsoLikeBaseHeight:16}}static{this.styles=O}async connectedCallback(){super.connectedCallback(),this.listenOn(window,"calciteTabChange",this._cleanupPanel),this.listenOn(window,"detailsCardSelected",this._cleanupPanel)}loaded(){this._signInParamValue===null&&this._authContextConsumer.value?.SignInParam&&(this._signInParamValue=this._authContextConsumer.value.SignInParam),this._resizeObserver=new ResizeObserver(async()=>{this._onResize()}),this._screenshotsElement.value&&this._resizeObserver.observe(this._screenshotsElement.value)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver?.disconnect()}render(){let e="padding-bottom-1-5",t=this._getRelatedResources(),i=this._getYouMayAlsoLikeCards();return s`<h1><calcite-panel class="back-color-override padding-top-1"><div class=${`${e} padding-1-5 back-color-override-1 margin-bottom-1-5`} id=solution-details-row>${this._getSolutionRow()}</div><div class=${p(e)}>${this._getScreenshotsRow()}</div><div class=${p(e)}>${this._getOverviewRow()}</div><div class=${p(e)}>${this._getReleaseNotesRow()}</div>${t.length>0?s`<div class=${p(e)}>${this._getRelatedResourcesRow(t)}</div>`:""}${i.length>0?s`<div class=${p(e)}>${this._getYouMayAlsoLikeRow(i)}</div>`:""}<div class=${p(e)}>${this._getTermsOfUseRow()}</div><solution-deploy-dialog .card=${this.card} @deployFailed=${this._closeDialogs} @deployProgressEnd=${this._closeDialogs} @deployProgressStart=${this._deployProgressStart} @deployProgressUpdated=${this._deployProgessUpdated} id=solutionDeployDialog .userOptions=${this._userOptions} ${d(this._deployDialogRef)}></solution-deploy-dialog><solution-snapshot-gallery .card=${this.card} id=solutionSnapshotGallery .itemProperties=${this._itemProperties} ${d(this._screenshotsDialogRef)}></solution-snapshot-gallery><solution-deploying-dialog .card=${this.card} ${d(this._deployingDialogRef)}></solution-deploying-dialog></calcite-panel></h1>`}updated(){setTimeout(()=>{let e=this._getYouMayAlsoLikeCards(),t=340;for(let i=0;i<e.length;i++){let a=this.el.shadowRoot?.getElementById(`you-may-also-like-${i}`),o=a?.offsetHeight?a.offsetHeight+40:0;o>t&&(t=o)}this._youMayAlsoLikeBaseHeight=t,this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight},100)}_checkUrlParametersForAutoDeployment(){if(this._signInParamValue==="deploy"){let e=this._missingPrivilegeMessages&&(this._missingPrivilegeMessages.leadingMessages.length>0||this._missingPrivilegeMessages.bulletedMessages.length>0||this._missingPrivilegeMessages.trailingMessages.length>0);this._authContextConsumer.value?.IsSignedIn&&this.card&&this._deployDialogRef.value&&!e&&(this._signInParamValue=null,this._openDeploy())}}_getSolutionRow(){let e=this.card?.thumbnailUrl.replace(/w=\d+/,"w=400"),t=this._missingPrivilegeMessages?.leadingMessages||[],i=t.length>0,a=this._missingPrivilegeMessages?.bulletedMessages||[],o=a.length>0,l=this._missingPrivilegeMessages?.trailingMessages||[],r=l.length>0;return s`<div class="display-flex flex-direction-row"><div class="padding-end-2 image-width"><img alt=${this.card?.title??v} src=${e??v}></div><div class="display-flex flex-direction-row">${this._getTextSection(i,o,r,t,a,l)}${this._getButtons(i||o||r,this._authContextConsumer.value?.IsEnterprisePortal)}</div></div>`}_getTextSection(e,t,i,a,o,l){return s`<div class="display-flex flex-direction-column padding-end-1"><div class="display-flex flex-direction-row align-items-baseline"><h2 class="padding-top-1 title-font margin-top-0 margin-bottom-1-5">${this.card?.title}</h2>${this.card?.categories?.some(r=>r.includes("New Release"))&&s`<calcite-chip class="margin-top-1 margin-bottom-1-5 margin-sides-0-5" kind=brand .label=${this._translations.new} scale=m icon=mega-phone>${this._translations.new}</calcite-chip>`||""}</div><calcite-label scale=l class="font-1 padding-end-1">${this.card?.snippet}</calcite-label>${e||t||i?s`<div class="display-flex flex-direction-row padding-top-1">${this._getMissingPrivilegesNotice(a,o,l)}</div>`:""}</div>`}_getButtons(e,t){let i=this._itemProperties?.demoURL||"",a=i?"":"display-none";return s`<div class="display-flex flex-direction-column button-width"><calcite-button class="padding-bottom-1" .disabled=${e} icon-end=arrow-bold-right icon-flip-rtl=end @click=${()=>this._openDeploy()} scale=l>${this._translations.deploy}</calcite-button><calcite-button appearance=outline-fill kind=neutral class=${`padding-bottom-1 ${a}`} @click=${()=>this._openUrl(i)} scale=l>${this._translations.watchDemo}</calcite-button><calcite-button appearance=outline-fill kind=neutral class="padding-bottom-1" @click=${()=>this._openUrl(this.card?.learnMoreUrl||"")} scale=l>${this._translations.learnMore}</calcite-button>${!t&&s`<solution-social-share button-appearance=outline-fill class="padding-bottom-1" share-button-kind=neutral .shareButtonText=${this._translations.share} share-button-scale=l></solution-social-share>`||""}</div>`}_getMissingPrivilegesNotice(e,t,i){let a="solutions-missing-privileges-notice",o=this._translations.missingPrivilegesPopup.missingLicensingOrPrivileges;return s`<div><calcite-notice class="margin-inline-unset" kind=warning open><div slot=message>${`${o}`}</div><calcite-action icon=information id=${a} slot=actions-end .text=${o}></calcite-action></calcite-notice><calcite-popover closable .label=${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading} overlay-positioning=fixed placement=bottom reference-element=solutions-missing-privileges-notice ${d(this._privilegePopoverRef)}><div class="padding-1 display-flex flex-direction-column"><span class="padding-bottom-1">${this._translations.missingPrivilegesPopup.missingPrivilegesListHeading}</span>${this._getSpanMessages(e,"padding-bottom-1")}${this._getBulletedMessages(t)}${this._getSpanMessages(i,"padding-top-1")}</div></calcite-popover></div>`}_getSpanMessages(e,t){return e.length>0?e.map(i=>s`<span class=${p(t)}>${i}</span>`):""}_getBulletedMessages(e){return e.length>0?s`<ul>${e.map(t=>s`<li>${t}</li>`)}</ul>`:""}_getScreenshotsRow(){let e=this._isScreenshotsRowExpanded?this._translations.showLess:this._translations.showMore,t=this._isScreenshotsRowExpanded?"arrow-up":"arrow-down",i=this._showScreenshotsShowMore?"":"display-none";return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._screenshotsAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.screenshots}</div><calcite-panel><div class="display-flex flex-direction-column back-color-override-1"><div class="collapsible-div max-height-300" id=screenshots-subsection ${d(this._screenshotsElement)}>${this._getScreenshots()}</div><calcite-fab appearance=outline-fill class=${`align-self-center ${i}`} .icon=${t} kind=neutral @click=${()=>{this._screenshotsElement.value?.classList.toggle("expanded"),this._isScreenshotsRowExpanded=this._screenshotsElement.value.classList.contains("expanded")}} .text=${e} text-enabled></calcite-fab></div></calcite-panel></calcite-accordion-item></calcite-accordion>`}_getScreenshots(){let e=this._itemProperties?.preview||[];return s`<calcite-card-group class="card-group" .label=${this._translations.screenshots}>${e.reduce((t,i)=>(this.card?.id&&i.format==="image"?t.push(s`<calcite-card class="cursor-pointer" .label=${i.alt} @click=${()=>this._openScreenshotGallery(i)}><div class="card-image-wrap" slot=thumbnail><img alt=${i.alt??v} class="thumbnail card-image" slot=thumbnail src=${S(this.card.id||"",i.name,this._authContextConsumer.value)??v}><div class="hover-text">${this._translations.openInGallery}</div></div></calcite-card>`):t.push(""),t),[])}</calcite-card-group>`}_openScreenshotGallery(e){let t=this._screenshotsDialogRef.value;t&&(t.screenshot=e,t.open=!0)}_getOverviewRow(){return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._overviewAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.solutionOverview}</div>${this._getDescriptionRow()}${this._getInformationProductsRow()}</calcite-accordion-item></calcite-accordion>`}_getDescriptionRow(){return s`<div class="display-flex flex-direction-column"><p class="font-color-1 font-1 margin-top-0 line-height-xxl" .innerHTML=${this.card?.description??""}></p></div>`}_getInformationProductsRow(){return s`<div class="display-flex flex-direction-column padding-top-md font-1 line-height-xxl font-color-1"><span>${this.card?.title?this._translations.informationProductsSubText.replace("{{solutionTitle}}",this.card.title):""}</span><calcite-table bordered caption class="padding-top-1">${this._getInformationTableHeaderRow()}${this._getInformationTableRows()}</calcite-table><p>${this._translations.informationProductsFooterText}</p></div>`}_getInformationTableHeaderRow(){return s`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.item}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header><calcite-table-header .heading=${this._translations.minimumUserType}></calcite-table-header></calcite-table-row>`}_getInformationTableRows(){return(this._itemProperties?.infoProducts||[]).map(e=>s`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${g(e.item)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${g(e.description)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${g(e.userType)??""}></p></calcite-table-cell></calcite-table-row>`)}_getReleaseNotesRow(){return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._releaseNotesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.releaseNotes}</div><div class="display-flex flex-direction-column"><calcite-table bordered caption>${this._getReleaseNotesTableHeaderRow()}${this._getReleaseNotesTableRows()}</calcite-table></div></calcite-accordion-item></calcite-accordion>`}_getReleaseNotesTableHeaderRow(){return s`<calcite-table-row slot=table-header><calcite-table-header .heading=${this._translations.version}></calcite-table-header><calcite-table-header .heading=${this._translations.description}></calcite-table-header></calcite-table-row>`}_getReleaseNotesTableRows(){return(this._itemProperties?.releaseNotes||[])?.map(e=>s`<calcite-table-row><calcite-table-cell><p class="table-cell" .innerHTML=${g(e.version)??""}></p></calcite-table-cell><calcite-table-cell><p class="table-cell" .innerHTML=${g(e.description)??""}></p></calcite-table-cell></calcite-table-row>`)}_getRelatedResourcesRow(e){return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._relatedResourcesAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.relatedResources}</div><div class="display-flex flex-direction-row">${e.map(t=>{console.log(t),s`<solution-resource-card></solution-resource-card>`})}</div></calcite-accordion-item></calcite-accordion>`}_getRelatedResources(){return[]}_getYouMayAlsoLikeRow(e){let t=this._showYouMayAlsoLikeShowMore?"":"display-none",i=this._isYouMayAlsoLikeRowExpanded?this._translations.showLess:this._translations.showMore,a=this._isYouMayAlsoLikeRowExpanded?"arrow-up":"arrow-down",o=this._isYouMayAlsoLikeRowExpanded?"":{height:`${this._youMayAlsoLikeBaseHeight}px`};return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._youMayAlsoLikeAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>${this._translations.youMayAlsoLike}</div><div class="display-flex flex-direction-column"><div class="collapsible-div" id=you-may-also-like-subsection style=${w(o)} ${d(this._youMayAlsoLikeElement)}><div class="display-flex flex-direction-row"><calcite-card-group class="card-group" .label=${this._translations.youMayAlsoLike}>${e.map((l,r)=>s`<solution-details-card .id=${`you-may-also-like-${r}`} .card=${l} class="padding-2px"></solution-details-card>`)}</calcite-card-group></div></div><calcite-fab appearance=outline-fill class=${`align-self-center ${t}`} .icon=${a} kind=inverse @click=${()=>{this._youMayAlsoLikeElement.value?.classList.toggle("expanded"),this._isYouMayAlsoLikeRowExpanded=this._youMayAlsoLikeElement.value.classList.contains("expanded")}} .text=${i} text-enabled></calcite-fab></div></calcite-accordion-item></calcite-accordion>`}_getYouMayAlsoLikeCards(){let e=this._itemProperties?.relatedSolutions||[];return this._allCards.filter(t=>e.indexOf(t.deployCommonId)>-1)}_getTermsOfUseRow(){return s`<calcite-accordion class="accordion-bg " icon-position=start scale=l appearance=transparent><calcite-accordion-item class="item-padding" expanded ${d(this._termsOfUseAccordionItemElement)}><div class="margin-block-start-end-0 heading-font" slot=content-start>Terms of Use</div><div class="display-flex flex-direction-column"><p class="font-color-1 font-1 margin-top-0 line-height-xxl" .innerHTML=${this._translations.copyrightHeading??""}></p><p class="font-color-1 font-1 margin-top-0 line-height-xxl" .innerHTML=${this._translations.apacheLicense??""}></p><calcite-link class="margin-top-0 line-height-xxl" .href=${this._translations.apacheLicenseUrl}>${this._translations.apacheLicenseUrl}</calcite-link><p class="font-color-1 font-1 margin-top-1 line-height-xxl" .innerHTML=${this._translations.asIsBasis??""}></p></div></calcite-accordion-item></calcite-accordion>`}_openDeploy(){if(this._authContextConsumer.value.IsSignedIn){let e=this._deployDialogRef.value;e&&(e.userOptions=this._userOptions,e.open=!0)}else this._authContextConsumer.value.signIn("deploy")}_openUrl(e){window.open(e,"_blank")}async _detailsCardSelected(e){this.card=e.detail,this._onResize(),this._missingPrivilegeMessages=void 0,await this._getItemData(),this._expandAccordions()}_expandAccordions(){this._overviewAccordionItemElement.value&&(this._overviewAccordionItemElement.value.expanded=!0),this._releaseNotesAccordionItemElement.value&&(this._releaseNotesAccordionItemElement.value.expanded=!0),this._relatedResourcesAccordionItemElement.value&&(this._relatedResourcesAccordionItemElement.value.expanded=!0),this._screenshotsAccordionItemElement.value&&(this._screenshotsAccordionItemElement.value.expanded=!0),this._termsOfUseAccordionItemElement.value&&(this._termsOfUseAccordionItemElement.value.expanded=!0),this._youMayAlsoLikeAccordionItemElement.value&&(this._youMayAlsoLikeAccordionItemElement.value.expanded=!0)}async _getItemData(){let e=this._userSessionContextConsumer.value,t=await L(this.card.id,e),i=await M(this.card.id,e);this._itemProperties=i.properties,this.itemPropertiesFetched.emit(this._itemProperties);let a=C(t,this.card.typeKeywords,this._authContextConsumer.value);this._privileges=e.username?a:[],this._userPrivileges=this._authContextConsumer.value?this._authContextConsumer.value.PortalUserPrivileges:[];let o=this._privileges.filter(l=>!this._userPrivileges.includes(l));this._missingPrivilegeMessages=T(this._translations,o),(t.params?this.formatParams(t.params):Promise.resolve([])).then(l=>{this._userOptions=l}),this._templates=t.templates,this.templatesFetched.emit(t.templates),this._checkUrlParametersForAutoDeployment()}formatParams(e){let t=this._userSessionContextConsumer.value,i=[],a=e?Object.keys(e):[],o={id:"",props:[],accordionDisplay:!1};if(a.length>0){let l=[];return a.forEach(r=>{let h=e[r];h.valueType&&h.valueType.toLowerCase()==="itemid"&&l.push(this._findExistingItem(r,"Feature Service",t.username||""))}),Promise.all(l).then(r=>{let h={};return r.forEach(n=>{if(n.query&&n.results&&n.results.length>0){let D=n.query.split(" ")[0].replace("typekeywords:source-","");h[D]={resultId:n.results[0].id,response:n.results[0]}}}),a.forEach(n=>{if(n==="serviceLearnMore"){this._configureLearnMore=e[n],alert(this._configureLearnMore),delete e[n];return}e[n].enterpriseIDMapping&&(this._customDeploymentMappings[n]=e[n].enterpriseIDMapping),o.id=n,h[n]&&(e[n].existingItemId=h[n].resultId,this.updateUserProp(e[n],h[n].response)),this.updateOption(e[n],o,n)}),i.push(o),Promise.resolve(i)}).catch(()=>Promise.resolve([]))}else return Promise.resolve([])}_findExistingItem(e,t,i){let a=this._userSessionContextConsumer.value;return E(`typekeywords:source-${e} type:${t} owner:${i}`,a)}updateUserProp(e,t){let i=e.itemType?.toLowerCase()==="feature service",a=new RegExp(i?this._regexFsUrl:e.itemType,"iu"),o=_(t,i?"url":"type","")||"",l=o!==""&&a.test(o);return e.responseValue=l?o:"",e.name=l&&m(t,"name")||"",e.title=l&&m(t,"title")||"",e.itemType=l?m(t,"type"):e.itemType,e.validId=l,e.itemUrl=A(t.id,this._authContextConsumer.value),l}updateOption(e,t,i){let a=e.default||"",o=typeof a,l=a.toString();this._setFeatureServiceProps(e);let r=this.getValidation(e,l);t.props.push({id:i,outType:o,prop:i,itemType:e.itemType||"",responseValue:e.responseValue||"",label:e.label||"",choices:e.choices||[],valueType:e.valueType.toLowerCase(),attributes:e.attributes||{},value:e.existingItemId&&e.valueType.toLowerCase()==="itemid"?e.existingItemId:l,default:l,srSearchText:l,autoSelect:l!=="",...r,loading:!1,validId:!0,tooltip:e.tooltip||"",name:e.name||"",title:e.title||"",itemUrl:e.itemUrl||""})}_setFeatureServiceProps(e){e.valueType&&e.valueType.toLowerCase()==="itemid"&&k(e,"attributes.required","true")}getValidation(e,t){let i="",a=m(e,"validation.message")||"",o=!0;return m(e,"attributes.required")==="true"&&(i=_(e,"validation.expression","\\S{1,}"),o=new RegExp(i).test(t)),e.valueType&&e.valueType.toLowerCase()==="itemid"&&(i=this._regexID,a=this._translations.configure.invalidID),{valid:o,validation:{expression:i,message:a}}}_allCardsFetched(e){this._allCards=e.detail}_onResize(){this._showYouMayAlsoLikeShowMore=(this._youMayAlsoLikeElement.value?.scrollHeight||0)>this._youMayAlsoLikeBaseHeight,this._showScreenshotsShowMore=(this._screenshotsElement.value?.scrollHeight||0)>this._screenshotsRowBaseHeight+2}_cleanupPanel(){this.el.shadowRoot?.getElementById("solution-details-row")?.scrollIntoView(!0),this._isScreenshotsRowExpanded=!1,this._showScreenshotsShowMore=!1,this._screenshotsElement.value?.classList.remove("expanded"),this._isYouMayAlsoLikeRowExpanded=!1,this._showYouMayAlsoLikeShowMore=!1,this._youMayAlsoLikeElement.value?.classList.remove("expanded"),this._privilegePopoverRef.value?.open&&(this._privilegePopoverRef.value.open=!1),this._expandAccordions()}_deployProgressStart(e){this._deployingDialogRef.value&&(this._deployingDialogRef.value.open=!0,this._deployingDialogRef.value.abortController=e.detail),this._deployDialogRef.value&&this._deployDialogRef.value.classList.add("display-none")}_deployProgessUpdated(e){let t=e.detail;this._deployingDialogRef.value.deploymentProgress=t.progress}_closeDialogs(){this._deployingDialogRef.value.close(),this._deployDialogRef.value.open=!1,this._deployDialogRef.value.classList.remove("display-none")}_handleDeployAppTabSelected(e){e.detail==="details"&&this.sortTypeChanged.emit("")}};$("solution-details-panel",b);return b},a,b,e,f)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import a from"./UJ6PB446.js";export default $arcgis.t(([a,u,{e:i}])=>{var c=class{async getPopupTitle(o,f){let s={};for(let[e,r]of Object.entries(o.attributes))s={...s,[`{${e.toUpperCase()}}`]:r};let p=o.layer,l=this._removeTags(p?.popupTemplate?.title);if(l.includes("{expression/expr")&&p?.popupTemplate?.expressionInfos!=null)for(let e=0;e<p.popupTemplate?.expressionInfos.length;e++){let r=p.popupTemplate.expressionInfos[e],n=a.createArcadeProfile("popup");try{let t=await(await a.createArcadeExecutor(r.expression,n)).executeAsync({$feature:o,$layer:p,$map:f});(t!==null||t!=="")&&(s[`{expression/${r.name}}`.toUpperCase()]=t)}catch(t){console.error(t);continue}}return p.popupTemplate?.fieldInfos&&p.fields.forEach(e=>{let r=o.attributes[e.name],n=(p?.popupTemplate?.fieldInfos||[]).find(m=>m.fieldName.toLowerCase()===e.name.toLowerCase()),t=i(r,e.type,e?.domain,n?.format,u);s[`{${e.name.toUpperCase()}}`]=t??r}),l?.replace(/{.*?}/g,e=>s[e.toUpperCase()]!=null?s[e.toUpperCase()]:"")}_removeTags(o){return o==null||o===""?"":o.toString().replace(/(<([^>]+)>)/gi,"")}};return c},"arcade","intl",a)
3
+ v1.2.0-next.37 */
4
+ import a from"./WMTY2QON.js";export default $arcgis.t(([a,u,{e:i}])=>{var c=class{async getPopupTitle(o,f){let s={};for(let[e,r]of Object.entries(o.attributes))s={...s,[`{${e.toUpperCase()}}`]:r};let p=o.layer,l=this._removeTags(p?.popupTemplate?.title);if(l.includes("{expression/expr")&&p?.popupTemplate?.expressionInfos!=null)for(let e=0;e<p.popupTemplate?.expressionInfos.length;e++){let r=p.popupTemplate.expressionInfos[e],n=a.createArcadeProfile("popup");try{let t=await(await a.createArcadeExecutor(r.expression,n)).executeAsync({$feature:o,$layer:p,$map:f});(t!==null||t!=="")&&(s[`{expression/${r.name}}`.toUpperCase()]=t)}catch(t){console.error(t);continue}}return p.popupTemplate?.fieldInfos&&p.fields.forEach(e=>{let r=o.attributes[e.name],n=(p?.popupTemplate?.fieldInfos||[]).find(m=>m.fieldName.toLowerCase()===e.name.toLowerCase()),t=i(r,e.type,e?.domain,n?.format,u);s[`{${e.name.toUpperCase()}}`]=t??r}),l?.replace(/{.*?}/g,e=>s[e.toUpperCase()]!=null?s[e.toUpperCase()]:"")}_removeTags(o){return o==null||o===""?"":o.toString().replace(/(<([^>]+)>)/gi,"")}};return c},"arcade","intl",a)
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.35 */
4
- import a from"./UJ6PB446.js";import"./QZ7Q5VPY.js";import"./WYD7SFWY.js";import"./IJMX3WHX.js";import"./RGWPFZBE.js";import"./X36X6MUL.js";import"./AAXE4NNV.js";import"./CJ2LQ2KZ.js";import"./JIP3YG24.js";import"./QGM6TJLI.js";import"./QW6SMLEJ.js";import"./6EDB6GK3.js";import"./PGVJ7TAF.js";import"./66NEFBOE.js";import"./SDSPTQ4P.js";import"./TOVO7FLD.js";import"./EBGWAP5Z.js";import"./2SG2PXGL.js";import"./I2OMO5AF.js";import"./6W4SZKHC.js";import"./46X2JXUZ.js";import"./TSVPTY5X.js";import"./LBVSC6V5.js";import"./CN56TZC4.js";import{a as d}from"./GT2JLUV4.js";import"./MKMGVPCZ.js";import"./R5426IXX.js";import{b as g}from"./WDABZAMD.js";import{D as o,E as p,F as b,h as n,i as r}from"./KSNTFOGZ.js";import"./6UZSVHNV.js";export default $arcgis.t(([{b:c,c:h}])=>{var P=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],u=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),y=n`/** @license
3
+ v1.2.0-next.37 */
4
+ import a from"./WMTY2QON.js";import"./XGIL5KIH.js";import"./424EU24N.js";import"./N33O2BIB.js";import"./PL2C3G4A.js";import"./HYVQWVII.js";import"./SDCYJLL6.js";import"./YGWIZXL6.js";import"./YZR4IOOG.js";import"./3BQPEIW4.js";import"./WVD743FV.js";import"./OSXEN5JP.js";import"./LASDKRI4.js";import"./YAX3KOMD.js";import"./A3NNJFSP.js";import"./5TVCMZSS.js";import"./RCCXKNQ4.js";import"./UVQ562IF.js";import"./HSNKQLTD.js";import"./DTQRFAUA.js";import"./PM2UKFMR.js";import"./LSSZKYSS.js";import"./SOHBYYBW.js";import"./MKGO4FB3.js";import{a as d}from"./WI2CLU5D.js";import"./TWK424K2.js";import"./IG7YJRSC.js";import{b as g}from"./PDMV5IT4.js";import{D as o,E as p,F as b,h as n,i as r}from"./MDHPRL5E.js";import"./NAEBOEYF.js";export default $arcgis.t(([{b:c,c:h}])=>{var P=[{descriptionPDF:{labelWidthDisplay:"2-5/8",labelHeightDisplay:"1",labelsPerPageDisplay:"30",averyPartNumber:"*60"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.1875,rightMargin:.1875,topMargin:.5,bottomMargin:.5},numLabelsAcross:3,numLabelsDown:10,labelWidth:2.625,labelHeight:1,horizGapIn:.125,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1",labelsPerPageDisplay:"20",averyPartNumber:"*61"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.47637821,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:10,labelWidth:4,labelHeight:1.0025,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:4}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"1-1/3",labelsPerPageDisplay:"14",averyPartNumber:"*62"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.81889808,bottomMargin:.83464612},numLabelsAcross:2,numLabelsDown:7,labelWidth:4,labelHeight:1.3352,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:11,maxNumLabelLines:6}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"2",labelsPerPageDisplay:"10",averyPartNumber:"*63"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.5,bottomMargin:.5},numLabelsAcross:2,numLabelsDown:5,labelWidth:4,labelHeight:2,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:12,maxNumLabelLines:10}},{descriptionPDF:{labelWidthDisplay:"4",labelHeightDisplay:"3-1/3",labelsPerPageDisplay:"6",averyPartNumber:"*64"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.15625,rightMargin:.15625,topMargin:.4724412,bottomMargin:.50000027},numLabelsAcross:2,numLabelsDown:3,labelWidth:4,labelHeight:3.342,horizGapIn:.1875,vertGapIn:0,labelPadding:.1,fontSizePx:14,maxNumLabelLines:12}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"1/2",labelsPerPageDisplay:"80",averyPartNumber:"*67"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.307086375,rightMargin:.307086375,topMargin:.4724412,bottomMargin:.49606326},numLabelsAcross:4,numLabelsDown:20,labelWidth:1.75,labelHeight:.50155,horizGapIn:.29527575,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:3}},{descriptionPDF:{labelWidthDisplay:"1-3/4",labelHeightDisplay:"2/3",labelsPerPageDisplay:"60",averyPartNumber:"*95"},labelSpec:{type:"AVERY",pageProperties:{pageType:"ANSI A",leftMargin:.28936983,rightMargin:.28936983,topMargin:.53937037,bottomMargin:.5511814},numLabelsAcross:4,numLabelsDown:15,labelWidth:1.75,labelHeight:.6605,horizGapIn:.30708678,vertGapIn:0,labelPadding:.1,fontSizePx:8,maxNumLabelLines:4}}],u=Object.freeze(Object.defineProperty({__proto__:null,default:P},Symbol.toStringTag,{value:"Module"})),y=n`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");