@esri/solutions-components 1.2.0-next.24 → 1.2.0-next.25

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 (505) hide show
  1. package/dist/cdn/{TDZ7C2M7.js → 227OKUOP.js} +2 -2
  2. package/dist/cdn/{VBGQ7FE6.js → 22W4RE5H.js} +2 -2
  3. package/dist/cdn/{KZD2C2ML.js → 25LXR3FP.js} +2 -2
  4. package/dist/cdn/{PZ5GGYLN.js → 27CMSLNL.js} +2 -2
  5. package/dist/cdn/{DED6BDXL.js → 2BVJTFDE.js} +2 -2
  6. package/dist/cdn/{IJEJXWF7.js → 2HGUUNMW.js} +2 -2
  7. package/dist/cdn/{76RER7LN.js → 2HIB2G57.js} +2 -2
  8. package/dist/cdn/{7GAWPJYN.js → 2HSHTUIQ.js} +2 -2
  9. package/dist/cdn/{FFZY7CPX.js → 2PRJJVOV.js} +2 -2
  10. package/dist/cdn/{FFLBALPH.js → 2RKY4JS6.js} +2 -2
  11. package/dist/cdn/{WYDM2CB5.js → 2TQEX4B7.js} +2 -2
  12. package/dist/cdn/{VJU2J222.js → 2WOROUAI.js} +2 -2
  13. package/dist/cdn/{4Y7ZVP46.js → 2YWTZAMT.js} +2 -2
  14. package/dist/cdn/{IMPPWVVG.js → 33CKROVW.js} +2 -2
  15. package/dist/cdn/{2BLFCKKA.js → 37VDTBSA.js} +2 -2
  16. package/dist/cdn/{YEKIMYDO.js → 3G2ORHX5.js} +2 -2
  17. package/dist/cdn/{EROCJUGG.js → 3KS7ECJI.js} +2 -2
  18. package/dist/cdn/{DWL4LXGS.js → 3QKECYXX.js} +2 -2
  19. package/dist/cdn/{Z2MGL6AZ.js → 3S5YMQNC.js} +2 -2
  20. package/dist/cdn/{QXX2SNE5.js → 3SQXJURM.js} +2 -2
  21. package/dist/cdn/{3E3IBLXH.js → 47LITZGW.js} +2 -2
  22. package/dist/cdn/{NI64NXLH.js → 4CDBID3T.js} +1 -1
  23. package/dist/cdn/{IKBTX6QZ.js → 4JRBLZYN.js} +2 -2
  24. package/dist/cdn/{LG6DSYZW.js → 4L3TXAHQ.js} +2 -2
  25. package/dist/cdn/{T6KDHTIZ.js → 4LD25VZ6.js} +2 -2
  26. package/dist/cdn/{XVG5AXU3.js → 4TNZ7VPX.js} +2 -2
  27. package/dist/cdn/{NDJVE732.js → 4V7AT3AA.js} +2 -2
  28. package/dist/cdn/{TEY2ATFL.js → 55OXSM7F.js} +2 -2
  29. package/dist/cdn/{2ZWVBNPH.js → 5BFB2DWR.js} +2 -2
  30. package/dist/cdn/{EIXF5OZH.js → 5F66JCHM.js} +1 -1
  31. package/dist/cdn/{DVGLTRJU.js → 5FG7JIL6.js} +1 -1
  32. package/dist/cdn/{PSACJE2J.js → 5FO3BEAU.js} +2 -2
  33. package/dist/cdn/{UM5O6SR4.js → 5H7XMH3U.js} +2 -2
  34. package/dist/cdn/{WFZWW33X.js → 5I3656PD.js} +2 -2
  35. package/dist/cdn/{BGC5OXBC.js → 5IGYCZUX.js} +2 -2
  36. package/dist/cdn/{CYADZ6PK.js → 5IR2J2MU.js} +2 -2
  37. package/dist/cdn/{EHS77SRG.js → 5MVJVO5P.js} +2 -2
  38. package/dist/cdn/{VEUQH5L3.js → 5OUPCMUR.js} +2 -2
  39. package/dist/cdn/{K2VMZCUX.js → 5PRG5J4I.js} +2 -2
  40. package/dist/cdn/{UIGYM74T.js → 5QBB4PGR.js} +2 -2
  41. package/dist/cdn/5SL4YU5J.js +18 -0
  42. package/dist/cdn/{5AERAR2L.js → 5V5732QI.js} +1 -1
  43. package/dist/cdn/{R47VKS7S.js → 66PCARXT.js} +2 -2
  44. package/dist/cdn/{DK5FUIGH.js → 6B3LITRW.js} +1 -1
  45. package/dist/cdn/{L2WHYM3J.js → 6DG5GYU6.js} +1 -1
  46. package/dist/cdn/{JIREIGOU.js → 6DNBPW3K.js} +2 -2
  47. package/dist/cdn/6F753QZS.js +18 -0
  48. package/dist/cdn/{443EHILD.js → 6GTTRESX.js} +2 -2
  49. package/dist/cdn/{T6FIJDJK.js → 6HWRE6RG.js} +2 -2
  50. package/dist/cdn/{IBLOFUUX.js → 6LAMGJ6U.js} +2 -2
  51. package/dist/cdn/6RRQQGSF.js +18 -0
  52. package/dist/cdn/{OOSMF7MX.js → 6RSL6JCZ.js} +3 -3
  53. package/dist/cdn/6RUMIMNG.js +18 -0
  54. package/dist/cdn/6SPFZVPR.js +21 -0
  55. package/dist/cdn/{4RNO5M22.js → 6TKZARJO.js} +2 -2
  56. package/dist/cdn/{EOZZELAV.js → 6UB7H5S7.js} +2 -2
  57. package/dist/cdn/{3DQY36BR.js → 6UEXK7QG.js} +2 -2
  58. package/dist/cdn/{E4JZL5IT.js → 6VC6BOD3.js} +2 -2
  59. package/dist/cdn/{LYXGPO4K.js → 6W73UJJY.js} +1 -1
  60. package/dist/cdn/{LOIGPO5O.js → 6XW66PF7.js} +2 -2
  61. package/dist/cdn/{PFXC7WOR.js → 73L6SXQT.js} +2 -2
  62. package/dist/cdn/{TKRGPMED.js → 7EF6XSGW.js} +2 -2
  63. package/dist/cdn/{CQIWHMR3.js → 7F33ZVRA.js} +1 -1
  64. package/dist/cdn/{3VUSEXMB.js → 7HYXPVC6.js} +2 -2
  65. package/dist/cdn/{WNFEGMNZ.js → 7LU2BDQN.js} +2 -2
  66. package/dist/cdn/{QYQTOIF6.js → 7VSEOVSU.js} +1 -1
  67. package/dist/cdn/{E23BMOKL.js → A44QWUNI.js} +2 -2
  68. package/dist/cdn/{JGT3UVSS.js → A7HUHBZM.js} +2 -2
  69. package/dist/cdn/{6Z7A2SPS.js → AAA6LMGT.js} +2 -2
  70. package/dist/cdn/{EE3RLK54.js → AB7WV42B.js} +2 -2
  71. package/dist/cdn/{T5CPOSYR.js → AF4HG5KQ.js} +1 -1
  72. package/dist/cdn/{Z2EMCTSK.js → AGTUYAIF.js} +2 -2
  73. package/dist/cdn/AIMB7S2N.js +4 -0
  74. package/dist/cdn/{VDTXZ2OC.js → AKWICKZH.js} +2 -2
  75. package/dist/cdn/{4QNOYSPY.js → ALYZCHUT.js} +2 -2
  76. package/dist/cdn/{TO6ZG5LX.js → AOJ5FYFL.js} +1 -1
  77. package/dist/cdn/{3WPZIU5L.js → AQ4DO73M.js} +2 -2
  78. package/dist/cdn/{27YRRENY.js → ASKWOQAJ.js} +2 -2
  79. package/dist/cdn/{WWSSJEOD.js → AWTULYQZ.js} +2 -2
  80. package/dist/cdn/{75CES5F2.js → AZ4OSWBB.js} +2 -2
  81. package/dist/cdn/{73OBTSKG.js → AZ5NWSFJ.js} +2 -2
  82. package/dist/cdn/{ZT7KJDTU.js → BDHPB663.js} +2 -2
  83. package/dist/cdn/{GKS4SDRE.js → BFF5G777.js} +2 -2
  84. package/dist/cdn/{DQZF7IPW.js → BPD7DNKI.js} +2 -2
  85. package/dist/cdn/{FEODTSQT.js → BSKJHSLD.js} +2 -2
  86. package/dist/cdn/{HF6CCTGX.js → BTWGA4N5.js} +2 -2
  87. package/dist/cdn/{FDGI4V7M.js → BUGTCHMJ.js} +2 -2
  88. package/dist/cdn/{X5FANKH6.js → BXCKPKDO.js} +2 -2
  89. package/dist/cdn/{NAUVQEGN.js → BXIJJQ7I.js} +2 -2
  90. package/dist/cdn/{BEV4LNQI.js → BYY527IH.js} +2 -2
  91. package/dist/cdn/{MWLY3N7C.js → BZYNOZRI.js} +2 -2
  92. package/dist/cdn/{CELVLTD3.js → C2H742OR.js} +2 -2
  93. package/dist/cdn/{UMEH46X4.js → C5FEFWP7.js} +2 -2
  94. package/dist/cdn/{AVA46ODH.js → CCDEGHR5.js} +2 -2
  95. package/dist/cdn/{6JJBGLJE.js → CEJWVVDW.js} +2 -2
  96. package/dist/cdn/{ASC5OMBD.js → CEU3EJQG.js} +2 -2
  97. package/dist/cdn/{YOIQKWPE.js → CI6ZSON4.js} +2 -2
  98. package/dist/cdn/{EOLIKK4H.js → CMJVFQIK.js} +2 -2
  99. package/dist/cdn/{SU5NQO2Y.js → CNI6KQHC.js} +2 -2
  100. package/dist/cdn/{QBBC7A4Y.js → CR2GM5TB.js} +1 -1
  101. package/dist/cdn/{2JWUVZ2L.js → CR3Y76NS.js} +1 -1
  102. package/dist/cdn/{34HAWRGI.js → CRL5EWVF.js} +2 -2
  103. package/dist/cdn/{5NLABLUG.js → D3GW7DPE.js} +2 -2
  104. package/dist/cdn/D5Q2SMLV.js +18 -0
  105. package/dist/cdn/{Q4ZZ6NDL.js → D5VBWDAK.js} +2 -2
  106. package/dist/cdn/{H34VS27L.js → D7KMXEBV.js} +2 -2
  107. package/dist/cdn/{I5JM65X6.js → DAX6C2RK.js} +2 -2
  108. package/dist/cdn/{MSBJECJS.js → DK6ZOLTA.js} +2 -2
  109. package/dist/cdn/{2AI475Q6.js → DKQV43MA.js} +2 -2
  110. package/dist/cdn/{67TNRLBR.js → DPMOOEJX.js} +2 -2
  111. package/dist/cdn/{P3LUAT4F.js → DRULXPQW.js} +2 -2
  112. package/dist/cdn/{6MECJUZM.js → DSCMJ63Y.js} +2 -2
  113. package/dist/cdn/{LNFEAJAZ.js → DSJ4DCH7.js} +2 -2
  114. package/dist/cdn/{5TKI4FG4.js → DTOU5IAO.js} +2 -2
  115. package/dist/cdn/{PHHVQRLL.js → DXWM5SOG.js} +2 -2
  116. package/dist/cdn/{GKD47RX5.js → E6O4CC2T.js} +1 -1
  117. package/dist/cdn/{VK3OPHNA.js → EAVQ5FCN.js} +2 -2
  118. package/dist/cdn/{CSH7RK4L.js → EEKC5HMJ.js} +2 -2
  119. package/dist/cdn/{GYIUJFGM.js → EH2FJOGU.js} +2 -2
  120. package/dist/cdn/{NEDCAXJL.js → ELYG6CH5.js} +2 -2
  121. package/dist/cdn/{2PC724CH.js → EV7CDQQX.js} +2 -2
  122. package/dist/cdn/{KRZ6DGKX.js → F2GASC36.js} +2 -2
  123. package/dist/cdn/{5ROXJJIZ.js → F3MXJ7PK.js} +3 -3
  124. package/dist/cdn/{6R6WIO6H.js → F6HXDR37.js} +2 -2
  125. package/dist/cdn/{2KZX4PSI.js → F6M3XWTD.js} +2 -2
  126. package/dist/cdn/FBODKGEY.js +64 -0
  127. package/dist/cdn/FBVK2FLN.js +4 -0
  128. package/dist/cdn/FCEGEP53.js +18 -0
  129. package/dist/cdn/{NBZ4SJV4.js → FCSALOKB.js} +2 -2
  130. package/dist/cdn/{6EHWI7JM.js → FKTPY2PG.js} +2 -2
  131. package/dist/cdn/{JOSEALSV.js → FOHFIU2Q.js} +2 -2
  132. package/dist/cdn/{BR65SFX2.js → FOSWULAV.js} +1 -1
  133. package/dist/cdn/{FLMS2TR4.js → FU3WID6I.js} +2 -2
  134. package/dist/cdn/{4JHKVR7I.js → G5ZAVHW6.js} +2 -2
  135. package/dist/cdn/{MLY5XS76.js → GBNNHDBN.js} +2 -2
  136. package/dist/cdn/{BTLVFHR2.js → GBUQQPYG.js} +1 -1
  137. package/dist/cdn/GEM3SJHZ.js +4 -0
  138. package/dist/cdn/{HRKWHIYV.js → GIRT7FSE.js} +2 -2
  139. package/dist/cdn/{LCZYX2MS.js → GTMB2D2L.js} +2 -2
  140. package/dist/cdn/{VK5SHRI7.js → GUAMRG2A.js} +2 -2
  141. package/dist/cdn/{FY6XKBZS.js → GWCKLSTR.js} +2 -2
  142. package/dist/cdn/{W75YFHYB.js → GXL4PA3D.js} +2 -2
  143. package/dist/cdn/{5V5O4IVZ.js → GXXNGMWJ.js} +2 -2
  144. package/dist/cdn/GZSKPM5F.js +4 -0
  145. package/dist/cdn/{GQYBA7GH.js → H35DFLHL.js} +2 -2
  146. package/dist/cdn/{GDO7SFZU.js → H5AUCOST.js} +2 -2
  147. package/dist/cdn/{ZL7IV42Y.js → H6EC52KA.js} +2 -2
  148. package/dist/cdn/{4JCL7LZR.js → HBLU4NNH.js} +2 -2
  149. package/dist/cdn/{BUJ7HMXE.js → HF6SJRK7.js} +2 -2
  150. package/dist/cdn/{OPFB2Y4V.js → HUJ6PAV5.js} +2 -2
  151. package/dist/cdn/{BUQMZQDZ.js → HY2YEKX4.js} +2 -2
  152. package/dist/cdn/{4WOSAZZE.js → HYJAUXZR.js} +2 -2
  153. package/dist/cdn/{OLKLMVT2.js → I2NS6RAC.js} +2 -2
  154. package/dist/cdn/{WOZIGPUB.js → I42BS5RN.js} +2 -2
  155. package/dist/cdn/{YMNTHO2F.js → I6F7SK7X.js} +2 -2
  156. package/dist/cdn/{2M4ILWS4.js → IAOFW42G.js} +2 -2
  157. package/dist/cdn/{7OW5IQNG.js → IARKQB6L.js} +2 -2
  158. package/dist/cdn/IKTBJIKZ.js +18 -0
  159. package/dist/cdn/{TNHXSGP4.js → IN5SSIXG.js} +2 -2
  160. package/dist/cdn/{QO2AZMFP.js → IUMQQRBH.js} +2 -2
  161. package/dist/cdn/{UNOFD42Q.js → IVPONNZR.js} +1 -1
  162. package/dist/cdn/IXPZNMCD.js +18 -0
  163. package/dist/cdn/{CHNYABSO.js → J2XPTQU2.js} +2 -2
  164. package/dist/cdn/{T7GSBDIG.js → J5AOMIJN.js} +2 -2
  165. package/dist/cdn/{HST46P5Y.js → J6P2QRWD.js} +2 -2
  166. package/dist/cdn/{SZNJD54W.js → JBVOLK4R.js} +1 -1
  167. package/dist/cdn/{FLMVVIYI.js → JDWBEXFG.js} +2 -2
  168. package/dist/cdn/{FBAY6DO3.js → JEMU5PFH.js} +2 -2
  169. package/dist/cdn/{KIUNRSQA.js → JPFMUBPN.js} +2 -2
  170. package/dist/cdn/{ERSOKPXT.js → JRFE64QB.js} +2 -2
  171. package/dist/cdn/JULUVIZZ.js +18 -0
  172. package/dist/cdn/{2S3FX57Y.js → JY7CESFO.js} +2 -2
  173. package/dist/cdn/{7UWI5KWK.js → K3PSKBFT.js} +2 -2
  174. package/dist/cdn/{OABMD66T.js → KBDQPISA.js} +2 -2
  175. package/dist/cdn/{LQVI3NR7.js → KDFFHJCE.js} +2 -2
  176. package/dist/cdn/{WTVABM3O.js → KJ5763CL.js} +2 -2
  177. package/dist/cdn/{TZ4BYOUZ.js → KQ5G7HVB.js} +2 -2
  178. package/dist/cdn/{J5GBXHV7.js → KTOTBTIB.js} +2 -2
  179. package/dist/cdn/{KWTCG2SE.js → KUHCBGK5.js} +2 -2
  180. package/dist/cdn/KUQWCT6L.js +4 -0
  181. package/dist/cdn/{R22HIDGZ.js → KVGWKRTF.js} +2 -2
  182. package/dist/cdn/{OC7V7KCG.js → KX7RN2HN.js} +2 -2
  183. package/dist/cdn/{ZAL2JPN6.js → KXRDDOMY.js} +1 -1
  184. package/dist/cdn/{KX7PNFBK.js → KY5MN2T4.js} +2 -2
  185. package/dist/cdn/{YWXJ2RX3.js → KZ3UTDYW.js} +2 -2
  186. package/dist/cdn/{74AIX5RH.js → L3KYVSGX.js} +1 -1
  187. package/dist/cdn/{EAS42GZC.js → LBWBQTWE.js} +1 -1
  188. package/dist/cdn/{2YG6C32T.js → LDHQ34KV.js} +2 -2
  189. package/dist/cdn/{SVTYAHMC.js → LH4OLQ34.js} +2 -2
  190. package/dist/cdn/{RY2JRQIA.js → LIWWQNG7.js} +2 -2
  191. package/dist/cdn/{UQVFINXF.js → LJOG53B6.js} +2 -2
  192. package/dist/cdn/{G7OBBNFQ.js → LOR4HLCD.js} +2 -2
  193. package/dist/cdn/{NWOOAUG7.js → LPW522QH.js} +2 -2
  194. package/dist/cdn/{R6MJ3BWC.js → LQ2RKGNR.js} +1 -1
  195. package/dist/cdn/{RFLU2ZRI.js → LRQZMD7I.js} +2 -2
  196. package/dist/cdn/{FLA5RSAG.js → M3J7WFCT.js} +2 -2
  197. package/dist/cdn/{W5O6BHYJ.js → M47E3HSB.js} +2 -2
  198. package/dist/cdn/{SMZGBF7A.js → M6UH6Z5C.js} +2 -2
  199. package/dist/cdn/{GWYYMTWP.js → MM7HTB74.js} +2 -2
  200. package/dist/cdn/{7LEW57R4.js → MTJYX32S.js} +2 -2
  201. package/dist/cdn/{NX4JHBIH.js → MVL3MXJS.js} +2 -2
  202. package/dist/cdn/{XUNRNHCK.js → MYL46HPR.js} +2 -2
  203. package/dist/cdn/{QC34FER4.js → NGCSRMGK.js} +2 -2
  204. package/dist/cdn/{W6XHOAIY.js → NGGKWS4K.js} +2 -2
  205. package/dist/cdn/{6XXBH32V.js → NGXX4YBY.js} +2 -2
  206. package/dist/cdn/{AO32HRV6.js → NH4QW36Q.js} +2 -2
  207. package/dist/cdn/{GJEPJCWP.js → NJEFWFEN.js} +2 -2
  208. package/dist/cdn/{BOHI7OOB.js → NL3W622Y.js} +1 -1
  209. package/dist/cdn/NQUVPAJI.js +4 -0
  210. package/dist/cdn/{DCNEHZTW.js → NRAOZEZJ.js} +2 -2
  211. package/dist/cdn/NUOI2YN5.js +4 -0
  212. package/dist/cdn/{WOXREBHW.js → NV7R5AHR.js} +2 -2
  213. package/dist/cdn/NWMLIPGH.js +18 -0
  214. package/dist/cdn/{ZGXAJOK6.js → NWUKK5A6.js} +2 -2
  215. package/dist/cdn/{T3HXN3EN.js → NZOYC75S.js} +2 -2
  216. package/dist/cdn/{SSHAOTEK.js → O4FNQ6WI.js} +2 -2
  217. package/dist/cdn/{PHLPFYN3.js → OEYVI2ZO.js} +1 -1
  218. package/dist/cdn/OFFB46MS.js +18 -0
  219. package/dist/cdn/{L6PIPEF2.js → OLX2TCKA.js} +2 -2
  220. package/dist/cdn/{HXHGWVUO.js → OOILB3XG.js} +2 -2
  221. package/dist/cdn/{K4HRSAES.js → OQFR5EBN.js} +2 -2
  222. package/dist/cdn/{HP4JIDLF.js → OSICGOI4.js} +2 -2
  223. package/dist/cdn/OSOP5UDV.js +18 -0
  224. package/dist/cdn/{EYIL3WCN.js → OX2XBEMJ.js} +2 -2
  225. package/dist/cdn/{4EQVVEVL.js → P3S3CHRK.js} +2 -2
  226. package/dist/cdn/{SERCADIE.js → P4GU4NJL.js} +2 -2
  227. package/dist/cdn/{YFOSFQMV.js → P4JDDNDS.js} +1 -1
  228. package/dist/cdn/{STHO3HPO.js → PGYWV3NX.js} +2 -2
  229. package/dist/cdn/{CYG5JUF7.js → PL2DLTJ3.js} +1 -1
  230. package/dist/cdn/{F37UKUAV.js → PM5ELFQG.js} +2 -2
  231. package/dist/cdn/{3WHGZJJS.js → PMDK5BSC.js} +2 -2
  232. package/dist/cdn/POXK5JYF.js +18 -0
  233. package/dist/cdn/{T74GGRMS.js → PQD2UKJH.js} +2 -2
  234. package/dist/cdn/{5XHMHEC7.js → PTEWBNCV.js} +2 -2
  235. package/dist/cdn/PTP3YNB4.js +18 -0
  236. package/dist/cdn/{QJRGXDSI.js → PWDGPR5X.js} +2 -2
  237. package/dist/cdn/Q35B4TVR.js +18 -0
  238. package/dist/cdn/{C7RFHH22.js → Q37G5WQQ.js} +2 -2
  239. package/dist/cdn/{GFXNHLR7.js → Q65LQ4DS.js} +2 -2
  240. package/dist/cdn/{VX2H4KEW.js → Q6KR2MGM.js} +2 -2
  241. package/dist/cdn/{CLFLK4OG.js → Q75J5FSF.js} +2 -2
  242. package/dist/cdn/{XH2Q2TTU.js → QBUPFG4V.js} +2 -2
  243. package/dist/cdn/{O4ZKMCDY.js → QFU7UBJX.js} +1 -1
  244. package/dist/cdn/{2KHJ7DAR.js → QKX7N74V.js} +2 -2
  245. package/dist/cdn/{KXKFOLKN.js → QRTCQKT7.js} +1 -1
  246. package/dist/cdn/{GGQUPRRV.js → QSDAU6XO.js} +2 -2
  247. package/dist/cdn/{RRNRGQVC.js → QYLZ7QMQ.js} +2 -2
  248. package/dist/cdn/{DFO6WKOY.js → R4NGPN22.js} +2 -2
  249. package/dist/cdn/{DW7PYNVR.js → R5E4K7RK.js} +2 -2
  250. package/dist/cdn/{XDEV64FQ.js → R6HSLJZP.js} +3 -3
  251. package/dist/cdn/{6Z47NIFS.js → R6NUZOUH.js} +2 -2
  252. package/dist/cdn/{NZO56NNR.js → RCCI6MDJ.js} +2 -2
  253. package/dist/cdn/{27VT6FGO.js → RDASDC76.js} +1 -1
  254. package/dist/cdn/RDXF2NUP.js +18 -0
  255. package/dist/cdn/RE424GHE.js +18 -0
  256. package/dist/cdn/RGM4NZOR.js +18 -0
  257. package/dist/cdn/{J4UA37P6.js → ROF3LNEG.js} +2 -2
  258. package/dist/cdn/{G37T64CV.js → RR3CV4NP.js} +2 -2
  259. package/dist/cdn/{P6OT3PMN.js → RXUBLDCK.js} +2 -2
  260. package/dist/cdn/{ZJ5VS3XI.js → SGSS7BTV.js} +2 -2
  261. package/dist/cdn/SLN637AP.js +18 -0
  262. package/dist/cdn/{7HWYZVCJ.js → SPK5KP7G.js} +2 -2
  263. package/dist/cdn/{YHMAN2VX.js → SQQALD75.js} +2 -2
  264. package/dist/cdn/{6WW2DA2G.js → SR6U5ITN.js} +1 -1
  265. package/dist/cdn/{55A2KYUG.js → SRGTODED.js} +2 -2
  266. package/dist/cdn/{MTH7WCDT.js → SUSD34WI.js} +2 -2
  267. package/dist/cdn/{G24DNHCB.js → T3QNUX7F.js} +2 -2
  268. package/dist/cdn/{CFRDPWXR.js → T4S5GHIX.js} +2 -2
  269. package/dist/cdn/{V2K3CARG.js → T7WZEKVF.js} +2 -2
  270. package/dist/cdn/{QGWCUXVU.js → TA22B3PN.js} +2 -2
  271. package/dist/cdn/{FCJJ2E2N.js → TB26F4TS.js} +2 -2
  272. package/dist/cdn/{OJG6HIKN.js → TCDTWQMN.js} +2 -2
  273. package/dist/cdn/{T6DIELVZ.js → TE3EPYCD.js} +2 -2
  274. package/dist/cdn/{P7H776WT.js → TEC4FZSJ.js} +2 -2
  275. package/dist/cdn/{SKGMLLPH.js → TKIB7NRH.js} +7 -7
  276. package/dist/cdn/{ZVYGJ3ZV.js → TND7L4TG.js} +2 -2
  277. package/dist/cdn/{CO3TU24E.js → TNXXPVD3.js} +2 -2
  278. package/dist/cdn/{QUO6TIFZ.js → TNYM6PF6.js} +1 -1
  279. package/dist/cdn/{RPY6EG62.js → TOEUWHX7.js} +2 -2
  280. package/dist/cdn/{JKYLZXQW.js → TXM5UUEF.js} +2 -2
  281. package/dist/cdn/{43NXLAVY.js → U5REIPGX.js} +2 -2
  282. package/dist/cdn/{REW2XBKZ.js → UCGJMCLN.js} +1 -1
  283. package/dist/cdn/{OYGODC65.js → UFOHEGEB.js} +2 -2
  284. package/dist/cdn/{36BDQG6C.js → UGDU3FHG.js} +2 -2
  285. package/dist/cdn/{CZIXYCET.js → UJ2HNPRI.js} +2 -2
  286. package/dist/cdn/{QH2BEMM6.js → UMOF3JJN.js} +2 -2
  287. package/dist/cdn/{OQF6YVUK.js → URQ5DYLW.js} +2 -2
  288. package/dist/cdn/{LH3A7YCF.js → UZYJBWAL.js} +3 -3
  289. package/dist/cdn/{35KLNGC5.js → V2Y4GO6L.js} +2 -2
  290. package/dist/cdn/{VW2WEXVP.js → V63RSPHR.js} +1 -1
  291. package/dist/cdn/{3G3I5XU7.js → VCB2O536.js} +2 -2
  292. package/dist/cdn/{GHD3JMA4.js → VGOUD4LG.js} +2 -2
  293. package/dist/cdn/{XCDDDB5R.js → VJKKQU2K.js} +2 -2
  294. package/dist/cdn/{KG4IFWCZ.js → VJW7W56T.js} +2 -2
  295. package/dist/cdn/{SGEGTSUZ.js → VMLHXPSN.js} +2 -2
  296. package/dist/cdn/VN7CGEIY.js +18 -0
  297. package/dist/cdn/{BLIFIP2J.js → VOCKL66I.js} +2 -2
  298. package/dist/cdn/{OUYGAAGX.js → VOYZKLLZ.js} +2 -2
  299. package/dist/cdn/{RGGUA4QF.js → VSVGR3WH.js} +2 -2
  300. package/dist/cdn/{4HFOPNFI.js → W4Q2GGWI.js} +2 -2
  301. package/dist/cdn/{ANOEINZT.js → W65FI6JK.js} +2 -2
  302. package/dist/cdn/{EY4LNEPF.js → WFLBBSMB.js} +3 -3
  303. package/dist/cdn/{KOT36X5I.js → WO6ZWZSX.js} +2 -2
  304. package/dist/cdn/{SNLUBEJI.js → WPAY2RXR.js} +2 -2
  305. package/dist/cdn/{JEWJNGE6.js → WVPQS2SL.js} +2 -2
  306. package/dist/cdn/{CE2PWV2T.js → WVXU4P7B.js} +2 -2
  307. package/dist/cdn/{HBOBM65G.js → WXOAB4RS.js} +2 -2
  308. package/dist/cdn/{XIKGCL6Z.js → WYFCB3NO.js} +1 -1
  309. package/dist/cdn/{WUTY55ZF.js → X5BGIPQE.js} +1 -1
  310. package/dist/cdn/{7QBFHK6I.js → X5CUQYP2.js} +2 -2
  311. package/dist/cdn/{YAYHUH5G.js → X65UTRJF.js} +2 -2
  312. package/dist/cdn/{XSE22DX2.js → X7GANTPZ.js} +2 -2
  313. package/dist/cdn/{4BXRZ62B.js → XEUITAUW.js} +1 -1
  314. package/dist/cdn/{A65SF5TP.js → XFOJ2YTI.js} +2 -2
  315. package/dist/cdn/{HBNX26U7.js → XGRYQZ2O.js} +2 -2
  316. package/dist/cdn/{KTJDLUIU.js → XIT7U76G.js} +2 -2
  317. package/dist/cdn/{KSO7CXKH.js → XKYABGIY.js} +2 -2
  318. package/dist/cdn/{WL4NQCES.js → Y3UAZV7T.js} +2 -2
  319. package/dist/cdn/{FAFTQRQY.js → Y3Y2DGLC.js} +2 -2
  320. package/dist/cdn/{VHW5YMZI.js → Y6S5MFA2.js} +2 -2
  321. package/dist/cdn/{3P4LQ4TN.js → Y7PX6YNW.js} +2 -2
  322. package/dist/cdn/{FWE4FUJH.js → Y7RAV3DP.js} +2 -2
  323. package/dist/cdn/{5D7BHC5A.js → YDXLB56W.js} +2 -2
  324. package/dist/cdn/{63DFPGXG.js → YKVIFE2T.js} +2 -2
  325. package/dist/cdn/{WP7F5HRM.js → YQZK5YIN.js} +2 -2
  326. package/dist/cdn/{AAXTQRZG.js → YSC2HFLQ.js} +2 -2
  327. package/dist/cdn/{H2UXJKPU.js → YUK5EJDR.js} +1 -1
  328. package/dist/cdn/{GHZ256AS.js → YWA44B7H.js} +4 -4
  329. package/dist/cdn/{SKZURFAS.js → Z3INPQ3P.js} +2 -2
  330. package/dist/cdn/{X4DEDSCC.js → Z4HAQW7C.js} +2 -2
  331. package/dist/cdn/{GZK6A527.js → Z6AVKFEG.js} +2 -2
  332. package/dist/cdn/ZCQJ5AVG.js +4 -0
  333. package/dist/cdn/{B6DL7APO.js → ZEKYDTVV.js} +2 -2
  334. package/dist/cdn/{4SOCIVF6.js → ZJBXIMRS.js} +1 -1
  335. package/dist/cdn/{TOEQLEDG.js → ZK6M2PX2.js} +2 -2
  336. package/dist/cdn/{ANWXMLC5.js → ZNHJLN3B.js} +2 -2
  337. package/dist/cdn/{D67LKKO3.js → ZOT3V2FS.js} +2 -2
  338. package/dist/cdn/{URRLKSMA.js → ZPQHS32Z.js} +2 -2
  339. package/dist/cdn/{ENUF5QK4.js → ZRNE7ON4.js} +2 -2
  340. package/dist/cdn/{PRIALFET.js → ZRXPHGWK.js} +2 -2
  341. package/dist/cdn/{KESHQJDL.js → ZSOICD7A.js} +2 -2
  342. package/dist/cdn/{II25P5CO.js → ZUOFTXZA.js} +2 -2
  343. package/dist/cdn/{BF6B5YPC.js → ZWIILL33.js} +1 -1
  344. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  345. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  346. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.en.json +1 -1
  347. package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.json +1 -1
  348. package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.en.json +1 -1
  349. package/dist/cdn/assets/solutions-searchsort-toolbar/t9n/messages.json +1 -1
  350. package/dist/cdn/index.js +2 -2
  351. package/dist/chunks/Auth.js +1 -1
  352. package/dist/chunks/CardsFetcher.js +1 -1
  353. package/dist/chunks/appConfig.js +1 -1
  354. package/dist/chunks/cardFetchingUtils.js +1 -1
  355. package/dist/chunks/cardsHelpers.js +1 -1
  356. package/dist/chunks/common.js +1 -1
  357. package/dist/chunks/deployAppContexts.js +1 -1
  358. package/dist/chunks/downloadUtils.js +1 -1
  359. package/dist/chunks/getItemIcon.js +1 -1
  360. package/dist/chunks/helpers.js +1 -1
  361. package/dist/chunks/interfaces.js +1 -1
  362. package/dist/chunks/loadModules.js +1 -1
  363. package/dist/chunks/mapViewUtils.js +1 -1
  364. package/dist/chunks/pciUtils.js +1 -1
  365. package/dist/chunks/popupUtils.js +1 -1
  366. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  367. package/dist/chunks/privilegeUtils.js +1 -1
  368. package/dist/chunks/publicNotificationContext.js +1 -1
  369. package/dist/chunks/queryUtils.js +1 -1
  370. package/dist/chunks/runtime.js +1 -1
  371. package/dist/chunks/solution-store.js +1 -1
  372. package/dist/chunks/templates.js +1 -1
  373. package/dist/chunks/useT9n.js +1 -1
  374. package/dist/components/arcgis-solutions-assistant/customElement.js +148 -133
  375. package/dist/components/arcgis-solutions-assistant/index.d.ts +0 -1
  376. package/dist/components/arcgis-solutions-assistant/index.js +0 -1
  377. package/dist/components/basemap-gallery/customElement.js +1 -1
  378. package/dist/components/buffer-tools/customElement.d.ts +2 -2
  379. package/dist/components/buffer-tools/customElement.js +1 -1
  380. package/dist/components/card-manager/customElement.d.ts +1 -2
  381. package/dist/components/card-manager/customElement.js +2 -2
  382. package/dist/components/consent-manager/customElement.d.ts +5 -5
  383. package/dist/components/consent-manager/customElement.js +142 -142
  384. package/dist/components/create-feature/customElement.js +1 -1
  385. package/dist/components/create-related-feature/customElement.js +1 -1
  386. package/dist/components/crowdsource-manager/customElement.js +2 -2
  387. package/dist/components/crowdsource-reporter/customElement.d.ts +1 -6
  388. package/dist/components/crowdsource-reporter/customElement.js +6 -6
  389. package/dist/components/deduct-calculator/customElement.d.ts +0 -1
  390. package/dist/components/deduct-calculator/customElement.js +1 -1
  391. package/dist/components/delete-button/customElement.js +2 -2
  392. package/dist/components/delete-dialog/customElement.js +2 -2
  393. package/dist/components/edit-card/customElement.js +6 -6
  394. package/dist/components/feature-details/customElement.d.ts +0 -2
  395. package/dist/components/feature-details/customElement.js +1 -1
  396. package/dist/components/feature-list/customElement.d.ts +1 -1
  397. package/dist/components/feature-list/customElement.js +44 -45
  398. package/dist/components/field-selection/customElement.js +1 -1
  399. package/dist/components/floor-filter/customElement.js +1 -1
  400. package/dist/components/info-card/customElement.d.ts +0 -1
  401. package/dist/components/info-card/customElement.js +2 -2
  402. package/dist/components/json-editor/customElement.js +1 -1
  403. package/dist/components/layer-list/customElement.d.ts +0 -1
  404. package/dist/components/layer-list/customElement.js +1 -1
  405. package/dist/components/layer-table/customElement.d.ts +1 -2
  406. package/dist/components/layer-table/customElement.js +12 -12
  407. package/dist/components/map-card/customElement.d.ts +6 -9
  408. package/dist/components/map-card/customElement.js +17 -27
  409. package/dist/components/map-draw-tools/customElement.js +2 -2
  410. package/dist/components/map-fullscreen/customElement.js +1 -1
  411. package/dist/components/map-layer-picker/customElement.d.ts +7 -7
  412. package/dist/components/map-layer-picker/customElement.js +1 -1
  413. package/dist/components/map-legend/customElement.js +1 -1
  414. package/dist/components/map-picker/customElement.js +5 -5
  415. package/dist/components/map-search/customElement.js +1 -1
  416. package/dist/components/map-select-tools/customElement.d.ts +3 -5
  417. package/dist/components/map-select-tools/customElement.js +13 -13
  418. package/dist/components/map-tools/customElement.d.ts +4 -10
  419. package/dist/components/map-tools/customElement.js +7 -7
  420. package/dist/components/pci-calculator/customElement.js +9 -9
  421. package/dist/components/pdf-download/customElement.js +29 -37
  422. package/dist/components/public-notification/customElement.d.ts +5 -6
  423. package/dist/components/public-notification/customElement.js +6 -9
  424. package/dist/components/refine-selection/customElement.d.ts +1 -4
  425. package/dist/components/refine-selection/customElement.js +15 -15
  426. package/dist/components/selection-tool/customElement.d.ts +2 -2
  427. package/dist/components/selection-tool/customElement.js +1 -1
  428. package/dist/components/solution-configuration/customElement.js +1 -1
  429. package/dist/components/solution-configure-titles/customElement.js +2 -2
  430. package/dist/components/solution-contents/customElement.js +1 -1
  431. package/dist/components/solution-delete-dialog/customElement.d.ts +0 -1
  432. package/dist/components/solution-delete-dialog/customElement.js +2 -2
  433. package/dist/components/solution-deploy-dialog/customElement.js +2 -2
  434. package/dist/components/solution-deployed-card/customElement.js +3 -3
  435. package/dist/components/solution-deployed-card-panel/customElement.js +8 -7
  436. package/dist/components/solution-deployed-card-panel/index.d.ts +1 -0
  437. package/dist/components/solution-deployed-card-panel/index.js +1 -0
  438. package/dist/components/solution-deploying-dialog/customElement.js +13 -28
  439. package/dist/components/solution-details-card/customElement.js +1 -1
  440. package/dist/components/solution-details-panel/customElement.js +1 -1
  441. package/dist/components/solution-item/customElement.js +1 -1
  442. package/dist/components/solution-item-accordion/customElement.js +1 -1
  443. package/dist/components/solution-item-details/customElement.js +1 -1
  444. package/dist/components/solution-item-diagram/customElement.js +1 -1
  445. package/dist/components/solution-item-icon/customElement.js +1 -1
  446. package/dist/components/solution-item-sharing/customElement.js +1 -1
  447. package/dist/components/solution-organization-variables/customElement.js +1 -1
  448. package/dist/components/solution-resource-card/customElement.js +1 -1
  449. package/dist/components/solution-resource-item/customElement.js +1 -1
  450. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  451. package/dist/components/solution-social-share/customElement.js +1 -1
  452. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  453. package/dist/components/solution-template-data/customElement.js +1 -1
  454. package/dist/components/solution-variables/customElement.js +1 -1
  455. package/dist/components/solutions-all-panel/customElement.js +1 -1
  456. package/dist/components/solutions-all-shell/customElement.js +9 -6
  457. package/dist/components/solutions-deploy-app/customElement.js +1 -1
  458. package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
  459. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  460. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  461. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  462. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  463. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  464. package/dist/components/solutions-resources/customElement.js +1 -1
  465. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  466. package/dist/components/solutions-searchsort-toolbar/customElement.js +2 -2
  467. package/dist/components/spatial-ref/customElement.js +1 -1
  468. package/dist/components/store-manager/customElement.js +1 -1
  469. package/dist/docs/api.json +54 -54
  470. package/dist/docs/docs.json +31 -31
  471. package/dist/docs/vscode.html-custom-data.json +15 -15
  472. package/dist/docs/web-types.json +45 -45
  473. package/dist/index.js +1 -1
  474. package/dist/loader.js +1 -1
  475. package/package.json +1 -1
  476. package/dist/cdn/2CCBXSKK.js +0 -4
  477. package/dist/cdn/2PHLVPTR.js +0 -4
  478. package/dist/cdn/3LF35Q54.js +0 -4
  479. package/dist/cdn/4RTC5XWR.js +0 -18
  480. package/dist/cdn/5JZITWD2.js +0 -18
  481. package/dist/cdn/5N7W6CKG.js +0 -18
  482. package/dist/cdn/C5H65524.js +0 -18
  483. package/dist/cdn/D7WDGASK.js +0 -65
  484. package/dist/cdn/DUYSEICC.js +0 -18
  485. package/dist/cdn/EJX4TNGV.js +0 -18
  486. package/dist/cdn/FVLOODPF.js +0 -18
  487. package/dist/cdn/HFSAMU3B.js +0 -18
  488. package/dist/cdn/HWKBNZEW.js +0 -18
  489. package/dist/cdn/ILRIV2PZ.js +0 -18
  490. package/dist/cdn/JYBZAUFS.js +0 -18
  491. package/dist/cdn/K2C56RZ4.js +0 -21
  492. package/dist/cdn/K3OZMGZ3.js +0 -4
  493. package/dist/cdn/LPQM324E.js +0 -18
  494. package/dist/cdn/MZVQVHJA.js +0 -18
  495. package/dist/cdn/P7A24J32.js +0 -18
  496. package/dist/cdn/QU33YK2I.js +0 -4
  497. package/dist/cdn/RXDDH7T7.js +0 -4
  498. package/dist/cdn/T6NNOIF5.js +0 -4
  499. package/dist/cdn/TRN3X66C.js +0 -18
  500. package/dist/cdn/TW7EJR75.js +0 -18
  501. package/dist/cdn/VGHU623Q.js +0 -18
  502. package/dist/cdn/Y5S76IXI.js +0 -4
  503. package/dist/cdn/ZDTIXH2P.js +0 -18
  504. package/dist/cdn/ZF5KTUHD.js +0 -18
  505. package/dist/cdn/ZLEHSIQE.js +0 -18
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as O}from"./JGT3UVSS.js";import{A as H,C as M,D as F,d as B,e as L}from"./BF6B5YPC.js";import{b as U}from"./4QNOYSPY.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{B as S,C as m,D as h,E as I,G as a,H as b,I as C,h as T,i as n,j as w}from"./6WW2DA2G.js";import"./EAS42GZC.js";var ee=T`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var(--calcite-icon-color);--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,i="instant-apps-social-share",N=".calcite-mode-dark",t={dialog:`${i}__dialog`,dialogContent:`${i}__dialog-content`,options:`${i}__options`,tipContainer:`${i}__tip`,tipHeader:`${i}__tip-header`,tipContent:`${i}__tip-content`,icon:`${i}__icon`,iconContainer:`${i}__icon-container`,optionText:`${i}__option-text`,popoverButton:`${i}__popover-button`,layout:{vertical:`${i}__layout--vertical`,horizontal:`${i}__layout--horizontal`},xLogo:{light:`${i}__x-logo--light`,dark:`${i}__x-logo--dark`},success:{container:`${i}__success`,header:`${i}__success-header`,message:`${i}__success-message`,icon:`${i}__success-icon`},embed:{container:`${i}__embed`,header:`${i}__embed-header`,embedCode:{container:`${i}__embed-code`,textArea:`${i}__embed-code-text-area`,copyButton:`${i}__embed-code-copy-button`},textAreaText:`${i}__embed-text-area-text`,dimensions:{container:`${i}__embed-dimensions`,input:`${i}__embed-dimensions-input`}},rtl:{optionText:`${i}__option-text--rtl`,textArea:`${i}__text-area--rtl`}},te={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},E=1,z=class extends I{constructor(){super(...arguments),this._messages=O({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=ee}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,E);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let l=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(l),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let p;r&&(p=window.open("","_blank"),this.shortenShareUrl&&(l=await this.shortenUrl(this.shareUrl)||l));let d={url:encodeURI(l)},f=e==="x"?{...d,text:this.shareText}:d,k=(await M()).substitute(te[e],f);this.mode==="popover"&&this.closePopover(),r&&p?(p.location=k,p.focus()):window.open(encodeURI(k),"_blank")}break;case"native-share":let v={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(l)};navigator?.canShare?.(v)?navigator.share(v).catch(p=>{console.error("Error using native share:",p)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await(await F())("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){await navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=await L({...o.toJSON()}),l=await B({x:e,y:s,spatialReference:r}),v=await this.processPoint(l),{isWGS84:p,isWebMercator:d}=v.spatialReference,f=p||d;return this.generateShareUrlParams(v,f)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=await H(),l=await L({wkid:4326}),v=this.view?.spatialReference??l;try{return await r.load(),r.execute(e,v)}catch(p){console.error("Failed to project point to outSpatialReference",p);try{let d=r.execute(e,l);return Promise.resolve(d)}catch(d){return console.error("Failed to project point to fallbackOutSpatialReference",d),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:l,y:v}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let p=this.roundValue(s?o:l),d=this.roundValue(s?r:v),{zoom:f}=this.view,k=this.roundValue(f),P=this.view?.popup?.selectedFeature,D=this.view?.popup?.visible,$,x;if(P&&D&&P?.layer?.type==="feature"){let _=P?.layer;$=_?.id,x=P.attributes[_.objectIdField]}let R=this.view.map?.allLayers.filter(_=>!_.visible).toArray().map(_=>_.id).toString().replaceAll(",",";"),{type:A}=this.view,{defaultUrlParams:g}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),A==="3d"){let{camera:_}=this.view,{heading:V,position:W,tilt:j}=_,{longitude:K,latitude:Z,x:G,y:X,z:q}=W,J=s?K:G,Q=s?Z:X,y={longitude:this.roundValue(J,8),latitude:this.roundValue(Q,8),z:this.roundValue(q,3),heading:this.roundValue(V,3),tilt:this.roundValue(j,3)},Y=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return g?.viewpoint!==!1&&c.searchParams.set("viewpoint",Y),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}return g?.center!==!1&&c.searchParams.set("center",`${p};${d}`),g?.level!==!1&&c.searchParams.set("level",`${k}`),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.isLinkCopiedToClipboard&&this.mode==="popover"?this.renderSuccess():n`<div class=${a(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(N)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,l=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${l} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${a(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${a(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${a(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${b({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${b({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(N);return n`<svg height=100% class=${a(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${b({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){return n`<svg height=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${b({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${b({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${b({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${b({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${a(t.tipContainer)}><span class=${a(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${a(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${a(t.embed.container)}><span class=${a(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${a(t.embed.embedCode.container)}><div class=${a(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${a(s)} .value=${S(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${a(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${a(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${a(t.embed.dimensions.container)}><label class=${a(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${S(this.embedWidth??"")} min=${E} ${h(this.embedWidthRef)}></label><label class=${a(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${S(this.embedHeight??"")} min=${E} ${h(this.embedHeightRef)}></label></div></div></div>`}};U("instant-apps-social-share",z);export{z as InstantAppsSocialShare};
3
+ v1.2.0-next.25 */
4
+ import{a as O}from"./A7HUHBZM.js";import{A as H,C as M,D as F,d as B,e as L}from"./ZWIILL33.js";import{b as U}from"./ALYZCHUT.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{B as S,C as m,D as h,E as I,G as a,H as b,I as C,h as T,i as n,j as w}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var ee=T`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var(--calcite-icon-color);--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,i="instant-apps-social-share",N=".calcite-mode-dark",t={dialog:`${i}__dialog`,dialogContent:`${i}__dialog-content`,options:`${i}__options`,tipContainer:`${i}__tip`,tipHeader:`${i}__tip-header`,tipContent:`${i}__tip-content`,icon:`${i}__icon`,iconContainer:`${i}__icon-container`,optionText:`${i}__option-text`,popoverButton:`${i}__popover-button`,layout:{vertical:`${i}__layout--vertical`,horizontal:`${i}__layout--horizontal`},xLogo:{light:`${i}__x-logo--light`,dark:`${i}__x-logo--dark`},success:{container:`${i}__success`,header:`${i}__success-header`,message:`${i}__success-message`,icon:`${i}__success-icon`},embed:{container:`${i}__embed`,header:`${i}__embed-header`,embedCode:{container:`${i}__embed-code`,textArea:`${i}__embed-code-text-area`,copyButton:`${i}__embed-code-copy-button`},textAreaText:`${i}__embed-text-area-text`,dimensions:{container:`${i}__embed-dimensions`,input:`${i}__embed-dimensions-input`}},rtl:{optionText:`${i}__option-text--rtl`,textArea:`${i}__text-area--rtl`}},te={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},E=1,z=class extends I{constructor(){super(...arguments),this._messages=O({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=ee}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,E);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let l=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(l),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let p;r&&(p=window.open("","_blank"),this.shortenShareUrl&&(l=await this.shortenUrl(this.shareUrl)||l));let d={url:encodeURI(l)},f=e==="x"?{...d,text:this.shareText}:d,k=(await M()).substitute(te[e],f);this.mode==="popover"&&this.closePopover(),r&&p?(p.location=k,p.focus()):window.open(encodeURI(k),"_blank")}break;case"native-share":let v={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(l)};navigator?.canShare?.(v)?navigator.share(v).catch(p=>{console.error("Error using native share:",p)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await(await F())("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){await navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=await L({...o.toJSON()}),l=await B({x:e,y:s,spatialReference:r}),v=await this.processPoint(l),{isWGS84:p,isWebMercator:d}=v.spatialReference,f=p||d;return this.generateShareUrlParams(v,f)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=await H(),l=await L({wkid:4326}),v=this.view?.spatialReference??l;try{return await r.load(),r.execute(e,v)}catch(p){console.error("Failed to project point to outSpatialReference",p);try{let d=r.execute(e,l);return Promise.resolve(d)}catch(d){return console.error("Failed to project point to fallbackOutSpatialReference",d),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:l,y:v}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let p=this.roundValue(s?o:l),d=this.roundValue(s?r:v),{zoom:f}=this.view,k=this.roundValue(f),P=this.view?.popup?.selectedFeature,D=this.view?.popup?.visible,$,x;if(P&&D&&P?.layer?.type==="feature"){let _=P?.layer;$=_?.id,x=P.attributes[_.objectIdField]}let R=this.view.map?.allLayers.filter(_=>!_.visible).toArray().map(_=>_.id).toString().replaceAll(",",";"),{type:A}=this.view,{defaultUrlParams:g}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),A==="3d"){let{camera:_}=this.view,{heading:V,position:W,tilt:j}=_,{longitude:K,latitude:Z,x:G,y:X,z:q}=W,J=s?K:G,Q=s?Z:X,y={longitude:this.roundValue(J,8),latitude:this.roundValue(Q,8),z:this.roundValue(q,3),heading:this.roundValue(V,3),tilt:this.roundValue(j,3)},Y=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return g?.viewpoint!==!1&&c.searchParams.set("viewpoint",Y),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}return g?.center!==!1&&c.searchParams.set("center",`${p};${d}`),g?.level!==!1&&c.searchParams.set("level",`${k}`),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.isLinkCopiedToClipboard&&this.mode==="popover"?this.renderSuccess():n`<div class=${a(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(N)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,l=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${l} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${a(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${a(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${a(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${b({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${b({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(N);return n`<svg height=100% class=${a(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${b({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){return n`<svg height=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${b({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${b({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${b({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${b({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${a(t.tipContainer)}><span class=${a(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${a(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${a(t.embed.container)}><span class=${a(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${a(t.embed.embedCode.container)}><div class=${a(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${a(s)} .value=${S(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${a(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${a(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${a(t.embed.dimensions.container)}><label class=${a(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${S(this.embedWidth??"")} min=${E} ${h(this.embedWidthRef)}></label><label class=${a(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${S(this.embedHeight??"")} min=${E} ${h(this.embedHeightRef)}></label></div></div></div>`}};U("instant-apps-social-share",z);export{z as InstantAppsSocialShare};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.25 */
4
+ import{a as v}from"./EAVQ5FCN.js";import"./YWA44B7H.js";import"./XKYABGIY.js";import"./Q65LQ4DS.js";import"./PL2DLTJ3.js";import"./47LITZGW.js";import"./3KS7ECJI.js";import"./Q6KR2MGM.js";import"./6DG5GYU6.js";import"./KXRDDOMY.js";import"./ZRNE7ON4.js";import"./NL3W622Y.js";import"./QRTCQKT7.js";import"./WYFCB3NO.js";import"./OX2XBEMJ.js";import"./33CKROVW.js";import"./I6F7SK7X.js";import"./ZJBXIMRS.js";import"./LQ2RKGNR.js";import"./TND7L4TG.js";import"./L3KYVSGX.js";import"./AF4HG5KQ.js";import"./TNYM6PF6.js";import"./AOJ5FYFL.js";import"./XEUITAUW.js";import{b as m}from"./JBVOLK4R.js";import{a as b}from"./5PRG5J4I.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{b as w}from"./6GTTRESX.js";import{E as g,G as i,H as f,h as p,i as s,l as u,o,r as _}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var E=p`@layer{/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */:host{display:block;--calcite-label-margin-bottom: 0}.padding-1-2{padding:.5rem}.display-none{display:none!important}.display-flex{display:flex}.position-absolute{position:absolute;inset:0;overflow:auto}.feature-node{position:relative!important}.feature-node .esri-features__footer{display:none!important}.button-container{justify-content:center;align-items:center}.top-border{border-top:1px solid var(--calcite-color-border-1)}.width-100{width:100%}.esri-features__container{padding:.5rem!important;background-color:var(--calcite-color-foreground-1)!important;height:100%!important}.end-border{border-inline-end:1px solid var(--calcite-color-border-1)}.font-bold{font-weight:700}.z-index-1{z-index:1}.visibility-hidden{visibility:hidden;height:0px}.padding-inline-start-1{padding-inline-start:1rem}.border-width-0{border-width:0px}.pagination-action{position:relative;left:3px}.pagination-count{color:var(--calcite-color-brand);border-bottom:1px solid var(--calcite-color-brand);font-weight:700}}`,h=class extends g{constructor(){super(),this.enableEditGeometry=!1,this.enableSnapping=!1,this.graphics=[],this.isLoading=!1,this.isMobile=!1,this.allowEditing=!1,this.highlightEnabled=!0,this.paginationEnabled=!0,this.position="absolute",this.showCloseBtn=!1,this._alertOpen=!1,this._count="",this._editRecordOpen=!1,this._isMultipleEdits=!1,this._mobileTitle="",this._showListView=!1,this._translations=b({name:"info-card",blocking:!0}),this._navigatedToRelatedFeature=!1,this._editEnabled=!1,this._featuresNodeId=`features-node${new Date().getMilliseconds().toString()}`,this.popupClosed=o(),this.clearSelection=o(),this.selectionChanged=o(),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"refreshGraphics",this.refreshGraphics),this.listenOn(window,"editMultipleFeatures",this.editMultipleFeatures),this.listenOn(window,"selectedLanguageUpdated",this.selectedLanguageUpdated)}static{this.properties={enableEditGeometry:5,enableSnapping:5,graphics:0,isLoading:5,isMobile:5,mapView:0,allowEditing:5,highlightEnabled:5,paginationEnabled:5,position:1,showCloseBtn:5,_alertOpen:16,_count:16,_editRecordOpen:16,_isMultipleEdits:16,_mobileTitle:16,_showListView:16,_translations:16,_navigatedToRelatedFeature:16}}static{this.styles=E}static{this.shadowRootOptions=_}willUpdate(e){if(e.has("graphics")&&this.graphicsWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_translations")){let t=this._translations._lang,a=e.get("_translations")?._lang;if(t&&a&&t!==a&&this._features){let l=[...this.graphics];this.graphics=[],this.graphics=l}}}async graphicsWatchHandler(){this._navigatedToRelatedFeature&&this._features&&(this._features.clear(),this._features.close(),this._count="",this._navigatedToRelatedFeature=!1),await this.setGraphics()}async isMobileWatchHandler(){await this._initFeaturesWidget()}async mapViewWatchHandler(){return await this._initFeaturesWidget()}async getSelectedFeature(){return this._features?.selectedFeature}async refresh(){await this.setGraphics()}async back(){this._features?.previous(),this._count=this._getCount()}async next(){this._features?.next(),this._count=this._getCount()}async toggleListView(){if(this._showListView=!this._showListView,this._features){let e=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=e}}async updateCurrentGraphic(e){this._features?.selectedFeatureWidget&&console.log(e)}async closeEdit(){this._editRecordOpen=!1,this._isMultipleEdits=!1}async layerSelectionChange(){this._showListView=!1,this._features?.viewModel&&(this._features.viewModel.featureMenuOpen=!1,this._features.close())}async refreshGraphics(e){this._navigatedToRelatedFeature||(this.graphics=[...e.detail])}async editMultipleFeatures(e){this._isMultipleEdits=!0,this._openEditRecord()}async selectedLanguageUpdated(e){this._features?.clear(),this._features?.close(),await this._initFeaturesWidget()}async load(){await this._initModules(),this._popupUtils=new v}async loaded(){this.graphics?.length>0&&await this.setGraphics()}render(){let e=this.isLoading?"":"display-none",t=this.isLoading||this._editRecordOpen?"visibility-hidden":"position-absolute",a=!this.isLoading&&this._editRecordOpen?"position-absolute":"display-none",l=!this.isLoading&&this._editRecordOpen||this._showListView?"display-none":"",r=this._features?.features&&this._features.features.length<2||this._navigatedToRelatedFeature,d=Number(this._features?.selectedFeature?.getObjectId()),y=Number.isNaN(d)?[]:[d],c=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete,$=this._relatedFeature?[this._relatedFeature]:this.graphics,F=this._navigatedToRelatedFeature?0:this._features?.selectedFeatureIndex,n=this.isMobile?"display-none":"";return s`<calcite-shell class="z-index-1" style=${f({position:this.position})}>${this._getHeader()}<calcite-loader class=${i(e)} .label=${this._translations.fetchingData}></calcite-loader><div class=${i("esri-widget feature-node "+t)} id=${this._featuresNodeId??u}></div><div class=${`${l} width-100`} slot=footer>${this.allowEditing?s`<div class="display-flex top-border padding-1-2"><calcite-button appearance=solid id=solutions-edit @click=${()=>this._openEditRecord()} width=full>${this._translations.edit}</calcite-button>${this.isMobile&&c?s`<delete-button class="padding-inline-start-1 width-100" id=solutions-delete .ids=${y} .layer=${this._layer} @editsComplete=${()=>this._closePopup()}></delete-button>`:void 0}<calcite-tooltip class=${i(n)} placement=bottom reference-element=solutions-edit><span>${this._translations.edit}</span></calcite-tooltip>${this.isMobile&&c?s`<calcite-tooltip class=${i(n)} placement=bottom reference-element=solutions-delete><span>${this._translations.delete}</span></calcite-tooltip>`:void 0}</div>`:""}${this.paginationEnabled&&!r&&s`<div class=${"display-flex padding-1-2 button-container top-border"}><div><calcite-button appearance=transparent .disabled=${r} icon-flip-rtl=both icon-start=chevron-left id=solutions-back @click=${()=>this._back()} width=full></calcite-button><calcite-tooltip class=${i(n)} placement=top reference-element=solutions-back><span>${this._translations.back}</span></calcite-tooltip></div><calcite-action class="pagination-action" icon-flip-rtl @click=${()=>this._toggleListView()} scale=s text text-enabled><span class="pagination-count">${this._count}</span></calcite-action><div><calcite-button appearance=transparent .disabled=${r} icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${()=>this._next()} width=full></calcite-button><calcite-tooltip class=${i(n)} placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`||""}</div><edit-card .allowMultipleEditing=${this._isMultipleEdits} class=${i(a)} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${this.enableSnapping} .graphicIndex=${F} .graphics=${$} .mapView=${this.mapView} .open=${this._editRecordOpen}></edit-card><calcite-alert icon=layer-broken kind=warning label @calciteAlertClose=${()=>this._alertClosed()} .open=${this._alertOpen} placement=top><div slot=title>${this._translations.editDisabled}</div><div slot=message>${this._translations.enableEditing}</div></calcite-alert></calcite-shell>`}async _initModules(){let[e,t]=await m(["esri/widgets/Features","esri/core/reactiveUtils"]);this.Features=e,this.reactiveUtils=t}async setGraphics(){this._features||await this._initFeaturesWidget(),this.graphics.length>0?(this._layer=this.graphics[0]?.layer,this._editEnabled=!!(this._layer.editingEnabled&&this._layer.capabilities?.operations.supportsUpdate),this._mobileTitle=this.mapView?.map&&await this._popupUtils?.getPopupTitle(this.graphics[0],this.mapView.map)||"",this._features?.open({features:this.graphics})):(this._features?.clear(),this._features?.close()),this._count=this._getCount()}async _initFeaturesWidget(){return this.isMobile!==void 0?await this.mapView?.when(()=>{if(this._features)this._features.view=this.mapView,this._features.visibleElements.actionBar=!1,this._features.visibleElements.closeButton=!!this.showCloseBtn,this._features.visibleElements.heading=!this.isMobile;else if(this._features=this.Features&&new this.Features({view:this.mapView,container:this._featuresNodeId,visibleElements:{actionBar:!1,closeButton:this.showCloseBtn,featureMenuHeading:!1,heading:!this.isMobile}}),this._features){this._features.viewModel.highlightEnabled=!!this.highlightEnabled,this.reactiveUtils?.watch(()=>(this._features?.viewModel).featureMenuOpen,t=>{this._updateCount(),t||(this._showListView=t)}),this.reactiveUtils?.watch(()=>this._features?.selectedFeatureIndex,t=>{t!==void 0&&t>-1&&this._features?.selectedFeature&&this.selectionChanged.emit({selectedFeature:[this._features.selectedFeature],selectedFeatureIndex:this._features.selectedFeatureIndex})}),this.reactiveUtils?.watch(()=>this._features.selectedDrillInFeature,t=>{t?(this._relatedFeature=t,this._navigatedToRelatedFeature=!0):(this._relatedFeature=void 0,this._navigatedToRelatedFeature=!1)});let e=this.el.querySelector("#"+this._featuresNodeId);this.listenOn(e,"calciteFlowItemClose",()=>{this.clearSelection.emit()})}}):Promise.resolve()}_getHeader(){return this.isMobile&&!this._editRecordOpen?s`<calcite-panel class="border-width-0" slot=header><calcite-action class="end-border" icon=chevron-left icon-flip-rtl @click=${()=>this._closePopup()} scale=s slot=header-actions-start text></calcite-action><span class="font-bold" slot=header-content>${this._mobileTitle}</span></calcite-panel>`:void 0}_closePopup(){this.popupClosed.emit()}_alertClosed(){this._alertOpen=!1}_openEditRecord(){this._editEnabled?this._editRecordOpen=!0:this._alertOpen=!0}async _back(){this._features?.previous(),await this._updateCount()}async _next(){this._features?.next(),await this._updateCount()}async _updateCount(){let e=this._features?.selectedFeatureIndex;this._popupUtils&&this.mapView&&this.mapView.map&&e!==void 0&&(this._mobileTitle=await this._popupUtils.getPopupTitle(this.graphics[e],this.mapView.map)),this._count=this._getCount()}_getCount(){let e=this._features?.viewModel&&(this._features?.viewModel.selectedFeatureIndex+1).toString()||"",t=this._features?.features?.length.toString()||"";return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)||""}_toggleListView(){if(this._showListView=!this._showListView,this._features){let e=this._features.selectedFeatureIndex;this._features.open({features:this.graphics,featureMenuOpen:this._showListView}),this._features.selectedFeatureIndex=e}}};w("info-card",h);export{h as InfoCard};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import"./EAS42GZC.js";var e="U hebt niet genoeg credits om deze actie uit te voeren. Neem contact op met uw ArcGIS-systeembeheerder voor ondersteuning.",a="Deze tool is gepubliceerd vanaf een notebook. Toegang tot ArcGIS Notebooks is geblokkeerd voor uw organisatie. Neem contact op met uw beheerders om de instelling aan te passen.",t="${ dataPath } mag geen ${ additionalProperty } hebben.",r="${ dataPath } moet overeenkomen met het schema van een van deze: ${ schemaOptions }.",n="Probeer de kaart opnieuw op te slaan.",o="Kredietraming is mislukt. Scroll omlaag, corrigeer de fouten en voer een nieuwe kredietraming uit.",i="Er is een fout opgetreden bij het uitvoeren van de analyse.",s="${ dataPath } moet gelijk zijn aan een van deze toegelaten waarden: ${ allowedValues }.",l="Kan analysegeschiedenis niet opslaan",d="Het geschiedenisarchief is vol. Verwijder een paar items uit de analysegeschiedenis en probeer opnieuw op te slaan.",m="De naam van de service bevat een of meer ongeldige tekens.",g="Het opslaan van de tijdelijke laag als gehoste feature layer is niet voltooid.",u="Belangrijkste eigenschappen krijgen mislukt.",c="Kaartlaag laden mislukt.",h="Laag is niet beschikbaar",v="${ dataPath } mag niet meer dan ${ limit } items hebben.",p="Er is een fout opgetreden bij het opslaan van het model. Probeer opnieuw op te slaan.",k="${ dataPath } mag niet minder dan ${ limit } items hebben.",b="${ dataPath } mag niet korter zijn dan ${ limit } tekens.",E="Kan het modelitem niet laden. Controleer of het model bestaat en dat er toegangsmachtigingen zijn verleend.",f="Voltooien van verzoek is mislukt.",y="U bent niet gemachtigd voor het uitvoeren van deze tool. <calcite-link target='_blank' href='${ docLink }'>Meer informatie</calcite-link>",P="Kan niet inloggen bij portal.",S="Kan invoergegevens niet lezen.",w="${ dataPath } mist een eigenschap met de naam ${ missingProperty }.",$="Er bestaat al een resultaatlaag met deze naam. Resultaatlagen moeten uniek zijn binnen de organisatie. Gebruik een andere naam.",j="De uitvoernaam bevat een of meer ongeldige tekens. <a href='${docLink}' target='_blank'>Meer informatie.</a>",F="Het publiceren van de tijdelijke laag als een gehoste laag is mistlukt als gevolg van een of meer ongeldige velden. Voer de tool opnieuw uit om een laag met geldige velden te maken.",I="Taakindiening is mislukt. Scroll omlaag, corrigeer de fouten en voer de analyse opnieuw uit.",T="${ dataPath } moet minstens \xE9\xE9n non-whitespace teken hebben.",z={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:t,anyOfValues:r,cannotWriteToItemResource:n,creditEstimationError:o,defaultError:i,enumValues:s,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:g,keyPropertiesError:u,layerLoadFailure:c,layerUnavailable:h,maxItems:v,mbFailedToSave:p,minItems:k,minLength:b,modelNotFound:E,networkError:f,noPermissionToAccessTool:y,portalLoadError:P,queryFeaturesError:S,requiredProperty:w,serviceNameExistsError:$,specialCharactersInServiceNameError:j,temporaryLayerFieldsError:F,toolValidationError:I,whiteSpacePattern:T};export{e as InsufficientCreditsError,a as accessBlocked,t as additionalProperty,r as anyOfValues,n as cannotWriteToItemResource,o as creditEstimationError,z as default,i as defaultError,s as enumValues,l as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,g as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,c as layerLoadFailure,h as layerUnavailable,v as maxItems,p as mbFailedToSave,k as minItems,b as minLength,E as modelNotFound,f as networkError,y as noPermissionToAccessTool,P as portalLoadError,S as queryFeaturesError,w as requiredProperty,$ as serviceNameExistsError,j as specialCharactersInServiceNameError,F as temporaryLayerFieldsError,I as toolValidationError,T as whiteSpacePattern};
3
+ v1.2.0-next.25 */
4
+ import"./LBWBQTWE.js";var e="U hebt niet genoeg credits om deze actie uit te voeren. Neem contact op met uw ArcGIS-systeembeheerder voor ondersteuning.",a="Deze tool is gepubliceerd vanaf een notebook. Toegang tot ArcGIS Notebooks is geblokkeerd voor uw organisatie. Neem contact op met uw beheerders om de instelling aan te passen.",t="${ dataPath } mag geen ${ additionalProperty } hebben.",r="${ dataPath } moet overeenkomen met het schema van een van deze: ${ schemaOptions }.",n="Probeer de kaart opnieuw op te slaan.",o="Kredietraming is mislukt. Scroll omlaag, corrigeer de fouten en voer een nieuwe kredietraming uit.",i="Er is een fout opgetreden bij het uitvoeren van de analyse.",s="${ dataPath } moet gelijk zijn aan een van deze toegelaten waarden: ${ allowedValues }.",l="Kan analysegeschiedenis niet opslaan",d="Het geschiedenisarchief is vol. Verwijder een paar items uit de analysegeschiedenis en probeer opnieuw op te slaan.",m="De naam van de service bevat een of meer ongeldige tekens.",g="Het opslaan van de tijdelijke laag als gehoste feature layer is niet voltooid.",u="Belangrijkste eigenschappen krijgen mislukt.",c="Kaartlaag laden mislukt.",h="Laag is niet beschikbaar",v="${ dataPath } mag niet meer dan ${ limit } items hebben.",p="Er is een fout opgetreden bij het opslaan van het model. Probeer opnieuw op te slaan.",k="${ dataPath } mag niet minder dan ${ limit } items hebben.",b="${ dataPath } mag niet korter zijn dan ${ limit } tekens.",E="Kan het modelitem niet laden. Controleer of het model bestaat en dat er toegangsmachtigingen zijn verleend.",f="Voltooien van verzoek is mislukt.",y="U bent niet gemachtigd voor het uitvoeren van deze tool. <calcite-link target='_blank' href='${ docLink }'>Meer informatie</calcite-link>",P="Kan niet inloggen bij portal.",S="Kan invoergegevens niet lezen.",w="${ dataPath } mist een eigenschap met de naam ${ missingProperty }.",$="Er bestaat al een resultaatlaag met deze naam. Resultaatlagen moeten uniek zijn binnen de organisatie. Gebruik een andere naam.",j="De uitvoernaam bevat een of meer ongeldige tekens. <a href='${docLink}' target='_blank'>Meer informatie.</a>",F="Het publiceren van de tijdelijke laag als een gehoste laag is mistlukt als gevolg van een of meer ongeldige velden. Voer de tool opnieuw uit om een laag met geldige velden te maken.",I="Taakindiening is mislukt. Scroll omlaag, corrigeer de fouten en voer de analyse opnieuw uit.",T="${ dataPath } moet minstens \xE9\xE9n non-whitespace teken hebben.",z={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:t,anyOfValues:r,cannotWriteToItemResource:n,creditEstimationError:o,defaultError:i,enumValues:s,failedToSaveHistory:l,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:m,hostedFeatureServicePublishDidNotComplete:g,keyPropertiesError:u,layerLoadFailure:c,layerUnavailable:h,maxItems:v,mbFailedToSave:p,minItems:k,minLength:b,modelNotFound:E,networkError:f,noPermissionToAccessTool:y,portalLoadError:P,queryFeaturesError:S,requiredProperty:w,serviceNameExistsError:$,specialCharactersInServiceNameError:j,temporaryLayerFieldsError:F,toolValidationError:I,whiteSpacePattern:T};export{e as InsufficientCreditsError,a as accessBlocked,t as additionalProperty,r as anyOfValues,n as cannotWriteToItemResource,o as creditEstimationError,z as default,i as defaultError,s as enumValues,l as failedToSaveHistory,d as fullSessionStorage,m as hostedFeatureServiceInvalidTitle,g as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,c as layerLoadFailure,h as layerUnavailable,v as maxItems,p as mbFailedToSave,k as minItems,b as minLength,E as modelNotFound,f as networkError,y as noPermissionToAccessTool,P as portalLoadError,S as queryFeaturesError,w as requiredProperty,$ as serviceNameExistsError,j as specialCharactersInServiceNameError,F as temporaryLayerFieldsError,I as toolValidationError,T as whiteSpacePattern};
@@ -0,0 +1,18 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
+ v1.2.0-next.25 */
4
+ import{a as r}from"./5PRG5J4I.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{b as o}from"./6GTTRESX.js";import{E as n,h as a,i as l,o as i}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var c=a`/** @license
5
+ * Copyright 2025 Esri
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */:host{display:block}`,s=class extends n{constructor(){super(...arguments),this.ids=[],this.open=!1,this._isDeleting=!1,this._translations=r({name:"delete-dialog",blocking:!0}),this.editsComplete=i(),this.deleteDialogClose=i()}static{this.properties={ids:0,layer:0,open:5,_isDeleting:16,_translations:16}}static{this.styles=c}render(){let e=this.layer?.title||"",t=this.ids.length===1?(this._translations.confirmSingle||"").replace("{{layer-name}}",e):(this._translations.confirmMultiple||"").replace("{{layer-name}}",e);return l`<calcite-dialog .heading=${this._translations.deleteFeature} kind=danger modal @calciteDialogClose=${()=>this._close()} .open=${this.open} width=s><div>${t}</div><calcite-button appearance=outline kind=danger @click=${()=>this._close()} slot=footer-end width=full>${this._translations.cancel}</calcite-button><calcite-button kind=danger .loading=${this._isDeleting} @click=${()=>void this._deleteFeatures()} slot=footer-end width=full>${this._translations.delete}</calcite-button></calcite-dialog>`}async _deleteFeatures(){if(this.layer){this._isDeleting=!0;let e=this.ids.map(t=>({objectId:Number(t)}));await this.layer.applyEdits({deleteFeatures:e}),this._isDeleting=!1,this._close(),this.editsComplete.emit("delete")}}_close(){this.open=!1,this.deleteDialogClose.emit()}};o("delete-dialog",s);export{s as DeleteDialog};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as n}from"./JGT3UVSS.js";import{b as i}from"./4QNOYSPY.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{E as o,h as a,i as s}from"./6WW2DA2G.js";import"./EAS42GZC.js";var p=a`[role=alert]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}`,r=class extends o{constructor(){super(),this._messages=n({name:"instant-apps-app-error"}),this._handleErrorMessage=this._handleErrorMessage.bind(this),this.listenOn(document,"instant-apps-error",this._handleErrorMessage)}static{this.properties={errorMessage:16}}static{this.styles=p}async clearErrorMessage(){this.errorMessage=void 0}_handleErrorMessage(e){if(!e.detail||!this._messages?.errorMessages)return;let t=this._messages.errorMessages[e.detail];t&&(this.errorMessage=t)}render(){return s`<div role=alert>${this.errorMessage&&s`<p>${this.errorMessage}</p>`||""}</div>`}};i("instant-apps-app-error",r);export{r as InstantAppsAppError};
3
+ v1.2.0-next.25 */
4
+ import{a as n}from"./A7HUHBZM.js";import{b as i}from"./ALYZCHUT.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{E as o,h as a,i as s}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var p=a`[role=alert]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}`,r=class extends o{constructor(){super(),this._messages=n({name:"instant-apps-app-error"}),this._handleErrorMessage=this._handleErrorMessage.bind(this),this.listenOn(document,"instant-apps-error",this._handleErrorMessage)}static{this.properties={errorMessage:16}}static{this.styles=p}async clearErrorMessage(){this.errorMessage=void 0}_handleErrorMessage(e){if(!e.detail||!this._messages?.errorMessages)return;let t=this._messages.errorMessages[e.detail];t&&(this.errorMessage=t)}render(){return s`<div role=alert>${this.errorMessage&&s`<p>${this.errorMessage}</p>`||""}</div>`}};i("instant-apps-app-error",r);export{r as InstantAppsAppError};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as p}from"./KXKFOLKN.js";import{a as n}from"./74AIX5RH.js";var l=1,f=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],u=e=>[{orgId:e}],O={item:f,event:u};function j(e){if(n(e,"schemaVersion")===l)return e;{let t=p(e);return t=d(t),t}}function d(e){if(n(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=n(e,"groups")||[],c=[];Array.isArray(s)&&s.length?c=s:typeof s=="string"&&(c=[s]),c.length&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>Object.assign(Object.assign({},o),{[r[0]]:Object.assign(Object.assign({},r[1]),{filters:[{predicates:[{group:c}]}]})}),{}));let i=n(e,"orgId");return i&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>{let a=r[0],g=r[1];return Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},g),{filters:[...g.filters,{operation:"AND",predicates:O[a](i)}]})})},{})),t}}export{j as a};
3
+ v1.2.0-next.25 */
4
+ import{a as p}from"./QRTCQKT7.js";import{a as n}from"./L3KYVSGX.js";var l=1,f=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],u=e=>[{orgId:e}],O={item:f,event:u};function j(e){if(n(e,"schemaVersion")===l)return e;{let t=p(e);return t=d(t),t}}function d(e){if(n(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=n(e,"groups")||[],c=[];Array.isArray(s)&&s.length?c=s:typeof s=="string"&&(c=[s]),c.length&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>Object.assign(Object.assign({},o),{[r[0]]:Object.assign(Object.assign({},r[1]),{filters:[{predicates:[{group:c}]}]})}),{}));let i=n(e,"orgId");return i&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>{let a=r[0],g=r[1];return Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},g),{filters:[...g.filters,{operation:"AND",predicates:O[a](i)}]})})},{})),t}}export{j as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{e as t,g as i}from"./ENUF5QK4.js";function n(r){let o=r&&r.hubApiUrl;return o||i(t(r))}export{n as a};
3
+ v1.2.0-next.25 */
4
+ import{e as t,g as i}from"./ZRNE7ON4.js";function n(r){let o=r&&r.hubApiUrl;return o||i(t(r))}export{n as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as r}from"./CSH7RK4L.js";import"./KSO7CXKH.js";import"./GFXNHLR7.js";import"./CYG5JUF7.js";import"./3E3IBLXH.js";import"./EROCJUGG.js";import"./VX2H4KEW.js";import"./L2WHYM3J.js";import"./ZAL2JPN6.js";import"./ENUF5QK4.js";import"./BOHI7OOB.js";import"./KXKFOLKN.js";import"./XIKGCL6Z.js";import"./EYIL3WCN.js";import"./IMPPWVVG.js";import"./YMNTHO2F.js";import"./4SOCIVF6.js";import"./R6MJ3BWC.js";import"./ZVYGJ3ZV.js";import"./74AIX5RH.js";import"./T5CPOSYR.js";import"./27VT6FGO.js";import{a as d}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b as p}from"./443EHILD.js";import{E as l,h,i as n,l as a}from"./6WW2DA2G.js";import"./EAS42GZC.js";var g=h`/** @license
3
+ v1.2.0-next.25 */
4
+ import{a as r}from"./EEKC5HMJ.js";import"./XKYABGIY.js";import"./Q65LQ4DS.js";import"./PL2DLTJ3.js";import"./47LITZGW.js";import"./3KS7ECJI.js";import"./Q6KR2MGM.js";import"./6DG5GYU6.js";import"./KXRDDOMY.js";import"./ZRNE7ON4.js";import"./NL3W622Y.js";import"./QRTCQKT7.js";import"./WYFCB3NO.js";import"./OX2XBEMJ.js";import"./33CKROVW.js";import"./I6F7SK7X.js";import"./ZJBXIMRS.js";import"./LQ2RKGNR.js";import"./TND7L4TG.js";import"./L3KYVSGX.js";import"./AF4HG5KQ.js";import"./RDASDC76.js";import{a as d}from"./5PRG5J4I.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{b as p}from"./6GTTRESX.js";import{E as l,h,i as n,l as a}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var g=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.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import"./EAS42GZC.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
3
+ v1.2.0-next.25 */
4
+ import"./LBWBQTWE.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
3
+ v1.2.0-next.25 */
4
4
  var t="cannotDiscuss";export{t as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as v}from"./DK5FUIGH.js";import{b as I}from"./T6FIJDJK.js";import{a as w,b as f,d as y}from"./R22HIDGZ.js";import"./27VT6FGO.js";import"./4BXRZ62B.js";import{a as L}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b as u}from"./443EHILD.js";import{C as o,D as d,E as g,G as p,H as c,h as b,i as a,l,o as h,r as _}from"./6WW2DA2G.js";import"./EAS42GZC.js";var $=b`@layer{/** @license
3
+ v1.2.0-next.25 */
4
+ import{a as v}from"./6B3LITRW.js";import{b as I}from"./6HWRE6RG.js";import{a as w,b as f,d as y}from"./KVGWKRTF.js";import"./RDASDC76.js";import"./XEUITAUW.js";import{a as L}from"./5PRG5J4I.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{b as u}from"./6GTTRESX.js";import{C as o,D as d,E as g,G as p,H as c,h as b,i as a,l,o as h,r as _}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var $=b`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
3
+ v1.2.0-next.25 */
4
4
  function c(e){let t={};if(Array.isArray(e))t=e.map(c);else if(typeof e=="object"){if(e===null)return e;for(let r in e)if(e.hasOwnProperty(r)){let n=e[r];n!=null&&typeof n=="object"?n instanceof Date?t[r]=new Date(n.getTime()):typeof Blob<"u"&&n instanceof Blob?t[r]=new Blob([n],{type:n.type}):t[r]=c(n):t[r]=n}}else t=e;return t}function s(e,t){return e.filter(n=>n!==t)}function l(e="i"){return`${e}${Math.random().toString(36).substr(2,8)}`}function a(e,t){return e!=null&&(t=c(t),t.push(e)),t}function d(e){e=e.toLowerCase(),e=e.replace(/[`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi," ");let t=/(\-|\_|\.|\s)+(.)?/g,r=/(^|\/)([A-Z])/g;return e.replace(t,function(n,i,u){return u?u.toUpperCase():""}).replace(r,function(n,i,u){return n.toLowerCase()})}function p(e,t,r){return r.indexOf(e)===t}function f(e,t,r=!0){let n=c(e);return Object.keys(t).reduce((i,u)=>{if(t[u]!==null&&t[u]!==void 0){let o=c(t[u]);Array.isArray(o)?i[u]=o:r&&typeof o=="object"?i[u]=f(i[u]||{},o,r):i[u]=o}return i},n)}function x(e,t){let r=[],n=0;for(;n<e.length;)r.push(e.slice(n,n+t)),n+=t;return r}var y=e=>e==null;export{c as a,s as b,l as c,a as d,d as e,p as f,f as g,x as h,y as i};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b as n}from"./443EHILD.js";import{E as r,I as e,h as s,i as t}from"./6WW2DA2G.js";import"./EAS42GZC.js";var c=s`/** @license
3
+ v1.2.0-next.25 */
4
+ import{a}from"./5PRG5J4I.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{b as n}from"./6GTTRESX.js";import{E as r,I as e,h as s,i as t}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var c=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.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as Y}from"./GFXNHLR7.js";import{a as J}from"./3WHGZJJS.js";import{a as F}from"./WUTY55ZF.js";import{a as w}from"./HBNX26U7.js";import{a as W,b as H}from"./RY2JRQIA.js";import{d as N,g as B,h as V,i as X}from"./3E3IBLXH.js";import{b as h,c as E}from"./T6DIELVZ.js";import{m as u,p as T}from"./EROCJUGG.js";import"./BTLVFHR2.js";import"./VX2H4KEW.js";import"./L2WHYM3J.js";import{b as S,d as C,f as R}from"./ZAL2JPN6.js";import"./O4ZKMCDY.js";import{i as j}from"./ENUF5QK4.js";import"./BOHI7OOB.js";import{a as m,c as M,e as P,i as l}from"./KXKFOLKN.js";import"./XIKGCL6Z.js";import"./KTJDLUIU.js";import"./EYIL3WCN.js";import{a as A,b as O}from"./IMPPWVVG.js";import{s as L}from"./YMNTHO2F.js";import"./4SOCIVF6.js";import"./R6MJ3BWC.js";import{a as f}from"./ZVYGJ3ZV.js";import"./74AIX5RH.js";import"./T5CPOSYR.js";import{b as g}from"./CQIWHMR3.js";import"./EAS42GZC.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
3
+ v1.2.0-next.25 */
4
+ import{a as Y}from"./Q65LQ4DS.js";import{a as J}from"./PMDK5BSC.js";import{a as F}from"./X5BGIPQE.js";import{a as w}from"./XGRYQZ2O.js";import{a as W,b as H}from"./LIWWQNG7.js";import{d as N,g as B,h as V,i as X}from"./47LITZGW.js";import{b as h,c as E}from"./TE3EPYCD.js";import{m as u,p as T}from"./3KS7ECJI.js";import"./GBUQQPYG.js";import"./Q6KR2MGM.js";import"./6DG5GYU6.js";import{b as S,d as C,f as R}from"./KXRDDOMY.js";import"./QFU7UBJX.js";import{i as j}from"./ZRNE7ON4.js";import"./NL3W622Y.js";import{a as m,c as M,e as P,i as l}from"./QRTCQKT7.js";import"./WYFCB3NO.js";import"./XIT7U76G.js";import"./OX2XBEMJ.js";import{a as A,b as O}from"./33CKROVW.js";import{s as L}from"./I6F7SK7X.js";import"./ZJBXIMRS.js";import"./LQ2RKGNR.js";import{a as f}from"./TND7L4TG.js";import"./L3KYVSGX.js";import"./AF4HG5KQ.js";import{b as g}from"./7F33ZVRA.js";import"./LBWBQTWE.js";function z(e,o=!1){let{id:i,properties:r}=e,t=r?.slug;return t?S(o?R(t,i):t):i}var y;(function(e){e.BETWEEN="between",e.IS_EXACTLY="isExactly",e.LIKE="like"})(y||(y={}));var d;(function(e){e.visible="visible",e.hidden="hidden",e.featured="featured"})(d||(d={}));function G(e,o){var i;let r=e._slug;delete e._slug;let t=m(e);return t.orgUrlKey=e.orgUrlKey?e.orgUrlKey:o.urlKey||"",t.extent=(i=e.location)===null||i===void 0?void 0:i.extent,r?t.slug=C(r,t.orgUrlKey):t.slug="",t}function Q(e,o){let i=Object.assign(Object.assign({},o),e),r=Object.keys(o);return Object.keys(i).reduce((n,s)=>(r.includes(s)||n.push(s),n),[]).forEach(n=>{delete i[n]}),i}function Z(e,o){let i;return o.authentication&&(i=o.authentication.token),{self:j(e.id,o),siteRelative:T(e.type,z(e),e.typeKeywords),siteRelativeEntityType:T(e.type),workspaceRelative:J(e.type,e.id),thumbnail:u(e,o,i)}}var I="Hub Project",q={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:1,status:g.notStarted,tags:[],typeKeywords:[I],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:A},ee={item:{type:I,title:"",description:"",snippet:"",tags:[],typeKeywords:[I],properties:{slug:"",schemaVersion:1}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:g.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function te(e,o){return Z(e,o)}function K(e,o,i){var r,t;let n;return i.authentication&&(n=i.authentication.token),o=H(e.item,o),o.thumbnailUrl=u(e.item,i,n),o.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(r=e.data.view)===null||r===void 0?void 0:r.featuredImageUrl}),o.catalog=Y(o.catalog||{}),o.features=Q(((t=e.data.settings)===null||t===void 0?void 0:t.features)||{},O),o.links=te(e.item,i),o}function b(){let e=W();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"location",storeKey:"item.properties.location"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function ie(e={displayType:"stat-card",metricId:void 0},o,i){let{value:r,valueType:t,dynamicMetric:n}=e,s=F(e,["value","valueType","dynamicMetric"]),{layerId:a,itemId:c,field:p,statistic:_,serviceUrl:oe,fieldType:se,sourceLink:x,sourceTitle:k,allowExpressionSet:D,expressionSet:$,legacyWhere:U}=n||{},{entityInfo:ne,metricName:ae}=i||{},ce={source:e.type==="dynamic"?{type:"service-query",serviceUrl:oe,layerId:a,field:p,statistic:_,where:U||pe(D?$:[])}:{type:"static-value",value:r,valueType:t},name:ae||o,entityInfo:ne||{id:void 0,name:void 0,type:void 0},id:o};delete s.itemId;let me=Object.assign(Object.assign({},s),{displayType:s.displayType||"stat-card",visibility:s.visibility||d.hidden,metricId:o,fieldType:se,itemId:c,expressionSet:$,allowExpressionSet:D,statistic:_,sourceLink:e.type==="dynamic"&&x?x:s.sourceLink,sourceTitle:e.type==="dynamic"&&k?k:s.sourceTitle,allowLink:e.type==="dynamic"?s.allowDynamicLink:s.allowLink,type:e.type});return{metric:ce,displayConfig:me}}function pe(e=[]){let o=e.map(i=>{let{field:r,values:t,relationship:n}=i,s=c=>c.replace&&c.replace(/(['])/g,"$1$1");if(!t||!t.length||!r||!r.name)return!1;let a;switch(r.type){case"esriFieldTypeString":a=n===y.LIKE?`${r.name} like '%${t[0]}%'`:`(${r.name} IN (${t.map(c=>`'${s(c)}'`).join(", ")}))`;break;case"esriFieldTypeDate":typeof t[0]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00'`),typeof t[1]=="string"&&(a=`${r.name} <= timestamp '${s(t[1])} 23:59:59'`),typeof t[0]=="string"&&typeof t[1]=="string"&&(a=`${r.name} >= timestamp '${s(t[0])} 00:00:00' AND ${r.name} <= timestamp '${s(t[1])} 23:59:59'`);break;default:l(t[0])||(a=`(${r.name}) >= ${t[0]}`),l(t[1])||(a=`(${r.name}) <= ${t[1]}`),!l(t[0])&&!l(t[1])&&(a=`(${r.name}) >= ${t[0]} AND (${r.name}) <= ${t[1]}`);break}return a}).filter(Boolean).join(" AND ")||"1=1";return encodeURIComponent(o)}function v(e,o){let i=e.filter(r=>!r.startsWith("status|"));return i.push(`status|${o}`),i}function re(e,o,i){let r=m(e),t=o.id,n=f(r,"metrics",[]),s=n.findIndex(p=>p.id===t),a=f(r,"view.metricDisplays",[]),c=a.findIndex(p=>p.metricId===t);return s>-1?n[s]=o:n.push(o),c>-1?a[c]=i:a.push(i),r.view.metricDisplays=a,r.metrics=n,r}async function ct(e,o){let i=Object.assign(Object.assign({},q),e);i.slug||(i.slug=N(i.name,i.orgUrlKey)),await w(i,o),i.typeKeywords=v(i.typeKeywords,i.status),i.typeKeywords=h(i.typeKeywords,i.isDiscussable);let r=new E(b()),t=r.entityToStore(i,m(ee));t=await V(t,o);let n=r.storeToEntity(t,{});return n=K(t,n,o),n}function mt(e,o){var i;let r=e._metric;delete e._groups,delete e._thumbnail,(i=e.view)===null||i===void 0||delete i.featuredImage,delete e._metric,delete e._groups;let t=G(e,o);if(r&&Object.keys(r).length){let n=r.metricId||M(P(`${r.cardTitle}_`)),{metric:s,displayConfig:a}=ie(r,n,{metricName:r.cardTitle});t=re(t,s,a)}return t}async function pt(e,o){await w(e,o),e.typeKeywords=v(e.typeKeywords,e.status),e.typeKeywords=h(e.typeKeywords,e.isDiscussable);let i=await B(e.id,o),r=new E(b()),t=r.entityToStore(e,i),n=await X(t,o),s=r.storeToEntity(n,e);return s=K(i,s,o),s}async function lt(e,o){let i=Object.assign(Object.assign({},o),{id:e});await L(i)}export{ct as createProject,lt as deleteProject,mt as editorToProject,pt as updateProject};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as q}from"./QYQTOIF6.js";import{a as w}from"./PZ5GGYLN.js";import{a as M}from"./JGT3UVSS.js";import{C as T,b as v,c as F,z as P}from"./BF6B5YPC.js";import{b as S}from"./4QNOYSPY.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{E as k,G as y,h as E,i as h,l as $,o as U}from"./6WW2DA2G.js";import"./EAS42GZC.js";var n=(a=>(a.Loading="loading",a.Disabled="disabled",a.Complete="complete",a.Calculating="calculating",a.Bottom="bottom",a.Left="left",a.Right="right",a.Floating="floating",a.Pinned="pinned",a))(n||{}),g=(a=>(a.Up="chevron-up",a.Down="chevron-down",a.Left="chevron-left",a.Right="chevron-right",a.Blank="blank",a))(g||{}),I=(a=>(a.Small="s",a.Medium="m",a.Large="l",a))(I||{}),R=(a=>(a.Transparent="transparent",a))(R||{}),L=(a=>(a.Start="start",a.Center="center",a))(L||{}),N=E`:host{display:block;--instant-apps-scoreboard-background-color: var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color: var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom: 0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0 3px 15px #0003;border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding: 1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%,-15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:.5vh;padding-bottom:.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}`,x="instant-apps-scoreboard",O=6,B=`${x}--`,m=`${x}__`,j=q.medium[1],r={itemsContainer:`${m}items-container`,items:`${m}items`,item:`${m}item`,label:`${m}item-label`,value:`${m}item-value`,valuePlaceholder:`${m}item-value-placeholder`,position:{bottom:`${m}position--bottom`,side:`${m}position--side`,left:`${m}position--left`,right:`${m}position--right`},mode:{floating:`${m}mode--floating`,pinned:`${m}mode--pinned`}},V=class extends k{constructor(){super(...arguments),this._messages=M({name:"instant-apps-scoreboard"}),this.state=n.Loading,this.itemIndex=0,this.isMobile=!1,this.position=n.Bottom,this.mode=n.Floating,this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.scoreboardItemsUpdated=U()}static{this.properties={state:16,itemIndex:16,layers:16,layerViews:16,isMobile:16,view:0,items:0,position:0,mode:0,itemLimit:9,autoDockEnabled:5,geometry:0,queryType:1}}static{this.styles=N}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<j:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(e=>e.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),e=this.items.slice(this.items.length-t).map(s=>s.uid),o=this.items.slice(this.itemIndex,this.itemIndex+t).map(s=>s.uid);return e.every((s,c)=>s===o[c])}async load(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});if(this.el?.parentElement&&t.observe(this.el.parentElement),!this.view||!this.items)this.state=n.Disabled;else try{await this.initModules()}catch{this.state=n.Disabled}}willUpdate(t){t.has("items")&&this.generateUIDs(),t.has("items")&&this.storeLayers(),t.has("layers")&&this.storeLayerViews(),t.has("geometry")&&(this.hasUpdated||this.geometry!==null)&&this.calculateScoreboardItemValuesFromGeometry(),t.has("layerViews")&&this.calculateScoreboardItemValues()}async loaded(){if(this.state!==n.Disabled)try{await this.reactiveUtils?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state=n.Disabled,console.error(`${x}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){super.disconnectedCallback(),this.state=n.Disabled,this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state=n.Calculating,await(this.view?.map).loadAll();let t=this.items.map(i=>i?.layer?.id),e=i=>i.type!=="feature"||!i.isTable,o=i=>i.type==="feature"||i.type==="scene",s=i=>t.includes(i.id),c=i=>e(i)&&o(i)&&s(i);this.layers=this.view?.map?.allLayers?.filter(i=>c(i)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(s=>s.outFields=["*"]);let t=[];this.layers.forEach(s=>{let c=s,i=this.view?.whenLayerView(c);t.push(i)});let e=(await Promise.allSettled(t)).filter(s=>s.status==="fulfilled"&&s.value).map(s=>s.value),o=[];e.forEach(s=>o.push(this.reactiveUtils?.whenOnce(()=>!s.updating))),await Promise.all(o),this.layerViews=await v([...e])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state=n.Calculating;let t=[...this.items],e=[];this.queryStatDefinitions(t,e);let o=await Promise.all(e);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(s=>this.items.push(s)),this.state=n.Complete,this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async initModules(){try{let[t,e]=await Promise.all([P(),T()]);this.reactiveUtils=t,this.intl=e,this.handles=await F(),this.layers=await v([]),this.layerViews=await v([])}catch(t){throw console.error(t),this.state=n.Disabled,new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,e=t;try{await e.loadAll()}catch(o){throw console.error(o),this.state=n.Disabled,new Error("Failed to load map resources")}}}generateUID(){return t=>{let e=Math.random(),o=Math.floor(Math.random()*10)+11,s=e.toString(o).replace("0.","");t.uid=s}}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,e){let o=i=>{let{field:l,operation:d}=i,p=l,b=`${l}_${d}`;return{onStatisticField:p,outStatisticFieldName:b,statisticType:d}},s=(i,l)=>{let d=this.queryType==="layer"?i.layer.createQuery():i.createQuery(),p=[l],b=this.geometry??this.view?.extent;d.outStatistics=p,d.geometry=b;let u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null;return u&&(d.timeExtent=u),d},c=()=>async i=>{let l=this.layerViews?.find(u=>u.layer.id===i?.layer?.id);if(!l)return;let d=o(i),p=s(l,d),b=this.queryType==="layer"?l.layer.queryFeatures(p):l.queryFeatures(p);e.push(b)};t.forEach(c())}handleQueryFeaturesResponses(t,e){let o=i=>{let l=i.features[0],{attributes:d}=l;return Object.values(d)[0]},s=()=>({notation:"compact",compactDisplay:"short"}),c=()=>(i,l)=>{let d=o(i),p=s(),b=d!==null,u=b?this.intl.formatNumber(d,p):null,_=b?`${u}`:"";e[l].displayValue=_,e[l].value=d};t.forEach(c())}initStationaryWatcher(){let t={once:!0,initial:!0},e=()=>this.reactiveUtils?.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>this.reactiveUtils?.when(()=>this.view?.stationary,()=>e()),s="stationary-watcher-key";this.handles?.has(s)&&this.handles.remove(s),this.handles?.add(o(),s)}initViewUpdateWatcher(){return this.reactiveUtils.watch(()=>this.view?.updating,()=>{this.reactiveUtils.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let e=[],o=s=>{let c=async()=>{let l=await this.view?.whenLayerView(s);await this.reactiveUtils.whenOnce(()=>!l?.updating),this.calculateScoreboardItemValues()},i=this.reactiveUtils.watch(()=>s?.visible,async()=>await c());e.push(i)};this.layers.forEach(o),this.handles?.add([...e],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?O:this.itemLimit}setHostClassNames(){this.isMobile||this.position===n.Bottom?(this.el.classList.remove(r.position.side,r.position.left,r.position.right),this.el.classList.add(r.position.bottom)):(this.el.classList.remove(r.position.bottom),this.el.classList.add(r.position.side),this.position===n.Left?(this.el.classList.remove(r.position.right),this.el.classList.add(r.position.left)):(this.el.classList.remove(r.position.left),this.el.classList.add(r.position.right))),this.isMobile?(this.el.classList.remove(r.mode.floating),this.el.classList.add(r.mode.pinned)):this.mode===n.Floating?(this.el.classList.remove(r.mode.pinned),this.el.classList.add(r.mode.floating)):this.el.classList.add(r.mode.pinned)}render(){let{state:t}=this,e=t===n.Loading,o=t===n.Calculating,s=t===n.Disabled,c=e||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null;return this.setHostClassNames(),s?null:[c,this.items?.length>0?this.renderBase():null]}renderBase(){return w("instant-apps-scoreboard-base",h`<div class=${y(x)}>${this.renderContent()}</div>`)}renderContent(){let{state:t}=this;return t===n.Loading?this.renderLoader():t===n.Calculating||t===n.Complete?this.renderItemsContainer():null}renderItemsContainer(){let[t,e]=this.renderPreviousNextButtons();return h`<div class=${y(r.itemsContainer)}>${t}${this.renderItems()}${e}</div>`}renderPreviousNextButtons(){let t=this.getItemLimit(),e=this.items.filter(A=>A.visible)?.length<=t,o=this.itemIndex===0,s=this.isEnd,c=this.isMobile?!0:this.position===n.Bottom,i=c?L.Start:L.Center,l=c?g.Left:g.Up,d=c?g.Right:g.Down,p={previous:l,next:d},b=o||e?g.Blank:p.previous,u=s||e?g.Blank:p.next,_={previous:o||e,next:s||e},C=R.Transparent,D=this.isMobile?I.Small:I.Large,f={previous:this._messages.previous,next:this._messages.next};return[h`<calcite-action @click=${this.previousItem} .icon=${b} .disabled=${_.previous} .alignment=${i} .scale=${D} .appearance=${C} .text=${f.previous??""} .label=${f.previous}></calcite-action>`,h`<calcite-action @click=${this.nextItem} .icon=${u} .disabled=${_.next} .alignment=${i} .scale=${D} .appearance=${C} .text=${f.next??""} .label=${f.next}></calcite-action>`]}renderItems(){let{items:t}=r,e=this.getItemsToDisplay.map(o=>this.renderItem(o));return h`<ul class=${y(t)}>${e}</ul>`}renderItem(t){let{label:e}=t;return h`<li class=${y(r.item)}><span class=${y(r.label)} title=${e??$}>${e}</span>${this.renderValue(t)}</li>`}renderValue(t){let{displayValue:e}=t,o=this.state===n.Calculating,s=this.state===n.Disabled,c=e===void 0&&o,i=e||this._messages.NA,l=!this.layers?.find(p=>t?.layer?.id===p.id)?.visible,d=c?this.renderValuePlaceholder():s?"":l?h`<calcite-icon icon=view-hide scale=l title=${this._messages.layerVisibilityOff??$}></calcite-icon>`:i;return h`<span class=${y(r.value)}>${d}</span>`}renderValuePlaceholder(){return h`<span class=${y(r.valuePlaceholder)}></span>`}renderProgress(){let t=`${B}calcite-`;return w(`${t}progress`,h`<calcite-progress type=indeterminate></calcite-progress>`)}renderLoader(){let t=`${B}calcite-`,e=this._messages.loading;return w(`${t}loader`,h`<calcite-loader .label=${e??""} .text=${e} scale=m></calcite-loader>`)}};S("instant-apps-scoreboard",V);export{V as InstantAppsScoreboard};
3
+ v1.2.0-next.25 */
4
+ import{a as q}from"./7VSEOVSU.js";import{a as w}from"./27CMSLNL.js";import{a as M}from"./A7HUHBZM.js";import{C as T,b as v,c as F,z as P}from"./ZWIILL33.js";import{b as S}from"./ALYZCHUT.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{E as k,G as y,h as E,i as h,l as $,o as U}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var n=(a=>(a.Loading="loading",a.Disabled="disabled",a.Complete="complete",a.Calculating="calculating",a.Bottom="bottom",a.Left="left",a.Right="right",a.Floating="floating",a.Pinned="pinned",a))(n||{}),g=(a=>(a.Up="chevron-up",a.Down="chevron-down",a.Left="chevron-left",a.Right="chevron-right",a.Blank="blank",a))(g||{}),I=(a=>(a.Small="s",a.Medium="m",a.Large="l",a))(I||{}),R=(a=>(a.Transparent="transparent",a))(R||{}),L=(a=>(a.Start="start",a.Center="center",a))(L||{}),N=E`:host{display:block;--instant-apps-scoreboard-background-color: var(--calcite-color-foreground-1);--instant-apps-scoreboard-text-color: var(--calcite-color-text-1);--instant-apps-scoreboard-mobile-position-bottom: 0;background-color:var(--instant-apps-scoreboard-background-color);color:var(--instant-apps-scoreboard-text-color)}:host .instant-apps-scoreboard{box-sizing:border-box;border:1px solid var(--calcite-color-border-1);box-shadow:0 3px 15px #0003;border-radius:3px}:host .instant-apps-scoreboard calcite-loader{--calcite-loader-padding: 1rem}:host .instant-apps-scoreboard__items-container{display:flex}:host .instant-apps-scoreboard__items-container calcite-action{height:100%}:host .instant-apps-scoreboard__items,:host .instant-apps-scoreboard__item{box-sizing:border-box;display:flex}:host .instant-apps-scoreboard__items{list-style-type:none;padding-left:0;margin:0;padding-top:1.75%;padding-bottom:1.75%;width:100%}:host .instant-apps-scoreboard__item{flex-direction:column;justify-content:flex-end;align-items:center;padding:1%}:host .instant-apps-scoreboard__item-label{box-sizing:border-box;line-height:24px;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;word-break:break-word}:host .instant-apps-scoreboard__item-label{font-size:1rem;font-weight:400;text-align:center}:host .instant-apps-scoreboard__item-value{display:flex;justify-content:center;align-items:center;min-width:32px;min-height:32px;margin-top:5px;font-size:1.5rem;font-weight:900}:host .instant-apps-scoreboard__item-value-placeholder{display:inline-block;width:32px;height:32px;background-color:var(--calcite-color-foreground-3);border-radius:4px}:host(.instant-apps-scoreboard__position--bottom){bottom:0}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__items{display:flex;justify-content:center}:host(.instant-apps-scoreboard__position--bottom) .instant-apps-scoreboard__item{min-width:10vw;vertical-align:top}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating){left:50%;max-width:calc(100% - 30px);transform:translate(-50%,-15px)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:25vw}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){left:unset;bottom:0;transform:unset;width:100%}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{min-width:unset}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{width:100%;justify-content:space-between}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard{display:flex;justify-content:center;align-items:center;width:10vw;overflow-y:auto}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container{flex-direction:column;height:100%;box-sizing:border-box}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items-container calcite-action{height:unset;width:100%}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__items{flex-direction:column;padding:10px}:host(.instant-apps-scoreboard__position--side) .instant-apps-scoreboard__item{padding-top:.5vh;padding-bottom:.5vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating){top:15px;left:15px;max-height:calc(100% - 30px)}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--floating) .instant-apps-scoreboard{min-width:10vw;min-height:35vh}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned){top:unset;left:unset;transform:unset;height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard{height:100%}:host(.instant-apps-scoreboard__position--side.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__items-container{justify-content:space-between}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--floating){left:15px}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--floating){left:unset;right:15px}:host(.instant-apps-scoreboard__position--left.instant-apps-scoreboard__mode--pinned){left:0}:host(.instant-apps-scoreboard__position--right.instant-apps-scoreboard__mode--pinned){left:unset;right:0}@media only screen and (min-width: 992px){:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned){bottom:var(--instant-apps-scoreboard-mobile-position-bottom)}:host(.instant-apps-scoreboard__position--bottom.instant-apps-scoreboard__mode--pinned) .instant-apps-scoreboard__item{justify-content:center;min-width:unset;flex-grow:1}}`,x="instant-apps-scoreboard",O=6,B=`${x}--`,m=`${x}__`,j=q.medium[1],r={itemsContainer:`${m}items-container`,items:`${m}items`,item:`${m}item`,label:`${m}item-label`,value:`${m}item-value`,valuePlaceholder:`${m}item-value-placeholder`,position:{bottom:`${m}position--bottom`,side:`${m}position--side`,left:`${m}position--left`,right:`${m}position--right`},mode:{floating:`${m}mode--floating`,pinned:`${m}mode--pinned`}},V=class extends k{constructor(){super(...arguments),this._messages=M({name:"instant-apps-scoreboard"}),this.state=n.Loading,this.itemIndex=0,this.isMobile=!1,this.position=n.Bottom,this.mode=n.Floating,this.itemLimit=6,this.autoDockEnabled=!0,this.geometry=null,this.queryType="layerView",this.scoreboardItemsUpdated=U()}static{this.properties={state:16,itemIndex:16,layers:16,layerViews:16,isMobile:16,view:0,items:0,position:0,mode:0,itemLimit:9,autoDockEnabled:5,geometry:0,queryType:1}}static{this.styles=N}get checkMobile(){let t=this.el?.parentElement?.offsetWidth;return t&&!Number.isNaN(t)&&t>0?t<j:!1}get getItemsToDisplay(){let t=this.getItemLimit();return this.items.filter(e=>e.visible).slice(this.itemIndex,t+this.itemIndex)}get isEnd(){let t=this.getItemLimit(),e=this.items.slice(this.items.length-t).map(s=>s.uid),o=this.items.slice(this.itemIndex,this.itemIndex+t).map(s=>s.uid);return e.every((s,c)=>s===o[c])}async load(){let t=new ResizeObserver(()=>{this.itemIndex=0,this.autoDockEnabled&&(this.isMobile=!!this.checkMobile)});if(this.el?.parentElement&&t.observe(this.el.parentElement),!this.view||!this.items)this.state=n.Disabled;else try{await this.initModules()}catch{this.state=n.Disabled}}willUpdate(t){t.has("items")&&this.generateUIDs(),t.has("items")&&this.storeLayers(),t.has("layers")&&this.storeLayerViews(),t.has("geometry")&&(this.hasUpdated||this.geometry!==null)&&this.calculateScoreboardItemValuesFromGeometry(),t.has("layerViews")&&this.calculateScoreboardItemValues()}async loaded(){if(this.state!==n.Disabled)try{await this.reactiveUtils?.whenOnce(()=>this.view?.ready),this.generateUIDs(),await this.loadMapResources(),this.storeLayers(),this.initViewUpdateWatcher()}catch{this.state=n.Disabled,console.error(`${x}: FAILED TO LOAD MAP RESOURCES`)}}disconnectedCallback(){super.disconnectedCallback(),this.state=n.Disabled,this.itemIndex=0,this.layers?.removeAll(),this.layers?.destroy(),this.layers=null,this.layerViews?.removeAll(),this.layerViews?.destroy(),this.layerViews=null,this.handles?.removeAll(),this.handles?.destroy(),this.handles=null}scoreboardItemsUpdatedHandler(){this.scoreboardItemsUpdated.emit(this.items)}generateUIDs(){this.itemIndex=0,this.items.forEach(this.generateUID())}async storeLayers(){this.state=n.Calculating,await(this.view?.map).loadAll();let t=this.items.map(i=>i?.layer?.id),e=i=>i.type!=="feature"||!i.isTable,o=i=>i.type==="feature"||i.type==="scene",s=i=>t.includes(i.id),c=i=>e(i)&&o(i)&&s(i);this.layers=this.view?.map?.allLayers?.filter(i=>c(i)),this.watchLayerVisibility()}async storeLayerViews(){if(this.layers&&this.layers.length>0){this.layers.forEach(s=>s.outFields=["*"]);let t=[];this.layers.forEach(s=>{let c=s,i=this.view?.whenLayerView(c);t.push(i)});let e=(await Promise.allSettled(t)).filter(s=>s.status==="fulfilled"&&s.value).map(s=>s.value),o=[];e.forEach(s=>o.push(this.reactiveUtils?.whenOnce(()=>!s.updating))),await Promise.all(o),this.layerViews=await v([...e])}}calculateScoreboardItemValuesFromGeometry(){this.calculateScoreboardItemValues()}async calculateScoreboardItemValues(){if(this.layers&&this.layers.length===0||this.layerViews&&this.layerViews.length===0)return;this.state=n.Calculating;let t=[...this.items],e=[];this.queryStatDefinitions(t,e);let o=await Promise.all(e);this.handleQueryFeaturesResponses(o,t),this.items.length=0,t.forEach(s=>this.items.push(s)),this.state=n.Complete,this.scoreboardItemsUpdatedHandler(),this.initStationaryWatcher()}async initModules(){try{let[t,e]=await Promise.all([P(),T()]);this.reactiveUtils=t,this.intl=e,this.handles=await F(),this.layers=await v([]),this.layerViews=await v([])}catch(t){throw console.error(t),this.state=n.Disabled,new Error("Failed to initialize modules")}}async loadMapResources(){if(this.view){let{map:t}=this.view,e=t;try{await e.loadAll()}catch(o){throw console.error(o),this.state=n.Disabled,new Error("Failed to load map resources")}}}generateUID(){return t=>{let e=Math.random(),o=Math.floor(Math.random()*10)+11,s=e.toString(o).replace("0.","");t.uid=s}}previousItem(){this.itemIndex=this.itemIndex-1}nextItem(){this.itemIndex=this.itemIndex+1}queryStatDefinitions(t,e){let o=i=>{let{field:l,operation:d}=i,p=l,b=`${l}_${d}`;return{onStatisticField:p,outStatisticFieldName:b,statisticType:d}},s=(i,l)=>{let d=this.queryType==="layer"?i.layer.createQuery():i.createQuery(),p=[l],b=this.geometry??this.view?.extent;d.outStatistics=p,d.geometry=b;let u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null;return u&&(d.timeExtent=u),d},c=()=>async i=>{let l=this.layerViews?.find(u=>u.layer.id===i?.layer?.id);if(!l)return;let d=o(i),p=s(l,d),b=this.queryType==="layer"?l.layer.queryFeatures(p):l.queryFeatures(p);e.push(b)};t.forEach(c())}handleQueryFeaturesResponses(t,e){let o=i=>{let l=i.features[0],{attributes:d}=l;return Object.values(d)[0]},s=()=>({notation:"compact",compactDisplay:"short"}),c=()=>(i,l)=>{let d=o(i),p=s(),b=d!==null,u=b?this.intl.formatNumber(d,p):null,_=b?`${u}`:"";e[l].displayValue=_,e[l].value=d};t.forEach(c())}initStationaryWatcher(){let t={once:!0,initial:!0},e=()=>this.reactiveUtils?.when(()=>!this.view?.interacting,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},t),o=()=>this.reactiveUtils?.when(()=>this.view?.stationary,()=>e()),s="stationary-watcher-key";this.handles?.has(s)&&this.handles.remove(s),this.handles?.add(o(),s)}initViewUpdateWatcher(){return this.reactiveUtils.watch(()=>this.view?.updating,()=>{this.reactiveUtils.when(()=>!this.view?.updating,()=>{this.queryType==="layerView"&&this.calculateScoreboardItemValues()},{once:!0,initial:!0})},{initial:!0})}watchLayerVisibility(){if(!this.layers)return;let t="visbilityWatcherKey";this.handles?.remove(t);let e=[],o=s=>{let c=async()=>{let l=await this.view?.whenLayerView(s);await this.reactiveUtils.whenOnce(()=>!l?.updating),this.calculateScoreboardItemValues()},i=this.reactiveUtils.watch(()=>s?.visible,async()=>await c());e.push(i)};this.layers.forEach(o),this.handles?.add([...e],t)}getItemLimit(){return this.itemLimit<2||this.itemLimit>6?O:this.itemLimit}setHostClassNames(){this.isMobile||this.position===n.Bottom?(this.el.classList.remove(r.position.side,r.position.left,r.position.right),this.el.classList.add(r.position.bottom)):(this.el.classList.remove(r.position.bottom),this.el.classList.add(r.position.side),this.position===n.Left?(this.el.classList.remove(r.position.right),this.el.classList.add(r.position.left)):(this.el.classList.remove(r.position.left),this.el.classList.add(r.position.right))),this.isMobile?(this.el.classList.remove(r.mode.floating),this.el.classList.add(r.mode.pinned)):this.mode===n.Floating?(this.el.classList.remove(r.mode.pinned),this.el.classList.add(r.mode.floating)):this.el.classList.add(r.mode.pinned)}render(){let{state:t}=this,e=t===n.Loading,o=t===n.Calculating,s=t===n.Disabled,c=e||o||this.queryType==="layerView"&&this.view?.updating?this.renderProgress():null;return this.setHostClassNames(),s?null:[c,this.items?.length>0?this.renderBase():null]}renderBase(){return w("instant-apps-scoreboard-base",h`<div class=${y(x)}>${this.renderContent()}</div>`)}renderContent(){let{state:t}=this;return t===n.Loading?this.renderLoader():t===n.Calculating||t===n.Complete?this.renderItemsContainer():null}renderItemsContainer(){let[t,e]=this.renderPreviousNextButtons();return h`<div class=${y(r.itemsContainer)}>${t}${this.renderItems()}${e}</div>`}renderPreviousNextButtons(){let t=this.getItemLimit(),e=this.items.filter(A=>A.visible)?.length<=t,o=this.itemIndex===0,s=this.isEnd,c=this.isMobile?!0:this.position===n.Bottom,i=c?L.Start:L.Center,l=c?g.Left:g.Up,d=c?g.Right:g.Down,p={previous:l,next:d},b=o||e?g.Blank:p.previous,u=s||e?g.Blank:p.next,_={previous:o||e,next:s||e},C=R.Transparent,D=this.isMobile?I.Small:I.Large,f={previous:this._messages.previous,next:this._messages.next};return[h`<calcite-action @click=${this.previousItem} .icon=${b} .disabled=${_.previous} .alignment=${i} .scale=${D} .appearance=${C} .text=${f.previous??""} .label=${f.previous}></calcite-action>`,h`<calcite-action @click=${this.nextItem} .icon=${u} .disabled=${_.next} .alignment=${i} .scale=${D} .appearance=${C} .text=${f.next??""} .label=${f.next}></calcite-action>`]}renderItems(){let{items:t}=r,e=this.getItemsToDisplay.map(o=>this.renderItem(o));return h`<ul class=${y(t)}>${e}</ul>`}renderItem(t){let{label:e}=t;return h`<li class=${y(r.item)}><span class=${y(r.label)} title=${e??$}>${e}</span>${this.renderValue(t)}</li>`}renderValue(t){let{displayValue:e}=t,o=this.state===n.Calculating,s=this.state===n.Disabled,c=e===void 0&&o,i=e||this._messages.NA,l=!this.layers?.find(p=>t?.layer?.id===p.id)?.visible,d=c?this.renderValuePlaceholder():s?"":l?h`<calcite-icon icon=view-hide scale=l title=${this._messages.layerVisibilityOff??$}></calcite-icon>`:i;return h`<span class=${y(r.value)}>${d}</span>`}renderValuePlaceholder(){return h`<span class=${y(r.valuePlaceholder)}></span>`}renderProgress(){let t=`${B}calcite-`;return w(`${t}progress`,h`<calcite-progress type=indeterminate></calcite-progress>`)}renderLoader(){let t=`${B}calcite-`,e=this._messages.loading;return w(`${t}loader`,h`<calcite-loader .label=${e??""} .text=${e} scale=m></calcite-loader>`)}};S("instant-apps-scoreboard",V);export{V as InstantAppsScoreboard};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as r}from"./CSH7RK4L.js";import{g as n}from"./KSO7CXKH.js";import"./GFXNHLR7.js";import"./CYG5JUF7.js";import"./3E3IBLXH.js";import"./EROCJUGG.js";import"./VX2H4KEW.js";import"./L2WHYM3J.js";import"./ZAL2JPN6.js";import"./ENUF5QK4.js";import"./BOHI7OOB.js";import"./KXKFOLKN.js";import"./XIKGCL6Z.js";import"./EYIL3WCN.js";import"./IMPPWVVG.js";import"./YMNTHO2F.js";import"./4SOCIVF6.js";import"./R6MJ3BWC.js";import"./ZVYGJ3ZV.js";import"./74AIX5RH.js";import"./T5CPOSYR.js";import{b as i}from"./27VT6FGO.js";import{a as b}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b as _}from"./443EHILD.js";import{E as u,G as p,H as m,h,i as a,l as o}from"./6WW2DA2G.js";import"./EAS42GZC.js";var f=h`/** @license
3
+ v1.2.0-next.25 */
4
+ import{a as r}from"./EEKC5HMJ.js";import{g as n}from"./XKYABGIY.js";import"./Q65LQ4DS.js";import"./PL2DLTJ3.js";import"./47LITZGW.js";import"./3KS7ECJI.js";import"./Q6KR2MGM.js";import"./6DG5GYU6.js";import"./KXRDDOMY.js";import"./ZRNE7ON4.js";import"./NL3W622Y.js";import"./QRTCQKT7.js";import"./WYFCB3NO.js";import"./OX2XBEMJ.js";import"./33CKROVW.js";import"./I6F7SK7X.js";import"./ZJBXIMRS.js";import"./LQ2RKGNR.js";import"./TND7L4TG.js";import"./L3KYVSGX.js";import"./AF4HG5KQ.js";import{b as i}from"./RDASDC76.js";import{a as b}from"./5PRG5J4I.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{b as _}from"./6GTTRESX.js";import{E as u,G as p,H as m,h,i as a,l as o}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var f=h`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import c from"./NBZ4SJV4.js";import{a as x}from"./CYADZ6PK.js";import{a as T,c as P}from"./DVGLTRJU.js";import a from"./UM5O6SR4.js";import{b as u}from"./T6FIJDJK.js";import{Wb as C,ta as S}from"./KSO7CXKH.js";import"./GFXNHLR7.js";import"./CYG5JUF7.js";import"./3E3IBLXH.js";import"./EROCJUGG.js";import"./VX2H4KEW.js";import"./L2WHYM3J.js";import"./ZAL2JPN6.js";import"./ENUF5QK4.js";import"./BOHI7OOB.js";import"./KXKFOLKN.js";import"./XIKGCL6Z.js";import"./EYIL3WCN.js";import"./IMPPWVVG.js";import"./YMNTHO2F.js";import"./4SOCIVF6.js";import"./R6MJ3BWC.js";import"./ZVYGJ3ZV.js";import"./74AIX5RH.js";import"./T5CPOSYR.js";import"./27VT6FGO.js";import{a as $}from"./K2VMZCUX.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{b}from"./443EHILD.js";import{C as y,D as p,E as w,G as h,h as g,i as d,l as D,o as m}from"./6WW2DA2G.js";import"./EAS42GZC.js";export default $arcgis.t(([,{b:v}])=>{var O=g`/** @license
3
+ v1.2.0-next.25 */
4
+ import c from"./FCSALOKB.js";import{a as x}from"./5IR2J2MU.js";import{a as T,c as P}from"./5FG7JIL6.js";import a from"./5H7XMH3U.js";import{b as u}from"./6HWRE6RG.js";import{Wb as C,ta as S}from"./XKYABGIY.js";import"./Q65LQ4DS.js";import"./PL2DLTJ3.js";import"./47LITZGW.js";import"./3KS7ECJI.js";import"./Q6KR2MGM.js";import"./6DG5GYU6.js";import"./KXRDDOMY.js";import"./ZRNE7ON4.js";import"./NL3W622Y.js";import"./QRTCQKT7.js";import"./WYFCB3NO.js";import"./OX2XBEMJ.js";import"./33CKROVW.js";import"./I6F7SK7X.js";import"./ZJBXIMRS.js";import"./LQ2RKGNR.js";import"./TND7L4TG.js";import"./L3KYVSGX.js";import"./AF4HG5KQ.js";import"./RDASDC76.js";import{a as $}from"./5PRG5J4I.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{b}from"./6GTTRESX.js";import{C as y,D as p,E as w,G as h,h as g,i as d,l as D,o as m}from"./SR6U5ITN.js";import"./LBWBQTWE.js";export default $arcgis.t(([,{b:v}])=>{var O=g`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,4 +15,4 @@ import c from"./NBZ4SJV4.js";import{a as x}from"./CYADZ6PK.js";import{a as T,c a
15
15
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
- */.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.display-none{display:none}`,I=class extends w{constructor(){super(...arguments),this.open=!1,this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=$({name:"solution-delete-dialog",blocking:!0}),this._authContextConsumer=u({context:P,subscribe:!0}),this._userSessionContextConsumer=u({context:T,subscribe:!0}),this._accordion=y(),this.solutionDeleteDialogOpen=m(),this.solutionDeleted=m(),this.solutionDeleteDialogBeforeClose=m()}static{this.properties={card:0,open:5,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_showUndeletableItems:16,_templateInfos:16,_translations:16}}static{this.styles=O}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._isDeleteInProgress=!0,this.card){let t=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],s={progressCallback:n=>{this._deletePercentage=Math.round(n)}};C(this.card.id,this._userSessionContextConsumer.value,s).then(n=>{let i=n[1],o;if(i?o=i.items.map(e=>({itemName:e.title,itemType:e.type,owner:e.owner,modified:e.modified})):o=t,o.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1;else if(o.some(e=>e.itemType==="Solution"))this.card?this._processTemplates(this.card).then(e=>{this._templateInfos=e,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let e=[];e=i.items.map(l=>({id:l.id,title:l.title,type:l.type,owner:l.owner,modified:l.modified,typeKeywords:[],snippet:"",dependencies:[],url:v(l.id,this._authContextConsumer.value)})),this._templateInfos=e,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(t){if(t.has("open")){let s=t.get("open");this.open&&!s&&(this._fetchingTemplates=!0,this._processTemplates(this.card).then(n=>{this._templateInfos=n;let i=[],o=this._templateInfos.map(async e=>{let l=await this._getRelatedDependency(e.id,"reverse","Solution2Item");return{template:e,relatedItems:l}});Promise.all(o).then(e=>{for(let{template:c,relatedItems:k}of e)for(let U of k){let _=[];for(let a of U.relatedItemIds)_.push({controlItemId:c.id,dependencyItemId:a});let A=_.reduce((a,r)=>(a[r.controlItemId]||(a[r.controlItemId]=new Set),a[r.controlItemId].add(r.dependencyItemId),a),{}),f=Object.entries(A).filter(([a,r])=>r.size>1).flatMap(([a,r])=>Array.from(r).map(L=>({controlItemId:a,dependencyItemId:L})));f.length>0&&(i=i.concat(f))}this._nonSolutionDependencyItems=Array.from(new Map([...i].map(c=>[`${c.controlItemId}:${c.dependencyItemId}`,c])).values());let l=this._nonSolutionDependencyItems.map(c=>c.controlItemId),E=[...new Set(l)];this._accordion.value.selectItems(E),this._fetchingTemplates=!1})}))}}updated(t){t.has("_showUndeletableItems")&&this._showUndeletableItems!==t.get("_showUndeletableItems")&&this._accordion.value.selectItems(this._templateInfos.map(s=>s.id))}render(){let t=this._fetchingTemplates?"":"display-none",s=this._fetchingTemplates?"display-none":"",n=[...new Set(this._nonSolutionDependencyItems.map(e=>e.controlItemId))],i=this._templateInfos.length-this._getDependencyCount(),o=this._translations.deletionCount.replace("{{deleteableCount}}",i.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return d`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??D} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?d`<calcite-loader .label=${this._translations.deleteInProgress} scale=l .text=${this._translations.deleteInProgress} type=determinate-value .value=${this._deletePercentage}></calcite-loader>`:this._showUndeletableItems?d`<calcite-label class=${h(s)} layout=inline>${this._translations.failedToDeleteItems}</calcite-label><solution-item-accordion class=${h(s)} .itemRelationshipDependencies=${[]} link-type=action list-selection-mode=multiple .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${p(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:d`<calcite-label class=${h(s)} layout=inline scale=l>${this._translations.deletionNote}<calcite-chip .label=${o} scale=m icon=information>${o}</calcite-chip></calcite-label><calcite-loader class=${h(t)} label></calcite-loader><solution-item-accordion class=${h(s)} .itemRelationshipDependencies=${n} link-type=action list-selection-mode=multiple .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${p(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&d`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}async _processTemplates(t){return await x(t.id,this._userSessionContextConsumer.value)}async _getRelatedDependency(t,s,n){let i=await S(t,n,s,this._userSessionContextConsumer.value);return[{relationshipType:n,relatedItemIds:i.relatedItems.map(o=>o.id)}]}_getDependencyCount(){let t=this._nonSolutionDependencyItems.map(s=>s.controlItemId);return[...new Set(t)].length}};b("solution-delete-dialog",I);return I},a,c)
18
+ */.panel-bg-color{--calcite-panel-header-background-color: var(--calcite-color-foreground-1);--calcite-panel-background-color: var(--calcite-color-foreground-1)}.display-none{display:none}`,I=class extends w{constructor(){super(...arguments),this.open=!1,this._deletePercentage=0,this._fetchingTemplates=!1,this._isDeleteInProgress=!1,this._nonSolutionDependencyItems=[],this._showDeleteError=!1,this._showUndeletableItems=!1,this._templateInfos=[],this._translations=$({name:"solution-delete-dialog",blocking:!0}),this._authContextConsumer=u({context:P,subscribe:!0}),this._userSessionContextConsumer=u({context:T,subscribe:!0}),this._accordion=y(),this.solutionDeleteDialogOpen=m(),this.solutionDeleted=m(),this.solutionDeleteDialogBeforeClose=m()}static{this.properties={card:0,open:5,_deletePercentage:16,_fetchingTemplates:16,_isDeleteInProgress:16,_nonSolutionDependencyItems:16,_showDeleteError:16,_showUndeletableItems:16,_templateInfos:16,_translations:16}}static{this.styles=O}close(){this._showUndeletableItems&&this.solutionDeleted.emit({showAlert:!1,refreshSolutionsTimeout:!0}),this._showDeleteError=!1,this._showUndeletableItems=!1,this._isDeleteInProgress=!1,this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}delete(){if(this._isDeleteInProgress=!0,this.card){let t=[{itemName:this.card.title,itemType:"Solution",owner:this.card.owner,modified:this.card.modified}],s={progressCallback:n=>{this._deletePercentage=Math.round(n)}};C(this.card.id,this._userSessionContextConsumer.value,s).then(n=>{let i=n[1],o;if(i?o=i.items.map(e=>({itemName:e.title,itemType:e.type,owner:e.owner,modified:e.modified})):o=t,o.length===0)this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1;else if(o.some(e=>e.itemType==="Solution"))this.card?this._processTemplates(this.card).then(e=>{this._templateInfos=e,this._showDeleteError=!0,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}):(this._showDeleteError=!0,this._isDeleteInProgress=!1);else if(this.card){let e=[];e=i.items.map(l=>({id:l.id,title:l.title,type:l.type,owner:l.owner,modified:l.modified,typeKeywords:[],snippet:"",dependencies:[],url:v(l.id,this._authContextConsumer.value)})),this._templateInfos=e,this._showDeleteError=!1,this._showUndeletableItems=!0,this._isDeleteInProgress=!1}else this.solutionDeleted.emit({showAlert:!0,refreshSolutionsTimeout:!0}),this._isDeleteInProgress=!1,this.open=!1})}}willUpdate(t){if(t.has("open")){let s=t.get("open");this.open&&!s&&(this._fetchingTemplates=!0,this._processTemplates(this.card).then(n=>{this._templateInfos=n;let i=[],o=this._templateInfos.map(async e=>{let l=await this._getRelatedDependency(e.id,"reverse","Solution2Item");return{template:e,relatedItems:l}});Promise.all(o).then(e=>{for(let{template:c,relatedItems:k}of e)for(let U of k){let _=[];for(let a of U.relatedItemIds)_.push({controlItemId:c.id,dependencyItemId:a});let A=_.reduce((a,r)=>(a[r.controlItemId]||(a[r.controlItemId]=new Set),a[r.controlItemId].add(r.dependencyItemId),a),{}),f=Object.entries(A).filter(([a,r])=>r.size>1).flatMap(([a,r])=>Array.from(r).map(L=>({controlItemId:a,dependencyItemId:L})));f.length>0&&(i=i.concat(f))}this._nonSolutionDependencyItems=Array.from(new Map([...i].map(c=>[`${c.controlItemId}:${c.dependencyItemId}`,c])).values());let l=this._nonSolutionDependencyItems.map(c=>c.controlItemId),E=[...new Set(l)];this._accordion.value.selectItems(E),this._fetchingTemplates=!1})}))}}updated(t){t.has("_showUndeletableItems")&&this._showUndeletableItems!==t.get("_showUndeletableItems")&&this._accordion.value.selectItems(this._templateInfos.map(s=>s.id))}render(){let t=this._fetchingTemplates?"":"display-none",s=this._fetchingTemplates?"display-none":"",n=[...new Set(this._nonSolutionDependencyItems.map(e=>e.controlItemId))],i=this._templateInfos.length-this._getDependencyCount(),o=this._translations.deletionCount.replace("{{deleteableCount}}",i.toString()).replace("{{totalCount}}",this._templateInfos.length.toString());return d`<calcite-dialog class="panel-bg-color" .closeDisabled=${this._isDeleteInProgress} .heading=${this._translations.title.replace("{{solution}}",this.card?.title??"")} id=${this._translations.title.replace("{{solution}}",this.card?.title??"")??D} modal kind=danger .open=${this.open} width=l outside-close-disabled @calciteDialogBeforeClose=${()=>{this.solutionDeleteDialogBeforeClose.emit()}} @calciteDialogClose=${()=>{this.open=!1,this.solutionDeleteDialogOpen.emit(!1)}}>${this._isDeleteInProgress?d`<calcite-loader .label=${this._translations.deleteInProgress} scale=l .text=${this._translations.deleteInProgress} type=determinate-value .value=${this._deletePercentage}></calcite-loader>`:this._showUndeletableItems?d`<calcite-label class=${h(s)} layout=inline>${this._translations.failedToDeleteItems}</calcite-label><solution-item-accordion class=${h(s)} .itemRelationshipDependencies=${[]} link-type=item list-selection-mode=multiple .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${p(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonClose}</calcite-button>`:d`<calcite-label class=${h(s)} layout=inline scale=l>${this._translations.deletionNote}<calcite-chip .label=${o} scale=m icon=information>${o}</calcite-chip></calcite-label><calcite-loader class=${h(t)} label></calcite-loader><solution-item-accordion class=${h(s)} .itemRelationshipDependencies=${n} link-type=item list-selection-mode=multiple .templateInfos=${this._templateInfos} .typeKeywords=${this.card?.typeKeywords} ${p(this._accordion)}></solution-item-accordion><calcite-button appearance=outline @click=${this.close} slot=footer-end>${this._translations.buttonCancel}</calcite-button><calcite-button @click=${()=>{this.delete()}} slot=footer-end kind=danger>${this._translations.buttonDelete}</calcite-button>${this._showDeleteError&&d`<calcite-alert icon=exclamation-mark-triangle kind=danger .label=${this._translations.failedToDelete} @calciteAlertClose=${()=>{this._showDeleteError=!1}} open><div slot=message>${this._translations.failedToDelete}</div></calcite-alert>`||""}`}</calcite-dialog>`}async _processTemplates(t){return await x(t.id,this._userSessionContextConsumer.value)}async _getRelatedDependency(t,s,n){let i=await S(t,n,s,this._userSessionContextConsumer.value);return[{relationshipType:n,relatedItemIds:i.relatedItems.map(o=>o.id)}]}_getDependencyCount(){let t=this._nonSolutionDependencyItems.map(s=>s.controlItemId);return[...new Set(t)].length}};b("solution-delete-dialog",I);return I},a,c)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{a as h}from"./JGT3UVSS.js";import{b as v}from"./4QNOYSPY.js";import"./TNHXSGP4.js";import"./5TKI4FG4.js";import{C as m,D as d,E as u,G as i,h as n,i as l,o as r,r as p}from"./6WW2DA2G.js";import"./EAS42GZC.js";var T=n`@layer{:host .sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}:host .active-tool{--calcite-color-foreground-1: #c7eaff}}`,$={content:"instant-apps-measurement__content"},s=class extends u{constructor(){super(...arguments),this._messages=h({name:"instant-apps-measurement",blocking:!0}),this.measureTool=m(),this.closable=!1,this.measureActive=r()}static{this.properties={view:0,areaUnit:1,linearUnit:1,coordinateFormat:1,activeToolType:1,closable:5}}static{this.styles=T}static{this.shadowRootOptions=p}_handleToolClick(t){if(!this?.measureTool)return;let a=t?.target;if(!(a instanceof HTMLElement))return;let e=a?.dataset.value;if(e!=="distance"&&e!=="area"&&e!=="point"&&e!=="clear")return;e&&this.measureTool.value&&(this.measureTool.value.activeTool=e);let c=document.getElementsByClassName("active-tool");for(let o=0;o<c?.length;o++)c[o]?.classList?.remove("active-tool");a?.classList.add("active-tool"),this.measureActive.emit(!(e===void 0||e==="clear"))}render(){return l`<calcite-panel .heading=${this._messages.label} .closable=${this.closable}><div slot=content-top>${this.renderActionBar()}</div><div>${this.renderMeasureToolPanel()}</div></calcite-panel>`}renderMeasureToolPanel(){let{view:t,coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}=this;return l`<calcite-panel class=${i($.content)}><instant-apps-measurement-tool .view=${t} .measureConfiguration=${{coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}} .activeTool=${this.activeToolType} ${d(this.measureTool)}></instant-apps-measurement-tool></calcite-panel>`}renderActionBar(){let{_messages:t,activeToolType:a}=this;return l`<calcite-action-bar expand-disabled layout=horizontal position=end><calcite-action class=${i(a==="distance"?"active-tool":"")} .text=${t.line} icon=measure scale=m data-value=distance @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.line}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="area"?"active-tool":"")} .text=${t.area} scale=m icon=measure-area data-value=area @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.area}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="point"?"active-tool":"")} .text=${t.point} scale=m icon=pin-plus data-value=point @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.point}</calcite-tooltip></calcite-action><calcite-action .text=${t.clear} scale=m icon=trash data-value=clear @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.clear}</calcite-tooltip></calcite-action></calcite-action-bar>`}};v("instant-apps-measurement",s);export{s as InstantAppsMeasurement};
3
+ v1.2.0-next.25 */
4
+ import{a as h}from"./A7HUHBZM.js";import{b as v}from"./ALYZCHUT.js";import"./IN5SSIXG.js";import"./DTOU5IAO.js";import{C as m,D as d,E as u,G as i,h as n,i as l,o as r,r as p}from"./SR6U5ITN.js";import"./LBWBQTWE.js";var T=n`@layer{:host .sc-instant-apps-measurement{background:var(--calcite-color-foreground-1)}:host .active-tool{--calcite-color-foreground-1: #c7eaff}}`,$={content:"instant-apps-measurement__content"},s=class extends u{constructor(){super(...arguments),this._messages=h({name:"instant-apps-measurement",blocking:!0}),this.measureTool=m(),this.closable=!1,this.measureActive=r()}static{this.properties={view:0,areaUnit:1,linearUnit:1,coordinateFormat:1,activeToolType:1,closable:5}}static{this.styles=T}static{this.shadowRootOptions=p}_handleToolClick(t){if(!this?.measureTool)return;let a=t?.target;if(!(a instanceof HTMLElement))return;let e=a?.dataset.value;if(e!=="distance"&&e!=="area"&&e!=="point"&&e!=="clear")return;e&&this.measureTool.value&&(this.measureTool.value.activeTool=e);let c=document.getElementsByClassName("active-tool");for(let o=0;o<c?.length;o++)c[o]?.classList?.remove("active-tool");a?.classList.add("active-tool"),this.measureActive.emit(!(e===void 0||e==="clear"))}render(){return l`<calcite-panel .heading=${this._messages.label} .closable=${this.closable}><div slot=content-top>${this.renderActionBar()}</div><div>${this.renderMeasureToolPanel()}</div></calcite-panel>`}renderMeasureToolPanel(){let{view:t,coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}=this;return l`<calcite-panel class=${i($.content)}><instant-apps-measurement-tool .view=${t} .measureConfiguration=${{coordinateFormat:a,areaUnit:e,linearUnit:c,activeToolType:o}} .activeTool=${this.activeToolType} ${d(this.measureTool)}></instant-apps-measurement-tool></calcite-panel>`}renderActionBar(){let{_messages:t,activeToolType:a}=this;return l`<calcite-action-bar expand-disabled layout=horizontal position=end><calcite-action class=${i(a==="distance"?"active-tool":"")} .text=${t.line} icon=measure scale=m data-value=distance @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.line}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="area"?"active-tool":"")} .text=${t.area} scale=m icon=measure-area data-value=area @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.area}</calcite-tooltip></calcite-action><calcite-action class=${i(a==="point"?"active-tool":"")} .text=${t.point} scale=m icon=pin-plus data-value=point @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.point}</calcite-tooltip></calcite-action><calcite-action .text=${t.clear} scale=m icon=trash data-value=clear @click=${this._handleToolClick}><calcite-tooltip overlay-positioning=fixed close-on-click placement=top slot=tooltip>${t.clear}</calcite-tooltip></calcite-action></calcite-action-bar>`}};v("instant-apps-measurement",s);export{s as InstantAppsMeasurement};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.24 */
4
- import{b as e}from"./REW2XBKZ.js";var r={if:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"}}}}},then:{type:"object",properties:{_metric:{type:"object",required:["value"]}}}},p={if:{type:"object",properties:{_metric:{type:"object",properties:{sourceTitle:{not:{const:""}}},required:["sourceTitle"]}}},then:{type:"object",properties:{_metric:{type:"object",required:["sourceLink"]}}}},o={if:{type:"object",properties:{_metric:{type:"object",properties:{valueType:{enum:["string","date"]}}}}},then:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"string"}}}}},else:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"number"}}}}}},i={if:{type:"object",properties:{_metric:{properties:{type:{const:e.static}}}}},then:{type:"object",properties:{_metric:{properties:{sourceLink:{format:"url"}}}}}};export{r as a,p as b,o as c,i as d};
3
+ v1.2.0-next.25 */
4
+ import{b as e}from"./UCGJMCLN.js";var r={if:{type:"object",properties:{_metric:{type:"object",properties:{type:{const:"static"}}}}},then:{type:"object",properties:{_metric:{type:"object",required:["value"]}}}},p={if:{type:"object",properties:{_metric:{type:"object",properties:{sourceTitle:{not:{const:""}}},required:["sourceTitle"]}}},then:{type:"object",properties:{_metric:{type:"object",required:["sourceLink"]}}}},o={if:{type:"object",properties:{_metric:{type:"object",properties:{valueType:{enum:["string","date"]}}}}},then:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"string"}}}}},else:{type:"object",properties:{_metric:{type:"object",properties:{value:{type:"number"}}}}}},i={if:{type:"object",properties:{_metric:{properties:{type:{const:e.static}}}}},then:{type:"object",properties:{_metric:{properties:{sourceLink:{format:"url"}}}}}};export{r as a,p as b,o as c,i as d};