@esri/solutions-components 1.1.0-next.20250909 → 1.1.0-next.20250911.2

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 (597) hide show
  1. package/dist/cdn/{5PMAZ6BI.js → 23T25PXM.js} +2 -2
  2. package/dist/cdn/{GKACHUTS.js → 2BTYUMLK.js} +2 -2
  3. package/dist/cdn/{3SPAMIDI.js → 2C7SCE4V.js} +2 -2
  4. package/dist/cdn/{GJHQBYUN.js → 2DBFWM3J.js} +2 -2
  5. package/dist/cdn/{D3ZWGN6V.js → 2GQADZED.js} +2 -2
  6. package/dist/cdn/{QW7TTZWB.js → 2L7PEA7U.js} +1 -1
  7. package/dist/cdn/{ZKCPLYXB.js → 2NFSMO4K.js} +2 -2
  8. package/dist/cdn/{ZP4ANXBM.js → 2RMZE6TC.js} +2 -2
  9. package/dist/cdn/35OG34DW.js +4 -0
  10. package/dist/cdn/{AE6H6WOB.js → 3H2ONS2E.js} +2 -2
  11. package/dist/cdn/3QPGK5W4.js +18 -0
  12. package/dist/cdn/{4JETL4TY.js → 3QT7BIV3.js} +2 -2
  13. package/dist/cdn/{DUOZ7W43.js → 3QUP66X5.js} +2 -2
  14. package/dist/cdn/{N2X7VTBK.js → 3V7CDAW4.js} +2 -2
  15. package/dist/cdn/{HNE5W6WS.js → 3VW7GINP.js} +2 -2
  16. package/dist/cdn/{7VPNMORO.js → 423XDLXY.js} +2 -2
  17. package/dist/cdn/{IL5HDW3E.js → 46TLWAGR.js} +2 -2
  18. package/dist/cdn/{4J2EEVQC.js → 4EIOWWRF.js} +2 -2
  19. package/dist/cdn/{7MP6QCRU.js → 4FKMIMIE.js} +1 -1
  20. package/dist/cdn/{YGJ6CAIL.js → 4FXTY4UZ.js} +1 -1
  21. package/dist/cdn/{JQSJNTDU.js → 4G6R7HJV.js} +2 -2
  22. package/dist/cdn/{YGQJBD4Y.js → 4GLVTBLS.js} +2 -2
  23. package/dist/cdn/{7IF6BEQ4.js → 4LG3PE5J.js} +1 -1
  24. package/dist/cdn/{66VSR6R3.js → 4NZC636H.js} +2 -2
  25. package/dist/cdn/{3NELTBGB.js → 4Q57777R.js} +1 -1
  26. package/dist/cdn/{6BI4AFFV.js → 4WAESXJG.js} +2 -2
  27. package/dist/cdn/{6ATPTD6S.js → 4WZM547K.js} +2 -2
  28. package/dist/cdn/{C2BDBSPV.js → 4XEBKLU2.js} +2 -2
  29. package/dist/cdn/{TRY5O6BF.js → 534QDBAQ.js} +2 -2
  30. package/dist/cdn/{3FT7DZQT.js → 5EMTFT4K.js} +2 -2
  31. package/dist/cdn/{EOURWNJJ.js → 5F6FAGVF.js} +2 -2
  32. package/dist/cdn/{VVHYD2YV.js → 5FYALSB7.js} +2 -2
  33. package/dist/cdn/{K3WALZXM.js → 5IUFSIDX.js} +2 -2
  34. package/dist/cdn/{JGWCUAIV.js → 5MDH25UU.js} +1 -1
  35. package/dist/cdn/{GEMPDM2Q.js → 5PWMGYZG.js} +1 -1
  36. package/dist/cdn/{2HI3QER3.js → 5V2TKTC3.js} +2 -2
  37. package/dist/cdn/{SS45L55W.js → 5W2FD4M5.js} +2 -2
  38. package/dist/cdn/{ZJHHH5QQ.js → 5YLPXC3Y.js} +2 -2
  39. package/dist/cdn/{AT3PDUYQ.js → 625F6UTS.js} +2 -2
  40. package/dist/cdn/{3ECPGYSE.js → 652RXIXT.js} +2 -2
  41. package/dist/cdn/{UKEUGZX2.js → 6AGEFCYB.js} +2 -2
  42. package/dist/cdn/{D3YHOAQH.js → 6D4HQ7M2.js} +1 -1
  43. package/dist/cdn/{7Q4V5HOH.js → 6EAV5JJ4.js} +2 -2
  44. package/dist/cdn/{AQUF57HA.js → 6G2PI2MU.js} +2 -2
  45. package/dist/cdn/{PUNAD2H3.js → 6HEFYILX.js} +1 -1
  46. package/dist/cdn/{BDFK5OL4.js → 6JIZ4XBP.js} +2 -2
  47. package/dist/cdn/{WS7EMZ3Z.js → 7B2LY6UV.js} +2 -2
  48. package/dist/cdn/{WLVJ5PSZ.js → 7EYIHL3E.js} +2 -2
  49. package/dist/cdn/{DK2TSWOL.js → 7F3GV2VG.js} +2 -2
  50. package/dist/cdn/{N3CF3XWZ.js → 7F63WMPE.js} +2 -2
  51. package/dist/cdn/{H6245KIV.js → 7JJ55RBG.js} +2 -2
  52. package/dist/cdn/7L2K4CTR.js +4 -0
  53. package/dist/cdn/{3HXGNNSP.js → 7L4FXHUD.js} +2 -2
  54. package/dist/cdn/{56XIBM7W.js → 7MKK4E56.js} +2 -2
  55. package/dist/cdn/{4PNHMOR7.js → 7NH4HSMI.js} +2 -2
  56. package/dist/cdn/{TSRKSBXR.js → 7QDQDNIG.js} +2 -2
  57. package/dist/cdn/{3VTCD7NO.js → A7EIQKXY.js} +2 -2
  58. package/dist/cdn/A7KL7OUO.js +18 -0
  59. package/dist/cdn/{2P47INOH.js → A7UXYWNK.js} +2 -2
  60. package/dist/cdn/{KTFVK4VG.js → AD4A4N4U.js} +2 -2
  61. package/dist/cdn/{ZC3OC2A2.js → AIB25UJ5.js} +2 -2
  62. package/dist/cdn/{OVG6OOVT.js → AJIMU7O4.js} +2 -2
  63. package/dist/cdn/{B2GTZQJH.js → AR7S42BQ.js} +2 -2
  64. package/dist/cdn/{VJ5HQH46.js → ARM3EG66.js} +2 -2
  65. package/dist/cdn/{SLGBD6TO.js → AS4N6LTM.js} +2 -2
  66. package/dist/cdn/{HYNYTSJA.js → ATB53ZKP.js} +2 -2
  67. package/dist/cdn/{K4AMSC57.js → AWMWRRNB.js} +2 -2
  68. package/dist/cdn/{JIBR3TEK.js → AWMXLOE7.js} +2 -2
  69. package/dist/cdn/{QRYMDSKR.js → AWZ2L6P4.js} +2 -2
  70. package/dist/cdn/{76OKZB2G.js → AXK7QP5J.js} +2 -2
  71. package/dist/cdn/{LXKUMZWJ.js → AYKWMJXC.js} +2 -2
  72. package/dist/cdn/{NSCZOCYT.js → B3TNANEX.js} +2 -2
  73. package/dist/cdn/{STNBBJ2V.js → B44OKJQC.js} +2 -2
  74. package/dist/cdn/{NAJLHRBC.js → BE4VGAQ6.js} +2 -2
  75. package/dist/cdn/{VU2T7NC7.js → BGLA6JTF.js} +1 -1
  76. package/dist/cdn/{QVTO6TIF.js → BGUPQWXL.js} +1 -1
  77. package/dist/cdn/{UQH6ROLH.js → BHPA7WHD.js} +2 -2
  78. package/dist/cdn/{HE4JNXQB.js → BU6CLZMJ.js} +1 -1
  79. package/dist/cdn/{3OXYTK44.js → BWJW6NOF.js} +2 -2
  80. package/dist/cdn/{BUBHIWNJ.js → C5X2ZRMN.js} +2 -2
  81. package/dist/cdn/{LVE3AUBV.js → C7LU5E2N.js} +2 -2
  82. package/dist/cdn/{5K7RJOVI.js → CC2IBTVB.js} +1 -1
  83. package/dist/cdn/{5PXJYXNP.js → CF4XXPBR.js} +2 -2
  84. package/dist/cdn/{5ER2HR4Y.js → CTUSQXMB.js} +2 -2
  85. package/dist/cdn/{63WMNL6A.js → DBLPNJCC.js} +3 -3
  86. package/dist/cdn/{GJGDG2IV.js → DG6M3ZU4.js} +2 -2
  87. package/dist/cdn/{UBGFX4E2.js → DGQPGBON.js} +2 -2
  88. package/dist/cdn/{FZHKSCR7.js → DHLILBFE.js} +2 -2
  89. package/dist/cdn/{DXWHCJB3.js → DIPB3EE3.js} +2 -2
  90. package/dist/cdn/{KEKWBOGA.js → DJIVAYXP.js} +4 -4
  91. package/dist/cdn/{YGR2FZ3P.js → DRDHC6JP.js} +2 -2
  92. package/dist/cdn/{L32W6BHR.js → DSTSUTNU.js} +2 -2
  93. package/dist/cdn/{A32KXUMW.js → DTLIRFON.js} +2 -2
  94. package/dist/cdn/{UUIPF6XU.js → DUIBMXZM.js} +2 -2
  95. package/dist/cdn/{FVNW65L4.js → DVAGFDDK.js} +2 -2
  96. package/dist/cdn/{RAHAWTMR.js → DWTJ4XUX.js} +2 -2
  97. package/dist/cdn/{Q7SJJFBZ.js → E5LWTUJM.js} +2 -2
  98. package/dist/cdn/{PD5BVW4J.js → ECCUBDV6.js} +2 -2
  99. package/dist/cdn/{XO6WMP5B.js → EHOYB4HE.js} +2 -2
  100. package/dist/cdn/{6FOPG4QF.js → EIJFIHHL.js} +2 -2
  101. package/dist/cdn/{MSJ4SEEI.js → ELLO2MAY.js} +2 -2
  102. package/dist/cdn/{WHK5WHZK.js → ET7BFDTD.js} +1 -1
  103. package/dist/cdn/{CQAZ3KKR.js → EVH6ZOGW.js} +2 -2
  104. package/dist/cdn/{ITHC73SW.js → EXUFMUTQ.js} +2 -2
  105. package/dist/cdn/{ADAOIDIQ.js → EYWF2YAH.js} +2 -2
  106. package/dist/cdn/{56FTP2RC.js → F2BWJE75.js} +2 -2
  107. package/dist/cdn/{HKZOGL3Q.js → FDUGCC34.js} +2 -2
  108. package/dist/cdn/{VYESLYAK.js → FH4WJC25.js} +2 -2
  109. package/dist/cdn/{RPQ6TGCW.js → FLYG2DDR.js} +2 -2
  110. package/dist/cdn/{2NB7L4WW.js → FMNW55YT.js} +2 -2
  111. package/dist/cdn/{N3X6K5TM.js → FN75WUH2.js} +2 -2
  112. package/dist/cdn/{JW3NIUEN.js → FOKWC4YX.js} +2 -2
  113. package/dist/cdn/{VD5D7WZH.js → FQIN5IN3.js} +2 -2
  114. package/dist/cdn/{BWHH75CQ.js → FUJF2Z35.js} +2 -2
  115. package/dist/cdn/{FD7FNNGL.js → FVW6IAZX.js} +2 -2
  116. package/dist/cdn/{JH5GBKDT.js → G763EUK4.js} +2 -2
  117. package/dist/cdn/{MIRAKMAM.js → GAI6NOBN.js} +2 -2
  118. package/dist/cdn/{7KRL4JM2.js → GB6MUB2B.js} +2 -2
  119. package/dist/cdn/{XDO4C6J2.js → GBL74D5O.js} +2 -2
  120. package/dist/cdn/{O63CASVY.js → GGUV3WL7.js} +2 -2
  121. package/dist/cdn/{N67K56AQ.js → GQCWPPLN.js} +2 -2
  122. package/dist/cdn/{Q2NSFB52.js → GUDOYAJ4.js} +2 -2
  123. package/dist/cdn/{HZ2SUTRD.js → GUZFVIC6.js} +2 -2
  124. package/dist/cdn/{2I45CN3E.js → GWPT2ICC.js} +2 -2
  125. package/dist/cdn/{ZC35GKYV.js → HAG4JRWN.js} +2 -2
  126. package/dist/cdn/{AS3XKXFE.js → HAGL5MC2.js} +2 -2
  127. package/dist/cdn/{QXHBFO3N.js → HASJRYAV.js} +2 -2
  128. package/dist/cdn/{EIL5GTU4.js → HF2OV5H6.js} +2 -2
  129. package/dist/cdn/{56WREZJR.js → HF4ZVPTQ.js} +2 -2
  130. package/dist/cdn/{PXI2F3NJ.js → HGB2ZKH5.js} +1 -1
  131. package/dist/cdn/{AVWKEGOV.js → HK6RVKL5.js} +2 -2
  132. package/dist/cdn/{KPTO3JLC.js → HM7C4ICO.js} +2 -2
  133. package/dist/cdn/{CO7CO6AN.js → HVQVHADU.js} +2 -2
  134. package/dist/cdn/{MUDQYQHV.js → HWRTCJII.js} +2 -2
  135. package/dist/cdn/{N5D5LSZJ.js → HXWR5OEJ.js} +2 -2
  136. package/dist/cdn/{FVS63VDF.js → IABTIHGI.js} +2 -2
  137. package/dist/cdn/{LMQDNLRQ.js → IAH236ZP.js} +2 -2
  138. package/dist/cdn/{3JTIIRVT.js → IDITN77F.js} +1 -1
  139. package/dist/cdn/{33KYV3TB.js → IF7UHJAR.js} +1 -1
  140. package/dist/cdn/{NTSIPZDQ.js → IOLMZX66.js} +2 -2
  141. package/dist/cdn/{MOCODPAY.js → IVUTQ2WB.js} +2 -2
  142. package/dist/cdn/{VDHLUGNH.js → IYIXMAGT.js} +2 -2
  143. package/dist/cdn/IYPM2CF6.js +4 -0
  144. package/dist/cdn/{B6HND2XY.js → J2RSNIGV.js} +2 -2
  145. package/dist/cdn/J67LB5D3.js +4 -0
  146. package/dist/cdn/{YXOAO34M.js → J7O5VJDT.js} +1 -1
  147. package/dist/cdn/{45TNXDXY.js → JCX7NDVY.js} +2 -2
  148. package/dist/cdn/{7ZBA3GXA.js → JOJEPUUR.js} +2 -2
  149. package/dist/cdn/JQJTOKRA.js +18 -0
  150. package/dist/cdn/{LQIWHTG3.js → JRCPPBWZ.js} +2 -2
  151. package/dist/cdn/{IVUPXZ5F.js → JU4FWB4Y.js} +2 -2
  152. package/dist/cdn/{CNZIRIWD.js → JWBPC5LQ.js} +2 -2
  153. package/dist/cdn/{O5EQWEZ7.js → JYVVTI7Y.js} +2 -2
  154. package/dist/cdn/{BI2ZRTI3.js → K4IX2BB7.js} +2 -2
  155. package/dist/cdn/{WOL7TEL4.js → K7M5CHTQ.js} +1 -1
  156. package/dist/cdn/{Q4S42YNK.js → KE7B6EJ7.js} +2 -2
  157. package/dist/cdn/{V7XNIHP2.js → KGCOTPXS.js} +2 -2
  158. package/dist/cdn/{WNQSJIMZ.js → KJVRMIBD.js} +2 -2
  159. package/dist/cdn/{B6CECY74.js → KLRHMKZS.js} +2 -2
  160. package/dist/cdn/{5XBIIGQZ.js → KNPOCWWF.js} +2 -2
  161. package/dist/cdn/KQXXZPWB.js +4 -0
  162. package/dist/cdn/{PIFZ6WV5.js → KVUHCDCE.js} +2 -2
  163. package/dist/cdn/{MBC4EBO3.js → KWNHBLCT.js} +2 -2
  164. package/dist/cdn/{XV6QLESW.js → L36IZTJY.js} +2 -2
  165. package/dist/cdn/{66BRPK2B.js → L3LZPYIH.js} +2 -2
  166. package/dist/cdn/{FI5BQHWO.js → L3QYFMKB.js} +2 -2
  167. package/dist/cdn/{7FBWJQQL.js → L5UT6SUW.js} +1 -1
  168. package/dist/cdn/{FLQAHJ7J.js → L6ZAMSWA.js} +2 -2
  169. package/dist/cdn/{IDNQLVSG.js → LEA72LQK.js} +2 -2
  170. package/dist/cdn/{QBNNAIIS.js → LOFOYFYB.js} +2 -2
  171. package/dist/cdn/{EFI32N5B.js → LOYE4TGK.js} +2 -2
  172. package/dist/cdn/{4UEZLWJA.js → LPL2LQ5B.js} +2 -2
  173. package/dist/cdn/{IYLQCVU6.js → LSBH2RQL.js} +2 -2
  174. package/dist/cdn/{QORQMWTN.js → LVIAV5QR.js} +2 -2
  175. package/dist/cdn/{JHCUA6WP.js → LXTE5TEF.js} +2 -2
  176. package/dist/cdn/{XAOJRRMY.js → LYTMNBSS.js} +2 -2
  177. package/dist/cdn/{5OBQPUOD.js → LZXSNZEG.js} +2 -2
  178. package/dist/cdn/{LGUGM2EI.js → M33KJNWN.js} +2 -2
  179. package/dist/cdn/{ARK5Y77X.js → M5DODFXN.js} +1 -1
  180. package/dist/cdn/{YE7HNWUG.js → M7CHTU5E.js} +2 -2
  181. package/dist/cdn/{JZZSB6XX.js → MCPYVHWV.js} +2 -2
  182. package/dist/cdn/{LGD77Q5Y.js → MEZPIRT2.js} +2 -2
  183. package/dist/cdn/{UZ4FZOI4.js → MNBSCGTH.js} +2 -2
  184. package/dist/cdn/MNG4ZG3D.js +18 -0
  185. package/dist/cdn/{H3HMZBWD.js → MP2SEKNA.js} +2 -2
  186. package/dist/cdn/{7ZGUYNIS.js → MRIJEWVG.js} +2 -2
  187. package/dist/cdn/{MIAAWCQ7.js → MW3KDKSA.js} +2 -2
  188. package/dist/cdn/{T43D2OV7.js → N3EJWHNC.js} +2 -2
  189. package/dist/cdn/{PCZ2MQNE.js → NBSBX63J.js} +2 -2
  190. package/dist/cdn/{MKQXREOG.js → ND2PYDKI.js} +1 -1
  191. package/dist/cdn/{7ZMY5HMA.js → NEJI5QW6.js} +2 -2
  192. package/dist/cdn/{FNZVJSWG.js → NFIBYZAV.js} +2 -2
  193. package/dist/cdn/NG3RIAIG.js +4 -0
  194. package/dist/cdn/{LAR3A322.js → NHGKXIPR.js} +2 -2
  195. package/dist/cdn/{U7KPTWP7.js → NLAFKJ2E.js} +2 -2
  196. package/dist/cdn/{G2HYUWXC.js → NQA4IZWB.js} +2 -2
  197. package/dist/cdn/{G5KKQLCC.js → NRRM4ZKX.js} +2 -2
  198. package/dist/cdn/{2P3D72M3.js → NRZOM7WH.js} +2 -2
  199. package/dist/cdn/{Z2YVO2MZ.js → NTTQO4LF.js} +2 -2
  200. package/dist/cdn/NXOVSG5D.js +18 -0
  201. package/dist/cdn/{GPCG3O32.js → O5SXHKPM.js} +2 -2
  202. package/dist/cdn/{NXKCWUWK.js → O6UST32T.js} +2 -2
  203. package/dist/cdn/{IIOCBWYX.js → O724AAAL.js} +1 -1
  204. package/dist/cdn/OB4UZUS3.js +18 -0
  205. package/dist/cdn/OF2TUOXE.js +18 -0
  206. package/dist/cdn/{DP6FSWN3.js → OFLFBFEA.js} +2 -2
  207. package/dist/cdn/{A2OC3ERA.js → OHH4JYRI.js} +2 -2
  208. package/dist/cdn/{VLCEMPLQ.js → OKIDHS5M.js} +2 -2
  209. package/dist/cdn/{ZKUPJWA7.js → OQS7FURR.js} +2 -2
  210. package/dist/cdn/{M2FSHG7J.js → OWZPVOBY.js} +1 -1
  211. package/dist/cdn/{3AEAT3JU.js → OZYNCKYO.js} +2 -2
  212. package/dist/cdn/{DMFL4YQA.js → P4ODMYQB.js} +2 -2
  213. package/dist/cdn/{7JS57NNO.js → P4OEWYQH.js} +2 -2
  214. package/dist/cdn/{QOEYN7KZ.js → P7YRW4KH.js} +2 -2
  215. package/dist/cdn/PCSVUFBN.js +18 -0
  216. package/dist/cdn/{R75RUQBG.js → PEFVFAUS.js} +2 -2
  217. package/dist/cdn/{DRGS75OU.js → PEYOKBZS.js} +2 -2
  218. package/dist/cdn/{WLMKPX4D.js → PFRBRXPQ.js} +2 -2
  219. package/dist/cdn/{FMK4IQWP.js → PL2XGMQD.js} +2 -2
  220. package/dist/cdn/{2WYDTJUZ.js → PRO5YTTB.js} +2 -2
  221. package/dist/cdn/{FOAQYWLO.js → PRSEXVB4.js} +2 -2
  222. package/dist/cdn/{4GG72A4J.js → PTTXJVNC.js} +2 -2
  223. package/dist/cdn/{G46QXOFC.js → PYTMYLTL.js} +2 -2
  224. package/dist/cdn/{NQ4ORX4L.js → QGW2FJDB.js} +2 -2
  225. package/dist/cdn/QJ4JOKJB.js +4 -0
  226. package/dist/cdn/{6YD4MRGM.js → QLKWPXJR.js} +2 -2
  227. package/dist/cdn/{ZYCZJNUF.js → QO6TTYYN.js} +2 -2
  228. package/dist/cdn/{OFJ72Q6E.js → QOAI6EA2.js} +2 -2
  229. package/dist/cdn/{S2BECSBW.js → QQGMGBKF.js} +1 -1
  230. package/dist/cdn/{JEYN3G5Z.js → QZ5JMA34.js} +2 -2
  231. package/dist/cdn/{AUVMY25O.js → QZ5TADRQ.js} +2 -2
  232. package/dist/cdn/{YJLGRVTF.js → QZLIH56L.js} +2 -2
  233. package/dist/cdn/{QFKODMY2.js → R5S5NMIA.js} +2 -2
  234. package/dist/cdn/{TRVWTBQJ.js → R6UKAFVG.js} +2 -2
  235. package/dist/cdn/{MIZLXMGY.js → R6YCPKFS.js} +2 -2
  236. package/dist/cdn/{FEOPRYXY.js → RH5HB2BT.js} +2 -2
  237. package/dist/cdn/{6MTKFVL5.js → RKCK7RBY.js} +2 -2
  238. package/dist/cdn/{5DSYJUJ5.js → RSXSF7MJ.js} +2 -2
  239. package/dist/cdn/RUUJR35M.js +4 -0
  240. package/dist/cdn/{2NH5VBZI.js → RX7FCRXL.js} +2 -2
  241. package/dist/cdn/{YKBRJYF6.js → RYE2NS44.js} +1 -1
  242. package/dist/cdn/{5P7OP2TV.js → S3T6DKUX.js} +2 -2
  243. package/dist/cdn/{FMSFCM4O.js → S4J4KHRF.js} +2 -2
  244. package/dist/cdn/{EW5YY2GX.js → S4SYUQWF.js} +2 -2
  245. package/dist/cdn/{DCPJLMXS.js → S4TIHVZI.js} +2 -2
  246. package/dist/cdn/{WVJ22VHR.js → SCMDZPD5.js} +2 -2
  247. package/dist/cdn/{2X5ZYFMQ.js → SCVZQMZ5.js} +2 -2
  248. package/dist/cdn/{JUZZLRHO.js → SCY6BW5I.js} +2 -2
  249. package/dist/cdn/{DNUY5LCQ.js → SFDBXOOG.js} +2 -2
  250. package/dist/cdn/{W2YEFCJC.js → SHYRK7HE.js} +1 -1
  251. package/dist/cdn/{HTGRKYQJ.js → SI2RCG3D.js} +2 -2
  252. package/dist/cdn/{YPESSINV.js → SIOGNWC6.js} +2 -2
  253. package/dist/cdn/{QO7AKCAK.js → SJMKD3XJ.js} +1 -1
  254. package/dist/cdn/{H5RL4J7G.js → SJVWZRHI.js} +2 -2
  255. package/dist/cdn/{5A4RTFGF.js → SNRZBSNS.js} +2 -2
  256. package/dist/cdn/{5EVF6RIK.js → SPZFZLTC.js} +1 -1
  257. package/dist/cdn/{JJJQPYWJ.js → SSJKYZYV.js} +2 -2
  258. package/dist/cdn/{FPPD2ZNJ.js → ST2OKDZ4.js} +2 -2
  259. package/dist/cdn/{WCDTD7TB.js → SW6PCDQR.js} +2 -2
  260. package/dist/cdn/{FOLIGOQV.js → SXRWHCQ4.js} +2 -2
  261. package/dist/cdn/{QMTUSZFV.js → TCFCLE53.js} +2 -2
  262. package/dist/cdn/{ZZKFXBSR.js → TCOUPEPD.js} +2 -2
  263. package/dist/cdn/{ODTKDZ5Q.js → TD3XU55Q.js} +1 -1
  264. package/dist/cdn/{ZRW6EZNM.js → TEVDJQRA.js} +1 -1
  265. package/dist/cdn/{4UIB5DCF.js → TGO42WNV.js} +2 -2
  266. package/dist/cdn/{FB7CT23L.js → TJDQLK7G.js} +2 -2
  267. package/dist/cdn/{HIP466MX.js → U5FOT3KO.js} +2 -2
  268. package/dist/cdn/U7CERHPP.js +21 -0
  269. package/dist/cdn/{67D3MUMO.js → UJRSZU3W.js} +2 -2
  270. package/dist/cdn/{27VSDD3G.js → UL4K3TEK.js} +2 -2
  271. package/dist/cdn/{XJT3QZ5Y.js → UMX3ZFNX.js} +2 -2
  272. package/dist/cdn/{KDP4BECF.js → UN5RJRL2.js} +2 -2
  273. package/dist/cdn/{FADVMVKG.js → UQFPIFA7.js} +2 -2
  274. package/dist/cdn/UQY4RWWT.js +4 -0
  275. package/dist/cdn/{3C44ESN3.js → V3AZDL3Q.js} +2 -2
  276. package/dist/cdn/{7PTKLN2L.js → V3SHEJRF.js} +2 -2
  277. package/dist/cdn/{WQMS24OO.js → V5WZRUNS.js} +2 -2
  278. package/dist/cdn/{ILXO6CHT.js → V7R32KZG.js} +1 -1
  279. package/dist/cdn/{T6MR7AMZ.js → VCF5ECOP.js} +2 -2
  280. package/dist/cdn/{2ZSAIDWK.js → VJR7P6BV.js} +2 -2
  281. package/dist/cdn/{VNGMQ6OX.js → VKWASFD4.js} +2 -2
  282. package/dist/cdn/{YQQLKKMP.js → VNIUIIFM.js} +2 -2
  283. package/dist/cdn/{XOV7PTYS.js → VNPSHP4E.js} +2 -2
  284. package/dist/cdn/VNWH6JZ2.js +4 -0
  285. package/dist/cdn/VP7WLWWE.js +18 -0
  286. package/dist/cdn/{HEBDRFOD.js → VQ5K2ZRH.js} +2 -2
  287. package/dist/cdn/{WBK22WUY.js → VSN3MCJF.js} +2 -2
  288. package/dist/cdn/{XSLJLG6Z.js → VUPSMPY2.js} +2 -2
  289. package/dist/cdn/{WDW62BEP.js → W57M64Z5.js} +2 -2
  290. package/dist/cdn/{UPJMADWD.js → WD4HSNVO.js} +2 -2
  291. package/dist/cdn/WEQSM7IC.js +4 -0
  292. package/dist/cdn/{AAOKKWI4.js → WF3JXYL3.js} +2 -2
  293. package/dist/cdn/{PUGOZ356.js → WFZT3XAI.js} +2 -2
  294. package/dist/cdn/{DH7Y6L4L.js → WG2RTAQY.js} +2 -2
  295. package/dist/cdn/{XJK6QNHT.js → WRBC72YE.js} +2 -2
  296. package/dist/cdn/{4OUWYBZV.js → WSRA6XTH.js} +1 -1
  297. package/dist/cdn/{DFYQ2DV7.js → X377VEMR.js} +2 -2
  298. package/dist/cdn/{3U5V45B4.js → X4FO5WY5.js} +2 -2
  299. package/dist/cdn/{F5JBATY5.js → X63Q5IVG.js} +2 -2
  300. package/dist/cdn/{55FC4AUE.js → XCAWHB7I.js} +1 -1
  301. package/dist/cdn/{LJBZG3ZD.js → XEB4CP6T.js} +2 -2
  302. package/dist/cdn/{U6MX5EBF.js → XGGTGACU.js} +2 -2
  303. package/dist/cdn/{WNWWH4L2.js → XIMVS4MY.js} +1 -1
  304. package/dist/cdn/{HOSK5TNF.js → XKVQI6NZ.js} +2 -2
  305. package/dist/cdn/{LLD7HMLA.js → XLVGX5QG.js} +2 -2
  306. package/dist/cdn/{BD2QQKA3.js → XMEJ6JVV.js} +3 -3
  307. package/dist/cdn/{7EVNV3UY.js → XTWIZPJI.js} +2 -2
  308. package/dist/cdn/{L4XTL7WT.js → XXDDHD56.js} +2 -2
  309. package/dist/cdn/{SPCUOTIA.js → XXR767KI.js} +1 -1
  310. package/dist/cdn/{6NOVF62H.js → Y435VSDF.js} +2 -2
  311. package/dist/cdn/{NXPWSVO3.js → Y4M5C6YU.js} +2 -2
  312. package/dist/cdn/{ZROHJ4QZ.js → Y52HMXKU.js} +2 -2
  313. package/dist/cdn/{R4JF5HGP.js → YAQDLWIH.js} +2 -2
  314. package/dist/cdn/{YUA2JH3I.js → YCRRPNZJ.js} +2 -2
  315. package/dist/cdn/{4JLMUOEH.js → YDEVYMZ2.js} +1 -1
  316. package/dist/cdn/{7SM57VCR.js → YH5LZKSP.js} +1 -1
  317. package/dist/cdn/{FGT6NTNU.js → YIW2NPTV.js} +2 -2
  318. package/dist/cdn/{UIGOQH3Z.js → YKFCUCEU.js} +2 -2
  319. package/dist/cdn/{NGWYLY2B.js → YLSDC4BQ.js} +2 -2
  320. package/dist/cdn/{YBU6TCOK.js → YMO5WE7P.js} +2 -2
  321. package/dist/cdn/{ZOHFMOD4.js → YMU6CVCY.js} +2 -2
  322. package/dist/cdn/{7XGSDOHX.js → YPTI53FA.js} +2 -2
  323. package/dist/cdn/{HNPXWOOY.js → YU573OZL.js} +2 -2
  324. package/dist/cdn/{3JOAUTCT.js → YVSHOV3G.js} +2 -2
  325. package/dist/cdn/{JY45MOBI.js → YX6ITC3Y.js} +2 -2
  326. package/dist/cdn/{DMB5HW2W.js → YZU3OLOE.js} +2 -2
  327. package/dist/cdn/{KQ2KS5QC.js → ZAQCMLF4.js} +2 -2
  328. package/dist/cdn/{CKSUAEW7.js → ZC2BQBII.js} +2 -2
  329. package/dist/cdn/ZE2ISXNN.js +4 -0
  330. package/dist/cdn/{AZQCH32K.js → ZEDQ72KB.js} +2 -2
  331. package/dist/cdn/{MUYLWB6Y.js → ZF42G2JC.js} +2 -2
  332. package/dist/cdn/{IXRLZWJQ.js → ZFMWIEGQ.js} +1 -1
  333. package/dist/cdn/{YAAJAI6L.js → ZGOLN2TZ.js} +2 -2
  334. package/dist/cdn/{67NKDIT7.js → ZHBZCVEI.js} +2 -2
  335. package/dist/cdn/{NHMWRMI7.js → ZHIF66KC.js} +3 -3
  336. package/dist/cdn/ZJ7VEBUB.js +18 -0
  337. package/dist/cdn/{LOL3BHLQ.js → ZMNVUH2F.js} +2 -2
  338. package/dist/cdn/{GKFDXG2P.js → ZTZWSNFW.js} +2 -2
  339. package/dist/cdn/{SLINFYQE.js → ZVEIDXJX.js} +2 -2
  340. package/dist/cdn/ZYLLH7BH.js +18 -0
  341. package/dist/cdn/{OJDU53HJ.js → ZZ6EPPLQ.js} +2 -2
  342. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ar.json +1 -1
  343. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bg.json +1 -1
  344. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.bs.json +1 -1
  345. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ca.json +1 -1
  346. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.cs.json +1 -1
  347. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.da.json +1 -1
  348. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.de.json +1 -1
  349. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.el.json +1 -1
  350. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.en.json +1 -1
  351. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.es.json +1 -1
  352. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.et.json +1 -1
  353. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fi.json +1 -1
  354. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.fr.json +1 -1
  355. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.he.json +1 -1
  356. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hr.json +1 -1
  357. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.hu.json +1 -1
  358. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.id.json +1 -1
  359. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.it.json +1 -1
  360. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ja.json +1 -1
  361. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.json +1 -1
  362. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ko.json +1 -1
  363. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lt.json +1 -1
  364. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.lv.json +1 -1
  365. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.nl.json +1 -1
  366. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.no.json +1 -1
  367. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pl.json +1 -1
  368. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-BR.json +1 -1
  369. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.pt-PT.json +1 -1
  370. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ro.json +1 -1
  371. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.ru.json +1 -1
  372. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sk.json +1 -1
  373. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sl.json +1 -1
  374. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sr.json +1 -1
  375. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.sv.json +1 -1
  376. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.th.json +1 -1
  377. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.tr.json +1 -1
  378. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.uk.json +1 -1
  379. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.vi.json +1 -1
  380. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-CN.json +1 -1
  381. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-HK.json +1 -1
  382. package/dist/cdn/assets/solution-configure-dialog/t9n/messages.zh-TW.json +1 -1
  383. package/dist/cdn/assets/solution-configure-titles/t9n/messages.ar.json +1 -1
  384. package/dist/cdn/assets/solution-configure-titles/t9n/messages.bg.json +1 -1
  385. package/dist/cdn/assets/solution-configure-titles/t9n/messages.bs.json +1 -1
  386. package/dist/cdn/assets/solution-configure-titles/t9n/messages.ca.json +1 -1
  387. package/dist/cdn/assets/solution-configure-titles/t9n/messages.cs.json +1 -1
  388. package/dist/cdn/assets/solution-configure-titles/t9n/messages.da.json +1 -1
  389. package/dist/cdn/assets/solution-configure-titles/t9n/messages.de.json +1 -1
  390. package/dist/cdn/assets/solution-configure-titles/t9n/messages.el.json +1 -1
  391. package/dist/cdn/assets/solution-configure-titles/t9n/messages.en.json +1 -1
  392. package/dist/cdn/assets/solution-configure-titles/t9n/messages.es.json +1 -1
  393. package/dist/cdn/assets/solution-configure-titles/t9n/messages.et.json +1 -1
  394. package/dist/cdn/assets/solution-configure-titles/t9n/messages.fi.json +1 -1
  395. package/dist/cdn/assets/solution-configure-titles/t9n/messages.fr.json +1 -1
  396. package/dist/cdn/assets/solution-configure-titles/t9n/messages.he.json +1 -1
  397. package/dist/cdn/assets/solution-configure-titles/t9n/messages.hr.json +1 -1
  398. package/dist/cdn/assets/solution-configure-titles/t9n/messages.hu.json +1 -1
  399. package/dist/cdn/assets/solution-configure-titles/t9n/messages.id.json +1 -1
  400. package/dist/cdn/assets/solution-configure-titles/t9n/messages.it.json +1 -1
  401. package/dist/cdn/assets/solution-configure-titles/t9n/messages.ja.json +1 -1
  402. package/dist/cdn/assets/solution-configure-titles/t9n/messages.json +1 -1
  403. package/dist/cdn/assets/solution-configure-titles/t9n/messages.ko.json +1 -1
  404. package/dist/cdn/assets/solution-configure-titles/t9n/messages.lt.json +1 -1
  405. package/dist/cdn/assets/solution-configure-titles/t9n/messages.lv.json +1 -1
  406. package/dist/cdn/assets/solution-configure-titles/t9n/messages.nl.json +1 -1
  407. package/dist/cdn/assets/solution-configure-titles/t9n/messages.no.json +1 -1
  408. package/dist/cdn/assets/solution-configure-titles/t9n/messages.pl.json +1 -1
  409. package/dist/cdn/assets/solution-configure-titles/t9n/messages.pt-BR.json +1 -1
  410. package/dist/cdn/assets/solution-configure-titles/t9n/messages.pt-PT.json +1 -1
  411. package/dist/cdn/assets/solution-configure-titles/t9n/messages.ro.json +1 -1
  412. package/dist/cdn/assets/solution-configure-titles/t9n/messages.ru.json +1 -1
  413. package/dist/cdn/assets/solution-configure-titles/t9n/messages.sk.json +1 -1
  414. package/dist/cdn/assets/solution-configure-titles/t9n/messages.sl.json +1 -1
  415. package/dist/cdn/assets/solution-configure-titles/t9n/messages.sr.json +1 -1
  416. package/dist/cdn/assets/solution-configure-titles/t9n/messages.sv.json +1 -1
  417. package/dist/cdn/assets/solution-configure-titles/t9n/messages.th.json +1 -1
  418. package/dist/cdn/assets/solution-configure-titles/t9n/messages.tr.json +1 -1
  419. package/dist/cdn/assets/solution-configure-titles/t9n/messages.uk.json +1 -1
  420. package/dist/cdn/assets/solution-configure-titles/t9n/messages.vi.json +1 -1
  421. package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-CN.json +1 -1
  422. package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-HK.json +1 -1
  423. package/dist/cdn/assets/solution-configure-titles/t9n/messages.zh-TW.json +1 -1
  424. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ar.json +1 -1
  425. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.bg.json +1 -1
  426. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.bs.json +1 -1
  427. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ca.json +1 -1
  428. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.cs.json +1 -1
  429. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.da.json +1 -1
  430. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.de.json +1 -1
  431. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.el.json +1 -1
  432. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.en.json +1 -1
  433. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.es.json +1 -1
  434. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.et.json +1 -1
  435. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.fi.json +1 -1
  436. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.fr.json +1 -1
  437. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.he.json +1 -1
  438. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.hr.json +1 -1
  439. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.hu.json +1 -1
  440. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.id.json +1 -1
  441. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.it.json +1 -1
  442. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ja.json +1 -1
  443. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.json +1 -1
  444. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ko.json +1 -1
  445. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.lt.json +1 -1
  446. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.lv.json +1 -1
  447. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.nl.json +1 -1
  448. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.no.json +1 -1
  449. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.pl.json +1 -1
  450. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.pt-BR.json +1 -1
  451. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.pt-PT.json +1 -1
  452. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ro.json +1 -1
  453. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.ru.json +1 -1
  454. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.sk.json +1 -1
  455. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.sl.json +1 -1
  456. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.sr.json +1 -1
  457. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.sv.json +1 -1
  458. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.th.json +1 -1
  459. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.tr.json +1 -1
  460. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.uk.json +1 -1
  461. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.vi.json +1 -1
  462. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.zh-CN.json +1 -1
  463. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.zh-HK.json +1 -1
  464. package/dist/cdn/assets/solution-deploy-dialog/t9n/messages.zh-TW.json +1 -1
  465. package/dist/cdn/assets/solution-deployed-card/t9n/messages.de.json +1 -1
  466. package/dist/cdn/assets/solution-deployed-card/t9n/messages.en.json +1 -1
  467. package/dist/cdn/assets/solution-deployed-card/t9n/messages.json +1 -1
  468. package/dist/cdn/index.js +2 -2
  469. package/dist/chunks/Auth.js +1 -1
  470. package/dist/chunks/CardsFetcher.js +1 -1
  471. package/dist/chunks/appConfig.js +1 -1
  472. package/dist/chunks/cardFetchingUtils.js +1 -1
  473. package/dist/chunks/cardsHelpers.js +1 -1
  474. package/dist/chunks/common.js +1 -1
  475. package/dist/chunks/deployAppContexts.js +1 -1
  476. package/dist/chunks/downloadUtils.js +1 -1
  477. package/dist/chunks/getItemIcon.js +1 -1
  478. package/dist/chunks/helpers.js +1 -1
  479. package/dist/chunks/interfaces.js +8 -8
  480. package/dist/chunks/loadModules.js +1 -1
  481. package/dist/chunks/mapViewUtils.js +6 -6
  482. package/dist/chunks/pciUtils.js +1 -1
  483. package/dist/chunks/popupUtils.js +1 -1
  484. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  485. package/dist/chunks/privilegeUtils.js +1 -1
  486. package/dist/chunks/{publicNotificationStore.js → publicNotificationContext.js} +4 -22
  487. package/dist/chunks/queryUtils.js +1 -1
  488. package/dist/chunks/runtime.js +1 -1
  489. package/dist/chunks/solution-store.js +725 -156
  490. package/dist/chunks/templates.js +1 -1
  491. package/dist/chunks/useT9n.js +1 -1
  492. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  493. package/dist/components/basemap-gallery/customElement.js +1 -1
  494. package/dist/components/buffer-tools/customElement.js +1 -1
  495. package/dist/components/card-manager/customElement.js +1 -1
  496. package/dist/components/consent-manager/customElement.js +1 -1
  497. package/dist/components/create-feature/customElement.js +1 -1
  498. package/dist/components/create-related-feature/customElement.js +1 -1
  499. package/dist/components/crowdsource-manager/customElement.js +1 -1
  500. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  501. package/dist/components/deduct-calculator/customElement.js +1 -1
  502. package/dist/components/delete-button/customElement.js +1 -1
  503. package/dist/components/delete-dialog/customElement.js +1 -1
  504. package/dist/components/edit-card/customElement.js +1 -1
  505. package/dist/components/feature-details/customElement.js +1 -1
  506. package/dist/components/feature-list/customElement.js +1 -1
  507. package/dist/components/field-selection/customElement.js +1 -1
  508. package/dist/components/floor-filter/customElement.js +1 -1
  509. package/dist/components/info-card/customElement.js +1 -1
  510. package/dist/components/json-editor/customElement.js +1 -1
  511. package/dist/components/layer-list/customElement.js +1 -1
  512. package/dist/components/layer-table/customElement.js +1 -1
  513. package/dist/components/map-card/customElement.js +1 -1
  514. package/dist/components/map-draw-tools/customElement.js +28 -24
  515. package/dist/components/map-fullscreen/customElement.js +1 -1
  516. package/dist/components/map-layer-picker/customElement.js +25 -21
  517. package/dist/components/map-legend/customElement.js +1 -1
  518. package/dist/components/map-picker/customElement.js +1 -1
  519. package/dist/components/map-search/customElement.js +1 -1
  520. package/dist/components/map-select-tools/customElement.js +50 -41
  521. package/dist/components/map-tools/customElement.js +1 -1
  522. package/dist/components/pci-calculator/customElement.js +1 -1
  523. package/dist/components/pdf-download/customElement.js +1 -1
  524. package/dist/components/public-notification/customElement.d.ts +9 -1
  525. package/dist/components/public-notification/customElement.js +53 -34
  526. package/dist/components/refine-selection/customElement.js +39 -37
  527. package/dist/components/selection-tool/customElement.js +1 -1
  528. package/dist/components/solution-article-card/customElement.js +1 -1
  529. package/dist/components/solution-configuration/customElement.js +1 -1
  530. package/dist/components/solution-configure-dialog/customElement.js +7 -7
  531. package/dist/components/solution-configure-titles/customElement.js +11 -11
  532. package/dist/components/solution-contents/customElement.js +1 -1
  533. package/dist/components/solution-delete-dialog/customElement.js +95 -65
  534. package/dist/components/solution-deploy-dialog/customElement.js +7 -7
  535. package/dist/components/solution-deployed-card/customElement.js +10 -10
  536. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  537. package/dist/components/solution-details-card/customElement.js +1 -1
  538. package/dist/components/solution-details-panel/customElement.js +10 -10
  539. package/dist/components/solution-item/customElement.js +1 -1
  540. package/dist/components/solution-item-accordion/customElement.js +1 -1
  541. package/dist/components/solution-item-details/customElement.js +1 -1
  542. package/dist/components/solution-item-diagram/customElement.js +1 -1
  543. package/dist/components/solution-item-icon/customElement.js +2 -2
  544. package/dist/components/solution-item-sharing/customElement.js +1 -1
  545. package/dist/components/solution-organization-variables/customElement.js +1 -1
  546. package/dist/components/solution-resource-item/customElement.js +2 -2
  547. package/dist/components/solution-snapshot-gallery/customElement.js +4 -4
  548. package/dist/components/solution-social-share/customElement.js +1 -1
  549. package/dist/components/solution-spatial-ref/customElement.js +2 -2
  550. package/dist/components/solution-template-data/customElement.js +1 -1
  551. package/dist/components/solution-variables/customElement.js +1 -1
  552. package/dist/components/solutions-all-panel/customElement.js +2 -2
  553. package/dist/components/solutions-all-shell/customElement.js +3 -3
  554. package/dist/components/solutions-article-panel/customElement.js +1 -1
  555. package/dist/components/solutions-articles/customElement.js +1 -1
  556. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  557. package/dist/components/solutions-deploy-app/customElement.js +2 -2
  558. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  559. package/dist/components/solutions-deployed-panel/customElement.js +9 -9
  560. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  561. package/dist/components/solutions-filter-panel/customElement.js +2 -2
  562. package/dist/components/spatial-ref/customElement.js +1 -1
  563. package/dist/components/store-manager/customElement.js +1 -1
  564. package/dist/docs/api.json +1 -1
  565. package/dist/docs/docs.json +1 -1
  566. package/dist/docs/web-types.json +1 -1
  567. package/dist/index.js +1 -1
  568. package/dist/loader.js +1 -1
  569. package/dist/utils/interfaces.d.ts +7 -0
  570. package/dist/utils/publicNotificationContext.d.ts +3 -6
  571. package/package.json +1 -2
  572. package/dist/cdn/2DTOLXCZ.js +0 -18
  573. package/dist/cdn/3VP6BVHE.js +0 -4
  574. package/dist/cdn/4OQOBXO3.js +0 -4
  575. package/dist/cdn/5Y5FD2LP.js +0 -4
  576. package/dist/cdn/67RPNT5L.js +0 -18
  577. package/dist/cdn/7MVIKH5A.js +0 -4
  578. package/dist/cdn/AIZV4CWB.js +0 -18
  579. package/dist/cdn/DFQWPQRT.js +0 -18
  580. package/dist/cdn/DMPU2BJ2.js +0 -18
  581. package/dist/cdn/DO3B46LG.js +0 -4
  582. package/dist/cdn/EA27KG3M.js +0 -18
  583. package/dist/cdn/EUE7BXOZ.js +0 -4
  584. package/dist/cdn/IJO66X47.js +0 -4
  585. package/dist/cdn/K57FBRKL.js +0 -18
  586. package/dist/cdn/KRPCUDHL.js +0 -4
  587. package/dist/cdn/NCC2GVLA.js +0 -21
  588. package/dist/cdn/NT6UNLKW.js +0 -4
  589. package/dist/cdn/ONQGWMN4.js +0 -18
  590. package/dist/cdn/PVBC2MRZ.js +0 -4
  591. package/dist/cdn/QBIHVFO7.js +0 -18
  592. package/dist/cdn/UJARYVVU.js +0 -18
  593. package/dist/cdn/UTXJM3VH.js +0 -4
  594. package/dist/cdn/X4QMEPKK.js +0 -18
  595. package/dist/cdn/YO6YX3RA.js +0 -4
  596. package/dist/chunks/index.js +0 -576
  597. package/dist/utils/publicNotificationStore.d.ts +0 -8
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import{a as yt}from"./C2BDBSPV.js";import{a as $}from"./ODTKDZ5Q.js";import{a as G}from"./U7KPTWP7.js";import{c as J,n as X,t as K,z as Q}from"./QVTO6TIF.js";import{b as q}from"./BDFK5OL4.js";import"./BUBHIWNJ.js";import"./MUDQYQHV.js";import{C as m,D as d,E as j,G as h,h as W,i as c,l as V,o as z}from"./S2BECSBW.js";import{d as xt}from"./W2YEFCJC.js";function Y(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let i=document.implementation.createHTMLDocument(),n=i.createElement("base"),r=i.createElement("a");return i.head.appendChild(n),i.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}var Z=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function w(e){let t=[];for(let i=0,n=e.length;i<n;i++)t.push(e[i]);return t}var x=null;function T(e={}){return x||(e.includeStyleProperties?(x=e.includeStyleProperties,x):(x=w(window.getComputedStyle(document.documentElement)),x))}function S(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function bt(e){let t=S(e,"border-left-width"),i=S(e,"border-right-width");return e.clientWidth+t+i}function Et(e){let t=S(e,"border-top-width"),i=S(e,"border-bottom-width");return e.clientHeight+t+i}function L(e,t={}){let i=t.width||bt(e),n=t.height||Et(e);return{width:i,height:n}}function N(){let e,t;try{t=process}catch{}let i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var g=16384;function tt(e){(e.width>g||e.height>g)&&(e.width>g&&e.height>g?e.width>e.height?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g):e.width>g?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g))}function y(e){return new Promise((t,i)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=i,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function _t(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function et(e,t,i){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${i}`),r.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),r.appendChild(s),s.appendChild(e),_t(r)}var u=(e,t)=>{if(e instanceof t)return!0;let i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||u(i,t)};function Ct(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Pt(e,t){return T(t).map(i=>{let n=e.getPropertyValue(i),r=e.getPropertyPriority(i);return`${i}: ${n}${r?" !important":""};`}).join(" ")}function St(e,t,i,n){let r=`.${e}:${t}`,s=i.cssText?Ct(i):Pt(i,n);return document.createTextNode(`${r}{${s}}`)}function it(e,t,i,n){let r=window.getComputedStyle(e,i),s=r.getPropertyValue("content");if(s===""||s==="none")return;let a=Z();try{t.className=`${t.className} ${a}`}catch{return}let o=document.createElement("style");o.appendChild(St(a,i,r,n)),t.appendChild(o)}function nt(e,t,i){it(e,t,":before",i),it(e,t,":after",i)}var rt="application/font-woff",st="image/jpeg",Tt={woff:rt,woff2:rt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:st,jpeg:st,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function kt(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function b(e){let t=kt(e).toLowerCase();return Tt[t]||""}function It(e){return e.split(/,/)[1]}function C(e){return e.search(/^(data:)/)!==-1}function M(e,t){return`data:${t};base64,${e}`}async function R(e,t,i){let n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((s,a)=>{let o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(i({res:n,result:o.result}))}catch(p){a(p)}},o.readAsDataURL(r)})}var F={};function $t(e,t,i){let n=e.replace(/\?.*/,"");return i&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function E(e,t,i){let n=$t(e,t,i.includeQueryParams);if(F[n]!=null)return F[n];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{let s=await R(e,i.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),It(o)));r=M(s,t)}catch(s){r=i.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return F[n]=r,r}async function Lt(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):y(t)}async function Ft(e,t){if(e.currentSrc){let s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a?.drawImage(e,0,0,s.width,s.height);let o=s.toDataURL();return y(o)}let i=e.poster,n=b(i),r=await E(i,n,t);return y(r)}async function Mt(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await P(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Rt(e,t){return u(e,HTMLCanvasElement)?Lt(e):u(e,HTMLVideoElement)?Ft(e,t):u(e,HTMLIFrameElement)?Mt(e,t):e.cloneNode(at(e))}var Dt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",at=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function At(e,t,i){var n,r;if(at(t))return t;let s=[];return Dt(e)&&e.assignedNodes?s=w(e.assignedNodes()):u(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?s=w(e.contentDocument.body.childNodes):s=w(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),s.length===0||u(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>P(o,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bt(e,t,i){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):T(i).forEach(s=>{let a=r.getPropertyValue(s);s==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),u(e,HTMLIFrameElement)&&s==="display"&&a==="inline"&&(a="block"),s==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(s,a,r.getPropertyPriority(s))})}function Ht(e,t){u(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),u(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ut(e,t){if(u(e,HTMLSelectElement)){let i=t,n=Array.from(i.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Ot(e,t,i){return u(t,Element)&&(Bt(e,t,i),nt(e,t,i),Ht(e,t),Ut(e,t)),t}async function Wt(e,t){let i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;let n={};for(let s=0;s<i.length;s++){let o=i[s].getAttribute("xlink:href");if(o){let p=e.querySelector(o),f=document.querySelector(o);!p&&f&&!n[o]&&(n[o]=await P(f,t,!0))}}let r=Object.values(n);if(r.length){let s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";let o=document.createElementNS(s,"defs");a.appendChild(o);for(let p=0;p<r.length;p++)o.appendChild(r[p]);e.appendChild(a)}return e}async function P(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>Rt(n,t)).then(n=>At(e,n,t)).then(n=>Ot(e,n,t)).then(n=>Wt(n,t))}var ot=/url\((['"]?)([^'"]+?)\1\)/g,Vt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function jt(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function qt(e){let t=[];return e.replace(ot,(i,n,r)=>(t.push(r),i)),t.filter(i=>!C(i))}async function Gt(e,t,i,n,r){try{let s=i?Y(t,i):t,a=b(t),o;if(r){let p=await r(s);o=M(p,a)}else o=await E(s,a,n);return e.replace(jt(t),`$1${o}$3`)}catch{}return e}function Jt(e,{preferredFontFormat:t}){return t?e.replace(zt,i=>{for(;;){let[n,,r]=Vt.exec(i)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function D(e){return e.search(ot)!==-1}async function k(e,t,i){if(!D(e))return e;let n=Jt(e,i);return qt(n).reduce((s,a)=>s.then(o=>Gt(o,a,t,i)),Promise.resolve(n))}async function _(e,t,i){var n;let r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){let s=await k(r,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Xt(e,t){await _("background",e,t)||await _("background-image",e,t),await _("mask",e,t)||await _("-webkit-mask",e,t)||await _("mask-image",e,t)||await _("-webkit-mask-image",e,t)}async function Kt(e,t){let i=u(e,HTMLImageElement);if(!(i&&!C(e.src))&&!(u(e,SVGImageElement)&&!C(e.href.baseVal)))return;let n=i?e.src:e.href.baseVal,r=await E(n,b(n),t);await new Promise((s,a)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(f){a(f)}}:a;let o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),i?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){let n=w(e.childNodes).map(r=>A(r,t));await Promise.all(n).then(()=>e)}async function A(e,t){u(e,Element)&&(await Xt(e,t),await Kt(e,t),await Qt(e,t))}function pt(e,t){let{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);let n=t.style;return n!=null&&Object.keys(n).forEach(r=>{i[r]=n[r]}),e}var lt={};async function ct(e){let t=lt[e];if(t!=null)return t;let n=await(await fetch(e)).text();return t={url:e,cssText:n},lt[e]=t,t}async function ht(e,t){let i=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async a=>{let o=a.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),R(o,t.fetchRequestInit,({result:p})=>(i=i.replace(a,`url(${p})`),[a,p]))});return Promise.all(s).then(()=>i)}function dt(e){if(e==null)return[];let t=[],i=/(\/\*[\s\S]*?\*\/)/gi,n=e.replace(i,""),r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let p=r.exec(n);if(p===null)break;t.push(p[0])}n=n.replace(r,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let p=s.exec(n);if(p===null){if(p=o.exec(n),p===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(p[0])}return t}async function Yt(e,t){let i=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1,p=s.href,f=ct(p).then(v=>ht(v,t)).then(v=>dt(v).forEach(I=>{try{r.insertRule(I,I.startsWith("@import")?o+=1:r.cssRules.length)}catch(vt){console.error("Error inserting rule from remote css",{rule:I,error:vt})}})).catch(v=>{console.error("Error loading remote css",v.toString())});n.push(f)}})}catch(s){let a=e.find(o=>o.href==null)||document.styleSheets[0];r.href!=null&&n.push(ct(r.href).then(o=>ht(o,t)).then(o=>dt(o).forEach(p=>{a.insertRule(p,a.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${r.href}`,s)}}),i))}function Zt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>D(t.style.getPropertyValue("src")))}async function Nt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");let i=w(e.ownerDocument.styleSheets),n=await Yt(i,t);return Zt(n)}function ut(e){return e.trim().replace(/["']/g,"")}function te(e){let t=new Set;function i(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{t.add(ut(s))}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function mt(e,t){let i=await Nt(e,t),n=te(e);return(await Promise.all(i.filter(s=>n.has(ut(s.style.fontFamily))).map(s=>{let a=s.parentStyleSheet?s.parentStyleSheet.href:null;return k(s.cssText,a,t)}))).join(`
3
+ v1.1.0-next.20250911.2 */
4
+ import{a as yt}from"./4XEBKLU2.js";import{a as $}from"./TD3XU55Q.js";import{a as G}from"./NLAFKJ2E.js";import{c as J,n as X,t as K,z as Q}from"./BGUPQWXL.js";import{b as q}from"./6JIZ4XBP.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{C as m,D as d,E as j,G as h,h as W,i as c,l as V,o as z}from"./QQGMGBKF.js";import{d as xt}from"./SHYRK7HE.js";function Y(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let i=document.implementation.createHTMLDocument(),n=i.createElement("base"),r=i.createElement("a");return i.head.appendChild(n),i.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}var Z=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function w(e){let t=[];for(let i=0,n=e.length;i<n;i++)t.push(e[i]);return t}var x=null;function T(e={}){return x||(e.includeStyleProperties?(x=e.includeStyleProperties,x):(x=w(window.getComputedStyle(document.documentElement)),x))}function S(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function bt(e){let t=S(e,"border-left-width"),i=S(e,"border-right-width");return e.clientWidth+t+i}function Et(e){let t=S(e,"border-top-width"),i=S(e,"border-bottom-width");return e.clientHeight+t+i}function L(e,t={}){let i=t.width||bt(e),n=t.height||Et(e);return{width:i,height:n}}function N(){let e,t;try{t=process}catch{}let i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var g=16384;function tt(e){(e.width>g||e.height>g)&&(e.width>g&&e.height>g?e.width>e.height?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g):e.width>g?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g))}function y(e){return new Promise((t,i)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=i,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function _t(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function et(e,t,i){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${i}`),r.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),r.appendChild(s),s.appendChild(e),_t(r)}var u=(e,t)=>{if(e instanceof t)return!0;let i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||u(i,t)};function Ct(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Pt(e,t){return T(t).map(i=>{let n=e.getPropertyValue(i),r=e.getPropertyPriority(i);return`${i}: ${n}${r?" !important":""};`}).join(" ")}function St(e,t,i,n){let r=`.${e}:${t}`,s=i.cssText?Ct(i):Pt(i,n);return document.createTextNode(`${r}{${s}}`)}function it(e,t,i,n){let r=window.getComputedStyle(e,i),s=r.getPropertyValue("content");if(s===""||s==="none")return;let a=Z();try{t.className=`${t.className} ${a}`}catch{return}let o=document.createElement("style");o.appendChild(St(a,i,r,n)),t.appendChild(o)}function nt(e,t,i){it(e,t,":before",i),it(e,t,":after",i)}var rt="application/font-woff",st="image/jpeg",Tt={woff:rt,woff2:rt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:st,jpeg:st,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function kt(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function b(e){let t=kt(e).toLowerCase();return Tt[t]||""}function It(e){return e.split(/,/)[1]}function C(e){return e.search(/^(data:)/)!==-1}function M(e,t){return`data:${t};base64,${e}`}async function R(e,t,i){let n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((s,a)=>{let o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(i({res:n,result:o.result}))}catch(p){a(p)}},o.readAsDataURL(r)})}var F={};function $t(e,t,i){let n=e.replace(/\?.*/,"");return i&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function E(e,t,i){let n=$t(e,t,i.includeQueryParams);if(F[n]!=null)return F[n];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{let s=await R(e,i.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),It(o)));r=M(s,t)}catch(s){r=i.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return F[n]=r,r}async function Lt(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):y(t)}async function Ft(e,t){if(e.currentSrc){let s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a?.drawImage(e,0,0,s.width,s.height);let o=s.toDataURL();return y(o)}let i=e.poster,n=b(i),r=await E(i,n,t);return y(r)}async function Mt(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await P(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Rt(e,t){return u(e,HTMLCanvasElement)?Lt(e):u(e,HTMLVideoElement)?Ft(e,t):u(e,HTMLIFrameElement)?Mt(e,t):e.cloneNode(at(e))}var Dt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",at=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function At(e,t,i){var n,r;if(at(t))return t;let s=[];return Dt(e)&&e.assignedNodes?s=w(e.assignedNodes()):u(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?s=w(e.contentDocument.body.childNodes):s=w(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),s.length===0||u(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>P(o,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bt(e,t,i){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):T(i).forEach(s=>{let a=r.getPropertyValue(s);s==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),u(e,HTMLIFrameElement)&&s==="display"&&a==="inline"&&(a="block"),s==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(s,a,r.getPropertyPriority(s))})}function Ht(e,t){u(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),u(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ut(e,t){if(u(e,HTMLSelectElement)){let i=t,n=Array.from(i.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Ot(e,t,i){return u(t,Element)&&(Bt(e,t,i),nt(e,t,i),Ht(e,t),Ut(e,t)),t}async function Wt(e,t){let i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;let n={};for(let s=0;s<i.length;s++){let o=i[s].getAttribute("xlink:href");if(o){let p=e.querySelector(o),f=document.querySelector(o);!p&&f&&!n[o]&&(n[o]=await P(f,t,!0))}}let r=Object.values(n);if(r.length){let s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";let o=document.createElementNS(s,"defs");a.appendChild(o);for(let p=0;p<r.length;p++)o.appendChild(r[p]);e.appendChild(a)}return e}async function P(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>Rt(n,t)).then(n=>At(e,n,t)).then(n=>Ot(e,n,t)).then(n=>Wt(n,t))}var ot=/url\((['"]?)([^'"]+?)\1\)/g,Vt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function jt(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function qt(e){let t=[];return e.replace(ot,(i,n,r)=>(t.push(r),i)),t.filter(i=>!C(i))}async function Gt(e,t,i,n,r){try{let s=i?Y(t,i):t,a=b(t),o;if(r){let p=await r(s);o=M(p,a)}else o=await E(s,a,n);return e.replace(jt(t),`$1${o}$3`)}catch{}return e}function Jt(e,{preferredFontFormat:t}){return t?e.replace(zt,i=>{for(;;){let[n,,r]=Vt.exec(i)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function D(e){return e.search(ot)!==-1}async function k(e,t,i){if(!D(e))return e;let n=Jt(e,i);return qt(n).reduce((s,a)=>s.then(o=>Gt(o,a,t,i)),Promise.resolve(n))}async function _(e,t,i){var n;let r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){let s=await k(r,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Xt(e,t){await _("background",e,t)||await _("background-image",e,t),await _("mask",e,t)||await _("-webkit-mask",e,t)||await _("mask-image",e,t)||await _("-webkit-mask-image",e,t)}async function Kt(e,t){let i=u(e,HTMLImageElement);if(!(i&&!C(e.src))&&!(u(e,SVGImageElement)&&!C(e.href.baseVal)))return;let n=i?e.src:e.href.baseVal,r=await E(n,b(n),t);await new Promise((s,a)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(f){a(f)}}:a;let o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),i?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){let n=w(e.childNodes).map(r=>A(r,t));await Promise.all(n).then(()=>e)}async function A(e,t){u(e,Element)&&(await Xt(e,t),await Kt(e,t),await Qt(e,t))}function pt(e,t){let{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);let n=t.style;return n!=null&&Object.keys(n).forEach(r=>{i[r]=n[r]}),e}var lt={};async function ct(e){let t=lt[e];if(t!=null)return t;let n=await(await fetch(e)).text();return t={url:e,cssText:n},lt[e]=t,t}async function ht(e,t){let i=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async a=>{let o=a.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),R(o,t.fetchRequestInit,({result:p})=>(i=i.replace(a,`url(${p})`),[a,p]))});return Promise.all(s).then(()=>i)}function dt(e){if(e==null)return[];let t=[],i=/(\/\*[\s\S]*?\*\/)/gi,n=e.replace(i,""),r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let p=r.exec(n);if(p===null)break;t.push(p[0])}n=n.replace(r,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let p=s.exec(n);if(p===null){if(p=o.exec(n),p===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(p[0])}return t}async function Yt(e,t){let i=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1,p=s.href,f=ct(p).then(v=>ht(v,t)).then(v=>dt(v).forEach(I=>{try{r.insertRule(I,I.startsWith("@import")?o+=1:r.cssRules.length)}catch(vt){console.error("Error inserting rule from remote css",{rule:I,error:vt})}})).catch(v=>{console.error("Error loading remote css",v.toString())});n.push(f)}})}catch(s){let a=e.find(o=>o.href==null)||document.styleSheets[0];r.href!=null&&n.push(ct(r.href).then(o=>ht(o,t)).then(o=>dt(o).forEach(p=>{a.insertRule(p,a.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${r.href}`,s)}}),i))}function Zt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>D(t.style.getPropertyValue("src")))}async function Nt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");let i=w(e.ownerDocument.styleSheets),n=await Yt(i,t);return Zt(n)}function ut(e){return e.trim().replace(/["']/g,"")}function te(e){let t=new Set;function i(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{t.add(ut(s))}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function mt(e,t){let i=await Nt(e,t),n=te(e);return(await Promise.all(i.filter(s=>n.has(ut(s.style.fontFamily))).map(s=>{let a=s.parentStyleSheet?s.parentStyleSheet.href:null;return k(s.cssText,a,t)}))).join(`
5
5
  `)}async function gt(e,t){let i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await mt(e,t);if(i){let n=document.createElement("style"),r=document.createTextNode(i);n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function ee(e,t={}){let{width:i,height:n}=L(e,t),r=await P(e,t,!0);return await gt(r,t),await A(r,t),pt(r,t),await et(r,i,n)}async function ft(e,t={}){let{width:i,height:n}=L(e,t),r=await ee(e,t),s=await y(r),a=document.createElement("canvas"),o=a.getContext("2d"),p=t.pixelRatio||N(),f=t.canvasWidth||i,v=t.canvasHeight||n;return a.width=f*p,a.height=v*p,t.skipAutoScale||tt(a),a.style.width=`${f}`,a.style.height=`${v}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(s,0,0,a.width,a.height),a}async function wt(e,t={}){return(await ft(e,t)).toDataURL()}async function B(e,t={}){return(await ft(e,t)).toDataURL("image/jpeg",t.quality||1)}var U=xt(yt(),1);var ie=`
6
6
  @media print {
7
7
  @page {
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import{a as f}from"./GKACHUTS.js";import{a as _}from"./ODTKDZ5Q.js";import{a as S}from"./U7KPTWP7.js";import{B as D,C as I}from"./QVTO6TIF.js";import{b as L}from"./BDFK5OL4.js";import"./BUBHIWNJ.js";import"./MUDQYQHV.js";import{C as b,D as $,E as C,G as p,h as v,i as l,l as m,o as E}from"./S2BECSBW.js";import"./W2YEFCJC.js";var k="instant-apps-filter-list calcite-mode-light",O="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(h){return h.replaceAll("'","''")}function y(h,t=!1){if(h){let e=new Date(h),i=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(t){let s=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`;return`${i} ${s}`}else return i}}function P(h){if(h!=null){h.value=["",""];let t=h.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let e of t)e.value=""}}var R=v`: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__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}`,u={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",operatorDesc:"instant-apps-filter-list__operator-description"},F=class extends C{constructor(){super(...arguments),this._messages=S({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=b(),this.panelEl=b(),this.isLayerExpUpdated=!1,this.baseClass=k,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=E(),this.filterUpdate=E()}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=R}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(t){return t==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(e=>{let i=t?.find(s=>s.id===e.id);i!=null&&(e.title=i.title,e.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(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=_(this.el)==="dark"?O:k,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(t){t.has("view")&&this.handleWhenView(),t.has("layerExpressions")&&(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())}async initializeModules(){let[t,e]=await Promise.all([I(),D()]);this.geometryJsonUtils=e,this.intl=t}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:t}=this.filterLayerExpressions[0],e=t?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(u.operatorDesc)} .heading=${this._messages[e]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(t,e){let i=this.panelEl.value?.querySelector(`[id='${t.id}']`);i&&(P(i),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(e))}initInput(t,e){let{type:i,numDisplayOption:s,displayOption:n}=e;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(t,e);if(i==="number"||i==="range")return this.renderNumberSlider(t,e);if(i==="date")return this.renderDatePicker(t,e)}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 t=>{await Promise.all((t.expressions||[]).map(async e=>await this.setInitExpression(t,e)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(t=>{t.expressions?.forEach(e=>{let{type:i,numDisplayOption:s,displayOption:n}=e,a="";i==="string"||i==="coded-value"||i==="date"&&(s==="drop-down"||n==="drop-down")||(i==="number"||i==="range")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,e):this.resetCheckbox(e),e.active=!1})})}resetExpressionUI(t,e){let{id:i}=e;switch(t){case"combobox":{e.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&P(s);break}case"numberRange":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=e.min,s.maxValue=e.max);break}}}resetCheckbox(t){let{id:e}=t,i=this.panelEl.value?.querySelector(`[id='${e}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(t=>{if(!x.includes(t.type))return;let e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters)return;e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image")e.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[e.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;e.definitionExpression=this.initDefExpressions[e.id]}})}async updateStringExpression(t,e){let i=this.findFilterLayer(t);return await this.getFeatureAttributes(i,e),this.handleDateField(i,e),e?.selectedFields?(e.definitionExpression=this.createDefinitionExpression(e),!0):!1}handleDateField(t,e){e.type==="date"&&t.fields.find(({name:i})=>i===e.field)?.type==="date-only"&&(e.dateOnly=!0)}createDefinitionExpression(t){if(!t.selectedFields?.length)return"";let e=t.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){let i=this.findFilterLayer(t),{field:s}=e;if(s!=null)if(this.setExpressionFormat(i,e,s),e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down")await this.getFeatureAttributes(i,e);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(e.format?.places!=null?(e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places),e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)):(e.min=n[`min${s}`],e.max=n[`max${s}`]),e?.range&&Object.keys(e.range).length){let{min:a,max:r}=e.range;return e.definitionExpression=`${e.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(t,e){let{field:i,range:s}=e,n=this.findFilterLayer(t),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(e.min=y(a[`min${i}`]),e.max=y(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?e.definitionExpression=`${i} ${c} '${r??o}'`:e.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(e.codedValues=n,e.selectedFields?.length){let a=e.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return e.definitionExpression=`${e.field} IN (${a})`,!0}return!1}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range")return!1;let{field:i,range:s}=t;return t.min=e.domain.minValue,t.max=e.domain.maxValue,s&&Object.keys(s).length?(t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}let i=await this.getQueryLayer(t),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),a=await i.queryFeatureCount(),r=this.createQuery(i,e);await this.queryDistinctFeatures(i,r,e),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,e)}isLayerSupported(t){return t&&x.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){let i=t.createQuery();this.applyCacheHint(t,i);let s=e?.field;if(s){let n=this.getInitDefExprFromLayer(t);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(t,e,i){if(!e.outFields)return;let s=await this.queryForFeatures(t,e,e.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(t,e){return e?t*5:t}shouldPaginate(t,e,i){let s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let d=e.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(t,d,e?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,g)=>d.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,g)=>d-g):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(t,e,i){return(await t.queryFeatures(e))?.features.filter(s=>s.attributes?.[i])?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(t,e){if(!t||!x.includes(t.type)||!e)return[];let i=this.createStatisticsQuery(t,e);return(await t.queryFeatures(i))?.features||[]}createStatisticsQuery(t,e){let i=t.createQuery();return i.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,i),i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(t,e){if(t&&e){let{constraints:i}=e,s={...i}.geometry;if(s){let n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,void 0);return}let i=this.findFilterLayer(t);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===e.field),n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type,await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){await this.handleExpressionType(t,e,i)&&this.generateOutput(t)}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case void 0:return e.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,e){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):await this.updateDateExpression(t,e)}async updateRangeExpressionBasedOnDisplayOption(t,e,i){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):this.updateRangeExpression(e,i)}updateRangeExpressions(t,e,i,s){let n=this.getInitDefExprFromLayerExpression(e);(s||s===0)&&(i||i===0)&&(s===t?.min&&i===t?.max?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`,t.active=!0)),t.range={min:s,max:i}}handleCheckboxChange(t,e,i){let s=i.target;e.active=s.checked,this.generateOutput(t)}handleSliderChange(t,e,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n),this.generateOutput(e)}handleComboSelect(t,e,i){let s=i.target.selectedItems,{field:n,type:a}=t;if(t.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);t.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):`${n} IN (${r.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(Math.floor(a.getTime()),!0):void 0;(r||o)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,r,o),t.range={min:r,max:o},t.active=!0,this.generateOutput(e))}constructDefinitionExpression(t,e,i){return e?i?`${t} BETWEEN '${e}' AND '${i}'`:`${t} > '${e}'`:`${t} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let e=t.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(e)}applyFilters(t){let e=0;return t.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),e++)})}),e}activateExpression(t,e){t.active=!0,e.type==="range"?t.range=e.range:e.type==="select"&&(t.selectedFields=e.selectedFields)}createURLParamExpression(t,e){let{id:i,range:s,selectedFields:n,type:a}=e;return a==="string"||a==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"?{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:t.id,expressionId:i.toString(),range:s}:{layerId:t.id,expressionId:i.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){let e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(window.location.search),e=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=e.length,e.length>0?t.set("filter",e.join(";")):t.delete("filter"),this.autoUpdateURLCheck(t),this.urlParams=t}updateFilter(t,e,i){let{id:s}=t,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(t?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,e,t)}else this.updateFilterLayerDefExpression(n,e,t)}updateFilterLayerDefExpression(t,e,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(t),a=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=a}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){let e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`,i=this.panelEl.value?.querySelector(e),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(t),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(t){let e=this.view.allLayerViews.find(({layer:s})=>s.id===t.id).layer,i=e.type==="map-image"?e.findSublayerById(t.sublayerId):e;if(i&&i.type!=="point-cloud"&&x.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(t){if(this.view==null)return;let e=[],i=[];if(t){for(let s of t.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&e.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(t,e,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null)return;let s;if(!String(t).includes("e"))s=Math[i](t*Math.pow(10,e))/Math.pow(10,e);else{let[n,a]=String(t).split("e").map(o=>Number(o)),r=a+e;s=Math[i](+`${n}e${r}`)*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){let s=t?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(e.format=s.format)}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){let e=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===t.id);return e.type==="map-image"?e?.findSublayerById(t.sublayerId):e}createLabel(t,e){if(t.type==="coded-value")return t?.codedValues?.[e];if(t.type==="number"&&typeof e=="number"){let i=e;return t.format?.places!=null&&(i=this.roundNumber(e,t.format.places)),t.format?.digitSeparator?this.numberWithCommas(i):i}if(t.type==="date"&&!t.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,i)}return e}buildDateExpression(t,e){if(t){let i=new Date(t),s=new Date(t),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`${e} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(t){let e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e)throw new Error("Failed to create feature layer");return e}applyCacheHint(t,e){t?.capabilities?.query?.supportsCacheHint&&(e.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;let e=this.getExtent(this.extentSelector,this.extentSelectorConfig);e&&(t.geometry=e,t.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables.toArray()??[]).forEach(e=>{if(!x.includes(e.type))return;let i=e;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??""}})}render(){let t=this.loading?this.renderLoading():this.initFilterConfig(),e=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${$(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(u.filterContainer)}>${t}${e}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(t){let{id:e}=t;return t.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${e}-${s}`,l`<div class=${p(u.filterItemContainer)}><div class=${p(u.filterItemTitle)}><p>${i.name}</p></div><div class=${p(u.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,t,i)}></calcite-checkbox></div></div>`):this.initInput(t,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(t=>this.renderFilterBlocks(t))}renderFilterBlocks(t){let e=this.renderFilter(t),{operator:i}=t,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(t);return f(t.id,l`<calcite-block .heading=${t.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${e}</calcite-block>`)}renderCombobox(t,e){return f("combo-select",l`<label class=${p(u.filterUIItemContainer)}><span>${e.name}</span><calcite-combobox id=${e.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,e,t)} .label=${e.name} .placeholder=${e.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${e.fields?.map((i,s)=>this.renderComboboxItem(e,i,s))}</calcite-combobox></label>`)}renderComboboxItem(t,e,i){let s=this.createLabel(t,e),n=t?.selectedFields?.includes(e)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${e} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(t,e){let i=e?.min,s=e?.max,n=e?.step?e.step:1,a=i!=null&&s!=null,r=e?.field??"",o=e?.range?.min!=null?e.range.min:i,c=e?.range?.max!=null?e.range.max:s,d=[o,c];return a?f(e?.id.toString(),l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.numberInputContainer)}><calcite-slider id=${e?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,e,t)} .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=${d} .groupSeparator=${e?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(t,e){let{min:i,max:s}=e,n=[e?.range?.min,e?.range?.max];return i!=null&&s!=null?l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.dateInputContainer)}><calcite-input-date-picker id=${e?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,e,t)} .min=${i} .max=${s} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,e,t)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let t=this.closeBtnText??this._messages.close,e=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(u.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${e} @click=${this.handleResetFilter} ${$(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${e} kind=brand @click=${this.closeBtnOnClick}>${t}</calcite-button>`:void 0}</div>`}renderZoomTo(t){let e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?l`<calcite-action id=${e??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,t)}></calcite-action>`:void 0}};L("instant-apps-filter-list",F);export{F as InstantAppsFilterList};
3
+ v1.1.0-next.20250911.2 */
4
+ import{a as f}from"./2BTYUMLK.js";import{a as _}from"./TD3XU55Q.js";import{a as S}from"./NLAFKJ2E.js";import{B as D,C as I}from"./BGUPQWXL.js";import{b as L}from"./6JIZ4XBP.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{C as b,D as $,E as C,G as p,h as v,i as l,l as m,o as E}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var k="instant-apps-filter-list calcite-mode-light",O="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(h){return h.replaceAll("'","''")}function y(h,t=!1){if(h){let e=new Date(h),i=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(t){let s=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`;return`${i} ${s}`}else return i}}function P(h){if(h!=null){h.value=["",""];let t=h.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let e of t)e.value=""}}var R=v`: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__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}`,u={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",operatorDesc:"instant-apps-filter-list__operator-description"},F=class extends C{constructor(){super(...arguments),this._messages=S({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=b(),this.panelEl=b(),this.isLayerExpUpdated=!1,this.baseClass=k,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=E(),this.filterUpdate=E()}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=R}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(t){return t==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(e=>{let i=t?.find(s=>s.id===e.id);i!=null&&(e.title=i.title,e.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(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=_(this.el)==="dark"?O:k,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(t){t.has("view")&&this.handleWhenView(),t.has("layerExpressions")&&(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())}async initializeModules(){let[t,e]=await Promise.all([I(),D()]);this.geometryJsonUtils=e,this.intl=t}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:t}=this.filterLayerExpressions[0],e=t?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(u.operatorDesc)} .heading=${this._messages[e]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(t,e){let i=this.panelEl.value?.querySelector(`[id='${t.id}']`);i&&(P(i),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(e))}initInput(t,e){let{type:i,numDisplayOption:s,displayOption:n}=e;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(t,e);if(i==="number"||i==="range")return this.renderNumberSlider(t,e);if(i==="date")return this.renderDatePicker(t,e)}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 t=>{await Promise.all((t.expressions||[]).map(async e=>await this.setInitExpression(t,e)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(t=>{t.expressions?.forEach(e=>{let{type:i,numDisplayOption:s,displayOption:n}=e,a="";i==="string"||i==="coded-value"||i==="date"&&(s==="drop-down"||n==="drop-down")||(i==="number"||i==="range")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,e):this.resetCheckbox(e),e.active=!1})})}resetExpressionUI(t,e){let{id:i}=e;switch(t){case"combobox":{e.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&P(s);break}case"numberRange":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=e.min,s.maxValue=e.max);break}}}resetCheckbox(t){let{id:e}=t,i=this.panelEl.value?.querySelector(`[id='${e}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(t=>{if(!x.includes(t.type))return;let e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters)return;e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image")e.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[e.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;e.definitionExpression=this.initDefExpressions[e.id]}})}async updateStringExpression(t,e){let i=this.findFilterLayer(t);return await this.getFeatureAttributes(i,e),this.handleDateField(i,e),e?.selectedFields?(e.definitionExpression=this.createDefinitionExpression(e),!0):!1}handleDateField(t,e){e.type==="date"&&t.fields.find(({name:i})=>i===e.field)?.type==="date-only"&&(e.dateOnly=!0)}createDefinitionExpression(t){if(!t.selectedFields?.length)return"";let e=t.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){let i=this.findFilterLayer(t),{field:s}=e;if(s!=null)if(this.setExpressionFormat(i,e,s),e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down")await this.getFeatureAttributes(i,e);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(e.format?.places!=null?(e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places),e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)):(e.min=n[`min${s}`],e.max=n[`max${s}`]),e?.range&&Object.keys(e.range).length){let{min:a,max:r}=e.range;return e.definitionExpression=`${e.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(t,e){let{field:i,range:s}=e,n=this.findFilterLayer(t),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(e.min=y(a[`min${i}`]),e.max=y(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?e.definitionExpression=`${i} ${c} '${r??o}'`:e.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(e.codedValues=n,e.selectedFields?.length){let a=e.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return e.definitionExpression=`${e.field} IN (${a})`,!0}return!1}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range")return!1;let{field:i,range:s}=t;return t.min=e.domain.minValue,t.max=e.domain.maxValue,s&&Object.keys(s).length?(t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}let i=await this.getQueryLayer(t),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),a=await i.queryFeatureCount(),r=this.createQuery(i,e);await this.queryDistinctFeatures(i,r,e),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,e)}isLayerSupported(t){return t&&x.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){let i=t.createQuery();this.applyCacheHint(t,i);let s=e?.field;if(s){let n=this.getInitDefExprFromLayer(t);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(t,e,i){if(!e.outFields)return;let s=await this.queryForFeatures(t,e,e.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(t,e){return e?t*5:t}shouldPaginate(t,e,i){let s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let d=e.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(t,d,e?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,g)=>d.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,g)=>d-g):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(t,e,i){return(await t.queryFeatures(e))?.features.filter(s=>s.attributes?.[i])?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(t,e){if(!t||!x.includes(t.type)||!e)return[];let i=this.createStatisticsQuery(t,e);return(await t.queryFeatures(i))?.features||[]}createStatisticsQuery(t,e){let i=t.createQuery();return i.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,i),i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(t,e){if(t&&e){let{constraints:i}=e,s={...i}.geometry;if(s){let n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,void 0);return}let i=this.findFilterLayer(t);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===e.field),n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type,await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){await this.handleExpressionType(t,e,i)&&this.generateOutput(t)}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case void 0:return e.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,e){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):await this.updateDateExpression(t,e)}async updateRangeExpressionBasedOnDisplayOption(t,e,i){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):this.updateRangeExpression(e,i)}updateRangeExpressions(t,e,i,s){let n=this.getInitDefExprFromLayerExpression(e);(s||s===0)&&(i||i===0)&&(s===t?.min&&i===t?.max?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`,t.active=!0)),t.range={min:s,max:i}}handleCheckboxChange(t,e,i){let s=i.target;e.active=s.checked,this.generateOutput(t)}handleSliderChange(t,e,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n),this.generateOutput(e)}handleComboSelect(t,e,i){let s=i.target.selectedItems,{field:n,type:a}=t;if(t.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);t.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):`${n} IN (${r.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(Math.floor(a.getTime()),!0):void 0;(r||o)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,r,o),t.range={min:r,max:o},t.active=!0,this.generateOutput(e))}constructDefinitionExpression(t,e,i){return e?i?`${t} BETWEEN '${e}' AND '${i}'`:`${t} > '${e}'`:`${t} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let e=t.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(e)}applyFilters(t){let e=0;return t.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),e++)})}),e}activateExpression(t,e){t.active=!0,e.type==="range"?t.range=e.range:e.type==="select"&&(t.selectedFields=e.selectedFields)}createURLParamExpression(t,e){let{id:i,range:s,selectedFields:n,type:a}=e;return a==="string"||a==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"?{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:t.id,expressionId:i.toString(),range:s}:{layerId:t.id,expressionId:i.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){let e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(window.location.search),e=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=e.length,e.length>0?t.set("filter",e.join(";")):t.delete("filter"),this.autoUpdateURLCheck(t),this.urlParams=t}updateFilter(t,e,i){let{id:s}=t,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(t?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,e,t)}else this.updateFilterLayerDefExpression(n,e,t)}updateFilterLayerDefExpression(t,e,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(t),a=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=a}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){let e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`,i=this.panelEl.value?.querySelector(e),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(t),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(t){let e=this.view.allLayerViews.find(({layer:s})=>s.id===t.id).layer,i=e.type==="map-image"?e.findSublayerById(t.sublayerId):e;if(i&&i.type!=="point-cloud"&&x.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(t){if(this.view==null)return;let e=[],i=[];if(t){for(let s of t.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&e.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(t,e,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null)return;let s;if(!String(t).includes("e"))s=Math[i](t*Math.pow(10,e))/Math.pow(10,e);else{let[n,a]=String(t).split("e").map(o=>Number(o)),r=a+e;s=Math[i](+`${n}e${r}`)*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){let s=t?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(e.format=s.format)}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){let e=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===t.id);return e.type==="map-image"?e?.findSublayerById(t.sublayerId):e}createLabel(t,e){if(t.type==="coded-value")return t?.codedValues?.[e];if(t.type==="number"&&typeof e=="number"){let i=e;return t.format?.places!=null&&(i=this.roundNumber(e,t.format.places)),t.format?.digitSeparator?this.numberWithCommas(i):i}if(t.type==="date"&&!t.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,i)}return e}buildDateExpression(t,e){if(t){let i=new Date(t),s=new Date(t),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`${e} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(t){let e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e)throw new Error("Failed to create feature layer");return e}applyCacheHint(t,e){t?.capabilities?.query?.supportsCacheHint&&(e.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;let e=this.getExtent(this.extentSelector,this.extentSelectorConfig);e&&(t.geometry=e,t.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables.toArray()??[]).forEach(e=>{if(!x.includes(e.type))return;let i=e;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??""}})}render(){let t=this.loading?this.renderLoading():this.initFilterConfig(),e=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${$(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(u.filterContainer)}>${t}${e}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(t){let{id:e}=t;return t.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${e}-${s}`,l`<div class=${p(u.filterItemContainer)}><div class=${p(u.filterItemTitle)}><p>${i.name}</p></div><div class=${p(u.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,t,i)}></calcite-checkbox></div></div>`):this.initInput(t,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(t=>this.renderFilterBlocks(t))}renderFilterBlocks(t){let e=this.renderFilter(t),{operator:i}=t,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(t);return f(t.id,l`<calcite-block .heading=${t.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${e}</calcite-block>`)}renderCombobox(t,e){return f("combo-select",l`<label class=${p(u.filterUIItemContainer)}><span>${e.name}</span><calcite-combobox id=${e.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,e,t)} .label=${e.name} .placeholder=${e.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${e.fields?.map((i,s)=>this.renderComboboxItem(e,i,s))}</calcite-combobox></label>`)}renderComboboxItem(t,e,i){let s=this.createLabel(t,e),n=t?.selectedFields?.includes(e)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${e} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(t,e){let i=e?.min,s=e?.max,n=e?.step?e.step:1,a=i!=null&&s!=null,r=e?.field??"",o=e?.range?.min!=null?e.range.min:i,c=e?.range?.max!=null?e.range.max:s,d=[o,c];return a?f(e?.id.toString(),l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.numberInputContainer)}><calcite-slider id=${e?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,e,t)} .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=${d} .groupSeparator=${e?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(t,e){let{min:i,max:s}=e,n=[e?.range?.min,e?.range?.max];return i!=null&&s!=null?l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.dateInputContainer)}><calcite-input-date-picker id=${e?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,e,t)} .min=${i} .max=${s} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,e,t)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let t=this.closeBtnText??this._messages.close,e=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(u.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${e} @click=${this.handleResetFilter} ${$(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${e} kind=brand @click=${this.closeBtnOnClick}>${t}</calcite-button>`:void 0}</div>`}renderZoomTo(t){let e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?l`<calcite-action id=${e??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,t)}></calcite-action>`:void 0}};L("instant-apps-filter-list",F);export{F as InstantAppsFilterList};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import"./W2YEFCJC.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
3
+ v1.1.0-next.20250911.2 */
4
+ import"./SHYRK7HE.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
3
+ v1.1.0-next.20250911.2 */
4
4
  var i=(e,t="v")=>{if(!e)return e;let n=e.indexOf("?")>-1?"&":"?";return e+=`${n}${t}=${new Date().getTime()}`,e};export{i 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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
3
+ v1.1.0-next.20250911.2 */
4
4
  var e=typeof window<"u"&&"$arcgis"in window&&typeof window.$arcgis=="object"&&"import"in window.$arcgis&&!("forceESM"in window.$arcgis);function n(t){return t.default!==void 0}async function h(){if(e)return await window.$arcgis.import("esri/identity/IdentityManager");let t=await $arcgis.t(m=>m[0],"identity/IdentityManager");return n(t)?t.default:t}async function i(){if(e)return await window.$arcgis.import("esri/core/Collection");let t=await $arcgis.t(m=>m[0],"core/Collection");return n(t)?t.default:t}async function V(t){let r=await i();return new r(t)}async function o(){if(e)return await window.$arcgis.import("esri/core/Handles");let t=await $arcgis.t(m=>m[0],"core/Handles");return n(t)?t.default:t}async function b(){let t=await o();return new t}async function a(){if(e)return await window.$arcgis.import("esri/geometry/Point");let t=await $arcgis.t(m=>m[0],"geometry/Point");return n(t)?t.default:t}async function P(t){let r=await a();return new r(t)}async function s(){if(e)return await window.$arcgis.import("esri/geometry/SpatialReference");let t=await $arcgis.t(m=>m[0],"geometry/SpatialReference");return n(t)?t.default:t}async function I(t){let r=await s();return new r(t)}async function u(){if(e)return await window.$arcgis.import("esri/identity/OAuthInfo");let t=await $arcgis.t(m=>m[0],"identity/OAuthInfo");return n(t)?t.default:t}async function W(t){let r=await u();return new r(t)}async function c(){if(e)return await window.$arcgis.import("esri/layers/support/FeatureEffect");let t=await $arcgis.t(m=>m[0],"layers/support/FeatureEffect");return n(t)?t.default:t}async function F(t){let r=await c();return new r(t)}async function w(){if(e)return await window.$arcgis.import("esri/layers/support/FeatureFilter");let t=await $arcgis.t(m=>m[0],"layers/support/FeatureFilter");return n(t)?t.default:t}async function G(t){let r=await w();return new r(t)}async function p(){if(e)return await window.$arcgis.import("esri/portal/PortalItemResource");let t=await $arcgis.t(m=>m[0],"portal/PortalItemResource");return n(t)?t.default:t}async function A(t){let r=await p();return new r(t)}async function d(){if(e)return await window.$arcgis.import("esri/time/TimeExtent");let t=await $arcgis.t(m=>m[0],"time/TimeExtent");return n(t)?t.default:t}async function T(t){let r=await d();return new r(t)}async function m(){if(e)return await window.$arcgis.import("esri/time/TimeInterval");let t=await $arcgis.t(m=>m[0],"time/TimeInterval");return n(t)?t.default:t}async function D(t){let r=await m();return new r(t)}async function l(){if(e)return await window.$arcgis.import("esri/WebMap");let t=await $arcgis.t(m=>m[0],"WebMap");return n(t)?t.default:t}async function v(t){let r=await l();return new r(t)}async function f(){if(e)return await window.$arcgis.import("esri/widgets/Compass");let t=await $arcgis.t(m=>m[0],"widgets/Compass");return n(t)?t.default:t}async function E(t){let r=await f();return new r(t)}async function y(){if(e)return await window.$arcgis.import("esri/widgets/CoordinateConversion");let t=await $arcgis.t(m=>m[0],"widgets/CoordinateConversion");return n(t)?t.default:t}async function k(t){let r=await y();return new r(t)}async function g(){if(e)return await window.$arcgis.import("esri/widgets/CoordinateConversion/support/Conversion");let t=await $arcgis.t(m=>m[0],"widgets/CoordinateConversion/support/Conversion");return n(t)?t.default:t}async function O(t){let r=await g();return new r(t)}async function S(){if(e)return await window.$arcgis.import("esri/widgets/Expand");let t=await $arcgis.t(m=>m[0],"widgets/Expand");return n(t)?t.default:t}async function B(t){let r=await S();return new r(t)}async function M(){if(e)return await window.$arcgis.import("esri/widgets/Legend");let t=await $arcgis.t(m=>m[0],"widgets/Legend");return n(t)?t.default:t}async function U(t){let r=await M();return new r(t)}async function C(){if(e)return await window.$arcgis.import("esri/widgets/Legend/LegendViewModel");let t=await $arcgis.t(m=>m[0],"widgets/Legend/LegendViewModel");return n(t)?t.default:t}async function x(t){let r=await C();return new r(t)}async function $(){if(e)return await window.$arcgis.import("esri/widgets/Measurement");let t=await $arcgis.t(m=>m[0],"widgets/Measurement");return n(t)?t.default:t}async function N(t){let r=await $();return new r(t)}async function L(){if(e)return await window.$arcgis.import("esri/widgets/TimeSlider");let t=await $arcgis.t(m=>m[0],"widgets/TimeSlider");return n(t)?t.default:t}async function K(t){let r=await L();return new r(t)}async function R(){if(e)return await window.$arcgis.import("esri/widgets/Widget");let t=await $arcgis.t(m=>m[0],"widgets/Widget");return n(t)?t.default:t}async function H(t){let r=await R();return new r(t)}async function z(){if(e)return await window.$arcgis.import("esri/core/reactiveUtils");let t=await $arcgis.t(m=>m[0],"core/reactiveUtils");return n(t)?t.default:t}async function Q(){if(e)return await window.$arcgis.import("esri/geometry/operators/projectOperator");let t=await $arcgis.t(m=>m[0],"geometry/operators/projectOperator");return n(t)?t.default:t}async function q(){if(e)return await window.$arcgis.import("esri/geometry/support/jsonUtils");let t=await $arcgis.t(m=>m[0],"geometry/support/jsonUtils");return n(t)?t.default:t}async function j(){if(e)return await window.$arcgis.import("esri/intl");let t=await $arcgis.t(m=>m[0],"intl");return n(t)?t.default:t}async function J(){if(e)return await window.$arcgis.import("esri/request");let t=await $arcgis.t(m=>m[0],"request");return n(t)?t.default:t}async function Z(){if(e)return await window.$arcgis.import("esri/symbols/support/symbolUtils");let t=await $arcgis.t(m=>m[0],"symbols/support/symbolUtils");return n(t)?t.default:t}export{h as a,V as b,b as c,P as d,I as e,W as f,c as g,F as h,G as i,A as j,T as k,D as l,v as m,E as n,y as o,k as p,g as q,O as r,B as s,U as t,x as u,$ as v,N as w,K as x,H as y,z,Q as A,q as B,j as C,J as D,Z as E};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import{d as w,e as L}from"./JUZZLRHO.js";import"./7IF6BEQ4.js";import"./PUNAD2H3.js";import{b}from"./JGWCUAIV.js";import{a as V}from"./ZJHHH5QQ.js";import"./BUBHIWNJ.js";import"./MUDQYQHV.js";import{b as v}from"./5OBQPUOD.js";import{C as c,D as p,E as M,G as m,h as y,i as l,o as h,r as f}from"./S2BECSBW.js";import"./W2YEFCJC.js";var S=y`@layer{/** @license
3
+ v1.1.0-next.20250911.2 */
4
+ import{d as w,e as L}from"./SCY6BW5I.js";import"./4LG3PE5J.js";import"./6HEFYILX.js";import{b}from"./5MDH25UU.js";import{a as V}from"./5YLPXC3Y.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{b as v}from"./LZXSNZEG.js";import{C as c,D as p,E as M,G as m,h as y,i as l,o as h,r as f}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var S=y`@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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
3
+ v1.1.0-next.20250911.2 */
4
4
  var E;(function(r){r.ASC="ASC",r.DESC="DESC"})(E||(E={}));var A;(function(r){r.CLAPPING_HANDS="clapping_hands",r.CONFUSED="confused",r.DOWN_ARROW="down_arrow",r.EYES="eyes",r.FACE_WITH_TEARS_OF_JOY="face_with_tears_of_joy",r.FIRE="fire",r.GRINNING="grinning",r.HEART="heart",r.LAUGH="laugh",r.ONE_HUNDRED="one_hundred",r.PARTYING="partying",r.PARTY_POPPER="party_popper",r.RAISING_HANDS="raising_hands",r.ROCKET="rocket",r.SAD="sad",r.SLIGHTLY_SMILING="slightly_smiling",r.SURPRISED="surprised",r.THINKING="thinking",r.THUMBS_UP="thumbs_up",r.THUMBS_DOWN="thumbs_down",r.TROPHY="trophy",r.UP_ARROW="up_arrow",r.WAVING_HAND="waving_hand",r.WINKING="winking",r.WORLD_MAP="world_map"})(A||(A={}));var n;(function(r){r.PUBLIC="public",r.ORG="org",r.PRIVATE="private"})(n||(n={}));var e;(function(r){r.PENDING="pending",r.APPROVED="approved",r.REJECTED="rejected",r.DELETED="deleted",r.HIDDEN="hidden",r.BLOCKED="blocked"})(e||(e={}));var T;(function(r){r.GROUP="group",r.CONTENT="content",r.BOARD="board"})(T||(T={}));var _;(function(r){r.HUB="hub",r.AGO="ago",r.URBAN="urban"})(_||(_={}));var N;(function(r){r.REPLIES="replies",r.REACTIONS="reactions",r.PARENT="parent",r.CHANNEL="channel",r.CHANNEL_ACL="channelAcl"})(N||(N={}));var p;(function(r){r.POST="post"})(p||(p={}));var d;(function(r){r.HAS_USER_POSTS="has_user_posts"})(d||(d={}));var D;(function(r){r.CREATED_AT="createdAt",r.CREATOR="creator",r.EDITOR="editor",r.ID="id",r.UPDATED_AT="updatedAt"})(D||(D={}));var I;(function(r){r.CSV="csv",r.JSON="json"})(I||(I={}));var u;(function(r){r.READ="read",r.WRITE="write",r.READWRITE="readWrite",r.MODERATE="moderate",r.MANAGE="manage",r.OWNER="owner"})(u||(u={}));var O;(function(r){r.BODY="body",r.CHANNEL_ID="channelId",r.CREATED_AT="createdAt",r.CREATOR="creator",r.DISCUSSION="discussion",r.EDITOR="editor",r.ID="id",r.PARENT_ID="parentId",r.STATUS="status",r.TITLE="title",r.UPDATED_AT="updatedAt"})(O||(O={}));var a;(function(r){r.Text="text",r.Announcement="announcement",r.Poll="poll",r.Question="question"})(a||(a={}));var i;(function(r){r.ACCESS="access",r.CREATED_AT="createdAt",r.CREATOR="creator",r.EDITOR="editor",r.ID="id",r.LAST_ACTIVITY="last_activity",r.UPDATED_AT="updatedAt"})(i||(i={}));var R;(function(r){r.CHANNEL_ACL="channelAcl"})(R||(R={}));var U;(function(r){r.ANONYMOUS_USER="anonymousUser",r.AUTHENTICATED_USER="authenticatedUser",r.GROUP="group",r.ORG="org",r.USER="user"})(U||(U={}));var v;(function(r){r.ADMIN="admin",r.MEMBER="member"})(v||(v={}));var f;(function(r){r.CONTENT="content"})(f||(f={}));export{I as a,u as b,R as c,U as d,v as e,f};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import{a as b}from"./ZJHHH5QQ.js";import"./BUBHIWNJ.js";import"./MUDQYQHV.js";import{b as m}from"./5OBQPUOD.js";import{C as n,D as r,E as g,G as w,H as i,I as h,h as f,i as e,j as p}from"./S2BECSBW.js";import"./W2YEFCJC.js";var R=f`/** @license
3
+ v1.1.0-next.20250911.2 */
4
+ import{a as b}from"./5YLPXC3Y.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{b as m}from"./LZXSNZEG.js";import{C as n,D as r,E as g,G as w,H as i,I as h,h as f,i as e,j as p}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var R=f`/** @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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import{a as C}from"./MUDQYQHV.js";import{a as v,b as E,p as y}from"./S2BECSBW.js";var O=(n,r)=>{let e=n;for(;e;){if(e===r)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},L=(n,r,e)=>{let o=A(r).subscribe;return o(t=>{t.some(s=>O(n,s.target))&&e()})},h={},A=n=>{let r=n.join(","),e=h[r];if(e!==void 0)return e;let o=new Set,t=new MutationObserver(s=>o.forEach(a=>a(s)));globalThis.document&&t.observe(document.documentElement,{attributes:!0,attributeFilter:n,subtree:!0});let i={subscribe:s=>(o.add(s),()=>{o.delete(s),o.size===0&&(t.disconnect(),h[r]=void 0)})};return h[r]=i,i},T=(n,r)=>{let e=n;for(;e;){let o=e.closest?.(r);if(o)return o;let t=e.getRootNode?.();if(t===globalThis.document)return;e=t.host}};var N=(n,r,e)=>T(n,`[${r}]`)?.getAttribute(r)??e;var M="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),_=new Set(M),d="en",$={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},S=async(n,r,e="")=>{let o=`${r}/${e}`,t=`${o}${n}.json`;return f[t]??(f[t]=x(n,o)),await f[t]},f={},x=async(n,r)=>{let e=`${r}${n}.json`;try{let o=await fetch(e);if(o.ok)return await o.json()}catch(o){return console.error(o),{}}return n===d?{}:await x(d,r)},m=n=>{let r=N(n,"lang",globalThis.navigator?.language||d);return{lang:r,t9nLocale:w(r)}},w=n=>{let[r,e]=n.split("-"),o=r.toLowerCase(),t=o;return e&&(t=`${o}-${e.toUpperCase()}`),t=$[t]??t,_.has(t)?t:e?w(o):d},P=(n,r,e,o)=>{let t,i=()=>j(n,r(),o).then(s=>{(t?.lang!==s.lang||t.t9nLocale!==s.t9nLocale||t.t9nStrings!==s.t9nStrings)&&e(s),t=s}).catch(console.error);return queueMicrotask(i),L(n,["lang"],i)},j=async(n,r,e=n.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:t}=m(n),i=`${r}/${e}/t9n`,a=e===null?{}:await S(t,i,"messages.");return{lang:o,t9nLocale:t,t9nStrings:a}};var F=n=>D(void 0,n);var g=class extends y{constructor(r,e){super(r);let o=this.exports;try{E(this.component);let t=e(this.component,this),i=this.exports!==o;if(v(t)){i||this.setProvisionalExports(t);let s=t.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a),console.error(a)});this.onLoad(async()=>await s)}else(!i||t!==void 0)&&(this.exports=t),queueMicrotask(()=>super.catchUpLifecycle())}catch(t){this.P.reject(t),console.error(t)}}catchUpLifecycle(){}},D=C(g);var le=n=>(r={})=>F((e,o)=>{let t=m(e.el),i={_lang:t.lang,_t9nLocale:t.t9nLocale,_loading:!0},s=e;o.onLifecycle(()=>P(e.el,()=>n("./assets"),({t9nLocale:c,t9nStrings:l,lang:u})=>{let p={...l,_lang:u,_t9nLocale:c,_loading:!1};o.exports=p;let b=l.componentLabel;typeof b=="string"&&"label"in e&&e.label==null&&(e.label??=b),a(s.messageOverrides)},r.name));let a=c=>{let l=o.exports,u=l._original??l,p=k(u,c);c&&(p._original=u),o.exports=p};return"messageOverrides"in s&&o.onUpdate(c=>{c.has("messageOverrides")&&a(s.messageOverrides)}),r.blocking?(o.setProvisionalExports(i,!1),o.ready):i}),k=(n,r)=>{if(!r)return n;let e={...n};return Object.entries(r).forEach(([o,t])=>{typeof t=="object"?e[o]=k(n[o],t):e[o]=t??n[o]}),e};export{le as a};
3
+ v1.1.0-next.20250911.2 */
4
+ import{a as C}from"./HWRTCJII.js";import{a as v,b as E,p as y}from"./QQGMGBKF.js";var O=(n,r)=>{let e=n;for(;e;){if(e===r)return!0;if(!e.parentNode)return!1;e.parentNode instanceof ShadowRoot?e=e.parentNode.host:e=e.parentNode}return!1},L=(n,r,e)=>{let o=A(r).subscribe;return o(t=>{t.some(s=>O(n,s.target))&&e()})},h={},A=n=>{let r=n.join(","),e=h[r];if(e!==void 0)return e;let o=new Set,t=new MutationObserver(s=>o.forEach(a=>a(s)));globalThis.document&&t.observe(document.documentElement,{attributes:!0,attributeFilter:n,subtree:!0});let i={subscribe:s=>(o.add(s),()=>{o.delete(s),o.size===0&&(t.disconnect(),h[r]=void 0)})};return h[r]=i,i},T=(n,r)=>{let e=n;for(;e;){let o=e.closest?.(r);if(o)return o;let t=e.getRootNode?.();if(t===globalThis.document)return;e=t.host}};var N=(n,r,e)=>T(n,`[${r}]`)?.getAttribute(r)??e;var M="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),_=new Set(M),d="en",$={pt:"pt-PT",nb:"no",nn:"no",zh:"zh-CN"},S=async(n,r,e="")=>{let o=`${r}/${e}`,t=`${o}${n}.json`;return f[t]??(f[t]=x(n,o)),await f[t]},f={},x=async(n,r)=>{let e=`${r}${n}.json`;try{let o=await fetch(e);if(o.ok)return await o.json()}catch(o){return console.error(o),{}}return n===d?{}:await x(d,r)},m=n=>{let r=N(n,"lang",globalThis.navigator?.language||d);return{lang:r,t9nLocale:w(r)}},w=n=>{let[r,e]=n.split("-"),o=r.toLowerCase(),t=o;return e&&(t=`${o}-${e.toUpperCase()}`),t=$[t]??t,_.has(t)?t:e?w(o):d},P=(n,r,e,o)=>{let t,i=()=>j(n,r(),o).then(s=>{(t?.lang!==s.lang||t.t9nLocale!==s.t9nLocale||t.t9nStrings!==s.t9nStrings)&&e(s),t=s}).catch(console.error);return queueMicrotask(i),L(n,["lang"],i)},j=async(n,r,e=n.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:t}=m(n),i=`${r}/${e}/t9n`,a=e===null?{}:await S(t,i,"messages.");return{lang:o,t9nLocale:t,t9nStrings:a}};var F=n=>D(void 0,n);var g=class extends y{constructor(r,e){super(r);let o=this.exports;try{E(this.component);let t=e(this.component,this),i=this.exports!==o;if(v(t)){i||this.setProvisionalExports(t);let s=t.then(a=>{this.exports=a,super.catchUpLifecycle()}).catch(a=>{this.P.reject(a),console.error(a)});this.onLoad(async()=>await s)}else(!i||t!==void 0)&&(this.exports=t),queueMicrotask(()=>super.catchUpLifecycle())}catch(t){this.P.reject(t),console.error(t)}}catchUpLifecycle(){}},D=C(g);var le=n=>(r={})=>F((e,o)=>{let t=m(e.el),i={_lang:t.lang,_t9nLocale:t.t9nLocale,_loading:!0},s=e;o.onLifecycle(()=>P(e.el,()=>n("./assets"),({t9nLocale:c,t9nStrings:l,lang:u})=>{let p={...l,_lang:u,_t9nLocale:c,_loading:!1};o.exports=p;let b=l.componentLabel;typeof b=="string"&&"label"in e&&e.label==null&&(e.label??=b),a(s.messageOverrides)},r.name));let a=c=>{let l=o.exports,u=l._original??l,p=k(u,c);c&&(p._original=u),o.exports=p};return"messageOverrides"in s&&o.onUpdate(c=>{c.has("messageOverrides")&&a(s.messageOverrides)}),r.blocking?(o.setProvisionalExports(i,!1),o.ready):i}),k=(n,r)=>{if(!r)return n;let e={...n};return Object.entries(r).forEach(([o,t])=>{typeof t=="object"?e[o]=k(n[o],t):e[o]=t??n[o]}),e};export{le 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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import{a as Y}from"./HZ2SUTRD.js";import{a as F}from"./4JLMUOEH.js";import{a as w}from"./DMB5HW2W.js";import{a as J}from"./FOAQYWLO.js";import{a as W,b as H}from"./GPCG3O32.js";import{d as N,g as B,h as V,i as X}from"./4JETL4TY.js";import{b as h,c as E}from"./DP6FSWN3.js";import{m as u,p as T}from"./Z2YVO2MZ.js";import"./HE4JNXQB.js";import"./VVHYD2YV.js";import"./M2FSHG7J.js";import{b as S,d as C,f as R}from"./WOL7TEL4.js";import"./ILXO6CHT.js";import{i as j}from"./MUYLWB6Y.js";import"./WHK5WHZK.js";import{a as m,c as M,e as P,i as l}from"./3JTIIRVT.js";import"./VU2T7NC7.js";import"./ZOHFMOD4.js";import"./EOURWNJJ.js";import{a as A,b as O}from"./FNZVJSWG.js";import{s as L}from"./OJDU53HJ.js";import"./5K7RJOVI.js";import"./D3YHOAQH.js";import{a as f}from"./4GG72A4J.js";import"./7SM57VCR.js";import"./IXRLZWJQ.js";import{b as g}from"./5EVF6RIK.js";import"./W2YEFCJC.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
3
+ v1.1.0-next.20250911.2 */
4
+ import{a as Y}from"./GUZFVIC6.js";import{a as F}from"./YDEVYMZ2.js";import{a as w}from"./YZU3OLOE.js";import{a as J}from"./PRSEXVB4.js";import{a as W,b as H}from"./O5SXHKPM.js";import{d as N,g as B,h as V,i as X}from"./3QT7BIV3.js";import{b as h,c as E}from"./OFLFBFEA.js";import{m as u,p as T}from"./NTTQO4LF.js";import"./BU6CLZMJ.js";import"./5FYALSB7.js";import"./OWZPVOBY.js";import{b as S,d as C,f as R}from"./K7M5CHTQ.js";import"./V7R32KZG.js";import{i as j}from"./ZF42G2JC.js";import"./ET7BFDTD.js";import{a as m,c as M,e as P,i as l}from"./IDITN77F.js";import"./BGLA6JTF.js";import"./YMU6CVCY.js";import"./5F6FAGVF.js";import{a as A,b as O}from"./NFIBYZAV.js";import{s as L}from"./ZZ6EPPLQ.js";import"./CC2IBTVB.js";import"./6D4HQ7M2.js";import{a as f}from"./PTTXJVNC.js";import"./YH5LZKSP.js";import"./ZFMWIEGQ.js";import{b as g}from"./SPZFZLTC.js";import"./SHYRK7HE.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
3
+ v1.1.0-next.20250911.2 */
4
4
  function V(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function F(r){return Object.keys(r).some(e=>{let t=r[e];if(!t)return!1;switch(t&&t.toParam&&(t=t.toParam()),t.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(r){let e={};return Object.keys(r).forEach(t=>{var n,o;let s=r[t];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,a;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;a=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":a=JSON.stringify(s);break;case"Date":a=s.valueOf();break;case"Function":a=null;break;case"Boolean":a=s+"";break;default:a=s;break}(a||a===0||typeof a=="string"||Array.isArray(a))&&(e[t]=a)}),e}function Q(r,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(t=>Q(r,t)).join("&"):encodeURIComponent(r)+"="+encodeURIComponent(e)}function T(r){let e=M(r);return Object.keys(e).map(t=>Q(t,e[t])).join("&")}var X=globalThis.FormData,Oe=globalThis.File,Re=globalThis.Blob;function Y(r,e){let t=F(r)||e,n=M(r);if(t){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(r)}var k=class extends Error{constructor(e,t,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",t=t||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=t==="UNKNOWN_ERROR_CODE"?e:`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var de={noCorsDomains:[],crossOriginNoCorsDomains:{},pendingNoCorsRequests:{}},G="ARCGIS_REST_JS_NO_CORS";globalThis[G]||(globalThis[G]=Object.assign({},de));var g=globalThis[G];function B(r){let e=new URL(r);r=e.origin+e.pathname,e.search.includes("f=json")&&(r+="?f=json");let t=e.origin;return g.pendingNoCorsRequests[t]?g.pendingNoCorsRequests[t]:(g.pendingNoCorsRequests[t]=fetch(r,{mode:"no-cors",credentials:"include",cache:"no-store"}).then(n=>{g.noCorsDomains.indexOf(t)===-1&&g.noCorsDomains.push(t),g.crossOriginNoCorsDomains[t.toLowerCase()]=Date.now(),delete g.pendingNoCorsRequests[t]}).catch(n=>(delete g.pendingNoCorsRequests[t],Promise.reject(new Error(`no-cors request to ${t} failed`)))),g.pendingNoCorsRequests[t])}function Z(r){r.forEach(e=>{e=e.toLowerCase(),/^https?:\/\//.test(e)?L(e):(L("http://"+e),L("https://"+e))})}function L(r){let t=new URL(r).origin;g.noCorsDomains.indexOf(t)===-1&&g.noCorsDomains.push(t)}function z(r){let e=!1;if(g.noCorsDomains.length){let t=new URL(r).origin.toLowerCase();e=g.noCorsDomains.some(n=>t.includes(n))}return e}function ee(r){let e=!1;if(z(r)){let t=new URL(r).origin.toLowerCase(),n=g.crossOriginNoCorsDomains[t]||0;Date.now()-60*6e4>n&&(e=!0)}return e}function te(r){console&&console.warn&&console.warn.apply(console,[r])}function re(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}function ne(r,e){var t;if(!e&&!window||!r)return!1;{e=e||window;let n=(t=e.location)===null||t===void 0?void 0:t.origin;return r.startsWith(n)}}var J="@esri/arcgis-rest-js";function me(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var A=class extends k{constructor(e="AUTHENTICATION_ERROR",t="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,t,n,o,s),this.name="ArcGISAuthError",this.message=t==="AUTHENTICATION_ERROR_CODE"?e:`${t}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,t=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(a=>{let u=Object.assign(Object.assign({},this.options),{authentication:a});return oe(this.url,u)}).then(a=>{s(a)}).catch(a=>{a.name==="ArcGISAuthError"&&n<t?o(s,i):a.name===this.name&&a.message===this.message&&n>=t?i(this):i(a)})};return new Promise((s,i)=>{o(s,i)})}};function ge(r,e,t,n,o){if(r.code>=400){let{message:s,code:i}=r;throw new k(s,i,r,e,n)}if(r.error){let{message:s,code:i,messageCode:a}=r.error,u=a||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new A(s,u,r,e,n):new k(s,u,r,e,n)}if(r.status==="failed"||r.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(r.statusMessage).message,i=JSON.parse(r.statusMessage).code}catch{s=r.statusMessage||r.message}throw new k(s,i,r,e,n)}return r}function oe(r,e){let t=me(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},t),e),{params:Object.assign(Object.assign({},t.params),e.params),headers:Object.assign(Object.assign({},t.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),a=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};z(r)&&(u.credentials="include"),n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let E;if(typeof n.authentication=="string"){let c=n.authentication;E={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(c)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AATK")&&!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 E=n.authentication;let p=r,d=!1;typeof window<"u"&&(d=ne(r));let R=!d&&ee(r);n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let S=Promise.resolve();return R&&(u.credentials="include",S=B(r)),S.then(()=>E?E.getToken(r).catch(c=>(c.url=r,c.options=n,a=c,Promise.resolve(""))):Promise.resolve("")).then(c=>{c.length&&(i.token=c),E&&E.getDomainCredentials&&(u.credentials=E.getDomainCredentials(r));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)===""?r:r+"?"+T(i);n.maxUrlLength&&b.length>n.maxUrlLength||!n.maxUrlLength&&b.length>2e3||i.token&&n.hideToken?(u.method="POST",c.length&&n.hideToken&&(i.token=c,delete l["X-Esri-Authorization"])):r=b}let m=new RegExp("/items/.+/updateResources").test(r);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=J),!F(i)&&!m&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(r,u):re().then(({fetch:h})=>h(r,u))}).then(c=>{if(!c.ok)return c.json().then(l=>{let{status:m,statusText:h}=c,{message:b,details:D}=l.error,v=`${b}. ${D?D.join(" "):""}`.trim();throw new k(v,`HTTP ${m} ${h}`,l,r,n)}).catch(l=>{if(l.name==="ArcGISRequestError")throw l;let{status:m,statusText:h}=c;throw new k(h,`HTTP ${m}`,c,r,n)});if(s)return c;switch(i.f){case"json":return c.json();case"geojson":return c.json();case"html":return c.text();case"text":return c.text();default:return c.blob()}}).then(c=>{if((i.f==="json"||i.f==="geojson")&&!s){let l=ge(c,p,i,n,a);if(c&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(r)&&Array.isArray(c.authorizedCrossOriginNoCorsDomains)&&Z(c.authorizedCrossOriginNoCorsDomains),a){let m=r.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[m]={token:[],expires:new Date(Date.now()+86400*1e3)},a=null}return l}else return c})}function f(r,e={params:{f:"json"}}){let{request:t}=e,n=V(e,["request"]);return t?t(r,n):oe(r,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 we(r){let[e,t]=r.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function se(r){return!r||r.length<=0?{}:r.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:n,value:o}=we(t);return e[n]=o,e},{})}var ie=300*1e3;function C(r,e){let t=e;return t.rawResponse=!1,f(r,t).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 w(r){return typeof r!="string"||(r=r.trim(),r[r.length-1]==="/"&&(r=r.slice(0,-1))),r}var q=/^https?:\/\/(\S+)\.arcgis\.com.+/;function ae(r){return q.test(r)}function Ee(r){if(!q.test(r))return r;switch(H(r)){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 H(r){if(!q.test(r))return null;let t=r.match(q)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function ce(r,e){let t=w(Ee(e)).replace(/https?:\/\//,""),n=w(r).replace(/https?:\/\//,"");return new RegExp(n,"i").test(t)}function ue(r,e){let t=ae(r),n=ae(e),o=H(r),s=H(e);return!!(t&&n&&o===s)}function le(r,e,t="https://www.arcgis.com/sharing/rest"){let n=`${t}/oauth2/validateAppAccess`;return f(n,{method:"POST",params:{f:"json",client_id:e,token:r}})}function rt(r,e,t){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},t),r);return o.params=e.reduce((s,i)=>((r[i]||typeof r[i]=="boolean"||typeof r[i]=="number"&&r[i]===0)&&(s[i]=r[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var x;(function(r){r.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",r.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",r.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",r.NOT_FEDERATED="NOT_FEDERATED",r.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(x||(x={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",t=x.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var N=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};var he;(function(r){r.ArcGISRequestError="ArcGISRequestError",r.ArcGISAuthError="ArcGISAuthError",r.ArcGISAccessDeniedError="ArcGISAccessDeniedError",r.ArcGISTokenRequestError="ArcGISTokenRequestError"})(he||(he={}));var P=class{constructor(e){this.portal=e.portal?w(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 t=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=f(t,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var K;(function(r){r.Success="Succeeded",r.Failed="Failed",r.Waiting="Waiting",r.Cancelled="Cancelled",r.Cancelling="Cancelling",r.New="New",r.Executing="Executing",r.Submitted="Submitted",r.Failure="Failure",r.TimedOut="TimedOut",r.Error="Error",r.Status="Etatus",r.Unknown="Unknown"})(K||(K={}));function fe(r){let e=`${w(r.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=r.token,n=r.clientId;delete r.portal,delete r.clientId,delete r.token;let o=Object.assign(Object.assign({},r),{httpMethod:"POST",params:{client_id:n,auth_token:t}});return f(e,o).then(s=>{if(!s.success)throw new k("Unable to revoke token",500,s,e,o);return s})}function $(r,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function pe(r,e=window){if(!e&&window&&(e=window),r&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-256",n).then(o=>$(new Uint8Array(o),e))}return Promise.resolve(null)}function W(r){!r&&window&&(r=window);let e=r.crypto.getRandomValues(new Uint8Array(32));return $(e)}function _e(r){return typeof r.userId=="string"||typeof r.expires=="number"}var O=class r extends P{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?w(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.federatedServers={},this.trustedDomains=[],e.server){let t=this.getServerRootUrl(e.server);this.federatedServers[t]={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,t){!t&&window&&(t=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:a,popup:u,popupWindowFeatures:E,locale:p,params:d,style:R,pkce:S,state:c}=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=c||W(t),m=`ARCGIS_REST_JS_AUTH_STATE_${s}`;t.localStorage.setItem(m,l);let h=`${w(n)}/oauth2/authorize`,b={client_id:s,response_type:S?"code":"token",expiration:i,redirect_uri:a,state:JSON.stringify({id:l,originalUrl:t.location.href}),locale:p,style:R};o!=="arcgis"&&(h=`${w(n)}/oauth2/social/authorize`,b.socialLoginProviderName=o,b.autoAccountCreateForSocial=!0);let D;if(S){let v=W(t),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;t.localStorage.setItem(U,v),D=pe(v,t).then(function(_){b.code_challenge_method=_?"S256":"plain",b.code_challenge=_||v})}else D=Promise.resolve();return D.then(()=>{if(h=`${h}?${T(b)}`,d&&(h=`${h}&${T(d)}`),u)return new Promise((v,U)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${s}`,_=>{if(_.detail.error==="access_denied"){let j=new N;return U(j),j}if(_.detail.errorMessage){let j=new A(_.detail.errorMessage,_.detail.error);return U(j),j}v(new r({clientId:s,portal:n,ssl:_.detail.ssl,token:_.detail.token,tokenExpires:_.detail.expires,username:_.detail.username,refreshToken:_.detail.refreshToken,refreshTokenExpires:_.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(h,"oauth-window",E),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=h})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,E=t.localStorage.getItem(u),p=se(i?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),d=p&&p.state?JSON.parse(p.state):void 0;function R(c,l,m){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:l,errorMessage:c}})),t.close();return}return m&&t.history.replaceState(t.history.state,"",m),l==="access_denied"?Promise.reject(new N):Promise.reject(new A(c,l))}function S(c,l){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign({},c)})),t.close();return}return t.history.replaceState(t.history.state,"",l),new r({clientId:o,portal:n,ssl:c.ssl,token:c.token,tokenExpires:c.expires,username:c.username,refreshToken:c.refreshToken,refreshTokenExpires:c.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!E||!d)return R("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(d.id!==E)return R("Saved client state did not match server sent state.","mismatched-auth-state");if(p.error){let c=p.error,l=p.error_description||"Unknown error";return R(l,c,d.originalUrl)}if(i&&p.code){let c=w(`${n}/oauth2/token/`),l=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,m=t.localStorage.getItem(l);return t.localStorage.removeItem(l),C(c,{httpMethod:"POST",params:{client_id:o,code_verifier:m,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:p.code}}).then(h=>S(Object.assign(Object.assign({},h),d),d.originalUrl)).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.originalUrl)):R("Unknown error","oauth-error",d.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===t.parent&&i.data)try{return o(r.parentMessageHandler(i))}catch(a){return s(a)}},t.addEventListener("message",n,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(t.removeEventListener("message",n,!1),o))}static authorize(e,t){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};a&&(u.state=a);let E=`${n}/oauth2/authorize?${T(u)}`;t.writeHead(301,{Location:E}),t.end()}static exchangeAuthorizationCode(e,t){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:t}}).then(i=>new r({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,x.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let t=JSON.parse(e);return new r({clientId:t.clientId,refreshToken:t.refreshToken,refreshTokenExpires:t.refreshTokenExpires?new Date(t.refreshTokenExpires):void 0,username:t.username,password:t.password,token:t.token,tokenExpires:t.tokenExpires?new Date(t.tokenExpires):void 0,portal:t.portal,ssl:t.ssl,tokenDuration:t.tokenDuration,redirectUri:t.redirectUri,server:t.server})}static fromCredential(e,t){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return t.hasServer?new r({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new r({portal:w(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 t=e.data.credential;return _e(t)?r.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new r(t)}if(e.data.type==="arcgis:auth:error"){let t=new Error(e.data.error.message);throw t.name=e.data.error.name,t}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 t=new r(e);return t.getUser().then(()=>t)}static signIn(e){let t=new r(e);return t.getUser().then(()=>t)}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 t=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=f(t,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,t){return ue(this.portal,e)?this.getFreshToken(t):new RegExp(this.portal,"i").test(e)?this.getFreshToken(t):this.getTokenForServer(e,t)}validateAppAccess(e){return this.getToken(this.portal).then(t=>le(t,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,t){!t&&window&&(t=window),this._hostHandler=this.createPostMessageHandler(e),t.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.",x.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=w(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=t.match(/(https?:\/\/)(.+)/),[i,...a]=s.split("/");return`${o}${i.toLowerCase()}/${a.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(t=>e.startsWith(t.toLowerCase()))?"include":"same-origin")}signOut(){return r.destroy(this)}createPostMessageHandler(e){return t=>{let n=e.indexOf(t.origin)>-1,o=t.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:a}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(i,t.origin)}}}getTokenForServer(e,t){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`,t);throw new y(`${e} is not federated with ${this.portal}.`,x.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.`,x.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,t){return f(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,x.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 t={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:J};return(this.server?f(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>f(n.authInfo.tokenServicesUrl,Object.assign({params:t},e))):f(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,x.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,x.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,t){return this._token=e,this._tokenExpires=t,this}exchangeRefreshToken(e){let t=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`,t).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,x.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(t=>!t.startsWith("http://")).map(t=>t.startsWith("https://")?t:`https://${t}`)),this))}};function I(r){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new O(r)}I.beginOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),O.beginOAuth2(...r)};I.completeOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),r.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),O.completeOAuth2(...r)};I.fromParent=function(...r){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),O.fromParent(...r)};I.authorize=function(...r){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),O.authorize(...r)};I.exchangeAuthorizationCode=function(...r){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),O.exchangeAuthorizationCode(...r)};I.fromCredential=function(...r){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(...r)};I.deserialize=function(...r){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),O.deserialize(...r)};export{Y as a,te as b,A as c,f as d,rt as e,w 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.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import"./W2YEFCJC.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
3
+ v1.1.0-next.20250911.2 */
4
+ import"./SHYRK7HE.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import{a as X}from"./FOAQYWLO.js";import{a as s}from"./7FBWJQQL.js";import{c as x}from"./SPCUOTIA.js";import{a as J,b as H}from"./GPCG3O32.js";import{h as V,i as z}from"./4JETL4TY.js";import{b as R,c as w}from"./DP6FSWN3.js";import{d as U,e as M,h as I,j as h,m as K,p as P,q as T,r as N,s as C,t as B}from"./Z2YVO2MZ.js";import"./HE4JNXQB.js";import"./VVHYD2YV.js";import"./M2FSHG7J.js";import"./WOL7TEL4.js";import{a as S,b as c,c as f,d as L,e as E,f as k}from"./LJBZG3ZD.js";import"./ILXO6CHT.js";import{i as G}from"./MUYLWB6Y.js";import"./WHK5WHZK.js";import{a as p}from"./3JTIIRVT.js";import"./VU2T7NC7.js";import"./ZOHFMOD4.js";import"./EOURWNJJ.js";import"./FNZVJSWG.js";import{k as O,s as j}from"./OJDU53HJ.js";import"./5K7RJOVI.js";import"./D3YHOAQH.js";import"./4GG72A4J.js";import{a as d}from"./7SM57VCR.js";import"./IXRLZWJQ.js";import"./5EVF6RIK.js";import"./W2YEFCJC.js";function b(e,t){if(e===t)return!0;if(e&&t&&x(e)&&x(t)){if(Array.isArray(e)!==Array.isArray(t))return!1;let o=Object.keys(e);return o.length!==Object.keys(t).length?!1:o.every(r=>b(e[r],t[r]))}return!1}var le=/\/[a-zA-Z]+server(\/|\/(\d+))?$/i;function Q(e){return le.test(e)}var pe=async(e,t)=>{let o=await fetch(C(e,t)),r=await o.json();if(!o.ok||r.statusCode===404)return{message:`Download schedule not found for item ${e}`,statusCode:404,schedule:null};if(r.mode==="manual")return{schedule:{mode:"manual"},message:`Download schedule found for item ${e}`,statusCode:200};switch(delete r.itemId,r.cadence){case"daily":case"weekly":case"monthly":case"yearly":return{schedule:Object.assign(Object.assign({},r),{mode:"scheduled"}),message:`Download schedule found for item ${e}`,statusCode:200}}},ce=async(e,t,o)=>{let r=p(t);r.mode!=="manual"&&delete r.mode;let a=C(e,o),i={method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify(Object.assign(Object.assign({},r),{itemId:e}))},n=await fetch(a,i);return Object.assign(Object.assign({},await n.json()),{statusCode:n.status})},me=async(e,t)=>{let o=C(e,t),a=await fetch(o,{method:"DELETE",headers:{accept:"application/json"}});return Object.assign(Object.assign({},await a.json()),{statusCode:a.status})},$=async(e,t)=>{let o=await pe(e.id,t);return e.schedule.mode==="automatic"&&o.statusCode===404?{message:"No schedule set, and incoming schedule is automatic.",statusCode:404}:b(e.schedule,o.schedule)?{message:"No action needed as schedules deepEqual each other."}:e.schedule.mode==="automatic"?await me(e.id,t):await ce(e.id,e.schedule,t)},Y=(e,t)=>{var o,r;let a=(o=e.authentication)===null||o===void 0?void 0:o.token;return((r=e.portal)===null||r===void 0?void 0:r.includes("arcgis.com"))&&t==="public"&&!!a};function v(){let e=J();return e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"licenseInfo",storeKey:"item.licenseInfo"}),e.push({entityKey:"size",storeKey:"item.size"}),e}function W(e,t,o,r={}){let a;o.authentication&&(a=o.authentication.token),t=H(e.item,t);let i=K(e.item,o,a);if(t.thumbnailUrl=i,t.links={self:G(t.id,o),siteRelative:P(t.type,t.slug||t.id,t.typeKeywords),siteRelativeEntityType:P(t.type),workspaceRelative:X("content",t.id),thumbnail:i,contentEditUrl:N(e.item,o)},t.licenseInfo=e.item.licenseInfo||"",t.schedule=r.schedule,t.extendedProps=Q(t.url)?ue(e.item,r,o):fe(e.item,r,o),r.server){t.serverQueryCapability=f(c.QUERY,r.server),t.serverExtractCapability=f(c.EXTRACT,r.server);let n=d(r,"server.supportedExportFormats");t.serverExtractFormats=n&&n.split(",")}return r.metadata&&(t.additionalResources=T(e.item,r.metadata,o)),t}function ue(e,t,o){let r=Z(e,t,o),a=Object.assign(Object.assign({},r),{kind:"service"});if(t.server){a.server=t.server,a.serverQueryCapability=f(c.QUERY,t.server),a.serverExtractCapability=f(c.EXTRACT,t.server);let i=d(t,"server.supportedExportFormats");a.serverExtractFormats=i&&i.split(",")}return a}function fe(e,t,o){let r=Z(e,t,o);return Object.assign(Object.assign({},r),{kind:"content"})}function Z(e,t,o){return{kind:null,metadata:t.metadata,additionalResources:T(e,t.metadata,o),downloads:d(e,"properties.downloads")}}function q(e,t,o){let a=new w(v()).storeToEntity(e,{});return W(e,a,t,o)}var A=[s.JPG,s.PNG,s.PNG8,s.PNG24,s.PNG32],ee=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML],te=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB],D=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB,s.FEATURE_COLLECTION,s.EXCEL,s.GEO_PACKAGE,s.SQLITE,s.JSON];function oe(e){let t=e.serverExtractFormats||[],o=D.filter(a=>t.includes(a)),r=t.filter(a=>!D.includes(a));return[...o,...r].map(a=>({type:"dynamic",format:a}))}function re(e){return((d(e,"extendedProps.server.currentVersion")||0)<10.2?A.filter(r=>r!==s.PNG32):A).map(r=>({type:"dynamic",format:r}))}function ae(){return ee.map(e=>({type:"dynamic",format:e}))}function se(){return te.map(e=>({type:"dynamic",format:e}))}function ie(e,t){let o=[],r={createReplica:()=>{o=oe(t)},paging:()=>{o=ae()},fgdb:()=>{o=se()},exportImage:()=>{o=re(t)}};return r[e]&&r[e](),o}function ne(e){let t=E(e),o=ie(t,e),r=d(e,"extendedProps.additionalResources")||[],a=d(e,"extendedProps.downloads"),i=o.map(l=>({key:l.format,hidden:!1}));if(r.forEach((l,m)=>{i.push({key:`additionalResource::${m}`,hidden:!1})}),a&&a.flowType===t){let l=i.filter(u=>!a.formats.find(g=>g.key===u.key)),m=a.formats.filter(u=>i.find(g=>g.key===u.key));return{flowType:t,formats:[...m,...l]}}return{flowType:t,formats:i}}var ge={item:{title:"No Title Provided",description:"",snippet:"",tags:[],typeKeywords:[]},data:null};async function Ft(e,t){let o=Object.assign({},e);o.typeKeywords=R(o.typeKeywords,o.isDiscussable);let r=new w(v()),a=r.entityToStore(o,p(ge));return a=await V(a,t),r.storeToEntity(a,{})}async function xt(e,t){let o=await O(e.id,t),r={item:o};e.typeKeywords=R(e.typeKeywords,e.isDiscussable);let i=new w(v()).entityToStore(e,r),n=E(e),l=d(e,"extendedProps.downloads.formats"),m=S(e)&&n!=="createReplica";if(k(e)&&n&&l&&!m){let y=p(e.extendedProps.downloads);h("item.properties.downloads",y,i,!0)}let g=await z(i,t),F={};if(S(e)){let y=await M(Object.assign(Object.assign({},t),{url:e.url}));if(f(c.EXTRACT,y)!==e.serverExtractCapability){let _=L(c.EXTRACT,y),de={capabilities:_.capabilities};await I(U(e.url),{authentication:t.authentication,updateDefinition:de}),F.server=_}else F.server=y}return Y(t,e.access)&&(b(e._forceUpdate,[!0])&&await B(o.id,t),delete e._forceUpdate,await $(e,t)),q(g,t,F)}async function ht(e,t){let o=Object.assign(Object.assign({},t),{id:e});await j(o)}function St(e,t){var o;let r=p(e);delete r.downloadFormats;let a=p(r);if(E(a)&&e.downloadFormats){let n=ne(a),l=e.downloadFormats.map(m=>{let u=p(m);return delete u.label,u});n.formats=l,h("extendedProps.downloads",n,a,!0)}return a.extent=((o=e.location)===null||o===void 0?void 0:o.extent)||[],a}export{Ft as createContent,ht as deleteContent,St as editorToContent,xt as updateContent};
3
+ v1.1.0-next.20250911.2 */
4
+ import{a as X}from"./PRSEXVB4.js";import{a as s}from"./L5UT6SUW.js";import{c as x}from"./XXR767KI.js";import{a as J,b as H}from"./O5SXHKPM.js";import{h as V,i as z}from"./3QT7BIV3.js";import{b as R,c as w}from"./OFLFBFEA.js";import{d as U,e as M,h as I,j as h,m as K,p as P,q as T,r as N,s as C,t as B}from"./NTTQO4LF.js";import"./BU6CLZMJ.js";import"./5FYALSB7.js";import"./OWZPVOBY.js";import"./K7M5CHTQ.js";import{a as S,b as c,c as f,d as L,e as E,f as k}from"./XEB4CP6T.js";import"./V7R32KZG.js";import{i as G}from"./ZF42G2JC.js";import"./ET7BFDTD.js";import{a as p}from"./IDITN77F.js";import"./BGLA6JTF.js";import"./YMU6CVCY.js";import"./5F6FAGVF.js";import"./NFIBYZAV.js";import{k as O,s as j}from"./ZZ6EPPLQ.js";import"./CC2IBTVB.js";import"./6D4HQ7M2.js";import"./PTTXJVNC.js";import{a as d}from"./YH5LZKSP.js";import"./ZFMWIEGQ.js";import"./SPZFZLTC.js";import"./SHYRK7HE.js";function b(e,t){if(e===t)return!0;if(e&&t&&x(e)&&x(t)){if(Array.isArray(e)!==Array.isArray(t))return!1;let o=Object.keys(e);return o.length!==Object.keys(t).length?!1:o.every(r=>b(e[r],t[r]))}return!1}var le=/\/[a-zA-Z]+server(\/|\/(\d+))?$/i;function Q(e){return le.test(e)}var pe=async(e,t)=>{let o=await fetch(C(e,t)),r=await o.json();if(!o.ok||r.statusCode===404)return{message:`Download schedule not found for item ${e}`,statusCode:404,schedule:null};if(r.mode==="manual")return{schedule:{mode:"manual"},message:`Download schedule found for item ${e}`,statusCode:200};switch(delete r.itemId,r.cadence){case"daily":case"weekly":case"monthly":case"yearly":return{schedule:Object.assign(Object.assign({},r),{mode:"scheduled"}),message:`Download schedule found for item ${e}`,statusCode:200}}},ce=async(e,t,o)=>{let r=p(t);r.mode!=="manual"&&delete r.mode;let a=C(e,o),i={method:"POST",headers:{"Content-Type":"application/json",accept:"application/json"},body:JSON.stringify(Object.assign(Object.assign({},r),{itemId:e}))},n=await fetch(a,i);return Object.assign(Object.assign({},await n.json()),{statusCode:n.status})},me=async(e,t)=>{let o=C(e,t),a=await fetch(o,{method:"DELETE",headers:{accept:"application/json"}});return Object.assign(Object.assign({},await a.json()),{statusCode:a.status})},$=async(e,t)=>{let o=await pe(e.id,t);return e.schedule.mode==="automatic"&&o.statusCode===404?{message:"No schedule set, and incoming schedule is automatic.",statusCode:404}:b(e.schedule,o.schedule)?{message:"No action needed as schedules deepEqual each other."}:e.schedule.mode==="automatic"?await me(e.id,t):await ce(e.id,e.schedule,t)},Y=(e,t)=>{var o,r;let a=(o=e.authentication)===null||o===void 0?void 0:o.token;return((r=e.portal)===null||r===void 0?void 0:r.includes("arcgis.com"))&&t==="public"&&!!a};function v(){let e=J();return e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"licenseInfo",storeKey:"item.licenseInfo"}),e.push({entityKey:"size",storeKey:"item.size"}),e}function W(e,t,o,r={}){let a;o.authentication&&(a=o.authentication.token),t=H(e.item,t);let i=K(e.item,o,a);if(t.thumbnailUrl=i,t.links={self:G(t.id,o),siteRelative:P(t.type,t.slug||t.id,t.typeKeywords),siteRelativeEntityType:P(t.type),workspaceRelative:X("content",t.id),thumbnail:i,contentEditUrl:N(e.item,o)},t.licenseInfo=e.item.licenseInfo||"",t.schedule=r.schedule,t.extendedProps=Q(t.url)?ue(e.item,r,o):fe(e.item,r,o),r.server){t.serverQueryCapability=f(c.QUERY,r.server),t.serverExtractCapability=f(c.EXTRACT,r.server);let n=d(r,"server.supportedExportFormats");t.serverExtractFormats=n&&n.split(",")}return r.metadata&&(t.additionalResources=T(e.item,r.metadata,o)),t}function ue(e,t,o){let r=Z(e,t,o),a=Object.assign(Object.assign({},r),{kind:"service"});if(t.server){a.server=t.server,a.serverQueryCapability=f(c.QUERY,t.server),a.serverExtractCapability=f(c.EXTRACT,t.server);let i=d(t,"server.supportedExportFormats");a.serverExtractFormats=i&&i.split(",")}return a}function fe(e,t,o){let r=Z(e,t,o);return Object.assign(Object.assign({},r),{kind:"content"})}function Z(e,t,o){return{kind:null,metadata:t.metadata,additionalResources:T(e,t.metadata,o),downloads:d(e,"properties.downloads")}}function q(e,t,o){let a=new w(v()).storeToEntity(e,{});return W(e,a,t,o)}var A=[s.JPG,s.PNG,s.PNG8,s.PNG24,s.PNG32],ee=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML],te=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB],D=[s.CSV,s.SHAPEFILE,s.GEOJSON,s.KML,s.FILE_GDB,s.FEATURE_COLLECTION,s.EXCEL,s.GEO_PACKAGE,s.SQLITE,s.JSON];function oe(e){let t=e.serverExtractFormats||[],o=D.filter(a=>t.includes(a)),r=t.filter(a=>!D.includes(a));return[...o,...r].map(a=>({type:"dynamic",format:a}))}function re(e){return((d(e,"extendedProps.server.currentVersion")||0)<10.2?A.filter(r=>r!==s.PNG32):A).map(r=>({type:"dynamic",format:r}))}function ae(){return ee.map(e=>({type:"dynamic",format:e}))}function se(){return te.map(e=>({type:"dynamic",format:e}))}function ie(e,t){let o=[],r={createReplica:()=>{o=oe(t)},paging:()=>{o=ae()},fgdb:()=>{o=se()},exportImage:()=>{o=re(t)}};return r[e]&&r[e](),o}function ne(e){let t=E(e),o=ie(t,e),r=d(e,"extendedProps.additionalResources")||[],a=d(e,"extendedProps.downloads"),i=o.map(l=>({key:l.format,hidden:!1}));if(r.forEach((l,m)=>{i.push({key:`additionalResource::${m}`,hidden:!1})}),a&&a.flowType===t){let l=i.filter(u=>!a.formats.find(g=>g.key===u.key)),m=a.formats.filter(u=>i.find(g=>g.key===u.key));return{flowType:t,formats:[...m,...l]}}return{flowType:t,formats:i}}var ge={item:{title:"No Title Provided",description:"",snippet:"",tags:[],typeKeywords:[]},data:null};async function Ft(e,t){let o=Object.assign({},e);o.typeKeywords=R(o.typeKeywords,o.isDiscussable);let r=new w(v()),a=r.entityToStore(o,p(ge));return a=await V(a,t),r.storeToEntity(a,{})}async function xt(e,t){let o=await O(e.id,t),r={item:o};e.typeKeywords=R(e.typeKeywords,e.isDiscussable);let i=new w(v()).entityToStore(e,r),n=E(e),l=d(e,"extendedProps.downloads.formats"),m=S(e)&&n!=="createReplica";if(k(e)&&n&&l&&!m){let y=p(e.extendedProps.downloads);h("item.properties.downloads",y,i,!0)}let g=await z(i,t),F={};if(S(e)){let y=await M(Object.assign(Object.assign({},t),{url:e.url}));if(f(c.EXTRACT,y)!==e.serverExtractCapability){let _=L(c.EXTRACT,y),de={capabilities:_.capabilities};await I(U(e.url),{authentication:t.authentication,updateDefinition:de}),F.server=_}else F.server=y}return Y(t,e.access)&&(b(e._forceUpdate,[!0])&&await B(o.id,t),delete e._forceUpdate,await $(e,t)),q(g,t,F)}async function ht(e,t){let o=Object.assign(Object.assign({},t),{id:e});await j(o)}function St(e,t){var o;let r=p(e);delete r.downloadFormats;let a=p(r);if(E(a)&&e.downloadFormats){let n=ne(a),l=e.downloadFormats.map(m=>{let u=p(m);return delete u.label,u});n.formats=l,h("extendedProps.downloads",n,a,!0)}return a.extent=((o=e.location)===null||o===void 0?void 0:o.extent)||[],a}export{Ft as createContent,ht as deleteContent,St as editorToContent,xt as updateContent};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250909 */
4
- import{a as u}from"./QBNNAIIS.js";import{b as l,c as g,e as m}from"./HIP466MX.js";import"./NTSIPZDQ.js";import"./HZ2SUTRD.js";import"./SPCUOTIA.js";import"./4JETL4TY.js";import"./Z2YVO2MZ.js";import"./VVHYD2YV.js";import"./M2FSHG7J.js";import"./WOL7TEL4.js";import"./MUYLWB6Y.js";import"./WHK5WHZK.js";import"./3JTIIRVT.js";import"./VU2T7NC7.js";import"./EOURWNJJ.js";import"./FNZVJSWG.js";import"./OJDU53HJ.js";import"./5K7RJOVI.js";import"./D3YHOAQH.js";import"./4GG72A4J.js";import"./7SM57VCR.js";import"./IXRLZWJQ.js";import{a as p}from"./ZJHHH5QQ.js";import"./BUBHIWNJ.js";import"./MUDQYQHV.js";import{b as h}from"./5OBQPUOD.js";import{C as a,D as o,E as d,I as s,h as r,i as t,j as c}from"./S2BECSBW.js";import"./W2YEFCJC.js";var f=r`/** @license
3
+ v1.1.0-next.20250911.2 */
4
+ import{a as u}from"./LOFOYFYB.js";import{a as g,c as m}from"./KQXXZPWB.js";import{b as l}from"./U5FOT3KO.js";import"./IOLMZX66.js";import"./GUZFVIC6.js";import"./XXR767KI.js";import"./3QT7BIV3.js";import"./NTTQO4LF.js";import"./5FYALSB7.js";import"./OWZPVOBY.js";import"./K7M5CHTQ.js";import"./ZF42G2JC.js";import"./ET7BFDTD.js";import"./IDITN77F.js";import"./BGLA6JTF.js";import"./5F6FAGVF.js";import"./NFIBYZAV.js";import"./ZZ6EPPLQ.js";import"./CC2IBTVB.js";import"./6D4HQ7M2.js";import"./PTTXJVNC.js";import"./YH5LZKSP.js";import"./ZFMWIEGQ.js";import{a as p}from"./5YLPXC3Y.js";import"./C5X2ZRMN.js";import"./HWRTCJII.js";import{b as h}from"./LZXSNZEG.js";import{C as o,D as s,E as d,I as i,h as r,i as t,j as c}from"./QQGMGBKF.js";import"./SHYRK7HE.js";var f=r`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import{a as u}from"./QBNNAIIS.js";import{b as l,c as g,e as m}from"./HIP466MX.js
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */calcite-card{width:295px;height:100%;padding-bottom:2px}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(20%);filter:brightness(20%);-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{outline:2px solid var(--calcite-ui-brand);box-sizing:content-box;cursor:pointer}.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:1.2rem}.card-image-wrap{flex:0 0 auto}.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}.width-full{width:100%}.deployed-label-override{--calcite-label-text-color: var(--calcite-color-text-3);--calcite-label-margin-bottom: 0px}.svg-color{fill:var(--calcite-color-text-3)}.padding-end-1-2{padding-inline-end:.5rem}.padding-bottom-1-2{padding-bottom:.5rem}.display-flex{display:flex}.flex-direction-column{flex-direction:column}.align-items-center{align-items:center}.font-weight-400,.font-weight-normal{font-weight:400}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.icon-brand-color{--calcite-icon-color: var(--calcite-color-brand)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.justify-content-space-between{justify-content:space-between}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.cursor-default{cursor:default}`,n=class extends d{constructor(){super(...arguments),this.allowDelete=!1,this.deployedDate="",this.description="",this.heading="",this.itemId="",this.owner="",this.thumbnail="",this.updateAvailable=!1,this.templateInfos=[],this._isConfigureOpen=!1,this._isDeleteOpen=!1,this._isDiagramOpen=!1,this.templateInfoGraph=[],this._configureTitlesOpen=!1,this._translations=p({name:"solution-deployed-card",blocking:!0}),this._authContextConsumer=l({context:m,subscribe:!0}),this._configureDialogRef=a(),this._deleteDialogRef=a(),this._diagramDialogRef=a(),this._userSessionContextConsumer=l({context:g,subscribe:!0})}static{this.properties={allowDelete:5,card:0,deployedDate:1,description:1,heading:1,itemId:1,owner:1,thumbnail:1,updateAvailable:5,templateInfos:0,cardRef:0,_isConfigureOpen:16,_isDeleteOpen:16,_isDiagramOpen:16,templateInfoGraph:16,_configureTitlesOpen:16,_translations:16}}static{this.styles=f}async renderConfigureDialog(e){this._cardSelected(),this._configureDialogRef.value&&(this._configureDialogRef.value.showSuccessAlert=e)}async renderDeleteDialog(){return this._isDeleteOpen=!0,this._renderDeleteDialog(),this._deleteDialogRef.value}async renderDiagramDialog(e){return this._isDiagramOpen=!0,await this._viewDiagram(e),await this._renderDiagramDialog(),this._diagramDialogRef.value}async getTemplates(){return this._processTemplates(this.card)}willUpdate(e){e.has("card")&&this._processTemplates(this.card).then(i=>{this.templateInfos=i})}render(){return t`<calcite-card .label=${this.description} @click=${this._cardSelected}>${this._getImage()}${this._getHeader()}<p slot=description class="font-color-text-2 font-line-height font-size-size--1">${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this._getOwnerLabel()}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureDialog()}${this._renderConfigureTitlesDialog()}`}_getImage(){let e=this._userSessionContextConsumer.value;return t`<div class="card-image-wrap" slot=thumbnail><img class="thumbnail card-image" alt=${this.heading??s} src=${`${this.thumbnail}&token=${e?.token}`}><div class="hover-text">${this._translations.openSolution}</div></div>`}_getHeader(){return t`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`}_getOwnerLabel(){return t`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`}_getDeployedDate(){return t`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${c`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}",this.deployedDate)}</calcite-label></div>`}_getConfigureButton(){return t`<calcite-split-button appearance=outline kind=neutral @calciteSplitButtonPrimaryClick=${()=>{this._isConfigureOpen=!0}} @click=${e=>e.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution??s} width=full><calcite-dropdown-group selection-mode=none><calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=model @click=${this._viewDiagram}>${this._translations.viewDiagram}</calcite-dropdown-item><calcite-dropdown-item icon-start=edit-attributes @click=${()=>{this._configureTitlesOpen=!0}}>${this._translations.renameItems}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails}>${this._translations.viewItemDetails}</calcite-dropdown-item>${this.allowDelete&&t`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-dropdown-item>`||""}</calcite-dropdown-group></calcite-split-button>`}_renderDeleteDialog(){return this._isDeleteOpen?t`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${e=>{this._isDeleteOpen=e.detail}} .open=${this._isDeleteOpen} ${o(this._deleteDialogRef)}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?t`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")??s} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled resizable scale=l width=l ${o(this._diagramDialogRef)}><solution-item-diagram .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_renderConfigureDialog(){return t`<solution-configure-dialog .card=${this.card} .cardRef=${this.el} @solutionConfigureDialogClose=${()=>{this._isConfigureOpen=!1}} .open=${this._isConfigureOpen} ${o(this._configureDialogRef)}></solution-configure-dialog>`}_renderConfigureTitlesDialog(){return this._configureTitlesOpen?t`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${()=>{this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e})}} .open=${this._configureTitlesOpen} .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_cardSelected(){this._isConfigureOpen=!0}async _viewDiagram(e){e.stopPropagation(),this.card&&(this.templateInfoGraph=await this._processTemplates(this.card),this._isDiagramOpen=!0)}_viewDocumentation(e){e.stopPropagation(),window.open(this.card.learnMoreUrl,"_blank")}_viewItemDetails(e){e.stopPropagation(),window.open(this.card.itemUrl,"_blank")}_deleteSolution(e){e.stopPropagation(),this._isDeleteOpen=!0}_openUserProfile(e){e.stopPropagation();let i=this._authContextConsumer.value?.PortalSubset?.orgUrl;i&&window.open(`${i}/home/user.html?user=${this.owner}`,"_blank")}async _processTemplates(e){return await u(e.id,this._userSessionContextConsumer.value)}};h("solution-deployed-card",n);export{n as SolutionDeployedCard};
18
+ */calcite-card{width:295px;height:100%;padding-bottom:2px}@media (max-width: 400px){calcite-card{width:100%}}calcite-card:hover img{-webkit-filter:brightness(20%);filter:brightness(20%);-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{outline:2px solid var(--calcite-ui-brand);box-sizing:content-box;cursor:pointer}.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:1.2rem}.card-image-wrap{flex:0 0 auto}.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}.width-full{width:100%}.deployed-label-override{--calcite-label-text-color: var(--calcite-color-text-3);--calcite-label-margin-bottom: 0px}.svg-color{fill:var(--calcite-color-text-3)}.padding-end-1-2{padding-inline-end:.5rem}.padding-bottom-1-2{padding-bottom:.5rem}.display-flex{display:flex}.flex-direction-column{flex-direction:column}.align-items-center{align-items:center}.font-weight-400,.font-weight-normal{font-weight:400}.font-color-text-2{--calcite-label-text-color: var(--calcite-color-text-2)}.font-line-height{line-height:1.4}.font-size-size--1{font-size:var(--calcite-font-size--1)}.icon-brand-color{--calcite-icon-color: var(--calcite-color-brand)}.header-line-height{--calcite-label-margin-bottom: 0;margin-top:.5rem;margin-bottom:.7rem}.dialog-y-size{--calcite-dialog-size-y: 90% }.dialog-x-size{--calcite-dialog-size-x: 90% }.justify-content-space-between{justify-content:space-between}.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.cursor-default{cursor:default}`,n=class extends d{constructor(){super(...arguments),this.allowDelete=!1,this.deployedDate="",this.description="",this.heading="",this.itemId="",this.owner="",this.thumbnail="",this.updateAvailable=!1,this.templateInfos=[],this._isConfigureOpen=!1,this._isDeleteOpen=!1,this._isDiagramOpen=!1,this.templateInfoGraph=[],this._configureTitlesOpen=!1,this._translations=p({name:"solution-deployed-card",blocking:!0}),this._authContextConsumer=l({context:m,subscribe:!0}),this._configureDialogRef=o(),this._deleteDialogRef=o(),this._diagramDialogRef=o(),this._userSessionContextConsumer=l({context:g,subscribe:!0})}static{this.properties={allowDelete:5,card:0,deployedDate:1,description:1,heading:1,itemId:1,owner:1,thumbnail:1,updateAvailable:5,templateInfos:0,cardRef:0,_isConfigureOpen:16,_isDeleteOpen:16,_isDiagramOpen:16,templateInfoGraph:16,_configureTitlesOpen:16,_translations:16}}static{this.styles=f}async renderConfigureDialog(e){this._cardSelected(),this._configureDialogRef.value&&(this._configureDialogRef.value.showSuccessAlert=e)}async renderDeleteDialog(){return this._isDeleteOpen=!0,this._renderDeleteDialog(),this._deleteDialogRef.value}async renderDiagramDialog(e){return this._isDiagramOpen=!0,await this._viewDiagram(e),await this._renderDiagramDialog(),this._diagramDialogRef.value}async getTemplates(){return this._processTemplates(this.card)}willUpdate(e){e.has("card")&&this._processTemplates(this.card).then(a=>{this.templateInfos=a})}render(){return t`<calcite-card .label=${this.description} @click=${this._cardSelected}>${this._getImage()}${this._getHeader()}<p slot=description class="font-color-text-2 font-line-height font-size-size--1">${this.description}</p><div class="width-full display-flex flex-direction-column" slot=footer-start><div class="padding-bottom-1-2">${this._getOwnerLabel()}${this._getDeployedDate()}</div>${this._getConfigureButton()}</div></calcite-card>${this._renderDeleteDialog()}${this._renderDiagramDialog()}${this._renderConfigureDialog()}${this._renderConfigureTitlesDialog()}`}_getImage(){let e=this._userSessionContextConsumer.value;return t`<div class="card-image-wrap" slot=thumbnail><img class="thumbnail card-image" alt=${this.heading??i} src=${`${this.thumbnail}&token=${e?.token}`}><div class="hover-text">${this._translations.openSolution}</div></div>`}_getHeader(){return t`<div class="display-flex justify-content-space-between header-line-height" slot=heading><calcite-label layout=inline-space-between scale=l>${this.heading}</calcite-label></div>`}_getOwnerLabel(){return t`<calcite-label class="font-weight-400 padding-end-1-2" layout=inline scale=s>${`${this._translations.owner}:`}<calcite-link class="font-weight-normal" @click=${this._openUserProfile}>${this.owner}</calcite-link></calcite-label>`}_getDeployedDate(){return t`<div class="display-flex align-items-center"><div class="padding-end-1-2"><svg height=16px viewBox="0 0 32 32" width=16px xmlns=http://www.w3.org/2000/svg>${c`<path class="svg-color" d="M29.963 7.672a1.586 1.586 0 0 0-1.584-1.585h-5.274a.187.187 0 0 1-.188-.187V3.977A2 2 0 0 0 20.825 2h-9.672A2.095 2.095 0 0 0 9.06 4.093V5.9a.187.187 0 0 1-.187.187H3.598a1.586 1.586 0 0 0-1.584 1.585v4.016a.281.281 0 0 0 .281.28H4.9l.014-.013V9.153a.177.177 0 0 1 .177-.177h21.46a.456.456 0 0 1 .449.45v13.742A1.832 1.832 0 0 1 25.168 25h-8.892a.568.568 0 0 1-.534-.373 3.98 3.98 0 0 0-7.6.373H5.657a.757.757 0 0 1-.757-.757v-3.055A.188.188 0 0 0 4.714 21H2.028l-.014.014v4.58a2.35 2.35 0 0 0 2.347 2.346h4.161a3.963 3.963 0 0 0 6.8.256.569.569 0 0 1 .475-.256h12.065a2.102 2.102 0 0 0 2.101-2.101zM21 5.625a.375.375 0 0 1-.375.375h-9.25A.375.375 0 0 1 11 5.625V4.45a.456.456 0 0 1 .45-.45h9.1a.456.456 0 0 1 .45.45zM12 28a2 2 0 1 1 2-2 2 2 0 0 1-2 2z" /><path class="svg-color" d="M13.273 17.994a.57.57 0 0 1 .479.262A3.73 3.73 0 0 0 17 20a3.74 3.74 0 0 0 3.403-2.006h3.41a.188.188 0 0 0 .187-.188v-2.589a.187.187 0 0 0-.188-.188H20.8A3.8 3.8 0 0 0 17 12a4.058 4.058 0 0 0-3.69 2.647.568.568 0 0 1-.537.383H1.093a.094.094 0 0 0-.093.093V17.9a.094.094 0 0 0 .094.094zM17 13.9a2.1 2.1 0 1 1-2.1 2.1 2.1 2.1 0 0 1 2.1-2.1z" />`}</svg></div><calcite-label class="deployed-label-override" scale=s>${this._translations.deployedDate.replace("{{date}}",this.deployedDate)}</calcite-label></div>`}_getConfigureButton(){return t`<calcite-split-button appearance=outline aria-label=${this._translations.openSolution??i} dropdown-label=${this._translations.moreActions??i} kind=neutral @calciteSplitButtonPrimaryClick=${()=>{this._isConfigureOpen=!0}} @click=${e=>e.stopPropagation()} overlay-positioning=fixed primary-text=${this._translations.openSolution??i} width=full><calcite-dropdown-group selection-mode=none><calcite-dropdown-item icon-start=file-text @click=${this._viewDocumentation}>${this._translations.documentation}</calcite-dropdown-item><calcite-dropdown-item icon-start=model @click=${this._viewDiagram}>${this._translations.viewDiagram}</calcite-dropdown-item><calcite-dropdown-item icon-start=edit-attributes @click=${()=>{this._configureTitlesOpen=!0}}>${this._translations.renameItems}</calcite-dropdown-item><calcite-dropdown-item icon-start=information @click=${this._viewItemDetails}>${this._translations.viewItemDetails}</calcite-dropdown-item>${this.allowDelete&&t`<calcite-dropdown-item icon-start=trash @click=${this._deleteSolution}>${this._translations.deleteSolution}</calcite-dropdown-item>`||""}</calcite-dropdown-group></calcite-split-button>`}_renderDeleteDialog(){return this._isDeleteOpen?t`<solution-delete-dialog .card=${this.card} @solutionDeleteDialogOpen=${e=>{this._isDeleteOpen=e.detail}} .open=${this._isDeleteOpen} ${s(this._deleteDialogRef)}></solution-delete-dialog>`:""}_renderDiagramDialog(){return this._isDiagramOpen?t`<calcite-dialog class="dialog-y-size dialog-x-size panel-bg-color" .heading=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")} id=${this._translations.diagramTitle.replace("{{solution}}",this.card?.title??"")??i} modal .open=${this._isDiagramOpen} @calciteDialogClose=${()=>{this._isDiagramOpen=!1}} outside-close-disabled resizable scale=l width=l ${s(this._diagramDialogRef)}><solution-item-diagram .templateInfoGraph=${this.templateInfoGraph} .typeKeywords=${this.card?.typeKeywords}></solution-item-diagram></calcite-dialog>`:""}_renderConfigureDialog(){return t`<solution-configure-dialog .card=${this.card} .cardRef=${this.el} @solutionConfigureDialogClose=${()=>{this._isConfigureOpen=!1}} .open=${this._isConfigureOpen} ${s(this._configureDialogRef)}></solution-configure-dialog>`}_renderConfigureTitlesDialog(){return this._configureTitlesOpen?t`<solution-configure-titles .card=${this.card} @solutionConfigureTitlesBeforeClose=${()=>{this._configureTitlesOpen=!1}} @solutionItemsTitlesChanged=${async()=>{this._processTemplates(this.card).then(e=>{this.templateInfos=e})}} .open=${this._configureTitlesOpen} .templateInfos=${this.templateInfos}></solution-configure-titles>`:""}_cardSelected(){this._isConfigureOpen=!0}async _viewDiagram(e){e.stopPropagation(),this.card&&(this.templateInfoGraph=await this._processTemplates(this.card),this._isDiagramOpen=!0)}_viewDocumentation(e){e.stopPropagation(),window.open(this.card.learnMoreUrl,"_blank")}_viewItemDetails(e){e.stopPropagation(),window.open(this.card.itemUrl,"_blank")}_deleteSolution(e){e.stopPropagation(),this._isDeleteOpen=!0}_openUserProfile(e){e.stopPropagation();let a=this._authContextConsumer.value?.PortalSubset?.orgUrl;a&&window.open(`${a}/home/user.html?user=${this.owner}`,"_blank")}async _processTemplates(e){return await u(e.id,this._userSessionContextConsumer.value)}};h("solution-deployed-card",n);export{n as SolutionDeployedCard};