@esri/solutions-components 5.1.0-next.158 → 5.1.0-next.159

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 (539) hide show
  1. package/dist/cdn/{O4YFJXGF.js → 22BJ76LD.js} +1 -1
  2. package/dist/cdn/24DOFCUH.js +2 -0
  3. package/dist/cdn/{OBD737XY.js → 26EKIZQ3.js} +1 -1
  4. package/dist/cdn/{DOXKOGC2.js → 26QXT6ZT.js} +1 -1
  5. package/dist/cdn/{A7PEHKA2.js → 2OCRSUSE.js} +1 -1
  6. package/dist/cdn/{NC34DM4N.js → 2UCURPVT.js} +1 -1
  7. package/dist/cdn/{DZB3263I.js → 2X3SHREV.js} +1 -1
  8. package/dist/cdn/{YXCHECNE.js → 3A5WS2II.js} +1 -1
  9. package/dist/cdn/{LQABMPPT.js → 3D5OFNW5.js} +1 -1
  10. package/dist/cdn/{IO5DIUTT.js → 3E7MYA66.js} +1 -1
  11. package/dist/cdn/{YWXDNRE2.js → 3IHDWRXV.js} +1 -1
  12. package/dist/cdn/3IO2JXVB.js +2 -0
  13. package/dist/cdn/{OOP3DI7Y.js → 3KRXI2TQ.js} +1 -1
  14. package/dist/cdn/{GDDMG3Q4.js → 3NKGACT7.js} +1 -1
  15. package/dist/cdn/{7Y32UJS4.js → 3QIWKYQY.js} +1 -1
  16. package/dist/cdn/3SDEIO24.js +2 -0
  17. package/dist/cdn/{N3ENJ6TJ.js → 3Z7EYDFO.js} +2 -2
  18. package/dist/cdn/{57DEUKTH.js → 4ALVWOG7.js} +1 -1
  19. package/dist/cdn/{QLOWHDGX.js → 4OKIVS32.js} +1 -1
  20. package/dist/cdn/{YKSW755L.js → 4PNNKMNH.js} +1 -1
  21. package/dist/cdn/{Y3Q6SFIV.js → 55QBAVPE.js} +1 -1
  22. package/dist/cdn/{7ZJQQBSR.js → 57SZHKM5.js} +1 -1
  23. package/dist/cdn/{MDNGEZ2V.js → 5BN62I7L.js} +1 -1
  24. package/dist/cdn/{LKVCSRAJ.js → 5EXKQXLZ.js} +1 -1
  25. package/dist/cdn/{JQANOMEB.js → 5F6KCXYP.js} +1 -1
  26. package/dist/cdn/{RYETW3AF.js → 5JBZ6L5Q.js} +1 -1
  27. package/dist/cdn/{ZQAD6SUE.js → 5K5GHKON.js} +1 -1
  28. package/dist/cdn/{KP3AJBAI.js → 5VIB2BPJ.js} +1 -1
  29. package/dist/cdn/{X26QOEYN.js → 62CPZJO5.js} +1 -1
  30. package/dist/cdn/{5XDPNTYE.js → 62QGEVBO.js} +1 -1
  31. package/dist/cdn/{VCL4OTSQ.js → 632J5NXN.js} +1 -1
  32. package/dist/cdn/{67UYAVGW.js → 6LHIJG7J.js} +1 -1
  33. package/dist/cdn/{SSZBIVTK.js → 6XWFCHCJ.js} +1 -1
  34. package/dist/cdn/73EY5SIB.js +2 -0
  35. package/dist/cdn/{HGONAEKC.js → 7FZDDT7D.js} +1 -1
  36. package/dist/cdn/{CSW2JRVE.js → 7MNSZGMB.js} +1 -1
  37. package/dist/cdn/{5GHZQ66V.js → 7NUJ4IS5.js} +1 -1
  38. package/dist/cdn/{WFHPQFNH.js → 7OHSJ5SV.js} +1 -1
  39. package/dist/cdn/{HEI6GMZN.js → 7VQB43WL.js} +1 -1
  40. package/dist/cdn/{GXIGM56I.js → 7YJMTZFC.js} +1 -1
  41. package/dist/cdn/{LI7Q44Z6.js → 7ZJBP3SS.js} +1 -1
  42. package/dist/cdn/{3SRDS4KQ.js → 7ZSO7MSX.js} +1 -1
  43. package/dist/cdn/{CA4YH6B3.js → A2VP46QZ.js} +1 -1
  44. package/dist/cdn/{MPSNK45A.js → A62EWI7L.js} +1 -1
  45. package/dist/cdn/{MSUQVQBX.js → ACTJS4TX.js} +3 -3
  46. package/dist/cdn/{LF3HQQMS.js → AEALFROI.js} +1 -1
  47. package/dist/cdn/{UNJV2PKC.js → AM6QSTRH.js} +1 -1
  48. package/dist/cdn/{MZXUUA7G.js → AS6VINEU.js} +1 -1
  49. package/dist/cdn/{KXT52OBS.js → AYJ5ZPU6.js} +1 -1
  50. package/dist/cdn/{2UIPY2ED.js → BATEZR3T.js} +1 -1
  51. package/dist/cdn/{C5PGLCTJ.js → BEKMMPB7.js} +1 -1
  52. package/dist/cdn/{AXFB53AQ.js → BQ7O62CG.js} +1 -1
  53. package/dist/cdn/{YELTRFZZ.js → BVG2SE55.js} +1 -1
  54. package/dist/cdn/{KZSBETIP.js → C5BQAX2M.js} +1 -1
  55. package/dist/cdn/{M7GWNGTJ.js → CARCFJRD.js} +1 -1
  56. package/dist/cdn/{DOHGEFCF.js → CAXDDYGL.js} +1 -1
  57. package/dist/cdn/{NVEAYDYI.js → CAYWD56D.js} +1 -1
  58. package/dist/cdn/{CRDJXHSQ.js → CFJ4FEY3.js} +1 -1
  59. package/dist/cdn/{KZFMPHCV.js → CLRLOHTR.js} +1 -1
  60. package/dist/cdn/{M5ZEJF3J.js → CPOZIWVH.js} +1 -1
  61. package/dist/cdn/{UVHM4PU5.js → CUG5CROK.js} +1 -1
  62. package/dist/cdn/{O7O4T4G4.js → CYEFGPUM.js} +3 -3
  63. package/dist/cdn/{XLB42ULH.js → CZVHNBQN.js} +1 -1
  64. package/dist/cdn/{F7FCYGIB.js → D2EVPZ5K.js} +1 -1
  65. package/dist/cdn/{JJV3TD42.js → D4TEADUS.js} +1 -1
  66. package/dist/cdn/{CZJPS7CF.js → D52QVYYU.js} +1 -1
  67. package/dist/cdn/{66VSNZFA.js → D5JF7XQN.js} +1 -1
  68. package/dist/cdn/{35HRMJUI.js → D6ZGMSQF.js} +1 -1
  69. package/dist/cdn/{MWFCDDBC.js → D7G4LZRG.js} +1 -1
  70. package/dist/cdn/{73O55ZBJ.js → DGQQF6WF.js} +1 -1
  71. package/dist/cdn/{JTENM3PQ.js → DJYT367X.js} +1 -1
  72. package/dist/cdn/{YAUQSIXM.js → DKQRECGR.js} +1 -1
  73. package/dist/cdn/{EPKRNLRL.js → DKXVDY6L.js} +1 -1
  74. package/dist/cdn/{RFSPNC4B.js → DLDR5V2P.js} +1 -1
  75. package/dist/cdn/{7KEONOFN.js → DMENKRSP.js} +1 -1
  76. package/dist/cdn/{DWAYOC2L.js → DWKKP34X.js} +1 -1
  77. package/dist/cdn/{JDCZUOU6.js → E25ZWVBK.js} +1 -1
  78. package/dist/cdn/{HYB5LBMY.js → E7CWZMS4.js} +1 -1
  79. package/dist/cdn/{AVBZ2B75.js → EF2TTWG5.js} +1 -1
  80. package/dist/cdn/{XDZPQACK.js → EG5KPZQ2.js} +1 -1
  81. package/dist/cdn/{6BIHAEOS.js → EHSIODIO.js} +1 -1
  82. package/dist/cdn/{SNJPMQCE.js → EKK5FR2V.js} +1 -1
  83. package/dist/cdn/{AOJP5RQ6.js → EMPMQDRQ.js} +1 -1
  84. package/dist/cdn/{XBFG3KX6.js → ENLFOYSI.js} +1 -1
  85. package/dist/cdn/{6Q52JBZW.js → ES63XK5X.js} +1 -1
  86. package/dist/cdn/EXBEKVP5.js +2 -0
  87. package/dist/cdn/{NM2PQIH6.js → EYJQEBDF.js} +1 -1
  88. package/dist/cdn/{EF4LWVLU.js → F3A22NPP.js} +1 -1
  89. package/dist/cdn/{Y6KZTCZD.js → F5SUVMAE.js} +1 -1
  90. package/dist/cdn/{CTREZRNZ.js → F6J3OLVZ.js} +1 -1
  91. package/dist/cdn/{RKWTJT6L.js → FA5CJT2S.js} +1 -1
  92. package/dist/cdn/{S6J35GRM.js → FBGCV6YJ.js} +1 -1
  93. package/dist/cdn/{XSOTJ56B.js → FBSKACM2.js} +1 -1
  94. package/dist/cdn/{V52O7WYV.js → FCJFAZ4S.js} +1 -1
  95. package/dist/cdn/{ANVT6ANQ.js → FE6JCIZY.js} +1 -1
  96. package/dist/cdn/{HJW2JW4G.js → FVR5S6DL.js} +1 -1
  97. package/dist/cdn/{YJBXJNUR.js → FZNRD2XJ.js} +1 -1
  98. package/dist/cdn/{TRXDA7G2.js → G2RMWJ7R.js} +1 -1
  99. package/dist/cdn/{6OJALTOU.js → G63OYQ7G.js} +1 -1
  100. package/dist/cdn/{RXOPHYUF.js → GABDTUB7.js} +1 -1
  101. package/dist/cdn/{BLR4MTOP.js → GLC7JVKG.js} +1 -1
  102. package/dist/cdn/{B3BR2NG5.js → GXZWJXHM.js} +1 -1
  103. package/dist/cdn/H3NPAQ3U.js +2 -0
  104. package/dist/cdn/{UUHDVB24.js → HB56DBBP.js} +1 -1
  105. package/dist/cdn/{LLDACDFC.js → HGOYPWOK.js} +1 -1
  106. package/dist/cdn/{K5ZIHTQC.js → HJZRCLYP.js} +1 -1
  107. package/dist/cdn/{SQ3AHKIW.js → I4EEOB6Y.js} +1 -1
  108. package/dist/cdn/{KCTWFRCW.js → I4VWG355.js} +1 -1
  109. package/dist/cdn/{MZ73EAAV.js → I5E3PM26.js} +1 -1
  110. package/dist/cdn/ICY4O6XV.js +2 -0
  111. package/dist/cdn/{U6M4Q7V3.js → IGQJLEEJ.js} +1 -1
  112. package/dist/cdn/{PIJDUFKZ.js → IOFIC3IG.js} +1 -1
  113. package/dist/cdn/{FJAJKPL6.js → IQVJCQTP.js} +1 -1
  114. package/dist/cdn/{BSBNPUTI.js → IXJFVKYN.js} +1 -1
  115. package/dist/cdn/{TK235QG4.js → J6OVONBB.js} +1 -1
  116. package/dist/cdn/{ORMBTE2Z.js → JEIP7CJK.js} +1 -1
  117. package/dist/cdn/{P6VUY7UX.js → JFLG3EKT.js} +1 -1
  118. package/dist/cdn/{POVGKQPO.js → JJDAJ7CL.js} +1 -1
  119. package/dist/cdn/{ZF724O2R.js → JUPIKTGO.js} +1 -1
  120. package/dist/cdn/{YKM2YRZP.js → KAGDNHPY.js} +1 -1
  121. package/dist/cdn/{JLQYLRUP.js → KDHI3OWQ.js} +1 -1
  122. package/dist/cdn/{7HJCFDJN.js → KIKSO3OQ.js} +1 -1
  123. package/dist/cdn/{PRM47E4O.js → KKEERGX7.js} +1 -1
  124. package/dist/cdn/{L5WLXC4P.js → KMKZEHDS.js} +1 -1
  125. package/dist/cdn/{EVZXWT6K.js → KMTYPOFM.js} +1 -1
  126. package/dist/cdn/{6RONZCGM.js → KTRKTBPS.js} +1 -1
  127. package/dist/cdn/{QLRGY4WQ.js → KU2LYW6K.js} +1 -1
  128. package/dist/cdn/{YZ3OYKNY.js → L4BYLII5.js} +1 -1
  129. package/dist/cdn/{W5M4XQVO.js → LHLLMC6K.js} +1 -1
  130. package/dist/cdn/{4SABCB6V.js → LM46YQCN.js} +1 -1
  131. package/dist/cdn/{BROZWKD5.js → LOWGHGDS.js} +1 -1
  132. package/dist/cdn/{PRXFYNIG.js → LPFG5XTA.js} +1 -1
  133. package/dist/cdn/{ZFK6UU3O.js → LSBUPU7F.js} +1 -1
  134. package/dist/cdn/{FDO2JBGW.js → LVK2J23W.js} +1 -1
  135. package/dist/cdn/{2C6OKRTL.js → LXGY2E55.js} +1 -1
  136. package/dist/cdn/{6RNSFI2J.js → LY3WRG7K.js} +1 -1
  137. package/dist/cdn/{XG3T3NF3.js → MBAQ324M.js} +1 -1
  138. package/dist/cdn/{7IXJB2CS.js → MBVY6OPY.js} +1 -1
  139. package/dist/cdn/{EW4MNCWO.js → MDKHW7NM.js} +1 -1
  140. package/dist/cdn/MISU75DC.js +2 -0
  141. package/dist/cdn/{QUG6GIG2.js → MJ6JD7WX.js} +1 -1
  142. package/dist/cdn/{XIUYW7RN.js → MKDVJPNY.js} +1 -1
  143. package/dist/cdn/{PKKPFNOP.js → MLNGJEKI.js} +1 -1
  144. package/dist/cdn/{KR7U7SH5.js → MTEVQC6W.js} +1 -1
  145. package/dist/cdn/{VTI5LEQY.js → MW3IJQRQ.js} +1 -1
  146. package/dist/cdn/{3OQ24P5P.js → N33J6JX2.js} +1 -1
  147. package/dist/cdn/{YUPT4BTA.js → NKEQVKHZ.js} +1 -1
  148. package/dist/cdn/{KDE2RXEH.js → NVIMZ7ZS.js} +1 -1
  149. package/dist/cdn/{X67LNBJP.js → O4VFFJLQ.js} +1 -1
  150. package/dist/cdn/{E4BPYNC5.js → O7VRD3Z3.js} +3 -3
  151. package/dist/cdn/{BIRAQCVT.js → OAEZN4D5.js} +1 -1
  152. package/dist/cdn/{AL7O7ZB2.js → OGH565H7.js} +1 -1
  153. package/dist/cdn/{MURYADCX.js → OJDW3XGU.js} +1 -1
  154. package/dist/cdn/{DIMSALHW.js → OMRM5EXN.js} +1 -1
  155. package/dist/cdn/{7ZKKR7QO.js → OZ7YBTKR.js} +1 -1
  156. package/dist/cdn/{U2ZKJCSY.js → P7LSYADG.js} +1 -1
  157. package/dist/cdn/{BRARQOMY.js → PEQUHMTU.js} +1 -1
  158. package/dist/cdn/{3OLSNMWN.js → PKOJQT4I.js} +1 -1
  159. package/dist/cdn/{R3C2X4CM.js → PSBOV4IR.js} +1 -1
  160. package/dist/cdn/{QF2IXVAT.js → PWER63DX.js} +1 -1
  161. package/dist/cdn/{IEAOGMAM.js → PYPVVSIX.js} +1 -1
  162. package/dist/cdn/{SNE4DYFB.js → Q2K6BUCN.js} +1 -1
  163. package/dist/cdn/{232XXYVJ.js → Q3WGKNJH.js} +1 -1
  164. package/dist/cdn/{KGU32CDZ.js → Q4X6GXRI.js} +1 -1
  165. package/dist/cdn/{K6P6WBLX.js → QBARJMJE.js} +1 -1
  166. package/dist/cdn/{IV7RVOFY.js → QH343537.js} +1 -1
  167. package/dist/cdn/{X3CDW2ME.js → QLX3XORL.js} +1 -1
  168. package/dist/cdn/{V73HMWMC.js → QPX33Y62.js} +1 -1
  169. package/dist/cdn/{UH4IH4MC.js → QQYN7RED.js} +1 -1
  170. package/dist/cdn/{BWRBYYGI.js → QTFTJ4DQ.js} +1 -1
  171. package/dist/cdn/{CPAUDT36.js → QWNRGCQS.js} +1 -1
  172. package/dist/cdn/{AUZDYI27.js → R2JOPHL5.js} +1 -1
  173. package/dist/cdn/{NO74CJDB.js → R4PQI4LJ.js} +1 -1
  174. package/dist/cdn/{TRIDH4TQ.js → RLYLBYMX.js} +1 -1
  175. package/dist/cdn/{P2NKBGLG.js → RQIGAX6O.js} +1 -1
  176. package/dist/cdn/{WRLN7DLT.js → S47SVZPE.js} +1 -1
  177. package/dist/cdn/{HNFDCPQY.js → S4ZMJ42A.js} +1 -1
  178. package/dist/cdn/{KFUO64SR.js → SC4UAHYZ.js} +1 -1
  179. package/dist/cdn/{DBHZRNFR.js → SDX7YG23.js} +1 -1
  180. package/dist/cdn/{HIGIIHUC.js → SGU3KCZB.js} +1 -1
  181. package/dist/cdn/{RLV5JHIU.js → SHI2ULEO.js} +1 -1
  182. package/dist/cdn/{V6VJJHYJ.js → SMN3CVM5.js} +1 -1
  183. package/dist/cdn/{EJQJPFFI.js → SNZRQPXI.js} +1 -1
  184. package/dist/cdn/SYISCXZY.js +4 -0
  185. package/dist/cdn/{PQEOFKJR.js → T6BYV326.js} +4 -4
  186. package/dist/cdn/{3T3GPK27.js → T6EKXYZA.js} +1 -1
  187. package/dist/cdn/T6FQ2A4O.js +2 -0
  188. package/dist/cdn/{JM4BUUFY.js → TLRBE2TZ.js} +1 -1
  189. package/dist/cdn/{RPBIUBGZ.js → TLY6ZEKN.js} +1 -1
  190. package/dist/cdn/{IUNUJ6GU.js → TTCTODAR.js} +1 -1
  191. package/dist/cdn/{B6IICRWD.js → U2LBV6VU.js} +1 -1
  192. package/dist/cdn/{HRH3YBW4.js → U6DXEFHP.js} +1 -1
  193. package/dist/cdn/{SRLQU37I.js → UA6XD7SQ.js} +1 -1
  194. package/dist/cdn/{A4RRYLNO.js → UBPCOTIY.js} +1 -1
  195. package/dist/cdn/{S4MPBLJP.js → UNBGBQPR.js} +1 -1
  196. package/dist/cdn/{KVYNN3MF.js → UUIKE2AH.js} +1 -1
  197. package/dist/cdn/{E5X2RW5Y.js → UUKV62PY.js} +1 -1
  198. package/dist/cdn/{XA2AVWSV.js → UXN2MYLX.js} +1 -1
  199. package/dist/cdn/{RCF3ARQ3.js → V74POSPP.js} +1 -1
  200. package/dist/cdn/{PCP5UFZR.js → V7WSQCQY.js} +1 -1
  201. package/dist/cdn/VHSGX4DC.js +2 -0
  202. package/dist/cdn/{6LDTUOZL.js → VHYS3SP3.js} +1 -1
  203. package/dist/cdn/{B7J5RZIJ.js → VJDUPEFF.js} +1 -1
  204. package/dist/cdn/{4V4CR63B.js → VNTPM6CQ.js} +1 -1
  205. package/dist/cdn/{HDRMSU3L.js → VPFXIGOI.js} +1 -1
  206. package/dist/cdn/{AZDHGEBN.js → VTAQ6NBB.js} +1 -1
  207. package/dist/cdn/{V3MSUKLX.js → VXGLGWIF.js} +1 -1
  208. package/dist/cdn/{JQ7K6OQ5.js → W7VD3QDN.js} +1 -1
  209. package/dist/cdn/{AHYKJXK2.js → WCD4U7UJ.js} +1 -1
  210. package/dist/cdn/{QX7YVGEN.js → WCXR46D4.js} +1 -1
  211. package/dist/cdn/{2TR3Y7HD.js → WFIMYIS3.js} +1 -1
  212. package/dist/cdn/WQHJMFGP.js +2 -0
  213. package/dist/cdn/{OUNL2UWX.js → WXM3KMEV.js} +1 -1
  214. package/dist/cdn/{CM5MBWMG.js → X52T6DJT.js} +1 -1
  215. package/dist/cdn/{NR5ZHMQJ.js → XA3SV62A.js} +1 -1
  216. package/dist/cdn/{EUPJV6QI.js → XH6MM3RE.js} +1 -1
  217. package/dist/cdn/{SHGAD5MK.js → XHFFDKEQ.js} +1 -1
  218. package/dist/cdn/{BFC6PQCO.js → XKEKXTL2.js} +1 -1
  219. package/dist/cdn/{VYFFJEA4.js → YCIKY6QN.js} +1 -1
  220. package/dist/cdn/{EDNQFSEX.js → YGWYD3LU.js} +1 -1
  221. package/dist/cdn/{2BTU374O.js → YUKIKHOU.js} +1 -1
  222. package/dist/cdn/{W2ZZLJGQ.js → ZBX2SDO5.js} +1 -1
  223. package/dist/cdn/{WKZOT33F.js → ZI7OWB5M.js} +1 -1
  224. package/dist/cdn/{LJIX7K76.js → ZNC2XEOJ.js} +1 -1
  225. package/dist/cdn/{QNRKGTZT.js → ZPEVEBJD.js} +1 -1
  226. package/dist/cdn/{5ZVSYUD7.js → ZSO2PDMV.js} +1 -1
  227. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
  228. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
  229. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
  230. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
  231. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
  232. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
  233. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
  234. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
  235. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
  236. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
  237. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
  238. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
  239. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
  240. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
  241. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
  242. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
  243. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
  244. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
  245. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
  246. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
  247. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
  248. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
  249. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
  250. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
  251. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
  252. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
  253. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
  254. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
  255. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
  256. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
  257. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
  258. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
  259. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
  260. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
  261. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
  262. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
  263. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
  264. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
  265. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +1 -1
  266. package/dist/cdn/assets/create-feature/t9n/messages.ar.json +1 -1
  267. package/dist/cdn/assets/create-feature/t9n/messages.bg.json +1 -1
  268. package/dist/cdn/assets/create-feature/t9n/messages.bs.json +1 -1
  269. package/dist/cdn/assets/create-feature/t9n/messages.ca.json +1 -1
  270. package/dist/cdn/assets/create-feature/t9n/messages.cs.json +1 -1
  271. package/dist/cdn/assets/create-feature/t9n/messages.da.json +1 -1
  272. package/dist/cdn/assets/create-feature/t9n/messages.de.json +1 -1
  273. package/dist/cdn/assets/create-feature/t9n/messages.el.json +1 -1
  274. package/dist/cdn/assets/create-feature/t9n/messages.es.json +1 -1
  275. package/dist/cdn/assets/create-feature/t9n/messages.et.json +1 -1
  276. package/dist/cdn/assets/create-feature/t9n/messages.fi.json +1 -1
  277. package/dist/cdn/assets/create-feature/t9n/messages.fr.json +1 -1
  278. package/dist/cdn/assets/create-feature/t9n/messages.he.json +1 -1
  279. package/dist/cdn/assets/create-feature/t9n/messages.hr.json +1 -1
  280. package/dist/cdn/assets/create-feature/t9n/messages.hu.json +1 -1
  281. package/dist/cdn/assets/create-feature/t9n/messages.id.json +1 -1
  282. package/dist/cdn/assets/create-feature/t9n/messages.it.json +1 -1
  283. package/dist/cdn/assets/create-feature/t9n/messages.ja.json +1 -1
  284. package/dist/cdn/assets/create-feature/t9n/messages.ko.json +1 -1
  285. package/dist/cdn/assets/create-feature/t9n/messages.lt.json +1 -1
  286. package/dist/cdn/assets/create-feature/t9n/messages.lv.json +1 -1
  287. package/dist/cdn/assets/create-feature/t9n/messages.nl.json +1 -1
  288. package/dist/cdn/assets/create-feature/t9n/messages.no.json +1 -1
  289. package/dist/cdn/assets/create-feature/t9n/messages.pl.json +1 -1
  290. package/dist/cdn/assets/create-feature/t9n/messages.pt-BR.json +1 -1
  291. package/dist/cdn/assets/create-feature/t9n/messages.pt-PT.json +1 -1
  292. package/dist/cdn/assets/create-feature/t9n/messages.ro.json +1 -1
  293. package/dist/cdn/assets/create-feature/t9n/messages.ru.json +1 -1
  294. package/dist/cdn/assets/create-feature/t9n/messages.sk.json +1 -1
  295. package/dist/cdn/assets/create-feature/t9n/messages.sl.json +1 -1
  296. package/dist/cdn/assets/create-feature/t9n/messages.sr.json +1 -1
  297. package/dist/cdn/assets/create-feature/t9n/messages.sv.json +1 -1
  298. package/dist/cdn/assets/create-feature/t9n/messages.th.json +1 -1
  299. package/dist/cdn/assets/create-feature/t9n/messages.tr.json +1 -1
  300. package/dist/cdn/assets/create-feature/t9n/messages.uk.json +1 -1
  301. package/dist/cdn/assets/create-feature/t9n/messages.vi.json +1 -1
  302. package/dist/cdn/assets/create-feature/t9n/messages.zh-CN.json +1 -1
  303. package/dist/cdn/assets/create-feature/t9n/messages.zh-HK.json +1 -1
  304. package/dist/cdn/assets/create-feature/t9n/messages.zh-TW.json +1 -1
  305. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ar.json +1 -1
  306. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.bg.json +1 -1
  307. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.bs.json +1 -1
  308. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ca.json +1 -1
  309. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.cs.json +1 -1
  310. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.da.json +1 -1
  311. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.de.json +1 -1
  312. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.el.json +1 -1
  313. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.es.json +1 -1
  314. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.et.json +1 -1
  315. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.fi.json +1 -1
  316. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.fr.json +1 -1
  317. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.he.json +1 -1
  318. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.hr.json +1 -1
  319. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.hu.json +1 -1
  320. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.id.json +1 -1
  321. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.it.json +1 -1
  322. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ja.json +1 -1
  323. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ko.json +1 -1
  324. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.lt.json +1 -1
  325. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.lv.json +1 -1
  326. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.nl.json +1 -1
  327. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.no.json +1 -1
  328. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pl.json +1 -1
  329. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pt-BR.json +1 -1
  330. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.pt-PT.json +1 -1
  331. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ro.json +1 -1
  332. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.ru.json +1 -1
  333. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sk.json +1 -1
  334. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sl.json +1 -1
  335. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sr.json +1 -1
  336. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.sv.json +1 -1
  337. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.th.json +1 -1
  338. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.tr.json +1 -1
  339. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.uk.json +1 -1
  340. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.vi.json +1 -1
  341. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-CN.json +1 -1
  342. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-HK.json +1 -1
  343. package/dist/cdn/assets/crowdsource-reporter/t9n/messages.zh-TW.json +1 -1
  344. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
  345. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
  346. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
  347. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
  348. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
  349. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
  350. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
  351. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
  352. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
  353. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
  354. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
  355. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
  356. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
  357. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
  358. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
  359. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
  360. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
  361. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
  362. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
  363. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
  364. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
  365. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
  366. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
  367. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
  368. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
  369. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
  370. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
  371. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
  372. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
  373. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
  374. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
  375. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
  376. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
  377. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
  378. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
  379. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
  380. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
  381. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
  382. package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
  383. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ar.json +1 -1
  384. package/dist/cdn/assets/solution-deployed-card/t9n/messages.bg.json +1 -1
  385. package/dist/cdn/assets/solution-deployed-card/t9n/messages.bs.json +1 -1
  386. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ca.json +1 -1
  387. package/dist/cdn/assets/solution-deployed-card/t9n/messages.cs.json +1 -1
  388. package/dist/cdn/assets/solution-deployed-card/t9n/messages.da.json +1 -1
  389. package/dist/cdn/assets/solution-deployed-card/t9n/messages.de.json +1 -1
  390. package/dist/cdn/assets/solution-deployed-card/t9n/messages.el.json +1 -1
  391. package/dist/cdn/assets/solution-deployed-card/t9n/messages.es.json +1 -1
  392. package/dist/cdn/assets/solution-deployed-card/t9n/messages.et.json +1 -1
  393. package/dist/cdn/assets/solution-deployed-card/t9n/messages.fi.json +1 -1
  394. package/dist/cdn/assets/solution-deployed-card/t9n/messages.fr.json +1 -1
  395. package/dist/cdn/assets/solution-deployed-card/t9n/messages.he.json +1 -1
  396. package/dist/cdn/assets/solution-deployed-card/t9n/messages.hr.json +1 -1
  397. package/dist/cdn/assets/solution-deployed-card/t9n/messages.hu.json +1 -1
  398. package/dist/cdn/assets/solution-deployed-card/t9n/messages.id.json +1 -1
  399. package/dist/cdn/assets/solution-deployed-card/t9n/messages.it.json +1 -1
  400. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ja.json +1 -1
  401. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ko.json +1 -1
  402. package/dist/cdn/assets/solution-deployed-card/t9n/messages.lt.json +1 -1
  403. package/dist/cdn/assets/solution-deployed-card/t9n/messages.lv.json +1 -1
  404. package/dist/cdn/assets/solution-deployed-card/t9n/messages.nl.json +1 -1
  405. package/dist/cdn/assets/solution-deployed-card/t9n/messages.no.json +1 -1
  406. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pl.json +1 -1
  407. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pt-BR.json +1 -1
  408. package/dist/cdn/assets/solution-deployed-card/t9n/messages.pt-PT.json +1 -1
  409. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ro.json +1 -1
  410. package/dist/cdn/assets/solution-deployed-card/t9n/messages.ru.json +1 -1
  411. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sk.json +1 -1
  412. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sl.json +1 -1
  413. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sr.json +1 -1
  414. package/dist/cdn/assets/solution-deployed-card/t9n/messages.sv.json +1 -1
  415. package/dist/cdn/assets/solution-deployed-card/t9n/messages.th.json +1 -1
  416. package/dist/cdn/assets/solution-deployed-card/t9n/messages.tr.json +1 -1
  417. package/dist/cdn/assets/solution-deployed-card/t9n/messages.uk.json +1 -1
  418. package/dist/cdn/assets/solution-deployed-card/t9n/messages.vi.json +1 -1
  419. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-CN.json +1 -1
  420. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-HK.json +1 -1
  421. package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-TW.json +1 -1
  422. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ar.json +1 -1
  423. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bg.json +1 -1
  424. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.bs.json +1 -1
  425. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ca.json +1 -1
  426. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.cs.json +1 -1
  427. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.da.json +1 -1
  428. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.de.json +1 -1
  429. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.el.json +1 -1
  430. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.es.json +1 -1
  431. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.et.json +1 -1
  432. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fi.json +1 -1
  433. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.fr.json +1 -1
  434. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.he.json +1 -1
  435. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hr.json +1 -1
  436. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.hu.json +1 -1
  437. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.id.json +1 -1
  438. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.it.json +1 -1
  439. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ja.json +1 -1
  440. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ko.json +1 -1
  441. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lt.json +1 -1
  442. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.lv.json +1 -1
  443. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.nl.json +1 -1
  444. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.no.json +1 -1
  445. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pl.json +1 -1
  446. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-BR.json +1 -1
  447. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.pt-PT.json +1 -1
  448. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ro.json +1 -1
  449. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.ru.json +1 -1
  450. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sk.json +1 -1
  451. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sl.json +1 -1
  452. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sr.json +1 -1
  453. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.sv.json +1 -1
  454. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.th.json +1 -1
  455. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.tr.json +1 -1
  456. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.uk.json +1 -1
  457. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.vi.json +1 -1
  458. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-CN.json +1 -1
  459. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-HK.json +1 -1
  460. package/dist/cdn/assets/solution-deployed-card-panel/t9n/messages.zh-TW.json +1 -1
  461. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ar.json +1 -1
  462. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.bg.json +1 -1
  463. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.bs.json +1 -1
  464. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ca.json +1 -1
  465. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.cs.json +1 -1
  466. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.da.json +1 -1
  467. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.de.json +1 -1
  468. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.el.json +1 -1
  469. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.es.json +1 -1
  470. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.et.json +1 -1
  471. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.fi.json +1 -1
  472. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.fr.json +1 -1
  473. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.he.json +1 -1
  474. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.hr.json +1 -1
  475. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.hu.json +1 -1
  476. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.id.json +1 -1
  477. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.it.json +1 -1
  478. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ja.json +1 -1
  479. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ko.json +1 -1
  480. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.lt.json +1 -1
  481. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.lv.json +1 -1
  482. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.nl.json +1 -1
  483. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.no.json +1 -1
  484. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pl.json +1 -1
  485. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pt-BR.json +1 -1
  486. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.pt-PT.json +1 -1
  487. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ro.json +1 -1
  488. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.ru.json +1 -1
  489. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sk.json +1 -1
  490. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sl.json +1 -1
  491. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sr.json +1 -1
  492. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.sv.json +1 -1
  493. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.th.json +1 -1
  494. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.tr.json +1 -1
  495. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.uk.json +1 -1
  496. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.vi.json +1 -1
  497. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-CN.json +1 -1
  498. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-HK.json +1 -1
  499. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.zh-TW.json +1 -1
  500. package/dist/cdn/assets/solutions-deploy-app-nav/t9n/messages.ar.json +1 -1
  501. package/dist/cdn/index.js +1 -1
  502. package/dist/chunks/solution-builder-assistant.js +3 -3
  503. package/dist/components/arcgis-solutions-assistant/customElement.js +3 -3
  504. package/dist/components/buffer-tools/customElement.d.ts +5 -1
  505. package/dist/components/card-manager/customElement.d.ts +3 -0
  506. package/dist/components/card-manager/customElement.js +60 -30
  507. package/dist/components/create-feature/customElement.d.ts +10 -0
  508. package/dist/components/create-feature/customElement.js +66 -60
  509. package/dist/components/crowdsource-manager/customElement.js +7 -4
  510. package/dist/components/layer-table/customElement.d.ts +6 -0
  511. package/dist/components/layer-table/customElement.js +38 -29
  512. package/dist/components/map-card/customElement.js +40 -34
  513. package/dist/components/map-tools/customElement.js +14 -15
  514. package/dist/components/map-tools/index.js +1 -0
  515. package/dist/components/solution-details-panel/customElement.js +5 -3
  516. package/dist/components/solutions-deploy-app/customElement.js +2 -2
  517. package/dist/components/solutions-searchsort-toolbar/customElement.js +1 -1
  518. package/dist/docs/api.json +1 -1
  519. package/dist/docs/docs.json +1 -1
  520. package/dist/docs/vscode.html-custom-data.json +1 -1
  521. package/dist/docs/web-types.json +1 -1
  522. package/dist/solutions-components_commit.txt +7 -7
  523. package/dist/types/lumina.d.ts +5 -0
  524. package/dist/types/preact.d.ts +5 -0
  525. package/dist/types/react.d.ts +5 -0
  526. package/dist/types/stencil.d.ts +5 -0
  527. package/package.json +1 -1
  528. package/dist/cdn/2L7O5T7N.js +0 -2
  529. package/dist/cdn/BPOWO72Z.js +0 -2
  530. package/dist/cdn/CQQH3XK5.js +0 -2
  531. package/dist/cdn/DMX66TUK.js +0 -2
  532. package/dist/cdn/E4ZB3BPD.js +0 -2
  533. package/dist/cdn/HDTRW7I6.js +0 -4
  534. package/dist/cdn/HXAKVGDN.js +0 -2
  535. package/dist/cdn/MG4GXXGQ.js +0 -2
  536. package/dist/cdn/QPIMTXPL.js +0 -2
  537. package/dist/cdn/RFRP75GX.js +0 -2
  538. package/dist/cdn/XOEFU24R.js +0 -2
  539. package/dist/cdn/ZIDWIYAR.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import d from"./FE7HMUSZ.js";import{a as ee}from"./BM666UZR.js";import c from"./O7O4T4G4.js";import"./VVZAS55G.js";import"./US5FON7D.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as W}from"./I2NTSKBD.js";import"./MSUQVQBX.js";import{a as z}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as B,c as J}from"./2I5LGZNX.js";import{E as f,F as u,G as j,I as x,J as H,h as M,i as l,l as T,q as A,r as G,t as U}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([le,ne,re,te,L,O,,{g:q,j:X},{a:Y,d:Q,e:K,f:Z}])=>{var ce=M`@layer{:host{display:block;--calcite-input-message-spacing-value: 0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-bottom-0{padding-bottom:0!important}.padding-inline-start-0{padding-inline-start:0!important}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-block-start-1{padding-block-start:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-top-1-2{padding-block-start:.5rem!important}.padding-top-1{padding-top:1rem}.indent-group{border-inline-start:1px solid var(--calcite-color-border-2);margin-bottom:.5rem;padding-inline-start:1rem;margin-inline-start:.5rem}.margin-bottom-0-5{margin-bottom:.5rem}.margin-top-0-5{margin-top:.5rem!important}.instructional-text{line-height:1;padding:0!important;margin:0;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.info-blue{color:var(--calcite-color-status-info)}.info-message{justify-content:center;display:grid}.font-bold{font-weight:700}.header-label{font-weight:700;font-size:var(--calcite-font-size-0)}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:.5rem}.margin-top-0{margin-block-start:0!important}.margin-top-1{margin-top:1rem!important}.label-margin-0{--calcite-label-margin-bottom: 0}.list-label{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-bold)!important}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-surface-4: var(--calcite-color-brand);--calcite-color-surface-3: var(--calcite-color-brand-hover);--calcite-color-text-1: var(--calcite-color-text-inverse);--calcite-action-background-color-hover: var(--calcite-color-brand-hover)}.padding-bottom-1{padding-bottom:1rem}.word-wrap-anywhere{word-wrap:anywhere}.list-container{padding:0 1rem 1rem}.list-items{align-items:center;background-color:#fff;box-shadow:0 1px 3px #0000001a;font-family:sans-serif;padding:12px 16px}.list-item{display:flex;align-items:center;justify-content:space-between}.item-label{color:#4a4a4a;font-size:16px}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}calcite-segmented-control{--calcite-segmented-control-border-color: var(--calcite-color-border-2)}calcite-segmented-control-item{--calcite-segmented-control-color: var(--calcite-color-text-3)}calcite-segmented-control-item[checked]{--calcite-segmented-control-border-color: var(--calcite-color-surface-highlight);--calcite-segmented-control-background-color: var(--calcite-color-surface-highlight);--calcite-segmented-control-color: var(--calcite-color-text-highlight)}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`,R=class extends G{constructor(){super(),this.managedLayers={},this.managedTables=[],this.highlightHandles=[]}removeHandles(){this.highlightHandles.forEach(e=>{e?.remove()}),this.highlightHandles=[]}},D=class extends j{constructor(){super(),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.customExport=!1,this.customExportURL="",this.defaultBufferDistance=0,this.defaultBufferUnit="feet",this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureHighlightEnabled=!1,this.noResultText="",this.initialNotice="",this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType="PDF",this._fetchingData=!1,this._isMobile=!1,this._numDuplicates=0,this._pageType="LIST",this._saveEnabled=!1,this._selectionSets=[],this._segmentType="STANDARD",this._selectedReportingLayerId="",this._isInitialLoading=!0,this._layoutTemplates=[],this._translations=z({name:"public-notification",blocking:!0}),this._downloadTools=f(),this.layoutTemplateSelectRef=f(),this.reportTemplateSelectRef=f(),this._onboardingImageUrl="",this._popupsEnabled=!1,this._removeDuplicates=f(),this._selectTools=f(),this._refineSelection=f(),this._titleElement=f(),this._titleValue=void 0,this._numSelected=0,this._pnStateContextProvider=W({context:ee}),this._refineGraphics=[],this._reportTemplates=[],this._reportTemplatesInfo=[],this.searchConfigurationChange=A(),this.listenOn(window,"selectionSetsChanged",this.selectionSetsChanged),this._pnState=new R,this._pnStateContextProvider.setValue(this._pnState)}static{this.properties={addresseeLayerIds:0,bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,customExport:5,customExportURL:1,defaultBufferDistance:9,defaultBufferUnit:1,defaultExportTitle:1,defaultNumLabelsPerPage:9,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,featureEffect:0,featureHighlightEnabled:5,mapView:0,noResultText:1,initialNotice:1,searchConfiguration:0,selectionLayerIds:0,showRefineSelection:5,showSearchSettings:5,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,_exportGraphics:16,_addMap:16,_addResults:16,_addTitle:16,_downloadActive:16,_exportType:16,_fetchingData:16,_isMobile:16,_numDuplicates:16,_pageType:16,_saveEnabled:16,_selectionSets:16,_segmentType:16,_selectedReportingLayerId:16,_isInitialLoading:16,_layoutTemplates:16,_translations:16}}static{this.styles=ce}static{this.shadowRootOptions=U}willUpdate(e){e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView),e.has("searchConfiguration")&&this.searchConfiguration&&this.watchSearchConfigurationHandler(this.searchConfiguration,e.get("searchConfiguration")),e.has("sketchLineSymbol")&&this.sketchLineSymbolWatchHandler(this.sketchLineSymbol,e.get("sketchLineSymbol")),e.has("sketchPointSymbol")&&this.sketchPointSymbolWatchHandler(this.sketchPointSymbol,e.get("sketchPointSymbol")),e.has("sketchPolygonSymbol")&&this.sketchPolygonSymbolWatchHandler(this.sketchPolygonSymbol,e.get("sketchPolygonSymbol")),e.has("_pageType")&&(this.hasUpdated||this._pageType!=="LIST")&&this.pageTypeWatchHandler(this._pageType,e.get("_pageType")),(e.has("customExport")||e.has("customExportURL"))&&this.hasUpdated&&this._setTemplates()}async mapViewWatchHandler(e){e?.popup&&(this._popupsEnabled=e?.popupEnabled),this.searchConfiguration&&this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(e,t){let i=JSON.stringify(e);this.mapView&&(i!==JSON.stringify(t)||i&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(i),this._searchConfiguration&&this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setLineSymbol(e)}async sketchPointSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setPointSymbol(e)}async sketchPolygonSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setPolygonSymbol(e)}async pageTypeWatchHandler(e,t){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=e!=="LIST"?!1:this._popupsEnabled),e==="EXPORT"&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),(t==="SELECT"||t==="REFINE")&&await this._clearSelection(),t==="EXPORT"&&this._removeExportGraphics(),e!=="SELECT")return this._highlightFeatures()}selectionSetsChanged(e){this._selectionSets=[...e.detail]}connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 600px)"),this.listenOn(this._mediaQuery,"change",e=>this._setIsMobile(e))}async load(){this._initSymbols(),this._onboardingImageUrl=J("assets/public-notification/images/onboarding.png")}render(){let e=this._isMobile?"footer":"header";return l`<calcite-shell>${this._isInitialLoading?l`<calcite-loader label></calcite-loader>`:l`<calcite-action-bar class="border-bottom-1 action-bar-size" expand-disabled layout=horizontal slot=${e??T}>${this._getActionGroup("list-check","LIST",this._translations.myLists)}${this.showRefineSelection?this._getActionGroup("test-data","REFINE",this._translations.refineSelection):null}${this._getActionGroup("export","EXPORT",this._translations.export)}</calcite-action-bar>${this._getPage(this._pageType)}`}</calcite-shell>`}async loaded(){this.searchConfiguration&&this._initSearchConfiguration(this.searchConfiguration),this.customExport&&this.customExportURL&&await this._setTemplates(),this._isInitialLoading=!1}_initSearchConfiguration(e){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=e,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(e){let t=e?.type==="simple-line";this.sketchLineSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(e){let t=e?.type==="simple-marker";this.sketchPointSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(e){let t=e?.type==="simple-fill";this.sketchPolygonSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(e){this._isMobile=e.matches}_getActionGroup(e,t,i){let s=this.showRefineSelection?"w-1-3":"w-1-2";return l`<calcite-action-group class=${x(s)} layout=horizontal><div class="background-override"><calcite-action .active=${this._pageType===t} alignment=center class="width-full height-full" .icon=${e} id=${e??T} @click=${()=>{this._setPageType(t)}} style=${H(this._pageType===t?"background-color: var(--calcite-color-brand)":"")} .text=${i}></calcite-action></div><calcite-tooltip placement=bottom .referenceElement=${e}><span>${i}</span></calcite-tooltip></calcite-action-group>`}_setPageType(e){this._pageType=e}_getPage(e){let t;switch(e){case"LIST":t=this._getListPage();break;case"SELECT":t=this._getSelectPage();break;case"EXPORT":t=this._getExportPage();break;case"REFINE":t=this._getRefinePage();break}return t}_getListPage(){let e=this._hasSelections(),t=e?this._translations.listHasSetsTip:this.initialNotice!==""?this.initialNotice:this._translations.selectLayerAndAdd;return l`<calcite-panel>${this._getLabel(this._translations.myLists,!1,"header-label")}${this._getNotice(t||"","padding-sides-1 padding-bottom-1","word-wrap-anywhere")}${e?this._getSelectionSetList():this._getOnboardingImage()}<div class="display-flex padding-1"><calcite-button @click=${()=>{this._setPageType("SELECT")}} width=full><span class="font-weight-500">${this._translations.add}</span></calcite-button></div></calcite-panel>`}_getOnboardingImage(){return l`<div class="display-flex padding-sides-1"><img alt aria-hidden=true class="img-container" src=${this._onboardingImageUrl??T}></div>`}_getSelectionSetList(){return l`<div class="padding-bottom-1-2"><calcite-list class="list-border margin-sides-1" label>${this._selectionSets.reduce((e,t,i)=>{let s=this._getSelectionSetIds(t),a=!0;return t.workflowType==="REFINE"&&(a=Object.keys(t.refineInfos).reduce((o,h)=>{let c=t.refineInfos[h];return o+=c.addIds.length+c.removeIds.length,o},0)>0),a&&e.push(l`<calcite-list-item .label=${t.label} @click=${()=>this.mapView&&this._gotoSelection(t,this.mapView)}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t?.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}",s.length.toString())}</div></div>${this._getAction(!0,"pencil","",o=>this._openSelection(t,o),!1,"actions-end")}${this._getAction(!0,"x","",o=>this._deleteSelection(i,o),!1,"actions-end")}</calcite-list-item>`),e},[])}</calcite-list></div>`}_getSelectionSetIds(e){return e.workflowType!=="REFINE"?e.selectedIds:Object.keys(e.refineInfos).reduce((t,i)=>[...t,...e.refineInfos[i].addIds],[])}_hasSelections(e=!1){let t=[],i=this._selectionSets.some(s=>s.workflowType==="REFINE"?(t=this._getSelectionSetIds(s),!0):!1);return e&&i?t.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){let e=this._getExportInfos(),t=this.mapView?.map&&await Y(this.mapView.map,e),i=t&&Q(t);return t&&i?t.length-i.length:0}_getExportInfos(){return this._selectionSets.reduce((e,t)=>{if(t.download)if(t.workflowType!=="REFINE"&&t?.layerView){let i=t.layerView.layer.id;i!==void 0&&this._updateIds(i,t.layerView,t.selectedIds,e)}else Object.keys(t.refineInfos).forEach(i=>{let s=t.refineInfos[i];s.addIds.length>0&&this._updateIds(i,s.layerView,s.addIds,e)});return e},{})}_updateIds(e,t,i,s){return s[e]?s[e].ids=s[e].ids.concat(i):s[e]={layerView:t,ids:i},s}_getSelectPage(){let e=this._translations.selectSearchTip;return l`<calcite-panel>${this._getLabel(this._translations?.stepTwoFull,!0,"header-label")}${this._getNotice(e,"padding-1","word-wrap-anywhere")}<div><map-select-tools .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} class="" .customLabelEnabled=${this.customLabelEnabled} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableLayerFeatures=${this.enableLayerFeatures} .enableLayerFeaturesOnLoad=${this.enableLayerFeaturesOnLoad} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .enableSketchTools=${this.enableSketchTools} .enabledLayerIds=${this.addresseeLayerIds} header-label-class .isUpdate=${!!this._activeSelection} .mapView=${this.mapView} .noResultText=${this.noResultText} @selectionSetChange=${this._updateForSelection} .searchConfiguration=${this._searchConfiguration} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} .selectionLayerIds=${this.selectionLayerIds} .selectionSet=${this._activeSelection} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .useLayerFeaturesEnabled=${this.enableLayerFeaturesOnLoad} ${u(this._selectTools)}></map-select-tools></div>${this._getPageNavButtons(this._translations.done,this._numSelected===0,()=>{this._saveSelection()},this._translations.cancel,!1,()=>{this._home()})}</calcite-panel>`}_getExportPage(){let e=this._hasSelections(this.showRefineSelection),t=this._numDuplicates>0?"display-block":"display-none",i=this.customExport&&this.customExportURL&&this._layoutTemplates.length;return l`<calcite-panel><div>${this._getLabel(this._translations.export,!1,"header-label")}${e?l`<div>${this._getNotice(this._translations.exportTip,"padding-sides-1")}${this._getLabel(this._translations.exportListsLabel,!1,"")}${this._getExportSelectionLists()}<div class=${`padding-sides-1 ${t}`}><div class="display-flex"><calcite-label layout=inline><calcite-checkbox ${u(this._removeDuplicates)}></calcite-checkbox><div class="display-flex">${this._translations.removeDuplicate}<div class="info-message padding-start-1-2"><calcite-input-message class="info-blue margin-top-0" scale=m>${` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`}</calcite-input-message></div></div></calcite-label><calcite-icon aria-hidden=true class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=remove-duplicates-icon scale=s></calcite-icon></div><calcite-popover closable label overlay-positioning=fixed reference-element=remove-duplicates-icon><span class="tooltip-message">${this._translations.duplicatesTip}</span></calcite-popover></div><div class="border-bottom"></div><div class="segmented-controls padding-top-sides-1">${this._getLabel(this._translations.exportOptions,!0,"","margin-bottom-0-5")}${this._getSegmentedControls()}</div>${i?this._getCustomPrintOptions():l`<div class="padding-1 padding-bottom-0">${this._getExportOptions()}</div>`}<div class="padding-1 display-flex"><calcite-button .disabled=${!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults} .loading=${this._fetchingData} @click=${()=>this._segmentType==="CUSTOM"?this._customExport():void this._standardExport()} width=full><span class="font-weight-500">${this._translations.export}</span></calcite-button></div></div>`:this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")}</div></calcite-panel>`}_customExport(){if(!this.mapView)return;let e=this.layoutTemplateSelectRef.value?this.layoutTemplateSelectRef.value.selectedOption.value:"",t=this.reportTemplateSelectRef.value?this.reportTemplateSelectRef.value.selectedOption.value:"";this._fetchingData=!0;let i=this._reportTemplatesInfo.find(c=>c.reportTemplate===t),s=i?{...i.reportOptions}:{},a=this._selectedReportingLayerId;s?.reportSectionOverrides&&Object.keys(s.reportSectionOverrides).forEach(c=>{s.reportSectionOverrides[c].sourceId=a});let o=new ne({layout:e,report:t,format:"pdf",layoutOptions:{titleText:this._titleElement.value?.value},reportOptions:s}),h=new re({view:this.mapView,template:o});te.execute(this.customExportURL,h).then(c=>{let g=this._titleValue;if(!g){let d=this._getSelectionIdsAndViews(this._selectionSets,!0),m=Z(d);g=K(m)}c.url&&g&&this._downloadCustomPDF(c.url,g),this._fetchingData=!1}).catch(c=>{this._fetchingData=!1,console.error(c)})}async _downloadCustomPDF(e,t){try{let i=await fetch(e);if(!i.ok)throw new Error(`Failed to fetch PDF: ${i.statusText}`);let s=await i.blob(),a=window.URL.createObjectURL(s),o=document.createElement("a");o.href=a,o.download=t||"download.pdf";let h=document.getElementById("custom-export-div");h&&(h.appendChild(o),o.click(),window.URL.revokeObjectURL(a),h.removeChild(o))}catch(i){console.error("Download failed:",i)}}_exportTypeChange(e){this._exportType=e.target.value}_segmentTypeChange(e){this._titleValue="",this._segmentType=e.target.value}_getSegmentedControls(){return this.customExport&&this.customExportURL&&this._layoutTemplates.length?this._getStandardAndCustomSegmentedControl():this._getPDFAndCSVSementedControl()}_getPDFAndCSVSementedControl(){return l`<calcite-segmented-control class="w-100 calcite-segments" @calciteSegmentedControlChange=${this._exportTypeChange} width=full><calcite-segmented-control-item .checked=${this._exportType==="PDF"} class="w-50 end-border" .iconStart=${this._exportType==="PDF"?"check":void 0} value=PDF><span class="font-weight-500">${this._translations.pdf}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${this._exportType==="CSV"} class="w-50" .iconStart=${this._exportType==="CSV"?"check":void 0} value=CSV><span class="font-weight-500">${this._translations.csv}</span></calcite-segmented-control-item></calcite-segmented-control>`}_getStandardAndCustomSegmentedControl(){return l`<calcite-segmented-control class="w-100 calcite-segments" @calciteSegmentedControlChange=${this._segmentTypeChange} width=full><calcite-segmented-control-item .checked=${this._segmentType==="STANDARD"} class="w-50 end-border" .iconStart=${this._segmentType==="STANDARD"?"check":void 0} value=STANDARD><span class="font-weight-500">${this._translations.standard}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${this._segmentType==="CUSTOM"} class="w-50" .iconStart=${this._segmentType==="CUSTOM"?"check":void 0} value=CUSTOM><span class="font-weight-500">${this._translations.custom}</span></calcite-segmented-control-item></calcite-segmented-control>`}_getCustomPrintOptions(){return this._segmentType==="STANDARD"?this._getStandardExportOptions():this._getCustomExportOptions()}_getStandardExportOptions(){return l`<div class="padding-1 padding-bottom-0"><calcite-label layout=inline alignment=start scale=m><calcite-radio-button .checked=${this._exportType==="PDF"} scale=m value=PDF @calciteRadioButtonChange=${this._exportTypeChange}></calcite-radio-button>${this._translations.pdf}</calcite-label><div class=indent-group>${this._getExportOptions()}</div><calcite-label layout=inline class="margin-top-1" alignment=start scale=m><calcite-radio-button .checked=${this._exportType==="CSV"} scale=m value=CSV @calciteRadioButtonChange=${this._exportTypeChange}></calcite-radio-button>${this._translations.csv}</calcite-label></div>`}_getCustomExportOptions(){let e=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",t=[],i=this._getSelectionIdsAndViews(this._selectionSets,!0);return Object.keys(i).forEach(s=>{i[s].ids.length&&t.push(s)}),l`<div id=custom-export-div class="padding-top-sides-1"><p class="instructional-text">${this._translations.formattingTip}</p>${t.length>1&&l`<p class="instructional-text margin-top-0-5">${this._translations.selectMatchingInputLayersLabel}</p>`||""}<div class=${"margin-top-1"}>${this._getLabel(this._translations.title,!0,"","none")}<calcite-input-text class="padding-inline-start-0 padding-top-1-2" @calciteInputTextInput=${()=>this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${e} ${u(this._titleElement)}></calcite-input-text></div><div class=${"margin-top-1"}>${this._getLabel(this._translations.layoutTemplate,!0,"","none")}</div><calcite-select class="padding-inline-start-0 padding-top-1-2" label ${u(this.layoutTemplateSelectRef)}>${this._layoutTemplates.map((s,a)=>l`<calcite-option .selected=${a===0} .value=${s}>${s}</calcite-option>`)}</calcite-select>${this._reportTemplates?.length&&l`<div class=${"margin-top-1"}>${this._getLabel(this._translations.reportTemplate,!0,"","none")}</div><calcite-select class="padding-inline-start-0 padding-top-1-2" label ${u(this.reportTemplateSelectRef)}>${this._reportTemplates.map((s,a)=>l`<calcite-option .selected=${a===0} .value=${s}>${s}</calcite-option>`)}</calcite-select><div class=${"padding-top-sides-1 padding-inline-start-0 display-flex margin-bottom-0-5"}><calcite-label class="label-margin-0" layout=inline>${this._translations.reportLayer}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=information id=filter-message-info scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=filter-message-info><span class="tooltip-message">${this._translations.sourceLayerWarning}</span></calcite-popover></div><map-layer-picker .disabled=${t.length<=1} .enabledLayerIds=${t} .mapView=${this.mapView} @layerSelectionChange=${s=>{this._selectedReportingLayerId=s.detail[0]}} .selectedIds=${[this._selectedReportingLayerId]}></map-layer-picker>`||""}</div>`}async _setTemplates(){if(!this.customExportURL||!this.customExport){this.resetCustomExport();return}let e=this.customExportURL,t=`${e.split("/GPServer")?.[0]}/GPServer`;try{let i=await this.getTasksInfo(t),s="",a=i.tasks?.map(async d=>{await this.getTaskType(d,t)==="GetReportTemplatesInfo"&&(s=`${t}/${d}`)});a&&await Promise.all(a),s&&i.executionType&&await this._fetchReportTemplates(s,i.executionType);let o=(await O(e,{authMode:"auto",responseType:"json",query:{f:"json"}}))?.data,h=o.parameters.find(d=>d.name==="Layout_Template"&&Array.isArray(d.choiceList)),c=o.parameters.find(d=>d.name==="Report_Template"&&Array.isArray(d.choiceList));this._layoutTemplates=h?h.choiceList:[];let g=c?c.choiceList:[];this._reportTemplates=this._reportTemplatesInfo.length?g.filter(d=>this._reportTemplatesInfo.some(m=>m.reportTemplate===d)):[]}catch(i){this.resetCustomExport(),console.error(i)}}resetCustomExport(){this._layoutTemplates=[],this._reportTemplates=[],this._segmentType="STANDARD"}async getTaskType(e,t){if(!e||!t)return Promise.resolve("");let i=`${t}/${e}`;try{let s=(await O(i,{authMode:"auto",responseType:"json",query:{f:"json"}}))?.data?.name||"";return Promise.resolve(s)}catch(s){return console.error(s),Promise.resolve("")}}async getTasksInfo(e){if(!e)return Promise.resolve({});let t=`${e}?f=json`,i={authMode:"auto",responseType:"json",query:{f:"json"}};try{let s=(await O(t,i))?.data,a=s?.tasks,o=s?.executionType==="esriExecutionTypeSynchronous"?"execute":"submitJob";return{tasks:a,supportedOperations:o,executionType:s?.executionType}}catch(s){return this.resetCustomExport(),console.error(s),{}}}async _fetchReportTemplates(e,t){if(e)try{if(t==="esriExecutionTypeSynchronous"){let i=(await L.execute(e,{}))?.results?.find(s=>s.paramName==="Output_JSON");this._reportTemplatesInfo=i?.value??[]}else{let i=await L.submitJob(e,{});await i.waitForJobCompletion();let s=await i.fetchResultData("Output_JSON");this._reportTemplatesInfo=s?.value??[]}this._reportTemplatesInfo=this._reportTemplatesInfo.filter(i=>{let s=i.reportOptions;if(s?.reportSectionOverrides){let a=0;return Object.keys(s.reportSectionOverrides).forEach(o=>{s.reportSectionOverrides[o].hasOwnProperty("sourceId")&&a++}),a<=1}else return!0})}catch(i){console.error("Failed to fetch report templates:",i)}}_getExportOptions(){let e=this._exportType==="PDF"?"display-block":"display-none",t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",a=this._addResults?"":"display-none";return l`<div class=${x(e)}><p class="instructional-text">${this._translations.selectContentTip}</p><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addResults} @calciteCheckboxChange=${()=>this._addResults=!this._addResults}></calcite-checkbox>${this._translations.addResults}</calcite-label></div><div class=${`indent-group margin-top-1 ${a}`}><div class="margin-bottom-0-5"><calcite-label class="label-margin-0">${this._translations.selectPDFLabelOption}</calcite-label></div><div><pdf-download .defaultNumLabelsPerPage=${Number.parseInt(this.defaultNumLabelsPerPage.toString(),10)} .disabled=${!this._downloadActive} ${u(this._downloadTools)}></pdf-download></div></div><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addTitle} @calciteCheckboxChange=${()=>this._addTitle=!this._addTitle}></calcite-checkbox>${this._translations.title}</calcite-label></div><div class=${`${t} indent-group margin-top-0-5`}><calcite-input-text class="padding-inline-start-0 padding-top-1-2" @calciteInputTextInput=${()=>this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${s} ${u(this._titleElement)}></calcite-input-text></div><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addMap} @calciteCheckboxChange=${()=>this._handleAddMapChange()}></calcite-checkbox>${this._translations.includeMap}</calcite-label></div><div class=${`padding-top-sides-1 padding-inline-start-0 ${i}`}><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._exportGraphics} @calciteCheckboxChange=${()=>this._handleExportGraphicsChange()}></calcite-checkbox>${this._translations.listGraphics}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=list-graphics-icon scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=list-graphics-icon><span class="tooltip-message">${this._translations.listGraphicsTip}</span></calcite-popover></div></div>`}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(e){let t,i=this._pnStateContextProvider.value;return Object.keys(i.managedLayers).some(s=>{let a=this.mapView?.map.layers.findIndex(o=>o.title===s);return i.managedLayers[s]===e&&a!==void 0?(t=this.mapView?.map.layers.getItemAt(a),!0):!1}),t}_updateExportGraphics(e=!1){(e||!this._exportGraphics||!this._addMap)&&this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){let e=this._getManagedLayer("sketch"),t=this._getManagedLayer("buffer");e&&e.graphics.removeAll(),t&&t.graphics.removeAll()}_addExportGraphics(){let e=this._getManagedLayer("sketch"),t=this._getManagedLayer("buffer");this._refineGraphics.forEach(i=>{e?.add(i.drawnGraphic),t?.add(i.bufferGraphic)}),this._selectionSets.forEach(i=>{if(i.download&&(e&&i.sketchGraphic&&e.graphics.add(i.sketchGraphic),t)){let s={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=new le({geometry:i.buffer,symbol:s});a&&t.graphics.add(a)}})}async _getExportCropArea(){if(!this.mapView)return;let[e,t]=this.mapView.size||[0,0];if(e<=0||t<=0)return;let i=[],s=n=>{n&&isFinite(n.xmin)&&isFinite(n.ymin)&&isFinite(n.xmax)&&isFinite(n.ymax)&&i.push({xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax,sr:n.spatialReference})},a=n=>{n?.graphics.forEach(r=>{let p=r?.geometry;p&&(p.extent?s(p.extent):typeof p.x=="number"&&typeof p.y=="number"&&i.push({xmin:p.x,ymin:p.y,xmax:p.x,ymax:p.y,sr:p.spatialReference}))})};a(this._getManagedLayer("buffer")),a(this._getManagedLayer("sketch"));let o=[];if(this._selectionSets.forEach(n=>{let r=(p,$)=>{p&&$?.length&&o.push(p.queryExtent({objectIds:$}).then(oe=>oe?.extent??null).catch(()=>null))};n.workflowType==="REFINE"&&n.refineInfos?Object.keys(n.refineInfos).forEach(p=>{let $=n.refineInfos[p];r($?.layerView,$?.addIds||[])}):r(n.layerView,n.selectedIds||[])}),o.length>0&&(await Promise.all(o)).forEach(n=>s(n)),i.length===0)return;let h=i[0].sr,c=i[0].xmin,g=i[0].ymin,d=i[0].xmax,m=i[0].ymax;for(let n=1;n<i.length;++n){let r=i[n];r.xmin<c&&(c=r.xmin),r.ymin<g&&(g=r.ymin),r.xmax>d&&(d=r.xmax),r.ymax>m&&(m=r.ymax)}let E=[{x:c,y:g,spatialReference:h},{x:c,y:m,spatialReference:h},{x:d,y:g,spatialReference:h},{x:d,y:m,spatialReference:h}],y=Number.POSITIVE_INFINITY,b=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,w=Number.NEGATIVE_INFINITY;for(let n of E){let r=this.mapView.toScreen(n);!r||!isFinite(r.x)||!isFinite(r.y)||(r.x<y&&(y=r.x),r.y<b&&(b=r.y),r.x>S&&(S=r.x),r.y>w&&(w=r.y))}if(!isFinite(y)||!isFinite(b)||!isFinite(S)||!isFinite(w))return;let k=24;y=Math.max(0,Math.floor(y-k)),b=Math.max(0,Math.floor(b-k)),S=Math.min(e,Math.ceil(S+k)),w=Math.min(t,Math.ceil(w+k));let V=S-y,N=w-b;if(V<=0||N<=0)return;let F=8/10.5,se=(y+S)/2,ae=(b+w)/2,_=Math.max(V,N*F),v=_/F,I=Math.min(e/_,t/v);I>1&&(_*=I,v*=I),_>e&&(_=e),v>t&&(v=t);let C=se-_/2,P=ae-v/2;return C=Math.max(0,Math.min(C,e-_)),P=Math.max(0,Math.min(P,t-v)),{x:Math.floor(C),y:Math.floor(P),width:Math.floor(_),height:Math.floor(v)}}_getRefinePage(){let e=this._hasSelections();return l`<calcite-panel>${this._getLabel(this._translations.refineSelection,!1,"header-label")}${e?l`<div>${this._getNotice(this._translations.refineTip,"padding-sides-1")}<refine-selection .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} .drawnGraphicsArr=${this._refineGraphics} .selectionSets=${this._selectionSets} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} ${u(this._refineSelection)}></refine-selection></div>`:this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1")}</calcite-panel>`}_getPageNavButtons(e,t,i,s,a,o){return l`<div class="padding-bottom-1"><div class="display-flex padding-top-sides-1"><calcite-button .disabled=${t} @click=${i} width=full><span class="font-weight-500">${e}</span></calcite-button></div><div class="display-flex padding-top-1-2 padding-sides-1"><calcite-button appearance=outline .disabled=${a} @click=${o} width=full><span class="font-weight-500">${s}</span></calcite-button></div></div>`}_changeTitle(){this._titleElement.value?.value&&(this._titleValue=this._titleElement.value.value||"")}_getNotice(e,t="padding-1",i=""){return l`<calcite-notice class=${x(t)} icon=lightbulb kind=success open><div class=${x(i)} slot=message>${e}</div></calcite-notice>`}_getLabel(e,t=!1,i="font-bold",s="padding-top-sides-1"){return i+=t?" label-margin-0":"",l`<div class=${x(s)}><calcite-label class=${x(i)}>${e}</calcite-label></div>`}_getExportSelectionLists(){return this._selectionSets.reduce((e,t)=>{let i=this._getSelectionSetIds(t),s=t.workflowType!=="REFINE"||i.length>0;return!this._downloadActive&&t.download&&s&&(this._downloadActive=!0),s&&e.push(l`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-checkbox .checked=${t.download} class="align-center" @calciteCheckboxChange=${()=>{this._toggleDownload(t.id)}}></calcite-checkbox><calcite-list class="list-border margin-start-1-2 width-full" id=download-list label><calcite-list-item .disabled=${!t.download} .label=${t.label} @click=${()=>{this._toggleDownload(t.id)}}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}",i.length.toString())}</div></div></calcite-list-item></calcite-list></div>`),e},[])||l`<div></div>`}async _toggleDownload(e){let t=!1;this._selectionSets=this._selectionSets.map(i=>{let s=!1;return i.refineInfos&&Object.keys(i.refineInfos).forEach(a=>{i.refineInfos[a].addIds.length&&(s=!0)}),(i.workflowType!=="REFINE"||s)&&(i.download=i.id===e?!i.download:i.download,t=i.download?!0:t),i}),this._updateExportGraphics(!0),this._downloadActive=t,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _standardExport(){let e=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType==="PDF"){let t="";if(this._addMap&&this.mapView){let i=await this._getExportCropArea(),[s,a]=this.mapView.size||[0,0],o=2e3,h=i?.width??s,c=i?.height??a,g=1500,d=2e3;if(h>0&&c>0){let E=o/Math.max(h,c);g=Math.max(1,Math.round(h*E)),d=Math.max(1,Math.round(c*E))}let m={width:g,height:d};i&&(m.area=i),t=(await this.mapView.takeScreenshot(m))?.dataUrl}this._fetchingData=!0,this._downloadTools.value&&this._removeDuplicates.value&&this.mapView?.map&&await this._downloadTools.value.downloadPDF(this.mapView.map,e,this._removeDuplicates.value.checked,this._addTitle&&this._titleElement.value?this._titleElement.value.value:"",t),this._fetchingData=!1}this._exportType==="CSV"&&(this._fetchingData=!0,this._downloadTools.value&&this.mapView?.map&&await this._downloadTools.value.downloadCSV(this.mapView.map,e,this._removeDuplicates.value?.checked||!1),this._fetchingData=!1)}_getSelectionIdsAndViews(e,t=!1){return(t?e.filter(i=>i.download):e).reduce((i,s)=>{if(s.workflowType==="REFINE")Object.keys(s.refineInfos).forEach(a=>{let o=s.refineInfos[a];if(o.addIds){let h=o.layerView.layer.id;i=this._updateExportInfos(i,h,s.label,o.addIds,o.layerView)}});else{let a=s?.layerView?.layer.id;a!==void 0&&s.layerView&&(i=this._updateExportInfos(i,a,s.label,s.selectedIds,s.layerView))}return i},{})}_updateExportInfos(e,t,i,s,a){return t&&Object.keys(e).indexOf(t)>-1?(e[t].ids=[...new Set([...e[t].ids,...s])],e[t].selectionSetNames.push(i)):t&&(e[t]={ids:s,layerView:a,selectionSetNames:[i]}),e}_getAction(e,t,i,s,a=!1,o=""){return l`<calcite-action .disabled=${!e} .icon=${t} icon-flip-rtl .indicator=${a} @click=${s} slot=${o??T} .text=${i}></calcite-action>`}_updateForSelection(e){this._numSelected=e.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType("LIST")}async _saveSelection(){let e=await this._selectTools.value?.getSelection();if(e){let t=this._selectTools.value?.isUpdate;this._selectionSets=t?this._selectionSets.map(i=>i.id===e.id?e:i):[...this._selectionSets,e]}return this._home()}async _clearSelection(){await this._selectTools.value?.clearSelection(),this._numSelected=0,this._activeSelection=void 0}async _deleteSelection(e,t){return t.stopPropagation(),this._selectionSets=this._selectionSets.filter((i,s)=>(i.workflowType==="REFINE"&&(this._refineGraphics=[]),s!==e?i:!1)),this._highlightFeatures()}_gotoSelection(e,t){e.selectedIds&&e.layerView&&X(e.selectedIds,e.layerView,t,this.featureHighlightEnabled,this.featureEffect)}_openSelection(e,t){t.stopPropagation(),this._activeSelection=e,this._pageType=e.workflowType==="REFINE"?"REFINE":"SELECT"}async _highlightFeatures(){let e=this._pnStateContextProvider.value;this._clearHighlight();let t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType==="EXPORT"),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){let a=t[i[s]];if(a.layerView&&this.mapView){let o=await q(a.ids,a.layerView,this.mapView);e.highlightHandles.push(o)}}}_checkPopups(){typeof this._popupsEnabled!="boolean"&&(this._popupsEnabled=!!this.mapView?.popupEnabled)}_clearHighlight(){let e=this._pnStateContextProvider.value;e&&e.highlightHandles&&e.removeHandles()}};B("public-notification",D);return D},"Graphic","rest/support/PrintTemplate","rest/support/PrintParameters","rest/print","rest/geoprocessor","request",a,b,c,d)
2
+ import d from"./FE7HMUSZ.js";import{a as ee}from"./BM666UZR.js";import c from"./CYEFGPUM.js";import"./VVZAS55G.js";import"./US5FON7D.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import{a as W}from"./I2NTSKBD.js";import"./ACTJS4TX.js";import{a as z}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as B,c as J}from"./2I5LGZNX.js";import{E as f,F as u,G as j,I as x,J as H,h as M,i as l,l as T,q as A,r as G,t as U}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([le,ne,re,te,L,O,,{g:q,j:X},{a:Y,d:Q,e:K,f:Z}])=>{var ce=M`@layer{:host{display:block;--calcite-input-message-spacing-value: 0}.align-center{align-items:center}.border-bottom-1{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.action-bar-size{height:3.5rem;width:100%}.w-1-2{width:50%}.w-1-3{width:33.33%}.width-full{width:100%}.height-full{height:100%}.padding-1{padding:1rem}.padding-bottom-0{padding-bottom:0!important}.padding-inline-start-0{padding-inline-start:0!important}.padding-top-sides-1{padding-block-start:1rem;padding-inline-start:1rem;padding-inline-end:1rem}.padding-block-start-1{padding-block-start:1rem}.padding-sides-1{padding-inline-start:1rem;padding-inline-end:1rem}.padding-top-1-2{padding-block-start:.5rem!important}.padding-top-1{padding-top:1rem}.indent-group{border-inline-start:1px solid var(--calcite-color-border-2);margin-bottom:.5rem;padding-inline-start:1rem;margin-inline-start:.5rem}.margin-bottom-0-5{margin-bottom:.5rem}.margin-top-0-5{margin-top:.5rem!important}.instructional-text{line-height:1;padding:0!important;margin:0;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.info-blue{color:var(--calcite-color-status-info)}.info-message{justify-content:center;display:grid}.font-bold{font-weight:700}.header-label{font-weight:700;font-size:var(--calcite-font-size-0)}.display-flex{display:flex}.display-block{display:block}.display-none{display:none}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-start-1-2{padding-inline-start:.5rem}.list-border{border:1px solid var(--calcite-color-border-2)}.margin-sides-1{margin-inline-start:1rem;margin-inline-end:1rem}.margin-start-1-2{margin-inline-start:.5rem}.margin-top-0{margin-block-start:0!important}.margin-top-1{margin-top:1rem!important}.label-margin-0{--calcite-label-margin-bottom: 0}.list-label{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-bold)!important}.list-label,.list-description{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);overflow-wrap:break-word;word-break:break-word}.list-description{margin-block-start:.125rem;color:var(--calcite-color-text-3)}.img-container{width:100%;height:100%}.font-weight-500{font-weight:500}.background-override{height:100%;width:100%;--calcite-color-surface-4: var(--calcite-color-brand);--calcite-color-surface-3: var(--calcite-color-brand-hover);--calcite-color-text-1: var(--calcite-color-text-inverse);--calcite-action-background-color-hover: var(--calcite-color-brand-hover)}.padding-bottom-1{padding-bottom:1rem}.word-wrap-anywhere{word-wrap:anywhere}.list-container{padding:0 1rem 1rem}.list-items{align-items:center;background-color:#fff;box-shadow:0 1px 3px #0000001a;font-family:sans-serif;padding:12px 16px}.list-item{display:flex;align-items:center;justify-content:space-between}.item-label{color:#4a4a4a;font-size:16px}.tooltip-message{padding:5px 8px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);max-width:400px}calcite-segmented-control{--calcite-segmented-control-border-color: var(--calcite-color-border-2)}calcite-segmented-control-item{--calcite-segmented-control-color: var(--calcite-color-text-3)}calcite-segmented-control-item[checked]{--calcite-segmented-control-border-color: var(--calcite-color-surface-highlight);--calcite-segmented-control-background-color: var(--calcite-color-surface-highlight);--calcite-segmented-control-color: var(--calcite-color-text-highlight)}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`,R=class extends G{constructor(){super(),this.managedLayers={},this.managedTables=[],this.highlightHandles=[]}removeHandles(){this.highlightHandles.forEach(e=>{e?.remove()}),this.highlightHandles=[]}},D=class extends j{constructor(){super(),this.addresseeLayerIds=[],this.bufferColor=[227,139,79,.8],this.bufferOutlineColor=[255,255,255],this.customLabelEnabled=!1,this.customExport=!1,this.customExportURL="",this.defaultBufferDistance=0,this.defaultBufferUnit="feet",this.defaultExportTitle="",this.defaultNumLabelsPerPage=6,this.enableLayerFeatures=!0,this.enableLayerFeaturesOnLoad=!1,this.enableSearchDistance=!0,this.enableSearchDistanceOnLoad=!1,this.enableSketchTools=!0,this.featureHighlightEnabled=!1,this.noResultText="",this.initialNotice="",this.selectionLayerIds=[],this.showRefineSelection=!1,this.showSearchSettings=!0,this._exportGraphics=!1,this._addMap=!1,this._addResults=!0,this._addTitle=!1,this._downloadActive=!0,this._exportType="PDF",this._fetchingData=!1,this._isMobile=!1,this._numDuplicates=0,this._pageType="LIST",this._saveEnabled=!1,this._selectionSets=[],this._segmentType="STANDARD",this._selectedReportingLayerId="",this._isInitialLoading=!0,this._layoutTemplates=[],this._translations=z({name:"public-notification",blocking:!0}),this._downloadTools=f(),this.layoutTemplateSelectRef=f(),this.reportTemplateSelectRef=f(),this._onboardingImageUrl="",this._popupsEnabled=!1,this._removeDuplicates=f(),this._selectTools=f(),this._refineSelection=f(),this._titleElement=f(),this._titleValue=void 0,this._numSelected=0,this._pnStateContextProvider=W({context:ee}),this._refineGraphics=[],this._reportTemplates=[],this._reportTemplatesInfo=[],this.searchConfigurationChange=A(),this.listenOn(window,"selectionSetsChanged",this.selectionSetsChanged),this._pnState=new R,this._pnStateContextProvider.setValue(this._pnState)}static{this.properties={addresseeLayerIds:0,bufferColor:1,bufferOutlineColor:1,customLabelEnabled:5,customExport:5,customExportURL:1,defaultBufferDistance:9,defaultBufferUnit:1,defaultExportTitle:1,defaultNumLabelsPerPage:9,enableLayerFeatures:5,enableLayerFeaturesOnLoad:5,enableSearchDistance:5,enableSearchDistanceOnLoad:5,enableSketchTools:5,featureEffect:0,featureHighlightEnabled:5,mapView:0,noResultText:1,initialNotice:1,searchConfiguration:0,selectionLayerIds:0,showRefineSelection:5,showSearchSettings:5,sketchLineSymbol:0,sketchPointSymbol:0,sketchPolygonSymbol:0,_exportGraphics:16,_addMap:16,_addResults:16,_addTitle:16,_downloadActive:16,_exportType:16,_fetchingData:16,_isMobile:16,_numDuplicates:16,_pageType:16,_saveEnabled:16,_selectionSets:16,_segmentType:16,_selectedReportingLayerId:16,_isInitialLoading:16,_layoutTemplates:16,_translations:16}}static{this.styles=ce}static{this.shadowRootOptions=U}willUpdate(e){e.has("mapView")&&this.mapView&&this.mapViewWatchHandler(this.mapView),e.has("searchConfiguration")&&this.searchConfiguration&&this.watchSearchConfigurationHandler(this.searchConfiguration,e.get("searchConfiguration")),e.has("sketchLineSymbol")&&this.sketchLineSymbolWatchHandler(this.sketchLineSymbol,e.get("sketchLineSymbol")),e.has("sketchPointSymbol")&&this.sketchPointSymbolWatchHandler(this.sketchPointSymbol,e.get("sketchPointSymbol")),e.has("sketchPolygonSymbol")&&this.sketchPolygonSymbolWatchHandler(this.sketchPolygonSymbol,e.get("sketchPolygonSymbol")),e.has("_pageType")&&(this.hasUpdated||this._pageType!=="LIST")&&this.pageTypeWatchHandler(this._pageType,e.get("_pageType")),(e.has("customExport")||e.has("customExportURL"))&&this.hasUpdated&&this._setTemplates()}async mapViewWatchHandler(e){e?.popup&&(this._popupsEnabled=e?.popupEnabled),this.searchConfiguration&&this._initSearchConfiguration(this.searchConfiguration)}async watchSearchConfigurationHandler(e,t){let i=JSON.stringify(e);this.mapView&&(i!==JSON.stringify(t)||i&&!this._searchConfiguration)&&(this._searchConfiguration=JSON.parse(i),this._searchConfiguration&&this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}async sketchLineSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setLineSymbol(e)}async sketchPointSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setPointSymbol(e)}async sketchPolygonSymbolWatchHandler(e,t){e&&JSON.stringify(e)!==JSON.stringify(t)&&this._setPolygonSymbol(e)}async pageTypeWatchHandler(e,t){if(this._checkPopups(),this.mapView?.popup&&(this.mapView.popupEnabled=e!=="LIST"?!1:this._popupsEnabled),e==="EXPORT"&&(this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._updateExportGraphics(),this._fetchingData=!1),this._clearHighlight(),(t==="SELECT"||t==="REFINE")&&await this._clearSelection(),t==="EXPORT"&&this._removeExportGraphics(),e!=="SELECT")return this._highlightFeatures()}selectionSetsChanged(e){this._selectionSets=[...e.detail]}connectedCallback(){super.connectedCallback(),this._mediaQuery=window.matchMedia("(max-width: 600px)"),this.listenOn(this._mediaQuery,"change",e=>this._setIsMobile(e))}async load(){this._initSymbols(),this._onboardingImageUrl=J("assets/public-notification/images/onboarding.png")}render(){let e=this._isMobile?"footer":"header";return l`<calcite-shell>${this._isInitialLoading?l`<calcite-loader label></calcite-loader>`:l`<calcite-action-bar class="border-bottom-1 action-bar-size" expand-disabled layout=horizontal slot=${e??T}>${this._getActionGroup("list-check","LIST",this._translations.myLists)}${this.showRefineSelection?this._getActionGroup("test-data","REFINE",this._translations.refineSelection):null}${this._getActionGroup("export","EXPORT",this._translations.export)}</calcite-action-bar>${this._getPage(this._pageType)}`}</calcite-shell>`}async loaded(){this.searchConfiguration&&this._initSearchConfiguration(this.searchConfiguration),this.customExport&&this.customExportURL&&await this._setTemplates(),this._isInitialLoading=!1}_initSearchConfiguration(e){this.searchConfiguration&&!this._searchConfiguration&&this.mapView&&(this._searchConfiguration=e,this.searchConfigurationChange.emit(this._searchConfiguration),this._home())}_initSymbols(){this._setLineSymbol(this.sketchLineSymbol),this._setPointSymbol(this.sketchPointSymbol),this._setPolygonSymbol(this.sketchPolygonSymbol)}_setLineSymbol(e){let t=e?.type==="simple-line";this.sketchLineSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSLS",color:[130,130,130,255],width:2,style:"esriSLSSolid"})}_setPointSymbol(e){let t=e?.type==="simple-marker";this.sketchPointSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSMS",color:[255,255,255,255],angle:0,xoffset:0,yoffset:0,size:6,style:"esriSMSCircle",outline:{type:"esriSLS",color:[50,50,50,255],width:1,style:"esriSLSSolid"}})}_setPolygonSymbol(e){let t=e?.type==="simple-fill";this.sketchPolygonSymbol=t?e:this._jsonUtils?.fromJSON(e||{type:"esriSFS",color:[150,150,150,51],outline:{type:"esriSLS",color:[50,50,50,255],width:2,style:"esriSLSSolid"},style:"esriSFSSolid"})}_setIsMobile(e){this._isMobile=e.matches}_getActionGroup(e,t,i){let s=this.showRefineSelection?"w-1-3":"w-1-2";return l`<calcite-action-group class=${x(s)} layout=horizontal><div class="background-override"><calcite-action .active=${this._pageType===t} alignment=center class="width-full height-full" .icon=${e} id=${e??T} @click=${()=>{this._setPageType(t)}} style=${H(this._pageType===t?"background-color: var(--calcite-color-brand)":"")} .text=${i}></calcite-action></div><calcite-tooltip placement=bottom .referenceElement=${e}><span>${i}</span></calcite-tooltip></calcite-action-group>`}_setPageType(e){this._pageType=e}_getPage(e){let t;switch(e){case"LIST":t=this._getListPage();break;case"SELECT":t=this._getSelectPage();break;case"EXPORT":t=this._getExportPage();break;case"REFINE":t=this._getRefinePage();break}return t}_getListPage(){let e=this._hasSelections(),t=e?this._translations.listHasSetsTip:this.initialNotice!==""?this.initialNotice:this._translations.selectLayerAndAdd;return l`<calcite-panel>${this._getLabel(this._translations.myLists,!1,"header-label")}${this._getNotice(t||"","padding-sides-1 padding-bottom-1","word-wrap-anywhere")}${e?this._getSelectionSetList():this._getOnboardingImage()}<div class="display-flex padding-1"><calcite-button @click=${()=>{this._setPageType("SELECT")}} width=full><span class="font-weight-500">${this._translations.add}</span></calcite-button></div></calcite-panel>`}_getOnboardingImage(){return l`<div class="display-flex padding-sides-1"><img alt aria-hidden=true class="img-container" src=${this._onboardingImageUrl??T}></div>`}_getSelectionSetList(){return l`<div class="padding-bottom-1-2"><calcite-list class="list-border margin-sides-1" label>${this._selectionSets.reduce((e,t,i)=>{let s=this._getSelectionSetIds(t),a=!0;return t.workflowType==="REFINE"&&(a=Object.keys(t.refineInfos).reduce((o,h)=>{let c=t.refineInfos[h];return o+=c.addIds.length+c.removeIds.length,o},0)>0),a&&e.push(l`<calcite-list-item .label=${t.label} @click=${()=>this.mapView&&this._gotoSelection(t,this.mapView)}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t?.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}",s.length.toString())}</div></div>${this._getAction(!0,"pencil","",o=>this._openSelection(t,o),!1,"actions-end")}${this._getAction(!0,"x","",o=>this._deleteSelection(i,o),!1,"actions-end")}</calcite-list-item>`),e},[])}</calcite-list></div>`}_getSelectionSetIds(e){return e.workflowType!=="REFINE"?e.selectedIds:Object.keys(e.refineInfos).reduce((t,i)=>[...t,...e.refineInfos[i].addIds],[])}_hasSelections(e=!1){let t=[],i=this._selectionSets.some(s=>s.workflowType==="REFINE"?(t=this._getSelectionSetIds(s),!0):!1);return e&&i?t.length>0||this._selectionSets.length>1:this._selectionSets.length>0}async _getNumDuplicates(){let e=this._getExportInfos(),t=this.mapView?.map&&await Y(this.mapView.map,e),i=t&&Q(t);return t&&i?t.length-i.length:0}_getExportInfos(){return this._selectionSets.reduce((e,t)=>{if(t.download)if(t.workflowType!=="REFINE"&&t?.layerView){let i=t.layerView.layer.id;i!==void 0&&this._updateIds(i,t.layerView,t.selectedIds,e)}else Object.keys(t.refineInfos).forEach(i=>{let s=t.refineInfos[i];s.addIds.length>0&&this._updateIds(i,s.layerView,s.addIds,e)});return e},{})}_updateIds(e,t,i,s){return s[e]?s[e].ids=s[e].ids.concat(i):s[e]={layerView:t,ids:i},s}_getSelectPage(){let e=this._translations.selectSearchTip;return l`<calcite-panel>${this._getLabel(this._translations?.stepTwoFull,!0,"header-label")}${this._getNotice(e,"padding-1","word-wrap-anywhere")}<div><map-select-tools .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} class="" .customLabelEnabled=${this.customLabelEnabled} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableLayerFeatures=${this.enableLayerFeatures} .enableLayerFeaturesOnLoad=${this.enableLayerFeaturesOnLoad} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .enableSketchTools=${this.enableSketchTools} .enabledLayerIds=${this.addresseeLayerIds} header-label-class .isUpdate=${!!this._activeSelection} .mapView=${this.mapView} .noResultText=${this.noResultText} @selectionSetChange=${this._updateForSelection} .searchConfiguration=${this._searchConfiguration} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} .selectionLayerIds=${this.selectionLayerIds} .selectionSet=${this._activeSelection} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .useLayerFeaturesEnabled=${this.enableLayerFeaturesOnLoad} ${u(this._selectTools)}></map-select-tools></div>${this._getPageNavButtons(this._translations.done,this._numSelected===0,()=>{this._saveSelection()},this._translations.cancel,!1,()=>{this._home()})}</calcite-panel>`}_getExportPage(){let e=this._hasSelections(this.showRefineSelection),t=this._numDuplicates>0?"display-block":"display-none",i=this.customExport&&this.customExportURL&&this._layoutTemplates.length;return l`<calcite-panel><div>${this._getLabel(this._translations.export,!1,"header-label")}${e?l`<div>${this._getNotice(this._translations.exportTip,"padding-sides-1")}${this._getLabel(this._translations.exportListsLabel,!1,"")}${this._getExportSelectionLists()}<div class=${`padding-sides-1 ${t}`}><div class="display-flex"><calcite-label layout=inline><calcite-checkbox ${u(this._removeDuplicates)}></calcite-checkbox><div class="display-flex">${this._translations.removeDuplicate}<div class="info-message padding-start-1-2"><calcite-input-message class="info-blue margin-top-0" scale=m>${` ${this._translations.numDuplicates.replace("{{n}}",this._numDuplicates.toString())}`}</calcite-input-message></div></div></calcite-label><calcite-icon aria-hidden=true class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=remove-duplicates-icon scale=s></calcite-icon></div><calcite-popover closable label overlay-positioning=fixed reference-element=remove-duplicates-icon><span class="tooltip-message">${this._translations.duplicatesTip}</span></calcite-popover></div><div class="border-bottom"></div><div class="segmented-controls padding-top-sides-1">${this._getLabel(this._translations.exportOptions,!0,"","margin-bottom-0-5")}${this._getSegmentedControls()}</div>${i?this._getCustomPrintOptions():l`<div class="padding-1 padding-bottom-0">${this._getExportOptions()}</div>`}<div class="padding-1 display-flex"><calcite-button .disabled=${!this._downloadActive||this._fetchingData||!this._addMap&&!this._addResults} .loading=${this._fetchingData} @click=${()=>this._segmentType==="CUSTOM"?this._customExport():void this._standardExport()} width=full><span class="font-weight-500">${this._translations.export}</span></calcite-button></div></div>`:this._getNotice(this._translations.downloadNoLists,"padding-sides-1 padding-bottom-1")}</div></calcite-panel>`}_customExport(){if(!this.mapView)return;let e=this.layoutTemplateSelectRef.value?this.layoutTemplateSelectRef.value.selectedOption.value:"",t=this.reportTemplateSelectRef.value?this.reportTemplateSelectRef.value.selectedOption.value:"";this._fetchingData=!0;let i=this._reportTemplatesInfo.find(c=>c.reportTemplate===t),s=i?{...i.reportOptions}:{},a=this._selectedReportingLayerId;s?.reportSectionOverrides&&Object.keys(s.reportSectionOverrides).forEach(c=>{s.reportSectionOverrides[c].sourceId=a});let o=new ne({layout:e,report:t,format:"pdf",layoutOptions:{titleText:this._titleElement.value?.value},reportOptions:s}),h=new re({view:this.mapView,template:o});te.execute(this.customExportURL,h).then(c=>{let g=this._titleValue;if(!g){let d=this._getSelectionIdsAndViews(this._selectionSets,!0),m=Z(d);g=K(m)}c.url&&g&&this._downloadCustomPDF(c.url,g),this._fetchingData=!1}).catch(c=>{this._fetchingData=!1,console.error(c)})}async _downloadCustomPDF(e,t){try{let i=await fetch(e);if(!i.ok)throw new Error(`Failed to fetch PDF: ${i.statusText}`);let s=await i.blob(),a=window.URL.createObjectURL(s),o=document.createElement("a");o.href=a,o.download=t||"download.pdf";let h=document.getElementById("custom-export-div");h&&(h.appendChild(o),o.click(),window.URL.revokeObjectURL(a),h.removeChild(o))}catch(i){console.error("Download failed:",i)}}_exportTypeChange(e){this._exportType=e.target.value}_segmentTypeChange(e){this._titleValue="",this._segmentType=e.target.value}_getSegmentedControls(){return this.customExport&&this.customExportURL&&this._layoutTemplates.length?this._getStandardAndCustomSegmentedControl():this._getPDFAndCSVSementedControl()}_getPDFAndCSVSementedControl(){return l`<calcite-segmented-control class="w-100 calcite-segments" @calciteSegmentedControlChange=${this._exportTypeChange} width=full><calcite-segmented-control-item .checked=${this._exportType==="PDF"} class="w-50 end-border" .iconStart=${this._exportType==="PDF"?"check":void 0} value=PDF><span class="font-weight-500">${this._translations.pdf}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${this._exportType==="CSV"} class="w-50" .iconStart=${this._exportType==="CSV"?"check":void 0} value=CSV><span class="font-weight-500">${this._translations.csv}</span></calcite-segmented-control-item></calcite-segmented-control>`}_getStandardAndCustomSegmentedControl(){return l`<calcite-segmented-control class="w-100 calcite-segments" @calciteSegmentedControlChange=${this._segmentTypeChange} width=full><calcite-segmented-control-item .checked=${this._segmentType==="STANDARD"} class="w-50 end-border" .iconStart=${this._segmentType==="STANDARD"?"check":void 0} value=STANDARD><span class="font-weight-500">${this._translations.standard}</span></calcite-segmented-control-item><calcite-segmented-control-item .checked=${this._segmentType==="CUSTOM"} class="w-50" .iconStart=${this._segmentType==="CUSTOM"?"check":void 0} value=CUSTOM><span class="font-weight-500">${this._translations.custom}</span></calcite-segmented-control-item></calcite-segmented-control>`}_getCustomPrintOptions(){return this._segmentType==="STANDARD"?this._getStandardExportOptions():this._getCustomExportOptions()}_getStandardExportOptions(){return l`<div class="padding-1 padding-bottom-0"><calcite-label layout=inline alignment=start scale=m><calcite-radio-button .checked=${this._exportType==="PDF"} scale=m value=PDF @calciteRadioButtonChange=${this._exportTypeChange}></calcite-radio-button>${this._translations.pdf}</calcite-label><div class=indent-group>${this._getExportOptions()}</div><calcite-label layout=inline class="margin-top-1" alignment=start scale=m><calcite-radio-button .checked=${this._exportType==="CSV"} scale=m value=CSV @calciteRadioButtonChange=${this._exportTypeChange}></calcite-radio-button>${this._translations.csv}</calcite-label></div>`}_getCustomExportOptions(){let e=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",t=[],i=this._getSelectionIdsAndViews(this._selectionSets,!0);return Object.keys(i).forEach(s=>{i[s].ids.length&&t.push(s)}),l`<div id=custom-export-div class="padding-top-sides-1"><p class="instructional-text">${this._translations.formattingTip}</p>${t.length>1&&l`<p class="instructional-text margin-top-0-5">${this._translations.selectMatchingInputLayersLabel}</p>`||""}<div class=${"margin-top-1"}>${this._getLabel(this._translations.title,!0,"","none")}<calcite-input-text class="padding-inline-start-0 padding-top-1-2" @calciteInputTextInput=${()=>this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${e} ${u(this._titleElement)}></calcite-input-text></div><div class=${"margin-top-1"}>${this._getLabel(this._translations.layoutTemplate,!0,"","none")}</div><calcite-select class="padding-inline-start-0 padding-top-1-2" label ${u(this.layoutTemplateSelectRef)}>${this._layoutTemplates.map((s,a)=>l`<calcite-option .selected=${a===0} .value=${s}>${s}</calcite-option>`)}</calcite-select>${this._reportTemplates?.length&&l`<div class=${"margin-top-1"}>${this._getLabel(this._translations.reportTemplate,!0,"","none")}</div><calcite-select class="padding-inline-start-0 padding-top-1-2" label ${u(this.reportTemplateSelectRef)}>${this._reportTemplates.map((s,a)=>l`<calcite-option .selected=${a===0} .value=${s}>${s}</calcite-option>`)}</calcite-select><div class=${"padding-top-sides-1 padding-inline-start-0 display-flex margin-bottom-0-5"}><calcite-label class="label-margin-0" layout=inline>${this._translations.reportLayer}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=information id=filter-message-info scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=filter-message-info><span class="tooltip-message">${this._translations.sourceLayerWarning}</span></calcite-popover></div><map-layer-picker .disabled=${t.length<=1} .enabledLayerIds=${t} .mapView=${this.mapView} @layerSelectionChange=${s=>{this._selectedReportingLayerId=s.detail[0]}} .selectedIds=${[this._selectedReportingLayerId]}></map-layer-picker>`||""}</div>`}async _setTemplates(){if(!this.customExportURL||!this.customExport){this.resetCustomExport();return}let e=this.customExportURL,t=`${e.split("/GPServer")?.[0]}/GPServer`;try{let i=await this.getTasksInfo(t),s="",a=i.tasks?.map(async d=>{await this.getTaskType(d,t)==="GetReportTemplatesInfo"&&(s=`${t}/${d}`)});a&&await Promise.all(a),s&&i.executionType&&await this._fetchReportTemplates(s,i.executionType);let o=(await O(e,{authMode:"auto",responseType:"json",query:{f:"json"}}))?.data,h=o.parameters.find(d=>d.name==="Layout_Template"&&Array.isArray(d.choiceList)),c=o.parameters.find(d=>d.name==="Report_Template"&&Array.isArray(d.choiceList));this._layoutTemplates=h?h.choiceList:[];let g=c?c.choiceList:[];this._reportTemplates=this._reportTemplatesInfo.length?g.filter(d=>this._reportTemplatesInfo.some(m=>m.reportTemplate===d)):[]}catch(i){this.resetCustomExport(),console.error(i)}}resetCustomExport(){this._layoutTemplates=[],this._reportTemplates=[],this._segmentType="STANDARD"}async getTaskType(e,t){if(!e||!t)return Promise.resolve("");let i=`${t}/${e}`;try{let s=(await O(i,{authMode:"auto",responseType:"json",query:{f:"json"}}))?.data?.name||"";return Promise.resolve(s)}catch(s){return console.error(s),Promise.resolve("")}}async getTasksInfo(e){if(!e)return Promise.resolve({});let t=`${e}?f=json`,i={authMode:"auto",responseType:"json",query:{f:"json"}};try{let s=(await O(t,i))?.data,a=s?.tasks,o=s?.executionType==="esriExecutionTypeSynchronous"?"execute":"submitJob";return{tasks:a,supportedOperations:o,executionType:s?.executionType}}catch(s){return this.resetCustomExport(),console.error(s),{}}}async _fetchReportTemplates(e,t){if(e)try{if(t==="esriExecutionTypeSynchronous"){let i=(await L.execute(e,{}))?.results?.find(s=>s.paramName==="Output_JSON");this._reportTemplatesInfo=i?.value??[]}else{let i=await L.submitJob(e,{});await i.waitForJobCompletion();let s=await i.fetchResultData("Output_JSON");this._reportTemplatesInfo=s?.value??[]}this._reportTemplatesInfo=this._reportTemplatesInfo.filter(i=>{let s=i.reportOptions;if(s?.reportSectionOverrides){let a=0;return Object.keys(s.reportSectionOverrides).forEach(o=>{s.reportSectionOverrides[o].hasOwnProperty("sourceId")&&a++}),a<=1}else return!0})}catch(i){console.error("Failed to fetch report templates:",i)}}_getExportOptions(){let e=this._exportType==="PDF"?"display-block":"display-none",t=this._addTitle?"display-block":"display-none",i=this._addMap?"display-flex":"display-none",s=this._titleValue?this._titleValue:this.defaultExportTitle?this.defaultExportTitle:"",a=this._addResults?"":"display-none";return l`<div class=${x(e)}><p class="instructional-text">${this._translations.selectContentTip}</p><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addResults} @calciteCheckboxChange=${()=>this._addResults=!this._addResults}></calcite-checkbox>${this._translations.addResults}</calcite-label></div><div class=${`indent-group margin-top-1 ${a}`}><div class="margin-bottom-0-5"><calcite-label class="label-margin-0">${this._translations.selectPDFLabelOption}</calcite-label></div><div><pdf-download .defaultNumLabelsPerPage=${Number.parseInt(this.defaultNumLabelsPerPage.toString(),10)} .disabled=${!this._downloadActive} ${u(this._downloadTools)}></pdf-download></div></div><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addTitle} @calciteCheckboxChange=${()=>this._addTitle=!this._addTitle}></calcite-checkbox>${this._translations.title}</calcite-label></div><div class=${`${t} indent-group margin-top-0-5`}><calcite-input-text class="padding-inline-start-0 padding-top-1-2" @calciteInputTextInput=${()=>this._changeTitle()} .placeholder=${this._translations.titlePlaceholder} .value=${s} ${u(this._titleElement)}></calcite-input-text></div><div class="padding-top-sides-1 padding-inline-start-0"><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._addMap} @calciteCheckboxChange=${()=>this._handleAddMapChange()}></calcite-checkbox>${this._translations.includeMap}</calcite-label></div><div class=${`padding-top-sides-1 padding-inline-start-0 ${i}`}><calcite-label class="label-margin-0" layout=inline><calcite-checkbox .checked=${this._exportGraphics} @calciteCheckboxChange=${()=>this._handleExportGraphicsChange()}></calcite-checkbox>${this._translations.listGraphics}</calcite-label><calcite-icon class="padding-start-1-2 icon" .flipRtl=${this._translations._lang?.toLowerCase()!=="he"} icon=question id=list-graphics-icon scale=s></calcite-icon><calcite-popover closable label overlay-positioning=fixed reference-element=list-graphics-icon><span class="tooltip-message">${this._translations.listGraphicsTip}</span></calcite-popover></div></div>`}_handleAddMapChange(){this._addMap=!this._addMap,this._updateExportGraphics()}_handleExportGraphicsChange(){this._exportGraphics=!this._exportGraphics,this._updateExportGraphics()}_getManagedLayer(e){let t,i=this._pnStateContextProvider.value;return Object.keys(i.managedLayers).some(s=>{let a=this.mapView?.map.layers.findIndex(o=>o.title===s);return i.managedLayers[s]===e&&a!==void 0?(t=this.mapView?.map.layers.getItemAt(a),!0):!1}),t}_updateExportGraphics(e=!1){(e||!this._exportGraphics||!this._addMap)&&this._removeExportGraphics(),this._exportGraphics&&this._addMap&&this._addExportGraphics()}_removeExportGraphics(){let e=this._getManagedLayer("sketch"),t=this._getManagedLayer("buffer");e&&e.graphics.removeAll(),t&&t.graphics.removeAll()}_addExportGraphics(){let e=this._getManagedLayer("sketch"),t=this._getManagedLayer("buffer");this._refineGraphics.forEach(i=>{e?.add(i.drawnGraphic),t?.add(i.bufferGraphic)}),this._selectionSets.forEach(i=>{if(i.download&&(e&&i.sketchGraphic&&e.graphics.add(i.sketchGraphic),t)){let s={type:"simple-fill",color:this.bufferColor,outline:{color:this.bufferOutlineColor,width:1}},a=new le({geometry:i.buffer,symbol:s});a&&t.graphics.add(a)}})}async _getExportCropArea(){if(!this.mapView)return;let[e,t]=this.mapView.size||[0,0];if(e<=0||t<=0)return;let i=[],s=n=>{n&&isFinite(n.xmin)&&isFinite(n.ymin)&&isFinite(n.xmax)&&isFinite(n.ymax)&&i.push({xmin:n.xmin,ymin:n.ymin,xmax:n.xmax,ymax:n.ymax,sr:n.spatialReference})},a=n=>{n?.graphics.forEach(r=>{let p=r?.geometry;p&&(p.extent?s(p.extent):typeof p.x=="number"&&typeof p.y=="number"&&i.push({xmin:p.x,ymin:p.y,xmax:p.x,ymax:p.y,sr:p.spatialReference}))})};a(this._getManagedLayer("buffer")),a(this._getManagedLayer("sketch"));let o=[];if(this._selectionSets.forEach(n=>{let r=(p,$)=>{p&&$?.length&&o.push(p.queryExtent({objectIds:$}).then(oe=>oe?.extent??null).catch(()=>null))};n.workflowType==="REFINE"&&n.refineInfos?Object.keys(n.refineInfos).forEach(p=>{let $=n.refineInfos[p];r($?.layerView,$?.addIds||[])}):r(n.layerView,n.selectedIds||[])}),o.length>0&&(await Promise.all(o)).forEach(n=>s(n)),i.length===0)return;let h=i[0].sr,c=i[0].xmin,g=i[0].ymin,d=i[0].xmax,m=i[0].ymax;for(let n=1;n<i.length;++n){let r=i[n];r.xmin<c&&(c=r.xmin),r.ymin<g&&(g=r.ymin),r.xmax>d&&(d=r.xmax),r.ymax>m&&(m=r.ymax)}let E=[{x:c,y:g,spatialReference:h},{x:c,y:m,spatialReference:h},{x:d,y:g,spatialReference:h},{x:d,y:m,spatialReference:h}],y=Number.POSITIVE_INFINITY,b=Number.POSITIVE_INFINITY,S=Number.NEGATIVE_INFINITY,w=Number.NEGATIVE_INFINITY;for(let n of E){let r=this.mapView.toScreen(n);!r||!isFinite(r.x)||!isFinite(r.y)||(r.x<y&&(y=r.x),r.y<b&&(b=r.y),r.x>S&&(S=r.x),r.y>w&&(w=r.y))}if(!isFinite(y)||!isFinite(b)||!isFinite(S)||!isFinite(w))return;let k=24;y=Math.max(0,Math.floor(y-k)),b=Math.max(0,Math.floor(b-k)),S=Math.min(e,Math.ceil(S+k)),w=Math.min(t,Math.ceil(w+k));let V=S-y,N=w-b;if(V<=0||N<=0)return;let F=8/10.5,se=(y+S)/2,ae=(b+w)/2,_=Math.max(V,N*F),v=_/F,I=Math.min(e/_,t/v);I>1&&(_*=I,v*=I),_>e&&(_=e),v>t&&(v=t);let C=se-_/2,P=ae-v/2;return C=Math.max(0,Math.min(C,e-_)),P=Math.max(0,Math.min(P,t-v)),{x:Math.floor(C),y:Math.floor(P),width:Math.floor(_),height:Math.floor(v)}}_getRefinePage(){let e=this._hasSelections();return l`<calcite-panel>${this._getLabel(this._translations.refineSelection,!1,"header-label")}${e?l`<div>${this._getNotice(this._translations.refineTip,"padding-sides-1")}<refine-selection .enabledLayerIds=${this.selectionLayerIds} .mapView=${this.mapView} .drawnGraphicsArr=${this._refineGraphics} .selectionSets=${this._selectionSets} .sketchLineSymbol=${this.sketchLineSymbol} .sketchPointSymbol=${this.sketchPointSymbol} .sketchPolygonSymbol=${this.sketchPolygonSymbol} .bufferColor=${this.bufferColor} .bufferOutlineColor=${this.bufferOutlineColor} .defaultBufferDistance=${this.defaultBufferDistance} .defaultBufferUnit=${this.defaultBufferUnit} .enableSearchDistance=${this.enableSearchDistance} .enableSearchDistanceOnLoad=${this.enableSearchDistanceOnLoad} .searchDistanceEnabled=${this.enableSearchDistanceOnLoad} ${u(this._refineSelection)}></refine-selection></div>`:this._getNotice(this._translations.refineTipNoSelections,"padding-sides-1")}</calcite-panel>`}_getPageNavButtons(e,t,i,s,a,o){return l`<div class="padding-bottom-1"><div class="display-flex padding-top-sides-1"><calcite-button .disabled=${t} @click=${i} width=full><span class="font-weight-500">${e}</span></calcite-button></div><div class="display-flex padding-top-1-2 padding-sides-1"><calcite-button appearance=outline .disabled=${a} @click=${o} width=full><span class="font-weight-500">${s}</span></calcite-button></div></div>`}_changeTitle(){this._titleElement.value?.value&&(this._titleValue=this._titleElement.value.value||"")}_getNotice(e,t="padding-1",i=""){return l`<calcite-notice class=${x(t)} icon=lightbulb kind=success open><div class=${x(i)} slot=message>${e}</div></calcite-notice>`}_getLabel(e,t=!1,i="font-bold",s="padding-top-sides-1"){return i+=t?" label-margin-0":"",l`<div class=${x(s)}><calcite-label class=${x(i)}>${e}</calcite-label></div>`}_getExportSelectionLists(){return this._selectionSets.reduce((e,t)=>{let i=this._getSelectionSetIds(t),s=t.workflowType!=="REFINE"||i.length>0;return!this._downloadActive&&t.download&&s&&(this._downloadActive=!0),s&&e.push(l`<div class="display-flex padding-sides-1 padding-bottom-1"><calcite-checkbox .checked=${t.download} class="align-center" @calciteCheckboxChange=${()=>{this._toggleDownload(t.id)}}></calcite-checkbox><calcite-list class="list-border margin-start-1-2 width-full" id=download-list label><calcite-list-item .disabled=${!t.download} .label=${t.label} @click=${()=>{this._toggleDownload(t.id)}}><div slot=content><div class="list-label">${t.label}</div><div class="list-description">${t.layerView?.layer.title}</div><div class="list-description">${this._translations.selectedFeatures.replace("{{n}}",i.length.toString())}</div></div></calcite-list-item></calcite-list></div>`),e},[])||l`<div></div>`}async _toggleDownload(e){let t=!1;this._selectionSets=this._selectionSets.map(i=>{let s=!1;return i.refineInfos&&Object.keys(i.refineInfos).forEach(a=>{i.refineInfos[a].addIds.length&&(s=!0)}),(i.workflowType!=="REFINE"||s)&&(i.download=i.id===e?!i.download:i.download,t=i.download?!0:t),i}),this._updateExportGraphics(!0),this._downloadActive=t,this._fetchingData=!0,this._numDuplicates=await this._getNumDuplicates(),this._fetchingData=!1,await this._highlightFeatures()}async _standardExport(){let e=this._addResults?this._getSelectionIdsAndViews(this._selectionSets,!0):{};if(this._exportType==="PDF"){let t="";if(this._addMap&&this.mapView){let i=await this._getExportCropArea(),[s,a]=this.mapView.size||[0,0],o=2e3,h=i?.width??s,c=i?.height??a,g=1500,d=2e3;if(h>0&&c>0){let E=o/Math.max(h,c);g=Math.max(1,Math.round(h*E)),d=Math.max(1,Math.round(c*E))}let m={width:g,height:d};i&&(m.area=i),t=(await this.mapView.takeScreenshot(m))?.dataUrl}this._fetchingData=!0,this._downloadTools.value&&this._removeDuplicates.value&&this.mapView?.map&&await this._downloadTools.value.downloadPDF(this.mapView.map,e,this._removeDuplicates.value.checked,this._addTitle&&this._titleElement.value?this._titleElement.value.value:"",t),this._fetchingData=!1}this._exportType==="CSV"&&(this._fetchingData=!0,this._downloadTools.value&&this.mapView?.map&&await this._downloadTools.value.downloadCSV(this.mapView.map,e,this._removeDuplicates.value?.checked||!1),this._fetchingData=!1)}_getSelectionIdsAndViews(e,t=!1){return(t?e.filter(i=>i.download):e).reduce((i,s)=>{if(s.workflowType==="REFINE")Object.keys(s.refineInfos).forEach(a=>{let o=s.refineInfos[a];if(o.addIds){let h=o.layerView.layer.id;i=this._updateExportInfos(i,h,s.label,o.addIds,o.layerView)}});else{let a=s?.layerView?.layer.id;a!==void 0&&s.layerView&&(i=this._updateExportInfos(i,a,s.label,s.selectedIds,s.layerView))}return i},{})}_updateExportInfos(e,t,i,s,a){return t&&Object.keys(e).indexOf(t)>-1?(e[t].ids=[...new Set([...e[t].ids,...s])],e[t].selectionSetNames.push(i)):t&&(e[t]={ids:s,layerView:a,selectionSetNames:[i]}),e}_getAction(e,t,i,s,a=!1,o=""){return l`<calcite-action .disabled=${!e} .icon=${t} icon-flip-rtl .indicator=${a} @click=${s} slot=${o??T} .text=${i}></calcite-action>`}_updateForSelection(e){this._numSelected=e.detail,this._saveEnabled=this._numSelected>0}async _home(){await this._clearSelection(),this._setPageType("LIST")}async _saveSelection(){let e=await this._selectTools.value?.getSelection();if(e){let t=this._selectTools.value?.isUpdate;this._selectionSets=t?this._selectionSets.map(i=>i.id===e.id?e:i):[...this._selectionSets,e]}return this._home()}async _clearSelection(){await this._selectTools.value?.clearSelection(),this._numSelected=0,this._activeSelection=void 0}async _deleteSelection(e,t){return t.stopPropagation(),this._selectionSets=this._selectionSets.filter((i,s)=>(i.workflowType==="REFINE"&&(this._refineGraphics=[]),s!==e?i:!1)),this._highlightFeatures()}_gotoSelection(e,t){e.selectedIds&&e.layerView&&X(e.selectedIds,e.layerView,t,this.featureHighlightEnabled,this.featureEffect)}_openSelection(e,t){t.stopPropagation(),this._activeSelection=e,this._pageType=e.workflowType==="REFINE"?"REFINE":"SELECT"}async _highlightFeatures(){let e=this._pnStateContextProvider.value;this._clearHighlight();let t=this._getSelectionIdsAndViews(this._selectionSets,this._pageType==="EXPORT"),i=Object.keys(t);if(i.length>0)for(let s=0;s<i.length;s++){let a=t[i[s]];if(a.layerView&&this.mapView){let o=await q(a.ids,a.layerView,this.mapView);e.highlightHandles.push(o)}}}_checkPopups(){typeof this._popupsEnabled!="boolean"&&(this._popupsEnabled=!!this.mapView?.popupEnabled)}_clearHighlight(){let e=this._pnStateContextProvider.value;e&&e.highlightHandles&&e.removeHandles()}};B("public-notification",D);return D},"Graphic","rest/support/PrintTemplate","rest/support/PrintParameters","rest/print","rest/geoprocessor","request",a,b,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./7HJCFDJN.js";import{d as C}from"./RPBIUBGZ.js";import d from"./A4RRYLNO.js";import a from"./IEAOGMAM.js";import{b as $}from"./2B4SGB3I.js";import{b as T}from"./I2NTSKBD.js";import{sb as _,ta as b,tb as x,ub as w}from"./MSUQVQBX.js";import{a as S}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as D}from"./2I5LGZNX.js";import{E as m,F as h,G as I,I as f,h as v,i as u,q as c}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([{h:g,m:P,u:V},{p:E,r:N},{a:W}])=>{var L=v`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.font-style-1{font-size:1rem;color:var(--calcite-color-text-2)}.margin-top-0{margin-top:0}.padding-top-20{padding-top:20px}.padding-bottom-2{padding-bottom:2rem}.padding-left-2{padding-left:2rem}.padding-right-2{padding-right:2rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`,y=class extends I{constructor(){super(...arguments),this.open=!1,this.source="Card Dropdown",this.solutionData={},this.templateInfos=[],this._saveDisabled=!1,this._displayTemplateInfos=[],this._hasNameLengthError=!1,this._nonSolutionDependencyItems=[],this._solutionItemsTitlesUpdating=!1,this._translations=S({name:"solution-configure-titles",blocking:!0}),this._configContextConsumer=T({context:$,subscribe:!0}),this._defaultPrefix="",this._defaultSuffix="",this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1,this._prefixRef=m(),this._prefixValue="",this._suffixRef=m(),this._suffixValue="",this._templateInfos=[],this._originalTitles=[],this.solutionConfigureTitlesBeforeClose=c(),this.solutionItemsTitlesChanged=c()}static{this.properties={card:0,open:5,source:1,solutionData:1,templateInfos:0,_saveDisabled:16,_displayTemplateInfos:16,_hasNameLengthError:16,_nonSolutionDependencyItems:16,_solutionItemsTitlesUpdating:16,_translations:16}}static{this.styles=L}async willUpdate(i){if(i.has("templateInfos")&&(this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._updateTemplates()),i.has("open")){let e=i.get("open");if(this.open&&!e){await this._updatePrefixSuffix(),this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._originalTitles=this._templateInfos.map(t=>({id:t.id,title:t.title})),this._updateTemplates();let s=await W(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=s._nonSolutionDependencyItems,await this._accordionRef?.expandFirstItem()}}}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async load(){this._updateTemplates(),await this._updatePrefixSuffix()}async _updatePrefixSuffix(){this.solutionData=await b(this.card.id,this._configContextConsumer.value.userSession),this.solutionData.titles?.prefix&&(this._loadingDefaultPrefix=!0,this._defaultPrefix=this.solutionData.titles.prefix,this._prefixValue=this.solutionData.titles.prefix),this.solutionData.titles?.suffix&&(this._loadingDefaultSuffix=!0,this._defaultSuffix=this.solutionData.titles.suffix,this._suffixValue=this.solutionData.titles.suffix)}render(){return u`<calcite-dialog .heading=${this.card.title} modal @calciteDialogBeforeClose=${()=>{this.solutionConfigureTitlesBeforeClose.emit()}} .open=${this.open} outside-close-disabled width=l>${this._getPrefixSuffixControls()}${this._getAccordion()}${this._getDialogButtons()}</calcite-dialog>`}_getPrefixSuffixControls(){let i=C(this._prefixValue),e=this._hasNameLengthError&&this._prefixValue.length>0,s=i.errorType!=="special-character",t=!e,a=s?"display-none":"",n=t?"display-none":"",d=s&&t?"valid":"invalid",p=C(this._suffixValue),l=this._hasNameLengthError&&this._suffixValue.length>0,o=p.errorType!=="special-character",r=!l,k=o?"display-none":"",O=r?"display-none":"",R=o&&r?"valid":"invalid";return this._saveDisabled=!s||!t||!o||!r||!this._hasChanges(),u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-top-20"><calcite-label scale=l class="font-weight-medium"><span tabindex=0>${this._translations.configureTitlesDialogHeader}</span></calcite-label><p class="font-style-1 margin-top-0" tabindex=0>${this._translations.addPrefixOrSuffixToItems}</p><div class="display-flex flex-direction-row justify-content-space"><calcite-label class="width-full padding-end-1" scale=l>${this._translations.prefixToAddToItems}<calcite-input clearable @blur=${this._prefixInput} @input=${this._prefixInput} .placeholder=${this._translations.enterPrefixPlaceholder} .status=${d} .value=${this._prefixValue} ${h(this._prefixRef)}></calcite-input><calcite-input-message class=${f(a)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(n)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label><calcite-label class="width-full" scale=l>${this._translations.suffixToAddToItems}<calcite-input clearable @blur=${this._suffixInput} @input=${this._suffixInput} .placeholder=${this._translations.enterSuffixPlaceholder} .status=${R} .value=${this._suffixValue} ${h(this._suffixRef)}></calcite-input><calcite-input-message class=${f(k)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(O)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label></div></div>`}_getAccordion(){let i=V(this._nonSolutionDependencyItems,this.card.id);return u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-bottom-2"><p class="font-style-1 margin-top-0">${this._translations.previewTheChanges}</p><solution-item-accordion .itemRelationshipDependencies=${i} list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReuseWarning} .templateInfos=${this._displayTemplateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=rename ${h(async e=>{e&&(this._accordionRef=e)})}></solution-item-accordion></div>`}_getDialogButtons(){return u`<div slot=footer-end><calcite-button appearance=outline class="padding-end-1-2" kind=brand @click=${this._closeDialog}>${this._translations.cancelTheDialog}</calcite-button><calcite-button .disabled=${this._saveDisabled||g(this._configContextConsumer.value)} kind=brand .loading=${this._solutionItemsTitlesUpdating} @click=${this._commitNameChanges}>${this._translations.applyChangesAndCloseTheDialog}</calcite-button></div>`}_prefixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._prefixValue=this._prefixRef.value?.value||"",this._updateTemplates()},500)}_suffixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._suffixValue=this._suffixRef.value?.value||"",this._updateTemplates()},500)}_updateTemplates(){let i=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1,e=this._configContextConsumer.value?.authentication?.PortalUserName;this._templateInfos=this._templateInfos.map(t=>(this._loadingDefaultPrefix&&t.title.startsWith(this._prefixValue)&&(t.title=this._replaceStart(t.title,this._prefixValue,"")),this._loadingDefaultSuffix&&t.title.endsWith(this._suffixValue)&&(t.title=this._replaceAtEnd(t.title,this._suffixValue,"")),t));let s=JSON.parse(JSON.stringify(this._templateInfos));this._hasNameLengthError=!1,this._displayTemplateInfos=s.map(t=>{let a=this._prefixValue!=="",n=this._suffixValue!=="",d=this._defaultPrefix!=="",p=this._defaultSuffix!=="";if(t.owner!==e&&!i)return t;let l=t.title;a&&(d?this._originalTitles.find(r=>r.id===t.id)?.title.startsWith(this._defaultPrefix)?l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue):this._prefixValue!==this._defaultPrefix&&(l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue)):l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue));let o=l;return n&&(p?this._originalTitles.find(r=>r.id===t.id)?.title.endsWith(this._defaultSuffix)?o=this._applySuffixWithDuplicateCheck(l,this._suffixValue):this._suffixValue!==this._defaultSuffix&&(o=this._applySuffixWithDuplicateCheck(l,this._suffixValue)):o=this._applySuffixWithDuplicateCheck(l,this._suffixValue)),t.title=o,this._hasNameLengthError||(this._hasNameLengthError=t.title.length>E),t}),this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1}_replaceStart(i,e,s){return i.startsWith(e)?`${s}${i.slice(e.length)}`:i}_replaceAtEnd(i,e,s){return i.endsWith(e)?`${i.substring(0,i.length-e.length)}${s}`:i}_applyPrefixWithDuplicateCheck(i,e){return!e||i.startsWith(e)?i:e+i}_applySuffixWithDuplicateCheck(i,e){return!e||i.endsWith(e)?i:i+e}_hasChanges(){let i=this._defaultPrefix!==this._prefixValue,e=this._defaultSuffix!==this._suffixValue;return this._displayTemplateInfos.some(s=>{let t=this._originalTitles.find(a=>a.id===s.id);return t&&t.title!==s.title})||i||e}_closeDialog(){this.open=!1}async _commitNameChanges(){if(!g(this._configContextConsumer.value)){if(this._hasChanges()){this._telemetry?.logEvent({category:N.DEPLOYMENTS,action:"Rename Items",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source,P(this.card?.typeKeywords)]}),this._solutionItemsTitlesUpdating=!0;let i=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1,e=this._configContextConsumer.value?.authentication?.PortalUserName,s=this._displayTemplateInfos.reduce((t,a)=>{if(a.owner!==e){if(i){let n={id:a.id,title:a.title};t.push(a.type==="Group"?x(n,this._configContextConsumer.value.userSession):_(n,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner}))}}else{let n={id:a.id,title:a.title};t.push(a.type==="Group"?x(n,this._configContextConsumer.value.userSession):_(n,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner}))}return t},[]);if(this.solutionData?.templates){let t={id:this.card.id},a={...this.solutionData,titles:{prefix:this._prefixValue,suffix:this._suffixValue}};s.push(w(t,a,this._configContextConsumer.value.userSession,void 0,void 0,null,this.card?.owner))}await Promise.all(s),this._solutionItemsTitlesUpdating=!1,this.solutionItemsTitlesChanged.emit()}this._closeDialog()}}};D("solution-configure-titles",y);return y},a,d,e)
2
+ import e from"./KIKSO3OQ.js";import{d as C}from"./TLY6ZEKN.js";import d from"./UBPCOTIY.js";import a from"./PYPVVSIX.js";import{b as $}from"./2B4SGB3I.js";import{b as T}from"./I2NTSKBD.js";import{sb as _,ta as b,tb as x,ub as w}from"./ACTJS4TX.js";import{a as S}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b as D}from"./2I5LGZNX.js";import{E as m,F as h,G as I,I as f,h as v,i as u,q as c}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([{h:g,m:P,u:V},{p:E,r:N},{a:W}])=>{var L=v`*[tabindex]:focus-visible{outline-style:solid!important;outline-width:2px!important;outline-color:var(--calcite-color-brand)!important;outline-offset:2px!important}.display-flex{display:flex}.display-none{display:none}.flex-direction-column{flex-direction:column}.flex-direction-row{flex-direction:row}.font-weight-medium{font-weight:var(--calcite-font-weight-medium)}.font-style-1{font-size:1rem;color:var(--calcite-color-text-2)}.margin-top-0{margin-top:0}.padding-top-20{padding-top:20px}.padding-bottom-2{padding-bottom:2rem}.padding-left-2{padding-left:2rem}.padding-right-2{padding-right:2rem}.padding-end-1{padding-inline-end:1rem}.padding-end-1-2{padding-inline-end:.5rem}.width-full{width:100%}.justify-content-space{justify-content:space-between}`,y=class extends I{constructor(){super(...arguments),this.open=!1,this.source="Card Dropdown",this.solutionData={},this.templateInfos=[],this._saveDisabled=!1,this._displayTemplateInfos=[],this._hasNameLengthError=!1,this._nonSolutionDependencyItems=[],this._solutionItemsTitlesUpdating=!1,this._translations=S({name:"solution-configure-titles",blocking:!0}),this._configContextConsumer=T({context:$,subscribe:!0}),this._defaultPrefix="",this._defaultSuffix="",this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1,this._prefixRef=m(),this._prefixValue="",this._suffixRef=m(),this._suffixValue="",this._templateInfos=[],this._originalTitles=[],this.solutionConfigureTitlesBeforeClose=c(),this.solutionItemsTitlesChanged=c()}static{this.properties={card:0,open:5,source:1,solutionData:1,templateInfos:0,_saveDisabled:16,_displayTemplateInfos:16,_hasNameLengthError:16,_nonSolutionDependencyItems:16,_solutionItemsTitlesUpdating:16,_translations:16}}static{this.styles=L}async willUpdate(i){if(i.has("templateInfos")&&(this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._updateTemplates()),i.has("open")){let e=i.get("open");if(this.open&&!e){await this._updatePrefixSuffix(),this._templateInfos=JSON.parse(JSON.stringify(this.templateInfos)),this._originalTitles=this._templateInfos.map(t=>({id:t.id,title:t.title})),this._updateTemplates();let s=await W(this._configContextConsumer.value.userSession,this.card);this._nonSolutionDependencyItems=s._nonSolutionDependencyItems,await this._accordionRef?.expandFirstItem()}}}get _telemetry(){return this._configContextConsumer.value?.telemetrySession}async load(){this._updateTemplates(),await this._updatePrefixSuffix()}async _updatePrefixSuffix(){this.solutionData=await b(this.card.id,this._configContextConsumer.value.userSession),this.solutionData.titles?.prefix&&(this._loadingDefaultPrefix=!0,this._defaultPrefix=this.solutionData.titles.prefix,this._prefixValue=this.solutionData.titles.prefix),this.solutionData.titles?.suffix&&(this._loadingDefaultSuffix=!0,this._defaultSuffix=this.solutionData.titles.suffix,this._suffixValue=this.solutionData.titles.suffix)}render(){return u`<calcite-dialog .heading=${this.card.title} modal @calciteDialogBeforeClose=${()=>{this.solutionConfigureTitlesBeforeClose.emit()}} .open=${this.open} outside-close-disabled width=l>${this._getPrefixSuffixControls()}${this._getAccordion()}${this._getDialogButtons()}</calcite-dialog>`}_getPrefixSuffixControls(){let i=C(this._prefixValue),e=this._hasNameLengthError&&this._prefixValue.length>0,s=i.errorType!=="special-character",t=!e,a=s?"display-none":"",n=t?"display-none":"",d=s&&t?"valid":"invalid",p=C(this._suffixValue),l=this._hasNameLengthError&&this._suffixValue.length>0,o=p.errorType!=="special-character",r=!l,k=o?"display-none":"",O=r?"display-none":"",R=o&&r?"valid":"invalid";return this._saveDisabled=!s||!t||!o||!r||!this._hasChanges(),u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-top-20"><calcite-label scale=l class="font-weight-medium"><span tabindex=0>${this._translations.configureTitlesDialogHeader}</span></calcite-label><p class="font-style-1 margin-top-0" tabindex=0>${this._translations.addPrefixOrSuffixToItems}</p><div class="display-flex flex-direction-row justify-content-space"><calcite-label class="width-full padding-end-1" scale=l>${this._translations.prefixToAddToItems}<calcite-input clearable @blur=${this._prefixInput} @input=${this._prefixInput} .placeholder=${this._translations.enterPrefixPlaceholder} .status=${d} .value=${this._prefixValue} ${h(this._prefixRef)}></calcite-input><calcite-input-message class=${f(a)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(n)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label><calcite-label class="width-full" scale=l>${this._translations.suffixToAddToItems}<calcite-input clearable @blur=${this._suffixInput} @input=${this._suffixInput} .placeholder=${this._translations.enterSuffixPlaceholder} .status=${R} .value=${this._suffixValue} ${h(this._suffixRef)}></calcite-input><calcite-input-message class=${f(k)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixCharsError}</calcite-input-message><calcite-input-message class=${f(O)} icon=exclamation-mark-triangle status=invalid>${this._translations.invalidPrefixOrSuffixLengthError}</calcite-input-message></calcite-label></div></div>`}_getAccordion(){let i=V(this._nonSolutionDependencyItems,this.card.id);return u`<div class="display-flex flex-direction-column padding-left-2 padding-right-2 padding-bottom-2"><p class="font-style-1 margin-top-0">${this._translations.previewTheChanges}</p><solution-item-accordion .itemRelationshipDependencies=${i} list-selection-mode=multiple .reuseWarning=${this._translations.itemDependencyReuseWarning} .templateInfos=${this._displayTemplateInfos} .typeKeywords=${this.card?.typeKeywords} usage-context=rename ${h(async e=>{e&&(this._accordionRef=e)})}></solution-item-accordion></div>`}_getDialogButtons(){return u`<div slot=footer-end><calcite-button appearance=outline class="padding-end-1-2" kind=brand @click=${this._closeDialog}>${this._translations.cancelTheDialog}</calcite-button><calcite-button .disabled=${this._saveDisabled||g(this._configContextConsumer.value)} kind=brand .loading=${this._solutionItemsTitlesUpdating} @click=${this._commitNameChanges}>${this._translations.applyChangesAndCloseTheDialog}</calcite-button></div>`}_prefixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._prefixValue=this._prefixRef.value?.value||"",this._updateTemplates()},500)}_suffixInput(){clearTimeout(this._textInputTimeout),this._textInputTimeout=setTimeout(()=>{this._suffixValue=this._suffixRef.value?.value||"",this._updateTemplates()},500)}_updateTemplates(){let i=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1,e=this._configContextConsumer.value?.authentication?.PortalUserName;this._templateInfos=this._templateInfos.map(t=>(this._loadingDefaultPrefix&&t.title.startsWith(this._prefixValue)&&(t.title=this._replaceStart(t.title,this._prefixValue,"")),this._loadingDefaultSuffix&&t.title.endsWith(this._suffixValue)&&(t.title=this._replaceAtEnd(t.title,this._suffixValue,"")),t));let s=JSON.parse(JSON.stringify(this._templateInfos));this._hasNameLengthError=!1,this._displayTemplateInfos=s.map(t=>{let a=this._prefixValue!=="",n=this._suffixValue!=="",d=this._defaultPrefix!=="",p=this._defaultSuffix!=="";if(t.owner!==e&&!i)return t;let l=t.title;a&&(d?this._originalTitles.find(r=>r.id===t.id)?.title.startsWith(this._defaultPrefix)?l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue):this._prefixValue!==this._defaultPrefix&&(l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue)):l=this._applyPrefixWithDuplicateCheck(t.title,this._prefixValue));let o=l;return n&&(p?this._originalTitles.find(r=>r.id===t.id)?.title.endsWith(this._defaultSuffix)?o=this._applySuffixWithDuplicateCheck(l,this._suffixValue):this._suffixValue!==this._defaultSuffix&&(o=this._applySuffixWithDuplicateCheck(l,this._suffixValue)):o=this._applySuffixWithDuplicateCheck(l,this._suffixValue)),t.title=o,this._hasNameLengthError||(this._hasNameLengthError=t.title.length>E),t}),this._loadingDefaultPrefix=!1,this._loadingDefaultSuffix=!1}_replaceStart(i,e,s){return i.startsWith(e)?`${s}${i.slice(e.length)}`:i}_replaceAtEnd(i,e,s){return i.endsWith(e)?`${i.substring(0,i.length-e.length)}${s}`:i}_applyPrefixWithDuplicateCheck(i,e){return!e||i.startsWith(e)?i:e+i}_applySuffixWithDuplicateCheck(i,e){return!e||i.endsWith(e)?i:i+e}_hasChanges(){let i=this._defaultPrefix!==this._prefixValue,e=this._defaultSuffix!==this._suffixValue;return this._displayTemplateInfos.some(s=>{let t=this._originalTitles.find(a=>a.id===s.id);return t&&t.title!==s.title})||i||e}_closeDialog(){this.open=!1}async _commitNameChanges(){if(!g(this._configContextConsumer.value)){if(this._hasChanges()){this._telemetry?.logEvent({category:N.DEPLOYMENTS,action:"Rename Items",dimensions:[this.card?.title||"",this.card?.deployCommonId||"",this.card?.deployVersion||"",this.source,P(this.card?.typeKeywords)]}),this._solutionItemsTitlesUpdating=!0;let i=this._configContextConsumer.value?.authentication?.CanUpdateSolution??!1,e=this._configContextConsumer.value?.authentication?.PortalUserName,s=this._displayTemplateInfos.reduce((t,a)=>{if(a.owner!==e){if(i){let n={id:a.id,title:a.title};t.push(a.type==="Group"?x(n,this._configContextConsumer.value.userSession):_(n,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner}))}}else{let n={id:a.id,title:a.title};t.push(a.type==="Group"?x(n,this._configContextConsumer.value.userSession):_(n,this._configContextConsumer.value.userSession,void 0,{solutionOwner:this.card?.owner}))}return t},[]);if(this.solutionData?.templates){let t={id:this.card.id},a={...this.solutionData,titles:{prefix:this._prefixValue,suffix:this._suffixValue}};s.push(w(t,a,this._configContextConsumer.value.userSession,void 0,void 0,null,this.card?.owner))}await Promise.all(s),this._solutionItemsTitlesUpdating=!1,this.solutionItemsTitlesChanged.emit()}this._closeDialog()}}};D("solution-configure-titles",y);return y},a,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as n}from"./BM4VSEDV.js";import{b as i}from"./HVT2WBVC.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{G as o,h as a,i as s}from"./FFF5HUPM.js";import"./QPIMTXPL.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};
2
+ import{a as n}from"./BM4VSEDV.js";import{b as i}from"./HVT2WBVC.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{G as o,h as a,i as s}from"./FFF5HUPM.js";import"./EXBEKVP5.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,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as e,b as i,c as l,d as s,e as t}from"./HJ4N3RZN.js";import{a as r}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
2
+ import{a as e,b as i,c as l,d as s,e as t}from"./HJ4N3RZN.js";import{a as r}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./EXBEKVP5.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",type:"number",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,d as buildUiSchema};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import{a as x}from"./S4ZMJ42A.js";import b from"./2C4DK6YC.js";import a from"./WV7QX3ED.js";import"./HVT2WBVC.js";import{a as L}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{b as I}from"./2I5LGZNX.js";import{E as h,F as r,G as v,I as d,J as C,h as y,i as s,l as w,q as _,t as $}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([,{d:M}])=>{function T(f){let e=t=>{(t?.altKey||t?.metaKey)&&t?.code==="KeyM"&&f?.focus()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}var k=y`@layer{:host{display:block;--calcite-label-margin-bottom: 0px;--solutions-theme-foreground-color: var(--calcite-color-surface-2)}.padding-1-2{padding:.5rem}.display-flex{display:flex}.width-full{width:100%}.width-1-2{position:relative;width:50%}.width-1-3{position:relative;width:33.33%}.width-2-3{position:relative;width:66.66%}.width-0{width:0}.z-index-2{z-index:2!important}.height-full{height:100%}.height-1-2{position:relative;height:50%}.height-0{height:0}.toggle-node{width:51px;height:51px}.overflow-hidden{overflow:hidden}.flex-column{flex-direction:column}.border{border:1px solid var(--calcite-color-border-3)}.border-top{border-top:1px solid var(--calcite-color-border-3)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-3)}.border-sides{border-left:1px solid var(--calcite-color-border-3);border-right:1px solid var(--calcite-color-border-3)}.position-relative{position:relative}.position-absolute{position:absolute}.position-sticky{position:sticky}.height-50{height:50%}.top-51{top:51px}.adjusted-height-50{height:calc(50% - 25px)}.adjusted-height-100{height:calc(100% - 50px)}.adjusted-height-100-51{height:calc(100% - 51px)}.display-none{display:none!important}.adjusted-height-50_25{height:calc(50% + 25px)}.display-grid{display:grid}.padding-inline-start-75{padding-inline-start:.75rem}.align-items-center{align-items:center}.esri-floor-filter__close-levels-button,.esri-floor-filter__level-button,.esri-floor-filter__browse-button{width:40px!important;height:40px!important}.position-absolute-0{position:absolute;inset:0}.visibility-hidden{visibility:hidden;height:0px}.border-width-0{border-width:0px}.floating-container{position:fixed;width:100px;height:10px;bottom:0;margin:100px 0;z-index:1}.left-0{left:0}.right-0{right:0}.floating-container .floating-button{box-shadow:0 10px 25px #5c5d5e99;-webkit-transform:translatey(5px);transform:translatey(5px);-webkit-transition:all .3s;transition:all .3s}.z-index-0{z-index:0!important}.z-index-1{z-index:1!important}.filter-content-space{--calcite-dialog-content-space: 0px}.background-dark{background:var(--calcite-color-surface-1)}.filter-extent-container{display:flex;justify-content:space-between;align-items:center;padding:10px 0}.filter-modal-buttons{display:flex;padding:12px;gap:10px}.filter-extent-message{align-items:center;display:flex;gap:5px}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`,m=class extends v{constructor(){super(),this.coverPageEnabled=!1,this.customInfoText="",this.defaultCenter="",this.defaultGlobalId="",this.defaultLayer="",this.defaultLevel="",this.defaultOid="",this.defaultWebmap="",this.honorMapFieldSettings=!1,this.introductionWindowEnabled=!1,this.enableAutoRefresh=!1,this.enableBasemap=!0,this.enableColumnReorder=!0,this.enableCSV=!0,this.enableFloorFilter=!0,this.enableFullscreen=!0,this.enableHome=!0,this.enableLegend=!0,this.enableLayerList=!0,this.enableMapList=!0,this.visibilityIcon="eyeball",this.enableSearch=!0,this.enableShare=!1,this.enableSnapping=!0,this.enableZoom=!0,this.mapInfos=[],this.onlyShowUpdatableLayers=!1,this.popupHeaderColor="",this.popupHeaderHoverColor="",this.popupHeaderHoverTextColor="",this.popupHeaderTextColor="",this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!0,this.theme="light",this.zoomAndScrollToSelected=!1,this.enableSelectionTool=!0,this.featureSelectionMode="multiple",this.enableCopyPaste=!0,this._deleteDialogOpen=!1,this._enableCreateFeatures=!0,this._hideFooter=!1,this._hideTable=!1,this._isMobile=!1,this._translations=L({name:"crowdsource-manager",blocking:!0}),this._layoutMode="GRID",this._panelOpen=!0,this._numSelected=0,this._filterOpen=!1,this._showInformationHeader=!0,this._layerExpressions=[],this._layerIds=[],this._isLoading=!0,this._mapExtentFilterChecked=!1,this._deleteIds=[],this._showInvalidMapAlert=!1,this._currentMapInfos=[],this._pasteEnabled=!1,this._showCopyPasteActions=!1,this._defaultAppLayoutHonored=!1,this._defaultCenterHonored=!1,this._defaultLevelHonored=!1,this._layerTable=h(),this._shouldSetMapView=!1,this._filterList=h(),this._mapCard=h(),this._isMapViewOnLoad=!1,this.showIntroductionWindow=_(),this.showCoverPage=_(),this.listenOn(window,"featureSelectionChange",this.featureSelectionChange),this.listenOn(window,"popupClosed",this.popupClosed),this.listenOn(window,"layoutChanged",this.layoutChanged),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"showDelete",this.showDelete),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"relatedRecordToggled",this.relatedRecordToggled),this.listenOn(window,"creatingFeature",this.creatingFeature),this.listenOn(window,"featuresCopied",this.featuresCopied),this.listenOn(window,"disablePaste",this.disablePaste),this.listenOn(window,"idsFound",this.idsFound),x(window)}static{this.properties={appLayout:1,appProxies:1,basemapConfig:0,coverPageEnabled:5,customInfoText:1,defaultAppLayout:1,defaultCenter:1,defaultGlobalId:1,defaultLayer:1,defaultLevel:1,defaultOid:1,defaultWebmap:1,honorMapFieldSettings:5,introductionWindowEnabled:5,enableAutoRefresh:5,enableBasemap:5,enableColumnReorder:5,enableCSV:5,enableFloorFilter:5,enableFullscreen:5,enableHome:5,enableLegend:5,enableLayerList:5,enableMapList:5,visibilityIcon:1,enableSearch:5,enableShare:5,enableSnapping:5,enableZoom:5,mapInfos:0,onlyShowUpdatableLayers:5,popupHeaderColor:1,popupHeaderHoverColor:1,popupHeaderHoverTextColor:1,popupHeaderTextColor:1,searchConfiguration:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,theme:1,zoomAndScrollToSelected:5,zoomToScale:9,enableSelectionTool:5,featureSelectionMode:1,enableCopyPaste:5,_deleteDialogOpen:16,_enableCreateFeatures:16,_hideFooter:16,_hideTable:16,_isMobile:16,_translations:16,_layer:16,_layoutMode:16,_mapInfo:16,_mapView:16,_panelOpen:16,_numSelected:16,_filterOpen:16,_showInformationHeader:16,_layerExpressions:16,_layerIds:16,_isLoading:16,_mapExtentFilterChecked:16,_deleteIds:16,_showInvalidMapAlert:16,_currentMapInfos:16,_pasteEnabled:16,_showCopyPasteActions:16}}static{this.styles=k}static{this.shadowRootOptions=$}willUpdate(e){e.has("appLayout")&&this.appLayout&&this.appLayoutWatchHandler(this.appLayout,e.get("appLayout")),e.has("enableZoom")&&(this.hasUpdated||this.enableZoom!==!0)&&this.enableZoomWatchHandler(),e.has("mapInfos")&&this.hasUpdated&&this.mapInfosWatchHandler(),e.has("_isMobile")&&this.hasUpdated&&this._handleCopyPasteActions(),e.has("enableCopyPaste")&&this.hasUpdated&&this._handleCopyPasteActions()}appLayoutWatchHandler(e,t){e!==t&&(this._layerTable.value?.validateTableUpdate(e==="splitView"),this._setActiveLayout(e),this.appLayout==="mapView"&&this._layer?.isTable&&this._mapCard.value&&this._mapCard.value.updateLayer(),this._isMapViewOnLoad&&this._layerTable.value&&this._layerTable.value.refresh())}enableZoomWatchHandler(){this._initMapZoom()}mapInfosWatchHandler(){this.updateCurrentMapInfos()}async featureSelectionChange(e){this._numSelected=e.detail?.length}async popupClosed(){this._isMobile&&this.showHideMapPopupAndTable(!1)}async layoutChanged(e){this._layoutMode=e.detail}async mapChanged(e){this._isMapViewOnLoad&&(this._showMapInFullView(),this._isMapViewOnLoad=!1),this._mapChange=e.detail,this.showHideMapPopupAndTable(!1),this._pasteEnabled=!1,this._mapChange?.isValid?await this._mapChange.mapView?.when(async()=>{await this._setMapView()}):(this._mapInfo=this._mapChange&&this._getMapInfo(this._mapChange.id),this._showInvalidMapAlert=!0)}async layerSelectionChange(e){let t=e.detail[0],i=this._mapView&&await M(this._mapView,t);i&&await i.when(()=>{i.isTable&&!this._isMobile&&(this.appLayout="tableView"),this._layer=i,this._pasteEnabled=!1,this._handleCopyPasteActions(),this._initLayerExpressions(),this._handleFilterListReset(),this._isLoading=!1})}async showDelete(e){this._deleteIds=e.detail.ids,this._deleteDialogOpen=!0}async noLayersFound(){this._layer=void 0,this._isLoading=!1}async clearSelection(){this.showHideMapPopupAndTable(!1)}async relatedRecordToggled(e){let t=e.detail;this._relatedTableLayer=t}async creatingFeature(){this.appLayout="splitView"}featuresCopied(){this._pasteEnabled=!0}disablePaste(){this._pasteEnabled=!1}idsFound(e){this._layerIds=e.detail}load(){this.updateCurrentMapInfos(),this._resizeObserver=new ResizeObserver(()=>this._onResize())}render(){let e=this.popupHeaderColor&&this.popupHeaderColor!=="#FFFFFF"?"border-width-0":"",t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",i=this._translations.invalidWebMapMsg?.replace("{{web_map}}",this._mapInfo?.name||"");return s`${this._showInvalidMapAlert&&s`<calcite-alert auto-close class=${d(t)} icon=check-circle kind=danger label @calciteAlertClose=${()=>{this._showInvalidMapAlert=!1}} open placement=top><div slot=message>${i}</div></calcite-alert>`||""}<calcite-shell class="position-relative"><calcite-panel class=${`width-full height-full ${e}`} .loading=${this._isLoading}>${this._getBody(this._layoutMode,this._panelOpen,this._hideTable)}</calcite-panel>${this._getFooter()}</calcite-shell>${this._filterModal()}${!this._isMobile&&this._deleteModal()||""}`}async updated(){this._shouldSetMapView&&(this._shouldSetMapView=!1,this._mapChange&&await this._setMapView())}loaded(){this._resizeObserver?.observe(this.el),!this._defaultAppLayoutHonored&&this.defaultAppLayout?(this._defaultAppLayoutHonored=!0,this.appLayout=this.defaultAppLayout):this.appLayout||(this.appLayout="splitView"),this._isMapViewOnLoad=this.appLayout==="mapView",this._setActiveLayout(this.appLayout)}_getFooter(){let e=this._numSelected>0,t=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._relatedTableLayer:this._layer,i=this._layer?.editingEnabled&&this._layer.capabilities?.operations.supportsDelete;return this._isMobile&&e&&!this._hideFooter?s`<div class=${"width-100"} slot=footer><div class="display-flex padding-1-2"><calcite-button appearance=solid id=solutions-show @click=${()=>this.showHideMapPopupAndTable(!0)} width=full>${this._translations.view.replace("{{n}}",this._numSelected.toString())}</calcite-button>${i?s`<delete-button class="padding-inline-start-1 width-full" id=solutions-delete .ids=${this.updateIdsToBeDeleted()} @deleteClicked=${this.updateIdsToBeDeleted} .layer=${t}></delete-button>`:void 0}</div></div>`:void 0}updateIdsToBeDeleted(){return this._deleteIds=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._layerTable.value.selectedRelatedIds:this._layerTable.value?.selectedIds,this._deleteIds}_setActiveLayout(e){e==="splitView"&&!this._panelOpen&&this._toggleLayout(),e==="mapView"?this._showMapInFullView():this._showMapInCardView()}_getDividerIcon(e,t){return e==="HORIZONTAL"?t?"chevrons-up":"chevrons-down":e==="VERTICAL"||e==="GRID"?t?"chevrons-left":"chevrons-right":void 0}_getMapSizeClass(e,t,i){let a="";switch(e){case"HORIZONTAL":a=`${t&&!i?"height-1-2 display-grid":t&&i?"height-full":"height-0"} width-full position-relative`;break;case"GRID":a=`height-full position-relative ${t?"width-1-3":"width-0"}`;break;case"VERTICAL":a=`height-full position-relative ${t?"width-1-2":"width-0"}`;break}return a}_getTableSizeClass(e,t){let i="";switch(e){case"HORIZONTAL":i=`${t?"height-1-2":"height-full"} width-full display-flex flex-column`;break;case"GRID":i=`${t?"width-2-3":"width-full"} height-full display-flex`;break;case"VERTICAL":i=`${t?"width-1-2":"width-full"} height-full display-flex`;break}return i}_getBody(e,t,i){let a=e==="HORIZONTAL"?"":"display-flex",l=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",o=document.dir==="rtl"?"left-0":"right-0";return s`<calcite-panel class="width-full height-full position-absolute"><div class=${`width-full height-full overflow-hidden ${a}`}>${this._getMapAndCard(e,t,i)}${this._getTable(e,t,i)}</div>${this.coverPageEnabled&&s`<div class=${`floating-container ${o}`} @click=${this.coverPageButtonClick}><calcite-button appearance=solid class=${`floating-button ${l}`} icon-start=content-minimal kind=neutral .label=${this._translations.coverPage} round scale=l split-child=primary width=auto></calcite-button></div>`||""}${this.introductionWindowEnabled&&s`<div class=${`floating-container ${o}`} @click=${this.infoButtonClick}><calcite-button appearance=solid class=${`floating-button ${l}`} icon-start=information-letter kind=neutral .label=${this._translations.information} round scale=l split-child=primary width=auto></calcite-button></div>`||""}</calcite-panel>`}infoButtonClick(){this.showIntroductionWindow.emit()}coverPageButtonClick(){this.showCoverPage.emit()}_getMapAndCard(e,t,i){let a=this._getMapSizeClass(e,t,i);return s`<div class=${`${a} overflow-hidden z-index-2`}>${this._getMapNode(t)}${this._getPopupExpandNode()}</div>`}_getMapNode(e){let t=this.appLayout==="mapView",i=this.appLayout==="tableView",a=this._isMobile?"height-full":t||i?"position-absolute-0":this._layoutMode==="HORIZONTAL"&&(!this._isMobile||e)?"":"adjusted-height-50",l=this.defaultWebmap&&this.defaultLayer,o=this.enableSelectionTool&&this.featureSelectionMode==="multiple"&&!this._layer?.isTable,p=["home","legend","search","fullscreen","basemap","floorfilter","layers-list","selectiontool"],c=["map-picker","map-layer-picker"],n=document.dir||"ltr";return s`<div class=${`${a} overflow-hidden`} id=card-mapView><map-card .appLayout=${this.appLayout} .appProxies=${this.appProxies} .basemapConfig=${this.basemapConfig} class="width-full" .defaultLayerId=${l?this.defaultLayer:""} .defaultWebmapId=${this.defaultWebmap} .enableBasemap=${this.enableBasemap} .enableFloorFilter=${this.enableFloorFilter} .enableFullscreen=${this.enableFullscreen} .enableHome=${this.enableHome} .enableLegend=${this.enableLegend} .enableLayerList=${this.enableLayerList} .enableSearch=${this.enableSearch} .enableSelectionTool=${o} .enableShare=${this.enableShare} enable-single-expand enable-map-layer-picker enable-map-picker .featureSelectionMode=${this.featureSelectionMode} .hide=${!this._isMobile&&i} zoom-tools-size=s .isMapLayout=${t} .isMobile=${this._isMobile} .mapInfo=${this._mapInfo} .mapInfos=${this._currentMapInfos.filter(u=>u.visible!==!1)} map-widgets-index=0 .mapWidgetsPosition=${n==="rtl"?"top-right":"top-left"} .mobileMapWidgetsPosition=${n==="rtl"?"top-left":"top-right"} map-component-id=arcgis-map map-widgets-size=s .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} .pasteEnabled=${this._pasteEnabled} @toggleFilter=${this._toggleFilter} .selectedFeaturesIds=${this._layerTable.value?.selectedIds??[]} .selectedLayer=${this._layer} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} .showCopyPasteActions=${this._showCopyPasteActions} stack-tools .theme=${this.theme} .visibilityIcon=${this.visibilityIcon} .mapToolsOrder=${p} .mobileToolsOrder=${c} .zoomToScale=${this.zoomToScale} ${r(this._mapCard)}></map-card></div>`}_getPopupExpandNode(){let e=this._isMobile?"height-full":"height-full position-relative",t=this._isMobile&&this._showInformationHeader?"display-none height-0":"",i=this.popupHeaderColor?"":this._isMobile?"calcite-mode-light":"calcite-mode-dark",a=this._isMobile&&this._hideTable?"position-absolute-0 width-full height-full":this._isMobile?"display-none height-0":"",l=this._currentMapInfos?.length>1&&this.appLayout==="tableView"?"position-relative top-51":"",o=this.appLayout!=="tableView"?"position-sticky":"";return s`<div class=${`${i} ${e} ${a} ${l} ${o}`} style=${C({"--calcite-color-surface-2":this.popupHeaderColor,"--calcite-color-surface-3":this.popupHeaderHoverColor,"--calcite-color-text-3":this.popupHeaderTextColor,"--calcite-color-text-2":this.popupHeaderTextColor})}><calcite-panel>${!this._isMobile&&this._showInformationHeader||this._numSelected>0&&!this._isMobile?s`<div class=${`display-flex align-items-center ${t}`} slot=header-content><calcite-icon aria-hidden=true icon=information scale=s></calcite-icon><div class="padding-inline-start-75">${this._translations.information}</div></div>`:s`<div></div>`}${this._getCardNode()}</calcite-panel></div>`}_getCardNode(){let e=this.appLayout==="mapView",t=this.appLayout==="tableView",i=this._isMobile?"height-full":t&&this._currentMapInfos?.length>1?"adjusted-height-100-51":e||t?"height-full":this._numSelected>0&&!this._isMobile?"height-50":this._showInformationHeader?this._isMobile?"height-full":"height-50":"adjusted-height-50_25",a=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light",l=this._layerTable.value&&this._layerTable.value.selectedRelatedIds?.length>0?this._relatedTableLayer:this._layer;return s`<div class=${`width-50 height-full ${a}`}><card-manager class=${`${i} width-full`} .allowedPasteLayerIds=${this._layerIds} .customInfoText=${this.customInfoText} .enableCreateFeatures=${this._enableCreateFeatures&&!this._isMobile} .createBtnLabel=${this._mapInfo?.createFeatureButtonLabel} .enableEditGeometry=${this._mapInfo?.enableEditGeometry} .enableSnapping=${this.enableSnapping} .isMobile=${this._isMobile} .layerOrTable=${l} .mapView=${this?._mapView} map-component-id=arcgis-map @backFromCreateWorkFlow=${()=>{this._showInformationHeader=!0}} @createWorkFlowStarted=${()=>{this.appLayout=l?.isTable?"tableView":"mapView",this._showInformationHeader=!1}} @featureOrRecordSubmitted=${()=>this._layerTable.value&&void this._layerTable.value.refresh()} .pasteEnabled=${this._pasteEnabled} .selectedFeaturesIds=${this._layerTable.value?.selectedIds} .selectingFeatureFromMap=${this.appLayout==="mapView"} .showCopyPasteActions=${this._showCopyPasteActions} .showSketchWidgets=${l?.geometryType!=="point"} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected}></card-manager></div>`}_getTable(e,t,i){let a=this.appLayout==="mapView",l=this.appLayout==="tableView",o=i&&this._isMobile?"visibility-hidden":a?"display-none":"",p=a?"height-full width-full z-index-0":"display-none",c=this._getTableSizeClass(e,t),n=e==="HORIZONTAL"?"horizontal":"vertical",u=e==="HORIZONTAL"?"header":"panel-start",b=this.defaultWebmap&&this.defaultLayer,S=this._isMobile?"border-top":"",g=this.defaultGlobalId?this.defaultGlobalId?.indexOf(",")>-1?this.defaultGlobalId.split(","):[this.defaultGlobalId]:void 0,F=this.defaultOid?this.defaultOid?.indexOf(",")>-1?this.defaultOid.split(",").map(V=>Number.parseInt(V,10)):[Number.parseInt(this.defaultOid,10)]:void 0;return s`<calcite-shell class=${`${c} ${S} border-bottom z-index-1`}>${this._isMobile?void 0:s`<calcite-action-bar class="border-sides" expand-disabled .layout=${n} slot=${u??w}>${this.getActions(e,t)}</calcite-action-bar>`}<div class=${`width-full height-full position-relative z-index-0 ${o}`}><layer-table .appLayout=${this.appLayout} .defaultGlobalId=${b?g:void 0} .defaultLayerId=${b?this.defaultLayer:""} .defaultOid=${b&&!g?F:void 0} .enableAutoRefresh=${this.enableAutoRefresh} .enableCSV=${this.enableCSV} .enableColumnReorder=${this.enableColumnReorder} .enableInlineEdit=${this?._mapInfo?.enableInlineEdit} .enableTableAutosave=${this._mapInfo?.enableTableAutosave!==void 0?this._mapInfo?.enableTableAutosave:!0} .enableShare=${this.enableShare} .featureSelectionMode=${this.featureSelectionMode} .honorMapFieldSettings=${this.honorMapFieldSettings} .isMobile=${this._isMobile} .mapHidden=${l} .mapInfo=${this._mapInfo} .mapView=${this?._mapView} .pasteEnabled=${this._pasteEnabled} .showOnlyUpdatableLayers=${this.onlyShowUpdatableLayers} @toggleFilter=${this._toggleFilter} .shareIncludeEmbed=${this.shareIncludeEmbed} .shareIncludeSocial=${this.shareIncludeSocial} .showNewestFirst=${this.showNewestFirst} .zoomAndScrollToSelected=${this.zoomAndScrollToSelected} .zoomToScale=${this.zoomToScale} .showCopyPasteActions=${this._showCopyPasteActions} .layerIds=${this._layerIds} ${r(this._layerTable)}></layer-table></div><div class=${d(p)} id=full-map-view></div></calcite-shell>`}getActions(e,t){let i=this._getDividerIcon(e,t),a=t?this._translations.close:this._translations.open,l="toggle-layout";return s`<calcite-action .active=${this.appLayout==="splitView"} alignment=center class="toggle-node" icon=browser id=browser-action @click=${()=>{this.appLayout="splitView"}} .text=${this._translations.splitView}></calcite-action><calcite-tooltip placement=right reference-element=browser-action><span>${this._translations.splitView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="tableView"} alignment=center class="toggle-node" icon=dock-left id=dock-left-action @click=${()=>{this.appLayout="tableView"}} .text=${this._translations.tableView}></calcite-action><calcite-tooltip placement=right reference-element=dock-left-action><span>${this._translations.tableView}</span></calcite-tooltip><calcite-action .active=${this.appLayout==="mapView"} alignment=center class="toggle-node" .disabled=${this._layer?.isTable} icon=browser-map id=browser-map-action @click=${()=>{this.appLayout="mapView"}} .text=${this._translations.mapView}></calcite-action><calcite-tooltip placement=right reference-element=browser-map-action><span>${this._translations.mapView}</span></calcite-tooltip><calcite-action alignment=center class="toggle-node" .icon=${i} id=${l} @click=${()=>this._toggleLayout()} slot=actions-end .text=${a}></calcite-action><calcite-tooltip placement=bottom .referenceElement=${l}><span>${a}</span></calcite-tooltip>`}_deleteModal(){let e=(this._layerTable.value?.selectedRelatedIds?.length??0)>0?this._relatedTableLayer:this._layer;return s`<delete-dialog id=deleteDialogId .ids=${this._deleteIds} .layer=${e} @deleteDialogClose=${()=>this._deleteDialogOpen=!1} .open=${this._deleteDialogOpen}></delete-dialog>`}_mapExtentFilter(){let e=this._layerExpressions?.length===0;return s`<calcite-panel><div><calcite-block class=${d(this.theme==="dark"?"background-dark":"")} heading menu-placement=bottom-end open><div class="filter-extent-container"><div class="filter-extent-message"><span>${this._translations.filterByExtentMsg}</span><calcite-icon icon=information id=filter-message-info scale=s></calcite-icon><calcite-tooltip overlay-positioning=fixed placement=top reference-element=filter-message-info>${this._translations.filterByExtentTooltipMsg}</calcite-tooltip></div><calcite-switch .checked=${this._mapExtentFilterChecked} @calciteSwitchChange=${t=>{let i=!!(t.target.checked||this._filterList.value?.filterCount&&this._filterList.value?.filterCount>0);this._layerTable.value&&this._layerTable.value?.filterUpdate(i,t.target.checked),this._mapCard.value&&this._mapCard.value?.updateFilterState(i),this._mapExtentFilterChecked=t.target.checked}} scale=m></calcite-switch></div></calcite-block>${e&&s`<div class="filter-modal-buttons" slot=footer><calcite-button appearance=outline @click=${this._handleFilterListReset} width=full>${this._translations.Resetfilter}</calcite-button><calcite-button @click=${this._closeFilter} width=full>${this._translations.close}</calcite-button></div>`||""}</div></calcite-panel>`}_filterModal(){let e=this._layerExpressions?.length>0,t=this.theme==="dark"?"calcite-mode-dark":"calcite-mode-light";return s`<calcite-dialog class=${`filter-content-space ${t}`} .heading=${this._translations.filter.replace("{{title}}",this._layer?.title||"")} id=solutions-filter-dialog-manager kind=brand modal @calciteDialogClose=${()=>{this._closeFilter()}} .open=${this._filterOpen} width=s>${!this._layer?.isTable&&this._mapExtentFilter()||""}${e&&this._mapView&&s`<instant-apps-filter-list close-btn .closeBtnOnClick=${()=>{this._closeFilter()}} combobox-overlay-positioning=fixed .layerExpressions=${this._layerExpressions} @filterListReset=${this._handleFilterListReset} @filterUpdate=${()=>{this._updateFilter()}} .view=${this._mapView} ${r(this._filterList)}></instant-apps-filter-list>`||""}</calcite-dialog>`}_updateFilter(){let e=this._filterList?.value?.filterCount&&this._filterList.value.filterCount>0||this._mapExtentFilterChecked;this._layerTable.value&&this._layerTable.value?.filterUpdate(e),this._mapCard.value&&this._mapCard.value.updateFilterState(e)}_initLayerExpressions(){let e=this._mapInfo?.filterConfig?.layerExpressions;this._layerExpressions=e?e.filter(t=>t.id===this._layer?.id):[]}_toggleFilter(){this._filterOpen=!this._filterOpen}_handleFilterListReset(){this._mapExtentFilterChecked=!1,this._mapCard.value&&this._mapCard.value.resetFilter(),this._layerTable.value&&this._layerTable.value.filterReset()}async _closeFilter(){this._filterOpen&&(this._filterOpen=!1,this._layerTable.value&&this._layerTable.value.closeFilter())}_onResize(){let e=this.el.offsetWidth<=1024,t=!this._isMobile&&e;this._isMobile=e,t&&(this._panelOpen=!0),this._isMobile?(this.showHideMapPopupAndTable(!this._isMobile),this.appLayout="splitView"):(this._layer?.isTable&&(this.appLayout="tableView"),this._isMobile=!1),this._layoutMode=this._isMobile?"HORIZONTAL":"GRID"}updateCurrentMapInfos(){this._currentMapInfos=this.mapInfos,!this.enableMapList&&this.defaultWebmap&&(this._currentMapInfos=this.mapInfos.filter(e=>e.id===this.defaultWebmap))}_handleCopyPasteActions(){this._layer&&(this._showCopyPasteActions=this.enableCopyPaste&&!this._isMobile)}_toggleLayout(){this._panelOpen=!this._panelOpen}_showMapInCardView(){if(this.appLayout!=="mapView"){let e=document.getElementById("full-map-view")?.childNodes[0],t=document.getElementById("card-mapView");e&&t&&t.appendChild(e)}}_showMapInFullView(){let e=document.getElementById("card-mapView")?.childNodes,t;e?.forEach(a=>{!t&&a.mapView&&(t=a)});let i=document.getElementById("full-map-view");t&&i&&i.appendChild(t)}showHideMapPopupAndTable(e){this._hideTable=e,this._hideFooter=e}_getMapInfo(e){let t;return this._currentMapInfos.some(i=>i.id===e?(t={...i},!0):!1),t}async _setMapView(){let e=this._mapChange&&this._getMapInfo(this._mapChange.id);if(e&&this._mapChange){this._mapInfo=e,this._initLayerExpressions(),this._enableCreateFeatures=this._mapInfo.enableCreateFeatures,this._mapView=this._mapChange.mapView,this._initMapZoom(),this._mapView&&(this._mapView.popupEnabled=!1,T(this._mapView));let t=!this.defaultCenter||this._defaultCenterHonored?void 0:this.defaultCenter?.split(";").map(a=>Number.parseFloat(a)),i=!this.defaultLevel||this._defaultLevelHonored?void 0:Number.parseInt(this.defaultLevel,10);t&&i&&(await this._mapView?.goTo({center:t,zoom:i}),this._defaultCenterHonored=!0,this._defaultLevelHonored=!0)}}_initMapZoom(){this.enableZoom?this.enableZoom&&this._mapView?.ui.add({component:"zoom",position:"top-left",index:0}):this._mapView?.ui.remove("zoom")}};I("crowdsource-manager",m);return m},a,b)
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import d from"./KGUELU4O.js";import{c as N}from"./TCUNTTNI.js";import c from"./7JC52SFZ.js";import a from"./4AFANEZZ.js";import{f as R}from"./YM4U4HSN.js";import{a as F}from"./ONARC6AZ.js";import{a as E}from"./BM4VSEDV.js";import{b as D}from"./HVT2WBVC.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{F as b,G as $,I as H,h as w,i as y,t as I}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([q,B,k,,{a:m},L])=>{var V=new Map([["HH",[1,0,3,2,null]],["LH",[3,2,1,0,4,null]],["LL",[2,3,0,1,null]]]),G=new Map([["HH",[2,1,0,5,4,3,8,7,6]],["LH",[8,7,6,5,4,3,2,1,0]],["LL",[6,7,8,3,void 0,void 0,0,1,2]]]),J=new Map([["HH",[3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12]],["LH",[15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]],["LL",[12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3]]]);function K(c,e){return e===null?V.get("HH")[c]:V.get(e)?.[c]??null}function Q(c,e){return e===null?c:G.get(e)?.[c]??c}function _(c,e){return e===null?_(c,"HH"):J.get(e)?.[c]??null}var U=w`@layer{instant-apps-interactive-legend-relationship{display:block}instant-apps-interactive-legend-relationship .instant-apps-interactive-legend-relationship__instructional-text{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark instant-apps-interactive-legend-relationship .instant-apps-interactive-legend-relationship__instructional-text{background-color:var(--calcite-color-brand);color:#151515}}`,M="svg g:first-of-type",W="svg g:last-of-type",h="esri-interactive-legend--selected-cell",S="esri-interactive-legend--instructional-text",j=2,O=3,X=4,Y=Object.freeze({0:"L",1:"H"}),Z=Object.freeze({0:"L",1:"M",2:"H"}),ee=Object.freeze({0:"L",1:"M1",2:"M2",3:"H"}),te={instructionalText:"instant-apps-interactive-legend-relationship__instructional-text"},x=class extends ${constructor(){super(),this._messages=E({name:"instant-apps-interactive-legend"}),this.cellNodeCounter=0,this.listenOn(window,"showAllSelected",this.showAllSelectedEmitted)}static{this.properties={filterMode:0,activeLayerInfo:0,legendElement:0}}static{this.styles=U}static{this.shadowRootOptions=I}get shouldApplyCustomFunctionality(){return!!(this.relationshipRamp&&this.activeLayerInfo&&this.legendElement&&m.data)}showAllSelectedEmitted(){let e=m.data[this.activeLayerInfo.layer.id].queryExpressions.length===0,t=this.relationshipRamp.querySelector(M);if(!t)return;let s=Array.from(t.children);e&&s?.forEach(i=>{i.removeAttribute("stroke"),i.removeAttribute("stroke-width"),i.removeAttribute("stroke-opacity"),i.setAttribute("aria-pressed","false"),i.classList.remove(h)})}applyRelationshipRampSvgAriaAttributes(){if(this.shouldApplyCustomFunctionality){let e=setInterval(()=>{let t=this.relationshipRamp.querySelector("svg");t&&(clearInterval(e),t.setAttribute("role","group"),t.setAttribute("aria-labelledby",S),t.removeAttribute("focusable"));let s=this.relationshipRamp.querySelector(W);s&&(clearInterval(e),s.setAttribute("aria-hidden","true"))},10)}}applyRelationshipRampInteractivity(){if(this.shouldApplyCustomFunctionality){let e=setInterval(()=>{let t=this.relationshipRamp.querySelector(M);if(t){clearInterval(e);let s=t.children;this.setupRelationshipDrawingStyle(s)}},10)}}setupRelationshipDrawingStyle(e){let t=Array.from(e);if(!t.length)return;let s=(this.activeLayerInfo?.layer?.renderer).uniqueValueInfos;if(Array.isArray(s))for(let a of s){let n=s.indexOf(a),l=t[n];this.setCellAttributes(l,n),l.classList.add("esri-interactive-legend__svg-rect-element")}let i=this.reorderCellNodes(t);this.attachFeatureIndexes(i),this.applyEventHandlers()}setCellAttributes(e,t){let s=this.activeLayerInfo.layer.renderer.uniqueValueInfos,i=this.generateIndexPattern(t);if(Array.isArray(s)&&s[i]){let a=e.classList.contains(h)?"true":"false",n=s[i]?.label||"",l=s[i]?.symbol?.color?.toHex?.()||"";e.setAttribute("data-color",l),e.setAttribute("data-cell-index",`${i}`),e.setAttribute("tabindex","0"),e.setAttribute("aria-pressed",a),e.setAttribute("aria-label",n),e.setAttribute("role","button")}}generateIndexPattern(e){let{focus:t,numClasses:s}=this.legendElement;return t==="HL"?e:s===2?K(e,t):s===3?Q(e,t):s===4?_(e,t):null}reorderCellNodes(e){let t=[];for(;this.cellNodeCounter<=e.length-1;)e.map(s=>{Number.parseInt(s.getAttribute("data-cell-index"))===this.cellNodeCounter&&t.push(s)}),this.cellNodeCounter++;return this.cellNodeCounter=0,t}attachFeatureIndexes(e){let{focus:t,numClasses:s}=this.legendElement;t==="HH"||t===null?this.relationshipFocusIsHighHigh(e,s):t==="LL"?this.relationshipFocusIsLowLow(e,s):t==="LH"?this.relationshipFocusIsLowHigh(e,s):t==="HL"&&this.relationshipFocusIsHighLow(e,s),this.cellNodeCounter=0}relationshipFocusIsHighHigh(e,t){for(let s=t-1;s>=0;s--)for(let i=t-1;i>=0;i--)this.setDataAttributes(e,s,i,t),this.cellNodeCounter++}relationshipFocusIsLowLow(e,t){for(let s=0;s<t;s++)for(let i=0;i<t;i++)this.setDataAttributes(e,s,i,t),this.cellNodeCounter++}relationshipFocusIsLowHigh(e,t){for(let s=0;s<t;s++)for(let i=t-1;i>=0;i--)this.setDataAttributes(e,s,i,t),this.cellNodeCounter++}relationshipFocusIsHighLow(e,t){for(let s=t-1;s>=0;s--)for(let i=0;i<t;i++)this.setDataAttributes(e,i,s,t),this.cellNodeCounter++}setDataAttributes(e,t,s,i){let a=e[this.cellNodeCounter];i===j?this.twoClassAttributes(a,t,s):i===O?this.threeClassAttributes(a,t,s):this.fourClassAttributes(a,t,s)}twoClassAttributes(e,t,s){let{legendElement:i}=this;this.cellNodeCounter===0||this.cellNodeCounter===3?i.focus==="HL"?this.swapDataFeatureIndexes(e,t,s):this.setDataFeatureIndexes(e,t,s):i.focus==="HL"?this.swapDataFeatureIndexes(e,t,s):this.setDataFeatureIndexes(e,t,s)}threeClassAttributes(e,t,s){let{legendElement:i}=this;this.cellNodeCounter===1||this.cellNodeCounter===3||this.cellNodeCounter===5||this.cellNodeCounter===7?i.focus==="HL"?this.swapDataFeatureIndexes(e,t,s):this.setDataFeatureIndexes(e,t,s):i.focus!=="HL"?this.setDataFeatureIndexes(e,t,s):this.swapDataFeatureIndexes(e,t,s)}fourClassAttributes(e,t,s){let{legendElement:i}=this,{focus:a}=i;this.cellNodeCounter>0&&this.cellNodeCounter<=14?a==="HL"?this.swapDataFeatureIndexes(e,t,s):this.setDataFeatureIndexes(e,t,s):a!=="HL"?this.setDataFeatureIndexes(e,t,s):this.swapDataFeatureIndexes(e,t,s)}setDataFeatureIndexes(e,t,s){e.setAttribute("data-feature-i",`${t}`),e.setAttribute("data-feature-j",`${s}`),this.setDataCellFocusValue(e,t,s)}swapDataFeatureIndexes(e,t,s){e.setAttribute("data-feature-i",`${s}`),e.setAttribute("data-feature-j",`${t}`),this.setDataCellFocusValue(e,s,t)}getDataCellValue(e,t,s){let i=s[e],a=s[t];return i&&a?`${i}${a}`:""}getDataCellMap(e){switch(e){case j:return Y;case O:return Z;case X:return ee;default:throw new Error("unrecognized numClasses")}}setDataCellFocusValue(e,t,s){let i=this.legendElement.numClasses,a=this.getDataCellMap(i),n=this.getDataCellValue(t,s,a);n?e.setAttribute("data-cell-focus",n):e.removeAttribute("data-cell-focus")}async onCellClick(e,t){let{i:s,j:i,focus:a}=t;await this.handleFilter(s,i,a),this.handleSelectedElement(e)}applyEventHandlers(){let e=this.relationshipRamp.querySelectorAll("svg rect");Array.from(e).forEach(t=>{let s=t.getAttribute("data-feature-i"),i=t.getAttribute("data-feature-j"),a=t.getAttribute("data-cell-focus");t.onclick=async()=>{await this.onCellClick(t,{i:s,j:i,focus:a})},t.onkeydown=async n=>{n.key==="Enter"&&await this.onCellClick(t,{i:s,j:i,focus:a})},t.onkeyup=async n=>{n.key===" "&&await this.onCellClick(t,{i:s,j:i,focus:a})}})}async handleFilter(e,t,s){let i=this.activeLayerInfo.layer?.renderer?.authoringInfo,a=i?.field1,n=i?.field2,{queryExpressions:l,fLayerView:o}=m.data[this.activeLayerInfo.layer.id];if(R(this.legendElement)&&i&&a&&n){let u=this.generateExpressionParams(a,n,i,e,t,s),r=this.generateExpressionForRelationship(u);l.length===0?l[0]=r:l.includes(r)?l.splice(l.indexOf(r),1):l.push(r);let d=l.join(" OR "),p=o?.filter?.timeExtent??null;if(N(this.filterMode?.type))o.filter=new k({where:d,timeExtent:o?.filter?.timeExtent??null});else if(this.filterMode?.effect){let{includedEffect:f,excludedEffect:A}=this.filterMode.effect,g=await L(A,o,"excludedEffect"),v=await L(f,o,"includedEffect");o.featureEffect=new B({filter:new k({where:d,timeExtent:p}),includedEffect:v,excludedEffect:g})}}}generateExpressionParams(e,t,s,i,a,n){let l=[],o=e.field,u=t.field,r=e.classBreakInfos,d=t.classBreakInfos,p=Object.hasOwn(s.field1,"normalizationField")?s?.field1?.normalizationField:null,f=Object.hasOwn(s.field2,"normalizationField")?s?.field2?.normalizationField:null;r.forEach((v,z)=>{let C=[];d.forEach((se,T)=>{let P=[r[z],d[T]];C.push(P)}),l.push(C)});let A=p?`(${o}/${p})`:o,g=f?`(${u}/${f})`:u;return{data:l,i,j:a,field1:A,field2:g,focus:n}}generateExpressionForRelationship(e){let{focus:t,field1:s,field2:i,data:a,i:n,j:l}=e,o=Number.parseInt(n),u=Number.parseInt(l),r=a[o][u];return t==="LL"?`${s} >= ${r[0].minValue} AND ${s} <= ${r[0].maxValue} AND ${i} >= ${r[1].minValue} AND ${i} <= ${r[1].maxValue}`:t==="LM"||t==="LM1"||t==="LM2"||t==="LH"?`${s} >= ${r[0].minValue} AND ${s} <= ${r[0].maxValue} AND ${i} > ${r[1].minValue} AND ${i} <= ${r[1].maxValue}`:t==="ML"||t==="M1L"||t==="M2L"||t==="HL"?`${s} > ${r[0].minValue} AND ${s} <= ${r[0].maxValue} AND ${i} >= ${r[1].minValue} AND ${i} <= ${r[1].maxValue}`:`${s} > ${r[0].minValue} AND ${s} <= ${r[0].maxValue} AND ${i} > ${r[1].minValue} AND ${i} <= ${r[1].maxValue}`}handleSelectedElement(e){e.classList.contains(h)?(e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),e.setAttribute("aria-pressed","false"),e.classList.remove(h)):(e.classList.add(h),e.setAttribute("stroke","black"),e.setAttribute("stroke-width","3px"),e.setAttribute("stroke-opacity","1"),e.setAttribute("aria-pressed","true"))}addCSS(e){if(e&&!e?.querySelector("relationshipStyles")){let t=document.createElement("style");t.id="relationshipStyles",t.innerHTML=`
2
+ import d from"./KGUELU4O.js";import{c as N}from"./TCUNTTNI.js";import c from"./7JC52SFZ.js";import a from"./4AFANEZZ.js";import{f as R}from"./YM4U4HSN.js";import{a as F}from"./ONARC6AZ.js";import{a as E}from"./BM4VSEDV.js";import{b as D}from"./HVT2WBVC.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{F as b,G as $,I as H,h as w,i as y,t as I}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([q,B,k,,{a:m},L])=>{var V=new Map([["HH",[1,0,3,2,null]],["LH",[3,2,1,0,4,null]],["LL",[2,3,0,1,null]]]),G=new Map([["HH",[2,1,0,5,4,3,8,7,6]],["LH",[8,7,6,5,4,3,2,1,0]],["LL",[6,7,8,3,void 0,void 0,0,1,2]]]),J=new Map([["HH",[3,2,1,0,7,6,5,4,11,10,9,8,15,14,13,12]],["LH",[15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0]],["LL",[12,13,14,15,8,9,10,11,4,5,6,7,0,1,2,3]]]);function K(c,e){return e===null?V.get("HH")[c]:V.get(e)?.[c]??null}function Q(c,e){return e===null?c:G.get(e)?.[c]??c}function _(c,e){return e===null?_(c,"HH"):J.get(e)?.[c]??null}var U=w`@layer{instant-apps-interactive-legend-relationship{display:block}instant-apps-interactive-legend-relationship .instant-apps-interactive-legend-relationship__instructional-text{display:inline-block;width:100%;text-align:center;margin-bottom:10px;background-color:#d2e9f9}.calcite-mode-dark instant-apps-interactive-legend-relationship .instant-apps-interactive-legend-relationship__instructional-text{background-color:var(--calcite-color-brand);color:#151515}}`,M="svg g:first-of-type",W="svg g:last-of-type",h="esri-interactive-legend--selected-cell",S="esri-interactive-legend--instructional-text",j=2,O=3,X=4,Y=Object.freeze({0:"L",1:"H"}),Z=Object.freeze({0:"L",1:"M",2:"H"}),ee=Object.freeze({0:"L",1:"M1",2:"M2",3:"H"}),te={instructionalText:"instant-apps-interactive-legend-relationship__instructional-text"},x=class extends ${constructor(){super(),this._messages=E({name:"instant-apps-interactive-legend"}),this.cellNodeCounter=0,this.listenOn(window,"showAllSelected",this.showAllSelectedEmitted)}static{this.properties={filterMode:0,activeLayerInfo:0,legendElement:0}}static{this.styles=U}static{this.shadowRootOptions=I}get shouldApplyCustomFunctionality(){return!!(this.relationshipRamp&&this.activeLayerInfo&&this.legendElement&&m.data)}showAllSelectedEmitted(){let e=m.data[this.activeLayerInfo.layer.id].queryExpressions.length===0,t=this.relationshipRamp.querySelector(M);if(!t)return;let s=Array.from(t.children);e&&s?.forEach(i=>{i.removeAttribute("stroke"),i.removeAttribute("stroke-width"),i.removeAttribute("stroke-opacity"),i.setAttribute("aria-pressed","false"),i.classList.remove(h)})}applyRelationshipRampSvgAriaAttributes(){if(this.shouldApplyCustomFunctionality){let e=setInterval(()=>{let t=this.relationshipRamp.querySelector("svg");t&&(clearInterval(e),t.setAttribute("role","group"),t.setAttribute("aria-labelledby",S),t.removeAttribute("focusable"));let s=this.relationshipRamp.querySelector(W);s&&(clearInterval(e),s.setAttribute("aria-hidden","true"))},10)}}applyRelationshipRampInteractivity(){if(this.shouldApplyCustomFunctionality){let e=setInterval(()=>{let t=this.relationshipRamp.querySelector(M);if(t){clearInterval(e);let s=t.children;this.setupRelationshipDrawingStyle(s)}},10)}}setupRelationshipDrawingStyle(e){let t=Array.from(e);if(!t.length)return;let s=(this.activeLayerInfo?.layer?.renderer).uniqueValueInfos;if(Array.isArray(s))for(let a of s){let n=s.indexOf(a),l=t[n];this.setCellAttributes(l,n),l.classList.add("esri-interactive-legend__svg-rect-element")}let i=this.reorderCellNodes(t);this.attachFeatureIndexes(i),this.applyEventHandlers()}setCellAttributes(e,t){let s=this.activeLayerInfo.layer.renderer.uniqueValueInfos,i=this.generateIndexPattern(t);if(Array.isArray(s)&&s[i]){let a=e.classList.contains(h)?"true":"false",n=s[i]?.label||"",l=s[i]?.symbol?.color?.toHex?.()||"";e.setAttribute("data-color",l),e.setAttribute("data-cell-index",`${i}`),e.setAttribute("tabindex","0"),e.setAttribute("aria-pressed",a),e.setAttribute("aria-label",n),e.setAttribute("role","button")}}generateIndexPattern(e){let{focus:t,numClasses:s}=this.legendElement;return t==="HL"?e:s===2?K(e,t):s===3?Q(e,t):s===4?_(e,t):null}reorderCellNodes(e){let t=[];for(;this.cellNodeCounter<=e.length-1;)e.map(s=>{Number.parseInt(s.getAttribute("data-cell-index"))===this.cellNodeCounter&&t.push(s)}),this.cellNodeCounter++;return this.cellNodeCounter=0,t}attachFeatureIndexes(e){let{focus:t,numClasses:s}=this.legendElement;t==="HH"||t===null?this.relationshipFocusIsHighHigh(e,s):t==="LL"?this.relationshipFocusIsLowLow(e,s):t==="LH"?this.relationshipFocusIsLowHigh(e,s):t==="HL"&&this.relationshipFocusIsHighLow(e,s),this.cellNodeCounter=0}relationshipFocusIsHighHigh(e,t){for(let s=t-1;s>=0;s--)for(let i=t-1;i>=0;i--)this.setDataAttributes(e,s,i,t),this.cellNodeCounter++}relationshipFocusIsLowLow(e,t){for(let s=0;s<t;s++)for(let i=0;i<t;i++)this.setDataAttributes(e,s,i,t),this.cellNodeCounter++}relationshipFocusIsLowHigh(e,t){for(let s=0;s<t;s++)for(let i=t-1;i>=0;i--)this.setDataAttributes(e,s,i,t),this.cellNodeCounter++}relationshipFocusIsHighLow(e,t){for(let s=t-1;s>=0;s--)for(let i=0;i<t;i++)this.setDataAttributes(e,i,s,t),this.cellNodeCounter++}setDataAttributes(e,t,s,i){let a=e[this.cellNodeCounter];i===j?this.twoClassAttributes(a,t,s):i===O?this.threeClassAttributes(a,t,s):this.fourClassAttributes(a,t,s)}twoClassAttributes(e,t,s){let{legendElement:i}=this;this.cellNodeCounter===0||this.cellNodeCounter===3?i.focus==="HL"?this.swapDataFeatureIndexes(e,t,s):this.setDataFeatureIndexes(e,t,s):i.focus==="HL"?this.swapDataFeatureIndexes(e,t,s):this.setDataFeatureIndexes(e,t,s)}threeClassAttributes(e,t,s){let{legendElement:i}=this;this.cellNodeCounter===1||this.cellNodeCounter===3||this.cellNodeCounter===5||this.cellNodeCounter===7?i.focus==="HL"?this.swapDataFeatureIndexes(e,t,s):this.setDataFeatureIndexes(e,t,s):i.focus!=="HL"?this.setDataFeatureIndexes(e,t,s):this.swapDataFeatureIndexes(e,t,s)}fourClassAttributes(e,t,s){let{legendElement:i}=this,{focus:a}=i;this.cellNodeCounter>0&&this.cellNodeCounter<=14?a==="HL"?this.swapDataFeatureIndexes(e,t,s):this.setDataFeatureIndexes(e,t,s):a!=="HL"?this.setDataFeatureIndexes(e,t,s):this.swapDataFeatureIndexes(e,t,s)}setDataFeatureIndexes(e,t,s){e.setAttribute("data-feature-i",`${t}`),e.setAttribute("data-feature-j",`${s}`),this.setDataCellFocusValue(e,t,s)}swapDataFeatureIndexes(e,t,s){e.setAttribute("data-feature-i",`${s}`),e.setAttribute("data-feature-j",`${t}`),this.setDataCellFocusValue(e,s,t)}getDataCellValue(e,t,s){let i=s[e],a=s[t];return i&&a?`${i}${a}`:""}getDataCellMap(e){switch(e){case j:return Y;case O:return Z;case X:return ee;default:throw new Error("unrecognized numClasses")}}setDataCellFocusValue(e,t,s){let i=this.legendElement.numClasses,a=this.getDataCellMap(i),n=this.getDataCellValue(t,s,a);n?e.setAttribute("data-cell-focus",n):e.removeAttribute("data-cell-focus")}async onCellClick(e,t){let{i:s,j:i,focus:a}=t;await this.handleFilter(s,i,a),this.handleSelectedElement(e)}applyEventHandlers(){let e=this.relationshipRamp.querySelectorAll("svg rect");Array.from(e).forEach(t=>{let s=t.getAttribute("data-feature-i"),i=t.getAttribute("data-feature-j"),a=t.getAttribute("data-cell-focus");t.onclick=async()=>{await this.onCellClick(t,{i:s,j:i,focus:a})},t.onkeydown=async n=>{n.key==="Enter"&&await this.onCellClick(t,{i:s,j:i,focus:a})},t.onkeyup=async n=>{n.key===" "&&await this.onCellClick(t,{i:s,j:i,focus:a})}})}async handleFilter(e,t,s){let i=this.activeLayerInfo.layer?.renderer?.authoringInfo,a=i?.field1,n=i?.field2,{queryExpressions:l,fLayerView:o}=m.data[this.activeLayerInfo.layer.id];if(R(this.legendElement)&&i&&a&&n){let u=this.generateExpressionParams(a,n,i,e,t,s),r=this.generateExpressionForRelationship(u);l.length===0?l[0]=r:l.includes(r)?l.splice(l.indexOf(r),1):l.push(r);let d=l.join(" OR "),p=o?.filter?.timeExtent??null;if(N(this.filterMode?.type))o.filter=new k({where:d,timeExtent:o?.filter?.timeExtent??null});else if(this.filterMode?.effect){let{includedEffect:f,excludedEffect:A}=this.filterMode.effect,g=await L(A,o,"excludedEffect"),v=await L(f,o,"includedEffect");o.featureEffect=new B({filter:new k({where:d,timeExtent:p}),includedEffect:v,excludedEffect:g})}}}generateExpressionParams(e,t,s,i,a,n){let l=[],o=e.field,u=t.field,r=e.classBreakInfos,d=t.classBreakInfos,p=Object.hasOwn(s.field1,"normalizationField")?s?.field1?.normalizationField:null,f=Object.hasOwn(s.field2,"normalizationField")?s?.field2?.normalizationField:null;r.forEach((v,z)=>{let C=[];d.forEach((se,T)=>{let P=[r[z],d[T]];C.push(P)}),l.push(C)});let A=p?`(${o}/${p})`:o,g=f?`(${u}/${f})`:u;return{data:l,i,j:a,field1:A,field2:g,focus:n}}generateExpressionForRelationship(e){let{focus:t,field1:s,field2:i,data:a,i:n,j:l}=e,o=Number.parseInt(n),u=Number.parseInt(l),r=a[o][u];return t==="LL"?`${s} >= ${r[0].minValue} AND ${s} <= ${r[0].maxValue} AND ${i} >= ${r[1].minValue} AND ${i} <= ${r[1].maxValue}`:t==="LM"||t==="LM1"||t==="LM2"||t==="LH"?`${s} >= ${r[0].minValue} AND ${s} <= ${r[0].maxValue} AND ${i} > ${r[1].minValue} AND ${i} <= ${r[1].maxValue}`:t==="ML"||t==="M1L"||t==="M2L"||t==="HL"?`${s} > ${r[0].minValue} AND ${s} <= ${r[0].maxValue} AND ${i} >= ${r[1].minValue} AND ${i} <= ${r[1].maxValue}`:`${s} > ${r[0].minValue} AND ${s} <= ${r[0].maxValue} AND ${i} > ${r[1].minValue} AND ${i} <= ${r[1].maxValue}`}handleSelectedElement(e){e.classList.contains(h)?(e.removeAttribute("stroke"),e.removeAttribute("stroke-width"),e.removeAttribute("stroke-opacity"),e.setAttribute("aria-pressed","false"),e.classList.remove(h)):(e.classList.add(h),e.setAttribute("stroke","black"),e.setAttribute("stroke-width","3px"),e.setAttribute("stroke-opacity","1"),e.setAttribute("aria-pressed","true"))}addCSS(e){if(e&&!e?.querySelector("relationshipStyles")){let t=document.createElement("style");t.id="relationshipStyles",t.innerHTML=`
3
3
  rect:hover {
4
4
  cursor: pointer;
5
5
  opacity: 0.8;
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./O7O4T4G4.js";export default $arcgis.t(([a,u,{g:i}])=>{var c=class{async getPopupTitle(o,f){let s={};for(let[e,r]of Object.entries(o.attributes))s={...s,[`{${e.toUpperCase()}}`]:r};let p=o.layer,l=this._removeTags(p?.popupTemplate?.title);if(l.includes("{expression/expr")&&p?.popupTemplate?.expressionInfos!=null)for(let e=0;e<p.popupTemplate?.expressionInfos.length;e++){let r=p.popupTemplate.expressionInfos[e],n=a.createArcadeProfile("popup");try{let t=await(await a.createArcadeExecutor(r.expression,n)).executeAsync({$feature:o,$layer:p,$map:f});(t!==null||t!=="")&&(s[`{expression/${r.name}}`.toUpperCase()]=t)}catch(t){console.error(t);continue}}return p.popupTemplate?.fieldInfos&&p.fields.forEach(e=>{let r=o.attributes[e.name],n=(p?.popupTemplate?.fieldInfos||[]).find(m=>m.fieldName.toLowerCase()===e.name.toLowerCase()),t=i(r,e.type,e?.domain,n?.format,u);s[`{${e.name.toUpperCase()}}`]=t??r}),l?.replace(/{.*?}/g,e=>s[e.toUpperCase()]!=null?s[e.toUpperCase()]:"")}_removeTags(o){return o==null||o===""?"":o.toString().replace(/(<([^>]+)>)/gi,"")}};return c},"arcade","intl",a)
2
+ import a from"./CYEFGPUM.js";export default $arcgis.t(([a,u,{g:i}])=>{var c=class{async getPopupTitle(o,f){let s={};for(let[e,r]of Object.entries(o.attributes))s={...s,[`{${e.toUpperCase()}}`]:r};let p=o.layer,l=this._removeTags(p?.popupTemplate?.title);if(l.includes("{expression/expr")&&p?.popupTemplate?.expressionInfos!=null)for(let e=0;e<p.popupTemplate?.expressionInfos.length;e++){let r=p.popupTemplate.expressionInfos[e],n=a.createArcadeProfile("popup");try{let t=await(await a.createArcadeExecutor(r.expression,n)).executeAsync({$feature:o,$layer:p,$map:f});(t!==null||t!=="")&&(s[`{expression/${r.name}}`.toUpperCase()]=t)}catch(t){console.error(t);continue}}return p.popupTemplate?.fieldInfos&&p.fields.forEach(e=>{let r=o.attributes[e.name],n=(p?.popupTemplate?.fieldInfos||[]).find(m=>m.fieldName.toLowerCase()===e.name.toLowerCase()),t=i(r,e.type,e?.domain,n?.format,u);s[`{${e.name.toUpperCase()}}`]=t??r}),l?.replace(/{.*?}/g,e=>s[e.toUpperCase()]!=null?s[e.toUpperCase()]:"")}_removeTags(o){return o==null||o===""?"":o.toString().replace(/(<([^>]+)>)/gi,"")}};return c},"arcade","intl",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import d from"./CM5MBWMG.js";import c from"./O7O4T4G4.js";import"./VVZAS55G.js";import"./US5FON7D.js";import a from"./WV7QX3ED.js";import"./MSUQVQBX.js";import{a as w}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b}from"./2I5LGZNX.js";import{E as _,F as f,G as g,I as s,J as v,h as p,i,q as l,t as u}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([n,y,,,m])=>{var x=p`@layer{: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}.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-surface-2)!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.showCopyPasteActions=!1,this.pasteEnabled=!1,this._alertOpen=!1,this._count="",this._editRecordOpen=!1,this._isMultipleEdits=!1,this._mobileTitle="",this._showListView=!1,this._translations=w({name:"info-card",blocking:!0}),this._navigatedToRelatedFeature=!1,this._editEnabled=!1,this._features=_(),this.popupClosed=l(),this.clearSelection=l(),this.selectionChanged=l(),this.copyFeatures=l(),this.pasteFeatures=l(),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),this.listenOn(window,"clearSelection",this._alertClosed)}static{this.properties={enableEditGeometry:5,enableSnapping:5,graphics:0,isLoading:5,isMobile:5,mapView:0,featuresReferenceId:1,allowEditing:5,highlightEnabled:5,paginationEnabled:5,position:1,showCloseBtn:5,showCopyPasteActions:5,pasteEnabled:5,_alertOpen:16,_count:16,_editRecordOpen:16,_isMultipleEdits:16,_mobileTitle:16,_showListView:16,_translations:16,_navigatedToRelatedFeature:16}}static{this.styles=x}static{this.shadowRootOptions=u}willUpdate(e){if(e.has("graphics")&&this.graphicsWatchHandler(),e.has("pasteEnabled")&&this.hasUpdated&&this._features.value?.headerActions?.length){let t=this._features.value.headerActions.find(a=>a.id==="paste-features");t&&(t.disabled=!this.pasteEnabled)}if(e.has("showCopyPasteActions")&&this.hasUpdated&&this.handleHeaderActions(),e.has("_translations")){let t=this._translations._lang,a=e.get("_translations")?._lang;if(t&&a&&t!==a&&this._features.value){let o=[...this.graphics];this.graphics=[],this.graphics=o}}}async graphicsWatchHandler(){if(this._navigatedToRelatedFeature&&this._features.value&&(await this._features.value.clear(),await this._features.value.close(),this._count="",this._navigatedToRelatedFeature=!1),await this.setGraphics(),this._features.value?.headerActions?.length&&this.showCopyPasteActions){let e=this._features.value.headerActions.find(t=>t.id==="copy-features");e&&(e.disabled=this.graphics.length===0)}}async getSelectedFeature(){return this._features.value?.selectedFeature}async refresh(){await this.setGraphics()}async back(){await this._back()}async next(){await this._next()}async toggleListView(){this._toggleListView()}async closeEdit(){this._editRecordOpen=!1,this._isMultipleEdits=!1}async layerSelectionChange(){this._showListView=!1,this._features.value?.viewModel&&(this._features.value.featureMenuOpen=!1,await this._features.value.close())}async refreshGraphics(e){this._navigatedToRelatedFeature||(this.graphics=[...e.detail])}async editMultipleFeatures(e){this._isMultipleEdits=!0,this._openEditRecord()}async selectedLanguageUpdated(e){await this._features.value?.clear(),await this._features.value?.close()}async load(){this._popupUtils=new m}async loaded(){this.graphics?.length>0&&await this.setGraphics()}render(){let e=this.isLoading?"":"display-none",t=!this.isLoading&&this._editRecordOpen?"position-absolute":"display-none",a=!this.isLoading&&this._editRecordOpen||this._showListView?"display-none":"",o=this._features.value?.features&&this._features.value.features.length<2||this._navigatedToRelatedFeature,d=Number(this._features.value?.selectedFeature?.getObjectId()),$=Number.isNaN(d)?[]:[d],c=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete,F=this._relatedFeature?[this._relatedFeature]:this.graphics,E=this._navigatedToRelatedFeature?0:this._features.value?.selectedFeatureIndex,r=this.isMobile?"display-none":"";return i`<calcite-shell class="z-index-1" style=${v({position:this.position})}>${this._getHeader()}<calcite-loader class=${s(e)} .label=${this._translations.fetchingData}></calcite-loader>${this.mapView&&this._getFeaturesComponent()||""}<div class=${`${a} width-100`} slot=footer>${this.allowEditing?i`<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?i`<delete-button class="padding-inline-start-1 width-100" id=solutions-delete .ids=${$} .layer=${this._layer} @editsComplete=${()=>this._closePopup()}></delete-button>`:void 0}<calcite-tooltip class=${s(r)} placement=bottom reference-element=solutions-edit><span>${this._translations.edit}</span></calcite-tooltip>${this.isMobile&&c?i`<calcite-tooltip class=${s(r)} placement=bottom reference-element=solutions-delete><span>${this._translations.delete}</span></calcite-tooltip>`:void 0}</div>`:""}${this.paginationEnabled&&!o&&i`<div class=${"display-flex padding-1-2 button-container top-border"}><div><calcite-button appearance=transparent .disabled=${o} icon-flip-rtl=both icon-start=chevron-left id=solutions-back @click=${()=>this._back()} width=full></calcite-button><calcite-tooltip class=${s(r)} 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=${this._translations.toggleListView} text-enabled><span class="pagination-count">${this._count}</span></calcite-action><div><calcite-button appearance=transparent .disabled=${o} icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${()=>this._next()} width=full></calcite-button><calcite-tooltip class=${s(r)} placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`||""}</div><edit-card .allowMultipleEditing=${this._isMultipleEdits} class=${s(t)} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${this.enableSnapping} .graphicIndex=${E} .graphics=${F} .mapView=${this.mapView} .open=${this._editRecordOpen}></edit-card><calcite-alert auto-close 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 setGraphics(){this._features.value&&(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.value&&(this._features.value.open=!0),this._features.value&&(this._features.value.features=this.graphics)):(await this._features.value.clear(),await this._features.value.close()),this._count=this._getCount())}handleHeaderActions(){this.showCopyPasteActions&&this._features.value?.headerActions.length===0?(this._features.value.headerActions.addMany(this._getHeaderActions()),this._headerActionsHandle&&this._headerActionsHandle.remove(),this._headerActionsHandle=n.on(()=>this._features.value,"arcgisTriggerAction",e=>{e.detail.action.id==="copy-features"?this.copyFeatures.emit({featuresIds:this.graphics.map(t=>t.getObjectId()),layerId:this._layer?.id}):e.detail.action.id==="paste-features"&&this.pasteFeatures.emit()})):!this.showCopyPasteActions&&this._features.value&&this._features.value.headerActions.length>0&&(this._features.value.headerActions.removeAll(),this._headerActionsHandle?.remove(),this._headerActionsHandle=void 0)}async featuresComponentReady(){if(this._features.value){if(this.featuresReferenceId){let e=document.getElementById(this.featuresReferenceId);e&&(await e.viewOnReady(),this._features.value.referenceElement=e)}this.handleHeaderActions(),await this.setGraphics(),this._features.value.selectedFeature&&this.selectionChanged.emit({selectedFeature:[this._features.value.selectedFeature],selectedFeatureIndex:this._features.value.selectedFeatureIndex}),n.watch(()=>this._features.value?.featureMenuOpen,e=>{this._updateCount(),e||(this._showListView=e??!1)}),n.watch(()=>this._features.value?.selectedFeatureIndex,e=>{e!==void 0&&e>-1&&this._features.value?.selectedFeature&&this.selectionChanged.emit({selectedFeature:[this._features.value.selectedFeature],selectedFeatureIndex:this._features.value.selectedFeatureIndex})}),n.watch(()=>this._features.value?.selectedDrillInFeature,e=>{e?(this._relatedFeature=e,this._navigatedToRelatedFeature=!0):(this._relatedFeature=void 0,this._navigatedToRelatedFeature=!1)})}}_getHeader(){return this.isMobile&&!this._editRecordOpen?i`<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}_getFeaturesComponent(){let e=this._editRecordOpen?"display-none":"";return i`<arcgis-features class=${s(e)} .view=${this.mapView} hide-action-bar .hideCloseButton=${!this.showCloseBtn} hide-feature-menu-heading .hideHeading=${this.isMobile} .highlightDisabled=${!this.highlightEnabled} hide-feature-navigation @arcgisReady=${this.featuresComponentReady} @arcgisClose=${()=>{this.clearSelection.emit()}} ${f(this._features)}></arcgis-features>`}_getHeaderActions(){return[new y({id:"copy-features",title:this._translations.copy,className:"copy-features",icon:"copy",disabled:this.graphics.length===0}),new y({id:"paste-features",title:this._translations.paste,className:"paste-features",icon:"paste-with-attribute",disabled:!this.pasteEnabled})]}_closePopup(){this.popupClosed.emit()}_alertClosed(){this._alertOpen=!1}_openEditRecord(){this._editEnabled?this._editRecordOpen=!0:this._alertOpen=!0}async _back(){await this._features.value?.previous(),await this._updateCount()}async _next(){await this._features.value?.next(),await this._updateCount()}async _updateCount(){let e=this._features.value?.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.value?.viewModel&&(this._features.value?.viewModel.selectedFeatureIndex+1).toString()||"",t=this._features.value?.features?.length.toString()||"";return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)||""}_toggleListView(){if(this._showListView=!this._showListView,this._features.value){let e=this._features.value?.selectedFeatureIndex;this._features.value.open=!0,this._features.value.featureMenuOpen=this._showListView,this._features.value.features=this.graphics,this._features.value.selectedFeatureIndex=e}}};b("info-card",h);return h},"core/reactiveUtils","support/actions/ActionButton",a,c,d)
2
+ import d from"./X52T6DJT.js";import c from"./CYEFGPUM.js";import"./VVZAS55G.js";import"./US5FON7D.js";import a from"./WV7QX3ED.js";import"./ACTJS4TX.js";import{a as w}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import"./TEHBW75B.js";import"./IHG7KTNC.js";import"./ZCU2WWVN.js";import"./WGO4EVOV.js";import"./YKB6256M.js";import"./N22MFQSQ.js";import"./N7BXCDA3.js";import"./ZX3UHK6P.js";import"./Z4F2NZOT.js";import"./KOIDWEP3.js";import"./3KXMYZCU.js";import"./LP2JYX4X.js";import"./GF4QELNV.js";import"./AYSQIO6L.js";import"./YQHYMLC7.js";import"./DKD2EGQP.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import"./FES7B3SJ.js";import{b}from"./2I5LGZNX.js";import{E as _,F as f,G as g,I as s,J as v,h as p,i,q as l,t as u}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([n,y,,,m])=>{var x=p`@layer{: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}.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-surface-2)!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.showCopyPasteActions=!1,this.pasteEnabled=!1,this._alertOpen=!1,this._count="",this._editRecordOpen=!1,this._isMultipleEdits=!1,this._mobileTitle="",this._showListView=!1,this._translations=w({name:"info-card",blocking:!0}),this._navigatedToRelatedFeature=!1,this._editEnabled=!1,this._features=_(),this.popupClosed=l(),this.clearSelection=l(),this.selectionChanged=l(),this.copyFeatures=l(),this.pasteFeatures=l(),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),this.listenOn(window,"clearSelection",this._alertClosed)}static{this.properties={enableEditGeometry:5,enableSnapping:5,graphics:0,isLoading:5,isMobile:5,mapView:0,featuresReferenceId:1,allowEditing:5,highlightEnabled:5,paginationEnabled:5,position:1,showCloseBtn:5,showCopyPasteActions:5,pasteEnabled:5,_alertOpen:16,_count:16,_editRecordOpen:16,_isMultipleEdits:16,_mobileTitle:16,_showListView:16,_translations:16,_navigatedToRelatedFeature:16}}static{this.styles=x}static{this.shadowRootOptions=u}willUpdate(e){if(e.has("graphics")&&this.graphicsWatchHandler(),e.has("pasteEnabled")&&this.hasUpdated&&this._features.value?.headerActions?.length){let t=this._features.value.headerActions.find(a=>a.id==="paste-features");t&&(t.disabled=!this.pasteEnabled)}if(e.has("showCopyPasteActions")&&this.hasUpdated&&this.handleHeaderActions(),e.has("_translations")){let t=this._translations._lang,a=e.get("_translations")?._lang;if(t&&a&&t!==a&&this._features.value){let o=[...this.graphics];this.graphics=[],this.graphics=o}}}async graphicsWatchHandler(){if(this._navigatedToRelatedFeature&&this._features.value&&(await this._features.value.clear(),await this._features.value.close(),this._count="",this._navigatedToRelatedFeature=!1),await this.setGraphics(),this._features.value?.headerActions?.length&&this.showCopyPasteActions){let e=this._features.value.headerActions.find(t=>t.id==="copy-features");e&&(e.disabled=this.graphics.length===0)}}async getSelectedFeature(){return this._features.value?.selectedFeature}async refresh(){await this.setGraphics()}async back(){await this._back()}async next(){await this._next()}async toggleListView(){this._toggleListView()}async closeEdit(){this._editRecordOpen=!1,this._isMultipleEdits=!1}async layerSelectionChange(){this._showListView=!1,this._features.value?.viewModel&&(this._features.value.featureMenuOpen=!1,await this._features.value.close())}async refreshGraphics(e){this._navigatedToRelatedFeature||(this.graphics=[...e.detail])}async editMultipleFeatures(e){this._isMultipleEdits=!0,this._openEditRecord()}async selectedLanguageUpdated(e){await this._features.value?.clear(),await this._features.value?.close()}async load(){this._popupUtils=new m}async loaded(){this.graphics?.length>0&&await this.setGraphics()}render(){let e=this.isLoading?"":"display-none",t=!this.isLoading&&this._editRecordOpen?"position-absolute":"display-none",a=!this.isLoading&&this._editRecordOpen||this._showListView?"display-none":"",o=this._features.value?.features&&this._features.value.features.length<2||this._navigatedToRelatedFeature,d=Number(this._features.value?.selectedFeature?.getObjectId()),$=Number.isNaN(d)?[]:[d],c=this._layer?.editingEnabled&&this._layer?.capabilities?.operations?.supportsDelete,F=this._relatedFeature?[this._relatedFeature]:this.graphics,E=this._navigatedToRelatedFeature?0:this._features.value?.selectedFeatureIndex,r=this.isMobile?"display-none":"";return i`<calcite-shell class="z-index-1" style=${v({position:this.position})}>${this._getHeader()}<calcite-loader class=${s(e)} .label=${this._translations.fetchingData}></calcite-loader>${this.mapView&&this._getFeaturesComponent()||""}<div class=${`${a} width-100`} slot=footer>${this.allowEditing?i`<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?i`<delete-button class="padding-inline-start-1 width-100" id=solutions-delete .ids=${$} .layer=${this._layer} @editsComplete=${()=>this._closePopup()}></delete-button>`:void 0}<calcite-tooltip class=${s(r)} placement=bottom reference-element=solutions-edit><span>${this._translations.edit}</span></calcite-tooltip>${this.isMobile&&c?i`<calcite-tooltip class=${s(r)} placement=bottom reference-element=solutions-delete><span>${this._translations.delete}</span></calcite-tooltip>`:void 0}</div>`:""}${this.paginationEnabled&&!o&&i`<div class=${"display-flex padding-1-2 button-container top-border"}><div><calcite-button appearance=transparent .disabled=${o} icon-flip-rtl=both icon-start=chevron-left id=solutions-back @click=${()=>this._back()} width=full></calcite-button><calcite-tooltip class=${s(r)} 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=${this._translations.toggleListView} text-enabled><span class="pagination-count">${this._count}</span></calcite-action><div><calcite-button appearance=transparent .disabled=${o} icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${()=>this._next()} width=full></calcite-button><calcite-tooltip class=${s(r)} placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>`||""}</div><edit-card .allowMultipleEditing=${this._isMultipleEdits} class=${s(t)} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${this.enableSnapping} .graphicIndex=${E} .graphics=${F} .mapView=${this.mapView} .open=${this._editRecordOpen}></edit-card><calcite-alert auto-close 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 setGraphics(){this._features.value&&(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.value&&(this._features.value.open=!0),this._features.value&&(this._features.value.features=this.graphics)):(await this._features.value.clear(),await this._features.value.close()),this._count=this._getCount())}handleHeaderActions(){this.showCopyPasteActions&&this._features.value?.headerActions.length===0?(this._features.value.headerActions.addMany(this._getHeaderActions()),this._headerActionsHandle&&this._headerActionsHandle.remove(),this._headerActionsHandle=n.on(()=>this._features.value,"arcgisTriggerAction",e=>{e.detail.action.id==="copy-features"?this.copyFeatures.emit({featuresIds:this.graphics.map(t=>t.getObjectId()),layerId:this._layer?.id}):e.detail.action.id==="paste-features"&&this.pasteFeatures.emit()})):!this.showCopyPasteActions&&this._features.value&&this._features.value.headerActions.length>0&&(this._features.value.headerActions.removeAll(),this._headerActionsHandle?.remove(),this._headerActionsHandle=void 0)}async featuresComponentReady(){if(this._features.value){if(this.featuresReferenceId){let e=document.getElementById(this.featuresReferenceId);e&&(await e.viewOnReady(),this._features.value.referenceElement=e)}this.handleHeaderActions(),await this.setGraphics(),this._features.value.selectedFeature&&this.selectionChanged.emit({selectedFeature:[this._features.value.selectedFeature],selectedFeatureIndex:this._features.value.selectedFeatureIndex}),n.watch(()=>this._features.value?.featureMenuOpen,e=>{this._updateCount(),e||(this._showListView=e??!1)}),n.watch(()=>this._features.value?.selectedFeatureIndex,e=>{e!==void 0&&e>-1&&this._features.value?.selectedFeature&&this.selectionChanged.emit({selectedFeature:[this._features.value.selectedFeature],selectedFeatureIndex:this._features.value.selectedFeatureIndex})}),n.watch(()=>this._features.value?.selectedDrillInFeature,e=>{e?(this._relatedFeature=e,this._navigatedToRelatedFeature=!0):(this._relatedFeature=void 0,this._navigatedToRelatedFeature=!1)})}}_getHeader(){return this.isMobile&&!this._editRecordOpen?i`<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}_getFeaturesComponent(){let e=this._editRecordOpen?"display-none":"";return i`<arcgis-features class=${s(e)} .view=${this.mapView} hide-action-bar .hideCloseButton=${!this.showCloseBtn} hide-feature-menu-heading .hideHeading=${this.isMobile} .highlightDisabled=${!this.highlightEnabled} hide-feature-navigation @arcgisReady=${this.featuresComponentReady} @arcgisClose=${()=>{this.clearSelection.emit()}} ${f(this._features)}></arcgis-features>`}_getHeaderActions(){return[new y({id:"copy-features",title:this._translations.copy,className:"copy-features",icon:"copy",disabled:this.graphics.length===0}),new y({id:"paste-features",title:this._translations.paste,className:"paste-features",icon:"paste-with-attribute",disabled:!this.pasteEnabled})]}_closePopup(){this.popupClosed.emit()}_alertClosed(){this._alertOpen=!1}_openEditRecord(){this._editEnabled?this._editRecordOpen=!0:this._alertOpen=!0}async _back(){await this._features.value?.previous(),await this._updateCount()}async _next(){await this._features.value?.next(),await this._updateCount()}async _updateCount(){let e=this._features.value?.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.value?.viewModel&&(this._features.value?.viewModel.selectedFeatureIndex+1).toString()||"",t=this._features.value?.features?.length.toString()||"";return this._translations.indexOfTotal.replace("{{index}}",e).replace("{{total}}",t)||""}_toggleListView(){if(this._showListView=!this._showListView,this._features.value){let e=this._features.value?.selectedFeatureIndex;this._features.value.open=!0,this._features.value.featureMenuOpen=this._showListView,this._features.value.features=this.graphics,this._features.value.selectedFeatureIndex=e}}};b("info-card",h);return h},"core/reactiveUtils","support/actions/ActionButton",a,c,d)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as l}from"./5IIGQVJO.js";import"./GF4QELNV.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import{a as t}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./QPIMTXPL.js";var n=async(e,s,r)=>{let o=s;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:t.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:t.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.createFollowers.any:translate}}`],disabled:[!1,!1,o.isSharedUpdate]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.createFollowers.admins:translate}}`]}}]}]}]}},p=async(e,s,r)=>Object.assign({},l("hubFollowersGroup",r));export{p as buildDefaults,n as buildUiSchema};
2
+ import{a as l}from"./5IIGQVJO.js";import"./GF4QELNV.js";import"./5O53T3SW.js";import"./AJZDBHB6.js";import{a as t}from"./NEKIHEPY.js";import"./UKXDAOCN.js";import"./D3WYLHYH.js";import"./MPGXSCG5.js";import"./TT5Y2WZP.js";import"./JBGQX4DF.js";import"./OQWMBY4L.js";import"./MHD543E6.js";import"./N72IW5CX.js";import"./SNXCUFG4.js";import"./ZDGVCOLK.js";import"./FES7B3SJ.js";import"./4UBLWDFJ.js";import"./SBEC53RV.js";import"./LDQDYCD2.js";import"./RNAN4RW6.js";import"./W5V64SBG.js";import"./TTODV2R4.js";import"./CEZMBNEQ.js";import"./BJMJWUHS.js";import"./NPZQAHW4.js";import"./FKCIW6NV.js";import"./YF26KIY5.js";import"./EXBEKVP5.js";var n=async(e,s,r)=>{let o=s;return{type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:t.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:t.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.createFollowers.any:translate}}`],disabled:[!1,!1,o.isSharedUpdate]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.createFollowers.admins:translate}}`]}}]}]}]}},p=async(e,s,r)=>Object.assign({},l("hubFollowersGroup",r));export{p as buildDefaults,n as buildUiSchema};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{b as n}from"./2I5LGZNX.js";import{E as l,F as i,G as c,h as t,i as r,q as a}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([f])=>{var m=t`:host{display:block}`,e=class extends c{constructor(){super(...arguments),this.fullscreenRef=l(),this.fullscreenStateChange=a(),this._fullscreenReady=()=>{f.watch(()=>this.fullscreenRef.value?.state,s=>s&&this.fullscreenStateChange.emit(s))}}static{this.properties={mapView:0,fullscreenRef:0}}static{this.styles=m}render(){return this.mapView&&r`<arcgis-fullscreen visual-scale=m .view=${this.mapView} @arcgisReady=${this._fullscreenReady} ${i(this.fullscreenRef)}></arcgis-fullscreen>`||""}};n("map-fullscreen",e);return e},"core/reactiveUtils")
2
+ import{b as n}from"./2I5LGZNX.js";import{E as l,F as i,G as c,h as t,i as r,q as a}from"./FFF5HUPM.js";import"./EXBEKVP5.js";export default $arcgis.t(([f])=>{var m=t`:host{display:block}`,e=class extends c{constructor(){super(...arguments),this.fullscreenRef=l(),this.fullscreenStateChange=a(),this._fullscreenReady=()=>{f.watch(()=>this.fullscreenRef.value?.state,s=>s&&this.fullscreenStateChange.emit(s))}}static{this.properties={mapView:0,fullscreenRef:0}}static{this.styles=m}render(){return this.mapView&&r`<arcgis-fullscreen visual-scale=m .view=${this.mapView} @arcgisReady=${this._fullscreenReady} ${i(this.fullscreenRef)}></arcgis-fullscreen>`||""}};n("map-fullscreen",e);return e},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as o}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{b as d}from"./2I5LGZNX.js";import{G as n,h as l,i as e,l as a,q as t}from"./FFF5HUPM.js";import"./QPIMTXPL.js";var h=l`:host{display:block}`,s=class extends n{constructor(){super(...arguments),this.buttonType="button",this.disabled=!1,this.ids=[],this.showDeleteCount=!0,this._confirmDelete=!1,this._deleteEndabled=!1,this._supportsDelete=!1,this._translations=o({name:"delete-button",blocking:!0}),this.editsComplete=t(),this.deleteClicked=t()}static{this.properties={deleteDialog:1,buttonType:1,disabled:5,icon:1,ids:0,layer:0,showDeleteCount:5,_confirmDelete:16,_deleteEndabled:16,_supportsDelete:16,_translations:16}}static{this.styles=h}willUpdate(i){i.has("ids")&&(this.hasUpdated||this.ids?.length>0)&&this.idsWatchHandler(),i.has("layer")&&this.layerWatchHandler()}async idsWatchHandler(){this._setDeleteEnabled()}async layerWatchHandler(){this._setDeleteEnabled()}render(){return e`${this.buttonType==="button"?e`<calcite-button appearance=outline .disabled=${!this._deleteEndabled} id=solutions-delete kind=danger @click=${()=>this._delete()} width=full>${this.showDeleteCount?this._translations.deleteCount?.replace("{{n}}",this.ids?.length.toString()):this._translations.delete}</calcite-button>`:e`<calcite-action .disabled=${!this._deleteEndabled} id=${this.icon??a} @click=${()=>this._delete()} scale=s .text=${this._translations.delete}><calcite-button appearance=transparent aria-hidden=true .iconStart=${this.icon} kind=danger>${this._translations.delete}</calcite-button></calcite-action>`}${this._deleteMessage()}<calcite-tooltip placement=bottom .referenceElement=${this.buttonType==="button"?"solutions-delete":this.icon}><span>${this._translations.delete}</span></calcite-tooltip>`}loaded(){this._setDeleteEnabled()}_setDeleteEnabled(){this._supportsDelete=!!(this.layer?.editingEnabled&&this.layer?.capabilities?.operations?.supportsDelete),this._deleteEndabled=!this.disabled||this._supportsDelete&&this.ids?.length>0}_delete(){this.deleteClicked.emit(),this._confirmDelete=!0}_deleteMessage(){return this.deleteDialog?this.deleteDialog:e`<delete-dialog id=solution-delete-dialog .ids=${this.ids} .layer=${this.layer} @deleteDialogClose=${()=>this._confirmDelete=!1} .open=${this._confirmDelete}></delete-dialog>`}};d("delete-button",s);export{s as DeleteButton};
2
+ import{a as o}from"./XF5N3NI5.js";import"./UBPOT5V3.js";import"./ISFTCFSJ.js";import{b as d}from"./2I5LGZNX.js";import{G as n,h as l,i as e,l as a,q as t}from"./FFF5HUPM.js";import"./EXBEKVP5.js";var h=l`:host{display:block}`,s=class extends n{constructor(){super(...arguments),this.buttonType="button",this.disabled=!1,this.ids=[],this.showDeleteCount=!0,this._confirmDelete=!1,this._deleteEndabled=!1,this._supportsDelete=!1,this._translations=o({name:"delete-button",blocking:!0}),this.editsComplete=t(),this.deleteClicked=t()}static{this.properties={deleteDialog:1,buttonType:1,disabled:5,icon:1,ids:0,layer:0,showDeleteCount:5,_confirmDelete:16,_deleteEndabled:16,_supportsDelete:16,_translations:16}}static{this.styles=h}willUpdate(i){i.has("ids")&&(this.hasUpdated||this.ids?.length>0)&&this.idsWatchHandler(),i.has("layer")&&this.layerWatchHandler()}async idsWatchHandler(){this._setDeleteEnabled()}async layerWatchHandler(){this._setDeleteEnabled()}render(){return e`${this.buttonType==="button"?e`<calcite-button appearance=outline .disabled=${!this._deleteEndabled} id=solutions-delete kind=danger @click=${()=>this._delete()} width=full>${this.showDeleteCount?this._translations.deleteCount?.replace("{{n}}",this.ids?.length.toString()):this._translations.delete}</calcite-button>`:e`<calcite-action .disabled=${!this._deleteEndabled} id=${this.icon??a} @click=${()=>this._delete()} scale=s .text=${this._translations.delete}><calcite-button appearance=transparent aria-hidden=true .iconStart=${this.icon} kind=danger>${this._translations.delete}</calcite-button></calcite-action>`}${this._deleteMessage()}<calcite-tooltip placement=bottom .referenceElement=${this.buttonType==="button"?"solutions-delete":this.icon}><span>${this._translations.delete}</span></calcite-tooltip>`}loaded(){this._setDeleteEnabled()}_setDeleteEnabled(){this._supportsDelete=!!(this.layer?.editingEnabled&&this.layer?.capabilities?.operations?.supportsDelete),this._deleteEndabled=!this.disabled||this._supportsDelete&&this.ids?.length>0}_delete(){this.deleteClicked.emit(),this._confirmDelete=!0}_deleteMessage(){return this.deleteDialog?this.deleteDialog:e`<delete-dialog id=solution-delete-dialog .ids=${this.ids} .layer=${this.layer} @deleteDialogClose=${()=>this._confirmDelete=!1} .open=${this._confirmDelete}></delete-dialog>`}};d("delete-button",s);export{s as DeleteButton};