@esri/solutions-components 1.0.0-next.20250528 → 1.0.0-next.20250528.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 (386) hide show
  1. package/dist/cdn/{FZRUF6CO.js → 27LQAQ6Y.js} +2 -2
  2. package/dist/cdn/{BBZU6JPM.js → 2BECX5WX.js} +2 -2
  3. package/dist/cdn/{GP7NQO7J.js → 2HAFNSIE.js} +2 -2
  4. package/dist/cdn/{DNCEXQFU.js → 2IDGPQJR.js} +2 -2
  5. package/dist/cdn/{5YIEEOQO.js → 2MMQZII3.js} +2 -2
  6. package/dist/cdn/{HBJLJEV6.js → 2OOMOXGH.js} +2 -2
  7. package/dist/cdn/{F7J5AVP6.js → 2TF5G4JI.js} +1 -1
  8. package/dist/cdn/{K2P2DNKH.js → 2XZSJ6JD.js} +2 -2
  9. package/dist/cdn/{GUYZ6TVU.js → 35BOYRXZ.js} +2 -2
  10. package/dist/cdn/{X6UMCCK5.js → 3LMFSQQR.js} +2 -2
  11. package/dist/cdn/{WLHFDDBG.js → 3PIEW24G.js} +2 -2
  12. package/dist/cdn/{6PVCA5ZX.js → 3S4FG2ZZ.js} +2 -2
  13. package/dist/cdn/{XQFJPY6R.js → 3SGIDV3I.js} +2 -2
  14. package/dist/cdn/{YP6O3AK4.js → 3WC22OVN.js} +2 -2
  15. package/dist/cdn/{HITN2DRN.js → 3XJKMZHA.js} +1 -1
  16. package/dist/cdn/{LEY2V5RH.js → 455HDVF4.js} +2 -2
  17. package/dist/cdn/{WHWBIGAH.js → 4KGZBVTB.js} +2 -2
  18. package/dist/cdn/{YHDZXWFB.js → 4ME5QMIF.js} +2 -2
  19. package/dist/cdn/{2ACVTFWH.js → 4QWQA7SP.js} +2 -2
  20. package/dist/cdn/{O3N5NP7L.js → 4S2I2R2Q.js} +1 -1
  21. package/dist/cdn/{JHVRHMPX.js → 54NDBS5W.js} +2 -2
  22. package/dist/cdn/{2QJG47YD.js → 5APFWJZZ.js} +2 -2
  23. package/dist/cdn/{AAQIWO65.js → 5BKTEPSJ.js} +2 -2
  24. package/dist/cdn/{4433JH2R.js → 5IZBEDEU.js} +1 -1
  25. package/dist/cdn/{6N2DIXJF.js → 5NIDGVLZ.js} +2 -2
  26. package/dist/cdn/{DX5OVPFT.js → 5P6SZW5B.js} +2 -2
  27. package/dist/cdn/{UBZ6KMGN.js → 5PENO4BC.js} +2 -2
  28. package/dist/cdn/{ZSU4BSTS.js → 5USKOL72.js} +3 -3
  29. package/dist/cdn/{3L6DEVIK.js → 5ZAVVIAH.js} +2 -2
  30. package/dist/cdn/{VTPBT7MQ.js → 64XCUKMX.js} +2 -2
  31. package/dist/cdn/{E645QUGL.js → 66IB2PZE.js} +2 -2
  32. package/dist/cdn/{37VSZ3UG.js → 6APCAUUT.js} +2 -2
  33. package/dist/cdn/{52W5VWDL.js → 6CPKRUI3.js} +1 -1
  34. package/dist/cdn/{B2FYFHU7.js → 6GVJGNRK.js} +2 -2
  35. package/dist/cdn/{25ZWUXFO.js → 6PWODZF3.js} +2 -2
  36. package/dist/cdn/{PYJIK3CR.js → 6QWS7JEN.js} +2 -2
  37. package/dist/cdn/{MSJQ4JDQ.js → 6RHP2Y7C.js} +1 -1
  38. package/dist/cdn/{YP6FSEFL.js → 6WQKENE2.js} +4 -4
  39. package/dist/cdn/{HQHIIMPM.js → 6WXHOI6Z.js} +2 -2
  40. package/dist/cdn/{X5DGQ5OF.js → 6XYU4BZS.js} +2 -2
  41. package/dist/cdn/{IJIQR7LK.js → 72HLVTY7.js} +2 -2
  42. package/dist/cdn/{BLY5B6IS.js → 73NJ4RPV.js} +1 -1
  43. package/dist/cdn/{V6KN5QPT.js → 7GY7BTPK.js} +2 -2
  44. package/dist/cdn/{MI5ZANBW.js → 7OZTZCPH.js} +2 -2
  45. package/dist/cdn/{QUJHDDZX.js → A2WX4D7A.js} +1 -1
  46. package/dist/cdn/{ZSYHLMKN.js → A3JKO4I4.js} +1 -1
  47. package/dist/cdn/{6N7OJ52Y.js → A4JM6VWA.js} +2 -2
  48. package/dist/cdn/{XI7PRITM.js → ABYMP2JA.js} +2 -2
  49. package/dist/cdn/{5VQIZRBI.js → AF3RJAL5.js} +1 -1
  50. package/dist/cdn/{CO5U6E2B.js → AGRD4ULC.js} +2 -2
  51. package/dist/cdn/{75AICF3J.js → AH5AIEIN.js} +1 -1
  52. package/dist/cdn/{AMJZ2LFK.js → AHEWCN4W.js} +2 -2
  53. package/dist/cdn/{4EDDSKZS.js → AJUGJQUJ.js} +1 -1
  54. package/dist/cdn/{MGD53ADT.js → ARQHAHK5.js} +2 -2
  55. package/dist/cdn/{VC6W4X4W.js → ARYFWYUR.js} +1 -1
  56. package/dist/cdn/{JFS4GZ6K.js → AT3MTRQS.js} +1 -1
  57. package/dist/cdn/{6XZWFS7Y.js → B4HONVWZ.js} +1 -1
  58. package/dist/cdn/{MB7QENIY.js → BACSZ2Z7.js} +1 -1
  59. package/dist/cdn/{SEPT44JR.js → BANL5YR3.js} +2 -2
  60. package/dist/cdn/{ABFH5NTH.js → BB7RJW6E.js} +2 -2
  61. package/dist/cdn/BGVU5VPJ.js +18 -0
  62. package/dist/cdn/{BLLKRGVR.js → BKQVXWB7.js} +2 -2
  63. package/dist/cdn/{25RUIQSO.js → BZFFNFXK.js} +2 -2
  64. package/dist/cdn/{YQNXV3P3.js → C2XKMOX2.js} +2 -2
  65. package/dist/cdn/{BRT74BII.js → C3A3SGFC.js} +2 -2
  66. package/dist/cdn/{Y57AHJQ2.js → C7TWT6K2.js} +2 -2
  67. package/dist/cdn/{4JGCEBGT.js → CLZ42RFU.js} +1 -1
  68. package/dist/cdn/{UFWRGJDV.js → COLHBQ5X.js} +2 -2
  69. package/dist/cdn/{SWWLO6K6.js → CPB7DXI3.js} +2 -2
  70. package/dist/cdn/{ZI7JVVEX.js → CQ6SIDRV.js} +2 -2
  71. package/dist/cdn/{KRBE6UMS.js → CQMNR2XZ.js} +1 -1
  72. package/dist/cdn/{DYIHGLWU.js → CR3NXOPF.js} +2 -2
  73. package/dist/cdn/{PRIGD4HE.js → CRYN5SYR.js} +2 -2
  74. package/dist/cdn/CSTT6IAN.js +4 -0
  75. package/dist/cdn/{PEDUZUAO.js → CXW7Q33E.js} +2 -2
  76. package/dist/cdn/{3GDPB4SN.js → D6KVYJKN.js} +2 -2
  77. package/dist/cdn/{UKW7WIFN.js → DCP6AHDZ.js} +2 -2
  78. package/dist/cdn/{ABWFIKPD.js → DJI7J3C3.js} +2 -2
  79. package/dist/cdn/{BUTQMMJS.js → DMRVOPBM.js} +2 -2
  80. package/dist/cdn/{J7CYSJA6.js → DT2GGHBN.js} +2 -2
  81. package/dist/cdn/{JNS7O2LI.js → DUOJYQGU.js} +2 -2
  82. package/dist/cdn/{BV7DCC4N.js → DWBMQBAB.js} +2 -2
  83. package/dist/cdn/{FR3L4TW7.js → DZXTVGRQ.js} +2 -2
  84. package/dist/cdn/{E4RIBJ2G.js → ELBSRAMH.js} +2 -2
  85. package/dist/cdn/{RE44UO66.js → ETSCX6UD.js} +1 -1
  86. package/dist/cdn/{NBW6TGCY.js → EU3TXNP2.js} +2 -2
  87. package/dist/cdn/{SYQODL47.js → EXWX56R4.js} +2 -2
  88. package/dist/cdn/F7YKY2OF.js +4 -0
  89. package/dist/cdn/{E6VMU3PC.js → FATTGIYI.js} +2 -2
  90. package/dist/cdn/{FII3CMHX.js → FCHOLYNH.js} +2 -2
  91. package/dist/cdn/{DX3SET3L.js → FEWEA7AN.js} +2 -2
  92. package/dist/cdn/{2SL6Z6TM.js → FF7R4YTO.js} +2 -2
  93. package/dist/cdn/{CEDHHVFY.js → FNHXNPPV.js} +2 -2
  94. package/dist/cdn/{UD7F6DCG.js → FPWLAJBO.js} +1 -1
  95. package/dist/cdn/{BLURTZNI.js → FTCXP7FD.js} +2 -2
  96. package/dist/cdn/FY5WSCFM.js +4 -0
  97. package/dist/cdn/{A3VAIZ52.js → GA7L2IWK.js} +2 -2
  98. package/dist/cdn/{URWOL2IQ.js → GLCP6BKS.js} +2 -2
  99. package/dist/cdn/{IHDMSZP6.js → GLL5XNBZ.js} +2 -2
  100. package/dist/cdn/{TOODIZT4.js → GOHA6HJP.js} +2 -2
  101. package/dist/cdn/{JDVDAXYA.js → GPKFZD7B.js} +2 -2
  102. package/dist/cdn/{CVIE4PDN.js → GR5ID3PD.js} +1 -1
  103. package/dist/cdn/{5XJ6SZ36.js → GUP4UK2N.js} +2 -2
  104. package/dist/cdn/{FCJVHDUH.js → GVI4R5J2.js} +2 -2
  105. package/dist/cdn/{M7IGOHUD.js → HJJD6V2O.js} +2 -2
  106. package/dist/cdn/{T74GEZCH.js → HM7CZ2CI.js} +2 -2
  107. package/dist/cdn/{BVKD52TV.js → HM7JZP3A.js} +1 -1
  108. package/dist/cdn/{C6W4EBHD.js → HOYA4JWQ.js} +2 -2
  109. package/dist/cdn/{RURXPJYT.js → HOYVNZRK.js} +2 -2
  110. package/dist/cdn/{HIHCOY2K.js → HTYN6WXU.js} +2 -2
  111. package/dist/cdn/{TRAZ3VPR.js → HYTRDNUE.js} +2 -2
  112. package/dist/cdn/{W3A6FIHZ.js → I4KZ2A5P.js} +2 -2
  113. package/dist/cdn/{UDLBJXHJ.js → IBDFSTWX.js} +2 -2
  114. package/dist/cdn/{X2K4VP7N.js → IBEMOISL.js} +2 -2
  115. package/dist/cdn/{QU6F2S3L.js → IE24UY4O.js} +2 -2
  116. package/dist/cdn/{UWM44QLQ.js → IIPLB2RS.js} +2 -2
  117. package/dist/cdn/{3YNQSVNT.js → IIX655ZM.js} +1 -1
  118. package/dist/cdn/{D5UC5SVZ.js → IJBFY7JW.js} +2 -2
  119. package/dist/cdn/{2S6OZOKM.js → INDADVJP.js} +2 -2
  120. package/dist/cdn/{SDPZNJWX.js → INY65VHN.js} +2 -2
  121. package/dist/cdn/{LUZ6KCKH.js → IP6ATOM6.js} +2 -2
  122. package/dist/cdn/{UZOCT7SV.js → IPIQ52KV.js} +2 -2
  123. package/dist/cdn/{BPPOS7VC.js → IUBGSA3I.js} +1 -1
  124. package/dist/cdn/{I33AEX6O.js → IVXXAKCK.js} +2 -2
  125. package/dist/cdn/{YFZCGZOB.js → J5LWWUIP.js} +2 -2
  126. package/dist/cdn/{NK3PNJXB.js → J62YOWFC.js} +2 -2
  127. package/dist/cdn/{LOIPX2ER.js → JATAGG24.js} +2 -2
  128. package/dist/cdn/{24WYI66F.js → JBDNXDLS.js} +2 -2
  129. package/dist/cdn/{MYDDP7BI.js → JBG5SAVM.js} +1 -1
  130. package/dist/cdn/{5A3GJKYM.js → JBZH2KKN.js} +2 -2
  131. package/dist/cdn/{AGVDOFMZ.js → JDSGIOVR.js} +2 -2
  132. package/dist/cdn/{QSEANYSR.js → JFVYQIUH.js} +2 -2
  133. package/dist/cdn/{OLFBYRLF.js → JHFAVQVG.js} +2 -2
  134. package/dist/cdn/{KQTZ6C5H.js → JKB6LYON.js} +2 -2
  135. package/dist/cdn/{T3JY6H4E.js → JSDNVCX7.js} +2 -2
  136. package/dist/cdn/{H2NSBFWF.js → JY7KFFEJ.js} +2 -2
  137. package/dist/cdn/{GNLAD5Z6.js → K6SJCTAS.js} +1 -1
  138. package/dist/cdn/K72NRGFR.js +4 -0
  139. package/dist/cdn/{QFZ4AJSY.js → KETC3CAC.js} +2 -2
  140. package/dist/cdn/{5RNOJK2U.js → KFFWCZKY.js} +2 -2
  141. package/dist/cdn/{GWXVNAEF.js → KOQOMT46.js} +2 -2
  142. package/dist/cdn/{EI6DJKRP.js → KPKDVL2J.js} +2 -2
  143. package/dist/cdn/{NGTSVG7L.js → KSMEO6R5.js} +2 -2
  144. package/dist/cdn/{VFEXPJTW.js → KZWHC2ST.js} +2 -2
  145. package/dist/cdn/{ST5JB4CK.js → L32HIJPV.js} +2 -2
  146. package/dist/cdn/{ZKIE5GVW.js → L3IX5SCS.js} +2 -2
  147. package/dist/cdn/{CH65TEDK.js → LBJE5BZD.js} +1 -1
  148. package/dist/cdn/{OX2K54DK.js → LWBDG7UH.js} +2 -2
  149. package/dist/cdn/{EKDX37DH.js → LYQL4O5M.js} +2 -2
  150. package/dist/cdn/{INHRZ23K.js → LYWU4RZH.js} +2 -2
  151. package/dist/cdn/{X3LPGOUH.js → M3OFPTT3.js} +2 -2
  152. package/dist/cdn/{ZHH6EKP5.js → MHSBM4WB.js} +2 -2
  153. package/dist/cdn/{EJ5VJ4MH.js → MRMD4H7O.js} +2 -2
  154. package/dist/cdn/{FEZB7BTL.js → MRUWYVHI.js} +2 -2
  155. package/dist/cdn/{X4HL3D2I.js → MVN27KOI.js} +2 -2
  156. package/dist/cdn/{4ZZ767AP.js → N2MZJBHS.js} +2 -2
  157. package/dist/cdn/{M2TA6G4S.js → N324UTZ5.js} +2 -2
  158. package/dist/cdn/{LSAVJADZ.js → N4OHCK66.js} +2 -2
  159. package/dist/cdn/{PL35BRBK.js → N5UBRYXZ.js} +2 -2
  160. package/dist/cdn/{GDOS5KO6.js → NGO6CV3G.js} +2 -2
  161. package/dist/cdn/{Q5UREG2V.js → NNQAPUKF.js} +1 -1
  162. package/dist/cdn/{7LP7G3G5.js → NZCTTZQJ.js} +2 -2
  163. package/dist/cdn/{DXKDQ4AX.js → O4UWY4LV.js} +2 -2
  164. package/dist/cdn/O4YIZH4Y.js +4 -0
  165. package/dist/cdn/{A32DRANT.js → OC334CIK.js} +2 -2
  166. package/dist/cdn/{3LVLGGLP.js → OC44744D.js} +2 -2
  167. package/dist/cdn/{G24WN4EN.js → OI3SHZPE.js} +2 -2
  168. package/dist/cdn/{WOMBW52B.js → OPD73MSN.js} +2 -2
  169. package/dist/cdn/{GJ2OS72Q.js → OW7E6OZU.js} +2 -2
  170. package/dist/cdn/{6CED3D3P.js → PGFLUWJN.js} +2 -2
  171. package/dist/cdn/{UHGNCI7M.js → PLAM4ZSV.js} +2 -2
  172. package/dist/cdn/{DOZD6J4O.js → POG7OHTN.js} +2 -2
  173. package/dist/cdn/{E65KQPOC.js → PP63JUSI.js} +2 -2
  174. package/dist/cdn/{AAW2CYTN.js → PRB7DA6V.js} +2 -2
  175. package/dist/cdn/PTLSWZZ2.js +4 -0
  176. package/dist/cdn/{CFTM5CZE.js → PZFNMBVW.js} +2 -2
  177. package/dist/cdn/{MQKIZQYU.js → Q5HH7VHO.js} +3 -3
  178. package/dist/cdn/{FKXGGTJC.js → QBYJ6PX6.js} +2 -2
  179. package/dist/cdn/{XIBAIK2Z.js → QDFSCCOX.js} +2 -2
  180. package/dist/cdn/{5ENIF5PT.js → QDMUSM3I.js} +2 -2
  181. package/dist/cdn/{NVQA2OXP.js → QIVTK7HW.js} +2 -2
  182. package/dist/cdn/{E7E3UI3G.js → QO56HLQG.js} +2 -2
  183. package/dist/cdn/{65N7XAWB.js → QOPQPJ6E.js} +1 -1
  184. package/dist/cdn/{FYTWFRTO.js → QPNL4XAH.js} +1 -1
  185. package/dist/cdn/{BYTWF7MG.js → QPRN44LY.js} +2 -2
  186. package/dist/cdn/{FGFMYMTA.js → QZVIZAH5.js} +2 -2
  187. package/dist/cdn/{CYUT3EFC.js → R53BLRMX.js} +2 -2
  188. package/dist/cdn/{SJ3Q55BE.js → RFYBQIXD.js} +2 -2
  189. package/dist/cdn/{WF52YQCF.js → RIQZUFV2.js} +2 -2
  190. package/dist/cdn/{HTWTYESZ.js → RJJHXXVX.js} +2 -2
  191. package/dist/cdn/{5IBV6E7G.js → ROR6SI6U.js} +2 -2
  192. package/dist/cdn/{W5OOXAU4.js → RR3GDG64.js} +1 -1
  193. package/dist/cdn/{HVU2EO42.js → RS6TXCOP.js} +2 -2
  194. package/dist/cdn/{DFKPE66D.js → RTTXS2RX.js} +2 -2
  195. package/dist/cdn/{44MEZFTF.js → RVNPJNAS.js} +2 -2
  196. package/dist/cdn/{SXHBKU6W.js → RVOILI7H.js} +2 -2
  197. package/dist/cdn/{5VBCGIEG.js → S56UY63G.js} +2 -2
  198. package/dist/cdn/{CN7CLX6P.js → SDKQPMU5.js} +2 -2
  199. package/dist/cdn/{MJEB763W.js → SFJHXT65.js} +1 -1
  200. package/dist/cdn/{LAXD5CVD.js → SFS5GEDR.js} +2 -2
  201. package/dist/cdn/{J5J7VURJ.js → SGX5RQ3B.js} +2 -2
  202. package/dist/cdn/{KV7CP4TD.js → SGXJZQ4L.js} +2 -2
  203. package/dist/cdn/{X3SEAUPP.js → SLKM4GXK.js} +2 -2
  204. package/dist/cdn/{W7XBKGFN.js → SMLBVO43.js} +2 -2
  205. package/dist/cdn/{L7R6K4A2.js → T2DUZEDU.js} +1 -1
  206. package/dist/cdn/{EL2LQYMI.js → TCDUH4QD.js} +2 -2
  207. package/dist/cdn/{BWTP5UGR.js → TCRWJTPW.js} +2 -2
  208. package/dist/cdn/{DRMYZSAV.js → TKILZGVC.js} +2 -2
  209. package/dist/cdn/{OPNL2BKB.js → TMXXOYO3.js} +2 -2
  210. package/dist/cdn/{EOQESQYS.js → TQ24PIOH.js} +1 -1
  211. package/dist/cdn/{KRI567KM.js → TSB43IHY.js} +2 -2
  212. package/dist/cdn/{FXKW2C3F.js → TWFIXUDH.js} +2 -2
  213. package/dist/cdn/{LXYX76VN.js → TWGLV5JH.js} +2 -2
  214. package/dist/cdn/{EMWBSXP7.js → U2EADFOW.js} +2 -2
  215. package/dist/cdn/{24W4CW4F.js → U4N25UBP.js} +2 -2
  216. package/dist/cdn/{R6U6QOKC.js → UBUVKOMA.js} +2 -2
  217. package/dist/cdn/{XLUHLOEX.js → UFQAANOF.js} +2 -2
  218. package/dist/cdn/{JUSJWXDQ.js → UHBAUGQ4.js} +1 -1
  219. package/dist/cdn/UKDRKFWF.js +18 -0
  220. package/dist/cdn/{YFR4OJTM.js → UOL6LQRJ.js} +2 -2
  221. package/dist/cdn/{DMPPY7GI.js → UOWOGIE5.js} +2 -2
  222. package/dist/cdn/{C47XZYAG.js → UQBMV5BY.js} +2 -2
  223. package/dist/cdn/{D3FZEWBP.js → UZVRS2XU.js} +1 -1
  224. package/dist/cdn/{5IAANDGE.js → V5UFRWYB.js} +2 -2
  225. package/dist/cdn/{2AYAUMKZ.js → VGPMZBNK.js} +2 -2
  226. package/dist/cdn/{UC5VQMM6.js → VUHZ6YXM.js} +2 -2
  227. package/dist/cdn/{ZZZOCU5W.js → VXCG5LEV.js} +2 -2
  228. package/dist/cdn/{QQCYF2HJ.js → VYMYL6JP.js} +2 -2
  229. package/dist/cdn/{AKIPP4VC.js → WO7YGQFB.js} +2 -2
  230. package/dist/cdn/{GXXVAQDK.js → WVVZ4CLC.js} +2 -2
  231. package/dist/cdn/{OJFX5K3G.js → WX4ZUMZN.js} +2 -2
  232. package/dist/cdn/{GMA3NBTA.js → WYRW7PJT.js} +2 -2
  233. package/dist/cdn/{R5UW5BBB.js → X4W4ZZ7O.js} +2 -2
  234. package/dist/cdn/{RAYJRNTN.js → X6GE3EIS.js} +2 -2
  235. package/dist/cdn/{GKMXDGZF.js → XA34OFHO.js} +2 -2
  236. package/dist/cdn/{HMLEGLZ7.js → XCO35G7O.js} +2 -2
  237. package/dist/cdn/{HA3GGXFE.js → XEO56VFL.js} +2 -2
  238. package/dist/cdn/{M4VWLPTM.js → XFDA7NEB.js} +2 -2
  239. package/dist/cdn/{Z2GSRYNO.js → XFZL2VCD.js} +2 -2
  240. package/dist/cdn/{EKVI5K4J.js → XHZTR3BJ.js} +2 -2
  241. package/dist/cdn/{KPYNNZU2.js → XIJFQNOB.js} +2 -2
  242. package/dist/cdn/{CZXYR4ZF.js → XL4TPC5B.js} +2 -2
  243. package/dist/cdn/{T33NVZXY.js → XN5WML6J.js} +2 -2
  244. package/dist/cdn/{N7CW4A4R.js → XOHNTOVE.js} +2 -2
  245. package/dist/cdn/{SC3ZFF3Y.js → XQKIPHIH.js} +2 -2
  246. package/dist/cdn/{X6X5OCFG.js → XQNKJT3W.js} +2 -2
  247. package/dist/cdn/{6GACAQSQ.js → XSNJZI7M.js} +2 -2
  248. package/dist/cdn/XY544Q64.js +4 -0
  249. package/dist/cdn/Y236OPC4.js +4 -0
  250. package/dist/cdn/{TM4ZSPAB.js → Y3MVHWDO.js} +2 -2
  251. package/dist/cdn/{YWGNQDQM.js → Y4M5KS3M.js} +1 -1
  252. package/dist/cdn/{RSWKNEWY.js → Y5QDB3GF.js} +2 -2
  253. package/dist/cdn/{ZA32GRGJ.js → YAK6SM64.js} +2 -2
  254. package/dist/cdn/{SOLDJVDR.js → YFG6Q4W4.js} +2 -2
  255. package/dist/cdn/{APENH3LP.js → YOSMKTOJ.js} +2 -2
  256. package/dist/cdn/{LMK5U4FX.js → YQHRK3AQ.js} +2 -2
  257. package/dist/cdn/{NYLKYV7F.js → YTSZZUYS.js} +2 -2
  258. package/dist/cdn/{TI446Z7R.js → YUOGYP2W.js} +2 -2
  259. package/dist/cdn/{VIJAXFTF.js → YVBTB4PY.js} +2 -2
  260. package/dist/cdn/{E2FWRG3J.js → YXUMTVRG.js} +1 -1
  261. package/dist/cdn/{55BUMEUY.js → YZCPJ5JI.js} +2 -2
  262. package/dist/cdn/{6CWLNSWC.js → Z2MJRFIE.js} +2 -2
  263. package/dist/cdn/{QTIN4PMT.js → Z3T7XWKC.js} +2 -2
  264. package/dist/cdn/{TUGBBV6B.js → Z6TJZJH7.js} +2 -2
  265. package/dist/cdn/{D42V7PBV.js → ZA4R3KFB.js} +2 -2
  266. package/dist/cdn/{L4PVVSFZ.js → ZEIIGNWR.js} +2 -2
  267. package/dist/cdn/{67VSRPIM.js → ZEZCVFYU.js} +2 -2
  268. package/dist/cdn/{IUZA5X57.js → ZGO54R7R.js} +2 -2
  269. package/dist/cdn/{LFZ4GYFK.js → ZHXAH2ZO.js} +2 -2
  270. package/dist/cdn/{HEMGGNXH.js → ZJKJXFXC.js} +2 -2
  271. package/dist/cdn/{4KRD733S.js → ZJXXAWMH.js} +1 -1
  272. package/dist/cdn/{7YJX66H4.js → ZLNLCCC6.js} +1 -1
  273. package/dist/cdn/{ANX7JVYO.js → ZOPBEUAZ.js} +2 -2
  274. package/dist/cdn/{5GM4BLLQ.js → ZUGYY22V.js} +2 -2
  275. package/dist/cdn/{YKWSPTR2.js → ZWGDNNV7.js} +2 -2
  276. package/dist/cdn/{RXO3BGVO.js → ZZAKVFN7.js} +2 -2
  277. package/dist/cdn/index.js +2 -2
  278. package/dist/chunks/Auth.js +1 -1
  279. package/dist/chunks/cardFetchingUtils.js +1 -1
  280. package/dist/chunks/common.js +1 -1
  281. package/dist/chunks/deployAppContexts.js +1 -1
  282. package/dist/chunks/downloadUtils.js +1 -1
  283. package/dist/chunks/index.js +1 -1
  284. package/dist/chunks/interfaces.js +1 -1
  285. package/dist/chunks/loadModules.js +1 -1
  286. package/dist/chunks/mapViewUtils.js +1 -1
  287. package/dist/chunks/pciUtils.js +1 -1
  288. package/dist/chunks/popupUtils.js +1 -1
  289. package/dist/chunks/publicNotificationStore.js +1 -1
  290. package/dist/chunks/queryUtils.js +1 -1
  291. package/dist/chunks/runtime.js +1 -1
  292. package/dist/chunks/solution-store.js +1 -1
  293. package/dist/chunks/templates.js +1 -1
  294. package/dist/chunks/useT9n.js +1 -1
  295. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  296. package/dist/components/basemap-gallery/customElement.js +1 -1
  297. package/dist/components/buffer-tools/customElement.js +1 -1
  298. package/dist/components/card-manager/customElement.js +2 -2
  299. package/dist/components/consent-manager/customElement.js +1 -1
  300. package/dist/components/create-feature/customElement.js +1 -1
  301. package/dist/components/create-related-feature/customElement.js +1 -1
  302. package/dist/components/crowdsource-manager/customElement.js +6 -6
  303. package/dist/components/crowdsource-reporter/customElement.d.ts +12 -0
  304. package/dist/components/crowdsource-reporter/customElement.js +3 -3
  305. package/dist/components/deduct-calculator/customElement.js +1 -1
  306. package/dist/components/delete-button/customElement.js +1 -1
  307. package/dist/components/delete-dialog/customElement.js +1 -1
  308. package/dist/components/edit-card/customElement.js +1 -1
  309. package/dist/components/feature-details/customElement.js +1 -1
  310. package/dist/components/feature-list/customElement.js +1 -1
  311. package/dist/components/field-selection/customElement.js +1 -1
  312. package/dist/components/floor-filter/customElement.js +1 -1
  313. package/dist/components/info-card/customElement.d.ts +1 -1
  314. package/dist/components/info-card/customElement.js +4 -4
  315. package/dist/components/json-editor/customElement.js +1 -1
  316. package/dist/components/layer-list/customElement.js +1 -1
  317. package/dist/components/layer-table/customElement.js +1 -1
  318. package/dist/components/map-card/customElement.js +1 -1
  319. package/dist/components/map-draw-tools/customElement.js +1 -1
  320. package/dist/components/map-fullscreen/customElement.js +1 -1
  321. package/dist/components/map-layer-picker/customElement.js +1 -1
  322. package/dist/components/map-legend/customElement.js +1 -1
  323. package/dist/components/map-picker/customElement.js +1 -1
  324. package/dist/components/map-search/customElement.js +1 -1
  325. package/dist/components/map-select-tools/customElement.js +1 -1
  326. package/dist/components/map-tools/customElement.js +1 -1
  327. package/dist/components/pci-calculator/customElement.js +1 -1
  328. package/dist/components/pdf-download/customElement.js +1 -1
  329. package/dist/components/public-notification/customElement.js +1 -1
  330. package/dist/components/refine-selection/customElement.js +1 -1
  331. package/dist/components/selection-tool/customElement.js +1 -1
  332. package/dist/components/solution-article-card/customElement.js +1 -1
  333. package/dist/components/solution-configuration/customElement.js +1 -1
  334. package/dist/components/solution-configure-panel/customElement.js +1 -1
  335. package/dist/components/solution-configure-titles/customElement.js +1 -1
  336. package/dist/components/solution-contents/customElement.js +1 -1
  337. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  338. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  339. package/dist/components/solution-deploy-panel/customElement.js +1 -1
  340. package/dist/components/solution-deployed-card/customElement.js +1 -1
  341. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  342. package/dist/components/solution-details-card/customElement.js +1 -1
  343. package/dist/components/solution-details-panel/customElement.js +1 -1
  344. package/dist/components/solution-item/customElement.js +1 -1
  345. package/dist/components/solution-item-accordion/customElement.js +1 -1
  346. package/dist/components/solution-item-details/customElement.js +1 -1
  347. package/dist/components/solution-item-icon/customElement.js +1 -1
  348. package/dist/components/solution-item-sharing/customElement.js +1 -1
  349. package/dist/components/solution-items-diagram/customElement.js +1 -1
  350. package/dist/components/solution-organization-variables/customElement.js +1 -1
  351. package/dist/components/solution-resource-item/customElement.js +1 -1
  352. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  353. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  354. package/dist/components/solution-template-data/customElement.js +1 -1
  355. package/dist/components/solution-variables/customElement.js +1 -1
  356. package/dist/components/solutions-all-panel/customElement.js +1 -1
  357. package/dist/components/solutions-all-shell/customElement.js +1 -1
  358. package/dist/components/solutions-article-panel/customElement.js +1 -1
  359. package/dist/components/solutions-articles/customElement.js +1 -1
  360. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  361. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  362. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  363. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  364. package/dist/components/spatial-ref/customElement.js +1 -1
  365. package/dist/components/store-manager/customElement.js +1 -1
  366. package/dist/docs/api.json +62 -4
  367. package/dist/docs/docs.json +47 -3
  368. package/dist/docs/vscode.html-custom-data.json +10 -0
  369. package/dist/docs/web-types.json +29 -3
  370. package/dist/index.js +1 -1
  371. package/dist/loader.js +2 -2
  372. package/dist/types/lumina.d.ts +1 -1
  373. package/dist/types/preact.d.ts +1 -1
  374. package/dist/types/react.d.ts +1 -1
  375. package/dist/types/stencil.d.ts +1 -1
  376. package/package.json +1 -1
  377. package/dist/cdn/7EJ7QFCG.js +0 -18
  378. package/dist/cdn/E24CFSF6.js +0 -4
  379. package/dist/cdn/GFYWDQWM.js +0 -4
  380. package/dist/cdn/HMVKLXKH.js +0 -4
  381. package/dist/cdn/I4DHTV7R.js +0 -4
  382. package/dist/cdn/JCWMZ7NC.js +0 -4
  383. package/dist/cdn/JWTZEV6W.js +0 -4
  384. package/dist/cdn/LLEBDKSN.js +0 -18
  385. package/dist/cdn/MCX2WJIW.js +0 -4
  386. package/dist/cdn/Y7EKW72S.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import{a as E,b as B,c as Ae,d as re,f as xe,g as ze,h as ve,i as Pe,k as Te,q as le,u as $e,v as K,w as fe,x as Fe,y as Ue}from"./ZKIE5GVW.js";import"./D42V7PBV.js";import"./EJ5VJ4MH.js";import{C as Ce,E as ke,c as Re,z as Se}from"./4JGCEBGT.js";import{a as Me,c as g,e as Ee,h as ce}from"./VFEXPJTW.js";import"./6XZWFS7Y.js";var Ne=96;function N(a){return a?a/72*Ne:0}var Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},me={exports:{}};(function(a,n){(function(c,s){s(n)})(Ve,function(c){var s="http://www.w3.org/",l="".concat(s,"2000/svg"),o="".concat(s,"1999/xlink"),u=[],_=function(e,t){var i={};return Object.keys(e).forEach(function(r){i[r]=e[r]}),t&&Object.keys(t).forEach(function(r){i[r]=t[r]}),i},b=function(e,t){return e.vnodeSelector!==t.vnodeSelector?!1:e.properties&&t.properties?e.properties.key!==t.properties.key?!1:e.properties.bind===t.properties.bind:!e.properties&&!t.properties},L=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},k=function(e,t,i){if(t.vnodeSelector!==""){for(var r=i;r<e.length;r++)if(b(e[r],t))return r}return-1},R=function(e,t,i,r){var d=e[t];if(d.vnodeSelector!==""){var p=d.properties,S=p?p.key===void 0?p.bind:p.key:void 0;if(!S){for(var h=0;h<e.length;h++)if(h!==t){var f=e[h];if(b(f,d))throw{error:new Error("".concat(i.vnodeSelector," had a ").concat(d.vnodeSelector," child ").concat(r==="added"?r:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:i,childNode:d}}}}},P=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},x=[],z=!1,A=function(e){(e.children||[]).forEach(A),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},$=function(){z=!1,x.forEach(A),x.length=0},D=function(e){x.push(e),z||(z=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback($,{timeout:16}):setTimeout($,16))},J=function(e){var t=e.domNode;if(e.properties){var i=e.properties.exitAnimation;if(i){t.style.pointerEvents="none";var r=function(){t.parentNode&&(t.parentNode.removeChild(t),D(e))};i(t,r,e.properties);return}}t.parentNode&&(t.parentNode.removeChild(t),D(e))},X=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function U(e){return!X.includes(e)}var M=function(e,t,i){if(t)for(var r=i.eventHandlerInterceptor,d=Object.keys(t).filter(U),p=d.length,S=0;S<p;S++){var h=d[S],f=t[h];if(h==="className")throw new Error('Property "className" is not supported, use "class".');if(h==="class")de(e,f,!0);else if(h==="classes")for(var v=Object.keys(f),C=v.length,w=0;w<C;w++){var y=v[w];f[y]&&e.classList.add(y)}else if(h==="styles")for(var F=Object.keys(f),T=F.length,w=0;w<T;w++){var I=F[w],Z=f[I];Z&&(L(Z),i.styleApplyer(e,I,Z))}else if(h==="on"&&f)for(var te=0,ae=Object.entries(t.on);te<ae.length;te++){var ne=ae[te],G=ne[0],H=ne[1],O=typeof H=="function"?H:H.listener;r&&(O=r(G,O,e,t)),O&&e.addEventListener(G,O,typeof H=="function"?void 0:H.options)}else if(h!=="key"&&f!==null&&f!==void 0){var se=typeof f;se==="function"?(h.lastIndexOf("on",0)===0&&r&&(f=r(h,f,e,t)),e[h]=f):i.namespace===l?h==="href"?e.setAttributeNS(o,h,f):e.setAttribute(h,f):se==="string"&&h!=="value"&&h!=="innerHTML"?e.setAttribute(h,f):e[h]=f}}},W=function(e,t,i){if(t)for(var r=0,d=t;r<d.length;r++){var p=d[r];q(p,e,void 0,i)}},Y=function(e,t,i){W(e,t.children,i),t.text&&(e.textContent=t.text),M(e,t.properties,i),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,i,t.vnodeSelector,t.properties,t.children])},q=function(e,t,i,r){var d,p,S=0,h=e.vnodeSelector,f=t.ownerDocument;if(h==="")e.domNode?e.domNode.nodeValue=e.text:(p=e.domNode=f.createTextNode(e.text),i!==void 0?t.insertBefore(p,i):t.appendChild(p));else{for(var v=0;v<=h.length;++v){var C=h.charAt(v);if(v===h.length||C==="."||C==="#"){var w=h.charAt(S-1),y=h.slice(S,v);w==="."?p.classList.add(y):w==="#"?p.id=y:(y==="svg"&&(r=_(r,{namespace:l})),r.namespace!==void 0?p=e.domNode=f.createElementNS(r.namespace,y):(p=e.domNode=e.domNode||(!((d=e.properties)===null||d===void 0)&&d.is?f.createElement(y,{is:e.properties.is}):f.createElement(y)),y==="input"&&e.properties&&e.properties.type!==void 0&&p.setAttribute("type",e.properties.type)),i!==void 0?t.insertBefore(p,i):p.parentNode!==t&&t.appendChild(p)),S=v+1}}Y(p,e,r)}},ie,de=function(e,t,i){t&&t.split(" ").forEach(function(r){r&&e.classList.toggle(r,i)})},We=function(e,t,i,r){if(i){for(var d=!1,p=Object.keys(i).filter(U),S=p.length,h=0;h<S;h++){var f=p[h],v=i[f],C=t[f];if(f==="class")C!==v&&(de(e,C,!1),de(e,v,!0));else if(f==="classes")for(var w=e.classList,y=Object.keys(v),F=y.length,T=0;T<F;T++){var I=y[T],Z=!!v[I],te=!!C[I];Z!==te&&(d=!0,Z?w.add(I):w.remove(I))}else if(f==="styles")for(var ae=Object.keys(v),ne=ae.length,T=0;T<ne;T++){var G=ae[T],H=v[G],O=C[G];H!==O&&(d=!0,H?(L(H),r.styleApplyer(e,G,H)):r.styleApplyer(e,G,""))}else if(!v&&typeof C=="string"&&(v=""),f==="value"){var se=e[f];se!==v&&v!==C&&(e[f]=v),v!==C&&(d=!0)}else if(v!==C){var Le=typeof v;(Le!=="function"||!r.eventHandlerInterceptor)&&(r.namespace===l?f==="href"?e.setAttributeNS(o,f,v):e.setAttribute(f,v):Le==="string"&&f!=="innerHTML"?f==="role"&&v===""?e.removeAttribute(f):e.setAttribute(f,v):e[f]!==v&&(e[f]=v),d=!0)}}return d}},qe=function(e,t,i,r,d){if(i===r)return!1;i=i||u,r=r||u;for(var p=i.length,S=r.length,h=0,f=0,v,C=!1;f<S;){var w=h<p?i[h]:void 0,y=r[f];if(w!==void 0&&b(w,y))C=ie(w,y,d)||C,h++;else{var F=k(i,y,h+1);if(F>=0){for(v=h;v<F;v++)J(i[v]),R(i,v,e,"removed");C=ie(i[F],y,d)||C,h=F+1}else q(y,t,h<p?i[h].domNode:void 0,d),P(y),R(r,f,e,"added")}f++}if(p>h)for(v=h;v<p;v++)J(i[v]),R(i,v,e,"removed");return C};ie=function(e,t,i){var r=e.domNode,d=!1;if(e===t)return!1;var p=!1;if(t.vnodeSelector===""){if(t.text!==e.text){var S=r.ownerDocument.createTextNode(t.text);return r.parentNode.replaceChild(S,r),t.domNode=S,d=!0,d}t.domNode=r}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(i=_(i,{namespace:l})),e.text!==t.text&&(p=!0,t.text===void 0?r.removeChild(r.firstChild):r.textContent=t.text),t.domNode=r,p=qe(t,r,e.children,t.children,i)||p,p=We(r,e.properties,t.properties,i)||p,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[r,i,t.vnodeSelector,t.properties,t.children]);return p&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(r,t.properties,e.properties),d};var V=function(e,t){return{getLastRender:function(){return e},update:function(i){if(e.vnodeSelector!==i.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var r=e;e=i,ie(r,i,t)},domNode:e.domNode}},Ge={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,i){t.charAt(0)==="-"?e.style.setProperty(t,i):e.style[t]=i}},Q=function(e){return _(Ge,e)},ee={create:function(e,t){return t=Q(t),q(e,document.createElement("div"),void 0,t),V(e,t)},append:function(e,t,i){return i=Q(i),q(t,e,void 0,i),V(t,i)},insertBefore:function(e,t,i){return i=Q(i),q(t,e.parentNode,e,i),V(t,i)},merge:function(e,t,i){return i=Q(i),t.domNode=e,Y(e,t,i),V(t,i)},replace:function(e,t,i){return i=Q(i),q(t,e.parentNode,e,i),e.parentNode.removeChild(e),V(t,i)}},Ke=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},_e=function(e,t,i){for(var r=0,d=t.length;r<d;r++){var p=t[r];Array.isArray(p)?_e(e,p,i):p!=null&&p!==!1&&(typeof p=="string"&&(p=Ke(p)),i.push(p))}};function Je(e,t,i){if(Array.isArray(t))i=t,t=void 0;else if(t&&(typeof t=="string"||t.vnodeSelector)||i&&(typeof i=="string"||i.vnodeSelector))throw new Error("h called with invalid arguments");var r,d;return i&&i.length===1&&typeof i[0]=="string"?r=i[0]:i&&(d=[],_e(e,i,d),d.length===0&&(d=void 0)),{vnodeSelector:e,properties:t,children:d,text:r===""?void 0:r,domNode:null}}var Xe=function(e,t){for(var i=[];e&&e!==t;)i.push(e),e=e.parentNode;return i},pe;Array.prototype.find?pe=function(e,t){return e.find(t)}:pe=function(e,t){return e.filter(t)[0]};var Ye=function(e,t){var i=e;return t.forEach(function(r){i=i&&i.children?pe(i.children,function(d){return d.domNode===r}):void 0}),i},Qe=function(e,t,i){return function(d,p,S,h){return r};function r(d){var p,S;i("domEvent",d);var h=t(),f=Xe(d.currentTarget,h.domNode);f.reverse();var v=Ye(h.getLastRender(),f);e.scheduleRender();var C;if(v){var w=(S=(p=v.properties["on".concat(d.type)])!==null&&p!==void 0?p:v.properties.on[d.type].listener)!==null&&S!==void 0?S:v.properties.on[d.type];C=w.apply(v.properties.bind||this,arguments)}return i("domEventProcessed",d),C}},Ze=function(e){var t,i=Q(e),r=i.performanceLogger,d=!0,p,S=!1,h=[],f=[],v=function(w,y,F){var T,I=function(){return T};i.eventHandlerInterceptor=Qe(t,I,r),T=w(y,F(),i),h.push(T),f.push(F)},C=function(){if(p=void 0,!!d){d=!1,r("renderStart",void 0);for(var w=0;w<h.length;w++){var y=f[w]();r("rendered",void 0),h[w].update(y),r("patched",void 0)}r("renderDone",void 0),d=!0}};return t={renderNow:C,scheduleRender:function(){!p&&!S&&(p=requestAnimationFrame(C))},stop:function(){p&&(cancelAnimationFrame(p),p=void 0),S=!0},resume:function(){S=!1,d=!0,t.scheduleRender()},append:function(w,y){v(ee.append,w,y)},insertBefore:function(w,y){v(ee.insertBefore,w,y)},merge:function(w,y){v(ee.merge,w,y)},replace:function(w,y){v(ee.replace,w,y)},detach:function(w){for(var y=0;y<f.length;y++)if(f[y]===w)return f.splice(y,1),h.splice(y,1)[0];throw new Error("renderFunction was not found")}},t},Oe=function(){var e,t;return{invalidate:function(){t=void 0,e=void 0},result:function(i,r){if(e)for(var d=0;d<i.length;d++)e[d]!==i[d]&&(t=void 0);return t||(t=r(),e=i),t}}},je=function(e,t,i){var r=[],d=[];return{results:d,map:function(p){for(var S=p.map(e),h=d.slice(),f=0,v=0;v<p.length;v++){var C=p[v],w=S[v];if(w===r[f])d[v]=h[f],i(C,h[f],v),f++;else{for(var y=!1,F=1;F<r.length+1;F++){var T=(f+F)%r.length;if(r[T]===w){d[v]=h[T],i(p[v],h[T],v),f=T+1,y=!0;break}}y||(d[v]=t(C,v))}}d.length=p.length,r=S}}};c.createCache=Oe,c.createMapping=je,c.createProjector=Ze,c.dom=ee,c.h=Je})})(me,me.exports);var et=me.exports.createProjector(),Be=10,ye=20,oe=10,be=20,we={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function tt(a="vertical"){let n={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return a==="vertical"?g("svg",{height:"4",width:"10"},g("line",{x1:"0",y1:"2",x2:"10",y2:"2",style:n})):g("svg",{height:"10",width:"10"},g("line",{x1:"5",y1:"0",x2:"5",y2:"10",style:n}))}function at(a,n="vertical"){let c=document.createElement("div");return c.style.height=`${ye}px`,c.className=we.univariateAboveAndBelowSymbol,a!=null&&(c.style.opacity=a.toString()),et.append(c,tt.bind(null,n)),c}function Ie(a,n,c="vertical",s){a.infos.forEach((l,o)=>{if(s&&o===2)l.preview=at(n,c);else{let{size:u}=l,_=N(u)+(c==="horizontal"?be:oe),b=l.preview.tagName.toLowerCase()==="div",L=b?l.preview:document.createElement("div");L&&(L.className=we.univariateAboveAndBelowSymbol),c==="horizontal"?L&&(L.style.width=`${_}px`):L&&(L.style.height=`${_}px`),b||L&&L.appendChild(l.preview),l.preview=L}})}function De(a,n="classic"){let c=a.infos,s=c[0].size,l=c[c.length-1].size;return n==="classic"?(N(s)+oe)/2:(N(s)-N(l))/2}function ge(a,n,c){if(!a)return null;let s=a.infos.map(o=>o.color),l=n.renderColorRampPreviewHTML(c.type==="full"?s:c.type==="above"?s.slice(0,3):s.slice(2,5),{width:c.width,height:c.height,align:c.rampAlignment,effectList:c.effectList});return l.className=we.colorRamp,c.opacity!=null&&(l.style.opacity=c.opacity.toString()),l}function it(a,n,c,s="vertical"){let l=0,o=a.infos,u=Math.floor(o.length/2),_=n==="full"||n==="above"?0:u,b=n==="full"||n==="below"?o.length-1:u;for(let L=_;L<=b;L++)if(c&&L===u)l+=s==="horizontal"?Be:ye;else{let k=o[L].size,R=N(k)+(s==="horizontal"?be:oe);l+=R}return Math.round(l)}function he(a,n,c,s="vertical"){let l=it(a,n,c,s),o=a.infos,u=Math.floor(o.length/2),_=n==="full"||n==="above"?0:u,b=n==="full"||n==="below"?o.length-1:u,L=n==="full"?o[_].size+o[b].size:n==="above"?o[_].size:o[b].size,k=c?s==="vertical"?ye:Be:0,R=s==="vertical"?oe*(n==="full"?2:1):be*(n==="full"?2:1);return Math.round(l-(N(L)/2+k/2+R/2))}function nt(a,n,c="vertical"){let s=a.infos,l=s.find(({type:u})=>u==="size-ramp"),o=s.find(({type:u})=>u==="color-ramp");return l&&(l={...l},l.infos=[...l.infos],Ie(l,n,c,!0)),o&&(o={...o},o.infos=[...o.infos]),c==="horizontal"&&(l?.infos.reverse(),o?.infos.reverse()),{sizeRampElement:l,colorRampElement:o}}function st(a,n="vertical"){let c=a.infos,s=c.find(({type:o})=>o==="size-ramp"),l=c.find(({type:o})=>o==="color-ramp");return s&&(s={...s},s.infos=[...s.infos],Ie(s,null,n,!1)),l&&(l={...l},l.infos=[...l.infos]),n==="horizontal"&&(s?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:s,colorRampElement:l}}function rt(a,n){return!0}var lt=".sc-instant-apps-interactive-legend-classic-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark:#009af2;--instant-apps-interactive-legend-info-item-background--hover:#e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark:#4a4a4a;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin:20px 15px;--instant-apps-interactive-legend-ui-padding:20px 15px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__service.sc-instant-apps-interactive-legend-classic{padding:0}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-classic{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic calcite-action.sc-instant-apps-interactive-legend-classic{margin-right:5px}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic{white-space:nowrap}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic calcite-button.sc-instant-apps-interactive-legend-classic{margin:2px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-classic>.esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{margin:0}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:table-row}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic{display:table-cell}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--symbols.sc-instant-apps-interactive-legend-classic{justify-content:center;width:20%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{width:65%}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{margin:1px;background:transparent;border:none;width:100%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{position:relative}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--calcite-color-text-inverse)}.sc-instant-apps-interactive-legend-classic-h .hide.sc-instant-apps-interactive-legend-classic{display:none}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{--instant-apps-interactive-legend-ui-padding:10px 5px}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{cursor:pointer}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}",ct=lt,m={service:"esri-legend__service",label:"esri-legend__service-label",layer:"esri-legend__layer",groupLayer:"esri-legend__group-layer",groupLayerChild:"esri-legend__group-layer-child",layerTable:"esri-legend__layer-table",layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerCaption:"esri-legend__layer-caption",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerCell:"esri-legend__layer-cell",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",imageryLayerCellStretched:"esri-legend__imagery-layer-cell--stretched",imageryLayerInfoStretched:"esri-legend__imagery-layer-info--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",borderlessRamp:"esri-legend__borderless-ramp",rampTick:"esri-legend__ramp-tick",rampFirstTick:"esri-legend__ramp-tick-first",rampLastTick:"esri-legend__ramp-tick-last",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",header:"esri-widget__heading",hidden:"esri-hidden",interactiveLegendHeader:"instant-apps-interactive-legend__header",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},ot=24,He={display:"flex",alignItems:"flex-start"},ue={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},dt=class{constructor(a){Me(this,a),this.calculatingFeatureCount=!1,this.legendvm=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0,this.isLoading=!0}handleFilterModeChange(){this.legendvm?.view&&Fe(this.filterMode,this.legendvm.view)}async connectedCallback(){this.handles||(this.handles=await Re())}async componentWillLoad(){new MutationObserver(()=>{ce(this.el)}).observe(this.el,{attributes:!0});let[n,c]=await Promise.all([Ce(),Se()]),s=await ke();this.reactiveUtils=c,this.intl=n,this.symbolUtils=s}async componentDidLoad(){await this.initLegend()}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let a=async()=>{try{let n=this.legendvm?.view?.map;await n?.load(),await n?.basemap?.load();let s=n?.allLayers?.map(async b=>await b.load()),o=(await Promise.allSettled(s)).map(b=>b?.status==="fulfilled"&&b?.value?b.value:null).filter(b=>!!b),u=[];o.forEach(b=>{this.legendvm?.view&&u.push(this.legendvm.view.whenLayerView(b))}),await Promise.allSettled(u);let _=await re(this.legendvm,this.reactiveUtils);B.set("data",{...E.data,..._}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(n){console.error(n),this.isLoading=!1}};this.legendvm?.view?.when(a),this.legendvm?.view?.map?.layers?.on("after-changes",a)}catch{this.isLoading=!1}}disconnectedCallback(){this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}render(){let a=this.renderFilteredLayers(),n=B.get("compact")?` ${m.compact}`:"";return this.isLoading?g("calcite-loader",{key:"interactive-legend-loader",scale:"m",label:this.messages?.loading,text:this.messages?.loading}):g("div",{key:"interactive-legend-classic-container",class:`${K(this.el)}${n}`},a?.length>0?a:g("div",{class:m.message},this.messages?.noLegend))}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(n=>this.renderLegendForLayer(n)).filter(n=>!!n)}renderLegendForLayer(a,n){if(!a.ready)return null;if(!!a.children.length){let o=a.children.map(u=>this.renderLegendForLayer(u,!0)).toArray();return g("instant-apps-interactive-legend-group-legend-element",{class:K(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:a,isChild:n},g("div",{style:{paddingLeft:"20px"},id:`${a?.layer?.id}-legend-layer`,slot:"content"},o))}let s=a.legendElements;if(s&&!s.length)return null;let l=s.map((o,u)=>this.renderLegendForElement(o,a.layer,a.effectList,a,u)).filter(o=>!!o);return l.length?g("instant-apps-interactive-legend-layer-element",{class:K(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:a,messages:this.messages,isChild:!!n},g("div",{slot:"content",id:`${a?.layer?.id}-legend-layer`,class:m.layer},l)):null}renderLegendForElement(a,n,c,s,l,o,u){let _=a.type==="color-ramp",b=a.type==="opacity-ramp",L=a.type==="size-ramp",k=null,R=Te(s,a,l),P=a?.type==="relationship-ramp";if(a.type==="symbol-table"||L){let A=a.infos.map(($,D)=>this.renderLegendForElementInfo($,n,c,L,a,s,l,D,R,u)).filter($=>!!$);A.length&&(k=g("div",{class:m.layerBody},A))}else if(a.type==="color-ramp"||a.type==="opacity-ramp"||a.type==="heatmap-ramp"||a.type==="stretch-ramp"){let A=a;k=this.renderLegendForRamp(A,n.opacity)}else if(P)k=g("instant-apps-interactive-legend-relationship",{class:K(this.el),key:"relationship-ramp",filterMode:this.filterMode,activeLayerInfo:s,legendElement:a,messages:this.messages});else if(a.type==="pie-chart-ramp"){let A=a;k=this.renderPieChartRamp(A)}else if(a.type==="univariate-above-and-below-ramp"){let A=a;k=this.renderUnivariateAboveAndBelowRamp(A,n.opacity,c)}else if(a.type==="univariate-color-size-ramp"){let A=a;k=this.renderUnivariateColorSizeRamp(A,n.opacity,c)}if(!k)return null;let x=a.title,z=null;if(typeof x=="string")z=x;else if(x){let A=x,$=this.getTitle(this.messages,A,_||b);this.isRendererTitle(_||b)?"title"in x&&(z=`${x.title} (${$})`):z=$}return g("instant-apps-interactive-legend-legend-element",{class:K(this.el),activeLayerInfo:s,isSizeRamp:L,isChild:!!o,isColorRamp:_,isRelationshipRamp:P,isInteractive:R,zoomTo:this.zoomTo,legendElement:a,titleText:z,legendvm:this.legendvm,legendElementIndex:l,messages:this.messages},g("div",{slot:"content"},k))}renderPieChartRamp(a){return g("div",{innerHTML:`${a.preview?.outerHTML}`})}renderUnivariateAboveAndBelowRamp(a,n,c){let{sizeRampElement:s,colorRampElement:l}=nt(a,n);if(!s)return null;let o=he(s,"above",!0),u=he(s,"below",!0),_=12,b=ge(l,this.symbolUtils,{width:_,height:o,rampAlignment:"vertical",opacity:n,type:"above",effectList:c}),L=ge(l,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:n,type:"below",effectList:c}),k=De(s),R=s.infos.map(U=>U.label),P=R.map((U,M)=>M===0?g("div",{class:U?b?m.univariateAboveAndBelowLabel:m.rampLabel:""},U):M===2?g("div",null):null),x=R.length-1,z=Math.floor(R.length/2),A=R.map((U,M)=>M===z||M===x?g("div",{class:U?b?m.univariateAboveAndBelowLabel:m.rampLabel:""},U):null),$={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${k}px`},J={height:`${o}px`},X={height:`${u}px`};return g("div",{key:"univariate-above-and-below-ramp-preview",style:He},g("div",{class:m.layerBody},s.infos.map((U,M)=>g("div",{class:`${m.layerRow} ${m.sizeRamp}`},g("div",{class:m.symbol,style:$,innerHTML:U?.preview?.outerHTML??""}),!b&&M%2===0?g("div",{class:m.layerInfo},R[M]):null))),b?g("div",{style:D,key:"color-ramp-preview"},g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},b)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:J},P))),g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},L)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:X},A)))):null)}renderUnivariateColorSizeRamp(a,n,c){let{sizeRampElement:s,colorRampElement:l}=st(a);if(!s)return null;let o=De(s),u=12,_=he(s,"full",!1),b=ge(l,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:n,type:"full",effectList:c}),L=s.infos.length-1,k=s.infos.map((z,A)=>A===0||A===L?g("div",{class:z.label?l?m.univariateAboveAndBelowLabel:m.rampLabel:""},z.label):null),R={display:"table-cell",verticalAlign:"middle"},P={marginTop:`${o}px`},x={height:`${_}px`};return g("div",{key:"univariate-above-and-below-ramp-preview",style:He},g("div",{class:m.layerBody},s.infos.map(z=>g("div",{class:`${m.layerRow} ${m.sizeRamp}`},g("div",{class:m.symbol,style:R,innerHTML:z?.preview?.outerHTML??""})))),g("div",{style:P,key:"color-ramp-preview"},g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},b)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:x},k)))))}renderLegendForRamp(a,n){let c=a.infos,s=a.type==="opacity-ramp",l=a.type==="heatmap-ramp",o=a.type==="stretch-ramp",u=a.preview,_=s?m.opacityRamp:"";u&&(u.classList.add(m.colorRamp),_&&u.classList.add(_)),n!=null&&u&&(u.style.opacity=n.toString());let b=c.map(R=>{let P;if(l){let x=this.messages[R.label];P=typeof x=="string"?x:R.label}else o?P="value"in R?this.getStretchStopLabel(R):R.label:P=R.label;return g("div",{class:R.label?m.rampLabel:""},P)}),L={width:`${ot}px`},k={height:u?.style?.height};return g("div",{class:m.layerRow},g("div",{class:m.symbolContainer,style:{...L}},g("div",{ref:R=>{R?.firstChild&&R?.firstChild?.remove(),R?.appendChild(u)},class:m.rampContainer})),g("div",{class:m.layerInfo},g("div",{class:m.rampLabelsContainer,style:{...k}},b)))}getStretchStopLabel(a){let n=this.messages[a.label];return a.label?`${n}: ${typeof a.value=="string"?a.value:this.intl.formatNumber(a.value,{style:"decimal",notation:a.value.toString().includes("e")?"scientific":"standard"})}`:""}renderLegendForElementInfo(a,n,c,s,l,o,u,_,b,L){if("infos"in a)return this.renderLegendForElement(a,n,c,o,u,!0,a);let k=null,R=!rt();if("preview"in a){let{outerHTML:W}=a.preview;k=g("div",{class:m.symbol,innerHTML:W})}else"src"in a&&(k=this.renderImage(a,n,R));if(!k)return null;let P="",x=s?` ${m.sizeRamp}`:"",z,A=ze(n),$=$e(A,L);if(E.data){let W=xe(A,n,a,$,_),Y=$?$?.nestedInfos:A,q=Pe(Y);z=A?.categories?.size===1?!W?.selected:q||W?.selected}let D="label"in a?a.label:null,J=$&&!("value"in a)?!1:b,X=B.get("compact"),U=this.getTitle(this.messages,D,!1)||"",M=$?l.title:D??n?.id;return J?g("button",{onClick:this.applyFilter(a,n,_,L),class:`${m.layerRow} ${m.interactiveLayerRow}${z?` ${m.infoSelected}`:""}`,title:X?`${U}`:void 0,"aria-pressed":z?"true":"false"},g("div",{class:`${m.symbolContainer}${P}${x}`},k),g("div",{class:`${m.layerInfo}${P}`},this.getTitle(this.messages,D,!1)||""),this.featureCount&&!X?g("instant-apps-interactive-legend-count",{class:K(this.el),categoryId:M,activeLayerInfo:o,legendvm:this.legendvm,messages:this.messages,selected:!!z,legendElement:l,infoIndex:_}):null):g("div",{class:m.layerRow},g("div",{class:`${m.symbolContainer}${P}${x}`},k),g("div",{class:`${m.layerInfo}${P}`},U))}renderImage(a,n,c){let{label:s,src:l,opacity:o}=a,u=c?` ${m.imageryLayerStretchedImage}`:"",_=c?"":` ${m.symbol}`,b={opacity:`${o??n.opacity}`};return g("img",{alt:this.getTitle(this.messages,s,!1),src:l,width:a.width,height:a.height,class:`$${u}${_}`,style:b})}getTitle(a,n,c){if(!n)return;if(typeof n=="string"||typeof n=="number")return n;if("value"in n||"unit"in n){let o=typeof a?.dotValue=="string"?a.dotValue:"";return this.intl.substitute(o,n)}if("colorName"in n||"bandName"in n){let{colorName:o,bandName:u}=n,_=a[o],b=typeof a[u]=="string"?a[u]:u;return`${_}: ${b}`}if("showCount"in n)return n.showCount?a.clusterCountTitle:null;let s=null;if(c){let o=n;s=o.ratioPercentTotal?"showRatioPercentTotal":o.ratioPercent?"showRatioPercent":o.ratio?"showRatio":n.normField?"showNormField":n.field?"showField":null}else if(this.isRendererTitle(c)){let o=n;s=o.normField?"showNormField":o.normByPct?"showNormPct":o.field?"showField":null}let l=s==="showField"?"{field}":typeof s=="string"?a[s]:"";return s?this.intl?.substitute(l,{field:n.field,normField:n.normField}):""}isRendererTitle(a){return!a}async setupWatchersAndListeners(){let a=this.legendvm?.view?.map?.allLayers?.filter(s=>s?.type==="feature"),n=[];for(let s of a)this.legendvm?.view&&n.push(this.legendvm?.view?.whenLayerView(s));let c=[];try{c=await Promise.all(n)}catch(s){console.error(s)}for(let s of c){let l=`fLayerViewScale-${s.layer.id}`;!this.handles?.has(l)&&s&&this.handles?.add(s.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(s.layer).catch(o=>{console.error(o)})}),l)}a?.forEach(s=>{let l=`fLayer-${s?.id}`;this.handles?.has(l)||this.handles?.add(this.reactiveUtils?.watch(()=>s?.visible,()=>{this.createDataForLayer(s).catch(o=>{console.error(o)})}),l)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{le(this.legendvm,E.data).then(s=>{B.set("data",{...E.data,...s}),this.calculatingFeatureCount=!1}).catch(s=>{console.error(s)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",s=>{re(this.legendvm,this.reactiveUtils).then(l=>{B.set("data",{...E.data,...l}),ce(this.el)}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>s.children,"change",()=>{re(this.legendvm,this.reactiveUtils).then(l=>{B.set("data",{...E.data,...l}),ce(this.el)}).catch(l=>{console.error(l)})}))}).catch(l=>{console.error(l)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{le(this.legendvm,E.data).then(s=>{B.set("data",{...E.data,...s}),this.calculatingFeatureCount=!1}).catch(s=>{console.error(s)})}))}async createDataForLayer(a){let c=B.get("data")?.[a?.id],l=Ue(this.legendvm?.activeLayerInfos)?.find(o=>o?.layer?.id===a?.id);if(!c&&l){let o=await Ae(this.legendvm,l,this.reactiveUtils);if(fe({intLegendLayerData:o,layerId:a?.id}),this.featureCount){let u=await le(this.legendvm,E.data);B.set("data",{...E.data,...u})}}}applyFilter(a,n,c,s){return async()=>{let l={...E.data?.[n?.id]};s?await ve(l,a,c,this.filterMode,s):await ve(l,a,c,this.filterMode),fe({intLegendLayerData:l,layerId:n?.id})}}get el(){return Ee(this)}static get watchers(){return{filterMode:["handleFilterModeChange"]}}};dt.style=ct;export{dt as instant_apps_interactive_legend_classic};
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as E,b as B,c as Ae,d as re,f as xe,g as ze,h as ve,i as Pe,k as Te,q as le,u as $e,v as K,w as fe,x as Fe,y as Ue}from"./L3IX5SCS.js";import"./ZA4R3KFB.js";import"./MRMD4H7O.js";import{C as Ce,E as ke,c as Re,z as Se}from"./CLZ42RFU.js";import{a as Me,c as g,e as Ee,h as ce}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var Ne=96;function N(a){return a?a/72*Ne:0}var Ve=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},me={exports:{}};(function(a,n){(function(c,s){s(n)})(Ve,function(c){var s="http://www.w3.org/",l="".concat(s,"2000/svg"),o="".concat(s,"1999/xlink"),u=[],_=function(e,t){var i={};return Object.keys(e).forEach(function(r){i[r]=e[r]}),t&&Object.keys(t).forEach(function(r){i[r]=t[r]}),i},b=function(e,t){return e.vnodeSelector!==t.vnodeSelector?!1:e.properties&&t.properties?e.properties.key!==t.properties.key?!1:e.properties.bind===t.properties.bind:!e.properties&&!t.properties},L=function(e){if(typeof e!="string")throw new Error("Style values must be strings")},k=function(e,t,i){if(t.vnodeSelector!==""){for(var r=i;r<e.length;r++)if(b(e[r],t))return r}return-1},R=function(e,t,i,r){var d=e[t];if(d.vnodeSelector!==""){var p=d.properties,S=p?p.key===void 0?p.bind:p.key:void 0;if(!S){for(var h=0;h<e.length;h++)if(h!==t){var f=e[h];if(b(f,d))throw{error:new Error("".concat(i.vnodeSelector," had a ").concat(d.vnodeSelector," child ").concat(r==="added"?r:"removed",", but there is now more than one. You must add unique key properties to make them distinguishable.")),parentNode:i,childNode:d}}}}},P=function(e){if(e.properties){var t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},x=[],z=!1,A=function(e){(e.children||[]).forEach(A),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},$=function(){z=!1,x.forEach(A),x.length=0},D=function(e){x.push(e),z||(z=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback($,{timeout:16}):setTimeout($,16))},J=function(e){var t=e.domNode;if(e.properties){var i=e.properties.exitAnimation;if(i){t.style.pointerEvents="none";var r=function(){t.parentNode&&(t.parentNode.removeChild(t),D(e))};i(t,r,e.properties);return}}t.parentNode&&(t.parentNode.removeChild(t),D(e))},X=["afterCreate","afterUpdate","afterRemoved","enterAnimation","exitAnimation","updateAnimation"];function U(e){return!X.includes(e)}var M=function(e,t,i){if(t)for(var r=i.eventHandlerInterceptor,d=Object.keys(t).filter(U),p=d.length,S=0;S<p;S++){var h=d[S],f=t[h];if(h==="className")throw new Error('Property "className" is not supported, use "class".');if(h==="class")de(e,f,!0);else if(h==="classes")for(var v=Object.keys(f),C=v.length,w=0;w<C;w++){var y=v[w];f[y]&&e.classList.add(y)}else if(h==="styles")for(var F=Object.keys(f),T=F.length,w=0;w<T;w++){var I=F[w],Z=f[I];Z&&(L(Z),i.styleApplyer(e,I,Z))}else if(h==="on"&&f)for(var te=0,ae=Object.entries(t.on);te<ae.length;te++){var ne=ae[te],G=ne[0],H=ne[1],O=typeof H=="function"?H:H.listener;r&&(O=r(G,O,e,t)),O&&e.addEventListener(G,O,typeof H=="function"?void 0:H.options)}else if(h!=="key"&&f!==null&&f!==void 0){var se=typeof f;se==="function"?(h.lastIndexOf("on",0)===0&&r&&(f=r(h,f,e,t)),e[h]=f):i.namespace===l?h==="href"?e.setAttributeNS(o,h,f):e.setAttribute(h,f):se==="string"&&h!=="value"&&h!=="innerHTML"?e.setAttribute(h,f):e[h]=f}}},W=function(e,t,i){if(t)for(var r=0,d=t;r<d.length;r++){var p=d[r];q(p,e,void 0,i)}},Y=function(e,t,i){W(e,t.children,i),t.text&&(e.textContent=t.text),M(e,t.properties,i),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,i,t.vnodeSelector,t.properties,t.children])},q=function(e,t,i,r){var d,p,S=0,h=e.vnodeSelector,f=t.ownerDocument;if(h==="")e.domNode?e.domNode.nodeValue=e.text:(p=e.domNode=f.createTextNode(e.text),i!==void 0?t.insertBefore(p,i):t.appendChild(p));else{for(var v=0;v<=h.length;++v){var C=h.charAt(v);if(v===h.length||C==="."||C==="#"){var w=h.charAt(S-1),y=h.slice(S,v);w==="."?p.classList.add(y):w==="#"?p.id=y:(y==="svg"&&(r=_(r,{namespace:l})),r.namespace!==void 0?p=e.domNode=f.createElementNS(r.namespace,y):(p=e.domNode=e.domNode||(!((d=e.properties)===null||d===void 0)&&d.is?f.createElement(y,{is:e.properties.is}):f.createElement(y)),y==="input"&&e.properties&&e.properties.type!==void 0&&p.setAttribute("type",e.properties.type)),i!==void 0?t.insertBefore(p,i):p.parentNode!==t&&t.appendChild(p)),S=v+1}}Y(p,e,r)}},ie,de=function(e,t,i){t&&t.split(" ").forEach(function(r){r&&e.classList.toggle(r,i)})},We=function(e,t,i,r){if(i){for(var d=!1,p=Object.keys(i).filter(U),S=p.length,h=0;h<S;h++){var f=p[h],v=i[f],C=t[f];if(f==="class")C!==v&&(de(e,C,!1),de(e,v,!0));else if(f==="classes")for(var w=e.classList,y=Object.keys(v),F=y.length,T=0;T<F;T++){var I=y[T],Z=!!v[I],te=!!C[I];Z!==te&&(d=!0,Z?w.add(I):w.remove(I))}else if(f==="styles")for(var ae=Object.keys(v),ne=ae.length,T=0;T<ne;T++){var G=ae[T],H=v[G],O=C[G];H!==O&&(d=!0,H?(L(H),r.styleApplyer(e,G,H)):r.styleApplyer(e,G,""))}else if(!v&&typeof C=="string"&&(v=""),f==="value"){var se=e[f];se!==v&&v!==C&&(e[f]=v),v!==C&&(d=!0)}else if(v!==C){var Le=typeof v;(Le!=="function"||!r.eventHandlerInterceptor)&&(r.namespace===l?f==="href"?e.setAttributeNS(o,f,v):e.setAttribute(f,v):Le==="string"&&f!=="innerHTML"?f==="role"&&v===""?e.removeAttribute(f):e.setAttribute(f,v):e[f]!==v&&(e[f]=v),d=!0)}}return d}},qe=function(e,t,i,r,d){if(i===r)return!1;i=i||u,r=r||u;for(var p=i.length,S=r.length,h=0,f=0,v,C=!1;f<S;){var w=h<p?i[h]:void 0,y=r[f];if(w!==void 0&&b(w,y))C=ie(w,y,d)||C,h++;else{var F=k(i,y,h+1);if(F>=0){for(v=h;v<F;v++)J(i[v]),R(i,v,e,"removed");C=ie(i[F],y,d)||C,h=F+1}else q(y,t,h<p?i[h].domNode:void 0,d),P(y),R(r,f,e,"added")}f++}if(p>h)for(v=h;v<p;v++)J(i[v]),R(i,v,e,"removed");return C};ie=function(e,t,i){var r=e.domNode,d=!1;if(e===t)return!1;var p=!1;if(t.vnodeSelector===""){if(t.text!==e.text){var S=r.ownerDocument.createTextNode(t.text);return r.parentNode.replaceChild(S,r),t.domNode=S,d=!0,d}t.domNode=r}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(i=_(i,{namespace:l})),e.text!==t.text&&(p=!0,t.text===void 0?r.removeChild(r.firstChild):r.textContent=t.text),t.domNode=r,p=qe(t,r,e.children,t.children,i)||p,p=We(r,e.properties,t.properties,i)||p,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[r,i,t.vnodeSelector,t.properties,t.children]);return p&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(r,t.properties,e.properties),d};var V=function(e,t){return{getLastRender:function(){return e},update:function(i){if(e.vnodeSelector!==i.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");var r=e;e=i,ie(r,i,t)},domNode:e.domNode}},Ge={namespace:void 0,performanceLogger:function(){},eventHandlerInterceptor:void 0,styleApplyer:function(e,t,i){t.charAt(0)==="-"?e.style.setProperty(t,i):e.style[t]=i}},Q=function(e){return _(Ge,e)},ee={create:function(e,t){return t=Q(t),q(e,document.createElement("div"),void 0,t),V(e,t)},append:function(e,t,i){return i=Q(i),q(t,e,void 0,i),V(t,i)},insertBefore:function(e,t,i){return i=Q(i),q(t,e.parentNode,e,i),V(t,i)},merge:function(e,t,i){return i=Q(i),t.domNode=e,Y(e,t,i),V(t,i)},replace:function(e,t,i){return i=Q(i),q(t,e.parentNode,e,i),e.parentNode.removeChild(e),V(t,i)}},Ke=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},_e=function(e,t,i){for(var r=0,d=t.length;r<d;r++){var p=t[r];Array.isArray(p)?_e(e,p,i):p!=null&&p!==!1&&(typeof p=="string"&&(p=Ke(p)),i.push(p))}};function Je(e,t,i){if(Array.isArray(t))i=t,t=void 0;else if(t&&(typeof t=="string"||t.vnodeSelector)||i&&(typeof i=="string"||i.vnodeSelector))throw new Error("h called with invalid arguments");var r,d;return i&&i.length===1&&typeof i[0]=="string"?r=i[0]:i&&(d=[],_e(e,i,d),d.length===0&&(d=void 0)),{vnodeSelector:e,properties:t,children:d,text:r===""?void 0:r,domNode:null}}var Xe=function(e,t){for(var i=[];e&&e!==t;)i.push(e),e=e.parentNode;return i},pe;Array.prototype.find?pe=function(e,t){return e.find(t)}:pe=function(e,t){return e.filter(t)[0]};var Ye=function(e,t){var i=e;return t.forEach(function(r){i=i&&i.children?pe(i.children,function(d){return d.domNode===r}):void 0}),i},Qe=function(e,t,i){return function(d,p,S,h){return r};function r(d){var p,S;i("domEvent",d);var h=t(),f=Xe(d.currentTarget,h.domNode);f.reverse();var v=Ye(h.getLastRender(),f);e.scheduleRender();var C;if(v){var w=(S=(p=v.properties["on".concat(d.type)])!==null&&p!==void 0?p:v.properties.on[d.type].listener)!==null&&S!==void 0?S:v.properties.on[d.type];C=w.apply(v.properties.bind||this,arguments)}return i("domEventProcessed",d),C}},Ze=function(e){var t,i=Q(e),r=i.performanceLogger,d=!0,p,S=!1,h=[],f=[],v=function(w,y,F){var T,I=function(){return T};i.eventHandlerInterceptor=Qe(t,I,r),T=w(y,F(),i),h.push(T),f.push(F)},C=function(){if(p=void 0,!!d){d=!1,r("renderStart",void 0);for(var w=0;w<h.length;w++){var y=f[w]();r("rendered",void 0),h[w].update(y),r("patched",void 0)}r("renderDone",void 0),d=!0}};return t={renderNow:C,scheduleRender:function(){!p&&!S&&(p=requestAnimationFrame(C))},stop:function(){p&&(cancelAnimationFrame(p),p=void 0),S=!0},resume:function(){S=!1,d=!0,t.scheduleRender()},append:function(w,y){v(ee.append,w,y)},insertBefore:function(w,y){v(ee.insertBefore,w,y)},merge:function(w,y){v(ee.merge,w,y)},replace:function(w,y){v(ee.replace,w,y)},detach:function(w){for(var y=0;y<f.length;y++)if(f[y]===w)return f.splice(y,1),h.splice(y,1)[0];throw new Error("renderFunction was not found")}},t},Oe=function(){var e,t;return{invalidate:function(){t=void 0,e=void 0},result:function(i,r){if(e)for(var d=0;d<i.length;d++)e[d]!==i[d]&&(t=void 0);return t||(t=r(),e=i),t}}},je=function(e,t,i){var r=[],d=[];return{results:d,map:function(p){for(var S=p.map(e),h=d.slice(),f=0,v=0;v<p.length;v++){var C=p[v],w=S[v];if(w===r[f])d[v]=h[f],i(C,h[f],v),f++;else{for(var y=!1,F=1;F<r.length+1;F++){var T=(f+F)%r.length;if(r[T]===w){d[v]=h[T],i(p[v],h[T],v),f=T+1,y=!0;break}}y||(d[v]=t(C,v))}}d.length=p.length,r=S}}};c.createCache=Oe,c.createMapping=je,c.createProjector=Ze,c.dom=ee,c.h=Je})})(me,me.exports);var et=me.exports.createProjector(),Be=10,ye=20,oe=10,be=20,we={univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",colorRamp:"esri-legend__color-ramp"};function tt(a="vertical"){let n={stroke:"rgb(200, 200, 200)",strokeWidth:"1"};return a==="vertical"?g("svg",{height:"4",width:"10"},g("line",{x1:"0",y1:"2",x2:"10",y2:"2",style:n})):g("svg",{height:"10",width:"10"},g("line",{x1:"5",y1:"0",x2:"5",y2:"10",style:n}))}function at(a,n="vertical"){let c=document.createElement("div");return c.style.height=`${ye}px`,c.className=we.univariateAboveAndBelowSymbol,a!=null&&(c.style.opacity=a.toString()),et.append(c,tt.bind(null,n)),c}function Ie(a,n,c="vertical",s){a.infos.forEach((l,o)=>{if(s&&o===2)l.preview=at(n,c);else{let{size:u}=l,_=N(u)+(c==="horizontal"?be:oe),b=l.preview.tagName.toLowerCase()==="div",L=b?l.preview:document.createElement("div");L&&(L.className=we.univariateAboveAndBelowSymbol),c==="horizontal"?L&&(L.style.width=`${_}px`):L&&(L.style.height=`${_}px`),b||L&&L.appendChild(l.preview),l.preview=L}})}function De(a,n="classic"){let c=a.infos,s=c[0].size,l=c[c.length-1].size;return n==="classic"?(N(s)+oe)/2:(N(s)-N(l))/2}function ge(a,n,c){if(!a)return null;let s=a.infos.map(o=>o.color),l=n.renderColorRampPreviewHTML(c.type==="full"?s:c.type==="above"?s.slice(0,3):s.slice(2,5),{width:c.width,height:c.height,align:c.rampAlignment,effectList:c.effectList});return l.className=we.colorRamp,c.opacity!=null&&(l.style.opacity=c.opacity.toString()),l}function it(a,n,c,s="vertical"){let l=0,o=a.infos,u=Math.floor(o.length/2),_=n==="full"||n==="above"?0:u,b=n==="full"||n==="below"?o.length-1:u;for(let L=_;L<=b;L++)if(c&&L===u)l+=s==="horizontal"?Be:ye;else{let k=o[L].size,R=N(k)+(s==="horizontal"?be:oe);l+=R}return Math.round(l)}function he(a,n,c,s="vertical"){let l=it(a,n,c,s),o=a.infos,u=Math.floor(o.length/2),_=n==="full"||n==="above"?0:u,b=n==="full"||n==="below"?o.length-1:u,L=n==="full"?o[_].size+o[b].size:n==="above"?o[_].size:o[b].size,k=c?s==="vertical"?ye:Be:0,R=s==="vertical"?oe*(n==="full"?2:1):be*(n==="full"?2:1);return Math.round(l-(N(L)/2+k/2+R/2))}function nt(a,n,c="vertical"){let s=a.infos,l=s.find(({type:u})=>u==="size-ramp"),o=s.find(({type:u})=>u==="color-ramp");return l&&(l={...l},l.infos=[...l.infos],Ie(l,n,c,!0)),o&&(o={...o},o.infos=[...o.infos]),c==="horizontal"&&(l?.infos.reverse(),o?.infos.reverse()),{sizeRampElement:l,colorRampElement:o}}function st(a,n="vertical"){let c=a.infos,s=c.find(({type:o})=>o==="size-ramp"),l=c.find(({type:o})=>o==="color-ramp");return s&&(s={...s},s.infos=[...s.infos],Ie(s,null,n,!1)),l&&(l={...l},l.infos=[...l.infos]),n==="horizontal"&&(s?.infos.reverse(),l?.infos.reverse()),{sizeRampElement:s,colorRampElement:l}}function rt(a,n){return!0}var lt=".sc-instant-apps-interactive-legend-classic-h{display:block;--instant-apps-interactive-legend-heading-font-size:1rem;--instant-apps-interactive-legend-heading-font-weight:normal;--instant-apps-interactive-legend-caption-font-weight:normal;--instant-apps-interactive-legend-secondary-color:var(--calcite-color-text-1);--instant-apps-interactive-legend-field-name-font-size:1rem;--instant-apps-interactive-legend-total-feature-count-font-size:0.875rem;--instant-apps-interactive-legend-info-font-size:0.875rem;--instant-apps-interactive-legend-info-item-background--selected:#c7ebff;--instant-apps-interactive-legend-info-item-background--selected--dark:#009af2;--instant-apps-interactive-legend-info-item-background--hover:#e9e9e9;--instant-apps-interactive-legend-info-item-background--hover--dark:#4a4a4a;--instant-apps-interactive-legend-info-item-color--selected:var(--calcite-color-text-2);--instant-apps-interactive-legend-secondary-background-color:var(--calcite-color-background);--instant-apps-interactive-legend-ui-margin:20px 15px;--instant-apps-interactive-legend-ui-padding:20px 15px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__service.sc-instant-apps-interactive-legend-classic{padding:0}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-table.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__group-layer-child.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-child-table.sc-instant-apps-interactive-legend-classic{margin:0;overflow:hidden}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic calcite-action.sc-instant-apps-interactive-legend-classic{margin-right:5px}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic{white-space:nowrap}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-caption-btn-container.sc-instant-apps-interactive-legend-classic calcite-button.sc-instant-apps-interactive-legend-classic{margin:2px}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{font-size:var(--instant-apps-interactive-legend-info-font-size);text-align:left}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:flex;align-items:center}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{display:block;margin:var(--instant-apps-interactive-legend-ui-margin)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.instant-apps-interactive-legend__nested-unique-symbol.sc-instant-apps-interactive-legend-classic>.esri-legend__layer-body.sc-instant-apps-interactive-legend-classic{margin:0}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{display:table-row}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__non-interactive.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell.sc-instant-apps-interactive-legend-classic{display:table-cell}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--symbols.sc-instant-apps-interactive-legend-classic{justify-content:center;width:20%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{width:65%}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{margin:1px;background:transparent;border:none;width:100%}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic,.sc-instant-apps-interactive-legend-classic-h .esri-legend__layer-caption.sc-instant-apps-interactive-legend-classic{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{position:relative}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{background-color:var(--instant-apps-interactive-legend-info-item-background--selected)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic{cursor:pointer;background-color:var(--instant-apps-interactive-legend-info-item-background--selected--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend-element-info--selected.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{color:var(--calcite-color-text-inverse)}.sc-instant-apps-interactive-legend-classic-h .hide.sc-instant-apps-interactive-legend-classic{display:none}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic{--instant-apps-interactive-legend-ui-padding:10px 5px}.instant-apps-interactive-legend__compact.sc-instant-apps-interactive-legend-classic .esri-legend__layer-row.sc-instant-apps-interactive-legend-classic .esri-legend__layer-cell--info.sc-instant-apps-interactive-legend-classic{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;line-clamp:2;line-height:1.3125rem;max-height:2.625rem}@media (min-width: 992px){.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic{cursor:pointer}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover)}.sc-instant-apps-interactive-legend-classic-h .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#e2f2fe}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover{background-color:var(--instant-apps-interactive-legend-info-item-background--hover--dark)}.sc-instant-apps-interactive-legend-classic-h .calcite-mode-dark.sc-instant-apps-interactive-legend-classic .instant-apps-interactive-legend__layer-row--interactive.sc-instant-apps-interactive-legend-classic:hover.instant-apps-interactive-legend-element-info--selected{background-color:#26a9f4}}",ct=lt,m={service:"esri-legend__service",label:"esri-legend__service-label",layer:"esri-legend__layer",groupLayer:"esri-legend__group-layer",groupLayerChild:"esri-legend__group-layer-child",layerTable:"esri-legend__layer-table",layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerCaption:"esri-legend__layer-caption",layerBody:"esri-legend__layer-body",layerRow:"esri-legend__layer-row",layerCell:"esri-legend__layer-cell",layerInfo:"esri-legend__layer-cell esri-legend__layer-cell--info",imageryLayerStretchedImage:"esri-legend__imagery-layer-image--stretched",imageryLayerCellStretched:"esri-legend__imagery-layer-cell--stretched",imageryLayerInfoStretched:"esri-legend__imagery-layer-info--stretched",symbolContainer:"esri-legend__layer-cell esri-legend__layer-cell--symbols",symbol:"esri-legend__symbol",rampContainer:"esri-legend__ramps",sizeRamp:"esri-legend__size-ramp",colorRamp:"esri-legend__color-ramp",opacityRamp:"esri-legend__opacity-ramp",borderlessRamp:"esri-legend__borderless-ramp",rampTick:"esri-legend__ramp-tick",rampFirstTick:"esri-legend__ramp-tick-first",rampLastTick:"esri-legend__ramp-tick-last",rampLabelsContainer:"esri-legend__ramp-labels",rampLabel:"esri-legend__ramp-label",univariateAboveAndBelowSymbol:"esri-univariate-above-and-below-ramp__symbol",univariateAboveAndBelowLabel:"esri-univariate-above-and-below-ramp__label",message:"esri-legend__message",header:"esri-widget__heading",hidden:"esri-hidden",interactiveLegendHeader:"instant-apps-interactive-legend__header",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",interactiveLayerRow:"instant-apps-interactive-legend__layer-row--interactive",infoSelected:"instant-apps-interactive-legend-element-info--selected",compact:"instant-apps-interactive-legend__compact"},ot=24,He={display:"flex",alignItems:"flex-start"},ue={marginLeft:"3px"},j={display:"table-cell",verticalAlign:"middle"},dt=class{constructor(a){Me(this,a),this.calculatingFeatureCount=!1,this.legendvm=void 0,this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.messages=void 0,this.isLoading=!0}handleFilterModeChange(){this.legendvm?.view&&Fe(this.filterMode,this.legendvm.view)}async connectedCallback(){this.handles||(this.handles=await Re())}async componentWillLoad(){new MutationObserver(()=>{ce(this.el)}).observe(this.el,{attributes:!0});let[n,c]=await Promise.all([Ce(),Se()]),s=await ke();this.reactiveUtils=c,this.intl=n,this.symbolUtils=s}async componentDidLoad(){await this.initLegend()}async initLegend(){try{await this.reactiveUtils.whenOnce(()=>this.legendvm?.view);let a=async()=>{try{let n=this.legendvm?.view?.map;await n?.load(),await n?.basemap?.load();let s=n?.allLayers?.map(async b=>await b.load()),o=(await Promise.allSettled(s)).map(b=>b?.status==="fulfilled"&&b?.value?b.value:null).filter(b=>!!b),u=[];o.forEach(b=>{this.legendvm?.view&&u.push(this.legendvm.view.whenLayerView(b))}),await Promise.allSettled(u);let _=await re(this.legendvm,this.reactiveUtils);B.set("data",{...E.data,..._}),this.isLoading=!1,await this.setupWatchersAndListeners()}catch(n){console.error(n),this.isLoading=!1}};this.legendvm?.view?.when(a),this.legendvm?.view?.map?.layers?.on("after-changes",a)}catch{this.isLoading=!1}}disconnectedCallback(){this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}render(){let a=this.renderFilteredLayers(),n=B.get("compact")?` ${m.compact}`:"";return this.isLoading?g("calcite-loader",{key:"interactive-legend-loader",scale:"m",label:this.messages?.loading,text:this.messages?.loading}):g("div",{key:"interactive-legend-classic-container",class:`${K(this.el)}${n}`},a?.length>0?a:g("div",{class:m.message},this.messages?.noLegend))}renderFilteredLayers(){return(this.legendvm?.activeLayerInfos?.toArray()).map(n=>this.renderLegendForLayer(n)).filter(n=>!!n)}renderLegendForLayer(a,n){if(!a.ready)return null;if(!!a.children.length){let o=a.children.map(u=>this.renderLegendForLayer(u,!0)).toArray();return g("instant-apps-interactive-legend-group-legend-element",{class:K(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:a,isChild:n},g("div",{style:{paddingLeft:"20px"},id:`${a?.layer?.id}-legend-layer`,slot:"content"},o))}let s=a.legendElements;if(s&&!s.length)return null;let l=s.map((o,u)=>this.renderLegendForElement(o,a.layer,a.effectList,a,u)).filter(o=>!!o);return l.length?g("instant-apps-interactive-legend-layer-element",{class:K(this.el),legendvm:this.legendvm,featureCount:this.featureCount,activeLayerInfo:a,messages:this.messages,isChild:!!n},g("div",{slot:"content",id:`${a?.layer?.id}-legend-layer`,class:m.layer},l)):null}renderLegendForElement(a,n,c,s,l,o,u){let _=a.type==="color-ramp",b=a.type==="opacity-ramp",L=a.type==="size-ramp",k=null,R=Te(s,a,l),P=a?.type==="relationship-ramp";if(a.type==="symbol-table"||L){let A=a.infos.map(($,D)=>this.renderLegendForElementInfo($,n,c,L,a,s,l,D,R,u)).filter($=>!!$);A.length&&(k=g("div",{class:m.layerBody},A))}else if(a.type==="color-ramp"||a.type==="opacity-ramp"||a.type==="heatmap-ramp"||a.type==="stretch-ramp"){let A=a;k=this.renderLegendForRamp(A,n.opacity)}else if(P)k=g("instant-apps-interactive-legend-relationship",{class:K(this.el),key:"relationship-ramp",filterMode:this.filterMode,activeLayerInfo:s,legendElement:a,messages:this.messages});else if(a.type==="pie-chart-ramp"){let A=a;k=this.renderPieChartRamp(A)}else if(a.type==="univariate-above-and-below-ramp"){let A=a;k=this.renderUnivariateAboveAndBelowRamp(A,n.opacity,c)}else if(a.type==="univariate-color-size-ramp"){let A=a;k=this.renderUnivariateColorSizeRamp(A,n.opacity,c)}if(!k)return null;let x=a.title,z=null;if(typeof x=="string")z=x;else if(x){let A=x,$=this.getTitle(this.messages,A,_||b);this.isRendererTitle(_||b)?"title"in x&&(z=`${x.title} (${$})`):z=$}return g("instant-apps-interactive-legend-legend-element",{class:K(this.el),activeLayerInfo:s,isSizeRamp:L,isChild:!!o,isColorRamp:_,isRelationshipRamp:P,isInteractive:R,zoomTo:this.zoomTo,legendElement:a,titleText:z,legendvm:this.legendvm,legendElementIndex:l,messages:this.messages},g("div",{slot:"content"},k))}renderPieChartRamp(a){return g("div",{innerHTML:`${a.preview?.outerHTML}`})}renderUnivariateAboveAndBelowRamp(a,n,c){let{sizeRampElement:s,colorRampElement:l}=nt(a,n);if(!s)return null;let o=he(s,"above",!0),u=he(s,"below",!0),_=12,b=ge(l,this.symbolUtils,{width:_,height:o,rampAlignment:"vertical",opacity:n,type:"above",effectList:c}),L=ge(l,this.symbolUtils,{width:_,height:u,rampAlignment:"vertical",opacity:n,type:"below",effectList:c}),k=De(s),R=s.infos.map(U=>U.label),P=R.map((U,M)=>M===0?g("div",{class:U?b?m.univariateAboveAndBelowLabel:m.rampLabel:""},U):M===2?g("div",null):null),x=R.length-1,z=Math.floor(R.length/2),A=R.map((U,M)=>M===z||M===x?g("div",{class:U?b?m.univariateAboveAndBelowLabel:m.rampLabel:""},U):null),$={display:"table-cell",verticalAlign:"middle"},D={marginTop:`${k}px`},J={height:`${o}px`},X={height:`${u}px`};return g("div",{key:"univariate-above-and-below-ramp-preview",style:He},g("div",{class:m.layerBody},s.infos.map((U,M)=>g("div",{class:`${m.layerRow} ${m.sizeRamp}`},g("div",{class:m.symbol,style:$,innerHTML:U?.preview?.outerHTML??""}),!b&&M%2===0?g("div",{class:m.layerInfo},R[M]):null))),b?g("div",{style:D,key:"color-ramp-preview"},g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},b)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:J},P))),g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},L)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:X},A)))):null)}renderUnivariateColorSizeRamp(a,n,c){let{sizeRampElement:s,colorRampElement:l}=st(a);if(!s)return null;let o=De(s),u=12,_=he(s,"full",!1),b=ge(l,this.symbolUtils,{width:u,height:_,rampAlignment:"vertical",opacity:n,type:"full",effectList:c}),L=s.infos.length-1,k=s.infos.map((z,A)=>A===0||A===L?g("div",{class:z.label?l?m.univariateAboveAndBelowLabel:m.rampLabel:""},z.label):null),R={display:"table-cell",verticalAlign:"middle"},P={marginTop:`${o}px`},x={height:`${_}px`};return g("div",{key:"univariate-above-and-below-ramp-preview",style:He},g("div",{class:m.layerBody},s.infos.map(z=>g("div",{class:`${m.layerRow} ${m.sizeRamp}`},g("div",{class:m.symbol,style:R,innerHTML:z?.preview?.outerHTML??""})))),g("div",{style:P,key:"color-ramp-preview"},g("div",{style:ue},g("div",{style:j},g("div",{class:m.rampContainer},b)),g("div",{style:j},g("div",{class:m.rampLabelsContainer,style:x},k)))))}renderLegendForRamp(a,n){let c=a.infos,s=a.type==="opacity-ramp",l=a.type==="heatmap-ramp",o=a.type==="stretch-ramp",u=a.preview,_=s?m.opacityRamp:"";u&&(u.classList.add(m.colorRamp),_&&u.classList.add(_)),n!=null&&u&&(u.style.opacity=n.toString());let b=c.map(R=>{let P;if(l){let x=this.messages[R.label];P=typeof x=="string"?x:R.label}else o?P="value"in R?this.getStretchStopLabel(R):R.label:P=R.label;return g("div",{class:R.label?m.rampLabel:""},P)}),L={width:`${ot}px`},k={height:u?.style?.height};return g("div",{class:m.layerRow},g("div",{class:m.symbolContainer,style:{...L}},g("div",{ref:R=>{R?.firstChild&&R?.firstChild?.remove(),R?.appendChild(u)},class:m.rampContainer})),g("div",{class:m.layerInfo},g("div",{class:m.rampLabelsContainer,style:{...k}},b)))}getStretchStopLabel(a){let n=this.messages[a.label];return a.label?`${n}: ${typeof a.value=="string"?a.value:this.intl.formatNumber(a.value,{style:"decimal",notation:a.value.toString().includes("e")?"scientific":"standard"})}`:""}renderLegendForElementInfo(a,n,c,s,l,o,u,_,b,L){if("infos"in a)return this.renderLegendForElement(a,n,c,o,u,!0,a);let k=null,R=!rt();if("preview"in a){let{outerHTML:W}=a.preview;k=g("div",{class:m.symbol,innerHTML:W})}else"src"in a&&(k=this.renderImage(a,n,R));if(!k)return null;let P="",x=s?` ${m.sizeRamp}`:"",z,A=ze(n),$=$e(A,L);if(E.data){let W=xe(A,n,a,$,_),Y=$?$?.nestedInfos:A,q=Pe(Y);z=A?.categories?.size===1?!W?.selected:q||W?.selected}let D="label"in a?a.label:null,J=$&&!("value"in a)?!1:b,X=B.get("compact"),U=this.getTitle(this.messages,D,!1)||"",M=$?l.title:D??n?.id;return J?g("button",{onClick:this.applyFilter(a,n,_,L),class:`${m.layerRow} ${m.interactiveLayerRow}${z?` ${m.infoSelected}`:""}`,title:X?`${U}`:void 0,"aria-pressed":z?"true":"false"},g("div",{class:`${m.symbolContainer}${P}${x}`},k),g("div",{class:`${m.layerInfo}${P}`},this.getTitle(this.messages,D,!1)||""),this.featureCount&&!X?g("instant-apps-interactive-legend-count",{class:K(this.el),categoryId:M,activeLayerInfo:o,legendvm:this.legendvm,messages:this.messages,selected:!!z,legendElement:l,infoIndex:_}):null):g("div",{class:m.layerRow},g("div",{class:`${m.symbolContainer}${P}${x}`},k),g("div",{class:`${m.layerInfo}${P}`},U))}renderImage(a,n,c){let{label:s,src:l,opacity:o}=a,u=c?` ${m.imageryLayerStretchedImage}`:"",_=c?"":` ${m.symbol}`,b={opacity:`${o??n.opacity}`};return g("img",{alt:this.getTitle(this.messages,s,!1),src:l,width:a.width,height:a.height,class:`$${u}${_}`,style:b})}getTitle(a,n,c){if(!n)return;if(typeof n=="string"||typeof n=="number")return n;if("value"in n||"unit"in n){let o=typeof a?.dotValue=="string"?a.dotValue:"";return this.intl.substitute(o,n)}if("colorName"in n||"bandName"in n){let{colorName:o,bandName:u}=n,_=a[o],b=typeof a[u]=="string"?a[u]:u;return`${_}: ${b}`}if("showCount"in n)return n.showCount?a.clusterCountTitle:null;let s=null;if(c){let o=n;s=o.ratioPercentTotal?"showRatioPercentTotal":o.ratioPercent?"showRatioPercent":o.ratio?"showRatio":n.normField?"showNormField":n.field?"showField":null}else if(this.isRendererTitle(c)){let o=n;s=o.normField?"showNormField":o.normByPct?"showNormPct":o.field?"showField":null}let l=s==="showField"?"{field}":typeof s=="string"?a[s]:"";return s?this.intl?.substitute(l,{field:n.field,normField:n.normField}):""}isRendererTitle(a){return!a}async setupWatchersAndListeners(){let a=this.legendvm?.view?.map?.allLayers?.filter(s=>s?.type==="feature"),n=[];for(let s of a)this.legendvm?.view&&n.push(this.legendvm?.view?.whenLayerView(s));let c=[];try{c=await Promise.all(n)}catch(s){console.error(s)}for(let s of c){let l=`fLayerViewScale-${s.layer.id}`;!this.handles?.has(l)&&s&&this.handles?.add(s.watch("visibleAtCurrentScale",()=>{this.createDataForLayer(s.layer).catch(o=>{console.error(o)})}),l)}a?.forEach(s=>{let l=`fLayer-${s?.id}`;this.handles?.has(l)||this.handles?.add(this.reactiveUtils?.watch(()=>s?.visible,()=>{this.createDataForLayer(s).catch(o=>{console.error(o)})}),l)}),this.handles?.add(this.reactiveUtils.when(()=>this.legendvm,()=>{this.reactiveUtils.watch(()=>this.legendvm?.view?.updating,()=>{this.calculatingFeatureCount||this.legendvm?.view?.updating&&(this.calculatingFeatureCount=!0,this.reactiveUtils.when(()=>!this.legendvm?.view?.updating,()=>{le(this.legendvm,E.data).then(s=>{B.set("data",{...E.data,...s}),this.calculatingFeatureCount=!1}).catch(s=>{console.error(s)})},{once:!0,initial:!0}))},{initial:!0})},{initial:!0,once:!0})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.activeLayerInfos,"change",s=>{re(this.legendvm,this.reactiveUtils).then(l=>{B.set("data",{...E.data,...l}),ce(this.el)}).then(()=>{this.handles?.add(this.reactiveUtils.on(()=>s.children,"change",()=>{re(this.legendvm,this.reactiveUtils).then(l=>{B.set("data",{...E.data,...l}),ce(this.el)}).catch(l=>{console.error(l)})}))}).catch(l=>{console.error(l)})})),this.handles?.add(this.reactiveUtils.on(()=>this.legendvm?.view?.map?.layers,"after-changes",()=>{le(this.legendvm,E.data).then(s=>{B.set("data",{...E.data,...s}),this.calculatingFeatureCount=!1}).catch(s=>{console.error(s)})}))}async createDataForLayer(a){let c=B.get("data")?.[a?.id],l=Ue(this.legendvm?.activeLayerInfos)?.find(o=>o?.layer?.id===a?.id);if(!c&&l){let o=await Ae(this.legendvm,l,this.reactiveUtils);if(fe({intLegendLayerData:o,layerId:a?.id}),this.featureCount){let u=await le(this.legendvm,E.data);B.set("data",{...E.data,...u})}}}applyFilter(a,n,c,s){return async()=>{let l={...E.data?.[n?.id]};s?await ve(l,a,c,this.filterMode,s):await ve(l,a,c,this.filterMode),fe({intLegendLayerData:l,layerId:n?.id})}}get el(){return Ee(this)}static get watchers(){return{filterMode:["handleFilterModeChange"]}}};dt.style=ct;export{dt as instant_apps_interactive_legend_classic};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import{a as l}from"./SOLDJVDR.js";import{D as o,E as c,G as r,I as n,c as s,d as e}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var h=s`/** @license
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as l}from"./YFG6Q4W4.js";import{D as o,E as c,G as r,I as n,c as s,d as e}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var h=s`/** @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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import{g as N}from"./4JGCEBGT.js";async function h(a,g,i){let e=g?.layer;if(!a)return e?.effect?e.effect:e?.featureEffect?i==="includedEffect"?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:null;let u=await N(),d=new u({includedEffect:a}).toJSON().includedEffect,r=d,p=e.effect,y=e.featureEffect,l=null;y?l=i==="includedEffect"?e.featureEffect?.includedEffect:e.featureEffect?.excludedEffect:l=p;let s=l?d:null;if(!s)return u.fromJSON({includedEffect:d}).includedEffect;let f=[...s];return r&&r.forEach(c=>{f.forEach(t=>{let{value:o}=t;if(o)o.forEach((E,S)=>{E.type===c.type?o[S]=c:!t.value.find(J=>J.type===r[0].type)&&(t.value=[...t.value,...r])});else{let E=!f.find(n=>n.type===t.type);!f.find(n=>n.type===c.type)&&(f=[...f,c]),E&&(f=[...f,t])}})}),u.fromJSON({includedEffect:f}).includedEffect}export{h as a};
3
+ v1.0.0-next.20250528.2 */
4
+ import{g as N}from"./CLZ42RFU.js";async function h(a,g,i){let e=g?.layer;if(!a)return e?.effect?e.effect:e?.featureEffect?i==="includedEffect"?e.featureEffect.includedEffect:e.featureEffect.excludedEffect:null;let u=await N(),d=new u({includedEffect:a}).toJSON().includedEffect,r=d,p=e.effect,y=e.featureEffect,l=null;y?l=i==="includedEffect"?e.featureEffect?.includedEffect:e.featureEffect?.excludedEffect:l=p;let s=l?d:null;if(!s)return u.fromJSON({includedEffect:d}).includedEffect;let f=[...s];return r&&r.forEach(c=>{f.forEach(t=>{let{value:o}=t;if(o)o.forEach((E,S)=>{E.type===c.type?o[S]=c:!t.value.find(J=>J.type===r[0].type)&&(t.value=[...t.value,...r])});else{let E=!f.find(n=>n.type===t.type);!f.find(n=>n.type===c.type)&&(f=[...f,c]),E&&(f=[...f,t])}})}),u.fromJSON({includedEffect:f}).includedEffect}export{h 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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import{a as m,b as o,c as T,d as E}from"./SXHBKU6W.js";import{a as t,b as e}from"./75AICF3J.js";import{a as n,c as i,e as a,f as r,i as s,k as p}from"./ZSYHLMKN.js";import"./6XZWFS7Y.js";var l=()=>({$async:!0,required:["name","startDate","endDate","timeZone"],properties:{name:n,description:{type:"string"},_thumbnail:p,attendanceType:{type:"string",enum:[t.InPerson,t.Online,t.Both],default:t.InPerson},startDate:{type:"string",format:"date"},endDate:{type:"string",format:"date",formatMinimum:{$data:"1/startDate"}},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1},timeZone:{type:"string"},inPersonCapacity:{type:"number"},inPersonCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},location:Object.assign(Object.assign({},s),{allOf:[{if:{properties:{type:{enum:["custom","org"]}}},then:{required:["name"]}}]}),onlineUrl:{type:"string"},onlineDetails:{type:"string"},onlineCapacity:{type:"number"},onlineCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},summary:i,tags:a,categories:r},allOf:[o,m,T,E]});export{l as buildSchema};
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as m,b as o,c as T,d as E}from"./RVOILI7H.js";import{a as t,b as e}from"./AH5AIEIN.js";import{a as n,c as i,e as a,f as r,i as s,k as p}from"./A3JKO4I4.js";import"./B4HONVWZ.js";var l=()=>({$async:!0,required:["name","startDate","endDate","timeZone"],properties:{name:n,description:{type:"string"},_thumbnail:p,attendanceType:{type:"string",enum:[t.InPerson,t.Online,t.Both],default:t.InPerson},startDate:{type:"string",format:"date"},endDate:{type:"string",format:"date",formatMinimum:{$data:"1/startDate"}},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1},timeZone:{type:"string"},inPersonCapacity:{type:"number"},inPersonCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},location:Object.assign(Object.assign({},s),{allOf:[{if:{properties:{type:{enum:["custom","org"]}}},then:{required:["name"]}}]}),onlineUrl:{type:"string"},onlineDetails:{type:"string"},onlineCapacity:{type:"number"},onlineCapacityType:{type:"string",enum:[e.Unlimited,e.Fixed],default:e.Unlimited},summary:i,tags:a,categories:r},allOf:[o,m,T,E]});export{l as buildSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import{e as l}from"./PYJIK3CR.js";import{a as o,f as r,z as c}from"./4JGCEBGT.js";import"./52W5VWDL.js";import{a as p,c as t,d as g,e as d}from"./VFEXPJTW.js";import"./6XZWFS7Y.js";var h=':host{--instant-apps-sign-in-indicator-color:#007ac2;display:block;box-shadow:none !important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center}:host .instant-apps-sign-in__container calcite-dropdown,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2:rgba(0, 0, 0, 0.04);--calcite-color-foreground-3:rgba(0, 0, 0, 0.04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-dropdown[scale=m] calcite-dropdown-group{min-width:140px}:host .instant-apps-sign-in__container calcite-dropdown[scale=s] calcite-dropdown-group{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:0.7;transition:0.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:rgba(255, 255, 255, 0.8);color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press:var(--instant-apps-landing-page-entry-button-color);min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(0.9)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}',u=h,a={base:"instant-apps-sign-in__container",SignInBtn:"instant-apps-sign-in__sign-in-btn",buttonContainer:"instant-apps-sign-in__entry-button-container",entryButton:"instant-apps-sign-in__entry-button",indicator:"instant-apps-sign-in__indicator"},m=class{constructor(n){p(this,n),this.type="navigation",this.portal=void 0,this.oauthappid=void 0,this.openInPopup=!1,this.landingPage=!1,this.showIndicator=!0,this.closeLandingPage=void 0,this.signInDropdownItems=void 0,this.ready=!1,this.isSignedIn=!1,this.user=void 0,this.messages=void 0}async watchPortal(){await this.initSignIn()}async watchOauthappid(){await this.initSignIn()}async componentWillLoad(){l(this),await this.initSignIn()}render(){let n=this.ready?this.renderContent():null;return t(g,{key:"da0c1f1bb7efb0c0bd243612ab6212b61d6e9d2e"},n)}renderContent(){return this.type==="landingPage"?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return t("div",{class:a.base},this.isSignedIn?this.renderSignInDropdown():this.renderSignInButton())}renderSignInDropdown(){let n=this.type==="navigation"?"m":"s",i=this.showIndicator?a.indicator:"",s=this.user?.id??this.user?.sourceJSON?.id;return t("calcite-dropdown",{placement:"bottom-end",scale:n},this.type==="navigation"?t("calcite-navigation-user",{class:i,slot:"trigger",thumbnail:this.user?.thumbnailUrl??"","full-name":this.user?.fullName,username:this.user?.username,"user-id":s,textDisabled:!0}):t("button",{slot:"trigger"},t("calcite-avatar",{class:i,thumbnail:this.user?.thumbnailUrl??"","full-name":this.user?.fullName,username:this.user?.username,"user-id":s})),t("slot",{name:"sign-in-dropdown-top"}),t("calcite-dropdown-group",{"selection-mode":"none"},this.signInDropdownItems?.map(e=>t("calcite-dropdown-item",{onClick:e.onClick},e.label)),t("calcite-dropdown-item",{onClick:this.signOut.bind(this)},this.messages?.signOut)))}renderSignInButton(){let n=this.type==="navigation"?"transparent":"solid",i=this.type==="navigation"?a.SignInBtn:"";return t("calcite-button",{class:i,onClick:this.signIn.bind(this),scale:"s","icon-start":"sign-in",appearance:n},this.messages?.signIn)}renderLandingPageSignIn(){return t("div",{class:a.buttonContainer},t("calcite-button",{class:a.entryButton,scale:"l",onClick:this.landingPageSignIn.bind(this)},this.messages?.signIn),t("calcite-button",{class:a.entryButton,scale:"l",appearance:"outline-fill",onClick:this.guestOnClick.bind(this)},this.messages?.continueAsGuest))}async initSignIn(){if(this.portal==null||this.oauthappid==null)return;let[n,i]=await Promise.all([o(),c()]);this.idManager=n,this.info=await r({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,this.isSignedIn&&(await i.whenOnce(()=>this.portal.user),this.portal.user&&(this.user=this.portal.user))}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){this.portal.credential?.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;let n=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn(),this.closeLandingPage!=null&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():this.closeLandingPage!=null&&this.closeLandingPage()}async checkSignInStatus(){try{let n=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=n,!0}catch{return this.portal.credential=null,!1}}setSignInLocalStorage(){let n=new Date,i=2e3;localStorage.setItem("signing-in",n.getTime().toString()),setTimeout(()=>{localStorage.removeItem("signing-in")},i)}get el(){return d(this)}static get watchers(){return{portal:["watchPortal"],oauthappid:["watchOauthappid"]}}};m.style=u;export{m as instant_apps_sign_in};
3
+ v1.0.0-next.20250528.2 */
4
+ import{e as l}from"./6QWS7JEN.js";import{a as o,f as r,z as c}from"./CLZ42RFU.js";import"./6CPKRUI3.js";import{a as p,c as t,d as g,e as d}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var h=':host{--instant-apps-sign-in-indicator-color:#007ac2;display:block;box-shadow:none !important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center}:host .instant-apps-sign-in__container calcite-dropdown,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2:rgba(0, 0, 0, 0.04);--calcite-color-foreground-3:rgba(0, 0, 0, 0.04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-dropdown[scale=m] calcite-dropdown-group{min-width:140px}:host .instant-apps-sign-in__container calcite-dropdown[scale=s] calcite-dropdown-group{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:0.7;transition:0.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:rgba(255, 255, 255, 0.8);color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press:var(--instant-apps-landing-page-entry-button-color);min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(0.9)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}',u=h,a={base:"instant-apps-sign-in__container",SignInBtn:"instant-apps-sign-in__sign-in-btn",buttonContainer:"instant-apps-sign-in__entry-button-container",entryButton:"instant-apps-sign-in__entry-button",indicator:"instant-apps-sign-in__indicator"},m=class{constructor(n){p(this,n),this.type="navigation",this.portal=void 0,this.oauthappid=void 0,this.openInPopup=!1,this.landingPage=!1,this.showIndicator=!0,this.closeLandingPage=void 0,this.signInDropdownItems=void 0,this.ready=!1,this.isSignedIn=!1,this.user=void 0,this.messages=void 0}async watchPortal(){await this.initSignIn()}async watchOauthappid(){await this.initSignIn()}async componentWillLoad(){l(this),await this.initSignIn()}render(){let n=this.ready?this.renderContent():null;return t(g,{key:"da0c1f1bb7efb0c0bd243612ab6212b61d6e9d2e"},n)}renderContent(){return this.type==="landingPage"?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return t("div",{class:a.base},this.isSignedIn?this.renderSignInDropdown():this.renderSignInButton())}renderSignInDropdown(){let n=this.type==="navigation"?"m":"s",i=this.showIndicator?a.indicator:"",s=this.user?.id??this.user?.sourceJSON?.id;return t("calcite-dropdown",{placement:"bottom-end",scale:n},this.type==="navigation"?t("calcite-navigation-user",{class:i,slot:"trigger",thumbnail:this.user?.thumbnailUrl??"","full-name":this.user?.fullName,username:this.user?.username,"user-id":s,textDisabled:!0}):t("button",{slot:"trigger"},t("calcite-avatar",{class:i,thumbnail:this.user?.thumbnailUrl??"","full-name":this.user?.fullName,username:this.user?.username,"user-id":s})),t("slot",{name:"sign-in-dropdown-top"}),t("calcite-dropdown-group",{"selection-mode":"none"},this.signInDropdownItems?.map(e=>t("calcite-dropdown-item",{onClick:e.onClick},e.label)),t("calcite-dropdown-item",{onClick:this.signOut.bind(this)},this.messages?.signOut)))}renderSignInButton(){let n=this.type==="navigation"?"transparent":"solid",i=this.type==="navigation"?a.SignInBtn:"";return t("calcite-button",{class:i,onClick:this.signIn.bind(this),scale:"s","icon-start":"sign-in",appearance:n},this.messages?.signIn)}renderLandingPageSignIn(){return t("div",{class:a.buttonContainer},t("calcite-button",{class:a.entryButton,scale:"l",onClick:this.landingPageSignIn.bind(this)},this.messages?.signIn),t("calcite-button",{class:a.entryButton,scale:"l",appearance:"outline-fill",onClick:this.guestOnClick.bind(this)},this.messages?.continueAsGuest))}async initSignIn(){if(this.portal==null||this.oauthappid==null)return;let[n,i]=await Promise.all([o(),c()]);this.idManager=n,this.info=await r({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup}),this.idManager.registerOAuthInfos([this.info]),this.isSignedIn=await this.checkSignInStatus(),this.ready=!0,this.isSignedIn&&(await i.whenOnce(()=>this.portal.user),this.portal.user&&(this.user=this.portal.user))}async signIn(){this.setSignInLocalStorage(),await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:!1}),await this.checkSignInStatus()}signOut(){this.portal.credential?.destroy(),this.idManager.destroyCredentials(),this.portal.authMode="anonymous",this.portal.credential=null;let n=window.location.href;this.setSignInLocalStorage(),window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn(),this.closeLandingPage!=null&&this.closeLandingPage()}guestOnClick(){this.isSignedIn?this.signOut():this.closeLandingPage!=null&&this.closeLandingPage()}async checkSignInStatus(){try{let n=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);return this.portal.credential=n,!0}catch{return this.portal.credential=null,!1}}setSignInLocalStorage(){let n=new Date,i=2e3;localStorage.setItem("signing-in",n.getTime().toString()),setTimeout(()=>{localStorage.removeItem("signing-in")},i)}get el(){return d(this)}static get watchers(){return{portal:["watchPortal"],oauthappid:["watchOauthappid"]}}};m.style=u;export{m as instant_apps_sign_in};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import{b as m}from"./GKMXDGZF.js";import{a as f}from"./TM4ZSPAB.js";var i=class extends Error{constructor(t,e,s){super(t),this.status=s,this.url=e}};var c=class extends i{constructor(t,e,s,n){super(t,e,s),this.error=n}};function u(r){let{token:t,authentication:e}=r,s=()=>Promise.resolve(t);return e&&(s=e.getToken.bind(e,e.portal)),s()}function h(r,t,e,s){var n;let p=r,o=new Headers(t.headers);o.append("Content-Type","application/json"),s&&o.append("Authorization",`Bearer ${s}`);let d={headers:o,method:t.httpMethod||"GET",mode:t.mode,cache:t.cache,credentials:t.credentials},x=f({host:t.hubApiUrl||"https://hub.arcgis.com",path:`/api/discussions/${e}`});if(t.data)if(t.httpMethod==="GET"){let a=new URLSearchParams(t.data).toString();p+=`?${a}`}else d.body=JSON.stringify(t.data);let g=["/posts","/posts/search"].includes(r)&&(((n=t.data)===null||n===void 0?void 0:n.f)===m.CSV||o.get("Accept")==="text/csv"),l=[x.replace(/\/$/,""),p.replace(/^\//,"")].join("/");return fetch(l,d).then(a=>{if(a.ok)return g?a.text():a.json();{let{statusText:b,status:q}=a;return a.json().then(y=>{throw new c(b,l,q,JSON.stringify(y.message))})}})}function w(r,t){return u(t).then(e=>h(r,t,"v1",e))}function P(r,t){return u(t).then(e=>h(r,t,"v2",e))}export{w as a,P as b};
3
+ v1.0.0-next.20250528.2 */
4
+ import{b as m}from"./XA34OFHO.js";import{a as f}from"./Y3MVHWDO.js";var i=class extends Error{constructor(t,e,s){super(t),this.status=s,this.url=e}};var c=class extends i{constructor(t,e,s,n){super(t,e,s),this.error=n}};function u(r){let{token:t,authentication:e}=r,s=()=>Promise.resolve(t);return e&&(s=e.getToken.bind(e,e.portal)),s()}function h(r,t,e,s){var n;let p=r,o=new Headers(t.headers);o.append("Content-Type","application/json"),s&&o.append("Authorization",`Bearer ${s}`);let d={headers:o,method:t.httpMethod||"GET",mode:t.mode,cache:t.cache,credentials:t.credentials},x=f({host:t.hubApiUrl||"https://hub.arcgis.com",path:`/api/discussions/${e}`});if(t.data)if(t.httpMethod==="GET"){let a=new URLSearchParams(t.data).toString();p+=`?${a}`}else d.body=JSON.stringify(t.data);let g=["/posts","/posts/search"].includes(r)&&(((n=t.data)===null||n===void 0?void 0:n.f)===m.CSV||o.get("Accept")==="text/csv"),l=[x.replace(/\/$/,""),p.replace(/^\//,"")].join("/");return fetch(l,d).then(a=>{if(a.ok)return g?a.text():a.json();{let{statusText:b,status:q}=a;return a.json().then(y=>{throw new c(b,l,q,JSON.stringify(y.message))})}})}function w(r,t){return u(t).then(e=>h(r,t,"v1",e))}function P(r,t){return u(t).then(e=>h(r,t,"v2",e))}export{w as a,P as b};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import{a as r}from"./FII3CMHX.js";import"./F7J5AVP6.js";import{c as n}from"./M7IGOHUD.js";import"./T33NVZXY.js";import"./UD7F6DCG.js";import"./AAQIWO65.js";import"./D3FZEWBP.js";import"./HITN2DRN.js";import{b as i}from"./CH65TEDK.js";import{a as f}from"./SOLDJVDR.js";import{D as u,E as p,F as m,I as _,c as h,d as a,g as o}from"./Q5UREG2V.js";import"./6XZWFS7Y.js";var b=h`/** @license
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as r}from"./FCHOLYNH.js";import"./2TF5G4JI.js";import{c as n}from"./HJJD6V2O.js";import"./XN5WML6J.js";import"./FPWLAJBO.js";import"./5BKTEPSJ.js";import"./UZVRS2XU.js";import"./3XJKMZHA.js";import{b as i}from"./LBJE5BZD.js";import{a as f}from"./YFG6Q4W4.js";import{D as u,E as p,F as m,I as _,c as h,d as a,g as o}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var b=h`/** @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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import"./6XZWFS7Y.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
3
+ v1.0.0-next.20250528.2 */
4
+ import"./B4HONVWZ.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t 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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
3
+ v1.0.0-next.20250528.2 */
4
4
  var e=["hub:user:settings"],t={type:"object",properties:{settings:{type:"object",properties:{preview:{type:"object",properties:{workspace:{type:"boolean",default:!1}}}}},hubOrgSettings:{type:"object",properties:{showInformationalBanner:{type:"boolean",default:!1},enableTermsAndConditions:{type:"boolean",default:!1},termsAndConditions:{type:"string",default:""},enableSignupText:{type:"boolean",default:!1},signupText:{type:"string",default:""}}}}};export{e as a,t as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
3
+ v1.0.0-next.20250528.2 */
4
4
  var R=(e=>(e.H="H",e.M="M",e.L="L",e))(R||{}),L=(e=>(e[e.ALLIGATOR_CRACKING=1]="ALLIGATOR_CRACKING",e[e.BLEEDING=2]="BLEEDING",e[e.BLOCK_CRACKING=3]="BLOCK_CRACKING",e[e.BUMPS_SAGS=4]="BUMPS_SAGS",e[e.CORRUGATION=5]="CORRUGATION",e[e.DEPRESSION=6]="DEPRESSION",e[e.EDGE_CRACKING=7]="EDGE_CRACKING",e[e.REFLECTION_CRACKING=8]="REFLECTION_CRACKING",e[e.LANE_SHOULDER_DROP_OFF=9]="LANE_SHOULDER_DROP_OFF",e[e.LONG_TRANS_CRACKING=10]="LONG_TRANS_CRACKING",e[e.PATCHING_UTIL_CUT_PATCHING=11]="PATCHING_UTIL_CUT_PATCHING",e[e.POLISHED_AGGREGATE=12]="POLISHED_AGGREGATE",e[e.POTHOLES=13]="POTHOLES",e[e.RAILROAD_CROSSING=14]="RAILROAD_CROSSING",e[e.RUTTING=15]="RUTTING",e[e.SHOVING=16]="SHOVING",e[e.SLIPPAGE_CRACKING=17]="SLIPPAGE_CRACKING",e[e.SWELL=18]="SWELL",e[e.RAVELING=19]="RAVELING",e[e.WEATHERING=20]="WEATHERING",e))(L||{});function S(e,o,u,t=!1){let r=Number.parseInt(e),n=R[o],l=Number.parseFloat(u.toString());if(Number.isNaN(l)||l===0)return"";let i=t===!0||t.toString().toLowerCase()==="true",s;switch(r){case 1:s=k;break;case 2:s=$;break;case 3:s=D;break;case 4:s=m;break;case 5:s=P;break;case 6:s=K;break;case 7:s=F;break;case 8:s=V;break;case 9:s=y;break;case 10:s=U;break;case 11:s=w;break;case 12:s=x;break;case 13:s=B;break;case 14:s=j;break;case 15:s=W;break;case 16:s=q;break;case 17:s=z;break;case 18:s=J;break;case 19:s=Q;break;case 20:s=X;break}if(s){let f=s(n,Math.log10(l)),g=p(f),d=`${e}|${o}|${g}|${l}`;return i&&(console.log(`Deduct value: ${f}`),console.log(`Rounded deduct value: ${g}`),console.log(`Formatted devduct value (type|severity|roundedDV|density): ${d}`)),d}else return""}function I(e,o=!1){let u=e.indexOf("|")>-1?h(e,o):e.split(",").map(n=>Number.parseFloat(n)),t=o===!0||o.toString().toLowerCase()==="true",r=0;if(u=u.filter(n=>Math.abs(n)>0),u.length>0){let n=Y(u,t);n!==void 0&&(r=100-p(n))}return r}function h(e,o){let u={},t=v(e),r=Object.keys(t).filter(n=>Object.keys(t[n]).length>1);return r.length>0&&r.forEach(n=>{let l,i,s,f,g,d;if(Object.keys(t[n]).forEach(c=>{c==="H"?(l=t[n][c].deductValue,f=t[n][c].density):c==="M"?(i=t[n][c].deductValue,g=t[n][c].density):(s=t[n][c].deductValue,d=t[n][c].density)}),l!==void 0&&i!==void 0&&s!==void 0&&f!==void 0&&g!==void 0&&d!==void 0){let c=(f&&g&&d?M:_)(n,l,i,s,f,g,d,o);c&&(u[n]=c,o&&(console.log("updates"),console.log(u)))}}),T(e,u)}function M(e,o,u,t,r,n,l,i){let s=I(`${o},${u},${t}`,!0);i&&(console.log("pci1"),console.log(s));let f=l+n,g=N(e,"M",f.toString(),o,i),d=n+r,c=N(e,"H",d.toString(),t,i),b=l+r,H=N(e,"H",b.toString(),u,i),O=l+n+r,A=N(e,"H",O.toString(),0,i);i&&(console.log("low med pci2"),console.log(g.pci),console.log("med high pci2"),console.log(c.pci),console.log("low high pci2"),console.log(H.pci),console.log("low med high pci2"),console.log(A.pci));let E=[g,c,H,A].reduce((C,G)=>G.pci>s&&(!C||G.pci>C.pci)?G:C,void 0);return E?E.dv:void 0}function _(e,o,u,t,r,n,l,i){let s=I(`${o||u},${t||u}`,!0);i&&(console.log("pci1"),console.log(s));let f=r||n,g=f+(l||n),d=N(e,f===r?"H":"M",g.toString(),0,i);return i&&(console.log("pci2"),console.log(d.pci)),d.pci>s?d.dv:void 0}function N(e,o,u,t,r){let n=S(e,o,u).split("|"),l=Number.parseFloat(n[2]);return{pci:I(`${n[2]},${t}`,r),dv:t?[l,t]:[l]}}function v(e){return e.split(",").reduce((o,u)=>{let t=u.split("|"),r=t[0],n=t[1],l=Number.parseFloat(t[2]),i=Number.parseFloat(t[3]);return o[r]||(o[r]={}),o[r][n]={deductValue:l,density:i},o},{})}function T(e,o){let u=[];return e.split(",").reduce((t,r)=>{let n=r.split("|"),l=n[0],i=Number.parseFloat(n[2]);return Object.keys(o).length>0&&o[l]?(u.push(l),t.push(...o[l]),delete o[l]):u.indexOf(l)<0&&t.push(i),t},[])}function a(e,o){return o.reduce((u,t,r)=>u+=r===0?t:r===1?t*e:t*Math.pow(e,r),0)}function p(e){return Math.round(e*10)/10}function k(e,o){return a(o,e==="H"?[30.71,29.22,9.407,-6.981,-2.158,3.047,-.6578]:e==="M"?[21.62,21.32,5.194,-1.343,.2341]:[11.31,16.05,7.572,-1.471])}function $(e,o){return a(o,e==="H"?[5.343,6.927,7.926,4.265,-.7582]:e==="M"?[2.38,5.483,4.128,.8366,.03659,.1052]:[.01391,.5079,1.576,1.191,.1329,.03823])}function D(e,o){return a(o,e==="H"?[7.926,11.93,8.826,3.432,-1.382]:e==="M"?[2.587,9.142,6.647,-.455,-.2439,.1107]:[.646,4.002,4.2,.4987,-.06269])}function m(e,o){return a(o,e==="H"?[52.77,38.07,8.964,-.4148,-1.589,2.478]:e==="M"?[24.66,27.86,15.73,3.295,-5.27,5.921,7.959]:[8.768,13.79,7.064,7.455,6.041,-1.739,-1.371])}function P(e,o){return a(o,e==="H"?[34.21,21.59,1.863,6.141,-.687,-1.885,.4916]:e==="M"?[15.78,19.69,6.276,-2.124,.5868,.06045]:[2.173,5.609,5.976,-.7348,-.2172,1.494,-.5659])}function K(e,o){return a(o,e==="H"?[17.84,5.904,9.406,18.28,-2.753,-7.798,2.402]:e==="M"?[8.471,3.171,10.25,12.2,-.9687,-4.601,1.079]:[4.836,-.7572,4.786,12.39,1.233,-4.871,.9749])}function F(e,o){return a(o,e==="H"?[14.99,13.5,10.62,5.15,-1.792,-2.826]:e==="M"?[9.177,10.26,5.704,-.6812,-.8588,.2123]:[3.049,4.802,4.058,-.3556,-1.55,1.02])}function V(e,o){return a(o,e==="H"?[14.99,17.21,27.63,31.13,-20.94,-18.82,9.985]:e==="M"?[9.9193,10.88,8.073,14.8,-3.792,-9.583,3.651]:[2.356,6.664,3.717,-1.393,1.94,1.785,-.9707])}function y(e,o){return a(o,e==="H"?[7.549,6.907,7.284,9.304,2.064]:e==="M"?[4.02,1.744,14.36,15.92,-40.22,23.6]:[2.004,1.065,9.706,11.75,-27.52,15.04])}function U(e,o){return a(o,e==="H"?[19.56,24.06,12.12,9.336,1.532,-4.396]:e==="M"?[9.751,15.53,4.719,1.369,1.206,-1.164]:[2.347,9.074,8.424,-1.338,-1.873,1.144])}function w(e,o){return a(o,e==="H"?[20.15,16.55,5.415,10.77,3.257,-4.502]:e==="M"?[10.28,12.71,6.174,1.928,.6923,-.4673]:[2.523,6.892,5.702,2.407,.2185,-.8722])}function x(e,o){return a(o,e==="H"||e==="M"||e==="L"?[3.417,-26.82,71.15,-76.22,38.52,-6.904]:[])}function B(e,o){return a(o,e==="H"?[110.7,60.66,2.378,-2.664]:e==="M"?[90.47,60.41,-.1123,-4.746]:[58.19,40.53,2.884,-1.443,.1195])}function j(e,o){return a(o,e==="H"?[20,38.64,-62.82,193.6,-162.7,41.22]:e==="M"?[6.994,23.47,-52.3,167.3,-143.6,37.64]:[1.998,-.7488,13.8,-.7917,-1.981])}function W(e,o){return a(o,e==="H"?[27.61,25.19,8.557,1.65,-2.203]:e==="M"?[18.47,20.77,6.617,-1.13,-2.286]:[8.833,14.84,3.129,.1451,2.438,-1.279])}function q(e,o){return a(o,e==="H"?[18.7,20.17,10.3,4.694,1.331,-2.61]:e==="M"?[10.39,14.78,5.488,4.001,3.23,-2.387]:[4.002,10.66,6.332,-.5226,-.1923])}function z(e,o){return a(o,e==="H"?[19.73,32.21,25.87,-2.871,-10.55,1.496,.7393]:e==="M"?[11.38,18.55,18.38,1.628,-7.596,.5841,.5946]:[5.144,12.95,11.95,-.833,-2.995,1.325,-.2113])}function J(e,o){return a(o,e==="H"?[34,16.84,-23.09,41.17,-14.84]:e==="M"?[12,15.67,20.59,-28.33,21,-5.508]:[1.995,11.9,-12.83,16.74,-5.361])}function Q(e,o){return a(o,e==="H"?[16.77,10.67,5.758,12.9,-.0633,-5.659,1.48]:e==="M"?[8.512,5.106,1.63,3.469,1.028,-1.211,.1938]:[])}function X(e,o){return a(o,e==="H"?[3.673,3.349,2.598,-1.233,2.754,2.434,-1.485]:e==="M"?[1.12,.9769,.93,-.5955,1.041,1.111,-.614]:[-.0386,-.0736,.834,1.63,-.0287,-.639,.1515])}function Y(e,o){let u,t=e.filter(r=>r>2);if(t.length<=1)u=t.reduce((r,n)=>(r+=n,r),0),o&&(console.log("If none or only one individual deduct value is greater"),console.log("than two, the total value is used in place of the maximum CD"),console.log(`Max CDV: ${u}`));else{let r=e.sort((i,s)=>s-i),n=r[0],l=1+9/98*(100-n);if(o&&(console.log(`Deduct values sorted in descending order: ${r}`),console.log(`Highest deduct value: ${n}`),console.log(`Allowable number of deducts including fractions: ${l}`)),l<=10){let i=Z(r,l);o&&console.log(`Reduce deduct values to the m largest including the fractional part: ${i}`);let s=e1(i,o);u=Math.max(...s),o&&console.log(`Max CDV: ${u}`)}else o&&console.log("Allowable number of deducts including fractions (must be less than or equal to ten)")}return u}function Z(e,o){let u=o-Math.floor(o);return e.length<o?e:e.reduce((t,r,n)=>(n+1<o?t.push(r):u>0&&t.push(p(r*u)),t),[])}function e1(e,o){let u=e.length,t=[];for(;u>=1;)o&&console.log(`vals: ${e}`),t.push(o1(e,o)),u-=1,e.splice(u,1,2);return t}function o1(e,o){let u=e.reduce((r,n)=>r+=n,0),t=e.reduce((r,n)=>n>2?r+1:r,0);return t1(u,t,o)}function t1(e,o,u){let t=a(e,{7:[-9.482,.6045,3563e-7,-5448e-9],6:[-8.165,.5724,4266e-7,-4254e-9],5:[-7.932,.6091,3464e-7,-4265e-9],4:[-6.78,.6301,7376e-7,-6357e-9],3:[-5.015,.7546,-43e-5,-3075e-9],2:[-1.668,.7992,-3013e-7,-5214e-9],1:[1651e-18,1,-4249e-21,1149e-22]}[o>=7?7:o]);return u&&(console.log(`totalDV: ${e}`),console.log(`q: ${o}`),console.log(`CDV: ${t}`)),t}export{R as a,L as b,S as c,I as d};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250528 */
4
- import{a as d}from"./BPPOS7VC.js";import{e as h}from"./PYJIK3CR.js";import{c as l}from"./4JGCEBGT.js";import"./52W5VWDL.js";import{a as v,c as a,d as m,e as u}from"./VFEXPJTW.js";import"./6XZWFS7Y.js";var p={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},f=new Map;Object.keys(p).forEach(t=>{f.set(t,`<svg viewBox="0 0 32 32" width="32" height="32" fill="${p[t].fill}"><path d="${p[t].path}"/></svg>`)});function o(t){return f.get(t)||""}var _=":host{display:block;--instant-apps-create-action-background:var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-create-action-background-press:var(--calcite-color-foreground-3);--instant-apps-create-action-height:100%;--instant-apps-create-action-width:fit-content;--instant-apps-create-action-icon-color:var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-create-background:var(--calcite-color-foreground-1);--instant-apps-create-text-color:var(--calcite-color-text-1);--instant-apps-create-popover-width:450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1:var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1:var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 0.5rem 0;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:fit-content;margin-bottom:0.5rem;cursor:pointer;--calcite-color-text-link:var(--calcite-color-text-1);align-items:stretch;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.instant-apps-create__option:first-of-type{margin-top:0.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:0.75rem;color:var(--calcite-color-text-2);padding:0.75rem 0 0 0.75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:0.25rem;color:rgb(126, 126, 126);--tw-translate-x:0px;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x:0.5rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}",A=_,i={baseDark:"instant-apps-create calcite-mode-dark",baseLight:"instant-apps-create calcite-mode-light",inlineContainer:"instant-apps-create__inline-container",popoverContainer:"instant-apps-create__popover-container",hidden:"instant-apps-create__visually-hidden",header:"instant-apps-create__header",options:"instant-apps-create__options",option:"instant-apps-create__option",optionIcon:"instant-apps-create__option-icon",optionText:"instant-apps-create__option-text",optionTextWrapper:"instant-apps-create__option-text-wrapper",optionTitle:"instant-apps-create__option-title",optionSubtitle:"instant-apps-create__option-subtitle",optionLink:"instant-apps-create__option-link"},y=class{constructor(t){v(this,t),this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.content=void 0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"],this.portal=void 0,this.baseClass=i.baseLight,this.messages=void 0,this.CreateOptionsLookup=void 0}contentChanged(){this.CreateOptionsLookup&&Object.keys(this.CreateOptionsLookup).forEach(t=>{this.CreateOptionsLookup[t].href=this.hrefLookup(t)})}async componentWillLoad(){return this.baseClass=d(this.el)==="dark"?i.baseDark:i.baseLight,await this.initializeModules(),await h(this).then(()=>{this.initializePredefinedOptions()})}disconnectedCallback(){this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel();return a(m,{key:"662bf8aee21aafd15b22d1c64f63e242229c932b"},a("div",{key:"51f0a144f417a0c4fda1a8db71a7d67472e6b7fb",class:this.baseClass},t))}async initializeModules(){return this.handles=await l(),await Promise.resolve()}initializePredefinedOptions(){let{instantApps:t,instantAppsDesc:e,mapViewer:n,mapViewerDesc:s,arcgisStoryMaps:r,storyMapsDesc:c,experienceBuilder:g,experienceBuilderDesc:w,dashboards:b,dashboardsDesc:x}=this.messages;this.CreateOptionsLookup={"instant-apps":{title:t,subtitle:e,img:o("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:n,subtitle:s,img:o("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:r,subtitle:c,img:o("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:g,subtitle:w,img:o("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:b,subtitle:x,img:o("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){let e=this.getBaseUrl(this.portal),n=this._getEnvironment(e),s=this.contentHref();switch(t){case"instant-apps":return`${e}/apps/instantgallery/index.html?${s}`;case"dashboards":return this.content!=null&&"portalItem"in this.content?`${e}/apps/dashboards/new#id=${this.content?.portalItem?.id}`:`${e}/apps/dashboards/new`;case"map-viewer":return`${e}/apps/mapviewer/index.html?${s}`;case"story-maps":return`https://storymaps${n==="prod"?"":n}.arcgis.com/stories/new?${s}`;case"experience-builder":return`https://experience${n==="prod"?"":n}.arcgis.com/builder/page/template/?${s}`}return""}contentHref(){return this?.content?.portalItem?.type==="Web Map"?`webmap=${this.content?.portalItem?.id}`:this?.content?.portalItem?.type==="Web Scene"?`webscene=${this.content?.portalItem?.id}`:typeof this?.content?.fetchMembers=="function"?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";let{customBaseUrl:e,portalHostname:n,urlKey:s}=t,{protocol:r}=window.location,c=s?`${s}.${e}`:n;return`${r}//${c}`}_getEnvironment(t){let e="";try{e=new URL(t)?.hostname}catch{}return e?.includes("arcgis.com")?e.includes("devext")&&"dev"||e.includes("qaext")&&"qa"||"prod":"dev"}renderPopover(){let t=this.renderPanel();return[a("calcite-popover",{referenceElement:"create-popover-btn",overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:e=>this.popoverEl=e,label:this.messages?.createLabel},t),a("calcite-action",{id:"create-popover-btn",alignment:"center",icon:this.popoverIcon,title:this.messages?.create,text:this.messages?.create})]}renderPanel(){let t=this.showHeader?this.renderHeader():null,e=this.renderOptions(),n=this.mode==="inline"?i.inlineContainer:i.popoverContainer;return a("div",{class:n},t,e)}renderHeader(){let{create:t,createSubheading:e}=this.messages;return a("div",{class:i.header},a("h3",null,t),a("p",null,e))}renderOptions(){return a("nav",null,this.options.map(t=>this.renderOption(t)))}renderOption(t){if(typeof t=="string"&&(t=this.CreateOptionsLookup?.[t]),t==null)return a("div",null);let{title:e,subtitle:n,img:s,href:r}=t;return a("a",{class:i.option,href:r,target:"_blank"},a("span",{class:i.optionIcon,innerHTML:s}),a("span",{class:i.optionText},a("span",{class:i.optionTextWrapper},a("h3",{class:i.optionTitle},e),a("calcite-icon",{scale:"s",icon:"launch"})),a("p",{class:i.optionSubtitle},n)))}get el(){return u(this)}static get watchers(){return{content:["contentChanged"]}}};y.style=A;export{y as instant_apps_create};
3
+ v1.0.0-next.20250528.2 */
4
+ import{a as d}from"./IUBGSA3I.js";import{e as h}from"./6QWS7JEN.js";import{c as l}from"./CLZ42RFU.js";import"./6CPKRUI3.js";import{a as v,c as a,d as m,e as u}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var p={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}},f=new Map;Object.keys(p).forEach(t=>{f.set(t,`<svg viewBox="0 0 32 32" width="32" height="32" fill="${p[t].fill}"><path d="${p[t].path}"/></svg>`)});function o(t){return f.get(t)||""}var _=":host{display:block;--instant-apps-create-action-background:var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-create-action-background-press:var(--calcite-color-foreground-3);--instant-apps-create-action-height:100%;--instant-apps-create-action-width:fit-content;--instant-apps-create-action-icon-color:var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-create-background:var(--calcite-color-foreground-1);--instant-apps-create-text-color:var(--calcite-color-text-1);--instant-apps-create-popover-width:450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1:var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1:var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 0.5rem 0;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:fit-content;margin-bottom:0.5rem;cursor:pointer;--calcite-color-text-link:var(--calcite-color-text-1);align-items:stretch;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.instant-apps-create__option:first-of-type{margin-top:0.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:0.75rem;color:var(--calcite-color-text-2);padding:0.75rem 0 0 0.75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:0.25rem;color:rgb(126, 126, 126);--tw-translate-x:0px;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x:0.5rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}",A=_,i={baseDark:"instant-apps-create calcite-mode-dark",baseLight:"instant-apps-create calcite-mode-light",inlineContainer:"instant-apps-create__inline-container",popoverContainer:"instant-apps-create__popover-container",hidden:"instant-apps-create__visually-hidden",header:"instant-apps-create__header",options:"instant-apps-create__options",option:"instant-apps-create__option",optionIcon:"instant-apps-create__option-icon",optionText:"instant-apps-create__option-text",optionTextWrapper:"instant-apps-create__option-text-wrapper",optionTitle:"instant-apps-create__option-title",optionSubtitle:"instant-apps-create__option-subtitle",optionLink:"instant-apps-create__option-link"},y=class{constructor(t){v(this,t),this.popoverIcon="grid",this.mode="inline",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.showHeader=!0,this.content=void 0,this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"],this.portal=void 0,this.baseClass=i.baseLight,this.messages=void 0,this.CreateOptionsLookup=void 0}contentChanged(){this.CreateOptionsLookup&&Object.keys(this.CreateOptionsLookup).forEach(t=>{this.CreateOptionsLookup[t].href=this.hrefLookup(t)})}async componentWillLoad(){return this.baseClass=d(this.el)==="dark"?i.baseDark:i.baseLight,await this.initializeModules(),await h(this).then(()=>{this.initializePredefinedOptions()})}disconnectedCallback(){this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel();return a(m,{key:"662bf8aee21aafd15b22d1c64f63e242229c932b"},a("div",{key:"51f0a144f417a0c4fda1a8db71a7d67472e6b7fb",class:this.baseClass},t))}async initializeModules(){return this.handles=await l(),await Promise.resolve()}initializePredefinedOptions(){let{instantApps:t,instantAppsDesc:e,mapViewer:n,mapViewerDesc:s,arcgisStoryMaps:r,storyMapsDesc:c,experienceBuilder:g,experienceBuilderDesc:w,dashboards:b,dashboardsDesc:x}=this.messages;this.CreateOptionsLookup={"instant-apps":{title:t,subtitle:e,img:o("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:n,subtitle:s,img:o("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:r,subtitle:c,img:o("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:g,subtitle:w,img:o("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:b,subtitle:x,img:o("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){let e=this.getBaseUrl(this.portal),n=this._getEnvironment(e),s=this.contentHref();switch(t){case"instant-apps":return`${e}/apps/instantgallery/index.html?${s}`;case"dashboards":return this.content!=null&&"portalItem"in this.content?`${e}/apps/dashboards/new#id=${this.content?.portalItem?.id}`:`${e}/apps/dashboards/new`;case"map-viewer":return`${e}/apps/mapviewer/index.html?${s}`;case"story-maps":return`https://storymaps${n==="prod"?"":n}.arcgis.com/stories/new?${s}`;case"experience-builder":return`https://experience${n==="prod"?"":n}.arcgis.com/builder/page/template/?${s}`}return""}contentHref(){return this?.content?.portalItem?.type==="Web Map"?`webmap=${this.content?.portalItem?.id}`:this?.content?.portalItem?.type==="Web Scene"?`webscene=${this.content?.portalItem?.id}`:typeof this?.content?.fetchMembers=="function"?`group=${this.content.id}`:""}getBaseUrl(t){if(!t)return"";let{customBaseUrl:e,portalHostname:n,urlKey:s}=t,{protocol:r}=window.location,c=s?`${s}.${e}`:n;return`${r}//${c}`}_getEnvironment(t){let e="";try{e=new URL(t)?.hostname}catch{}return e?.includes("arcgis.com")?e.includes("devext")&&"dev"||e.includes("qaext")&&"qa"||"prod":"dev"}renderPopover(){let t=this.renderPanel();return[a("calcite-popover",{referenceElement:"create-popover-btn",overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:!0,ref:e=>this.popoverEl=e,label:this.messages?.createLabel},t),a("calcite-action",{id:"create-popover-btn",alignment:"center",icon:this.popoverIcon,title:this.messages?.create,text:this.messages?.create})]}renderPanel(){let t=this.showHeader?this.renderHeader():null,e=this.renderOptions(),n=this.mode==="inline"?i.inlineContainer:i.popoverContainer;return a("div",{class:n},t,e)}renderHeader(){let{create:t,createSubheading:e}=this.messages;return a("div",{class:i.header},a("h3",null,t),a("p",null,e))}renderOptions(){return a("nav",null,this.options.map(t=>this.renderOption(t)))}renderOption(t){if(typeof t=="string"&&(t=this.CreateOptionsLookup?.[t]),t==null)return a("div",null);let{title:e,subtitle:n,img:s,href:r}=t;return a("a",{class:i.option,href:r,target:"_blank"},a("span",{class:i.optionIcon,innerHTML:s}),a("span",{class:i.optionText},a("span",{class:i.optionTextWrapper},a("h3",{class:i.optionTitle},e),a("calcite-icon",{scale:"s",icon:"launch"})),a("p",{class:i.optionSubtitle},n)))}get el(){return u(this)}static get watchers(){return{content:["contentChanged"]}}};y.style=A;export{y as instant_apps_create};