@esri/solutions-components 1.1.0-next.20250828.1 → 1.1.0-next.20250828.3

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 (451) hide show
  1. package/dist/cdn/{CYOCNOEQ.js → 22MHJ4OI.js} +2 -2
  2. package/dist/cdn/{JIZNITTB.js → 25NMRPJF.js} +1 -1
  3. package/dist/cdn/{7HOQOHLS.js → 26R5MEKB.js} +3 -3
  4. package/dist/cdn/{BKWRFO6A.js → 2K7EKC4Y.js} +2 -2
  5. package/dist/cdn/{W5C6XYPZ.js → 2TMDOUG6.js} +2 -2
  6. package/dist/cdn/{HXDKDUWT.js → 2U2Z3LDL.js} +2 -2
  7. package/dist/cdn/{VCIMKIQT.js → 35N246XD.js} +2 -2
  8. package/dist/cdn/{ENH2ONZ4.js → 36HKSHCY.js} +2 -2
  9. package/dist/cdn/{RAB5X7AK.js → 3HA7SGPW.js} +2 -2
  10. package/dist/cdn/{LH4BUNTY.js → 3HLDOR4A.js} +1 -1
  11. package/dist/cdn/{KYXJAPUO.js → 3JMUTSCW.js} +2 -2
  12. package/dist/cdn/{VLVX734B.js → 3JX2YRMJ.js} +1 -1
  13. package/dist/cdn/{AKROK5I6.js → 3KIR4QAP.js} +2 -2
  14. package/dist/cdn/{YCORTFS7.js → 3NMS353D.js} +2 -2
  15. package/dist/cdn/{U3OP2U6Z.js → 3OERLKU3.js} +2 -2
  16. package/dist/cdn/{YLMBFPLK.js → 3PN2SI7I.js} +2 -2
  17. package/dist/cdn/{ZTM3CDGV.js → 3ZUBNWMX.js} +2 -2
  18. package/dist/cdn/{ZLUMLQMX.js → 3ZY4JREY.js} +2 -2
  19. package/dist/cdn/{TE5HWEFM.js → 465CDARV.js} +2 -2
  20. package/dist/cdn/{MZSMLOVX.js → 4DCUNUXE.js} +2 -2
  21. package/dist/cdn/{B6PWNM4K.js → 4EO4D66J.js} +2 -2
  22. package/dist/cdn/{PALJBSCG.js → 4L2J4EQ3.js} +2 -2
  23. package/dist/cdn/4MUVZYJN.js +4 -0
  24. package/dist/cdn/{4CW5ZN2J.js → 4MZJCLTC.js} +1 -1
  25. package/dist/cdn/{GGN2FCCL.js → 4NKGIEI7.js} +1 -1
  26. package/dist/cdn/{YNKROYSZ.js → 4PYM5SJK.js} +2 -2
  27. package/dist/cdn/{XXXAZZZG.js → 4UPJSAOG.js} +2 -2
  28. package/dist/cdn/{BX4JV3MY.js → 4XKYQCQV.js} +2 -2
  29. package/dist/cdn/{MMY2DKGT.js → 53HOAC4M.js} +2 -2
  30. package/dist/cdn/{C7PXZ5XP.js → 55KVITUR.js} +2 -2
  31. package/dist/cdn/{MKDT3Q7R.js → 5AUFBP27.js} +2 -2
  32. package/dist/cdn/{2VNHCYRT.js → 5KI6TDLC.js} +1 -1
  33. package/dist/cdn/{JPXLZZXS.js → 5RK26RYH.js} +2 -2
  34. package/dist/cdn/{KBJVTI7N.js → 5URF2E7I.js} +2 -2
  35. package/dist/cdn/{E6KYG4V7.js → 5UVEP7R7.js} +2 -2
  36. package/dist/cdn/{6ZC5QJES.js → 5VT6P4AB.js} +2 -2
  37. package/dist/cdn/{BFQBJPK6.js → 66B2OTXR.js} +2 -2
  38. package/dist/cdn/{5QXXUZUB.js → 67RKZKW2.js} +2 -2
  39. package/dist/cdn/{AKGLKYCK.js → 6EMJRLR6.js} +2 -2
  40. package/dist/cdn/{ALBAP5B2.js → 6IPYR7MB.js} +1 -1
  41. package/dist/cdn/{X5V5AZ3Q.js → 6OYFRBKR.js} +1 -1
  42. package/dist/cdn/{MX3TETVN.js → 6YSCLVG6.js} +2 -2
  43. package/dist/cdn/{5U74KT53.js → 6YSLBLM7.js} +2 -2
  44. package/dist/cdn/{ZHQ6ROUR.js → 74F4VSY2.js} +2 -2
  45. package/dist/cdn/{EDUOSZ6M.js → 75UGKEZV.js} +2 -2
  46. package/dist/cdn/{XG2S3RYT.js → 7BNBS5PK.js} +2 -2
  47. package/dist/cdn/{CA7A63KC.js → 7H3HRS57.js} +2 -2
  48. package/dist/cdn/{3TQTGTKN.js → 7LQ32BF5.js} +2 -2
  49. package/dist/cdn/{PN5GHDUD.js → 7O64U4GK.js} +2 -2
  50. package/dist/cdn/{2FSPJE7Q.js → 7PJWALIQ.js} +2 -2
  51. package/dist/cdn/{UQYGCFWX.js → 7QE4BNWM.js} +2 -2
  52. package/dist/cdn/{CCMZNDQA.js → 7SZIBOWM.js} +2 -2
  53. package/dist/cdn/{BIV2TJKS.js → 7YHNMISC.js} +2 -2
  54. package/dist/cdn/{QR3L46D5.js → A46MEFSC.js} +2 -2
  55. package/dist/cdn/{VY3IHGPV.js → A5MN3FJK.js} +2 -2
  56. package/dist/cdn/{LWQPYTCG.js → A6UGZIBN.js} +2 -2
  57. package/dist/cdn/{CRYUFEFZ.js → A7PECSUO.js} +2 -2
  58. package/dist/cdn/{HGLGHIDT.js → ADRGBGYK.js} +2 -2
  59. package/dist/cdn/{LWDXOC4I.js → AFYHTTJT.js} +2 -2
  60. package/dist/cdn/{UKMDLZPH.js → AIGTIFJD.js} +2 -2
  61. package/dist/cdn/{IXLH6PQM.js → AKFCRO4O.js} +2 -2
  62. package/dist/cdn/AN5674UC.js +18 -0
  63. package/dist/cdn/{TTZL3K3E.js → AOODXGZD.js} +2 -2
  64. package/dist/cdn/{BSTRVEYV.js → AZEHABI2.js} +2 -2
  65. package/dist/cdn/{JMKECZSQ.js → BC6QFEGG.js} +2 -2
  66. package/dist/cdn/{36WDBEGR.js → BI7BLTZB.js} +2 -2
  67. package/dist/cdn/BIBKKGA6.js +4 -0
  68. package/dist/cdn/{B7USG2HH.js → BK57XJLV.js} +2 -2
  69. package/dist/cdn/{26YCICDN.js → BOYDM5JQ.js} +2 -2
  70. package/dist/cdn/{A62GG2CR.js → BSQT6JEE.js} +2 -2
  71. package/dist/cdn/{E7RVVEW4.js → BUD6HIPA.js} +2 -2
  72. package/dist/cdn/{IPIEVCV4.js → BWAUIS5N.js} +2 -2
  73. package/dist/cdn/{UCPRRFQA.js → C3ABGUIC.js} +2 -2
  74. package/dist/cdn/{TXYY3CZT.js → C3Y4QZD3.js} +2 -2
  75. package/dist/cdn/{NLH6AXUG.js → C6B2L73J.js} +2 -2
  76. package/dist/cdn/{FRQ67D6R.js → CAFUFJEW.js} +2 -2
  77. package/dist/cdn/{TUVQYS2V.js → CAYB5EYW.js} +2 -2
  78. package/dist/cdn/{6HAMUWST.js → CBIEH24O.js} +2 -2
  79. package/dist/cdn/{4VZPNPGU.js → CIQKQ6RN.js} +2 -2
  80. package/dist/cdn/{C6AQF4XB.js → CIXQECYS.js} +2 -2
  81. package/dist/cdn/{AXPQH4ZJ.js → CKSVEYLO.js} +2 -2
  82. package/dist/cdn/CM3F4CJ2.js +4 -0
  83. package/dist/cdn/{X4RL35IN.js → COSA2DDX.js} +2 -2
  84. package/dist/cdn/{UPPH5CBR.js → CWWXDSTF.js} +2 -2
  85. package/dist/cdn/{DW46VKBZ.js → CX4GRISJ.js} +2 -2
  86. package/dist/cdn/{G76OWTXG.js → CXYYMXO6.js} +2 -2
  87. package/dist/cdn/{KYOUFKRO.js → D24LZUS7.js} +2 -2
  88. package/dist/cdn/{ZE7HW2JM.js → D3DMS7SO.js} +2 -2
  89. package/dist/cdn/{BDMJVTHY.js → DD3Q7CB4.js} +2 -2
  90. package/dist/cdn/{VHUGNL45.js → DEDT5ZS3.js} +1 -1
  91. package/dist/cdn/{N22YJXXP.js → DLWYMHVM.js} +2 -2
  92. package/dist/cdn/{KPNT7J4P.js → DOEBSJ7A.js} +2 -2
  93. package/dist/cdn/{RXVLH3D5.js → DPM6X6AH.js} +2 -2
  94. package/dist/cdn/{B7ICGJ37.js → DR7BMOTL.js} +1 -1
  95. package/dist/cdn/{UY24LHY4.js → DTN345FV.js} +2 -2
  96. package/dist/cdn/{C4LQJEYB.js → DVFCPWTO.js} +2 -2
  97. package/dist/cdn/{UJ6JDB4C.js → DZUNMURN.js} +2 -2
  98. package/dist/cdn/{EBB534UJ.js → E52CR22C.js} +2 -2
  99. package/dist/cdn/{VN3XEST3.js → E5MVGSGH.js} +2 -2
  100. package/dist/cdn/{OTIO2N65.js → E6JVOY2Y.js} +1 -1
  101. package/dist/cdn/{QMUABZZ3.js → E6OVGF67.js} +2 -2
  102. package/dist/cdn/{7BO3ANFM.js → EBI4WZB5.js} +1 -1
  103. package/dist/cdn/{FPNOAZMV.js → EEB2GDV3.js} +2 -2
  104. package/dist/cdn/{7J3S3PEI.js → EHMTROM5.js} +2 -2
  105. package/dist/cdn/{IMZUKA44.js → EK3NL3LO.js} +2 -2
  106. package/dist/cdn/{Q2W2KV6V.js → EMZS5WUW.js} +1 -1
  107. package/dist/cdn/{YN2WZXU6.js → EOF73S3W.js} +2 -2
  108. package/dist/cdn/{WVPI3EEQ.js → EOV3DBYK.js} +2 -2
  109. package/dist/cdn/{3Y6AKV3A.js → F3GSH22G.js} +2 -2
  110. package/dist/cdn/{DXLKZIT5.js → F7II3F2E.js} +2 -2
  111. package/dist/cdn/{FSR2DZ4R.js → FCUM2HGN.js} +2 -2
  112. package/dist/cdn/{JYBGDTJG.js → FJHGVRAD.js} +2 -2
  113. package/dist/cdn/{TZBL6REQ.js → FK7AYZDA.js} +2 -2
  114. package/dist/cdn/{NS7GJVVE.js → FKKE74W6.js} +2 -2
  115. package/dist/cdn/{RAZSWOEJ.js → FMH34SJ5.js} +1 -1
  116. package/dist/cdn/{MEGQ6KRM.js → FN6N7TVF.js} +2 -2
  117. package/dist/cdn/{3DWKHE5O.js → FPXYEWGL.js} +2 -2
  118. package/dist/cdn/{GQ7VWBI5.js → FQ2NDIPB.js} +2 -2
  119. package/dist/cdn/{SH5VQIC3.js → FVZ3AMRJ.js} +2 -2
  120. package/dist/cdn/{K2TYLDFY.js → FWW6VKGS.js} +2 -2
  121. package/dist/cdn/{ENPHJ77X.js → FXSWUNWC.js} +2 -2
  122. package/dist/cdn/{KIZ6DB22.js → G7XVWOS2.js} +2 -2
  123. package/dist/cdn/{H5KGEGEJ.js → GC3ND3KN.js} +2 -2
  124. package/dist/cdn/{Q3VSD5OV.js → GEXFIXKG.js} +2 -2
  125. package/dist/cdn/{O2J5OZHB.js → GIOH5Q5Z.js} +2 -2
  126. package/dist/cdn/{TJ7CBY32.js → GQMATO52.js} +2 -2
  127. package/dist/cdn/{RPW7AYSZ.js → GRSMKUJW.js} +2 -2
  128. package/dist/cdn/{PQGFGPWX.js → GWUUWMDH.js} +2 -2
  129. package/dist/cdn/{KIBTIL2M.js → HBL5EFM5.js} +2 -2
  130. package/dist/cdn/{XGYMWH32.js → HIRCPMKK.js} +2 -2
  131. package/dist/cdn/{EBIVM2FW.js → HJ4GJNKM.js} +2 -2
  132. package/dist/cdn/{WF7TSEQJ.js → HLKRAXOA.js} +2 -2
  133. package/dist/cdn/{THAGNM2K.js → HNF2FWJ4.js} +2 -2
  134. package/dist/cdn/{MXJ7HWJS.js → HQR2RXFM.js} +2 -2
  135. package/dist/cdn/{A7DFEGZ7.js → HRDX7ZFK.js} +2 -2
  136. package/dist/cdn/{N2GS7B2K.js → IABAT3EZ.js} +2 -2
  137. package/dist/cdn/{FAW6QK4L.js → IBBG4HBO.js} +2 -2
  138. package/dist/cdn/{YRHFGE4P.js → IEOZRY6N.js} +1 -1
  139. package/dist/cdn/{SLPPCCNN.js → IFM7IMYQ.js} +2 -2
  140. package/dist/cdn/{FDJ43PSI.js → IPA3HCQQ.js} +2 -2
  141. package/dist/cdn/{K6LFIJVD.js → IPP6MHZZ.js} +1 -1
  142. package/dist/cdn/{2O374BAL.js → ISESGHZW.js} +2 -2
  143. package/dist/cdn/{O63PPDNK.js → IT4POVOR.js} +2 -2
  144. package/dist/cdn/{4E7KLTF4.js → IUJF4CYI.js} +1 -1
  145. package/dist/cdn/{LI4VAQDX.js → IZOE3R5G.js} +2 -2
  146. package/dist/cdn/{CPGNQTY2.js → J4S44RWO.js} +2 -2
  147. package/dist/cdn/{NLID5CZE.js → J56VVCGM.js} +1 -1
  148. package/dist/cdn/{XEQGV3GM.js → JIAIW5D6.js} +2 -2
  149. package/dist/cdn/{G2GKYW5R.js → JLTH6EAI.js} +2 -2
  150. package/dist/cdn/{YUPQSIMB.js → JMVZQ22X.js} +2 -2
  151. package/dist/cdn/{HS44XI6I.js → JW6NBOGL.js} +2 -2
  152. package/dist/cdn/{MIFZPSBO.js → JX23Y4P7.js} +2 -2
  153. package/dist/cdn/{35TW43QQ.js → K2QH5ATL.js} +2 -2
  154. package/dist/cdn/{47FR5LH6.js → K7GNVAIR.js} +4 -4
  155. package/dist/cdn/{2AV67A2T.js → KB5DTVS7.js} +2 -2
  156. package/dist/cdn/{7IRGUM5P.js → KCNPSZXU.js} +2 -2
  157. package/dist/cdn/{5NNDG6J5.js → KE7LWGV4.js} +2 -2
  158. package/dist/cdn/{B27CBFJS.js → KEHHJO2Z.js} +2 -2
  159. package/dist/cdn/{6OZU72YD.js → KEPDL4X7.js} +2 -2
  160. package/dist/cdn/{652JQXQ3.js → KIIWQCOS.js} +2 -2
  161. package/dist/cdn/{CYZAAUHK.js → KKFB655P.js} +2 -2
  162. package/dist/cdn/{YFVTFHHS.js → KL74F7RD.js} +2 -2
  163. package/dist/cdn/{DJRMK3VA.js → KLVW7YKW.js} +2 -2
  164. package/dist/cdn/{NN3GJEFI.js → KTB7R4GI.js} +2 -2
  165. package/dist/cdn/{AR3C2LAV.js → KVMH4HXL.js} +2 -2
  166. package/dist/cdn/{QB6CDCJD.js → KX5L5LCJ.js} +2 -2
  167. package/dist/cdn/{U3XV5EYZ.js → LADDBGJH.js} +2 -2
  168. package/dist/cdn/{NHVC4YL2.js → LCJS4LCU.js} +2 -2
  169. package/dist/cdn/{SJNT3XEY.js → LD2QHCA2.js} +1 -1
  170. package/dist/cdn/{P5ZMJP4V.js → LE52XOLX.js} +2 -2
  171. package/dist/cdn/LITT5EVR.js +4 -0
  172. package/dist/cdn/{FLHJNKOE.js → LJPOFYKO.js} +2 -2
  173. package/dist/cdn/{V3GKYXYA.js → LRQ2DHEF.js} +2 -2
  174. package/dist/cdn/{AH6FHXER.js → LWRMKXDB.js} +2 -2
  175. package/dist/cdn/{WG7Q4BDA.js → LXI36PTZ.js} +2 -2
  176. package/dist/cdn/{5VD3HZ7O.js → MB5KJATU.js} +2 -2
  177. package/dist/cdn/{I6UOZCLY.js → MBOQJ5RM.js} +2 -2
  178. package/dist/cdn/{7IULIN3X.js → MCF3YD5O.js} +2 -2
  179. package/dist/cdn/{3MC2LO4F.js → MDPG5JQG.js} +2 -2
  180. package/dist/cdn/{3VPIT7EP.js → MEX7LD5S.js} +2 -2
  181. package/dist/cdn/{E37AIEUX.js → MHMW3ZM7.js} +2 -2
  182. package/dist/cdn/{EB2QGHVR.js → MJYMP3FG.js} +2 -2
  183. package/dist/cdn/{UO7OBDGW.js → MV556M7I.js} +2 -2
  184. package/dist/cdn/{OAW2LEQA.js → MV5NCPN6.js} +2 -2
  185. package/dist/cdn/{5OJ6RVYY.js → MX6MJOY2.js} +2 -2
  186. package/dist/cdn/{JMMK6ZMC.js → MY6LYJTC.js} +2 -2
  187. package/dist/cdn/{MXD2VYNV.js → MYZXZO4Y.js} +2 -2
  188. package/dist/cdn/{NIOKVXIH.js → N3CKQ2YS.js} +2 -2
  189. package/dist/cdn/{PYZJLCSG.js → N6TRJBH4.js} +3 -3
  190. package/dist/cdn/N7QSTVCW.js +4 -0
  191. package/dist/cdn/{QLTL5AOZ.js → NAIK2PL5.js} +2 -2
  192. package/dist/cdn/{STIQHGIK.js → NC6MDYQK.js} +2 -2
  193. package/dist/cdn/{FXPO6BYH.js → NGCJEYPI.js} +2 -2
  194. package/dist/cdn/{2QAV2QYW.js → NH6EWIZJ.js} +2 -2
  195. package/dist/cdn/{GHQDCMRA.js → NJGDMUMQ.js} +2 -2
  196. package/dist/cdn/{RJEZ6XWV.js → NLLOBF4X.js} +2 -2
  197. package/dist/cdn/{GSRYDGAV.js → NQN4PHQT.js} +2 -2
  198. package/dist/cdn/{CGBG5PZ2.js → NX7VTMCD.js} +2 -2
  199. package/dist/cdn/{Z2TEZ7WH.js → O3GDQ5AA.js} +2 -2
  200. package/dist/cdn/{2OMEBD46.js → O6XE67YA.js} +1 -1
  201. package/dist/cdn/{5HBQ7FWX.js → O72MZJBW.js} +2 -2
  202. package/dist/cdn/{7DFAPLNH.js → O7MTIXVI.js} +2 -2
  203. package/dist/cdn/{DEYLCJSP.js → O7ZHU4EO.js} +2 -2
  204. package/dist/cdn/{DBXZYHOM.js → ODEG3YPB.js} +2 -2
  205. package/dist/cdn/{VHOSEV73.js → OFEPXH6X.js} +2 -2
  206. package/dist/cdn/{6VQVRVJN.js → OFHMW2BA.js} +2 -2
  207. package/dist/cdn/{XUR5SZQD.js → OJCJO5GJ.js} +2 -2
  208. package/dist/cdn/{VPTBKBV5.js → OL7J5XK5.js} +2 -2
  209. package/dist/cdn/{33JDCGQY.js → ONMEGFON.js} +2 -2
  210. package/dist/cdn/{RDI3HGUX.js → OQ74UEQZ.js} +2 -2
  211. package/dist/cdn/{7UGYT2BA.js → OQBRCQWA.js} +2 -2
  212. package/dist/cdn/{DX455HUC.js → OQWR2ZPL.js} +2 -2
  213. package/dist/cdn/{IIR2GL4O.js → OSMOWMLE.js} +2 -2
  214. package/dist/cdn/{A6QKATD2.js → P6NKB6QR.js} +1 -1
  215. package/dist/cdn/{K6YVVZZW.js → PA3XPHBO.js} +2 -2
  216. package/dist/cdn/{RI7XLU67.js → PBGF5YEC.js} +2 -2
  217. package/dist/cdn/{K26FULAO.js → PHO74YB4.js} +2 -2
  218. package/dist/cdn/{SEJEWX5Q.js → PLFLLO4D.js} +2 -2
  219. package/dist/cdn/{33VV6P5Q.js → Q6OSLQD2.js} +1 -1
  220. package/dist/cdn/{POHZFGWD.js → QFLDQEZY.js} +2 -2
  221. package/dist/cdn/{XX5RRYQ6.js → QOGZT6XO.js} +2 -2
  222. package/dist/cdn/{GOHR47DB.js → QRA6KX5A.js} +2 -2
  223. package/dist/cdn/{ESLJFPTI.js → QRVWXFYH.js} +2 -2
  224. package/dist/cdn/{UTTDAUUZ.js → QU2UOZE5.js} +2 -2
  225. package/dist/cdn/{7HM3TCVT.js → QV4FD5SU.js} +2 -2
  226. package/dist/cdn/{MLTX6O43.js → QWGDL5QI.js} +2 -2
  227. package/dist/cdn/{4XZES4HL.js → QXSEG2W2.js} +2 -2
  228. package/dist/cdn/{SONGFV3C.js → R2DEYR7Z.js} +2 -2
  229. package/dist/cdn/{XJJOOJ6G.js → R3B33LPO.js} +2 -2
  230. package/dist/cdn/{AUKH3VVM.js → R4OMMKHF.js} +1 -1
  231. package/dist/cdn/{NQLUFBVG.js → R7INKHED.js} +2 -2
  232. package/dist/cdn/{XQAJKZ6C.js → RABLP5NF.js} +2 -2
  233. package/dist/cdn/{NEJTX4GW.js → RDBMRUOU.js} +2 -2
  234. package/dist/cdn/{XSR3H3JE.js → REEJWHA3.js} +2 -2
  235. package/dist/cdn/{JXX4ZCZS.js → REWR6UGE.js} +2 -2
  236. package/dist/cdn/{CBO2RDTT.js → RGUJVKYG.js} +2 -2
  237. package/dist/cdn/{VWLK7PTP.js → RGXX4JKW.js} +2 -2
  238. package/dist/cdn/{JSWGE7IT.js → RMZS4KKA.js} +2 -2
  239. package/dist/cdn/{GB5ZF5RN.js → RPZAV34T.js} +2 -2
  240. package/dist/cdn/RRH6JKFB.js +4 -0
  241. package/dist/cdn/{6IGWNKKM.js → RT3IH6J2.js} +2 -2
  242. package/dist/cdn/{IPEIHK7F.js → RTHTZBAM.js} +2 -2
  243. package/dist/cdn/{UBZYZM33.js → RWUH6CID.js} +1 -1
  244. package/dist/cdn/{GK3DRXAZ.js → S2WQF5IV.js} +1 -1
  245. package/dist/cdn/{7T5SAWSV.js → S3GE6FGX.js} +2 -2
  246. package/dist/cdn/{NTBVDB22.js → S3K4FP25.js} +2 -2
  247. package/dist/cdn/{L4UUJ7LK.js → S6PYX5OO.js} +2 -2
  248. package/dist/cdn/{ATIYZX6B.js → SBKZPO2W.js} +2 -2
  249. package/dist/cdn/{SNLBW6KW.js → SEEVJD66.js} +2 -2
  250. package/dist/cdn/{M72RT7HM.js → SF7WNX6Q.js} +1 -1
  251. package/dist/cdn/{AHRMZDNR.js → SJQPCSH5.js} +2 -2
  252. package/dist/cdn/{F2FLEL5E.js → SKDHYV2M.js} +1 -1
  253. package/dist/cdn/{DRX3Q557.js → SKDTJHIB.js} +2 -2
  254. package/dist/cdn/{KJPAONFN.js → T3Y7DBDZ.js} +2 -2
  255. package/dist/cdn/{KJYG76JE.js → TCI7ONEC.js} +2 -2
  256. package/dist/cdn/{4IVAVDMB.js → TK7WMHN2.js} +2 -2
  257. package/dist/cdn/{YYHOJE6C.js → TLCR2ZDZ.js} +2 -2
  258. package/dist/cdn/{K2SZM3RN.js → TPPUAVMR.js} +1 -1
  259. package/dist/cdn/{ONCEFFGM.js → TRW3LDBE.js} +1 -1
  260. package/dist/cdn/{BSLRHAFV.js → TVQM6PZH.js} +2 -2
  261. package/dist/cdn/{WBHZGQ22.js → TWHEILUF.js} +2 -2
  262. package/dist/cdn/{4X5NYKWT.js → TWU4IG5N.js} +1 -1
  263. package/dist/cdn/{YX75OIOE.js → TXDLAYOX.js} +2 -2
  264. package/dist/cdn/{Z35UNYVL.js → U2AMZLF4.js} +2 -2
  265. package/dist/cdn/{XPLRTVAH.js → U42MDYXJ.js} +2 -2
  266. package/dist/cdn/{DYVBRMAK.js → U4GUZD2C.js} +2 -2
  267. package/dist/cdn/{FRSDFIQ7.js → U53CMMX5.js} +2 -2
  268. package/dist/cdn/{YNTK6QG4.js → UCANSYGX.js} +2 -2
  269. package/dist/cdn/{NY3225HU.js → UCOY7HIX.js} +2 -2
  270. package/dist/cdn/{QV5VEINV.js → UEVBSGFE.js} +2 -2
  271. package/dist/cdn/{UC3D77A5.js → UFENTNOP.js} +2 -2
  272. package/dist/cdn/{DWP43GP4.js → UKRHIEXC.js} +2 -2
  273. package/dist/cdn/{DW2OGWTW.js → UPAD5RIR.js} +2 -2
  274. package/dist/cdn/{3BQDKOMZ.js → UPB7KL3C.js} +2 -2
  275. package/dist/cdn/{GI7CHY4L.js → URX6I4OF.js} +2 -2
  276. package/dist/cdn/{PHL5FZXU.js → USW5VCDT.js} +2 -2
  277. package/dist/cdn/{MK7PM652.js → UYKVQQS3.js} +2 -2
  278. package/dist/cdn/{CANGP6IW.js → V2SQNV5V.js} +2 -2
  279. package/dist/cdn/{W2ENMANA.js → V5Y7FOSO.js} +2 -2
  280. package/dist/cdn/{7LLYRYCX.js → V7ZDUHVZ.js} +2 -2
  281. package/dist/cdn/{DKYVAGTI.js → VBTBJAAU.js} +2 -2
  282. package/dist/cdn/{57DIBSIO.js → VCUF5KRT.js} +2 -2
  283. package/dist/cdn/{H2TYXGET.js → VFIAP4WY.js} +2 -2
  284. package/dist/cdn/{4DPKXEG2.js → VJWUPMEH.js} +2 -2
  285. package/dist/cdn/{V7PUCGHN.js → VNDUXCJD.js} +2 -2
  286. package/dist/cdn/{LFYMUU2V.js → VNN6J764.js} +2 -2
  287. package/dist/cdn/{DLL675FL.js → VOXOOOP5.js} +2 -2
  288. package/dist/cdn/{OPN7TLOX.js → VTM2X5OM.js} +2 -2
  289. package/dist/cdn/{JSGVVQLI.js → W277RO4E.js} +2 -2
  290. package/dist/cdn/{6ET6C4H7.js → W55JNYI3.js} +2 -2
  291. package/dist/cdn/{2GSLR45C.js → W7YRP22H.js} +2 -2
  292. package/dist/cdn/{2QNTOEJK.js → WGKFJJUF.js} +2 -2
  293. package/dist/cdn/{C4FUQ72E.js → WJAWYGN7.js} +1 -1
  294. package/dist/cdn/{GK44TAEU.js → WQSAF6TY.js} +2 -2
  295. package/dist/cdn/{M54JSW3C.js → WRDFN5CV.js} +2 -2
  296. package/dist/cdn/{5BTDYNM7.js → WUZCQEEC.js} +1 -1
  297. package/dist/cdn/{E3V7CI2N.js → WWANX2JP.js} +2 -2
  298. package/dist/cdn/{WEJPHZ6X.js → WZIEQMAC.js} +1 -1
  299. package/dist/cdn/{JKFFGWIS.js → WZSPK6SY.js} +2 -2
  300. package/dist/cdn/{2EF374XU.js → WZXWVMIF.js} +2 -2
  301. package/dist/cdn/{DMEFAZ76.js → X4E67GGH.js} +2 -2
  302. package/dist/cdn/{GMSVYDIH.js → X523YG7R.js} +2 -2
  303. package/dist/cdn/{T6JOLUZG.js → XCBKY64Z.js} +2 -2
  304. package/dist/cdn/{B4UPJLXC.js → XFPZBEHV.js} +2 -2
  305. package/dist/cdn/{3QO6PGBY.js → XH33OUB5.js} +2 -2
  306. package/dist/cdn/{T62E5YW4.js → XLKQC7AO.js} +2 -2
  307. package/dist/cdn/{4UJYA5HN.js → XORZQSUS.js} +2 -2
  308. package/dist/cdn/{VAOCCS73.js → XRRFFRAY.js} +2 -2
  309. package/dist/cdn/{CZ6OLVPL.js → XSPR7FOX.js} +2 -2
  310. package/dist/cdn/{BYQH46XN.js → XUWJ7HO2.js} +1 -1
  311. package/dist/cdn/{IR5XIL33.js → XX2JVDLX.js} +2 -2
  312. package/dist/cdn/{5KTLKU3X.js → XXOJGNIY.js} +2 -2
  313. package/dist/cdn/{EWEKPBJH.js → XZJPMNRH.js} +1 -1
  314. package/dist/cdn/{DR5TXETU.js → Y4O3MBRB.js} +2 -2
  315. package/dist/cdn/{REQK6J2O.js → Y5D6TWTQ.js} +1 -1
  316. package/dist/cdn/{DQEVDO3H.js → YBYTJCOZ.js} +2 -2
  317. package/dist/cdn/{HVY3WEAO.js → YED6FNCR.js} +3 -3
  318. package/dist/cdn/{6NJ46TBU.js → YIY5UZCD.js} +1 -1
  319. package/dist/cdn/{N7HAI6WO.js → YO7YBMYF.js} +3 -3
  320. package/dist/cdn/{546RNG3Y.js → YOBVNLTW.js} +2 -2
  321. package/dist/cdn/{VAAUVFHY.js → YRKX32VX.js} +2 -2
  322. package/dist/cdn/{O5BVM6GK.js → YSDCMUZM.js} +2 -2
  323. package/dist/cdn/{OZGOA53Z.js → YT7BKMP3.js} +2 -2
  324. package/dist/cdn/{44QYZ3R3.js → YU7GLX6S.js} +1 -1
  325. package/dist/cdn/{4ABVYOCU.js → YW2MXGNT.js} +2 -2
  326. package/dist/cdn/YZKWGSGA.js +4 -0
  327. package/dist/cdn/{FJCYNY4E.js → Z236NM4N.js} +2 -2
  328. package/dist/cdn/{H5JB4A4Q.js → ZBVH7XEC.js} +2 -2
  329. package/dist/cdn/{B3KIEGNA.js → ZCZ4245H.js} +2 -2
  330. package/dist/cdn/{RF7GC7DM.js → ZEETXLSR.js} +2 -2
  331. package/dist/cdn/{IK6T3CHJ.js → ZJL3RISP.js} +2 -2
  332. package/dist/cdn/{FQ6Z6D2R.js → ZKOPINVK.js} +2 -2
  333. package/dist/cdn/{D3OD3224.js → ZLYFQP5M.js} +2 -2
  334. package/dist/cdn/{BRW5L22J.js → ZMA2HYPY.js} +2 -2
  335. package/dist/cdn/ZMPO2QMM.js +4 -0
  336. package/dist/cdn/{KF5JPRED.js → ZPZHTXSK.js} +2 -2
  337. package/dist/cdn/{AQ2FH3YW.js → ZWMO5JAP.js} +1 -1
  338. package/dist/cdn/ZZHC2Y63.js +4 -0
  339. package/dist/cdn/index.js +2 -2
  340. package/dist/chunks/Auth.js +2 -2
  341. package/dist/chunks/CardsFetcher.js +1 -1
  342. package/dist/chunks/appConfig.js +1 -1
  343. package/dist/chunks/cardFetchingUtils.js +1 -1
  344. package/dist/chunks/common.js +1 -1
  345. package/dist/chunks/deployAppContexts.js +1 -1
  346. package/dist/chunks/downloadUtils.js +1 -1
  347. package/dist/chunks/getItemIcon.js +1 -1
  348. package/dist/chunks/helpers.js +1 -1
  349. package/dist/chunks/index.js +1 -1
  350. package/dist/chunks/interfaces.js +1 -1
  351. package/dist/chunks/loadModules.js +1 -1
  352. package/dist/chunks/mapViewUtils.js +1 -1
  353. package/dist/chunks/pciUtils.js +1 -1
  354. package/dist/chunks/popupUtils.js +1 -1
  355. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  356. package/dist/chunks/privilegeUtils.js +1 -1
  357. package/dist/chunks/publicNotificationStore.js +1 -1
  358. package/dist/chunks/queryUtils.js +1 -1
  359. package/dist/chunks/runtime.js +1 -1
  360. package/dist/chunks/solution-store.js +1 -1
  361. package/dist/chunks/templates.js +1 -1
  362. package/dist/chunks/useT9n.js +1 -1
  363. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  364. package/dist/components/basemap-gallery/customElement.js +1 -1
  365. package/dist/components/buffer-tools/customElement.js +1 -1
  366. package/dist/components/card-manager/customElement.js +1 -1
  367. package/dist/components/consent-manager/customElement.js +1 -1
  368. package/dist/components/create-feature/customElement.js +1 -1
  369. package/dist/components/create-related-feature/customElement.js +1 -1
  370. package/dist/components/crowdsource-manager/customElement.js +1 -1
  371. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  372. package/dist/components/deduct-calculator/customElement.js +1 -1
  373. package/dist/components/delete-button/customElement.js +1 -1
  374. package/dist/components/delete-dialog/customElement.js +1 -1
  375. package/dist/components/edit-card/customElement.js +1 -1
  376. package/dist/components/feature-details/customElement.js +1 -1
  377. package/dist/components/feature-list/customElement.js +1 -1
  378. package/dist/components/field-selection/customElement.js +1 -1
  379. package/dist/components/floor-filter/customElement.js +1 -1
  380. package/dist/components/info-card/customElement.js +1 -1
  381. package/dist/components/json-editor/customElement.js +1 -1
  382. package/dist/components/layer-list/customElement.js +1 -1
  383. package/dist/components/layer-table/customElement.js +1 -1
  384. package/dist/components/map-card/customElement.js +1 -1
  385. package/dist/components/map-draw-tools/customElement.js +1 -1
  386. package/dist/components/map-fullscreen/customElement.js +1 -1
  387. package/dist/components/map-layer-picker/customElement.js +1 -1
  388. package/dist/components/map-legend/customElement.js +1 -1
  389. package/dist/components/map-picker/customElement.js +1 -1
  390. package/dist/components/map-search/customElement.js +1 -1
  391. package/dist/components/map-select-tools/customElement.js +1 -1
  392. package/dist/components/map-tools/customElement.js +1 -1
  393. package/dist/components/pci-calculator/customElement.js +1 -1
  394. package/dist/components/pdf-download/customElement.js +1 -1
  395. package/dist/components/public-notification/customElement.js +1 -1
  396. package/dist/components/refine-selection/customElement.js +1 -1
  397. package/dist/components/selection-tool/customElement.js +1 -1
  398. package/dist/components/solution-article-card/customElement.js +1 -1
  399. package/dist/components/solution-configuration/customElement.js +1 -1
  400. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  401. package/dist/components/solution-configure-titles/customElement.js +1 -1
  402. package/dist/components/solution-contents/customElement.js +1 -1
  403. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  404. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  405. package/dist/components/solution-deployed-card/customElement.js +1 -1
  406. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  407. package/dist/components/solution-details-card/customElement.js +1 -1
  408. package/dist/components/solution-details-panel/customElement.js +3 -3
  409. package/dist/components/solution-item/customElement.js +1 -1
  410. package/dist/components/solution-item-accordion/customElement.js +1 -1
  411. package/dist/components/solution-item-details/customElement.js +1 -1
  412. package/dist/components/solution-item-diagram/customElement.js +1 -1
  413. package/dist/components/solution-item-icon/customElement.js +1 -1
  414. package/dist/components/solution-item-sharing/customElement.js +1 -1
  415. package/dist/components/solution-organization-variables/customElement.js +1 -1
  416. package/dist/components/solution-resource-item/customElement.js +1 -1
  417. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  418. package/dist/components/solution-social-share/customElement.js +1 -1
  419. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  420. package/dist/components/solution-template-data/customElement.js +1 -1
  421. package/dist/components/solution-variables/customElement.js +1 -1
  422. package/dist/components/solutions-all-panel/customElement.js +1 -1
  423. package/dist/components/solutions-all-shell/customElement.js +7 -7
  424. package/dist/components/solutions-article-panel/customElement.js +1 -1
  425. package/dist/components/solutions-articles/customElement.js +1 -1
  426. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  427. package/dist/components/solutions-deploy-app/customElement.d.ts +3 -0
  428. package/dist/components/solutions-deploy-app/customElement.js +43 -49
  429. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  430. package/dist/components/solutions-deployed-shell/customElement.js +3 -3
  431. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  432. package/dist/components/spatial-ref/customElement.js +1 -1
  433. package/dist/components/store-manager/customElement.js +1 -1
  434. package/dist/docs/api.json +5 -1
  435. package/dist/docs/docs.json +4 -4
  436. package/dist/docs/vscode.html-custom-data.json +2 -1
  437. package/dist/docs/web-types.json +12 -6
  438. package/dist/index.d.ts +1 -0
  439. package/dist/index.js +3 -1
  440. package/dist/loader.js +1 -1
  441. package/package.json +1 -1
  442. package/dist/cdn/3X4Q2NHM.js +0 -4
  443. package/dist/cdn/4ATWDBCE.js +0 -4
  444. package/dist/cdn/7GCPH6WD.js +0 -4
  445. package/dist/cdn/AMF6ECXI.js +0 -4
  446. package/dist/cdn/B2TVCPX3.js +0 -4
  447. package/dist/cdn/CDR5VU6V.js +0 -4
  448. package/dist/cdn/NZ46RO5H.js +0 -4
  449. package/dist/cdn/P4RKKCIM.js +0 -18
  450. package/dist/cdn/SGGGHGPT.js +0 -4
  451. package/dist/cdn/Y2IMB6QO.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import e from"./VWLK7PTP.js";import b from"./4DPKXEG2.js";import"./6ET6C4H7.js";import a from"./7LLYRYCX.js";import{a as g}from"./UC3D77A5.js";import"./AQ2FH3YW.js";import{b as p}from"./BSLRHAFV.js";import"./OPN7TLOX.js";import"./JMKECZSQ.js";import{E as o,G as d,H as l,I as c,h as s,i as t,o as r}from"./K2SZM3RN.js";import"./A6QKATD2.js";export default $arcgis.t(([,,{i:h,t:v}])=>{var _=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-widget__heading{overflow:hidden}:host .esri-widget__heading{margin:0;overflow-x:hidden}:host .esri-widget__heading{display:inline-block;font-size:var(--instant-apps-interactive-legend-heading-font-size)}:host .esri-widget__heading{font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interactiveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container"},a=class extends o{constructor(){super(...arguments),this._messages=g({name:"instant-apps-interactive-legend",blocking:!0}),this.isChild=!1,this.expanded=!0,this.groupLayerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=_}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.groupLayerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=h(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages.collapse:this._messages.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return t`<header class=${`${e.interactiveLegendHeader} ${v(this.el)}`} style=${l({borderLeft:"1px solid var(--calcite-color-border-3)"})}><span><span class=${d(e.headerActionContainer)}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i} .label=${i} scale=s></calcite-action><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};p("instant-apps-interactive-legend-group-legend-element-caption",a);return a},a,b,e)
3
+ v1.1.0-next.20250828.3 */
4
+ import e from"./RGXX4JKW.js";import b from"./VJWUPMEH.js";import"./W55JNYI3.js";import a from"./V7ZDUHVZ.js";import{a as g}from"./UFENTNOP.js";import"./ZWMO5JAP.js";import{b as p}from"./TVQM6PZH.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";import{E as o,G as d,H as l,I as c,h as s,i as t,o as r}from"./TPPUAVMR.js";import"./P6NKB6QR.js";export default $arcgis.t(([,,{i:h,t:v}])=>{var _=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-widget__heading{overflow:hidden}:host .esri-widget__heading{margin:0;overflow-x:hidden}:host .esri-widget__heading{display:inline-block;font-size:var(--instant-apps-interactive-legend-heading-font-size)}:host .esri-widget__heading{font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interactiveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container"},a=class extends o{constructor(){super(...arguments),this._messages=g({name:"instant-apps-interactive-legend",blocking:!0}),this.isChild=!1,this.expanded=!0,this.groupLayerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=_}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.groupLayerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=h(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages.collapse:this._messages.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return t`<header class=${`${e.interactiveLegendHeader} ${v(this.el)}`} style=${l({borderLeft:"1px solid var(--calcite-color-border-3)"})}><span><span class=${d(e.headerActionContainer)}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i} .label=${i} scale=s></calcite-action><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};p("instant-apps-interactive-legend-group-legend-element-caption",a);return a},a,b,e)
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{a as $}from"./VY3IHGPV.js";import{a as I}from"./K6LFIJVD.js";import{a as E}from"./UC3D77A5.js";import{c as k,t as P,z as S}from"./AQ2FH3YW.js";import{b as y}from"./BSLRHAFV.js";import"./OPN7TLOX.js";import"./JMKECZSQ.js";import{C as d,D as h,E as f,G as p,h as _,i as o,l as w,o as m}from"./K2SZM3RN.js";import"./A6QKATD2.js";var L=`
3
+ v1.1.0-next.20250828.3 */
4
+ import{a as $}from"./A5MN3FJK.js";import{a as I}from"./IPP6MHZZ.js";import{a as E}from"./UFENTNOP.js";import{c as k,t as P,z as S}from"./ZWMO5JAP.js";import{b as y}from"./TVQM6PZH.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";import{C as d,D as h,E as f,G as p,h as _,i as o,l as w,o as m}from"./TPPUAVMR.js";import"./P6NKB6QR.js";var L=`
5
5
  @media print {
6
6
  @page {
7
7
  size: Portrait;
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{a}from"./LI4VAQDX.js";import"./AKGLKYCK.js";import"./F2FLEL5E.js";import"./EWEKPBJH.js";import"./44QYZ3R3.js";import{a as s,b as r}from"./FRQ67D6R.js";import"./NQLUFBVG.js";import"./WF7TSEQJ.js";import"./2EF374XU.js";import{a as o}from"./CZ6OLVPL.js";import{a as i}from"./O63PPDNK.js";import"./MMY2DKGT.js";import"./4E7KLTF4.js";import"./YRHFGE4P.js";import"./K6YVVZZW.js";import"./B7ICGJ37.js";import"./K26FULAO.js";import"./FAW6QK4L.js";import"./7BO3ANFM.js";import"./4UJYA5HN.js";import"./DWP43GP4.js";import"./XQAJKZ6C.js";import"./PN5GHDUD.js";import"./LFYMUU2V.js";import"./P5ZMJP4V.js";import"./UKMDLZPH.js";import"./SJNT3XEY.js";import"./IIR2GL4O.js";import"./GGN2FCCL.js";import"./GK3DRXAZ.js";import"./ZTM3CDGV.js";import"./BX4JV3MY.js";import"./L4UUJ7LK.js";import"./VHUGNL45.js";import"./YLMBFPLK.js";import"./JMMK6ZMC.js";import"./MEGQ6KRM.js";import"./ALBAP5B2.js";import"./AUKH3VVM.js";import"./A6QKATD2.js";var c=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basic.title`,options:{helperText:{labelKey:`${e}.sections.basic.helperText`}},elements:[{labelKey:`${e}.fields.title.label`,scope:"/properties/name",type:"Control",options:{helperText:{labelKey:`${e}.fields.title.hint`},messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.title.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"}]}},{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:"shared.fields.summary.maxLengthError"}]}},...a(e,t.thumbnail,t.thumbnailUrl,"content",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]},{labelKey:`${e}.fields.license.label`,scope:"/properties/licenseInfo",type:"Control",options:{control:"arcgis-hub-license-picker"}}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await s(t.location,l.hubRequestOptions),options:await r(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{c as buildUiSchema};
3
+ v1.1.0-next.20250828.3 */
4
+ import{a}from"./IZOE3R5G.js";import"./6EMJRLR6.js";import"./SKDHYV2M.js";import"./XZJPMNRH.js";import"./YU7GLX6S.js";import{a as s,b as r}from"./CAFUFJEW.js";import"./R7INKHED.js";import"./HLKRAXOA.js";import"./WZXWVMIF.js";import{a as o}from"./XSPR7FOX.js";import{a as i}from"./IT4POVOR.js";import"./53HOAC4M.js";import"./IUJF4CYI.js";import"./IEOZRY6N.js";import"./PA3XPHBO.js";import"./DR7BMOTL.js";import"./PHO74YB4.js";import"./IBBG4HBO.js";import"./EBI4WZB5.js";import"./XORZQSUS.js";import"./UKRHIEXC.js";import"./RABLP5NF.js";import"./7O64U4GK.js";import"./VNN6J764.js";import"./LE52XOLX.js";import"./AIGTIFJD.js";import"./LD2QHCA2.js";import"./OSMOWMLE.js";import"./4NKGIEI7.js";import"./S2WQF5IV.js";import"./3ZUBNWMX.js";import"./4XKYQCQV.js";import"./S6PYX5OO.js";import"./DEDT5ZS3.js";import"./3PN2SI7I.js";import"./MY6LYJTC.js";import"./FN6N7TVF.js";import"./6IPYR7MB.js";import"./R4OMMKHF.js";import"./P6NKB6QR.js";var c=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basic.title`,options:{helperText:{labelKey:`${e}.sections.basic.helperText`}},elements:[{labelKey:`${e}.fields.title.label`,scope:"/properties/name",type:"Control",options:{helperText:{labelKey:`${e}.fields.title.hint`},messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.title.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"}]}},{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:"shared.fields.summary.maxLengthError"}]}},...a(e,t.thumbnail,t.thumbnailUrl,"content",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]},{labelKey:`${e}.fields.license.label`,scope:"/properties/licenseInfo",type:"Control",options:{control:"arcgis-hub-license-picker"}}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await s(t.location,l.hubRequestOptions),options:await r(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{c as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{a as l}from"./MXD2VYNV.js";import"./YRHFGE4P.js";import"./K6YVVZZW.js";import"./B7ICGJ37.js";import{a as o}from"./K26FULAO.js";import"./FAW6QK4L.js";import"./7BO3ANFM.js";import"./4UJYA5HN.js";import"./DWP43GP4.js";import"./XQAJKZ6C.js";import"./PN5GHDUD.js";import"./LFYMUU2V.js";import"./P5ZMJP4V.js";import"./UKMDLZPH.js";import"./SJNT3XEY.js";import"./IIR2GL4O.js";import"./GGN2FCCL.js";import"./GK3DRXAZ.js";import"./ZTM3CDGV.js";import"./BX4JV3MY.js";import"./L4UUJ7LK.js";import"./VHUGNL45.js";import"./YLMBFPLK.js";import"./JMMK6ZMC.js";import"./MEGQ6KRM.js";import"./ALBAP5B2.js";import"./AUKH3VVM.js";import"./A6QKATD2.js";function p(e){return["myContent","organization"].map(t=>l("selectContent.facets",t,"item",{user:e,collectionNames:["site"]}))}var u=(e,i,t)=>({type:"Layout",elements:[{labelKey:"selectContent.title",scope:"/properties/entityId",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:p(t.currentUser),facets:[{label:"{{selectContent.facets.sharing:translate}}",key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}]}},{type:"Section",labelKey:"callToAction.title",rule:n,options:{helperText:{labelKey:"callToAction.helperText"}},elements:[{scope:"/properties/callToActionText",type:"Control",options:{type:"textarea",rows:4}},{labelKey:"callToAction.alignment",scope:"/properties/callToActionAlign",type:"Control",options:{control:"hub-field-input-alignment"}}]},{type:"Section",labelKey:"followButton.title",options:{helperText:{labelKey:"followButton.helperText"}},rule:n,elements:[{labelKey:"followButton.buttonText",scope:"/properties/buttonText",type:"Control",options:{control:"hub-field-input-input"}},{labelKey:"followButton.unfollowButtonText",scope:"/properties/unfollowButtonText",type:"Control",options:{control:"hub-field-input-input"}},{labelKey:"followButton.alignment",scope:"/properties/buttonAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"followButton.buttonStyle",scope:"/properties/buttonStyle",type:"Control",options:{control:"hub-field-input-select",labels:["{{followButton.solid:translate}}","{{followButton.outline:translate}}"]}}]}]}),n={effect:o.HIDE,condition:{scope:"/properties/entityId",schema:{const:[]}}};export{u as buildUiSchema};
3
+ v1.1.0-next.20250828.3 */
4
+ import{a as l}from"./MYZXZO4Y.js";import"./IEOZRY6N.js";import"./PA3XPHBO.js";import"./DR7BMOTL.js";import{a as o}from"./PHO74YB4.js";import"./IBBG4HBO.js";import"./EBI4WZB5.js";import"./XORZQSUS.js";import"./UKRHIEXC.js";import"./RABLP5NF.js";import"./7O64U4GK.js";import"./VNN6J764.js";import"./LE52XOLX.js";import"./AIGTIFJD.js";import"./LD2QHCA2.js";import"./OSMOWMLE.js";import"./4NKGIEI7.js";import"./S2WQF5IV.js";import"./3ZUBNWMX.js";import"./4XKYQCQV.js";import"./S6PYX5OO.js";import"./DEDT5ZS3.js";import"./3PN2SI7I.js";import"./MY6LYJTC.js";import"./FN6N7TVF.js";import"./6IPYR7MB.js";import"./R4OMMKHF.js";import"./P6NKB6QR.js";function p(e){return["myContent","organization"].map(t=>l("selectContent.facets",t,"item",{user:e,collectionNames:["site"]}))}var u=(e,i,t)=>({type:"Layout",elements:[{labelKey:"selectContent.title",scope:"/properties/entityId",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:p(t.currentUser),facets:[{label:"{{selectContent.facets.sharing:translate}}",key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}]}},{type:"Section",labelKey:"callToAction.title",rule:n,options:{helperText:{labelKey:"callToAction.helperText"}},elements:[{scope:"/properties/callToActionText",type:"Control",options:{type:"textarea",rows:4}},{labelKey:"callToAction.alignment",scope:"/properties/callToActionAlign",type:"Control",options:{control:"hub-field-input-alignment"}}]},{type:"Section",labelKey:"followButton.title",options:{helperText:{labelKey:"followButton.helperText"}},rule:n,elements:[{labelKey:"followButton.buttonText",scope:"/properties/buttonText",type:"Control",options:{control:"hub-field-input-input"}},{labelKey:"followButton.unfollowButtonText",scope:"/properties/unfollowButtonText",type:"Control",options:{control:"hub-field-input-input"}},{labelKey:"followButton.alignment",scope:"/properties/buttonAlign",type:"Control",options:{control:"hub-field-input-alignment"}},{labelKey:"followButton.buttonStyle",scope:"/properties/buttonStyle",type:"Control",options:{control:"hub-field-input-select",labels:["{{followButton.solid:translate}}","{{followButton.outline:translate}}"]}}]}]}),n={effect:o.HIDE,condition:{scope:"/properties/entityId",schema:{const:[]}}};export{u as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import"./A6QKATD2.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/_discussions",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
3
+ v1.1.0-next.20250828.3 */
4
+ import"./P6NKB6QR.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/_discussions",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import c from"./FPNOAZMV.js";import b from"./POHZFGWD.js";import{a}from"./WBHZGQ22.js";import"./X5V5AZ3Q.js";import"./YFVTFHHS.js";import"./6NJ46TBU.js";import"./I6UOZCLY.js";import"./V7PUCGHN.js";import"./KIZ6DB22.js";import"./2FSPJE7Q.js";import"./M72RT7HM.js";import"./4X5NYKWT.js";import"./AKGLKYCK.js";import"./F2FLEL5E.js";import"./EWEKPBJH.js";import"./44QYZ3R3.js";import"./WF7TSEQJ.js";import"./2EF374XU.js";import"./MMY2DKGT.js";import"./4E7KLTF4.js";import"./YRHFGE4P.js";import"./K6YVVZZW.js";import"./B7ICGJ37.js";import"./7BO3ANFM.js";import{h as l,i as h}from"./JIZNITTB.js";import{a as m}from"./NY3225HU.js";import"./OPN7TLOX.js";import"./JMKECZSQ.js";import{b as u}from"./XEQGV3GM.js";import{E as p,h as d,i as r,o as n,r as f}from"./K2SZM3RN.js";import"./A6QKATD2.js";export default $arcgis.t(([,{a:b}])=>{var g=d`@layer{/** @license
3
+ v1.1.0-next.20250828.3 */
4
+ import c from"./EEB2GDV3.js";import b from"./QFLDQEZY.js";import{a}from"./TWHEILUF.js";import"./6OYFRBKR.js";import"./KL74F7RD.js";import"./YIY5UZCD.js";import"./MBOQJ5RM.js";import"./VNDUXCJD.js";import"./G7XVWOS2.js";import"./7PJWALIQ.js";import"./SF7WNX6Q.js";import"./TWU4IG5N.js";import"./6EMJRLR6.js";import"./SKDHYV2M.js";import"./XZJPMNRH.js";import"./YU7GLX6S.js";import"./HLKRAXOA.js";import"./WZXWVMIF.js";import"./53HOAC4M.js";import"./IUJF4CYI.js";import"./IEOZRY6N.js";import"./PA3XPHBO.js";import"./DR7BMOTL.js";import"./EBI4WZB5.js";import{h as l,i as h}from"./25NMRPJF.js";import{a as m}from"./UCOY7HIX.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";import{b as u}from"./JIAIW5D6.js";import{E as p,h as d,i as r,o as n,r as f}from"./TPPUAVMR.js";import"./P6NKB6QR.js";export default $arcgis.t(([,{a:b}])=>{var g=d`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{d as c}from"./4E7KLTF4.js";import{a as y}from"./B7ICGJ37.js";var u=t=>{let[[e,n],[r,o]]=t;return f(e,n,r,o)},g=t=>t.map(e=>e.join(", ")).join(", ");function f(t,e,n,r,o=4326){return{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:{wkid:o}}}function h(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var m={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function E(t){let e=t.portalSelf,n=e.defaultExtent,r=y(e,"helperServices.geometry.url");if(!r||!n)return Promise.resolve(m);let o=`${r}/project`,i={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),transformForward:!1,transformation:"",inSR:n.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(i.authentication=t.authentication),c(o,i).then(a=>{let x=a.geometries[0];return{xmin:x.xmin,ymin:x.ymin,xmax:x.xmax,ymax:x.ymax,spatialReference:{wkid:4326}}}).catch(a=>m)}var d=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);var S=t=>{let e=[].concat(...t);for(let n=0;n<e.length;n+=2){let[r,o]=[e[n],e[n+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},B=t=>{let e=1/0,n=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[i,a]of s)e=Math.min(e,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a);return[[e,n],[r,o]]};export{u as a,g as b,h as c,E as d,d as e,S as f,B as g};
3
+ v1.1.0-next.20250828.3 */
4
+ import{d as c}from"./IUJF4CYI.js";import{a as y}from"./DR7BMOTL.js";var u=t=>{let[[e,n],[r,o]]=t;return f(e,n,r,o)},g=t=>t.map(e=>e.join(", ")).join(", ");function f(t,e,n,r,o=4326){return{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:{wkid:o}}}function h(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var m={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function E(t){let e=t.portalSelf,n=e.defaultExtent,r=y(e,"helperServices.geometry.url");if(!r||!n)return Promise.resolve(m);let o=`${r}/project`,i={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),transformForward:!1,transformation:"",inSR:n.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(i.authentication=t.authentication),c(o,i).then(a=>{let x=a.geometries[0];return{xmin:x.xmin,ymin:x.ymin,xmax:x.xmax,ymax:x.ymax,spatialReference:{wkid:4326}}}).catch(a=>m)}var d=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);var S=t=>{let e=[].concat(...t);for(let n=0;n<e.length;n+=2){let[r,o]=[e[n],e[n+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},B=t=>{let e=1/0,n=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[i,a]of s)e=Math.min(e,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a);return[[e,n],[r,o]]};export{u as a,g as b,h as c,E as d,d as e,S as f,B as g};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import e from"./VWLK7PTP.js";import c from"./4DPKXEG2.js";import"./6ET6C4H7.js";import b from"./7LLYRYCX.js";import"./AQ2FH3YW.js";import{b as l}from"./BSLRHAFV.js";import"./JMKECZSQ.js";import{C as i,D as n,E as r,G as o,H as d,h as s,i as a}from"./K2SZM3RN.js";import"./A6QKATD2.js";export default $arcgis.t(([,,{t:p}])=>{var c=s`:host{display:block}:host .esri-legend__service{margin:0;padding:0}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},t=class extends r{constructor(){super(),this.layerCaption=i(),this.expanded=!0,this.isChild=!1,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption.value?.expanded}render(){return a`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service} ${e.groupLayer}`}><instant-apps-interactive-legend-layer-element-caption class=${o(p(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${this.isChild} ${n(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div class=${`${e.groupContent} ${this.expanded?"show":"hide"}`}><slot name=content></slot></div></div>`}};l("instant-apps-interactive-legend-group-legend-element",t);return t},b,c,e)
3
+ v1.1.0-next.20250828.3 */
4
+ import e from"./RGXX4JKW.js";import c from"./VJWUPMEH.js";import"./W55JNYI3.js";import b from"./V7ZDUHVZ.js";import"./ZWMO5JAP.js";import{b as l}from"./TVQM6PZH.js";import"./BC6QFEGG.js";import{C as i,D as n,E as r,G as o,H as d,h as s,i as a}from"./TPPUAVMR.js";import"./P6NKB6QR.js";export default $arcgis.t(([,,{t:p}])=>{var c=s`:host{display:block}:host .esri-legend__service{margin:0;padding:0}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},t=class extends r{constructor(){super(),this.layerCaption=i(),this.expanded=!0,this.isChild=!1,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption.value?.expanded}render(){return a`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service} ${e.groupLayer}`}><instant-apps-interactive-legend-layer-element-caption class=${o(p(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${this.isChild} ${n(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div class=${`${e.groupContent} ${this.expanded?"show":"hide"}`}><slot name=content></slot></div></div>`}};l("instant-apps-interactive-legend-group-legend-element",t);return t},b,c,e)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{a}from"./M72RT7HM.js";import{a as d}from"./F2FLEL5E.js";import{K as b,L as m}from"./MMY2DKGT.js";import"./4E7KLTF4.js";import{a as l}from"./B7ICGJ37.js";import{a as i}from"./K26FULAO.js";import"./FAW6QK4L.js";import"./7BO3ANFM.js";import"./4UJYA5HN.js";import"./DWP43GP4.js";import"./XQAJKZ6C.js";import"./PN5GHDUD.js";import"./LFYMUU2V.js";import"./P5ZMJP4V.js";import"./UKMDLZPH.js";import"./SJNT3XEY.js";import"./IIR2GL4O.js";import"./GGN2FCCL.js";import"./GK3DRXAZ.js";import"./ZTM3CDGV.js";import"./BX4JV3MY.js";import"./L4UUJ7LK.js";import"./VHUGNL45.js";import"./YLMBFPLK.js";import"./JMMK6ZMC.js";import"./MEGQ6KRM.js";import"./ALBAP5B2.js";import"./AUKH3VVM.js";import"./A6QKATD2.js";function h(e,r){let t=l(r,"portal")||l(r,"authentication.portal")||"www.arcgis.com",n=`${d(t)}/sharing/rest`;return b(e,Object.assign(Object.assign({},r),{portal:n}))}var _=async(e,r,t)=>{var n,o;let s,p=`{{${e}.notice.message:translate}}`,g=[{ariaLabel:`{{${e}.notice.actions.goToOrg:translate}}`,label:`{{${e}.notice.actions.goToOrg:translate}}`,href:`${t.portalUrl}/home/organization.html?tab=general#settings`,target:"_blank"}],c=await C(t),y=!((n=c.informationalBanner)===null||n===void 0)&&n.enabled?`{{${e}.fields.infoBanner.helperText:translate}}`:`{{${e}.fields.infoBanner.helperTextWhenDisabled:translate}}`,O=`{{${e}.fields.infoBanner.goToBannerConfig:translate}}`,$=`<calcite-link href=${t.portalUrl}/home/organization.html?tab=security#settings target="_blank" icon-end="launch">${O}</calcite-link>`;if(t.communityOrgId||t.enterpriseOrgId){let f=t.enterpriseOrgId?"goToStaffOrg":"goToCommunityOrg",u=await S(t),w=t.enterpriseOrgId||t.communityOrgId;s=t.trustedOrgs.find(T=>T.to.orgId===w).to.name,p=t.enterpriseOrgId?`{{${e}.notice.staffMessage:translate}}: ${s}`:`{{${e}.notice.communityMessage:translate}}: ${s}`,u&&g.push({ariaLabel:`{{${e}.notice.actions.${f}:translate}}`,label:`{{${e}.notice.actions.${f}:translate}}`,href:u,target:"_blank"})}return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.userSettings`,elements:[{type:"Control",scope:"/properties/settings/properties/features/properties/workspace",labelKey:`${e}.fields.workspacePreview.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.workspacePreview.helperText`}}}]},{type:"Section",labelKey:`${e}.sections.orgSettings.label`,options:{helperText:{label:`${t.portal.name}`}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin&&t.currentUser.orgId===t.portal.id]}],elements:[{type:"Notice",options:{notice:{configuration:{id:"user-org-settings-notice",noticeType:"notice",closable:!1,kind:"info",scale:"m"},title:`{{${e}.notice.title:translate}}`,message:p,autoShow:!0,actions:g}}},{type:"Section",labelKey:`${e}.sections.orgSettings.siteDefaults.label`,elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",labelKey:`${e}.fields.infoBanner.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{label:y}},rules:[{effect:i.DISABLE,conditions:[!(!((o=c.informationalBanner)===null||o===void 0)&&o.enabled)]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",options:{control:"calcite-link",layout:"inline-space-between",helperText:{label:$}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin]}]}]},{type:"Section",labelKey:`${e}.sections.orgSettings.signinSettings.label`,rules:[{effect:i.SHOW,conditions:[!!(t.isCommunityOrg&&t.isOrgAdmin)]}],options:{helperText:{labelKey:`${e}.sections.orgSettings.signinSettings.helperText`}},elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",labelKey:`${e}.fields.enableTermsAndConditions.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/termsAndConditions",labelKey:`${e}.fields.termsAndConditions.label`,options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",schema:{const:!0}}]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/enableSignupText",labelKey:`${e}.fields.enableSignupText.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/signupText",options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableSignupText",schema:{const:!0}}]}]}]}]}]}};async function S(e){let r=`${e.communityOrgUrl}/home/organization.html`;if(e.enterpriseOrgId){let n=await a(h,{})(e.enterpriseOrgId,e.requestOptions);n.urlKey?r=`https://${n.urlKey}.${n.customBaseUrl}/home/organization.html`:r=void 0}return r}async function C(e){return await a(m,{})(e.portal.id,{portal:e.sharingApiUrl})}export{C as _getPortalSettings,_ as buildUiSchema};
3
+ v1.1.0-next.20250828.3 */
4
+ import{a}from"./SF7WNX6Q.js";import{a as d}from"./SKDHYV2M.js";import{K as b,L as m}from"./53HOAC4M.js";import"./IUJF4CYI.js";import{a as l}from"./DR7BMOTL.js";import{a as i}from"./PHO74YB4.js";import"./IBBG4HBO.js";import"./EBI4WZB5.js";import"./XORZQSUS.js";import"./UKRHIEXC.js";import"./RABLP5NF.js";import"./7O64U4GK.js";import"./VNN6J764.js";import"./LE52XOLX.js";import"./AIGTIFJD.js";import"./LD2QHCA2.js";import"./OSMOWMLE.js";import"./4NKGIEI7.js";import"./S2WQF5IV.js";import"./3ZUBNWMX.js";import"./4XKYQCQV.js";import"./S6PYX5OO.js";import"./DEDT5ZS3.js";import"./3PN2SI7I.js";import"./MY6LYJTC.js";import"./FN6N7TVF.js";import"./6IPYR7MB.js";import"./R4OMMKHF.js";import"./P6NKB6QR.js";function h(e,r){let t=l(r,"portal")||l(r,"authentication.portal")||"www.arcgis.com",n=`${d(t)}/sharing/rest`;return b(e,Object.assign(Object.assign({},r),{portal:n}))}var _=async(e,r,t)=>{var n,o;let s,p=`{{${e}.notice.message:translate}}`,g=[{ariaLabel:`{{${e}.notice.actions.goToOrg:translate}}`,label:`{{${e}.notice.actions.goToOrg:translate}}`,href:`${t.portalUrl}/home/organization.html?tab=general#settings`,target:"_blank"}],c=await C(t),y=!((n=c.informationalBanner)===null||n===void 0)&&n.enabled?`{{${e}.fields.infoBanner.helperText:translate}}`:`{{${e}.fields.infoBanner.helperTextWhenDisabled:translate}}`,O=`{{${e}.fields.infoBanner.goToBannerConfig:translate}}`,$=`<calcite-link href=${t.portalUrl}/home/organization.html?tab=security#settings target="_blank" icon-end="launch">${O}</calcite-link>`;if(t.communityOrgId||t.enterpriseOrgId){let f=t.enterpriseOrgId?"goToStaffOrg":"goToCommunityOrg",u=await S(t),w=t.enterpriseOrgId||t.communityOrgId;s=t.trustedOrgs.find(T=>T.to.orgId===w).to.name,p=t.enterpriseOrgId?`{{${e}.notice.staffMessage:translate}}: ${s}`:`{{${e}.notice.communityMessage:translate}}: ${s}`,u&&g.push({ariaLabel:`{{${e}.notice.actions.${f}:translate}}`,label:`{{${e}.notice.actions.${f}:translate}}`,href:u,target:"_blank"})}return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.userSettings`,elements:[{type:"Control",scope:"/properties/settings/properties/features/properties/workspace",labelKey:`${e}.fields.workspacePreview.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.workspacePreview.helperText`}}}]},{type:"Section",labelKey:`${e}.sections.orgSettings.label`,options:{helperText:{label:`${t.portal.name}`}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin&&t.currentUser.orgId===t.portal.id]}],elements:[{type:"Notice",options:{notice:{configuration:{id:"user-org-settings-notice",noticeType:"notice",closable:!1,kind:"info",scale:"m"},title:`{{${e}.notice.title:translate}}`,message:p,autoShow:!0,actions:g}}},{type:"Section",labelKey:`${e}.sections.orgSettings.siteDefaults.label`,elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",labelKey:`${e}.fields.infoBanner.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{label:y}},rules:[{effect:i.DISABLE,conditions:[!(!((o=c.informationalBanner)===null||o===void 0)&&o.enabled)]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",options:{control:"calcite-link",layout:"inline-space-between",helperText:{label:$}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin]}]}]},{type:"Section",labelKey:`${e}.sections.orgSettings.signinSettings.label`,rules:[{effect:i.SHOW,conditions:[!!(t.isCommunityOrg&&t.isOrgAdmin)]}],options:{helperText:{labelKey:`${e}.sections.orgSettings.signinSettings.helperText`}},elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",labelKey:`${e}.fields.enableTermsAndConditions.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/termsAndConditions",labelKey:`${e}.fields.termsAndConditions.label`,options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",schema:{const:!0}}]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/enableSignupText",labelKey:`${e}.fields.enableSignupText.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/signupText",options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableSignupText",schema:{const:!0}}]}]}]}]}]}};async function S(e){let r=`${e.communityOrgUrl}/home/organization.html`;if(e.enterpriseOrgId){let n=await a(h,{})(e.enterpriseOrgId,e.requestOptions);n.urlKey?r=`https://${n.urlKey}.${n.customBaseUrl}/home/organization.html`:r=void 0}return r}async function C(e){return await a(m,{})(e.portal.id,{portal:e.sharingApiUrl})}export{C as _getPortalSettings,_ as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{e as c}from"./47FR5LH6.js";import{b as l}from"./RAZSWOEJ.js";var u=class{async getPopupTitle(t,p){this.arcade||await this._initModules();let r={};for(let[e,o]of Object.entries(t.attributes))r={...r,[`{${e.toUpperCase()}}`]:o};let a=t.layer,n=this._removeTags(a?.popupTemplate?.title);if(n.includes("{expression/expr")&&a?.popupTemplate?.expressionInfos!=null)for(let e=0;e<a.popupTemplate?.expressionInfos.length;e++){let o=a.popupTemplate.expressionInfos[e],i=this.arcade.createArcadeProfile("popup");try{let s=await(await this.arcade.createArcadeExecutor(o.expression,i)).executeAsync({$feature:t,$layer:a,$map:p});(s!=null||s!=="")&&(r[`{expression/${o.name}}`.toUpperCase()]=s)}catch(s){console.error(s);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach(e=>{let o=t.attributes[e.name],i=(a?.popupTemplate?.fieldInfos||[]).find(f=>f.fieldName.toLowerCase()===e.name.toLowerCase()),s=c(o,e.type,e?.domain,i?.format,this.intl);r[`{${e.name.toUpperCase()}}`]=s??o}),n?.replace(/{.*?}/g,e=>r[e.toUpperCase()]!=null?r[e.toUpperCase()]:"")}_removeTags(t){return t==null||t===""?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){let[t,p]=await l(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=p}};export{u as a};
3
+ v1.1.0-next.20250828.3 */
4
+ import{e as c}from"./K7GNVAIR.js";import{b as l}from"./FMH34SJ5.js";var u=class{async getPopupTitle(t,p){this.arcade||await this._initModules();let r={};for(let[e,o]of Object.entries(t.attributes))r={...r,[`{${e.toUpperCase()}}`]:o};let a=t.layer,n=this._removeTags(a?.popupTemplate?.title);if(n.includes("{expression/expr")&&a?.popupTemplate?.expressionInfos!=null)for(let e=0;e<a.popupTemplate?.expressionInfos.length;e++){let o=a.popupTemplate.expressionInfos[e],i=this.arcade.createArcadeProfile("popup");try{let s=await(await this.arcade.createArcadeExecutor(o.expression,i)).executeAsync({$feature:t,$layer:a,$map:p});(s!=null||s!=="")&&(r[`{expression/${o.name}}`.toUpperCase()]=s)}catch(s){console.error(s);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach(e=>{let o=t.attributes[e.name],i=(a?.popupTemplate?.fieldInfos||[]).find(f=>f.fieldName.toLowerCase()===e.name.toLowerCase()),s=c(o,e.type,e?.domain,i?.format,this.intl);r[`{${e.name.toUpperCase()}}`]=s??o}),n?.replace(/{.*?}/g,e=>r[e.toUpperCase()]!=null?r[e.toUpperCase()]:"")}_removeTags(t){return t==null||t===""?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){let[t,p]=await l(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=p}};export{u as a};
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{a as w}from"./DX455HUC.js";import"./X5V5AZ3Q.js";import{c as R,h as O,i as V}from"./WVPI3EEQ.js";import{d as n,e as h,g as $}from"./JIZNITTB.js";import{d as E}from"./5BTDYNM7.js";import{a as x}from"./NY3225HU.js";import"./OPN7TLOX.js";import"./JMKECZSQ.js";import{b as L}from"./XEQGV3GM.js";import{C as g,D as _,E as v,h as I,i as p,o as m,r as k}from"./K2SZM3RN.js";import"./A6QKATD2.js";var A=I`@layer{/** @license
3
+ v1.1.0-next.20250828.3 */
4
+ import{a as w}from"./OQWR2ZPL.js";import"./6OYFRBKR.js";import{c as R,h as O,i as V}from"./EOV3DBYK.js";import{d as n,e as h,g as $}from"./25NMRPJF.js";import{d as E}from"./WUZCQEEC.js";import{a as x}from"./UCOY7HIX.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";import{b as L}from"./JIAIW5D6.js";import{C as g,D as _,E as v,h as I,i as p,o as m,r as k}from"./TPPUAVMR.js";import"./P6NKB6QR.js";var A=I`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{b as t,c as e}from"./7BO3ANFM.js";var r=["hub:channel:create","hub:channel:edit"],p={type:"object",properties:{name:{type:"string"},blockWords:{type:"string",format:"blockWords"},publicConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{anonymous:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead],default:t},id:{type:"string"}}},authenticated:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},orgConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[e.channelOwner],default:e.channelOwner},id:{type:"string"}}}}}}}},groupConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite,e.channelManage],default:t},id:{type:"string"}}}}}}}},userConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{user:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},allowAsAnonymous:{type:"boolean",default:!1}},required:["name"]};export{r as a,p as b};
3
+ v1.1.0-next.20250828.3 */
4
+ import{b as t,c as e}from"./EBI4WZB5.js";var r=["hub:channel:create","hub:channel:edit"],p={type:"object",properties:{name:{type:"string"},blockWords:{type:"string",format:"blockWords"},publicConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{anonymous:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead],default:t},id:{type:"string"}}},authenticated:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},orgConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[e.channelOwner],default:e.channelOwner},id:{type:"string"}}}}}}}},groupConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite,e.channelManage],default:t},id:{type:"string"}}}}}}}},userConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{user:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},allowAsAnonymous:{type:"boolean",default:!1}},required:["name"]};export{r as a,p as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
3
+ v1.1.0-next.20250828.3 */
4
4
  var c=["Application","City Engine Web Scene","CityEngine Web Scene","Dashboard","Insights Page","Insights Workbook","Operation View","Web Mapping Application","StoryMap","Web Experience","Urban Model"],s=["CSV Collection","CSV","Feature Collection Template","Feature Collection","Feature Layer","Feature Service","File Geodatabase","GeoJSON","GeoJson","KML Collection","KML","Microsoft Excel","Raster Layer","Shapefile","Stream Service","Table"],l=["CAD Drawing","Document Link","Hub Page","Site Page","Image","iWork Keynote","iWork Numbers","iWork Pages","Microsoft Powerpoint","Microsoft Visio","Microsoft Word","Notebook","PDF","Pro Map","Report Template"],p=["Hub Event"],g=["Form","Quick Capture Project"],d=["Hub Initiative"],u=["Solution"],S=["Hub Initiative Template"],k=["Image Collection","Image Service","Map Service Layer","Map Service","Scene Service","Scene Layer","Vector Tile Service","Web Map Service","Web Map Tile Service","Web Map","Web Scene","WFS","WMS","WMTS"],b=["360 VR Experience","3DTiles Package","3DTiles Service","API Key","Activity","Addin Package","Administrative Report","AllSource Project","Analysis Model","Apache Parquet","App Bundle","AppBuilder Extension","AppBuilder Widget Package","Application Configuration","Application SDK","ArcGIS Pro Add In","ArcGIS Pro Configuration","ArcPad Package","Arcade Module","Basemap Package","Big Data Analytic","Big Data File Share","Code Attachment","Code Sample","Color Set","Compact Tile Package","Content Category Set","Data Package Collection","Data Pipeline","Data Store","Deep Learning Package","Deep Learning Studio Project","Desktop Add In","Desktop Application","Desktop Application Template","Desktop Style","Earth Configuration","Esri Classification Schema","Esri Classifier Definition","Excalibur Imagery Project","Experience Builder Widget","Experience Builder Widget Package","Explorer Add In","Explorer Layer","Explorer Map","Export Package","Featured Items","Feed","GML","GeoBIM Application","GeoBIM Project","GeoPackage","Geocoding Service","Geodata Service","Geoenrichment Service","Geometry Service","Geoprocessing Package","Geoprocessing Sample","Geoprocessing Service","Globe Document","Globe Service","Group Layer","IPS Configuration","Indoors Map Configuration","Insights Data Engineering Model","Insights Data Engineering Workbook","Insights Model","Insights Script","Insights Theme","Insights Workbook Package","Kernel Gateway Connection","Knowledge Graph","Knowledge Graph Layer","Knowledge Graph Web Investigation","Knowledge Studio Project","Layer","Layer File","Layer Package","Layer Template","Layout","Legend","Living Atlas Export Package","Locator Package","Map Area","Map Document","Map Package","Map Service Definition","Map Template","Media Layer","Mission","Mission Report","Mission Template","Mobile Application","Mobile Basemap Package","Mobile Map Package","Mobile Scene Package","Native Application","Native Application Installer","Native Application Template","Network Analysis Service","Notebook Code Snippet Library","Notebook Code Snippets","OGCFeatureServer","Operations Dashboard Add In","Operations Dashboard Extension","Oriented Imagery Catalog","Ortho Mapping Project","Ortho Mapping Template","Pro Presentation","Pro Project","Pro Report","Pro Report Template","Project Package","Project Template","Published Map","QuickCapture Project","Raster Function Template","Real Time Analytic","Reality Mapping Project","Reality Studio Project","Relational Database Connection","Replication Package","Rule Package","SMX Item","SMX Map","SMX Theme","SQLite Geodatabase","Scene Document","Scene Package","Scene Package Part","Server","Service Definition","Statistical Data Collection","StoryMap Theme","Style","Suitability Model","Survey123 Add In","Symbol Service","Symbol Set","Task File","Tile Package","Urban Project","User License Type Extension","Vector Tile Package","Video Service","Viewer Configuration","Visio Document","WCS","Web AppBuilder Widget","Web Experience Template","Web Link Chart","Windows Mobile Package","Windows Viewer Add In","Workflow","Workflow Manager Package","Workflow Manager Service","Workforce Project","netCDF"],m=["Hub Site Application","Site Application"],r=a=>{if(!a)return;let e=a.toLocaleLowerCase();return Object.keys(i).find(t=>i[t].some(n=>n.toLocaleLowerCase()===e))},o=a=>{if(!a)return;let e=a.toLocaleLowerCase();return i[e]},i={app:c,dataset:s,document:l,event:p,feedback:g,initiative:d,template:S,solution:u,map:k,other:b,site:m};function P(a){return{other:"content",solution:"template"}[a]||a}function y(a){let e;switch(a.toLowerCase()){case"image service":e="dataset";break;case"feature service":case"raster layer":e="map";break;case"microsoft excel":e="document";break;case"cad drawing":case"feature collection template":case"report template":e="content";break;case"hub project":e="project";break;case"discussion":e="discussion";break;case"event":e="event";break;case"hub initiative":e="initiative";break;case"organization":e="organization";break;default:e=P(r(a))}return e}function A(a){let e;switch(a.toLowerCase()){case"content":e=o("other"),e=e.concat(["CAD Drawing","Feature Collection Template","Report Template"]);break;case"template":e=[...o("template"),...o("solution")];break;case"dataset":e=o(a.toLowerCase()).filter(t=>t!=="Feature Collection Template"&&t!=="Raster Layer"&&t!=="Microsoft Excel"),e=e.concat("Image Service");break;case"map":e=o(a.toLowerCase()).filter(t=>t!=="Image Service"),e=e.concat(["Raster Layer"]);break;case"document":e=o(a.toLowerCase()).filter(t=>t!=="CAD Drawing"&&t!=="Report Template"),e=e.concat("Microsoft Excel");break;case"project":e=["Hub Project"];break;case"discussion":e=["Discussion"];break;case"initiative":e=["Hub Initiative"];break;default:e=o(a.toLowerCase())}return e}export{y as a,A as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{c as d}from"./K2SZM3RN.js";var r=class extends Event{constructor(t,e,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=n,this.subscribe=s??!1}};var a=class{constructor(t,e,n,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){let o=e;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=e,this.callback=n,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new r(this.context,this.host,this.t,this.subscribe))}};var u=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:n}]of this.subscriptions)e(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,e,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var l=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h=class extends u{constructor(t,e,n){super(e.context!==void 0?e.initialValue:n),this.onContextRequest=s=>{if(s.context!==this.context)return;let o=s.contextTarget??s.composedPath()[0];o!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,o,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let o=new Set;for(let[c,{consumerHost:x}]of this.subscriptions)o.has(c)||(o.add(c),x.dispatchEvent(new r(this.context,x,c,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new l(this.context,this.host))}};var A=i=>{let t=d(),e=new h(t.el,i);return t.addController(e),e},B=i=>{let t=d(),e=new a(t.el,i);return t.addController(e),e};var J="UserSession",K="isMobile",Q="Auth";export{A as a,B as b,J as c,K as d,Q as e};
3
+ v1.1.0-next.20250828.3 */
4
+ import{c as d}from"./TPPUAVMR.js";var r=class extends Event{constructor(t,e,n,s){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e,this.callback=n,this.subscribe=s??!1}};var a=class{constructor(t,e,n,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,c)=>{this.unsubscribe&&(this.unsubscribe!==c&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,c)),this.unsubscribe=c},this.host=t,e.context!==void 0){let o=e;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=e,this.callback=n,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new r(this.context,this.host,this.t,this.subscribe))}};var u=class{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){let n=e||!Object.is(t,this.o);this.o=t,n&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(let[e,{disposer:n}]of this.subscriptions)e(this.o,n)},t!==void 0&&(this.value=t)}addCallback(t,e,n){if(!n)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});let{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}};var l=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}},h=class extends u{constructor(t,e,n){super(e.context!==void 0?e.initialValue:n),this.onContextRequest=s=>{if(s.context!==this.context)return;let o=s.contextTarget??s.composedPath()[0];o!==this.host&&(s.stopPropagation(),this.addCallback(s.callback,o,s.subscribe))},this.onProviderRequest=s=>{if(s.context!==this.context||(s.contextTarget??s.composedPath()[0])===this.host)return;let o=new Set;for(let[c,{consumerHost:x}]of this.subscriptions)o.has(c)||(o.add(c),x.dispatchEvent(new r(this.context,x,c,!0)));s.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new l(this.context,this.host))}};var A=i=>{let t=d(),e=new h(t.el,i);return t.addController(e),e},B=i=>{let t=d(),e=new a(t.el,i);return t.addController(e),e};var J="UserSession",K="isMobile",Q="Auth";export{A as a,B as b,J as c,K as d,Q as e};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import"./A6QKATD2.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
3
+ v1.1.0-next.20250828.3 */
4
+ import"./P6NKB6QR.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
3
+ v1.1.0-next.20250828.3 */
4
4
  var s="calcite-mode-light",c="calcite-mode-dark";function a(e){let t=e?.closest(`.${c}, .${s}`);return t==null?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":t?.classList.contains(c)?"dark":"light"}export{a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{a as T,b as W,e as q,f as G}from"./CBO2RDTT.js";import c from"./Q3VSD5OV.js";import a from"./7LLYRYCX.js";import{a as L}from"./VY3IHGPV.js";import{a as F}from"./UC3D77A5.js";import{C as J}from"./AQ2FH3YW.js";import{b as V}from"./BSLRHAFV.js";import"./OPN7TLOX.js";import"./JMKECZSQ.js";import{A as C,E as N,G as h,h as E,i,k as R,o as O,t as A,u as j,v as z,w as b,x as y,y as H,z as M}from"./K2SZM3RN.js";import"./A6QKATD2.js";export default $arcgis.t(([,{c:k,e:S,f:r,g:K,h:w,j:D,l:Q,m:P}])=>{var X=(g,t,a)=>{let n=new Map;for(let e=t;e<=a;e++)n.set(g[e],e);return n},Y=j(class extends z{constructor(g){if(super(g),g.type!==A.CHILD)throw Error("repeat() can only be used in text expressions")}dt(g,t,a){let n;a===void 0?a=t:t!==void 0&&(n=t);let e=[],o=[],s=0;for(let l of g)e[s]=n?n(l,s):s,o[s]=a(l,s),s++;return{values:o,keys:e}}render(g,t,a){return this.dt(g,t,a).values}update(g,[t,a,n]){let e=M(g),{values:o,keys:s}=this.dt(t,a,n);if(!Array.isArray(e))return this.ut=s,o;let l=this.ut??=[],d=[],$,x,c=0,u=e.length-1,p=0,m=o.length-1;for(;c<=u&&p<=m;)if(e[c]===null)c++;else if(e[u]===null)u--;else if(l[c]===s[p])d[p]=y(e[c],o[p]),c++,p++;else if(l[u]===s[m])d[m]=y(e[u],o[m]),u--,m--;else if(l[c]===s[m])d[m]=y(e[c],o[m]),b(g,d[m+1],e[c]),c++,m--;else if(l[u]===s[p])d[p]=y(e[u],o[p]),b(g,e[c],e[u]),u--,p++;else if($===void 0&&($=X(s,p,m),x=X(l,c,u)),$.has(l[c]))if($.has(l[u])){let f=x.get(s[p]),I=f!==void 0?e[f]:null;if(I===null){let U=b(g,e[c]);y(U,o[p]),d[p]=U}else d[p]=y(I,o[p]),b(g,e[c],I),e[f]=null;p++}else C(e[u]),u--;else C(e[c]),c++;for(;p<=m;){let f=b(g,d[m+1]);y(f,o[p]),d[p++]=f}for(;c<=u;){let f=e[c++];f!==null&&C(f)}return this.ut=s,H(g,d),R}});var Z=E`:host{display:block}:host calcite-modal{--calcite-modal-content-padding: 0}:host .instant-apps-language-translator__header{display:flex;justify-content:space-between;width:100%}:host .instant-apps-language-translator__header-text{font-size:18px}:host .instant-apps-language-translator__saving-indicator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}:host .instant-apps-language-translator__writing-icon{display:flex;justify-content:center;align-items:center;margin-right:5px}:host .instant-apps-language-translator__close-button{width:175px}:host .instant-apps-language-translator__header-tip{padding:20px;max-width:45vw}:host .instant-apps-language-translator__top-bar{display:flex;width:100%;position:sticky;top:-2%;background:var(--calcite-color-foreground-1);z-index:1}:host .instant-apps-language-translator__top-bar calcite-label{--calcite-label-margin-bottom: 0;font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator__top-bar-section{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:.5%}:host .instant-apps-language-translator__user-lang-text{font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator__top-bar-section:first-child{display:flex;justify-content:space-between}:host .instant-apps-language-translator__top-bar-section:nth-child(2) calcite-select{width:255px}:host .instant-apps-language-translator__collapse-search-container{display:flex;justify-content:space-between}:host .instant-apps-language-translator__collapse-search-container calcite-input{width:300px;margin-left:30px}:host .instant-apps-language-translator__primary-content{display:flex;align-items:center}:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__close-button,:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__saving-indicator,:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__last-auto-save{margin-right:20px}.ck.ck-reset.ck-editor.ck-rounded-corners{margin-top:10px!important;margin-left:55px!important}.ck-editor__editable{height:70px!important;font-size:.875rem!important;line-height:1.375!important}.ck.ck-editor__editable_inline>:first-child,.ck.ck-editor__editable_inline>:last-child{--ck-spacing-large: .5rem !important}:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__close-button,:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__saving-indicator,:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__last-auto-save{margin-right:unset;margin-left:20px}`,v="instant-apps-language-translator",_={header:`${v}__header`,headerText:`${v}__header-text`,savingIndicator:`${v}__saving-indicator`,closeButton:`${v}__close-button`,headerTip:`${v}__header-tip`,topBar:`${v}__top-bar`,topBarSection:`${v}__top-bar-section`,collapseSearchContainer:`${v}__collapse-search-container`,userLangText:`${v}__user-lang-text`,lastItem:`${v}--last-item`,primaryContent:`${v}__primary-content`,lastAutoSave:`${v}__last-auto-save`},B=class extends N{constructor(){super(),this._messages=F({name:"instant-apps-language-translator",blocking:!0}),this.saving=!1,this.isCollapse=!0,this.open=!1,this.translatorDataUpdated=O(),this.listenOn(window,"translatorItemDataUpdated",this.handleT9nItemUpdate)}static{this.properties={saving:16,isCollapse:16,portalItem:0,appSettings:0,locales:0,open:5,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=Z}async batchWriteToPortalItemResource(t){r.set("saving",!0);try{let a=await this.getPortalItemResource();if(!a){r.set("saving",!1);return}let n=Date.now();r.set("lastSave",n);let e=[JSON.stringify({...t,lastSave:n})],o={type:"application/json"},s=new Blob(e,o);return await a.update(s),setTimeout(()=>r.set("saving",!1),1500),this.translatorDataUpdated.emit(),Promise.resolve()}catch(a){return console.error("Error writing to portal item resource: ",a),r.set("saving",!1),await Promise.reject(new Error("Failed to batch write to portal item resource"))}}async getPortalItemResource(){return r.get("portalItemResource")}async getTranslationData(){return r.get("portalItemResourceT9n")}async setTranslationData(t){r.set("portalItemResourceT9n",t)}load(){Q()}willUpdate(t){(t.has("locales")||t.has("appSettings"))&&(this.initUIData(),this.initSelectLanguage())}async loaded(){await this.initialize()}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}async initialize(){let[t]=await Promise.all([J()]);this.intl=t,this.initUIData(),await this.initPortalItemResourceT9nData(),this.initSelectLanguage()}initUIData(){let{appSettings:t,locales:a}=this,n=K(t,a);r.set("uiData",n)}initSelectLanguage(){if(!this.intl)return;let t=this.locales?.[0]?.locale??this.intl.getLocale(),a=r.get("currentLanguage");this.locales.filter(n=>n.locale===a).length===0&&r.set("currentLanguage",t)}async initPortalItemResourceT9nData(){try{let t=await G(this.portalItem);r.set("portalItemResource",t);let a=await q(t);r.set("lastSave",a.lastSave),r.set("portalItemResourceT9n",a??{})}catch{}}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;let t=new Map(S.uiData);w().forEach(a=>t.get(a).expanded=this.isCollapse),r.set("uiData",t)}onSuggestionSelect(t){let a=t.detail,n=new Map(S.uiData),e=w(),o=s=>{let l=n.get(s);if(s===a){l.selected=!0;return}l.selected=!1};e.forEach(o),r.set("uiData",n)}close(){this.open=!1}handleLanguageSelection(t){let a=t.target.value;r.set("currentLanguage",a)}render(){return i`${this.renderDialog()}${this.renderPopoverTip()}`}renderDialog(){return i`<calcite-dialog .open=${this.open} scale=l placement=cover @calciteDialogClose=${this.close}>${this.renderHeader()}${this.renderContent()}${this.renderPrimaryContent()}</calcite-dialog>`}renderPopoverTip(){return i`<calcite-popover label reference-element=headerTip placement=trailing auto-close closable><div class=${h(_.headerTip)}>${this._messages.headerTip}</div></calcite-popover>`}renderHeader(){return i`<header class=${h(_.header)} slot=header-content>${this.renderHeaderText()}</header>`}renderHeaderText(){return i`<div class=${h(_.headerText)}><span>${this._messages.header}</span><calcite-button id=headerTip appearance=transparent><calcite-icon .icon=${k.Popover} scale=s></calcite-icon></calcite-button></div>`}renderSavingIndicator(){return i`<div class=${h(_.savingIndicator)}><calcite-loader .label=${this._messages.saving} inline></calcite-loader><span>${this._messages.saving}</span></div>`}renderContent(){let t=D(this.locales);return i`<div>${this.renderTopBar()}${t?.length>0?this.renderUIData():this.renderNotice()}</div>`}renderTopBar(){return i`<div class=${h(_.topBar)}>${this.renderLeadingTopBarSection()}${this.renderTrailingTopBarSection()}</div>`}renderLeadingTopBarSection(){return i`<div class=${h(_.topBarSection)}>${this.renderUserLocale()}${this.renderCollapseSearchContainer()}</div>`}renderUserLocale(){let t=this._messages.languages,a=W(),n=t?.[a];return i`<div class=${h(_.userLangText)}>${n}</div>`}renderCollapseSearchContainer(){return i`<div class=${h(_.collapseSearchContainer)}>${this.renderExpandCollapseButton()}${this.renderSearch()}</div>`}renderExpandCollapseButton(){let{isCollapse:t,_messages:a}=this,n=t?a?.collapseAll:a?.expandAll;return i`<slot name=primary-custom-action></slot><slot name=secondary-custom-action></slot><calcite-button @click=${this.handleExpandCollapseAll} appearance=transparent .iconStart=${k.ExpandCollapse}>${n}</calcite-button>`}renderSearch(){return i`<instant-apps-language-translator-search @suggestionSelected=${this.onSuggestionSelect} .t9nPlaceholder=${this._messages.searchPlaceholder}></instant-apps-language-translator-search>`}renderTrailingTopBarSection(){return i`<div class=${h(_.topBarSection)}>${this.renderLanguageSelection()}<slot name=translation-custom-action></slot></div>`}renderLanguageSelection(){return i`<calcite-label layout=inline>${this._messages.translatedLanguage}<calcite-select label @calciteSelectChange=${this.handleLanguageSelection}>${this.renderTranslatedLangOptions()}</calcite-select></calcite-label>`}renderTranslatedLangOptions(){let t=r.get("uiData")?.get("locales"),a=D(t),n=Object.keys(T.partial);return Y(a,e=>`translated-lang-option-${e}`,e=>{let o=n.includes(e)?"partial":"full",s=T[o],{language:l,translated:d}=s[e],$=`${l} - ${d}`;return i`<calcite-option .value=${e}>${$}</calcite-option>`})}renderUIData(){if(!S?.uiData)return;let t=w();return i`<div>${t?.map((a,n)=>this.renderUIDataItem(a,n,t.length))}</div>`}renderNotice(){let t=this._messages.noLanguage;return i`<calcite-notice open icon=exclamation-mark-triangle kind=warning><div slot=title>${t?.title}</div><div slot=message>${t?.message}</div></calcite-notice>`}renderUIDataItem(t,a,n){let e=this.appSettings?.translatedLanguageLabels?.[S.currentLanguage],o=a===n-1?_.lastItem:"",s=this.appSettings.content.find(l=>l.id===t);return L(`${t}-${a}`,i`<instant-apps-language-translator-item class=${h(o)} .fieldName=${t} .translatedLanguageLabels=${e} .setting=${s} .userLocaleInputOnChangeCallback=${async(l,d)=>{try{await this.userLocaleInputOnChangeCallback(l,d);let $=r.get("portalItemResource");P($)}catch{}}} .translatedLocaleInputOnChangeCallback=${async(l,d,$,x)=>{try{await this.translatedLocaleInputOnChangeCallback(l,d,$,x),P(x)}catch{}}}></instant-apps-language-translator-item>`)}renderPrimaryContent(){return i`<div class=${h(_.primaryContent)} slot=footer-end>${r.get("saving")?this.renderSavingIndicator():null}${r.get("lastSave")?L("last-save",i`<span class=${h(_.lastAutoSave)}>${this._messages.lastAutoSave} ${this.intl.formatDate(r.get("lastSave"))}</span>`):null}<calcite-button @click=${()=>this.open=!1} class=${h(_.closeButton)}>${this._messages.close}</calcite-button></div>`}};V("instant-apps-language-translator",B);return B},a,c)
3
+ v1.1.0-next.20250828.3 */
4
+ import{a as T,b as W,e as q,f as G}from"./RGUJVKYG.js";import c from"./GEXFIXKG.js";import a from"./V7ZDUHVZ.js";import{a as L}from"./A5MN3FJK.js";import{a as F}from"./UFENTNOP.js";import{C as J}from"./ZWMO5JAP.js";import{b as V}from"./TVQM6PZH.js";import"./VTM2X5OM.js";import"./BC6QFEGG.js";import{A as C,E as N,G as h,h as E,i,k as R,o as O,t as A,u as j,v as z,w as b,x as y,y as H,z as M}from"./TPPUAVMR.js";import"./P6NKB6QR.js";export default $arcgis.t(([,{c:k,e:S,f:r,g:K,h:w,j:D,l:Q,m:P}])=>{var X=(g,t,a)=>{let n=new Map;for(let e=t;e<=a;e++)n.set(g[e],e);return n},Y=j(class extends z{constructor(g){if(super(g),g.type!==A.CHILD)throw Error("repeat() can only be used in text expressions")}dt(g,t,a){let n;a===void 0?a=t:t!==void 0&&(n=t);let e=[],o=[],s=0;for(let l of g)e[s]=n?n(l,s):s,o[s]=a(l,s),s++;return{values:o,keys:e}}render(g,t,a){return this.dt(g,t,a).values}update(g,[t,a,n]){let e=M(g),{values:o,keys:s}=this.dt(t,a,n);if(!Array.isArray(e))return this.ut=s,o;let l=this.ut??=[],d=[],$,x,c=0,u=e.length-1,p=0,m=o.length-1;for(;c<=u&&p<=m;)if(e[c]===null)c++;else if(e[u]===null)u--;else if(l[c]===s[p])d[p]=y(e[c],o[p]),c++,p++;else if(l[u]===s[m])d[m]=y(e[u],o[m]),u--,m--;else if(l[c]===s[m])d[m]=y(e[c],o[m]),b(g,d[m+1],e[c]),c++,m--;else if(l[u]===s[p])d[p]=y(e[u],o[p]),b(g,e[c],e[u]),u--,p++;else if($===void 0&&($=X(s,p,m),x=X(l,c,u)),$.has(l[c]))if($.has(l[u])){let f=x.get(s[p]),I=f!==void 0?e[f]:null;if(I===null){let U=b(g,e[c]);y(U,o[p]),d[p]=U}else d[p]=y(I,o[p]),b(g,e[c],I),e[f]=null;p++}else C(e[u]),u--;else C(e[c]),c++;for(;p<=m;){let f=b(g,d[m+1]);y(f,o[p]),d[p++]=f}for(;c<=u;){let f=e[c++];f!==null&&C(f)}return this.ut=s,H(g,d),R}});var Z=E`:host{display:block}:host calcite-modal{--calcite-modal-content-padding: 0}:host .instant-apps-language-translator__header{display:flex;justify-content:space-between;width:100%}:host .instant-apps-language-translator__header-text{font-size:18px}:host .instant-apps-language-translator__saving-indicator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}:host .instant-apps-language-translator__writing-icon{display:flex;justify-content:center;align-items:center;margin-right:5px}:host .instant-apps-language-translator__close-button{width:175px}:host .instant-apps-language-translator__header-tip{padding:20px;max-width:45vw}:host .instant-apps-language-translator__top-bar{display:flex;width:100%;position:sticky;top:-2%;background:var(--calcite-color-foreground-1);z-index:1}:host .instant-apps-language-translator__top-bar calcite-label{--calcite-label-margin-bottom: 0;font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator__top-bar-section{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:.5%}:host .instant-apps-language-translator__user-lang-text{font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator__top-bar-section:first-child{display:flex;justify-content:space-between}:host .instant-apps-language-translator__top-bar-section:nth-child(2) calcite-select{width:255px}:host .instant-apps-language-translator__collapse-search-container{display:flex;justify-content:space-between}:host .instant-apps-language-translator__collapse-search-container calcite-input{width:300px;margin-left:30px}:host .instant-apps-language-translator__primary-content{display:flex;align-items:center}:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__close-button,:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__saving-indicator,:host .instant-apps-language-translator__primary-content .instant-apps-language-translator__last-auto-save{margin-right:20px}.ck.ck-reset.ck-editor.ck-rounded-corners{margin-top:10px!important;margin-left:55px!important}.ck-editor__editable{height:70px!important;font-size:.875rem!important;line-height:1.375!important}.ck.ck-editor__editable_inline>:first-child,.ck.ck-editor__editable_inline>:last-child{--ck-spacing-large: .5rem !important}:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__close-button,:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__saving-indicator,:host:dir(rtl) .instant-apps-language-translator__primary-content .instant-apps-language-translator__last-auto-save{margin-right:unset;margin-left:20px}`,v="instant-apps-language-translator",_={header:`${v}__header`,headerText:`${v}__header-text`,savingIndicator:`${v}__saving-indicator`,closeButton:`${v}__close-button`,headerTip:`${v}__header-tip`,topBar:`${v}__top-bar`,topBarSection:`${v}__top-bar-section`,collapseSearchContainer:`${v}__collapse-search-container`,userLangText:`${v}__user-lang-text`,lastItem:`${v}--last-item`,primaryContent:`${v}__primary-content`,lastAutoSave:`${v}__last-auto-save`},B=class extends N{constructor(){super(),this._messages=F({name:"instant-apps-language-translator",blocking:!0}),this.saving=!1,this.isCollapse=!0,this.open=!1,this.translatorDataUpdated=O(),this.listenOn(window,"translatorItemDataUpdated",this.handleT9nItemUpdate)}static{this.properties={saving:16,isCollapse:16,portalItem:0,appSettings:0,locales:0,open:5,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=Z}async batchWriteToPortalItemResource(t){r.set("saving",!0);try{let a=await this.getPortalItemResource();if(!a){r.set("saving",!1);return}let n=Date.now();r.set("lastSave",n);let e=[JSON.stringify({...t,lastSave:n})],o={type:"application/json"},s=new Blob(e,o);return await a.update(s),setTimeout(()=>r.set("saving",!1),1500),this.translatorDataUpdated.emit(),Promise.resolve()}catch(a){return console.error("Error writing to portal item resource: ",a),r.set("saving",!1),await Promise.reject(new Error("Failed to batch write to portal item resource"))}}async getPortalItemResource(){return r.get("portalItemResource")}async getTranslationData(){return r.get("portalItemResourceT9n")}async setTranslationData(t){r.set("portalItemResourceT9n",t)}load(){Q()}willUpdate(t){(t.has("locales")||t.has("appSettings"))&&(this.initUIData(),this.initSelectLanguage())}async loaded(){await this.initialize()}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}async initialize(){let[t]=await Promise.all([J()]);this.intl=t,this.initUIData(),await this.initPortalItemResourceT9nData(),this.initSelectLanguage()}initUIData(){let{appSettings:t,locales:a}=this,n=K(t,a);r.set("uiData",n)}initSelectLanguage(){if(!this.intl)return;let t=this.locales?.[0]?.locale??this.intl.getLocale(),a=r.get("currentLanguage");this.locales.filter(n=>n.locale===a).length===0&&r.set("currentLanguage",t)}async initPortalItemResourceT9nData(){try{let t=await G(this.portalItem);r.set("portalItemResource",t);let a=await q(t);r.set("lastSave",a.lastSave),r.set("portalItemResourceT9n",a??{})}catch{}}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;let t=new Map(S.uiData);w().forEach(a=>t.get(a).expanded=this.isCollapse),r.set("uiData",t)}onSuggestionSelect(t){let a=t.detail,n=new Map(S.uiData),e=w(),o=s=>{let l=n.get(s);if(s===a){l.selected=!0;return}l.selected=!1};e.forEach(o),r.set("uiData",n)}close(){this.open=!1}handleLanguageSelection(t){let a=t.target.value;r.set("currentLanguage",a)}render(){return i`${this.renderDialog()}${this.renderPopoverTip()}`}renderDialog(){return i`<calcite-dialog .open=${this.open} scale=l placement=cover @calciteDialogClose=${this.close}>${this.renderHeader()}${this.renderContent()}${this.renderPrimaryContent()}</calcite-dialog>`}renderPopoverTip(){return i`<calcite-popover label reference-element=headerTip placement=trailing auto-close closable><div class=${h(_.headerTip)}>${this._messages.headerTip}</div></calcite-popover>`}renderHeader(){return i`<header class=${h(_.header)} slot=header-content>${this.renderHeaderText()}</header>`}renderHeaderText(){return i`<div class=${h(_.headerText)}><span>${this._messages.header}</span><calcite-button id=headerTip appearance=transparent><calcite-icon .icon=${k.Popover} scale=s></calcite-icon></calcite-button></div>`}renderSavingIndicator(){return i`<div class=${h(_.savingIndicator)}><calcite-loader .label=${this._messages.saving} inline></calcite-loader><span>${this._messages.saving}</span></div>`}renderContent(){let t=D(this.locales);return i`<div>${this.renderTopBar()}${t?.length>0?this.renderUIData():this.renderNotice()}</div>`}renderTopBar(){return i`<div class=${h(_.topBar)}>${this.renderLeadingTopBarSection()}${this.renderTrailingTopBarSection()}</div>`}renderLeadingTopBarSection(){return i`<div class=${h(_.topBarSection)}>${this.renderUserLocale()}${this.renderCollapseSearchContainer()}</div>`}renderUserLocale(){let t=this._messages.languages,a=W(),n=t?.[a];return i`<div class=${h(_.userLangText)}>${n}</div>`}renderCollapseSearchContainer(){return i`<div class=${h(_.collapseSearchContainer)}>${this.renderExpandCollapseButton()}${this.renderSearch()}</div>`}renderExpandCollapseButton(){let{isCollapse:t,_messages:a}=this,n=t?a?.collapseAll:a?.expandAll;return i`<slot name=primary-custom-action></slot><slot name=secondary-custom-action></slot><calcite-button @click=${this.handleExpandCollapseAll} appearance=transparent .iconStart=${k.ExpandCollapse}>${n}</calcite-button>`}renderSearch(){return i`<instant-apps-language-translator-search @suggestionSelected=${this.onSuggestionSelect} .t9nPlaceholder=${this._messages.searchPlaceholder}></instant-apps-language-translator-search>`}renderTrailingTopBarSection(){return i`<div class=${h(_.topBarSection)}>${this.renderLanguageSelection()}<slot name=translation-custom-action></slot></div>`}renderLanguageSelection(){return i`<calcite-label layout=inline>${this._messages.translatedLanguage}<calcite-select label @calciteSelectChange=${this.handleLanguageSelection}>${this.renderTranslatedLangOptions()}</calcite-select></calcite-label>`}renderTranslatedLangOptions(){let t=r.get("uiData")?.get("locales"),a=D(t),n=Object.keys(T.partial);return Y(a,e=>`translated-lang-option-${e}`,e=>{let o=n.includes(e)?"partial":"full",s=T[o],{language:l,translated:d}=s[e],$=`${l} - ${d}`;return i`<calcite-option .value=${e}>${$}</calcite-option>`})}renderUIData(){if(!S?.uiData)return;let t=w();return i`<div>${t?.map((a,n)=>this.renderUIDataItem(a,n,t.length))}</div>`}renderNotice(){let t=this._messages.noLanguage;return i`<calcite-notice open icon=exclamation-mark-triangle kind=warning><div slot=title>${t?.title}</div><div slot=message>${t?.message}</div></calcite-notice>`}renderUIDataItem(t,a,n){let e=this.appSettings?.translatedLanguageLabels?.[S.currentLanguage],o=a===n-1?_.lastItem:"",s=this.appSettings.content.find(l=>l.id===t);return L(`${t}-${a}`,i`<instant-apps-language-translator-item class=${h(o)} .fieldName=${t} .translatedLanguageLabels=${e} .setting=${s} .userLocaleInputOnChangeCallback=${async(l,d)=>{try{await this.userLocaleInputOnChangeCallback(l,d);let $=r.get("portalItemResource");P($)}catch{}}} .translatedLocaleInputOnChangeCallback=${async(l,d,$,x)=>{try{await this.translatedLocaleInputOnChangeCallback(l,d,$,x),P(x)}catch{}}}></instant-apps-language-translator-item>`)}renderPrimaryContent(){return i`<div class=${h(_.primaryContent)} slot=footer-end>${r.get("saving")?this.renderSavingIndicator():null}${r.get("lastSave")?L("last-save",i`<span class=${h(_.lastAutoSave)}>${this._messages.lastAutoSave} ${this.intl.formatDate(r.get("lastSave"))}</span>`):null}<calcite-button @click=${()=>this.open=!1} class=${h(_.closeButton)}>${this._messages.close}</calcite-button></div>`}};V("instant-apps-language-translator",B);return B},a,c)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{w as a}from"./MMY2DKGT.js";async function g(s,n,o){try{let e={q:`orgid:${n}`,countFields:"tags",countSize:200,authentication:o.authentication},i=await a(e),[r]=i.aggregations.counts.map(t=>({mode:"terms",field:t.fieldName,values:t.fieldValues})),c=s||[];return[...new Set([...r.values.map(t=>t.value),...c])].filter(t=>t).map(t=>({value:t}))}catch{return[]}}export{g as a};
3
+ v1.1.0-next.20250828.3 */
4
+ import{w as a}from"./53HOAC4M.js";async function g(s,n,o){try{let e={q:`orgid:${n}`,countFields:"tags",countSize:200,authentication:o.authentication},i=await a(e),[r]=i.aggregations.counts.map(t=>({mode:"terms",field:t.fieldName,values:t.fieldValues})),c=s||[];return[...new Set([...r.values.map(t=>t.value),...c])].filter(t=>t).map(t=>({value:t}))}catch{return[]}}export{g as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
3
+ v1.1.0-next.20250828.3 */
4
4
  function V(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function F(r){return Object.keys(r).some(e=>{let t=r[e];if(!t)return!1;switch(t&&t.toParam&&(t=t.toParam()),t.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function M(r){let e={};return Object.keys(r).forEach(t=>{var n,o;let s=r[t];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,a;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;a=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":a=JSON.stringify(s);break;case"Date":a=s.valueOf();break;case"Function":a=null;break;case"Boolean":a=s+"";break;default:a=s;break}(a||a===0||typeof a=="string"||Array.isArray(a))&&(e[t]=a)}),e}function Q(r,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(t=>Q(r,t)).join("&"):encodeURIComponent(r)+"="+encodeURIComponent(e)}function T(r){let e=M(r);return Object.keys(e).map(t=>Q(t,e[t])).join("&")}var X=globalThis.FormData,Oe=globalThis.File,Re=globalThis.Blob;function Y(r,e){let t=F(r)||e,n=M(r);if(t){let o=new X;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return T(r)}var k=class extends Error{constructor(e,t,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",t=t||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=t==="UNKNOWN_ERROR_CODE"?e:`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var de={noCorsDomains:[],crossOriginNoCorsDomains:{},pendingNoCorsRequests:{}},G="ARCGIS_REST_JS_NO_CORS";globalThis[G]||(globalThis[G]=Object.assign({},de));var g=globalThis[G];function B(r){let e=new URL(r);r=e.origin+e.pathname,e.search.includes("f=json")&&(r+="?f=json");let t=e.origin;return g.pendingNoCorsRequests[t]?g.pendingNoCorsRequests[t]:(g.pendingNoCorsRequests[t]=fetch(r,{mode:"no-cors",credentials:"include",cache:"no-store"}).then(n=>{g.noCorsDomains.indexOf(t)===-1&&g.noCorsDomains.push(t),g.crossOriginNoCorsDomains[t.toLowerCase()]=Date.now(),delete g.pendingNoCorsRequests[t]}).catch(n=>(delete g.pendingNoCorsRequests[t],Promise.reject(new Error(`no-cors request to ${t} failed`)))),g.pendingNoCorsRequests[t])}function Z(r){r.forEach(e=>{e=e.toLowerCase(),/^https?:\/\//.test(e)?L(e):(L("http://"+e),L("https://"+e))})}function L(r){let t=new URL(r).origin;g.noCorsDomains.indexOf(t)===-1&&g.noCorsDomains.push(t)}function z(r){let e=!1;if(g.noCorsDomains.length){let t=new URL(r).origin.toLowerCase();e=g.noCorsDomains.some(n=>t.includes(n))}return e}function ee(r){let e=!1;if(z(r)){let t=new URL(r).origin.toLowerCase(),n=g.crossOriginNoCorsDomains[t]||0;Date.now()-60*6e4>n&&(e=!0)}return e}function te(r){console&&console.warn&&console.warn.apply(console,[r])}function re(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}function ne(r,e){var t;if(!e&&!window||!r)return!1;{e=e||window;let n=(t=e.location)===null||t===void 0?void 0:t.origin;return r.startsWith(n)}}var J="@esri/arcgis-rest-js";function me(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var A=class extends k{constructor(e="AUTHENTICATION_ERROR",t="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,t,n,o,s),this.name="ArcGISAuthError",this.message=t==="AUTHENTICATION_ERROR_CODE"?e:`${t}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,t=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(a=>{let u=Object.assign(Object.assign({},this.options),{authentication:a});return oe(this.url,u)}).then(a=>{s(a)}).catch(a=>{a.name==="ArcGISAuthError"&&n<t?o(s,i):a.name===this.name&&a.message===this.message&&n>=t?i(this):i(a)})};return new Promise((s,i)=>{o(s,i)})}};function ge(r,e,t,n,o){if(r.code>=400){let{message:s,code:i}=r;throw new k(s,i,r,e,n)}if(r.error){let{message:s,code:i,messageCode:a}=r.error,u=a||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new A(s,u,r,e,n):new k(s,u,r,e,n)}if(r.status==="failed"||r.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(r.statusMessage).message,i=JSON.parse(r.statusMessage).code}catch{s=r.statusMessage||r.message}throw new k(s,i,r,e,n)}return r}function oe(r,e){let t=me(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},t),e),{params:Object.assign(Object.assign({},t.params),e.params),headers:Object.assign(Object.assign({},t.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),a=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};z(r)&&(u.credentials="include"),n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let E;if(typeof n.authentication=="string"){let c=n.authentication;E={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(c)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AATK")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(te("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else E=n.authentication;let p=r,d=!1;typeof window<"u"&&(d=ne(r));let R=!d&&ee(r);n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let S=Promise.resolve();return R&&(u.credentials="include",S=B(r)),S.then(()=>E?E.getToken(r).catch(c=>(c.url=r,c.options=n,a=c,Promise.resolve(""))):Promise.resolve("")).then(c=>{c.length&&(i.token=c),E&&E.getDomainCredentials&&(u.credentials=E.getDomainCredentials(r));let l={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(l["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let b=T(i)===""?r:r+"?"+T(i);n.maxUrlLength&&b.length>n.maxUrlLength||!n.maxUrlLength&&b.length>2e3||i.token&&n.hideToken?(u.method="POST",c.length&&n.hideToken&&(i.token=c,delete l["X-Esri-Authorization"])):r=b}let m=new RegExp("/items/.+/updateResources").test(r);return u.method==="POST"&&(u.body=Y(i,m)),u.headers=Object.assign(Object.assign({},l),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=J),!F(i)&&!m&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(r,u):re().then(({fetch:h})=>h(r,u))}).then(c=>{if(!c.ok)return c.json().then(l=>{let{status:m,statusText:h}=c,{message:b,details:D}=l.error,v=`${b}. ${D?D.join(" "):""}`.trim();throw new k(v,`HTTP ${m} ${h}`,l,r,n)}).catch(l=>{if(l.name==="ArcGISRequestError")throw l;let{status:m,statusText:h}=c;throw new k(h,`HTTP ${m}`,c,r,n)});if(s)return c;switch(i.f){case"json":return c.json();case"geojson":return c.json();case"html":return c.text();case"text":return c.text();default:return c.blob()}}).then(c=>{if((i.f==="json"||i.f==="geojson")&&!s){let l=ge(c,p,i,n,a);if(c&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(r)&&Array.isArray(c.authorizedCrossOriginNoCorsDomains)&&Z(c.authorizedCrossOriginNoCorsDomains),a){let m=r.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[m]={token:[],expires:new Date(Date.now()+86400*1e3)},a=null}return l}else return c})}function f(r,e={params:{f:"json"}}){let{request:t}=e,n=V(e,["request"]);return t?t(r,n):oe(r,n).catch(o=>o instanceof A&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function we(r){let[e,t]=r.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function se(r){return!r||r.length<=0?{}:r.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:n,value:o}=we(t);return e[n]=o,e},{})}var ie=300*1e3;function C(r,e){let t=e;return t.rawResponse=!1,f(r,t).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-ie),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-ie)),o})}function w(r){return typeof r!="string"||(r=r.trim(),r[r.length-1]==="/"&&(r=r.slice(0,-1))),r}var q=/^https?:\/\/(\S+)\.arcgis\.com.+/;function ae(r){return q.test(r)}function Ee(r){if(!q.test(r))return r;switch(H(r)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function H(r){if(!q.test(r))return null;let t=r.match(q)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function ce(r,e){let t=w(Ee(e)).replace(/https?:\/\//,""),n=w(r).replace(/https?:\/\//,"");return new RegExp(n,"i").test(t)}function ue(r,e){let t=ae(r),n=ae(e),o=H(r),s=H(e);return!!(t&&n&&o===s)}function le(r,e,t="https://www.arcgis.com/sharing/rest"){let n=`${t}/oauth2/validateAppAccess`;return f(n,{method:"POST",params:{f:"json",client_id:e,token:r}})}function rt(r,e,t){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},t),r);return o.params=e.reduce((s,i)=>((r[i]||typeof r[i]=="boolean"||typeof r[i]=="number"&&r[i]===0)&&(s[i]=r[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var x;(function(r){r.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",r.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",r.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",r.NOT_FEDERATED="NOT_FEDERATED",r.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(x||(x={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",t=x.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var N=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};var he;(function(r){r.ArcGISRequestError="ArcGISRequestError",r.ArcGISAuthError="ArcGISAuthError",r.ArcGISAccessDeniedError="ArcGISAccessDeniedError",r.ArcGISTokenRequestError="ArcGISTokenRequestError"})(he||(he={}));var P=class{constructor(e){this.portal=e.portal?w(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let t=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=f(t,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var K;(function(r){r.Success="Succeeded",r.Failed="Failed",r.Waiting="Waiting",r.Cancelled="Cancelled",r.Cancelling="Cancelling",r.New="New",r.Executing="Executing",r.Submitted="Submitted",r.Failure="Failure",r.TimedOut="TimedOut",r.Error="Error",r.Status="Etatus",r.Unknown="Unknown"})(K||(K={}));function fe(r){let e=`${w(r.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=r.token,n=r.clientId;delete r.portal,delete r.clientId,delete r.token;let o=Object.assign(Object.assign({},r),{httpMethod:"POST",params:{client_id:n,auth_token:t}});return f(e,o).then(s=>{if(!s.success)throw new k("Unable to revoke token",500,s,e,o);return s})}function $(r,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function pe(r,e=window){if(!e&&window&&(e=window),r&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-256",n).then(o=>$(new Uint8Array(o),e))}return Promise.resolve(null)}function W(r){!r&&window&&(r=window);let e=r.crypto.getRandomValues(new Uint8Array(32));return $(e)}function _e(r){return typeof r.userId=="string"||typeof r.expires=="number"}var O=class r extends P{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?w(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.federatedServers={},this.trustedDomains=[],e.server){let t=this.getServerRootUrl(e.server);this.federatedServers[t]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,t){!t&&window&&(t=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:a,popup:u,popupWindowFeatures:E,locale:p,params:d,style:R,pkce:S,state:c}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),l=c||W(t),m=`ARCGIS_REST_JS_AUTH_STATE_${s}`;t.localStorage.setItem(m,l);let h=`${w(n)}/oauth2/authorize`,b={client_id:s,response_type:S?"code":"token",expiration:i,redirect_uri:a,state:JSON.stringify({id:l,originalUrl:t.location.href}),locale:p,style:R};o!=="arcgis"&&(h=`${w(n)}/oauth2/social/authorize`,b.socialLoginProviderName=o,b.autoAccountCreateForSocial=!0);let D;if(S){let v=W(t),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;t.localStorage.setItem(U,v),D=pe(v,t).then(function(_){b.code_challenge_method=_?"S256":"plain",b.code_challenge=_||v})}else D=Promise.resolve();return D.then(()=>{if(h=`${h}?${T(b)}`,d&&(h=`${h}&${T(d)}`),u)return new Promise((v,U)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${s}`,_=>{if(_.detail.error==="access_denied"){let j=new N;return U(j),j}if(_.detail.errorMessage){let j=new A(_.detail.errorMessage,_.detail.error);return U(j),j}v(new r({clientId:s,portal:n,ssl:_.detail.ssl,token:_.detail.token,tokenExpires:_.detail.expires,username:_.detail.username,refreshToken:_.detail.refreshToken,refreshTokenExpires:_.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(h,"oauth-window",E),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=h})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,E=t.localStorage.getItem(u),p=se(i?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),d=p&&p.state?JSON.parse(p.state):void 0;function R(c,l,m){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:l,errorMessage:c}})),t.close();return}return m&&t.history.replaceState(t.history.state,"",m),l==="access_denied"?Promise.reject(new N):Promise.reject(new A(c,l))}function S(c,l){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign({},c)})),t.close();return}return t.history.replaceState(t.history.state,"",l),new r({clientId:o,portal:n,ssl:c.ssl,token:c.token,tokenExpires:c.expires,username:c.username,refreshToken:c.refreshToken,refreshTokenExpires:c.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!E||!d)return R("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(d.id!==E)return R("Saved client state did not match server sent state.","mismatched-auth-state");if(p.error){let c=p.error,l=p.error_description||"Unknown error";return R(l,c,d.originalUrl)}if(i&&p.code){let c=w(`${n}/oauth2/token/`),l=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,m=t.localStorage.getItem(l);return t.localStorage.removeItem(l),C(c,{httpMethod:"POST",params:{client_id:o,code_verifier:m,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:p.code}}).then(h=>S(Object.assign(Object.assign({},h),d),d.originalUrl)).catch(h=>R(h.originalMessage,h.code,d.originalUrl))}return!i&&p.access_token?Promise.resolve(S(Object.assign({token:p.access_token,expires:new Date(Date.now()+parseInt(p.expires_in,10)*1e3),ssl:p.ssl==="true",username:p.username},d),d.originalUrl)):R("Unknown error","oauth-error",d.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===t.parent&&i.data)try{return o(r.parentMessageHandler(i))}catch(a){return s(a)}},t.addEventListener("message",n,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(t.removeEventListener("message",n,!1),o))}static authorize(e,t){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};a&&(u.state=a);let E=`${n}/oauth2/authorize?${T(u)}`;t.writeHead(301,{Location:E}),t.end()}static exchangeAuthorizationCode(e,t){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return C(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:t}}).then(i=>new r({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let t=JSON.parse(e);return new r({clientId:t.clientId,refreshToken:t.refreshToken,refreshTokenExpires:t.refreshTokenExpires?new Date(t.refreshTokenExpires):void 0,username:t.username,password:t.password,token:t.token,tokenExpires:t.tokenExpires?new Date(t.tokenExpires):void 0,portal:t.portal,ssl:t.ssl,tokenDuration:t.tokenDuration,redirectUri:t.redirectUri,server:t.server})}static fromCredential(e,t){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return t.hasServer?new r({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new r({portal:w(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let t=e.data.credential;return _e(t)?r.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new r(t)}if(e.data.type==="arcgis:auth:error"){let t=new Error(e.data.error.message);throw t.name=e.data.error.name,t}else throw new Error("Unknown message type.")}static destroy(e){return fe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let t=new r(e);return t.getUser().then(()=>t)}static signIn(e){let t=new r(e);return t.getUser().then(()=>t)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let t=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=f(t,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,t){return ue(this.portal,e)?this.getFreshToken(t):new RegExp(this.portal,"i").test(e)?this.getFreshToken(t):this.getTokenForServer(e,t)}validateAppAccess(e){return this.getToken(this.portal).then(t=>le(t,e))}toJSON(){return{type:"ArcGISIdentityManager",clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,t){!t&&window&&(t=window),this._hostHandler=this.createPostMessageHandler(e),t.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",x.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=w(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=t.match(/(https?:\/\/)(.+)/),[i,...a]=s.split("/");return`${o}${i.toLowerCase()}/${a.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(t=>e.startsWith(t.toLowerCase()))?"include":"same-origin")}signOut(){return r.destroy(this)}createPostMessageHandler(e){return t=>{let n=e.indexOf(t.origin)>-1,o=t.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:a}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(i,t.origin)}}}getTokenForServer(e,t){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>f(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ce(s.owningSystemUrl,this.portal))return f(`${s.owningSystemUrl}/sharing/rest/info`,t);throw new y(`${e} is not federated with ${this.portal}.`,x.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,x.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,t){return f(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,x.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let t={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:J};return(this.server?f(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>f(n.authInfo.tokenServicesUrl,Object.assign({params:t},e))):f(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,x.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return C(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,x.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,t){return this._token=e,this._tokenExpires=t,this}exchangeRefreshToken(e){let t=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return C(`${this.portal}/oauth2/token`,t).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(t=>!t.startsWith("http://")).map(t=>t.startsWith("https://")?t:`https://${t}`)),this))}};function I(r){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new O(r)}I.beginOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),O.beginOAuth2(...r)};I.completeOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),r.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),O.completeOAuth2(...r)};I.fromParent=function(...r){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),O.fromParent(...r)};I.authorize=function(...r){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),O.authorize(...r)};I.exchangeAuthorizationCode=function(...r){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),O.exchangeAuthorizationCode(...r)};I.fromCredential=function(...r){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),O.fromCredential(...r)};I.deserialize=function(...r){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),O.deserialize(...r)};export{Y as a,te as b,A as c,f as d,rt as e,w as f,O as g};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import{k as a}from"./AKGLKYCK.js";var n={discussion:"/ember-arcgis-opendata-components/assets/images/placeholders/discussion.png",group:"/ember-arcgis-opendata-components/assets/images/placeholders/group.png",event:"/ember-arcgis-opendata-components/assets/images/placeholders/event.png",content:"/ember-arcgis-opendata-components/assets/images/placeholders/content.png"};function d(t,p,o,e,l){var i;let r=(i=n[e])!==null&&i!==void 0?i:n.content,c=a(r,l),s;return e==="group"?s={aspectRatio:1,sizeDescription:{labelKey:`${t}.fields._thumbnail.sizeDescription`}}:e==="event"?s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"},sources:["url"]}:s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"}},[{labelKey:e==="group"?`${t}.fields._thumbnail.label`:"shared.fields._thumbnail.label",scope:"/properties/_thumbnail",type:"Control",options:Object.assign({control:"hub-field-input-image-picker",imgSrc:o,defaultImgUrl:c,maxWidth:727,maxHeight:484},s)}]}export{d as a};
3
+ v1.1.0-next.20250828.3 */
4
+ import{k as a}from"./6EMJRLR6.js";var n={discussion:"/ember-arcgis-opendata-components/assets/images/placeholders/discussion.png",group:"/ember-arcgis-opendata-components/assets/images/placeholders/group.png",event:"/ember-arcgis-opendata-components/assets/images/placeholders/event.png",content:"/ember-arcgis-opendata-components/assets/images/placeholders/content.png"};function d(t,p,o,e,l){var i;let r=(i=n[e])!==null&&i!==void 0?i:n.content,c=a(r,l),s;return e==="group"?s={aspectRatio:1,sizeDescription:{labelKey:`${t}.fields._thumbnail.sizeDescription`}}:e==="event"?s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"},sources:["url"]}:s={aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields._thumbnail.sizeDescription"}},[{labelKey:e==="group"?`${t}.fields._thumbnail.label`:"shared.fields._thumbnail.label",scope:"/properties/_thumbnail",type:"Control",options:Object.assign({control:"hub-field-input-image-picker",imgSrc:o,defaultImgUrl:c,maxWidth:727,maxHeight:484},s)}]}export{d as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.1/esri/copyright.txt for details.
3
- v1.1.0-next.20250828.1 */
4
- import b from"./Q3VSD5OV.js";import a from"./7LLYRYCX.js";import{a as _}from"./VY3IHGPV.js";import{b as T}from"./BSLRHAFV.js";import"./JMKECZSQ.js";import{D as $,E as y,G as l,I as g,h as C,i as r,o as x,r as L}from"./K2SZM3RN.js";import"./A6QKATD2.js";export default $arcgis.t(([,{a:d,b:b,c:u,d:m,e:I,f:i,h:E,i:D,k:U}])=>{var R=C`@layer{:host{display:block}:host .instant-apps-language-translator-item{display:flex}:host .instant-apps-language-translator-item__section{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__top-row{display:flex;align-items:center;justify-content:space-between}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__label-container{display:flex;align-items:center}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__label{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator-item__section calcite-input{margin-top:10px;margin-left:55px}:host .instant-apps-language-translator-item__section--last-item{border-bottom:none}:host .instant-apps-language-translator-item__section--selected{background-color:#f1faff}:host .instant-apps-language-translator-item__section:first-child{margin-right:1%}:host .instant-apps-language-translator-item__ui-location-popover-content{display:inline-block;padding:10px;max-width:400px}:host .instant-apps-language-translator-item__ui-location-items{display:flex}:host .instant-apps-language-translator-item__ui-location-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}:host .instant-apps-language-translator-item__tip{display:inline-block;font-size:14px;line-height:22px}:host .instant-apps-language-translator-item__info-icon{color:var(--calcite-color-brand)}:host .instant-apps-language-translator-item__info-button{border:0;background-color:transparent;cursor:pointer}:host .instant-apps-language-translator-item__nested-input{margin-left:60px;margin-top:8px}:host .instant-apps-language-translator-item__nested-input calcite-input{margin-left:30px}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected calcite-action{--calcite-ui-icon-color: var(--calcite-color-text-inverse)}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected calcite-icon{color:var(--calcite-color-text-inverse)}:host(.instant-apps-language-translator--last-item) .instant-apps-language-translator-item__section{border-bottom:none}}`,p="instant-apps-language-translator-item",c={section:`${p}__section`,selected:`${p}__section--selected`,topRow:`${p}__top-row`,labelContainer:`${p}__label-container`,label:`${p}__label`,uiLocationPopoverContent:`${p}__ui-location-popover-content`,uiLocationItems:`${p}__ui-location-items`,uiLocationItem:`${p}__ui-location-item`,infoIcon:`${p}__info-icon`,infoButton:`${p}__info-button`,tip:`${p}__tip`,nestedInput:`${p}__nested-input`},v=class extends y{constructor(){super(...arguments),this.userInputs={},this.translatedInputs={},this.translatorItemDataUpdated=x()}static{this.properties={fieldName:1,translatedLanguageLabels:0,setting:0,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=R}static{this.shadowRootOptions=L}get isTextEditor(){return this.setting.type===b.TextEditor}get calciteMode(){return U()?m.Dark:m.Light}get hasNestedContent(){return!!this.setting?.content}get tipID(){return`${this.fieldName}goTo`}loaded(){this.isTextEditor&&i.onChange("uiData",()=>this.handleEditorCollapse())}handleInputRender(e,t,a){return this.getUIDataItem()?.expanded?this.hasNestedContent?this.renderNestedInputs(e):this.renderInput(e,t,a):null}getUIDataItem(){if(I.uiData)return I.uiData.get(this.fieldName)}updateT9nStore(e,t){let a=i.get("currentLanguage"),n={[e]:t},s=D(a,n);i.set("portalItemResourceT9n",s)}handleExpand(){let e=this.getUIDataItem();e.expanded=!e.expanded;let t=new Map(I.uiData);t.set(this.fieldName,e),i.set("uiData",t)}handleEditorCollapse(){if(!i.get("uiData")?.get(this.fieldName)?.expanded&&this.userEditorWrapper?.editorInstance&&this.translatedEditorWrapper?.editorInstance){let{userEditorWrapper:e,translatedEditorWrapper:t}=this,a=e.editorInstance.getData();e.value=a;let n=t.editorInstance.getData();t.value=n,e.editorInstance.destroy(),t.editorInstance.destroy()}}handleSelection(e){let t=new Map(I.uiData),a=E();a.forEach(n=>{let s=t?.get(n);s.selected=!1}),a.forEach(n=>{let s=e?.target?.getAttribute("data-field-name");if(n===s){let o=t?.get(n);o.selected=!0}}),i.set("uiData",t)}getUILocation(){let e=this.getUIDataItem(),{uiLocation:t,userLocaleData:a}=e,{section:n,subsection:s}=t,o=[n.label,s.label,a.label].filter(h=>!!h);return o.map((h,f)=>r`<span class=${l(c.uiLocationItem)}><span>${h}</span>${f!==o.length-1?r`<calcite-icon icon=chevron-right scale=s></calcite-icon>`:null}</span>`)}getTip(){let e=this.getUIDataItem(),{tip:t}=e;return t}copySelection(e,t){this.setting.type===b.TextEditor?this.copyTextEditorContent(e):this.copyCalciteInputContent(t,e)}copyTextEditorContent(e){let t=e===d.User?this.userEditorWrapper?.editorInstance:this.translatedEditorWrapper?.editorInstance,a=50;setTimeout(()=>{this.selectContent(t),setTimeout(()=>this.selectContent(t),a)},a),this.copyContent(t)}selectContent(e){e.editing.view.focus();let{model:t}=e,a=t.document.getRoot();if(a){let n=t.createRangeIn(a);t.change(s=>s.setSelection(n))}}copyContent(e){let t=e.getData(),a=document.createElement("div");a.contentEditable="true",a.innerHTML=t,document.body.appendChild(a);let n=document.createRange();n.selectNodeContents(a);let s=window.getSelection();s?.removeAllRanges(),s?.addRange(n),document.execCommand("copy"),document.body.removeChild(a)}copyCalciteInputContent(e,t){let a=t===d.User?this.userInputs[e]:this.translatedInputs[e];if(a){a.selectText();let n=a.value;navigator.clipboard.writeText(n)}}setEditor(e,t){t&&(e===d.User?this.userEditorWrapper=t:this.translatedEditorWrapper=t)}async handleUserInputChange(e){i.set("saving",!0);try{let t=e.target,a=t.id,n=t.value,s=this.getUIDataItem();s.userLocaleData.value=n,await this.userLocaleInputOnChangeCallback(a,n),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleUserTextEditorChange(e){i.set("saving",!0);try{let t=e.detail,a=e.target.id,n=this.getUIDataItem();n.userLocaleData.value=t,await this.userLocaleInputOnChangeCallback(a,t),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleTranslatedInputChange(e){i.set("saving",!0);try{let t=e.composedPath()[0],a=t.id;this.updateT9nStore(a,t.value);let{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),o=e.target.value;await this.translatedLocaleInputOnChangeCallback(a,o,n,s),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}async handleTranslatedTextEditorChange(e){i.set("saving",!0);try{let t=e.target.id;this.updateT9nStore(t,e.detail);let{locale:a,resource:n}=this.getTranslatedLocaleCallbackData(),s=e.detail;await this.translatedLocaleInputOnChangeCallback(t,s,a,n),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}handleTextEditorDataChange(e,t){e===d.User?this.handleUserTextEditorChange(t):this.handleTranslatedTextEditorChange(t)}getTranslatedLocaleCallbackData(){let e=i.get("currentLanguage"),t=i.get("portalItemResource");return{locale:e,resource:t}}getIcon(e){switch((e??this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}render(){return"content"in this.setting&&this.setting.content?.every(e=>e?.content?.length===0)?(this.el.classList.remove(this.calciteMode),""):(this.el.classList.add(this.calciteMode),r`${this.renderBase()}${this.renderPopover()}`)}renderBase(){return r`<div class=${l(p)}>${this.renderUserLocaleSection()}${this.renderTranslatedLanguageSection()}</div>`}renderPopover(){let e=this.getTip();return r`<calcite-popover .referenceElement=${this.tipID} label auto-close placement=trailing closable><span class=${l(c.uiLocationPopoverContent)}><span class=${l(c.uiLocationItems)}>${this.getUILocation()}</span>${e?r`<span class=${l(c.tip)}>${e}</span>`:null}</span></calcite-popover>`}renderUserLocaleSection(){let e=this.getUIDataItem(),t=e?.userLocaleData,a=e?.selected?` ${c.selected}`:"",n=t?.label,s=t?.value,o=this.setting.id;return r`<div class=${`${c.section}${a}`}>${this.renderItemHeader(d.User,n,o)}${this.handleInputRender(d.User,s,o)}</div>`}renderTranslatedLanguageSection(){let e=this.getUIDataItem(),t=this.setting.id,a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=this.translatedLanguageLabels?.[this.fieldName],o=typeof n=="object"&&n!==null&&a in n&&typeof n!="number"&&!Array.isArray(n)?String(n[a]?.[t]??""):"",h=e?.selected?` ${c.selected}`:"";return r`<div class=${`${c.section}${h}`}>${this.renderItemHeader(d.Translation,s,t)}${this.handleInputRender(d.Translation,o,t)}</div>`}renderNestedInputs(e,t){let a=t??this.setting,{content:n}=a;return n?.map(s=>"content"in s?this.renderNestedInputs(e,s):this.renderNestedInput(e,s)).filter(s=>s!==void 0)}renderNestedInput(e,t){let a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=t?.id,o=n?.[a],h=typeof o=="object"&&o!==null?o[s]:void 0,{label:f,value:w,id:k}=t,S=e===d.Translation?this.translatedLanguageLabels?.[k]:f,N=e===d.User?w:h??"";return r`<div class=${l(c.nestedInput)}>${this.renderItemHeader(e,S,s,t)}${this.renderInput(e,String(N),s,t)}</div>`}renderItemHeader(e,t,a,n){let s=!this.hasNestedContent||!!n;return r`<div class=${l(c.topRow)}>${this.renderItemHeaderLabel(e,t,n)}${s?this.renderCopyButton(e,a):null}</div>`}renderItemHeaderLabel(e,t,a){let n=e===d.User&&!a;return r`<div class=${l(c.labelContainer)}>${a?null:this.renderExpandCollapseButton()}<calcite-icon .icon=${this.getIcon(a)} scale=s></calcite-icon><span class=${l(c.label)}>${t}</span>${n?this.renderInfoButton():null}</div>`}renderExpandCollapseButton(){let e=this.getUIDataItem()?.expanded?u.Expanded:u.Collapsed;return r`<calcite-action @click=${this.handleExpand} .icon=${e} scale=s appearance=transparent text></calcite-action>`}renderInfoButton(){return r`<button id=${this.tipID??g} class=${l(c.infoButton)}><calcite-icon class=${l(c.infoIcon)} .icon=${u.Popover} scale=s></calcite-icon></button>`}renderCopyButton(e,t){return r`<calcite-action class=${l(this.calciteMode)} @click=${this.copySelection.bind(this,e,t)} slot=action .icon=${u.Copy} appearance=transparent text></calcite-action>`}renderInput(e,t,a,n){let s=n??this.setting;return s.type==="string"||s.type==="textarea"?e===d.User?this.renderUserLocaleInput(t,a):this.renderTranslatedLanguageInput(t,a):this.renderTextEditor(t,e,a)}renderUserLocaleInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleUserInputChange} ${$(a=>{a&&(this.userInputs[t]=a)})}></calcite-input>`)}renderTranslatedLanguageInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleTranslatedInputChange} ${$(a=>{a&&(this.translatedInputs[t]=a)})}></calcite-input>`)}renderTextEditor(e,t,a){let n={toolbar:[]};return r`<instant-apps-ckeditor-wrapper id=${a??g} @dataChanged=${this.handleTextEditorDataChange.bind(this,t)} @isFocused=${this.handleSelection} .value=${e??""} data-field-name=${this.fieldName??g} .config=${n} ${$(this.setEditor.bind(this,t))}></instant-apps-ckeditor-wrapper>`}};T("instant-apps-language-translator-item",v);return v},a,b)
3
+ v1.1.0-next.20250828.3 */
4
+ import b from"./GEXFIXKG.js";import a from"./V7ZDUHVZ.js";import{a as _}from"./A5MN3FJK.js";import{b as T}from"./TVQM6PZH.js";import"./BC6QFEGG.js";import{D as $,E as y,G as l,I as g,h as C,i as r,o as x,r as L}from"./TPPUAVMR.js";import"./P6NKB6QR.js";export default $arcgis.t(([,{a:d,b:b,c:u,d:m,e:I,f:i,h:E,i:D,k:U}])=>{var R=C`@layer{:host{display:block}:host .instant-apps-language-translator-item{display:flex}:host .instant-apps-language-translator-item__section{padding:10px;border-bottom:1px solid var(--calcite-color-border-1);background-color:var(--calcite-color-foreground-2);width:49%}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__top-row{display:flex;align-items:center;justify-content:space-between}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__label-container{display:flex;align-items:center}:host .instant-apps-language-translator-item__section .instant-apps-language-translator-item__label{display:inline-block;margin-left:10px;font-size:14px;font-weight:var(--calcite-font-weight-medium)}:host .instant-apps-language-translator-item__section calcite-input{margin-top:10px;margin-left:55px}:host .instant-apps-language-translator-item__section--last-item{border-bottom:none}:host .instant-apps-language-translator-item__section--selected{background-color:#f1faff}:host .instant-apps-language-translator-item__section:first-child{margin-right:1%}:host .instant-apps-language-translator-item__ui-location-popover-content{display:inline-block;padding:10px;max-width:400px}:host .instant-apps-language-translator-item__ui-location-items{display:flex}:host .instant-apps-language-translator-item__ui-location-item{display:flex;align-items:center;font-weight:var(--calcite-font-weight-medium);font-size:14px}:host .instant-apps-language-translator-item__tip{display:inline-block;font-size:14px;line-height:22px}:host .instant-apps-language-translator-item__info-icon{color:var(--calcite-color-brand)}:host .instant-apps-language-translator-item__info-button{border:0;background-color:transparent;cursor:pointer}:host .instant-apps-language-translator-item__nested-input{margin-left:60px;margin-top:8px}:host .instant-apps-language-translator-item__nested-input calcite-input{margin-left:30px}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected{background-color:#f1faff;background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected calcite-action{--calcite-ui-icon-color: var(--calcite-color-text-inverse)}:host(.calcite-mode-dark) .instant-apps-language-translator-item__section--selected calcite-icon{color:var(--calcite-color-text-inverse)}:host(.instant-apps-language-translator--last-item) .instant-apps-language-translator-item__section{border-bottom:none}}`,p="instant-apps-language-translator-item",c={section:`${p}__section`,selected:`${p}__section--selected`,topRow:`${p}__top-row`,labelContainer:`${p}__label-container`,label:`${p}__label`,uiLocationPopoverContent:`${p}__ui-location-popover-content`,uiLocationItems:`${p}__ui-location-items`,uiLocationItem:`${p}__ui-location-item`,infoIcon:`${p}__info-icon`,infoButton:`${p}__info-button`,tip:`${p}__tip`,nestedInput:`${p}__nested-input`},v=class extends y{constructor(){super(...arguments),this.userInputs={},this.translatedInputs={},this.translatorItemDataUpdated=x()}static{this.properties={fieldName:1,translatedLanguageLabels:0,setting:0,userLocaleInputOnChangeCallback:0,translatedLocaleInputOnChangeCallback:0}}static{this.styles=R}static{this.shadowRootOptions=L}get isTextEditor(){return this.setting.type===b.TextEditor}get calciteMode(){return U()?m.Dark:m.Light}get hasNestedContent(){return!!this.setting?.content}get tipID(){return`${this.fieldName}goTo`}loaded(){this.isTextEditor&&i.onChange("uiData",()=>this.handleEditorCollapse())}handleInputRender(e,t,a){return this.getUIDataItem()?.expanded?this.hasNestedContent?this.renderNestedInputs(e):this.renderInput(e,t,a):null}getUIDataItem(){if(I.uiData)return I.uiData.get(this.fieldName)}updateT9nStore(e,t){let a=i.get("currentLanguage"),n={[e]:t},s=D(a,n);i.set("portalItemResourceT9n",s)}handleExpand(){let e=this.getUIDataItem();e.expanded=!e.expanded;let t=new Map(I.uiData);t.set(this.fieldName,e),i.set("uiData",t)}handleEditorCollapse(){if(!i.get("uiData")?.get(this.fieldName)?.expanded&&this.userEditorWrapper?.editorInstance&&this.translatedEditorWrapper?.editorInstance){let{userEditorWrapper:e,translatedEditorWrapper:t}=this,a=e.editorInstance.getData();e.value=a;let n=t.editorInstance.getData();t.value=n,e.editorInstance.destroy(),t.editorInstance.destroy()}}handleSelection(e){let t=new Map(I.uiData),a=E();a.forEach(n=>{let s=t?.get(n);s.selected=!1}),a.forEach(n=>{let s=e?.target?.getAttribute("data-field-name");if(n===s){let o=t?.get(n);o.selected=!0}}),i.set("uiData",t)}getUILocation(){let e=this.getUIDataItem(),{uiLocation:t,userLocaleData:a}=e,{section:n,subsection:s}=t,o=[n.label,s.label,a.label].filter(h=>!!h);return o.map((h,f)=>r`<span class=${l(c.uiLocationItem)}><span>${h}</span>${f!==o.length-1?r`<calcite-icon icon=chevron-right scale=s></calcite-icon>`:null}</span>`)}getTip(){let e=this.getUIDataItem(),{tip:t}=e;return t}copySelection(e,t){this.setting.type===b.TextEditor?this.copyTextEditorContent(e):this.copyCalciteInputContent(t,e)}copyTextEditorContent(e){let t=e===d.User?this.userEditorWrapper?.editorInstance:this.translatedEditorWrapper?.editorInstance,a=50;setTimeout(()=>{this.selectContent(t),setTimeout(()=>this.selectContent(t),a)},a),this.copyContent(t)}selectContent(e){e.editing.view.focus();let{model:t}=e,a=t.document.getRoot();if(a){let n=t.createRangeIn(a);t.change(s=>s.setSelection(n))}}copyContent(e){let t=e.getData(),a=document.createElement("div");a.contentEditable="true",a.innerHTML=t,document.body.appendChild(a);let n=document.createRange();n.selectNodeContents(a);let s=window.getSelection();s?.removeAllRanges(),s?.addRange(n),document.execCommand("copy"),document.body.removeChild(a)}copyCalciteInputContent(e,t){let a=t===d.User?this.userInputs[e]:this.translatedInputs[e];if(a){a.selectText();let n=a.value;navigator.clipboard.writeText(n)}}setEditor(e,t){t&&(e===d.User?this.userEditorWrapper=t:this.translatedEditorWrapper=t)}async handleUserInputChange(e){i.set("saving",!0);try{let t=e.target,a=t.id,n=t.value,s=this.getUIDataItem();s.userLocaleData.value=n,await this.userLocaleInputOnChangeCallback(a,n),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleUserTextEditorChange(e){i.set("saving",!0);try{let t=e.detail,a=e.target.id,n=this.getUIDataItem();n.userLocaleData.value=t,await this.userLocaleInputOnChangeCallback(a,t),i.set("saving",!1)}catch{i.set("saving",!1)}}async handleTranslatedInputChange(e){i.set("saving",!0);try{let t=e.composedPath()[0],a=t.id;this.updateT9nStore(a,t.value);let{locale:n,resource:s}=this.getTranslatedLocaleCallbackData(),o=e.target.value;await this.translatedLocaleInputOnChangeCallback(a,o,n,s),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}async handleTranslatedTextEditorChange(e){i.set("saving",!0);try{let t=e.target.id;this.updateT9nStore(t,e.detail);let{locale:a,resource:n}=this.getTranslatedLocaleCallbackData(),s=e.detail;await this.translatedLocaleInputOnChangeCallback(t,s,a,n),setTimeout(()=>i.set("saving",!1),1500),this.translatorItemDataUpdated.emit()}catch(t){console.error("Error writing to portal item resource: ",t),i.set("saving",!1)}}handleTextEditorDataChange(e,t){e===d.User?this.handleUserTextEditorChange(t):this.handleTranslatedTextEditorChange(t)}getTranslatedLocaleCallbackData(){let e=i.get("currentLanguage"),t=i.get("portalItemResource");return{locale:e,resource:t}}getIcon(e){switch((e??this.setting).stringType){case"title":return u.Title;case"subtitle":return u.Subtitle;case"text":return u.Text;case"button":return u.Button;case"string":return u.String;default:return u.SettingIndicator}}render(){return"content"in this.setting&&this.setting.content?.every(e=>e?.content?.length===0)?(this.el.classList.remove(this.calciteMode),""):(this.el.classList.add(this.calciteMode),r`${this.renderBase()}${this.renderPopover()}`)}renderBase(){return r`<div class=${l(p)}>${this.renderUserLocaleSection()}${this.renderTranslatedLanguageSection()}</div>`}renderPopover(){let e=this.getTip();return r`<calcite-popover .referenceElement=${this.tipID} label auto-close placement=trailing closable><span class=${l(c.uiLocationPopoverContent)}><span class=${l(c.uiLocationItems)}>${this.getUILocation()}</span>${e?r`<span class=${l(c.tip)}>${e}</span>`:null}</span></calcite-popover>`}renderUserLocaleSection(){let e=this.getUIDataItem(),t=e?.userLocaleData,a=e?.selected?` ${c.selected}`:"",n=t?.label,s=t?.value,o=this.setting.id;return r`<div class=${`${c.section}${a}`}>${this.renderItemHeader(d.User,n,o)}${this.handleInputRender(d.User,s,o)}</div>`}renderTranslatedLanguageSection(){let e=this.getUIDataItem(),t=this.setting.id,a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=this.translatedLanguageLabels?.[this.fieldName],o=typeof n=="object"&&n!==null&&a in n&&typeof n!="number"&&!Array.isArray(n)?String(n[a]?.[t]??""):"",h=e?.selected?` ${c.selected}`:"";return r`<div class=${`${c.section}${h}`}>${this.renderItemHeader(d.Translation,s,t)}${this.handleInputRender(d.Translation,o,t)}</div>`}renderNestedInputs(e,t){let a=t??this.setting,{content:n}=a;return n?.map(s=>"content"in s?this.renderNestedInputs(e,s):this.renderNestedInput(e,s)).filter(s=>s!==void 0)}renderNestedInput(e,t){let a=i.get("currentLanguage"),n=i.get("portalItemResourceT9n"),s=t?.id,o=n?.[a],h=typeof o=="object"&&o!==null?o[s]:void 0,{label:f,value:w,id:k}=t,S=e===d.Translation?this.translatedLanguageLabels?.[k]:f,N=e===d.User?w:h??"";return r`<div class=${l(c.nestedInput)}>${this.renderItemHeader(e,S,s,t)}${this.renderInput(e,String(N),s,t)}</div>`}renderItemHeader(e,t,a,n){let s=!this.hasNestedContent||!!n;return r`<div class=${l(c.topRow)}>${this.renderItemHeaderLabel(e,t,n)}${s?this.renderCopyButton(e,a):null}</div>`}renderItemHeaderLabel(e,t,a){let n=e===d.User&&!a;return r`<div class=${l(c.labelContainer)}>${a?null:this.renderExpandCollapseButton()}<calcite-icon .icon=${this.getIcon(a)} scale=s></calcite-icon><span class=${l(c.label)}>${t}</span>${n?this.renderInfoButton():null}</div>`}renderExpandCollapseButton(){let e=this.getUIDataItem()?.expanded?u.Expanded:u.Collapsed;return r`<calcite-action @click=${this.handleExpand} .icon=${e} scale=s appearance=transparent text></calcite-action>`}renderInfoButton(){return r`<button id=${this.tipID??g} class=${l(c.infoButton)}><calcite-icon class=${l(c.infoIcon)} .icon=${u.Popover} scale=s></calcite-icon></button>`}renderCopyButton(e,t){return r`<calcite-action class=${l(this.calciteMode)} @click=${this.copySelection.bind(this,e,t)} slot=action .icon=${u.Copy} appearance=transparent text></calcite-action>`}renderInput(e,t,a,n){let s=n??this.setting;return s.type==="string"||s.type==="textarea"?e===d.User?this.renderUserLocaleInput(t,a):this.renderTranslatedLanguageInput(t,a):this.renderTextEditor(t,e,a)}renderUserLocaleInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleUserInputChange} ${$(a=>{a&&(this.userInputs[t]=a)})}></calcite-input>`)}renderTranslatedLanguageInput(e,t){return _(t,r`<calcite-input id=${t??g} class=${l(m.Light)} data-field-name=${this.fieldName??g} .value=${e} @focus=${this.handleSelection} @calciteInputChange=${this.handleTranslatedInputChange} ${$(a=>{a&&(this.translatedInputs[t]=a)})}></calcite-input>`)}renderTextEditor(e,t,a){let n={toolbar:[]};return r`<instant-apps-ckeditor-wrapper id=${a??g} @dataChanged=${this.handleTextEditorDataChange.bind(this,t)} @isFocused=${this.handleSelection} .value=${e??""} data-field-name=${this.fieldName??g} .config=${n} ${$(this.setEditor.bind(this,t))}></instant-apps-ckeditor-wrapper>`}};T("instant-apps-language-translator-item",v);return v},a,b)