@esri/solutions-components 1.0.0-next.20250603.1 → 1.0.0-next.20250604

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 (400) hide show
  1. package/dist/cdn/{FV7CWXXA.js → 2AFE7E7M.js} +2 -2
  2. package/dist/cdn/{KC4DY2HC.js → 2B5FSZQH.js} +2 -2
  3. package/dist/cdn/{KVQYP6QO.js → 2EM743GZ.js} +2 -2
  4. package/dist/cdn/{DUX7RIHF.js → 2K5LERLJ.js} +2 -2
  5. package/dist/cdn/{AKWYDDKA.js → 2KM6GVBX.js} +2 -2
  6. package/dist/cdn/{KOY2DGQB.js → 2MYQP6Y5.js} +2 -2
  7. package/dist/cdn/{LYOVCHLV.js → 2WSY3VK5.js} +2 -2
  8. package/dist/cdn/{SEJNBKC3.js → 2WTLR7AF.js} +2 -2
  9. package/dist/cdn/{7QH32TZC.js → 2ZYEO4QU.js} +2 -2
  10. package/dist/cdn/345MWWXW.js +4 -0
  11. package/dist/cdn/3ELXMEAJ.js +4 -0
  12. package/dist/cdn/{BUGW2FJW.js → 3ML7QFWK.js} +1 -1
  13. package/dist/cdn/{WOGXYHTW.js → 3OXV4AIJ.js} +1 -1
  14. package/dist/cdn/{7MLUC4ZF.js → 3R6FI5UM.js} +2 -2
  15. package/dist/cdn/{NTM7VXP2.js → 3UOZA57X.js} +2 -2
  16. package/dist/cdn/{3OHXXSQC.js → 42G7HHTM.js} +2 -2
  17. package/dist/cdn/{5IJJO4LY.js → 47H5FO7V.js} +2 -2
  18. package/dist/cdn/{F6ZVXJY4.js → 47T4MQZM.js} +2 -2
  19. package/dist/cdn/{GGLOL5YA.js → 4ALXTQ7N.js} +2 -2
  20. package/dist/cdn/{QGGEZQ5P.js → 4E3IKHTV.js} +1 -1
  21. package/dist/cdn/{3I5XCDRF.js → 4FSK32YK.js} +2 -2
  22. package/dist/cdn/{JDLIQP26.js → 4Q5U26MM.js} +1 -1
  23. package/dist/cdn/{XOWZ4LD3.js → 4X3BLJYO.js} +2 -2
  24. package/dist/cdn/{TXPPQ5K7.js → 54BQVAZQ.js} +1 -1
  25. package/dist/cdn/{QXLE5FAV.js → 55ER3JZZ.js} +1 -1
  26. package/dist/cdn/{ZZ5CPOFT.js → 5EGJZQNO.js} +2 -2
  27. package/dist/cdn/{HQRD3W3T.js → 5IXEWYS7.js} +2 -2
  28. package/dist/cdn/{BMKFZOGZ.js → 5JZHSF5Q.js} +1 -1
  29. package/dist/cdn/{SXDVITDW.js → 5NTBUHXP.js} +2 -2
  30. package/dist/cdn/{GSFDUUIV.js → 5TTXDO2X.js} +2 -2
  31. package/dist/cdn/5UYYGX3U.js +4 -0
  32. package/dist/cdn/{CPPGBHGB.js → 5WSSG5DQ.js} +2 -2
  33. package/dist/cdn/{RRTZSCHT.js → 5ZN3LDSR.js} +2 -2
  34. package/dist/cdn/{E2JMZPHI.js → 63FJFV7Z.js} +2 -2
  35. package/dist/cdn/{7OBFFSGV.js → 6426ECPL.js} +2 -2
  36. package/dist/cdn/{JMFIHU24.js → 6FMYJDB3.js} +2 -2
  37. package/dist/cdn/{F4ZGDGM4.js → 6GI4INVZ.js} +2 -2
  38. package/dist/cdn/{YSQPEWEY.js → 6KZH4YCI.js} +1 -1
  39. package/dist/cdn/{G4AY2BY2.js → 6LFV2GIT.js} +1 -1
  40. package/dist/cdn/{XASSYP2N.js → 6QFHZ3JL.js} +2 -2
  41. package/dist/cdn/6UX6KQVQ.js +4 -0
  42. package/dist/cdn/{F6ZZOQ45.js → 6XIFWTU3.js} +2 -2
  43. package/dist/cdn/{47FBP4UH.js → 6XXYDAON.js} +2 -2
  44. package/dist/cdn/{OHFEEKIB.js → 6YLZDF5Z.js} +2 -2
  45. package/dist/cdn/{57F2XN77.js → 73M3K3MB.js} +1 -1
  46. package/dist/cdn/{TYS4GUXP.js → 76BAM4JD.js} +2 -2
  47. package/dist/cdn/{7B72B7FY.js → 7AYXAEZ4.js} +4 -4
  48. package/dist/cdn/{V5XXUD57.js → 7D3QOJHZ.js} +2 -2
  49. package/dist/cdn/{O7J65UZA.js → 7MJFKTU3.js} +1 -1
  50. package/dist/cdn/{LJN277XH.js → 7MXFY5SO.js} +1 -1
  51. package/dist/cdn/{2YSLDCYN.js → 7TR632PO.js} +2 -2
  52. package/dist/cdn/{DVCGX7AQ.js → 7UF7ASVK.js} +2 -2
  53. package/dist/cdn/{5V42POES.js → 7VUGOBSM.js} +2 -2
  54. package/dist/cdn/{HUY2NQF2.js → AC6N4APV.js} +1 -1
  55. package/dist/cdn/{QPNW6P3H.js → ADCN5EQ6.js} +2 -2
  56. package/dist/cdn/AEPIDWNF.js +4 -0
  57. package/dist/cdn/{HE6RDTLW.js → AF677W6B.js} +2 -2
  58. package/dist/cdn/{MPV7FCIF.js → ALD6NWTO.js} +2 -2
  59. package/dist/cdn/{VONL6KBY.js → ALLFENVH.js} +2 -2
  60. package/dist/cdn/{3JEMJ2EV.js → AMWVUVI2.js} +2 -2
  61. package/dist/cdn/{BB5THTK5.js → ANWOHFXY.js} +2 -2
  62. package/dist/cdn/ARCAXJNI.js +4 -0
  63. package/dist/cdn/{YLMFQSC4.js → AWTEJER6.js} +2 -2
  64. package/dist/cdn/{BTMSD3FY.js → B24P555R.js} +2 -2
  65. package/dist/cdn/{M7NNYPVJ.js → B5IEC4IT.js} +2 -2
  66. package/dist/cdn/{T3AWV5HU.js → BE5PQLO3.js} +2 -2
  67. package/dist/cdn/{CGPIDLBY.js → BGMGLS3V.js} +2 -2
  68. package/dist/cdn/{3M72CEYO.js → BIUFSOZZ.js} +2 -2
  69. package/dist/cdn/{YZMGJ7SM.js → BPGVSHQW.js} +2 -2
  70. package/dist/cdn/{EJKR2ZHP.js → BS33EVAP.js} +2 -2
  71. package/dist/cdn/{TT5NLCZ7.js → CB6KYK3A.js} +2 -2
  72. package/dist/cdn/{23TE6EVK.js → CEJDTHNZ.js} +1 -1
  73. package/dist/cdn/{IFGU7UKD.js → CJNGBIUI.js} +2 -2
  74. package/dist/cdn/{4FJC45LY.js → CNEWKYEJ.js} +2 -2
  75. package/dist/cdn/{2I5J5JBB.js → CRZVA7XS.js} +2 -2
  76. package/dist/cdn/CTJUD4LO.js +4 -0
  77. package/dist/cdn/{DS2RXS3N.js → CTUCKF3P.js} +2 -2
  78. package/dist/cdn/{WUYXX4RA.js → CWNIFA6D.js} +1 -1
  79. package/dist/cdn/{CUB7E2CZ.js → CYNBZWVT.js} +1 -1
  80. package/dist/cdn/{HIFJRRQY.js → D2PEMAQB.js} +2 -2
  81. package/dist/cdn/{LJ67HDLQ.js → D4RSDPZE.js} +2 -2
  82. package/dist/cdn/{7FBWIG3K.js → D7NBVCTF.js} +2 -2
  83. package/dist/cdn/{JTT7WLPJ.js → DEOYLAEF.js} +2 -2
  84. package/dist/cdn/{7RAFMZMY.js → DQF7T3WP.js} +2 -2
  85. package/dist/cdn/{MEWYK3DQ.js → DR4VMI7G.js} +2 -2
  86. package/dist/cdn/{FAXNU5CL.js → E6UHW6W4.js} +1 -1
  87. package/dist/cdn/{23KRBWNX.js → E7CZ4ZJ7.js} +1 -1
  88. package/dist/cdn/{LZ67DRAD.js → EMDO67DU.js} +3 -3
  89. package/dist/cdn/{GD22AZGD.js → EMZ6RPP3.js} +2 -2
  90. package/dist/cdn/{VNMQ4LFX.js → EOMS3F3L.js} +2 -2
  91. package/dist/cdn/{D6S3BMVV.js → ERW3YZU6.js} +1 -1
  92. package/dist/cdn/{YN72HJN7.js → ETSHTE72.js} +2 -2
  93. package/dist/cdn/{WEJIR3KC.js → F4VOMVZI.js} +2 -2
  94. package/dist/cdn/{O3MMCKSZ.js → FCYQRR3U.js} +2 -2
  95. package/dist/cdn/{BKEUB7D6.js → FHUPZXRA.js} +2 -2
  96. package/dist/cdn/{OBH5D5B3.js → FJ6RGFDH.js} +2 -2
  97. package/dist/cdn/{M2LFTGSG.js → FLHA6SUG.js} +2 -2
  98. package/dist/cdn/{DTQTQMKB.js → FQLSHIBF.js} +1 -1
  99. package/dist/cdn/GEVOY2L5.js +18 -0
  100. package/dist/cdn/{JHZMQC26.js → GJ2KTUEU.js} +2 -2
  101. package/dist/cdn/GMCLBVIJ.js +25 -0
  102. package/dist/cdn/GMPQXS6C.js +4 -0
  103. package/dist/cdn/{YT5JSWCJ.js → GNROCWA2.js} +2 -2
  104. package/dist/cdn/{BXWG6ASU.js → GV4VMWZC.js} +2 -2
  105. package/dist/cdn/{TM4VLUD7.js → GX6G4BFZ.js} +1 -1
  106. package/dist/cdn/{HM3EFLFF.js → GXKZH3J4.js} +2 -2
  107. package/dist/cdn/{AJIFFKGX.js → GZEPT2M3.js} +2 -2
  108. package/dist/cdn/H6KJVVW5.js +18 -0
  109. package/dist/cdn/{5ANAYW5P.js → HFUW7B3U.js} +2 -2
  110. package/dist/cdn/{N55W5Z4W.js → HLWVXTFA.js} +2 -2
  111. package/dist/cdn/{R475XUMQ.js → HPWA6TTI.js} +2 -2
  112. package/dist/cdn/{PZYR43RF.js → HQKIH26Q.js} +1 -1
  113. package/dist/cdn/{6YSPEIYA.js → HQOSEDMS.js} +2 -2
  114. package/dist/cdn/{YOUICQQX.js → HUNK6CQY.js} +2 -2
  115. package/dist/cdn/{ZTYNAGFP.js → HWXLPBZH.js} +2 -2
  116. package/dist/cdn/{FBUSWZJT.js → I2DY4IS2.js} +2 -2
  117. package/dist/cdn/{E236QMQ7.js → I2YEFWJ6.js} +2 -2
  118. package/dist/cdn/{Y5NSXWTE.js → I5NHFG7C.js} +2 -2
  119. package/dist/cdn/{XX372MHT.js → IACEMZB4.js} +2 -2
  120. package/dist/cdn/IAV6RAUX.js +18 -0
  121. package/dist/cdn/{JK3NLT2O.js → ICYWQWLJ.js} +2 -2
  122. package/dist/cdn/{HVBM4D6S.js → IE2Z57EL.js} +1 -1
  123. package/dist/cdn/{OVZLS4VM.js → IJRPDGUW.js} +1 -1
  124. package/dist/cdn/{T2KSGTVF.js → IPTJRUEL.js} +2 -2
  125. package/dist/cdn/{FI7VCDS7.js → IWLSOPNU.js} +2 -2
  126. package/dist/cdn/{DGMABTNK.js → IY5MA5TQ.js} +2 -2
  127. package/dist/cdn/{GNMYTB4B.js → J2IBVR4K.js} +2 -2
  128. package/dist/cdn/{UBMKB36W.js → JMLCAWVB.js} +2 -2
  129. package/dist/cdn/{NXZVUBHX.js → JMXRRM2J.js} +2 -2
  130. package/dist/cdn/{LZWGO4KG.js → JUUBSWSN.js} +2 -2
  131. package/dist/cdn/{7IJWIQKS.js → JVV2LRKV.js} +2 -2
  132. package/dist/cdn/{H2QIWGB3.js → JYGS22BT.js} +2 -2
  133. package/dist/cdn/{IJOJIH2Q.js → JYHFFQPV.js} +2 -2
  134. package/dist/cdn/{K22YDYDF.js → K4J7ONE5.js} +1 -1
  135. package/dist/cdn/K4LNUMMZ.js +18 -0
  136. package/dist/cdn/{3FD4XRIR.js → K54F34MD.js} +2 -2
  137. package/dist/cdn/{K5GUPAGQ.js → K7MDBVZ5.js} +2 -2
  138. package/dist/cdn/{62PWRVOA.js → KAN7CBK7.js} +1 -1
  139. package/dist/cdn/{4NKQ4OHH.js → KBJOJOJ4.js} +1 -1
  140. package/dist/cdn/{PHRFHM2D.js → KCGRRB43.js} +2 -2
  141. package/dist/cdn/{IUKY4AJJ.js → KCQU26AE.js} +2 -2
  142. package/dist/cdn/{6RLLS3XZ.js → KEJK7WEU.js} +2 -2
  143. package/dist/cdn/KGNJ2Y2O.js +4 -0
  144. package/dist/cdn/{XPLFSIZL.js → KKS7II75.js} +2 -2
  145. package/dist/cdn/{DHEXYRM4.js → KNAH23B5.js} +2 -2
  146. package/dist/cdn/{AAE7EK4I.js → KSWXMOC6.js} +2 -2
  147. package/dist/cdn/{5BB6ZTVD.js → KYOJO322.js} +2 -2
  148. package/dist/cdn/L3EOUKGK.js +4 -0
  149. package/dist/cdn/{GDVWCARK.js → L6CZXSW3.js} +2 -2
  150. package/dist/cdn/{OUXGXK3J.js → LACXORO5.js} +1 -1
  151. package/dist/cdn/{KHYYZCSF.js → LFDYLJKA.js} +1 -1
  152. package/dist/cdn/{K2N3GFEJ.js → LKWWHXOA.js} +2 -2
  153. package/dist/cdn/{SYKOTABZ.js → LNP7R5ZI.js} +2 -2
  154. package/dist/cdn/{ZMEBOR2G.js → LPK5NKSR.js} +2 -2
  155. package/dist/cdn/{ADABT6KF.js → LSZWLE7J.js} +2 -2
  156. package/dist/cdn/{A5OGKGEV.js → LTRG7P5T.js} +2 -2
  157. package/dist/cdn/{7SBXAJO4.js → LYGETQIB.js} +2 -2
  158. package/dist/cdn/{XH7TNO6J.js → M2XRDDQA.js} +2 -2
  159. package/dist/cdn/{K6H6OHMX.js → M3IMWYAR.js} +2 -2
  160. package/dist/cdn/{EPT2WH3D.js → M5375MUO.js} +2 -2
  161. package/dist/cdn/{2VPGZ7E2.js → MABGXJJX.js} +2 -2
  162. package/dist/cdn/{KGUBXPVQ.js → MHW7GG43.js} +2 -2
  163. package/dist/cdn/{ZVLVAUCM.js → MMGAOSLP.js} +1 -1
  164. package/dist/cdn/{UYNSQSTA.js → MT4W2VSR.js} +2 -2
  165. package/dist/cdn/{XAABPBEY.js → MTDTWNGL.js} +2 -2
  166. package/dist/cdn/{6A4RAOPS.js → MWHO4QDE.js} +2 -2
  167. package/dist/cdn/{LQSN4MQB.js → MXJ7JORF.js} +2 -2
  168. package/dist/cdn/{TW3LKPAL.js → NBTA2YSB.js} +2 -2
  169. package/dist/cdn/{JRBPHSAK.js → NDYM7KNN.js} +2 -2
  170. package/dist/cdn/{E43HBSTM.js → NG7FCMTK.js} +2 -2
  171. package/dist/cdn/{HFPFPCEQ.js → NKQJ45UL.js} +2 -2
  172. package/dist/cdn/{ALV5KMDH.js → NKVMRM3O.js} +2 -2
  173. package/dist/cdn/NMCGBOOO.js +4 -0
  174. package/dist/cdn/{6B26NMRD.js → NOWWSO43.js} +2 -2
  175. package/dist/cdn/{MTIUYXWA.js → NQMT3ZM2.js} +2 -2
  176. package/dist/cdn/{P4NNQGNZ.js → NVZPOTDK.js} +2 -2
  177. package/dist/cdn/{G4WB3PBR.js → NYPIOWTH.js} +2 -2
  178. package/dist/cdn/{QLHC6CPF.js → O5TASUMK.js} +2 -2
  179. package/dist/cdn/{S7I5NQIT.js → O6YU35I2.js} +2 -2
  180. package/dist/cdn/{4MPZW2AH.js → OGMFH36G.js} +2 -2
  181. package/dist/cdn/{B7V2TCV2.js → OHULOUJ7.js} +1 -1
  182. package/dist/cdn/{RCPW7BND.js → OI44SOUH.js} +2 -2
  183. package/dist/cdn/{H7LE3225.js → OJALXFPS.js} +2 -2
  184. package/dist/cdn/OQ4ARNXB.js +4 -0
  185. package/dist/cdn/{UY4MNUVT.js → OT3LBEYQ.js} +2 -2
  186. package/dist/cdn/{EZJUU4SD.js → OVYTYWMG.js} +2 -2
  187. package/dist/cdn/{SO2MJYUC.js → OWQIRWGB.js} +2 -2
  188. package/dist/cdn/{5X7D5OFH.js → OXHYCHE7.js} +3 -3
  189. package/dist/cdn/{LXCV6LJ6.js → OZDEHP24.js} +1 -1
  190. package/dist/cdn/{W22GLIX6.js → P3JN7YAP.js} +2 -2
  191. package/dist/cdn/{7H4LF6S3.js → PBE7PDSN.js} +2 -2
  192. package/dist/cdn/{KI6QHNPI.js → PCE2GNPD.js} +1 -1
  193. package/dist/cdn/{3DYJ4FTG.js → PDQQ3CKY.js} +1 -1
  194. package/dist/cdn/{5DNXV7XL.js → PODWXGKR.js} +2 -2
  195. package/dist/cdn/{XG3GBQPB.js → PPLIT4QW.js} +2 -2
  196. package/dist/cdn/{KY25YQM3.js → Q2UDHSAN.js} +2 -2
  197. package/dist/cdn/{NOPVFUIA.js → Q65D6PKP.js} +2 -2
  198. package/dist/cdn/{AE2GFHQI.js → QBEPAEZG.js} +2 -2
  199. package/dist/cdn/{MLZAIX3K.js → QH4CLBMI.js} +2 -2
  200. package/dist/cdn/{DDHWUUM5.js → QHAATBTL.js} +2 -2
  201. package/dist/cdn/{KDBUQPCS.js → QLBAKOYA.js} +2 -2
  202. package/dist/cdn/{BWIARGK3.js → QOKOI3NT.js} +2 -2
  203. package/dist/cdn/{BXQLGQ6O.js → QU5VIRGY.js} +2 -2
  204. package/dist/cdn/{MCDQUORV.js → QU6MV2R4.js} +2 -2
  205. package/dist/cdn/{ZQ2HPN3W.js → R3KXDLBC.js} +2 -2
  206. package/dist/cdn/R3QDSUMS.js +4 -0
  207. package/dist/cdn/{H77AUDKG.js → RAOR6DNG.js} +2 -2
  208. package/dist/cdn/{WX6NTYZO.js → RIR7ISEG.js} +2 -2
  209. package/dist/cdn/{4HECS3TA.js → RJVPADY4.js} +2 -2
  210. package/dist/cdn/{PGSEOWFX.js → RN47VRJO.js} +2 -2
  211. package/dist/cdn/{ALIHQ2MF.js → ROJ6UXWC.js} +2 -2
  212. package/dist/cdn/RTQCBY45.js +4 -0
  213. package/dist/cdn/{WGO54NYU.js → RTSUY2Q2.js} +2 -2
  214. package/dist/cdn/{WPA4NXXH.js → RZLD7GPX.js} +2 -2
  215. package/dist/cdn/{UTKAQVP4.js → SCCCHUE7.js} +2 -2
  216. package/dist/cdn/{MPQ4CIM7.js → SCFIKT66.js} +2 -2
  217. package/dist/cdn/{K6752QH3.js → SQ72UPK3.js} +2 -2
  218. package/dist/cdn/{FEK5UIIE.js → SU7JDERD.js} +2 -2
  219. package/dist/cdn/{2K7BLOL6.js → T7EW26WY.js} +2 -2
  220. package/dist/cdn/{EJJPCG36.js → TA4R7WKW.js} +2 -2
  221. package/dist/cdn/{IUO3RQBY.js → TAE7C5OI.js} +2 -2
  222. package/dist/cdn/{YDN7DHK5.js → THV4VHVL.js} +2 -2
  223. package/dist/cdn/{HUHVTN5N.js → TLBLKOSP.js} +2 -2
  224. package/dist/cdn/{QVAA7UWM.js → TOGUBI36.js} +2 -2
  225. package/dist/cdn/{23JUUYFN.js → TPT5GHCA.js} +2 -2
  226. package/dist/cdn/{ZJZRCIO6.js → TR24DOO4.js} +2 -2
  227. package/dist/cdn/{DP4HUTJB.js → TTKYUHNY.js} +2 -2
  228. package/dist/cdn/{USVRA2PF.js → TXLHJXSD.js} +2 -2
  229. package/dist/cdn/{LAARQ3SC.js → UCHW2VOH.js} +2 -2
  230. package/dist/cdn/{ZIZWR2E2.js → UGHIR2H5.js} +2 -2
  231. package/dist/cdn/{XDB2IAAB.js → UJNLCDAP.js} +2 -2
  232. package/dist/cdn/{JEXYLSPT.js → UQKWMKYX.js} +2 -2
  233. package/dist/cdn/{G25UYWU2.js → USOHU6ZJ.js} +2 -2
  234. package/dist/cdn/{CKP5NRSZ.js → USVH5XRC.js} +2 -2
  235. package/dist/cdn/{WTVJEJOH.js → UUYHFCW4.js} +2 -2
  236. package/dist/cdn/{VGUIEWXD.js → UXMQRK5S.js} +1 -1
  237. package/dist/cdn/{VQKLQBOO.js → UZS6KXNI.js} +2 -2
  238. package/dist/cdn/{DVOJAUT5.js → V7G2AU5A.js} +2 -2
  239. package/dist/cdn/{WINQVMKE.js → VGFMPJPG.js} +3 -3
  240. package/dist/cdn/{TWSVZ4MU.js → VNATQD74.js} +2 -2
  241. package/dist/cdn/VQ7R4YV2.js +4 -0
  242. package/dist/cdn/{Z642X5R6.js → VSXWXDUG.js} +2 -2
  243. package/dist/cdn/{FRU4NUKP.js → VT5P4INT.js} +1 -1
  244. package/dist/cdn/{NJDPBF7U.js → WICNCAEP.js} +2 -2
  245. package/dist/cdn/{ZBRMQKPX.js → WNZMO54V.js} +2 -2
  246. package/dist/cdn/{LO5XB3CJ.js → X3ULYFMR.js} +2 -2
  247. package/dist/cdn/{7OOX6EYU.js → X3XUCW5D.js} +2 -2
  248. package/dist/cdn/{OMQTD6W4.js → XC55JAZC.js} +2 -2
  249. package/dist/cdn/{XIH6ZMGJ.js → XC5VKQJJ.js} +1 -1
  250. package/dist/cdn/{2NRHRJMW.js → XD7HIK35.js} +2 -2
  251. package/dist/cdn/{CZPQYOMC.js → XIROVWXB.js} +1 -1
  252. package/dist/cdn/{6YVXLIWR.js → XISD2FJX.js} +2 -2
  253. package/dist/cdn/{IAM2GWWY.js → XPSM5W4L.js} +2 -2
  254. package/dist/cdn/{QHY3HOJZ.js → XWJ5XRDA.js} +1 -1
  255. package/dist/cdn/{YEYDGCMG.js → XWT4JOO6.js} +2 -2
  256. package/dist/cdn/{B7C2SG7U.js → Y2TYQRMX.js} +2 -2
  257. package/dist/cdn/{45GEUPJR.js → Y2XCXPZJ.js} +1 -1
  258. package/dist/cdn/{55EOCAZO.js → Y4ZIUU3O.js} +2 -2
  259. package/dist/cdn/{IEKYGBCE.js → Y53CA6HP.js} +2 -2
  260. package/dist/cdn/{U6HIPEIC.js → YA4UNEDL.js} +2 -2
  261. package/dist/cdn/{NCWTGVLS.js → YKLMVODS.js} +2 -2
  262. package/dist/cdn/{AAOA4QBP.js → YL7XZAGN.js} +2 -2
  263. package/dist/cdn/{ABYYFXA3.js → YN6OX32H.js} +2 -2
  264. package/dist/cdn/{26OF6DOI.js → YNIZ4XXM.js} +2 -2
  265. package/dist/cdn/YRGOM6Q5.js +4 -0
  266. package/dist/cdn/{QX2LVJEP.js → YWL5BSMR.js} +2 -2
  267. package/dist/cdn/{LW67Q7U3.js → Z2XU5LLK.js} +2 -2
  268. package/dist/cdn/Z4R46WXZ.js +4 -0
  269. package/dist/cdn/{SVF5ULXK.js → Z56WHDSU.js} +2 -2
  270. package/dist/cdn/{YBGWD4DE.js → Z7JJZ3FM.js} +2 -2
  271. package/dist/cdn/{Y3ESQQEV.js → ZCRJUKEL.js} +2 -2
  272. package/dist/cdn/{6H5BLERA.js → ZFQHFXDO.js} +2 -2
  273. package/dist/cdn/{Y2WO5VQQ.js → ZHGAX6R3.js} +2 -2
  274. package/dist/cdn/{KT3PTRZ6.js → ZPVOBCSG.js} +2 -2
  275. package/dist/cdn/{6P4GVMOZ.js → ZTMR6MQW.js} +2 -2
  276. package/dist/cdn/{XN5ERJUX.js → ZUBYVBHB.js} +2 -2
  277. package/dist/cdn/{ZSIMORYA.js → ZVSE3IZ4.js} +2 -2
  278. package/dist/cdn/index.js +2 -2
  279. package/dist/chunks/Auth.js +1 -1
  280. package/dist/chunks/cardFetchingUtils.js +1 -1
  281. package/dist/chunks/common.js +1 -1
  282. package/dist/chunks/deployAppContexts.js +1 -1
  283. package/dist/chunks/downloadUtils.js +1 -1
  284. package/dist/chunks/index.js +1 -1
  285. package/dist/chunks/interfaces.js +1 -1
  286. package/dist/chunks/loadModules.js +1 -1
  287. package/dist/chunks/mapViewUtils.js +1 -1
  288. package/dist/chunks/pciUtils.js +1 -1
  289. package/dist/chunks/popupUtils.js +1 -1
  290. package/dist/chunks/publicNotificationStore.js +1 -1
  291. package/dist/chunks/queryUtils.js +1 -1
  292. package/dist/chunks/runtime.js +1 -1
  293. package/dist/chunks/solution-store.js +1 -1
  294. package/dist/chunks/templates.js +1 -1
  295. package/dist/chunks/useT9n.js +1 -1
  296. package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
  297. package/dist/components/basemap-gallery/customElement.js +1 -1
  298. package/dist/components/buffer-tools/customElement.js +1 -1
  299. package/dist/components/card-manager/customElement.js +1 -1
  300. package/dist/components/consent-manager/customElement.js +2035 -2009
  301. package/dist/components/create-feature/customElement.js +1 -1
  302. package/dist/components/create-related-feature/customElement.js +1 -1
  303. package/dist/components/crowdsource-manager/customElement.js +7 -9
  304. package/dist/components/crowdsource-reporter/customElement.js +2 -2
  305. package/dist/components/deduct-calculator/customElement.js +1 -1
  306. package/dist/components/delete-button/customElement.js +1 -1
  307. package/dist/components/delete-dialog/customElement.js +1 -1
  308. package/dist/components/edit-card/customElement.js +1 -1
  309. package/dist/components/feature-details/customElement.js +1 -1
  310. package/dist/components/feature-list/customElement.js +1 -1
  311. package/dist/components/field-selection/customElement.js +1 -1
  312. package/dist/components/floor-filter/customElement.js +1 -1
  313. package/dist/components/info-card/customElement.js +1 -1
  314. package/dist/components/json-editor/customElement.js +1 -1
  315. package/dist/components/layer-list/customElement.js +1 -1
  316. package/dist/components/layer-table/customElement.js +35 -37
  317. package/dist/components/layer-table/index.d.ts +0 -1
  318. package/dist/components/layer-table/index.js +0 -1
  319. package/dist/components/map-card/customElement.d.ts +8 -0
  320. package/dist/components/map-card/customElement.js +41 -36
  321. package/dist/components/map-draw-tools/customElement.js +1 -1
  322. package/dist/components/map-fullscreen/customElement.js +1 -1
  323. package/dist/components/map-layer-picker/customElement.js +6 -2
  324. package/dist/components/map-legend/customElement.js +1 -1
  325. package/dist/components/map-picker/customElement.js +1 -1
  326. package/dist/components/map-search/customElement.js +1 -1
  327. package/dist/components/map-select-tools/customElement.js +1 -1
  328. package/dist/components/map-tools/customElement.js +2 -2
  329. package/dist/components/pci-calculator/customElement.js +1 -1
  330. package/dist/components/pdf-download/customElement.js +1 -1
  331. package/dist/components/public-notification/customElement.js +1 -1
  332. package/dist/components/refine-selection/customElement.js +1 -1
  333. package/dist/components/selection-tool/customElement.js +1 -1
  334. package/dist/components/solution-article-card/customElement.js +1 -1
  335. package/dist/components/solution-configuration/customElement.js +1 -1
  336. package/dist/components/solution-configure-panel/customElement.js +1 -1
  337. package/dist/components/solution-configure-titles/customElement.js +1 -1
  338. package/dist/components/solution-contents/customElement.js +1 -1
  339. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  340. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  341. package/dist/components/solution-deploy-panel/customElement.js +1 -1
  342. package/dist/components/solution-deployed-card/customElement.js +1 -1
  343. package/dist/components/solution-deploying-panel/customElement.js +1 -1
  344. package/dist/components/solution-details-card/customElement.js +1 -1
  345. package/dist/components/solution-details-panel/customElement.js +1 -1
  346. package/dist/components/solution-item/customElement.js +1 -1
  347. package/dist/components/solution-item-accordion/customElement.js +1 -1
  348. package/dist/components/solution-item-details/customElement.js +1 -1
  349. package/dist/components/solution-item-icon/customElement.js +1 -1
  350. package/dist/components/solution-item-sharing/customElement.js +1 -1
  351. package/dist/components/solution-items-diagram/customElement.js +1 -1
  352. package/dist/components/solution-organization-variables/customElement.js +1 -1
  353. package/dist/components/solution-resource-item/customElement.js +1 -1
  354. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  355. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  356. package/dist/components/solution-template-data/customElement.js +1 -1
  357. package/dist/components/solution-variables/customElement.js +1 -1
  358. package/dist/components/solutions-all-panel/customElement.js +1 -1
  359. package/dist/components/solutions-all-shell/customElement.js +1 -1
  360. package/dist/components/solutions-article-panel/customElement.js +1 -1
  361. package/dist/components/solutions-articles/customElement.js +1 -1
  362. package/dist/components/solutions-articles-shell/customElement.js +1 -1
  363. package/dist/components/solutions-deployed-panel/customElement.js +1 -1
  364. package/dist/components/solutions-deployed-shell/customElement.js +1 -1
  365. package/dist/components/solutions-filter-panel/customElement.js +1 -1
  366. package/dist/components/spatial-ref/customElement.js +1 -1
  367. package/dist/components/store-manager/customElement.js +1 -1
  368. package/dist/docs/api.json +47 -2
  369. package/dist/docs/docs.json +44 -2
  370. package/dist/docs/vscode.html-custom-data.json +6 -1
  371. package/dist/docs/web-types.json +25 -2
  372. package/dist/index.d.ts +1 -0
  373. package/dist/index.js +1 -1
  374. package/dist/loader.js +2 -2
  375. package/dist/types/lumina.d.ts +2 -1
  376. package/dist/types/preact.d.ts +2 -1
  377. package/dist/types/react.d.ts +2 -1
  378. package/dist/types/stencil.d.ts +2 -1
  379. package/package.json +1 -1
  380. package/dist/cdn/2HOKIBIJ.js +0 -4
  381. package/dist/cdn/2W64V4FL.js +0 -4
  382. package/dist/cdn/4EP3SSVQ.js +0 -4
  383. package/dist/cdn/CGFFKEWQ.js +0 -4
  384. package/dist/cdn/CUTLCVEY.js +0 -4
  385. package/dist/cdn/DV4IGJMT.js +0 -18
  386. package/dist/cdn/ERUVVBEL.js +0 -4
  387. package/dist/cdn/H4LF7LYL.js +0 -18
  388. package/dist/cdn/HACX7AGZ.js +0 -4
  389. package/dist/cdn/HCQBWHV3.js +0 -18
  390. package/dist/cdn/LBFKPX2C.js +0 -18
  391. package/dist/cdn/MVS6QH7E.js +0 -4
  392. package/dist/cdn/MWGRZML6.js +0 -4
  393. package/dist/cdn/RCFGDSWA.js +0 -4
  394. package/dist/cdn/RJRURTM3.js +0 -4
  395. package/dist/cdn/SOKSUQE7.js +0 -4
  396. package/dist/cdn/SRCXOI3Y.js +0 -4
  397. package/dist/cdn/WCNH7COY.js +0 -4
  398. package/dist/cdn/WZWGNIEX.js +0 -25
  399. package/dist/cdn/YN3ZXEKJ.js +0 -4
  400. package/dist/cdn/YOMJ4KM5.js +0 -4
@@ -1,5 +1,5 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import"./DTQTQMKB.js";var B=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var x=e=>{let t=[],r=0;return e=e.replace(/(\[[^\]]*\])/g,(s,a)=>{let c=`__ph-${r}__`;return t.push(a),r++,c}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(s,a,c)=>{let l=`__ph-${r}__`;return t.push(c),r++,a+l}),placeholders:t}},L=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),f="-shadowcsshost",E="-shadowcssslotted",w="-shadowcsscontext",$=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",P=new RegExp("("+f+$,"gim"),W=new RegExp("("+w+$,"gim"),j=new RegExp("("+E+$,"gim"),h=f+"-no-combinator",N=/-shadowcsshost-no-combinator([^\s]*)/,M=[/::shadow/g,/::content/g],D="([>\\s~+[.,{:][\\s\\S]*)?$",R=/-shadowcsshost/gim,H=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),K=H("::slotted"),U=H(":host"),Y=H(":host-context"),A=/\/\*\s*[\s\S]*?\*\//g,G=e=>e.replace(A,""),I=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,q=e=>e.match(I)||[],z=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,F=/([{}])/g,J=/(^.*?[^\\])??((:+)(.*)|$)/,Q="{",V="}",S="%BLOCK%",X=(e,t)=>{let r=Z(e),n=0;return r.escapedString.replace(z,(...o)=>{let s=o[2],a="",c=o[4],l="";c&&c.startsWith("{"+S)&&(a=r.blocks[n++],c=c.substring(S.length+1),l="{");let d=t({selector:s,content:a});return`${o[1]}${d.selector}${o[3]}${l}${d.content}${c}`})},Z=e=>{let t=e.split(F),r=[],n=[],o=0,s=[];for(let c=0;c<t.length;c++){let l=t[c];l===V&&o--,o>0?s.push(l):(s.length>0&&(n.push(s.join("")),r.push(S),s=[]),r.push(l)),l===Q&&o++}return s.length>0&&(n.push(s.join("")),r.push(S)),{escapedString:r.join(""),blocks:n}},T=e=>(e=e.replace(Y,`$1${w}`).replace(U,`$1${f}`).replace(K,`$1${E}`),e),O=(e,t,r)=>e.replace(t,(...n)=>{if(n[2]){let o=n[2].split(","),s=[];for(let a=0;a<o.length;a++){let c=o[a].trim();if(!c)break;s.push(r(h,c,n[3]))}return s.join(",")}else return h+n[3]}),b=(e,t,r)=>e+t.replace(f,"")+r,ee=e=>O(e,P,b),te=(e,t,r)=>t.indexOf(f)>-1?b(e,t,r):e+t+r+", "+t+" "+e+r,re=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(j,(...o)=>{if(o[2]){let s=o[2].trim(),a=o[3],c=r+s+a,l="";for(let g=o[4]-1;g>=0;g--){let p=o[5][g];if(p==="}"||p===",")break;l=p+l}let u=(l+c).trim(),d=`${l.trimEnd()}${c.trim()}`.trim();if(u!==d){let g=`${d}, ${u}`;n.push({orgSelector:u,updatedSelector:g})}return c}else return h+o[3]}),{selectors:n,cssText:e}},oe=e=>O(e,W,te),ne=e=>M.reduce((t,r)=>t.replace(r," "),e),se=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+D,"m")},ce=(e,t)=>!se(t).test(e),k=(e,t)=>e.replace(J,(r,n="",o,s="",a="")=>n+t+s+a),ae=(e,t,r)=>{if(R.lastIndex=0,R.test(e)){let n=`.${r}`;return e.replace(N,(o,s)=>k(s,n)).replace(R,n+" ")}return t+" "+e},le=(e,t,r)=>{let n=/\[is=([^\]]*)\]/g;t=t.replace(n,(v,...i)=>i[0]);let o="."+t,s=v=>{let i=v.trim();if(!i)return"";if(v.indexOf(h)>-1)i=ae(v,t,r);else{let _=v.replace(R,"");_.length>0&&(i=k(_,o))}return i},a=x(e);e=a.content;let c="",l=0,u,d=/( |>|\+|~(?!=))\s*/g,p=!(e.indexOf(h)>-1);for(;(u=d.exec(e))!==null;){let v=u[1],i=e.slice(l,u.index).trim();p=p||i.indexOf(h)>-1;let _=p?s(i):i;c+=`${_} ${v} `,l=d.lastIndex}let m=e.substring(l);return p=p||m.indexOf(h)>-1,c+=p?s(m):m,L(a.placeholders,c)},pe=(e,t,r,n)=>e.split(",").map(o=>n&&o.indexOf("."+n)>-1?o.trim():ce(o,t)?le(o,t,r).trim():o.trim()).join(", "),y=(e,t,r,n)=>X(e,o=>{let s=o.selector,a=o.content;return o.selector[0]!=="@"?s=pe(o.selector,t,r,n):(o.selector.startsWith("@media")||o.selector.startsWith("@supports")||o.selector.startsWith("@page")||o.selector.startsWith("@document"))&&(a=y(o.content,t,r,n)),{selector:s.replace(/\s{2,}/g," ").trim(),content:a}}),ie=(e,t,r,n)=>{e=T(e),e=ee(e),e=oe(e);let o=re(e,n);return e=o.cssText,e=ne(e),t&&(e=y(e,t,r,n)),e=C(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:o.selectors.map(s=>({orgSelector:C(s.orgSelector,r),updatedSelector:C(s.updatedSelector,r)}))}},C=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),ue=(e,t)=>{let r=t+"-h",n=t+"-s",o=q(e);e=G(e);let s=ie(e,t,r,n);return e=[s.cssText,...o].join(`
3
+ v1.0.0-next.20250604 */
4
+ import"./FQLSHIBF.js";var B=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");var x=e=>{let t=[],r=0;return e=e.replace(/(\[[^\]]*\])/g,(s,a)=>{let c=`__ph-${r}__`;return t.push(a),r++,c}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(s,a,c)=>{let l=`__ph-${r}__`;return t.push(c),r++,a+l}),placeholders:t}},L=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),f="-shadowcsshost",E="-shadowcssslotted",w="-shadowcsscontext",$=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",P=new RegExp("("+f+$,"gim"),W=new RegExp("("+w+$,"gim"),j=new RegExp("("+E+$,"gim"),h=f+"-no-combinator",N=/-shadowcsshost-no-combinator([^\s]*)/,M=[/::shadow/g,/::content/g],D="([>\\s~+[.,{:][\\s\\S]*)?$",R=/-shadowcsshost/gim,H=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),K=H("::slotted"),U=H(":host"),Y=H(":host-context"),A=/\/\*\s*[\s\S]*?\*\//g,G=e=>e.replace(A,""),I=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,q=e=>e.match(I)||[],z=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,F=/([{}])/g,J=/(^.*?[^\\])??((:+)(.*)|$)/,Q="{",V="}",S="%BLOCK%",X=(e,t)=>{let r=Z(e),n=0;return r.escapedString.replace(z,(...o)=>{let s=o[2],a="",c=o[4],l="";c&&c.startsWith("{"+S)&&(a=r.blocks[n++],c=c.substring(S.length+1),l="{");let d=t({selector:s,content:a});return`${o[1]}${d.selector}${o[3]}${l}${d.content}${c}`})},Z=e=>{let t=e.split(F),r=[],n=[],o=0,s=[];for(let c=0;c<t.length;c++){let l=t[c];l===V&&o--,o>0?s.push(l):(s.length>0&&(n.push(s.join("")),r.push(S),s=[]),r.push(l)),l===Q&&o++}return s.length>0&&(n.push(s.join("")),r.push(S)),{escapedString:r.join(""),blocks:n}},T=e=>(e=e.replace(Y,`$1${w}`).replace(U,`$1${f}`).replace(K,`$1${E}`),e),O=(e,t,r)=>e.replace(t,(...n)=>{if(n[2]){let o=n[2].split(","),s=[];for(let a=0;a<o.length;a++){let c=o[a].trim();if(!c)break;s.push(r(h,c,n[3]))}return s.join(",")}else return h+n[3]}),b=(e,t,r)=>e+t.replace(f,"")+r,ee=e=>O(e,P,b),te=(e,t,r)=>t.indexOf(f)>-1?b(e,t,r):e+t+r+", "+t+" "+e+r,re=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(j,(...o)=>{if(o[2]){let s=o[2].trim(),a=o[3],c=r+s+a,l="";for(let g=o[4]-1;g>=0;g--){let p=o[5][g];if(p==="}"||p===",")break;l=p+l}let u=(l+c).trim(),d=`${l.trimEnd()}${c.trim()}`.trim();if(u!==d){let g=`${d}, ${u}`;n.push({orgSelector:u,updatedSelector:g})}return c}else return h+o[3]}),{selectors:n,cssText:e}},oe=e=>O(e,W,te),ne=e=>M.reduce((t,r)=>t.replace(r," "),e),se=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+D,"m")},ce=(e,t)=>!se(t).test(e),k=(e,t)=>e.replace(J,(r,n="",o,s="",a="")=>n+t+s+a),ae=(e,t,r)=>{if(R.lastIndex=0,R.test(e)){let n=`.${r}`;return e.replace(N,(o,s)=>k(s,n)).replace(R,n+" ")}return t+" "+e},le=(e,t,r)=>{let n=/\[is=([^\]]*)\]/g;t=t.replace(n,(v,...i)=>i[0]);let o="."+t,s=v=>{let i=v.trim();if(!i)return"";if(v.indexOf(h)>-1)i=ae(v,t,r);else{let _=v.replace(R,"");_.length>0&&(i=k(_,o))}return i},a=x(e);e=a.content;let c="",l=0,u,d=/( |>|\+|~(?!=))\s*/g,p=!(e.indexOf(h)>-1);for(;(u=d.exec(e))!==null;){let v=u[1],i=e.slice(l,u.index).trim();p=p||i.indexOf(h)>-1;let _=p?s(i):i;c+=`${_} ${v} `,l=d.lastIndex}let m=e.substring(l);return p=p||m.indexOf(h)>-1,c+=p?s(m):m,L(a.placeholders,c)},pe=(e,t,r,n)=>e.split(",").map(o=>n&&o.indexOf("."+n)>-1?o.trim():ce(o,t)?le(o,t,r).trim():o.trim()).join(", "),y=(e,t,r,n)=>X(e,o=>{let s=o.selector,a=o.content;return o.selector[0]!=="@"?s=pe(o.selector,t,r,n):(o.selector.startsWith("@media")||o.selector.startsWith("@supports")||o.selector.startsWith("@page")||o.selector.startsWith("@document"))&&(a=y(o.content,t,r,n)),{selector:s.replace(/\s{2,}/g," ").trim(),content:a}}),ie=(e,t,r,n)=>{e=T(e),e=ee(e),e=oe(e);let o=re(e,n);return e=o.cssText,e=ne(e),t&&(e=y(e,t,r,n)),e=C(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:o.selectors.map(s=>({orgSelector:C(s.orgSelector,r),updatedSelector:C(s.updatedSelector,r)}))}},C=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),ue=(e,t)=>{let r=t+"-h",n=t+"-s",o=q(e);e=G(e);let s=ie(e,t,r,n);return e=[s.cssText,...o].join(`
5
5
  `),s.slottedSelectors.forEach(a=>{let c=new RegExp(B(a.orgSelector),"g");e=e.replace(c,a.updatedSelector)}),e};export{ue as scopeCss};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
3
+ v1.0.0-next.20250604 */
4
4
  function i(e,o){var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(r[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,t=Object.getOwnPropertySymbols(e);n<t.length;n++)o.indexOf(t[n])<0&&Object.prototype.propertyIsEnumerable.call(e,t[n])&&(r[t[n]]=e[t[n]]);return r}export{i as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
3
+ v1.0.0-next.20250604 */
4
4
  var l=e=>({labelKey:`${e}.fields.slug.label`,scope:"/properties/_slug",type:"Control",options:{control:"hub-field-input-input",messages:[{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.slug.patternError`},{type:"ERROR",keyword:"isUniqueSlug",icon:!0,labelKey:`${e}.fields.slug.isUniqueError`}]}});export{l as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a as D,b as w}from"./WGO54NYU.js";import{c as f,e as d,f as s,g as x,h as C,i as m,k as b,m as I,n as v}from"./KT3PTRZ6.js";import"./LW67Q7U3.js";import{a as _,b as L}from"./RCPW7BND.js";import{C as S,D as y}from"./D6S3BMVV.js";import"./BMKFZOGZ.js";import{a as T,c as t,d as k,e as P,f as E,j as U}from"./AAE7EK4I.js";import"./DTQTQMKB.js";var A=".sc-instant-apps-language-translator-h{display:block}.sc-instant-apps-language-translator-h calcite-modal.sc-instant-apps-language-translator{--calcite-modal-content-padding:0}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header.sc-instant-apps-language-translator{display:flex;justify-content:space-between;width:100%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-text.sc-instant-apps-language-translator{font-size:18px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__writing-icon.sc-instant-apps-language-translator{display:flex;justify-content:center;align-items:center;margin-right:5px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__close-button.sc-instant-apps-language-translator{width:175px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-tip.sc-instant-apps-language-translator{padding:20px;max-width:45vw}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator{display:flex;width:100%;position:sticky;top:-2%;background:var(--calcite-color-foreground-1);z-index:1}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator calcite-label.sc-instant-apps-language-translator{--calcite-label-margin-bottom:0;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:0.5%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__user-lang-text.sc-instant-apps-language-translator{font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:first-child{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:nth-child(2) calcite-select.sc-instant-apps-language-translator{width:255px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator calcite-input.sc-instant-apps-language-translator{width:300px;margin-left:30px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator{display:flex;align-items:center}.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__close-button.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__last-auto-save.sc-instant-apps-language-translator{margin-right:20px}.ck.ck-reset.ck-editor.ck-rounded-corners.sc-instant-apps-language-translator{margin-top:10px !important;margin-left:55px !important}.ck-editor__editable.sc-instant-apps-language-translator{height:70px !important;font-size:0.875rem !important;line-height:1.375 !important}.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:first-child,.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:last-child{--ck-spacing-large:0.5rem !important}.sc-instant-apps-language-translator-h:dir(rtl) .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__close-button.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h:dir(rtl) .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h:dir(rtl) .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__last-auto-save.sc-instant-apps-language-translator{margin-right:unset;margin-left:20px}",B=A,r="instant-apps-language-translator",i={BASE:r,header:`${r}__header`,headerText:`${r}__header-text`,savingIndicator:`${r}__saving-indicator`,closeButton:`${r}__close-button`,headerTip:`${r}__header-tip`,topBar:`${r}__top-bar`,topBarSection:`${r}__top-bar-section`,collapseSearchContainer:`${r}__collapse-search-container`,userLangText:`${r}__user-lang-text`,lastItem:`${r}--last-item`,writingIcon:`${r}__writing-icon`,primaryContent:`${r}__primary-content`,lastAutoSave:`${r}__last-auto-save`},R=class{constructor(a){T(this,a),this.translatorDataUpdated=E(this,"translatorDataUpdated",7),this.portalItem=void 0,this.appSettings=void 0,this.locales=void 0,this.open=!1,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0,this.saving=!1,this.messages=void 0,this.isCollapse=!0}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}handleLocaleChange(){this.initUIData(),this.initSelectLanguage()}handleAppSettings(){this.initUIData(),this.initSelectLanguage()}componentWillLoad(){I()}async componentDidLoad(){this.initialize()}async initialize(){let[a,n]=await Promise.all([S(),y()]);this.intl=a,this.request=n,await this.initMessages(),this.initUIData(),this.initPortalItemResourceT9nData(),this.initSelectLanguage()}async initMessages(){try{let{el:a}=this,n=await C(a);return this.messages=n,Promise.resolve()}catch{return void await Promise.reject(new Error("Failed to initialize messages"))}}initUIData(){let{appSettings:a,locales:n}=this,e=x(a,n);s.set("uiData",e)}initSelectLanguage(){if(!this.intl)return;let{locales:a}=this,n=a?.[0]?.locale??this.intl.getLocale(),e=s.get("currentLanguage");this.locales.filter(l=>l.locale===e).length===0&&s.set("currentLanguage",n)}async initPortalItemResourceT9nData(){try{let a=await w(this.portalItem);s.set("portalItemResource",a);let n=await D(a);s.set("lastSave",n.lastSave),s.set("portalItemResourceT9n",n??{})}catch{}}render(){return t(k,{key:"5eec7bc36e73be3b3b77b60660ff4da55631b1ea"},this.renderDialog(),this.renderPopoverTip())}renderDialog(){return t("calcite-dialog",{open:this.open,scale:"l",placement:"cover",onCalciteDialogClose:this.close.bind(this)},this.renderHeader(),this.renderContent(),this.renderPrimaryContent())}renderPopoverTip(){return t("calcite-popover",{label:"",referenceElement:"headerTip",placement:"trailing","auto-close":!0,closable:!0},t("div",{class:i.headerTip},this.messages?.headerTip))}renderHeader(){return t("header",{class:i.header,slot:"header-content"},this.renderHeaderText())}renderHeaderText(){let{messages:a}=this;return t("div",{class:i.headerText},t("span",null,a?.header),t("calcite-button",{id:"headerTip",appearance:"transparent"},t("calcite-icon",{icon:f.Popover,scale:"s"})))}renderSavingIndicator(){let a=this.messages?.saving;return t("div",{class:i.savingIndicator},t("calcite-loader",{label:a,inline:!0}),t("span",null,a))}renderContent(){let a=b(this.locales);return t("div",null,this.renderTopBar(),a?.length>0?this.renderUIData():this.renderNotice())}renderTopBar(){return t("div",{class:i.topBar},this.renderLeadingTopBarSection(),this.renderTrailingTopBarSection())}renderLeadingTopBarSection(){return t("div",{class:i.topBarSection},this.renderUserLocale(),this.renderCollapseSearchContainer())}renderUserLocale(){let a=this.messages?.languages,n=L(),e=a?.[n];return t("div",{class:i.userLangText},e)}renderCollapseSearchContainer(){return t("div",{class:i.collapseSearchContainer},this.renderExpandCollapseButton(),this.renderSearch())}renderExpandCollapseButton(){let{isCollapse:a,messages:n}=this,e=a?n?.collapseAll:n?.expandAll;return t(U,null,t("slot",{name:"primary-custom-action"}),t("slot",{name:"secondary-custom-action"}),t("calcite-button",{onClick:this.handleExpandCollapseAll.bind(this),appearance:"transparent","icon-start":f.ExpandCollapse},e))}renderSearch(){return t("instant-apps-language-translator-search",{onSuggestionSelected:this.onSuggestionSelect.bind(this),t9nPlaceholder:this.messages?.searchPlaceholder})}renderTrailingTopBarSection(){return t("div",{class:i.topBarSection},this.renderLanguageSelection(),t("slot",{name:"translation-custom-action"}))}renderLanguageSelection(){return t("calcite-label",{layout:"inline"},this.messages?.translatedLanguage,t("calcite-select",{label:"",onCalciteSelectChange:this.handleLanguageSelection.bind(this)},this.renderTranslatedLangOptions()))}renderTranslatedLangOptions(){let n=s.get("uiData")?.get("locales"),e=b(n),c=Object.keys(_.partial);return e?.map(l=>{let o=c.includes(l)?"partial":"full",p=_[o],{language:u,translated:h}=p[l],$=`${u} - ${h}`;return t("calcite-option",{key:`translated-lang-option-${l}`,value:l},$)})}renderUIData(){if(!d?.uiData)return;let a=m();return t("div",null,a?.map((n,e)=>this.renderUIDataItem(n,e,a.length)))}renderNotice(){let a=this.messages?.noLanguage;return t("calcite-notice",{open:!0,icon:"exclamation-mark-triangle",kind:"warning"},t("div",{slot:"title"},a?.title),t("div",{slot:"message"},a?.message))}renderUIDataItem(a,n,e){let c=this.appSettings?.translatedLanguageLabels?.[d.currentLanguage],l=n===e-1?i.lastItem:"",g=this.appSettings.content.find(o=>o.id===a);return t("instant-apps-language-translator-item",{key:`${a}-${n}`,class:l,fieldName:a,translatedLanguageLabels:c,setting:g,userLocaleInputOnChangeCallback:async(o,p)=>{try{await this.userLocaleInputOnChangeCallback(o,p);let u=s.get("portalItemResource");v(u)}catch{}},translatedLocaleInputOnChangeCallback:async(o,p,u,h)=>{try{await this.translatedLocaleInputOnChangeCallback(o,p,u,h),v(h)}catch{}}})}renderPrimaryContent(){return t("div",{class:i.primaryContent,slot:"footer-end"},s.get("saving")?this.renderSavingIndicator():null,s.get("lastSave")?t("span",{key:"last-save",class:i.lastAutoSave},this.messages?.lastAutoSave," ",this.intl.formatDate(s.get("lastSave"))):null,t("calcite-button",{onClick:()=>this.open=!1,class:i.closeButton},this.messages?.close))}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;let a=new Map(d.uiData);m().forEach(e=>a.get(e).expanded=this.isCollapse),s.set("uiData",a)}onSuggestionSelect(a){let n=a.detail,e=new Map(d.uiData),c=m(),l=g=>{let o=e.get(g);if(g===n){o.selected=!0;return}o.selected=!1};c.forEach(l),s.set("uiData",e)}close(){this.open=!1}handleLanguageSelection(a){let e=a.target.value;s.set("currentLanguage",e)}async getTranslationData(){return s.get("portalItemResourceT9n")}async setTranslationData(a){s.set("portalItemResourceT9n",a)}async getPortalItemResource(){return s.get("portalItemResource")}async batchWriteToPortalItemResource(a){s.set("saving",!0);try{let n=await this.getPortalItemResource();if(!n){s.set("saving",!1);return}let e=Date.now();s.set("lastSave",e);let l=[JSON.stringify({...a,lastSave:e})],g={type:"application/json"},o=new Blob(l,g);return await n.update(o),setTimeout(()=>s.set("saving",!1),1500),this.translatorDataUpdated.emit(),Promise.resolve()}catch(n){return console.error("Error writing to portal item resource: ",n),s.set("saving",!1),await Promise.reject(new Error("Failed to batch write to portal item resource"))}}get el(){return P(this)}static get watchers(){return{locales:["handleLocaleChange"],appSettings:["handleAppSettings"]}}};R.style=B;export{R as instant_apps_language_translator};
3
+ v1.0.0-next.20250604 */
4
+ import{a as D,b as w}from"./RTSUY2Q2.js";import{c as f,e as d,f as s,g as x,h as C,i as m,k as b,m as I,n as v}from"./ZPVOBCSG.js";import"./Z2XU5LLK.js";import{a as _,b as L}from"./OI44SOUH.js";import{C as S,D as y}from"./ERW3YZU6.js";import"./5JZHSF5Q.js";import{a as T,c as t,d as k,e as P,f as E,j as U}from"./KSWXMOC6.js";import"./FQLSHIBF.js";var A=".sc-instant-apps-language-translator-h{display:block}.sc-instant-apps-language-translator-h calcite-modal.sc-instant-apps-language-translator{--calcite-modal-content-padding:0}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header.sc-instant-apps-language-translator{display:flex;justify-content:space-between;width:100%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-text.sc-instant-apps-language-translator{font-size:18px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__writing-icon.sc-instant-apps-language-translator{display:flex;justify-content:center;align-items:center;margin-right:5px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__close-button.sc-instant-apps-language-translator{width:175px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-tip.sc-instant-apps-language-translator{padding:20px;max-width:45vw}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator{display:flex;width:100%;position:sticky;top:-2%;background:var(--calcite-color-foreground-1);z-index:1}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator calcite-label.sc-instant-apps-language-translator{--calcite-label-margin-bottom:0;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:0.5%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__user-lang-text.sc-instant-apps-language-translator{font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:first-child{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:nth-child(2) calcite-select.sc-instant-apps-language-translator{width:255px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator calcite-input.sc-instant-apps-language-translator{width:300px;margin-left:30px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator{display:flex;align-items:center}.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__close-button.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__last-auto-save.sc-instant-apps-language-translator{margin-right:20px}.ck.ck-reset.ck-editor.ck-rounded-corners.sc-instant-apps-language-translator{margin-top:10px !important;margin-left:55px !important}.ck-editor__editable.sc-instant-apps-language-translator{height:70px !important;font-size:0.875rem !important;line-height:1.375 !important}.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:first-child,.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:last-child{--ck-spacing-large:0.5rem !important}.sc-instant-apps-language-translator-h:dir(rtl) .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__close-button.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h:dir(rtl) .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h:dir(rtl) .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__last-auto-save.sc-instant-apps-language-translator{margin-right:unset;margin-left:20px}",B=A,r="instant-apps-language-translator",i={BASE:r,header:`${r}__header`,headerText:`${r}__header-text`,savingIndicator:`${r}__saving-indicator`,closeButton:`${r}__close-button`,headerTip:`${r}__header-tip`,topBar:`${r}__top-bar`,topBarSection:`${r}__top-bar-section`,collapseSearchContainer:`${r}__collapse-search-container`,userLangText:`${r}__user-lang-text`,lastItem:`${r}--last-item`,writingIcon:`${r}__writing-icon`,primaryContent:`${r}__primary-content`,lastAutoSave:`${r}__last-auto-save`},R=class{constructor(a){T(this,a),this.translatorDataUpdated=E(this,"translatorDataUpdated",7),this.portalItem=void 0,this.appSettings=void 0,this.locales=void 0,this.open=!1,this.userLocaleInputOnChangeCallback=void 0,this.translatedLocaleInputOnChangeCallback=void 0,this.saving=!1,this.messages=void 0,this.isCollapse=!0}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}handleLocaleChange(){this.initUIData(),this.initSelectLanguage()}handleAppSettings(){this.initUIData(),this.initSelectLanguage()}componentWillLoad(){I()}async componentDidLoad(){this.initialize()}async initialize(){let[a,n]=await Promise.all([S(),y()]);this.intl=a,this.request=n,await this.initMessages(),this.initUIData(),this.initPortalItemResourceT9nData(),this.initSelectLanguage()}async initMessages(){try{let{el:a}=this,n=await C(a);return this.messages=n,Promise.resolve()}catch{return void await Promise.reject(new Error("Failed to initialize messages"))}}initUIData(){let{appSettings:a,locales:n}=this,e=x(a,n);s.set("uiData",e)}initSelectLanguage(){if(!this.intl)return;let{locales:a}=this,n=a?.[0]?.locale??this.intl.getLocale(),e=s.get("currentLanguage");this.locales.filter(l=>l.locale===e).length===0&&s.set("currentLanguage",n)}async initPortalItemResourceT9nData(){try{let a=await w(this.portalItem);s.set("portalItemResource",a);let n=await D(a);s.set("lastSave",n.lastSave),s.set("portalItemResourceT9n",n??{})}catch{}}render(){return t(k,{key:"5eec7bc36e73be3b3b77b60660ff4da55631b1ea"},this.renderDialog(),this.renderPopoverTip())}renderDialog(){return t("calcite-dialog",{open:this.open,scale:"l",placement:"cover",onCalciteDialogClose:this.close.bind(this)},this.renderHeader(),this.renderContent(),this.renderPrimaryContent())}renderPopoverTip(){return t("calcite-popover",{label:"",referenceElement:"headerTip",placement:"trailing","auto-close":!0,closable:!0},t("div",{class:i.headerTip},this.messages?.headerTip))}renderHeader(){return t("header",{class:i.header,slot:"header-content"},this.renderHeaderText())}renderHeaderText(){let{messages:a}=this;return t("div",{class:i.headerText},t("span",null,a?.header),t("calcite-button",{id:"headerTip",appearance:"transparent"},t("calcite-icon",{icon:f.Popover,scale:"s"})))}renderSavingIndicator(){let a=this.messages?.saving;return t("div",{class:i.savingIndicator},t("calcite-loader",{label:a,inline:!0}),t("span",null,a))}renderContent(){let a=b(this.locales);return t("div",null,this.renderTopBar(),a?.length>0?this.renderUIData():this.renderNotice())}renderTopBar(){return t("div",{class:i.topBar},this.renderLeadingTopBarSection(),this.renderTrailingTopBarSection())}renderLeadingTopBarSection(){return t("div",{class:i.topBarSection},this.renderUserLocale(),this.renderCollapseSearchContainer())}renderUserLocale(){let a=this.messages?.languages,n=L(),e=a?.[n];return t("div",{class:i.userLangText},e)}renderCollapseSearchContainer(){return t("div",{class:i.collapseSearchContainer},this.renderExpandCollapseButton(),this.renderSearch())}renderExpandCollapseButton(){let{isCollapse:a,messages:n}=this,e=a?n?.collapseAll:n?.expandAll;return t(U,null,t("slot",{name:"primary-custom-action"}),t("slot",{name:"secondary-custom-action"}),t("calcite-button",{onClick:this.handleExpandCollapseAll.bind(this),appearance:"transparent","icon-start":f.ExpandCollapse},e))}renderSearch(){return t("instant-apps-language-translator-search",{onSuggestionSelected:this.onSuggestionSelect.bind(this),t9nPlaceholder:this.messages?.searchPlaceholder})}renderTrailingTopBarSection(){return t("div",{class:i.topBarSection},this.renderLanguageSelection(),t("slot",{name:"translation-custom-action"}))}renderLanguageSelection(){return t("calcite-label",{layout:"inline"},this.messages?.translatedLanguage,t("calcite-select",{label:"",onCalciteSelectChange:this.handleLanguageSelection.bind(this)},this.renderTranslatedLangOptions()))}renderTranslatedLangOptions(){let n=s.get("uiData")?.get("locales"),e=b(n),c=Object.keys(_.partial);return e?.map(l=>{let o=c.includes(l)?"partial":"full",p=_[o],{language:u,translated:h}=p[l],$=`${u} - ${h}`;return t("calcite-option",{key:`translated-lang-option-${l}`,value:l},$)})}renderUIData(){if(!d?.uiData)return;let a=m();return t("div",null,a?.map((n,e)=>this.renderUIDataItem(n,e,a.length)))}renderNotice(){let a=this.messages?.noLanguage;return t("calcite-notice",{open:!0,icon:"exclamation-mark-triangle",kind:"warning"},t("div",{slot:"title"},a?.title),t("div",{slot:"message"},a?.message))}renderUIDataItem(a,n,e){let c=this.appSettings?.translatedLanguageLabels?.[d.currentLanguage],l=n===e-1?i.lastItem:"",g=this.appSettings.content.find(o=>o.id===a);return t("instant-apps-language-translator-item",{key:`${a}-${n}`,class:l,fieldName:a,translatedLanguageLabels:c,setting:g,userLocaleInputOnChangeCallback:async(o,p)=>{try{await this.userLocaleInputOnChangeCallback(o,p);let u=s.get("portalItemResource");v(u)}catch{}},translatedLocaleInputOnChangeCallback:async(o,p,u,h)=>{try{await this.translatedLocaleInputOnChangeCallback(o,p,u,h),v(h)}catch{}}})}renderPrimaryContent(){return t("div",{class:i.primaryContent,slot:"footer-end"},s.get("saving")?this.renderSavingIndicator():null,s.get("lastSave")?t("span",{key:"last-save",class:i.lastAutoSave},this.messages?.lastAutoSave," ",this.intl.formatDate(s.get("lastSave"))):null,t("calcite-button",{onClick:()=>this.open=!1,class:i.closeButton},this.messages?.close))}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;let a=new Map(d.uiData);m().forEach(e=>a.get(e).expanded=this.isCollapse),s.set("uiData",a)}onSuggestionSelect(a){let n=a.detail,e=new Map(d.uiData),c=m(),l=g=>{let o=e.get(g);if(g===n){o.selected=!0;return}o.selected=!1};c.forEach(l),s.set("uiData",e)}close(){this.open=!1}handleLanguageSelection(a){let e=a.target.value;s.set("currentLanguage",e)}async getTranslationData(){return s.get("portalItemResourceT9n")}async setTranslationData(a){s.set("portalItemResourceT9n",a)}async getPortalItemResource(){return s.get("portalItemResource")}async batchWriteToPortalItemResource(a){s.set("saving",!0);try{let n=await this.getPortalItemResource();if(!n){s.set("saving",!1);return}let e=Date.now();s.set("lastSave",e);let l=[JSON.stringify({...a,lastSave:e})],g={type:"application/json"},o=new Blob(l,g);return await n.update(o),setTimeout(()=>s.set("saving",!1),1500),this.translatorDataUpdated.emit(),Promise.resolve()}catch(n){return console.error("Error writing to portal item resource: ",n),s.set("saving",!1),await Promise.reject(new Error("Failed to batch write to portal item resource"))}}get el(){return P(this)}static get watchers(){return{locales:["handleLocaleChange"],appSettings:["handleAppSettings"]}}};R.style=B;export{R as instant_apps_language_translator};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a,b}from"./UTKAQVP4.js";import"./ZQ2HPN3W.js";import"./TXPPQ5K7.js";import"./57F2XN77.js";import"./DTQTQMKB.js";export{a as DiscussionEditorTypes,b as DiscussionSchema};
3
+ v1.0.0-next.20250604 */
4
+ import{a,b}from"./SCCCHUE7.js";import"./R3KXDLBC.js";import"./54BQVAZQ.js";import"./73M3K3MB.js";import"./FQLSHIBF.js";export{a as DiscussionEditorTypes,b as DiscussionSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a as m}from"./JMFIHU24.js";import{a as i}from"./QPNW6P3H.js";import"./Y2WO5VQQ.js";import{a as c}from"./2VPGZ7E2.js";import"./7H4LF6S3.js";import"./3DYJ4FTG.js";import"./WUYXX4RA.js";import"./KI6QHNPI.js";import{a as n,b as p}from"./UBMKB36W.js";import"./U6HIPEIC.js";import"./2I5J5JBB.js";import{a}from"./VNMQ4LFX.js";import{a as r}from"./HFPFPCEQ.js";import"./4FJC45LY.js";import"./XIH6ZMGJ.js";import"./YSQPEWEY.js";import"./FRU4NUKP.js";import"./S7I5NQIT.js";import"./LXCV6LJ6.js";import"./7IJWIQKS.js";import"./WOGXYHTW.js";import"./UTKAQVP4.js";import"./5DNXV7XL.js";import"./YLMFQSC4.js";import"./55EOCAZO.js";import"./QX2LVJEP.js";import"./EZJUU4SD.js";import"./SO2MJYUC.js";import"./NTM7VXP2.js";import"./OVZLS4VM.js";import"./7QH32TZC.js";import"./PZYR43RF.js";import"./XAABPBEY.js";import"./GD22AZGD.js";import"./7MLUC4ZF.js";import"./45GEUPJR.js";import"./ZMEBOR2G.js";import"./ZQ2HPN3W.js";import"./TXPPQ5K7.js";import"./57F2XN77.js";import"./DTQTQMKB.js";function s(e){return["myContent","favorites","organization","world"].map(o=>i("shared.fields.featuredContent",o,"item",{user:e}))}var T=async(e,l,t)=>{var o;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},...c(e,l.thumbnail,l.thumbnailUrl,"project",t.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 r(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await a(e,t)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await n(l.location,t.hubRequestOptions),options:await p(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.status.label`,elements:[{scope:"/properties/status",type:"Control",labelKey:`${e}.fields.status.label`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}},{type:"Section",labelKey:`${e}.sections.timeline.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.timeline.helperText`}},elements:[{scope:"/properties/view/properties/timeline",type:"Control",options:{control:"arcgis-hub-timeline-editor",showTitleAndDescription:!1}}]}]},{type:"Section",labelKey:"shared.sections.heroBanner.label",elements:[{type:"Section",labelKey:"shared.sections.heroActions.label",options:{section:"block",helperText:{labelKey:"shared.sections.heroActions.helperText"}},elements:[{scope:"/properties/view/properties/heroActions",type:"Control",options:{control:"hub-composite-input-action-links",type:"button",catalogs:s(t.currentUser),facets:[{label:`{{${e}.fields.callToAction.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.callToAction.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0}}]}]},{type:"Section",labelKey:`${e}.sections.view.label`,elements:[{type:"Section",labelKey:`${e}.sections.view.image.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.image.helperText`}},elements:[{labelKey:"shared.fields.featuredImage.label",scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:m((o=l.view)===null||o===void 0?void 0:o.featuredImageUrl,t.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields.featuredImage.sizeDescription"}}},{labelKey:"shared.fields.featuredImage.altText.label",scope:"/properties/view/properties/featuredImageAltText",type:"Control"}]},{type:"Section",labelKey:`${e}.sections.view.embed.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.embed.helperText`}},elements:[{scope:"/properties/view/properties/embeds",type:"Control",options:{control:"hub-composite-input-embeds"}}]},{type:"Section",labelKey:`${e}.sections.view.content.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.content.helperText`}},elements:[{scope:"/properties/view/properties/featuredContentIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:s(t.currentUser),facets:[{label:`{{${e}.fields.featuredContent.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.featuredContent.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0,showAddContent:!0}}]}]}]}};export{T as buildUiSchema};
3
+ v1.0.0-next.20250604 */
4
+ import{a as m}from"./6FMYJDB3.js";import{a as i}from"./ADCN5EQ6.js";import"./ZHGAX6R3.js";import{a as c}from"./MABGXJJX.js";import"./PBE7PDSN.js";import"./PDQQ3CKY.js";import"./CWNIFA6D.js";import"./PCE2GNPD.js";import{a as n,b as p}from"./JMLCAWVB.js";import"./YA4UNEDL.js";import"./CRZVA7XS.js";import{a}from"./EOMS3F3L.js";import{a as r}from"./NKQJ45UL.js";import"./CNEWKYEJ.js";import"./XC5VKQJJ.js";import"./6KZH4YCI.js";import"./VT5P4INT.js";import"./O6YU35I2.js";import"./OZDEHP24.js";import"./JVV2LRKV.js";import"./3OXV4AIJ.js";import"./SCCCHUE7.js";import"./PODWXGKR.js";import"./AWTEJER6.js";import"./Y4ZIUU3O.js";import"./YWL5BSMR.js";import"./OVYTYWMG.js";import"./OWQIRWGB.js";import"./3UOZA57X.js";import"./IJRPDGUW.js";import"./2ZYEO4QU.js";import"./HQKIH26Q.js";import"./MTDTWNGL.js";import"./EMZ6RPP3.js";import"./3R6FI5UM.js";import"./Y2XCXPZJ.js";import"./LPK5NKSR.js";import"./R3KXDLBC.js";import"./54BQVAZQ.js";import"./73M3K3MB.js";import"./FQLSHIBF.js";function s(e){return["myContent","favorites","organization","world"].map(o=>i("shared.fields.featuredContent",o,"item",{user:e}))}var T=async(e,l,t)=>{var o;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.purpose.maxLengthError"}]}},...c(e,l.thumbnail,l.thumbnailUrl,"project",t.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 r(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await a(e,t)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await n(l.location,t.hubRequestOptions),options:await p(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]},{type:"Section",labelKey:`${e}.sections.status.label`,elements:[{scope:"/properties/status",type:"Control",labelKey:`${e}.fields.status.label`,options:{control:"hub-field-input-select",enum:{i18nScope:`${e}.fields.status.enum`}}},{type:"Section",labelKey:`${e}.sections.timeline.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.timeline.helperText`}},elements:[{scope:"/properties/view/properties/timeline",type:"Control",options:{control:"arcgis-hub-timeline-editor",showTitleAndDescription:!1}}]}]},{type:"Section",labelKey:"shared.sections.heroBanner.label",elements:[{type:"Section",labelKey:"shared.sections.heroActions.label",options:{section:"block",helperText:{labelKey:"shared.sections.heroActions.helperText"}},elements:[{scope:"/properties/view/properties/heroActions",type:"Control",options:{control:"hub-composite-input-action-links",type:"button",catalogs:s(t.currentUser),facets:[{label:`{{${e}.fields.callToAction.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.callToAction.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0}}]}]},{type:"Section",labelKey:`${e}.sections.view.label`,elements:[{type:"Section",labelKey:`${e}.sections.view.image.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.image.helperText`}},elements:[{labelKey:"shared.fields.featuredImage.label",scope:"/properties/view/properties/featuredImage",type:"Control",options:{control:"hub-field-input-image-picker",imgSrc:m((o=l.view)===null||o===void 0?void 0:o.featuredImageUrl,t.requestOptions),maxWidth:727,maxHeight:484,aspectRatio:1.5,sizeDescription:{labelKey:"shared.fields.featuredImage.sizeDescription"}}},{labelKey:"shared.fields.featuredImage.altText.label",scope:"/properties/view/properties/featuredImageAltText",type:"Control"}]},{type:"Section",labelKey:`${e}.sections.view.embed.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.embed.helperText`}},elements:[{scope:"/properties/view/properties/embeds",type:"Control",options:{control:"hub-composite-input-embeds"}}]},{type:"Section",labelKey:`${e}.sections.view.content.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.view.content.helperText`}},elements:[{scope:"/properties/view/properties/featuredContentIds",type:"Control",options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:s(t.currentUser),facets:[{label:`{{${e}.fields.featuredContent.facets.type:translate}}`,key:"type",display:"multi-select",field:"type",options:[],operation:"OR",aggLimit:100},{label:`{{${e}.fields.featuredContent.facets.sharing:translate}}`,key:"access",display:"multi-select",field:"access",options:[],operation:"OR"}],showAllCollectionFacet:!0,showAddContent:!0}}]}]}]}};export{T as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
3
+ v1.0.0-next.20250604 */
4
4
  var e={"hub:initiative:events":!1,"hub:initiative:content":!0,"hub:initiative:discussions":!1},i=["hub:initiative","hub:initiative:create","hub:initiative:delete","hub:initiative:edit","hub:initiative:view","hub:initiative:owner","hub:initiative:canChangeAccess","hub:initiative:events","hub:initiative:content","hub:initiative:discussions","hub:initiative:workspace","hub:initiative:workspace:overview","hub:initiative:workspace:dashboard","hub:initiative:workspace:details","hub:initiative:workspace:metrics","hub:initiative:workspace:projects","hub:initiative:workspace:projects:member","hub:initiative:workspace:projects:manager","hub:initiative:workspace:settings","hub:initiative:workspace:collaborators","hub:initiative:workspace:content","hub:initiative:workspace:events","hub:initiative:workspace:metrics","hub:initiative:workspace:catalogs","hub:initiative:workspace:catalog","hub:initiative:workspace:catalog:content","hub:initiative:workspace:catalog:events","hub:initiative:workspace:associationGroup:create","hub:initiative:manage"],t=[{permission:"hub:initiative",services:["portal"],licenses:["hub-premium"]},{permission:"hub:initiative:create",dependencies:["hub:initiative"],authenticated:!0,privileges:["portal:user:createItem"]},{permission:"hub:initiative:view",services:["portal"],authenticated:!1,licenses:["hub-premium","hub-basic"]},{permission:"hub:initiative:owner",dependencies:["hub:initiative"],authenticated:!0,entityOwner:!0},{permission:"hub:initiative:edit",services:["portal"],authenticated:!0,entityEdit:!0,licenses:["hub-premium","hub-basic"]},{permission:"hub:initiative:delete",dependencies:["hub:initiative"],authenticated:!0,entityDelete:!0},{permission:"hub:initiative:canChangeAccess",dependencies:["hub:initiative"],authenticated:!0,assertions:[{property:"context:currentUser.privileges",type:"contains-some",value:["portal:admin:shareToPublic","portal:admin:shareToOrg","portal:user:shareToPublic","portal:user:shareToOrg"]},{property:"entity:itemControl",type:"eq",value:"admin"}]},{permission:"hub:initiative:events",dependencies:["hub:initiative:view"]},{permission:"hub:initiative:content",dependencies:["hub:initiative:edit"]},{permission:"hub:initiative:discussions",dependencies:["hub:initiative:view"]},{permission:"hub:initiative:workspace",dependencies:["hub:feature:workspace"]},{permission:"hub:initiative:workspace:overview",dependencies:["hub:initiative:workspace","hub:initiative:view"]},{permission:"hub:initiative:workspace:dashboard",dependencies:["hub:initiative:workspace","hub:initiative:view"]},{permission:"hub:initiative:workspace:details",dependencies:["hub:initiative:workspace","hub:initiative:edit"]},{permission:"hub:initiative:workspace:metrics",dependencies:["hub:initiative:workspace","hub:initiative:edit"]},{permission:"hub:initiative:workspace:projects",dependencies:["hub:initiative:workspace","hub:initiative:edit"]},{permission:"hub:initiative:workspace:projects:member",dependencies:["hub:initiative:workspace:projects"],assertions:[{property:"context:currentUser",type:"is-group-member",value:"entity:associations.groupId"}]},{permission:"hub:initiative:workspace:projects:manager",dependencies:["hub:initiative:workspace:projects"],assertions:[{property:"context:currentUser",type:"is-group-admin",value:"entity:associations.groupId"}]},{permission:"hub:initiative:workspace:settings",dependencies:["hub:initiative:workspace","hub:initiative:edit"]},{permission:"hub:initiative:workspace:collaborators",dependencies:["hub:initiative:workspace","hub:initiative:edit"]},{permission:"hub:initiative:workspace:content",dependencies:["hub:initiative:workspace","hub:initiative:edit"],availability:["alpha"]},{permission:"hub:initiative:workspace:events",dependencies:["hub:initiative:workspace","hub:initiative:edit"],availability:["alpha"]},{permission:"hub:initiative:workspace:metrics",dependencies:["hub:initiative:workspace","hub:initiative:edit"]},{permission:"hub:initiative:workspace:catalogs",dependencies:["hub:initiative:workspace","hub:feature:catalogs","hub:initiative:edit"]},{permission:"hub:initiative:workspace:catalog",dependencies:["hub:initiative:workspace","hub:initiative:edit"]},{permission:"hub:initiative:workspace:catalog:content",dependencies:["hub:initiative:workspace:catalog"]},{permission:"hub:initiative:workspace:catalog:events",dependencies:["hub:initiative:workspace:catalog","hub:event","hub:feature:catalogs:edit:advanced"]},{permission:"hub:initiative:manage",dependencies:["hub:initiative:edit"]},{permission:"hub:initiative:workspace:associationGroup:create",dependencies:["hub:initiative:workspace:projects","hub:group:create"]}];var r={"hub:project:events":!1,"hub:project:content":!0,"hub:project:discussions":!1},a=["hub:project","hub:project:create","hub:project:delete","hub:project:edit","hub:project:view","hub:project:owner","hub:project:canChangeAccess","hub:project:events","hub:project:content","hub:project:discussions","hub:project:associations","hub:project:workspace","hub:project:workspace:overview","hub:project:workspace:dashboard","hub:project:workspace:details","hub:project:workspace:initiatives","hub:project:workspace:settings","hub:project:workspace:collaborators","hub:project:workspace:content","hub:project:workspace:events","hub:project:workspace:metrics","hub:project:workspace:catalog","hub:project:workspace:catalog:content","hub:project:workspace:catalog:events","hub:project:manage"],n=[{permission:"hub:project",services:["portal"],licenses:["hub-premium"]},{permission:"hub:project:create",authenticated:!0,dependencies:["hub:project"],privileges:["portal:user:createItem"]},{permission:"hub:project:view",services:["portal"]},{permission:"hub:project:edit",services:["portal"],authenticated:!0,entityEdit:!0,licenses:["hub-premium","hub-basic"]},{permission:"hub:project:delete",dependencies:["hub:project"],authenticated:!0,entityDelete:!0},{permission:"hub:project:owner",dependencies:["hub:project"],authenticated:!0,entityOwner:!0},{permission:"hub:project:canChangeAccess",dependencies:["hub:project"],authenticated:!0,assertions:[{property:"context:currentUser.privileges",type:"contains-some",value:["portal:admin:shareToPublic","portal:admin:shareToOrg","portal:user:shareToPublic","portal:user:shareToOrg"]},{property:"entity:itemControl",type:"eq",value:"admin"}]},{permission:"hub:project:events",dependencies:["hub:project:view"],entityConfigurable:!0},{permission:"hub:project:content",dependencies:["hub:project:edit"]},{permission:"hub:project:discussions",dependencies:["hub:project:view"]},{permission:"hub:project:associations",dependencies:["hub:project:view"]},{permission:"hub:project:workspace"},{permission:"hub:project:workspace:overview",dependencies:["hub:project:workspace","hub:project:view"]},{permission:"hub:project:workspace:dashboard",dependencies:["hub:project:workspace","hub:project:view"]},{permission:"hub:project:workspace:details",dependencies:["hub:project:workspace","hub:project:edit"]},{permission:"hub:project:workspace:initiatives",dependencies:["hub:project:workspace","hub:project:associations","hub:project:edit"]},{permission:"hub:project:workspace:settings",dependencies:["hub:project:workspace","hub:project:edit"]},{permission:"hub:project:workspace:collaborators",dependencies:["hub:project:workspace","hub:project:edit"]},{permission:"hub:project:workspace:content",dependencies:["hub:project:workspace","hub:project:edit"],availability:["alpha"],environments:["qaext"]},{permission:"hub:project:workspace:events",dependencies:["hub:project:workspace","hub:project:edit"],availability:["alpha"],environments:["qaext"]},{permission:"hub:project:workspace:metrics",dependencies:["hub:project:workspace","hub:project:edit"]},{permission:"hub:project:workspace:catalog",dependencies:["hub:project:workspace","hub:project:edit"]},{permission:"hub:project:workspace:catalog:content",dependencies:["hub:project:workspace:catalog"]},{permission:"hub:project:workspace:catalog:events",dependencies:["hub:project:workspace:catalog","hub:event","hub:feature:catalogs:edit:advanced"]},{permission:"hub:project:manage",dependencies:["hub:project:edit"]}];export{e as a,i as b,t as c,r as d,a as e,n as f};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a as b}from"./Y2WO5VQQ.js";import{b as c}from"./YSQPEWEY.js";import{a as u}from"./FRU4NUKP.js";function a(t,e,r,s,n,l){let i={[n]:{targetEntity:n,filters:r}};return{schemaVersion:1,title:l||`{{${t}catalog.${e}:translate}}`,scopes:i,collections:s}}function f(t){return t&&t.slice(-1)!=="."?`${t}.`:t}function U(t,e,r,s){switch(r){case"item":return k(t,e,s);case"group":return E(t,e,s);case"event":return y(t,e,s);default:throw new Error(`Wellknown catalog not implemented for "${r}"`)}}function d(t,e){if(!e||!e.user)throw new Error(`User needed to get "${t}" catalog`)}function k(t,e,r){t=f(t);let s,n=u(r,"filters")||[],l=u(r,"context"),i=h(t,"item",r?.collectionNames);switch(e){case"myContent":d(e,r),s=a(t,e,[{predicates:[{owner:r.user.username}]},...n],i,"item");break;case"favorites":d(e,r),s=a(t,e,[{predicates:[{group:r.user.favGroupId}]},...n],i,"item");break;case"organization":d(e,r),s=a(t,e,[{predicates:[{orgid:r.user.orgId}]},...n],i,"item");break;case"partners":let o=l.trustedOrgIds.filter(p=>p!==l.currentUser.orgId&&p!==m(l));o.length&&(s=a(t,e,[{predicates:[{orgid:o,searchUserAccess:"includeTrustedOrgs"}]},...n],i,"item"));break;case"community":let g=m(l);g&&(s=a(t,e,[{predicates:[{orgid:g}]},...n],i,"item",l.isCommunityOrg?v(g,l):void 0));break;case"livingAtlas":d(e,r),s=a(t,e,[{predicates:[{owner:"Esri_LivingAtlas"}]}],i,"item");break;case"world":s=a(t,e,[{predicates:[{type:{not:["code attachment"]}}]},...n],i,"item");break}return s}function m(t){let e=t.trustedOrgs.find(r=>r.from.orgId===t.currentUser.orgId);return t.isCommunityOrg&&e?e.to.orgId:t.communityOrgId}function v(t,e){return e.trustedOrgs.find(s=>s.to.orgId===t).to.name}function E(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{targetEntity:"group",key:e,label:e,scope:{targetEntity:"group",filters:[{predicates:[{q:"*"}]}]}}],o=b(n,"currentUser.groups",[]).reduce((g,p)=>(p.userMembership.memberType==="admin"&&g.push(p.id),g),[]);switch(e){case"editGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:["updateitemcontrol"]}]},...l],i,"group");break;case"viewGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:{not:["updateitemcontrol"]}}]},...l],i,"group");break;case"allGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:[""]}]},...l],i,"group");break;case"myGroups":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.username")}]},...l],i,"group");break;case"orgGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"currentUser.orgId"),id:o}]},...l],i,"group");break;case"communityGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"communityOrgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"communityOrgId"),id:o}]},...l],i,"group");break;case"publicGroups":s=a(t,e,[{predicates:[{access:"public"}]},...l],i,"group");break}return s}function y(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{key:e,label:e,targetEntity:"event",include:[],scope:{targetEntity:"event",filters:[{predicates:[]}]}}];switch(e){case"myEvents":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.id")}]},...l],i,"event");break;case"orgEvents":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId")}]},...l],i,"event");break;case"worldEvents":s=a(t,e,[{predicates:[{access:["public","private","org"]}]},...l],i,"event");break}return s}function w(t,e){return{appAndMap:{key:"appAndMap",label:`{{${t}collection.appsAndMaps:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:[...c("app"),...c("map")]}]}]}},dataset:{key:"dataset",label:`{{${t}collection.dataset:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("dataset")}]}]}},document:{key:"document",label:`{{${t}collection.documents:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("document")}]}]}},feedback:{key:"feedback",label:`{{${t}collection.feedback:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("feedback")}]}]}},site:{key:"site",label:`{{${t}collection.sites:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("site")}]}]}},template:{key:"template",label:`{{${t}collection.templates:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("template")}]}]}},project:{key:"project",label:`{{${t}collection.projects:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("project")}]}]}},initiative:{key:"initiative",label:`{{${t}collection.initiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}},projectAndInitiative:{key:"projectAndInitiative",label:`{{${t}collection.projectsAndInitiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{operation:"OR",predicates:[{type:c("project")},{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}}}}function O(){return["appAndMap","dataset","document","feedback","site","project"]}function h(t,e,r){t=f(t);let s=w(t,e),n=O();return(r?.length?r:n).reduce((i,o)=>(s[o]&&i.push(s[o]),i),[])}export{U as a};
3
+ v1.0.0-next.20250604 */
4
+ import{a as b}from"./ZHGAX6R3.js";import{b as c}from"./6KZH4YCI.js";import{a as u}from"./VT5P4INT.js";function a(t,e,r,s,n,l){let i={[n]:{targetEntity:n,filters:r}};return{schemaVersion:1,title:l||`{{${t}catalog.${e}:translate}}`,scopes:i,collections:s}}function f(t){return t&&t.slice(-1)!=="."?`${t}.`:t}function U(t,e,r,s){switch(r){case"item":return k(t,e,s);case"group":return E(t,e,s);case"event":return y(t,e,s);default:throw new Error(`Wellknown catalog not implemented for "${r}"`)}}function d(t,e){if(!e||!e.user)throw new Error(`User needed to get "${t}" catalog`)}function k(t,e,r){t=f(t);let s,n=u(r,"filters")||[],l=u(r,"context"),i=h(t,"item",r?.collectionNames);switch(e){case"myContent":d(e,r),s=a(t,e,[{predicates:[{owner:r.user.username}]},...n],i,"item");break;case"favorites":d(e,r),s=a(t,e,[{predicates:[{group:r.user.favGroupId}]},...n],i,"item");break;case"organization":d(e,r),s=a(t,e,[{predicates:[{orgid:r.user.orgId}]},...n],i,"item");break;case"partners":let o=l.trustedOrgIds.filter(p=>p!==l.currentUser.orgId&&p!==m(l));o.length&&(s=a(t,e,[{predicates:[{orgid:o,searchUserAccess:"includeTrustedOrgs"}]},...n],i,"item"));break;case"community":let g=m(l);g&&(s=a(t,e,[{predicates:[{orgid:g}]},...n],i,"item",l.isCommunityOrg?v(g,l):void 0));break;case"livingAtlas":d(e,r),s=a(t,e,[{predicates:[{owner:"Esri_LivingAtlas"}]}],i,"item");break;case"world":s=a(t,e,[{predicates:[{type:{not:["code attachment"]}}]},...n],i,"item");break}return s}function m(t){let e=t.trustedOrgs.find(r=>r.from.orgId===t.currentUser.orgId);return t.isCommunityOrg&&e?e.to.orgId:t.communityOrgId}function v(t,e){return e.trustedOrgs.find(s=>s.to.orgId===t).to.name}function E(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{targetEntity:"group",key:e,label:e,scope:{targetEntity:"group",filters:[{predicates:[{q:"*"}]}]}}],o=b(n,"currentUser.groups",[]).reduce((g,p)=>(p.userMembership.memberType==="admin"&&g.push(p.id),g),[]);switch(e){case"editGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:["updateitemcontrol"]}]},...l],i,"group");break;case"viewGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:{not:["updateitemcontrol"]}}]},...l],i,"group");break;case"allGroups":d(e,r),s=a(t,e,[{predicates:[{capabilities:[""]}]},...l],i,"group");break;case"myGroups":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.username")}]},...l],i,"group");break;case"orgGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"currentUser.orgId"),id:o}]},...l],i,"group");break;case"communityGroups":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"communityOrgId"),searchUserAccess:"groupMember",searchUserName:u(n,"currentUser.username"),isviewonly:!1},{orgid:u(n,"communityOrgId"),id:o}]},...l],i,"group");break;case"publicGroups":s=a(t,e,[{predicates:[{access:"public"}]},...l],i,"group");break}return s}function y(t,e,r){let s,{context:n,filters:l=[]}=r||{};t=f(t);let i=[{key:e,label:e,targetEntity:"event",include:[],scope:{targetEntity:"event",filters:[{predicates:[]}]}}];switch(e){case"myEvents":d(e,r),s=a(t,e,[{predicates:[{owner:u(n,"currentUser.id")}]},...l],i,"event");break;case"orgEvents":d(e,r),s=a(t,e,[{predicates:[{orgid:u(n,"currentUser.orgId")}]},...l],i,"event");break;case"worldEvents":s=a(t,e,[{predicates:[{access:["public","private","org"]}]},...l],i,"event");break}return s}function w(t,e){return{appAndMap:{key:"appAndMap",label:`{{${t}collection.appsAndMaps:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:[...c("app"),...c("map")]}]}]}},dataset:{key:"dataset",label:`{{${t}collection.dataset:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("dataset")}]}]}},document:{key:"document",label:`{{${t}collection.documents:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("document")}]}]}},feedback:{key:"feedback",label:`{{${t}collection.feedback:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("feedback")}]}]}},site:{key:"site",label:`{{${t}collection.sites:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("site")}]}]}},template:{key:"template",label:`{{${t}collection.templates:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("template")}]}]}},project:{key:"project",label:`{{${t}collection.projects:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("project")}]}]}},initiative:{key:"initiative",label:`{{${t}collection.initiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{predicates:[{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}},projectAndInitiative:{key:"projectAndInitiative",label:`{{${t}collection.projectsAndInitiatives:translate}}`,targetEntity:e,include:[],scope:{targetEntity:e,filters:[{operation:"OR",predicates:[{type:c("project")},{type:c("initiative"),typekeywords:["hubInitiativeV2"]}]}]}}}}function O(){return["appAndMap","dataset","document","feedback","site","project"]}function h(t,e,r){t=f(t);let s=w(t,e),n=O();return(r?.length?r:n).reduce((i,o)=>(s[o]&&i.push(s[o]),i),[])}export{U as a};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250604 */
4
+ import{a as s}from"./O6YU35I2.js";import"./OZDEHP24.js";import"./JVV2LRKV.js";import"./3OXV4AIJ.js";import"./SCCCHUE7.js";import"./PODWXGKR.js";import"./AWTEJER6.js";import"./Y4ZIUU3O.js";import"./YWL5BSMR.js";import"./OVYTYWMG.js";import"./OWQIRWGB.js";import"./3UOZA57X.js";import"./IJRPDGUW.js";import"./2ZYEO4QU.js";import"./HQKIH26Q.js";import"./MTDTWNGL.js";import"./EMZ6RPP3.js";import"./3R6FI5UM.js";import"./Y2XCXPZJ.js";import"./LPK5NKSR.js";import"./R3KXDLBC.js";import"./54BQVAZQ.js";import"./73M3K3MB.js";import"./FQLSHIBF.js";var c=async(e,l,n)=>{let{isSharedUpdate:i,leavingDisallowed:t}=l;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[t]}],[{effect:s.DISABLE,conditions:[t]},{effect:s.DISABLE,conditions:[i]}]]},rules:[{effect:s.RESET,conditions:[t]},{effect:s.RESET,conditions:[i,{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}};export{c 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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a as r,b as c}from"./G25UYWU2.js";import{b as h}from"./QHY3HOJZ.js";import{D as n,I as l,c as i,d as s,o as a}from"./23KRBWNX.js";import"./DTQTQMKB.js";var d=i`/** @license
3
+ v1.0.0-next.20250604 */
4
+ import{a as r,b as c}from"./USOHU6ZJ.js";import{b as h}from"./XWJ5XRDA.js";import{D as n,I as l,c as i,d as s,o as a}from"./E7CZ4ZJ7.js";import"./FQLSHIBF.js";var d=i`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a as g}from"./WEJIR3KC.js";import{D as u,G as s,I as p,c as l,d as c,q as h}from"./23KRBWNX.js";import"./DTQTQMKB.js";var b=l`@layer{/** @license
3
+ v1.0.0-next.20250604 */
4
+ import{a as g}from"./F4VOMVZI.js";import{D as u,G as s,I as p,c as l,d as c,q as h}from"./E7CZ4ZJ7.js";import"./FQLSHIBF.js";var b=l`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a as d}from"./MEWYK3DQ.js";import"./62PWRVOA.js";import{a as T,d as I}from"./7B72B7FY.js";import"./M7NNYPVJ.js";import"./GSFDUUIV.js";import"./WUYXX4RA.js";import"./4FJC45LY.js";import"./XIH6ZMGJ.js";import"./FRU4NUKP.js";import"./BUGW2FJW.js";import{g as L,j as E}from"./XASSYP2N.js";import{c as l,e as r,f as c}from"./OUXGXK3J.js";import"./K22YDYDF.js";import{a as g,b as _}from"./G25UYWU2.js";import{b as k}from"./QHY3HOJZ.js";import{a as x}from"./WEJIR3KC.js";import{D as w,E as h,I as v,J as $,c as f,d as o,g as p,o as y,q as S}from"./23KRBWNX.js";import"./DTQTQMKB.js";var C=f`@layer{/** @license
3
+ v1.0.0-next.20250604 */
4
+ import{a as d}from"./DR4VMI7G.js";import"./KAN7CBK7.js";import{a as T,d as I}from"./7AYXAEZ4.js";import"./B5IEC4IT.js";import"./5TTXDO2X.js";import"./CWNIFA6D.js";import"./CNEWKYEJ.js";import"./XC5VKQJJ.js";import"./VT5P4INT.js";import"./3ML7QFWK.js";import{g as L,j as E}from"./6QFHZ3JL.js";import{c as l,e as r,f as c}from"./LACXORO5.js";import"./K4J7ONE5.js";import{a as g,b as _}from"./USOHU6ZJ.js";import{b as k}from"./XWJ5XRDA.js";import{a as x}from"./F4VOMVZI.js";import{D as w,E as h,I as v,J as $,c as f,d as o,g as p,o as y,q as S}from"./E7CZ4ZJ7.js";import"./FQLSHIBF.js";var C=f`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a as r}from"./WEJIR3KC.js";import{D as o,I as n,c as t,d as i,q as s}from"./23KRBWNX.js";import"./DTQTQMKB.js";var a=t`@layer{/** @license
3
+ v1.0.0-next.20250604 */
4
+ import{a as r}from"./F4VOMVZI.js";import{D as o,I as n,c as t,d as i,q as s}from"./E7CZ4ZJ7.js";import"./FQLSHIBF.js";var a=t`@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.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{s as i}from"./D6S3BMVV.js";import{a as l,c as s,d as c,e as r}from"./AAE7EK4I.js";import"./DTQTQMKB.js";var d=":host{display:block}",h=d,f="floating",C="instant-apps-control-panel",m="border-bottom: 1px solid var(--calcite-color-border-3)",p="components",_=`[slot="${p}"]`,x=class{constructor(t){l(this,t),this.components=[],this.view=void 0}async componentWillLoad(){this._handleComponents()}componentWillUpdate(){this._handleComponents()}render(){return s(c,{key:"da3ae85d12780699ce3a9172b89f9900122d5065"},s("slot",{key:"a3bf08049e83ce0c59e58214302d9409c6208e3c",name:p}))}_handleComponents(){let t=this._getComponentsNode();t&&(this._resetUI(t),this._attachComponents(t))}_attachComponents(t){this.components.forEach(this._attachmentComponent(t))}_attachmentComponent(t){return async(e,o)=>{let n=e.content;e.isExpand&&(n=await this._getExpand(e),e.expandIcon&&(n.expandIcon=e.expandIcon),e.collapseTooltip&&(n.collapseTooltip=e.collapseTooltip),e.expandTooltip&&(n.expandTooltip=e.expandTooltip)),n.container||(n.container=document.createElement("div")),t?.appendChild(n.container),o!==this.components.length-1&&(n.container.style=m)}}async _getExpand(t){let{view:e}=this,{content:o,focusTrapDisabled:n}=t,a=t?.expanded??!1;return await i({content:o,view:e,expanded:a,mode:f,group:C,focusTrapDisabled:!!n})}_getComponentsNode(){let t=_;return this.el.querySelector(t)}_resetUI(t){if(t.children.length>0){let{firstChild:o}=t;for(;o;)t.removeChild(o)}}get el(){return r(this)}};x.style=h;export{x as instant_apps_control_panel};
3
+ v1.0.0-next.20250604 */
4
+ import{s as i}from"./ERW3YZU6.js";import{a as l,c as s,d as c,e as r}from"./KSWXMOC6.js";import"./FQLSHIBF.js";var d=":host{display:block}",h=d,f="floating",C="instant-apps-control-panel",m="border-bottom: 1px solid var(--calcite-color-border-3)",p="components",_=`[slot="${p}"]`,x=class{constructor(t){l(this,t),this.components=[],this.view=void 0}async componentWillLoad(){this._handleComponents()}componentWillUpdate(){this._handleComponents()}render(){return s(c,{key:"da3ae85d12780699ce3a9172b89f9900122d5065"},s("slot",{key:"a3bf08049e83ce0c59e58214302d9409c6208e3c",name:p}))}_handleComponents(){let t=this._getComponentsNode();t&&(this._resetUI(t),this._attachComponents(t))}_attachComponents(t){this.components.forEach(this._attachmentComponent(t))}_attachmentComponent(t){return async(e,o)=>{let n=e.content;e.isExpand&&(n=await this._getExpand(e),e.expandIcon&&(n.expandIcon=e.expandIcon),e.collapseTooltip&&(n.collapseTooltip=e.collapseTooltip),e.expandTooltip&&(n.expandTooltip=e.expandTooltip)),n.container||(n.container=document.createElement("div")),t?.appendChild(n.container),o!==this.components.length-1&&(n.container.style=m)}}async _getExpand(t){let{view:e}=this,{content:o,focusTrapDisabled:n}=t,a=t?.expanded??!1;return await i({content:o,view:e,expanded:a,mode:f,group:C,focusTrapDisabled:!!n})}_getComponentsNode(){let t=_;return this.el.querySelector(t)}_resetUI(t){if(t.children.length>0){let{firstChild:o}=t;for(;o;)t.removeChild(o)}}get el(){return r(this)}};x.style=h;export{x as instant_apps_control_panel};
@@ -0,0 +1,4 @@
1
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
+ See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
+ v1.0.0-next.20250604 */
4
+ import{a as G}from"./CTJUD4LO.js";import{a as L}from"./OT3LBEYQ.js";import{b as j,f as P,m as K,n as _,o as U}from"./TTKYUHNY.js";import"./5TTXDO2X.js";import"./5NTBUHXP.js";import"./LFDYLJKA.js";import"./PBE7PDSN.js";import"./PDQQ3CKY.js";import{a as S}from"./CWNIFA6D.js";import"./PCE2GNPD.js";import"./YA4UNEDL.js";import"./CRZVA7XS.js";import{k as w}from"./CNEWKYEJ.js";import"./XC5VKQJJ.js";import"./6KZH4YCI.js";import"./VT5P4INT.js";import{b as A}from"./IJRPDGUW.js";import{a as c,b as p}from"./HQKIH26Q.js";import"./FQLSHIBF.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{a as e}from"./ZQ2HPN3W.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s as b};
3
+ v1.0.0-next.20250604 */
4
+ import{a as e}from"./R3KXDLBC.js";var n=["hub:content:edit","hub:content:settings","hub:content:discussions"],s=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{licenseInfo:{type:"string"},serverExtractCapability:{type:"boolean",enum:[!0,!1]},schedule:{type:"object"},_forceUpdate:{type:"array",items:{type:"boolean",enum:[!0]}},downloadFormats:{type:"array",items:{type:"object"}}})});export{n as a,s as b};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.0/esri/copyright.txt for details.
3
- v1.0.0-next.20250603.1 */
4
- import{e as P}from"./RCPW7BND.js";import{A as C,C as R,D as L,d as k,e as y}from"./D6S3BMVV.js";import"./BMKFZOGZ.js";import{a as S,c as e,d as E,e as $}from"./AAE7EK4I.js";import"./DTQTQMKB.js";var F=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}",K=F,o="instant-apps-social-share",I=".calcite-mode-dark",i={base:o,dialog:`${o}__dialog`,dialogEmbed:`${o}__dialog-embed`,dialogContent:`${o}__dialog-content`,options:`${o}__options`,tipContainer:`${o}__tip`,tipHeader:`${o}__tip-header`,tipContent:`${o}__tip-content`,icon:`${o}__icon`,iconContainer:`${o}__icon-container`,optionText:`${o}__option-text`,popoverButton:`${o}__popover-button`,layout:{vertical:`${o}__layout--vertical`,horizontal:`${o}__layout--horizontal`},xLogo:{light:`${o}__x-logo--light`,dark:`${o}__x-logo--dark`},success:{container:`${o}__success`,header:`${o}__success-header`,message:`${o}__success-message`,icon:`${o}__success-icon`},embed:{container:`${o}__embed`,header:`${o}__embed-header`,embedCode:{container:`${o}__embed-code`,textArea:`${o}__embed-code-text-area`,copyButton:`${o}__embed-code-copy-button`},textAreaText:`${o}__embed-text-area-text`,dimensions:{container:`${o}__embed-dimensions`,input:`${o}__embed-dimensions-input`}},rtl:{optionText:`${o}__option-text--rtl`,textArea:`${o}__text-area--rtl`}},W={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},j="https://arcg.is/prod/shorten",T="1",V=class{constructor(t){S(this,t),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice(),P(this),this.setupAutoCloseListeners(),this.mode==="popover"&&!this.isNativeShareEnabled&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",()=>{if(!this.shareListRef)return;this.shareListRef.children[0].focus()}),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&!this.isNativeShareEnabled&&(this.embedWidthRef?.addEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?this.popoverRef!=null&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(this.embedWidthRef?.removeEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.removeEventListener("change",this.updateDimensions.bind(this,"height")),this.dialogContentRef?.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?(this.popoverRef?.addEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef?.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):this.dialogContentRef?.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){if(!this.isNativeShareEnabled)if(t.code==="Tab"){if(!this.shareListRef)return;let a=t.target,s=this.shareListRef.children[0],n=this.shareListRef.children[this.shareListRef.children.length-1];t.shiftKey&&a===s?(t.preventDefault(),n.focus()):!t.shiftKey&&a===n&&(t.preventDefault(),s.focus())}else t.code==="Escape"&&(this.closePopover(),this.popoverButtonRef?.setFocus())}autoCloseCallback(){this.mode==="popover"?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){this.popoverButtonRef?.setFocus(),setTimeout(()=>{this.copied=!1},200)}updateDimensions(t){if(t==="width"){let a=this.embedWidthRef?.value??"0";this.embedWidth=Number.parseInt(a)}else{let a=this.embedHeightRef?.value??"0";this.embedHeight=Number.parseInt(a)}}render(){let t=this.copied&&this.mode==="popover"?this.renderSuccess():e("div",{class:i.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),a=this.shareIconsLayout==="vertical"?` ${i.layout.vertical}`:` ${i.layout.horizontal}`,s=` calcite-mode-${this.el.closest(I)?"dark":"light"}`,n=e("div",{key:"8a69bc57ea2c4905375782cf190655e39b2fadb3",ref:r=>this.dialogContentRef=r,class:`${i.dialog}${a}${s}`},t),c=this.removePopoverOffset?0:6;return e(E,{key:"70eacb6923a4184e19f9f3ba06965efda14641b8"},this.isNativeShareEnabled?this.renderButton():this.mode==="popover"?[e("calcite-popover",{ref:r=>{r&&(this.popoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":c,"pointer-disabled":this.removePopoverOffset},n),this.renderButton()]:[n,e("calcite-popover",{ref:r=>{r&&(this.copyLinkPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderSuccess()),e("calcite-popover",{ref:r=>{r&&(this.copyEmbedPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderEmbedSuccess())])}renderButton(){let t={onClick:s=>{this.isNativeShareEnabled?(s.stopPropagation(),this.handleShareItem("native-share")):this.togglePopover(s)},id:"shareButton",class:i.popoverButton,label:this.messages?.share?.label,title:this.messages?.share?.label,scale:this.shareButtonScale??this.scale},a=e("div",{class:i.iconContainer},e("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}));return this.shareButtonType==="button"?e("calcite-button",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,kind:this.shareButtonColor,appearance:"transparent"},a):e("calcite-action",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,appearance:"transparent",text:"",alignment:"center"},a)}renderSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},this.successMessage||t?.url))}renderEmbedSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},t?.embed))}renderOptions(){let t=this.messages?.options,a=document.dir==="rtl"?` ${i.rtl.optionText}`:"";return e("ul",{ref:s=>this.shareListRef=s,class:i.options,role:"menu"},e("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},e("calcite-icon",{icon:"link",scale:this.scale})),e("span",{class:`${i.optionText}${a}`},t?.link?.label)),this.socialMedia?[e("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderFacebookIcon()),e("span",{class:`${i.optionText}${a}`},t?.facebook?.label)),e("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderXIcon()),e("span",{class:`${i.optionText}${a}`},"X")),e("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderLinkedInIcon()),e("span",{class:`${i.optionText}${a}`},t?.linkedIn?.label)),e("li",{onClick:this.handleShareItem.bind(this,"bluesky"),onKeyDown:this.handleOptionKeyDown("bluesky"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderBlueSkyIcon()),e("span",{class:`${i.optionText}${a}`},t?.blueSky?.label))]:null)}handleOptionKeyDown(t){return a=>{let s=a.code;(s==="Space"||s==="Enter")&&this.handleShareItem(t)}}renderFacebookIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",null,e("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),e("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){let t=!!this.el.closest(I);return e("svg",{height:"100%",class:t?i.xLogo.dark:i.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),e("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderBlueSkyIcon(){return e("svg",{height:"100%",fill:"#0f85fe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))}renderLinkedInIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"g5891"},e("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),e("g",{id:"shapes"},e("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),e("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),e("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){let t=this.messages?.info;return e("div",{class:i.tipContainer},e("span",{class:i.tipHeader},e("calcite-icon",{icon:"lightbulb",scale:this.scale}),e("span",null,t?.label)),e("p",{class:i.tipContent},t?.tooltip))}renderEmbed(){let t=this.messages?.embed,a=document.dir==="rtl"?` ${i.rtl.textArea}`:"";return e("div",{class:i.embed.container},e("span",{class:i.embed.header},e("calcite-icon",{icon:"code",scale:this.scale}),e("span",null,this.messages?.embed?.label)),e("div",{class:i.embed.embedCode.container},e("div",{class:i.embed.embedCode.textArea},e("textarea",{ref:s=>this.embedCodeRef=s,cols:30,rows:5,readonly:!0,class:a,value:this.getEmbedCode()}),e("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:i.embed.embedCode.copyButton},e("calcite-icon",{icon:"copy",scale:this.scale}),e("span",null,t?.copy))),e("span",{class:i.embed.textAreaText},e("slot",{name:"text-area-text"})),e("div",{class:i.embed.dimensions.container},e("label",{class:i.embed.dimensions.input},e("span",null,t?.width),e("input",{ref:s=>this.embedWidthRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),e("label",{class:i.embed.dimensions.input},e("span",null,t?.height),e("input",{ref:s=>this.embedHeightRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){let a=t==="width"?this.embedWidthRef:this.embedHeightRef,s=t==="width"?"embedWidth":"embedHeight";return()=>{a&&Number.parseFloat(a.value)<=0&&(this[s]=Number.parseInt(T),a.value=T)}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){this.shareUrl=await this.generateShareUrl();let a=null,s=navigator?.userAgent?.includes("Chrome")??!1,n=(navigator?.userAgent?.includes("Safari")??!1)&&!s;!n&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let h=a||this.shareUrl;switch(t){case"link":navigator.clipboard.writeText(h),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&(this.copyLinkPopoverRef.open=!0,setTimeout(()=>this.copyLinkPopoverRef.open=!1,3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;n&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this.shortenUrl(this.shareUrl)||h));let f={url:encodeURI(h)},b=t==="x"?{...f,text:this.shareText}:f,u=(await R()).substitute(W[t],b);this.mode==="popover"&&this.closePopover(),n&&r?(r.location=u,r.focus()):window.open(encodeURI(u),"_blank")}break;case"native-share":let c={title:this.messages?.share?.label||"Share",text:this.shareText,url:encodeURI(h)};navigator?.canShare(c)?navigator.share(c).catch(r=>{console.error("Error using native share:",r)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(t){let n=(await(await L())(j,{query:{longUrl:t,f:"json"}}))?.data?.data?.url;if(n)return n.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout(()=>this.copyEmbedPopoverRef.open=!1,3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:t,y:a}=this.view.center,{spatialReference:s}=this.view,n=await y({...s.toJSON()}),h=await k({x:t,y:a,spatialReference:n}),c=await this.processPoint(h),{isWGS84:r,isWebMercator:f}=c.spatialReference,b=r||f;return this.generateShareUrlParams(c,b)}async processPoint(t){let{isWGS84:a,isWebMercator:s}=t.spatialReference;if(a||s)return t;let n=await C(),h=await y({wkid:4326});try{await n.load();let c=n.project(t,h);return Promise.resolve(c)}catch(c){return console.error("Failed to project point",c),await Promise.reject(new Error("Failed to project point"))}}generateShareUrlParams(t,a){let{longitude:s,latitude:n,x:h,y:c}=t;if(s===void 0||n===void 0)return this.shareUrl;let r=this.roundValue(a?s:h),f=this.roundValue(a?n:c),{zoom:b}=this.view,w=this.roundValue(b),u=this.view?.popup?.selectedFeature,z=this.view?.popup?.visible,g,_,v;if(u&&z&&u?.layer?.type==="feature"){let d=u?.layer;g=d?.id,_=u.attributes[d.objectIdField]}v=this.view.map?.allLayers.filter(d=>!d.visible).toArray().map(d=>d.id).toString().replaceAll(",",";");let{type:U}=this.view,{defaultUrlParams:m}=this,l=new URL(this.shareUrl),{searchParams:p}=l;if(p.get("center")&&p.delete("center"),p.get("level")&&p.delete("level"),p.get("selectedFeature")&&p.delete("selectedFeature"),p.get("hiddenLayers")&&p.delete("hiddenLayers"),p.get("viewpoint")&&p.delete("viewpoint"),U==="3d"){let{camera:d}=this.view,{heading:D,position:O,tilt:B}=d,{longitude:A,latitude:H,z:M}=O,x={longitude:this.roundValue(A,8),latitude:this.roundValue(H,8),z:this.roundValue(M,3),heading:this.roundValue(D,3),tilt:this.roundValue(B,3)},N=`cam:${x.longitude},${x.latitude},${x.z};${x.heading},${x.tilt}`;return m?.viewpoint!==!1&&l.searchParams.set("viewpoint",N),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}return m?.center!==!1&&l.searchParams.set("center",`${r};${f}`),m?.level!==!1&&l.searchParams.set("level",`${w}`),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}roundValue(t,a=4){return Number.parseFloat(t.toFixed(a))}isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}get el(){return $(this)}};V.style=K;export{V as instant_apps_social_share};
3
+ v1.0.0-next.20250604 */
4
+ import{e as P}from"./OI44SOUH.js";import{A as C,C as R,D as L,d as k,e as y}from"./ERW3YZU6.js";import"./5JZHSF5Q.js";import{a as S,c as e,d as E,e as $}from"./KSWXMOC6.js";import"./FQLSHIBF.js";var F=":host{display:block;--instant-apps-social-share-action-width:initial;--instant-apps-social-share-width--s:200px;--instant-apps-social-share-width--m:280px;--instant-apps-social-share-width--l:320px;--instant-apps-social-share-width-horizontal--s:300px;--instant-apps-social-share-width-horizontal--m:380px;--instant-apps-social-share-width-horizontal--l:420px;--instant-apps-social-share-background-color:var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color:transparent;--instant-apps-social-share-popover-button-icon-color:var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border:1px solid $border;--instant-apps-social-share-embed-text-area-text:#468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#ffffff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1% 5%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px 0}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:bold;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color 0.15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}",K=F,o="instant-apps-social-share",I=".calcite-mode-dark",i={base:o,dialog:`${o}__dialog`,dialogEmbed:`${o}__dialog-embed`,dialogContent:`${o}__dialog-content`,options:`${o}__options`,tipContainer:`${o}__tip`,tipHeader:`${o}__tip-header`,tipContent:`${o}__tip-content`,icon:`${o}__icon`,iconContainer:`${o}__icon-container`,optionText:`${o}__option-text`,popoverButton:`${o}__popover-button`,layout:{vertical:`${o}__layout--vertical`,horizontal:`${o}__layout--horizontal`},xLogo:{light:`${o}__x-logo--light`,dark:`${o}__x-logo--dark`},success:{container:`${o}__success`,header:`${o}__success-header`,message:`${o}__success-message`,icon:`${o}__success-icon`},embed:{container:`${o}__embed`,header:`${o}__embed-header`,embedCode:{container:`${o}__embed-code`,textArea:`${o}__embed-code-text-area`,copyButton:`${o}__embed-code-copy-button`},textAreaText:`${o}__embed-text-area-text`,dimensions:{container:`${o}__embed-dimensions`,input:`${o}__embed-dimensions-input`}},rtl:{optionText:`${o}__option-text--rtl`,textArea:`${o}__text-area--rtl`}},W={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?url={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},j="https://arcg.is/prod/shorten",T="1",V=class{constructor(t){S(this,t),this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.view=void 0,this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1,this.messages=void 0,this.opened=!1,this.copied=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600}componentDidLoad(){this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice(),P(this),this.setupAutoCloseListeners(),this.mode==="popover"&&!this.isNativeShareEnabled&&(this.opened&&(this.popoverRef.open=!0),this.popoverRef.addEventListener("calcitePopoverOpen",()=>{if(!this.shareListRef)return;this.shareListRef.children[0].focus()}),this.popoverRef.addEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))),this.embed&&!this.isNativeShareEnabled&&(this.embedWidthRef?.addEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.addEventListener("change",this.updateDimensions.bind(this,"height")))}disconnectedCallback(){document.documentElement.removeEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?this.popoverRef!=null&&(this.popoverRef.removeEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef.removeEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this)),this.popoverRef.removeEventListener("keydown",this.handlePopoverRefKeyDown.bind(this))):(this.embedWidthRef?.removeEventListener("change",this.updateDimensions.bind(this,"width")),this.embedHeightRef?.removeEventListener("change",this.updateDimensions.bind(this,"height")),this.dialogContentRef?.removeEventListener("click",this.stopPropagationCallback.bind(this)))}setupAutoCloseListeners(){document.documentElement.addEventListener("click",this.autoCloseCallback.bind(this)),this.mode==="popover"?(this.popoverRef?.addEventListener("click",this.stopPropagationCallback.bind(this)),this.popoverRef?.addEventListener("calcitePopoverClose",this.resetPopoverCopyState.bind(this))):this.dialogContentRef?.addEventListener("click",this.stopPropagationCallback.bind(this))}handlePopoverRefKeyDown(t){if(!this.isNativeShareEnabled)if(t.code==="Tab"){if(!this.shareListRef)return;let a=t.target,s=this.shareListRef.children[0],n=this.shareListRef.children[this.shareListRef.children.length-1];t.shiftKey&&a===s?(t.preventDefault(),n.focus()):!t.shiftKey&&a===n&&(t.preventDefault(),s.focus())}else t.code==="Escape"&&(this.closePopover(),this.popoverButtonRef?.setFocus())}autoCloseCallback(){this.mode==="popover"?(this.opened=!1,this.popoverRef.open=this.opened):(this.copyLinkPopoverRef&&(this.copyLinkPopoverRef.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef&&(this.copyEmbedPopoverRef.open=!1),this.inlineCopyEmbedOpened=!1)}stopPropagationCallback(t){t.stopPropagation()}resetPopoverCopyState(){this.popoverButtonRef?.setFocus(),setTimeout(()=>{this.copied=!1},200)}updateDimensions(t){if(t==="width"){let a=this.embedWidthRef?.value??"0";this.embedWidth=Number.parseInt(a)}else{let a=this.embedHeightRef?.value??"0";this.embedHeight=Number.parseInt(a)}}render(){let t=this.copied&&this.mode==="popover"?this.renderSuccess():e("div",{class:i.dialogContent},this.renderOptions(),this.displayTipText?this.renderTip():null,this.embed?this.renderEmbed():null),a=this.shareIconsLayout==="vertical"?` ${i.layout.vertical}`:` ${i.layout.horizontal}`,s=` calcite-mode-${this.el.closest(I)?"dark":"light"}`,n=e("div",{key:"8a69bc57ea2c4905375782cf190655e39b2fadb3",ref:r=>this.dialogContentRef=r,class:`${i.dialog}${a}${s}`},t),c=this.removePopoverOffset?0:6;return e(E,{key:"70eacb6923a4184e19f9f3ba06965efda14641b8"},this.isNativeShareEnabled?this.renderButton():this.mode==="popover"?[e("calcite-popover",{ref:r=>{r&&(this.popoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"shareButton",placement:"bottom-start",scale:this.scale,"overlay-positioning":this.popoverPositioning,"offset-distance":c,"pointer-disabled":this.removePopoverOffset},n),this.renderButton()]:[n,e("calcite-popover",{ref:r=>{r&&(this.copyLinkPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderSuccess()),e("calcite-popover",{ref:r=>{r&&(this.copyEmbedPopoverRef=r)},label:this.messages?.share?.label??"",referenceElement:"copyEmbedToClipboard",placement:this.inlineSuccessPopoverPlacement,scale:this.scale,overlayPositioning:"fixed"},this.renderEmbedSuccess())])}renderButton(){let t={onClick:s=>{this.isNativeShareEnabled?(s.stopPropagation(),this.handleShareItem("native-share")):this.togglePopover(s)},id:"shareButton",class:i.popoverButton,label:this.messages?.share?.label,title:this.messages?.share?.label,scale:this.shareButtonScale??this.scale},a=e("div",{class:i.iconContainer},e("calcite-icon",{icon:"share",scale:this.popoverButtonIconScale}));return this.shareButtonType==="button"?e("calcite-button",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,kind:this.shareButtonColor,appearance:"transparent"},a):e("calcite-action",{ref:s=>{!this.isNativeShareEnabled&&s&&(this.popoverButtonRef=s)},...t,appearance:"transparent",text:"",alignment:"center"},a)}renderSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},this.successMessage||t?.url))}renderEmbedSuccess(){let t=this.messages?.success;return e("div",{class:i.success.container},e("span",{class:i.success.header},e("span",{class:i.success.icon},e("calcite-icon",{icon:"check-circle-f",scale:this.scale})),t?.label),e("span",{class:i.success.message},t?.embed))}renderOptions(){let t=this.messages?.options,a=document.dir==="rtl"?` ${i.rtl.optionText}`:"";return e("ul",{ref:s=>this.shareListRef=s,class:i.options,role:"menu"},e("li",{id:"copyToClipboard",onClick:this.handleShareItem.bind(this,"link"),onKeyDown:this.handleOptionKeyDown("link"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},e("calcite-icon",{icon:"link",scale:this.scale})),e("span",{class:`${i.optionText}${a}`},t?.link?.label)),this.socialMedia?[e("li",{onClick:this.handleShareItem.bind(this,"facebook"),onKeyDown:this.handleOptionKeyDown("facebook"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderFacebookIcon()),e("span",{class:`${i.optionText}${a}`},t?.facebook?.label)),e("li",{onClick:this.handleShareItem.bind(this,"x"),onKeyDown:this.handleOptionKeyDown("x"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderXIcon()),e("span",{class:`${i.optionText}${a}`},"X")),e("li",{onClick:this.handleShareItem.bind(this,"linkedIn"),onKeyDown:this.handleOptionKeyDown("linkedIn"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderLinkedInIcon()),e("span",{class:`${i.optionText}${a}`},t?.linkedIn?.label)),e("li",{onClick:this.handleShareItem.bind(this,"bluesky"),onKeyDown:this.handleOptionKeyDown("bluesky"),role:"menuitem",tabindex:"0"},e("span",{class:i.icon},this.renderBlueSkyIcon()),e("span",{class:`${i.optionText}${a}`},t?.blueSky?.label))]:null)}handleOptionKeyDown(t){return a=>{let s=a.code;(s==="Space"||s==="Enter")&&this.handleShareItem(t)}}renderFacebookIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",null,e("path",{d:"M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z",style:{fill:"#1877f2",fillRule:"nonzero"}}),e("path",{d:"M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z",style:{fill:"#fff",fillRule:"nonzero"}})))}renderXIcon(){let t=!!this.el.closest(I);return e("svg",{height:"100%",class:t?i.xLogo.dark:i.xLogo.light,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("rect",{height:"400",style:{fill:"none"},width:"400",x:"56",y:"56"}),e("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:t?"white":"black"}))}renderBlueSkyIcon(){return e("svg",{height:"100%",fill:"#0f85fe",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},e("path",{d:"M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z"}))}renderLinkedInIcon(){return e("svg",{height:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"},version:"1.1",viewBox:"0 0 512 512",width:"100%",xmlns:"http://www.w3.org/2000/svg"},e("g",{id:"g5891"},e("path",{d:"M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z",id:"background",style:{fill:"#2867b2"}}),e("g",{id:"shapes"},e("rect",{height:"257.962",id:"rect11",style:{fill:"#fff"},width:"85.76",x:"61.053",y:"178.667"}),e("path",{d:"M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z",id:"path13-0",style:{fill:"#fff",fillRule:"nonzero"}}),e("path",{d:"M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z",id:"path15",style:{fill:"#fff",fillRule:"nonzero"}}))))}renderTip(){let t=this.messages?.info;return e("div",{class:i.tipContainer},e("span",{class:i.tipHeader},e("calcite-icon",{icon:"lightbulb",scale:this.scale}),e("span",null,t?.label)),e("p",{class:i.tipContent},t?.tooltip))}renderEmbed(){let t=this.messages?.embed,a=document.dir==="rtl"?` ${i.rtl.textArea}`:"";return e("div",{class:i.embed.container},e("span",{class:i.embed.header},e("calcite-icon",{icon:"code",scale:this.scale}),e("span",null,this.messages?.embed?.label)),e("div",{class:i.embed.embedCode.container},e("div",{class:i.embed.embedCode.textArea},e("textarea",{ref:s=>this.embedCodeRef=s,cols:30,rows:5,readonly:!0,class:a,value:this.getEmbedCode()}),e("button",{id:"copyEmbedToClipboard",onClick:this.copyEmbedCode.bind(this),class:i.embed.embedCode.copyButton},e("calcite-icon",{icon:"copy",scale:this.scale}),e("span",null,t?.copy))),e("span",{class:i.embed.textAreaText},e("slot",{name:"text-area-text"})),e("div",{class:i.embed.dimensions.container},e("label",{class:i.embed.dimensions.input},e("span",null,t?.width),e("input",{ref:s=>this.embedWidthRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("width"),value:this.embedWidth,min:"1"})),e("label",{class:i.embed.dimensions.input},e("span",null,t?.height),e("input",{ref:s=>this.embedHeightRef=s,type:"number",onKeyDown:s=>["e","E","+","-"].includes(s.key)&&s.preventDefault(),onChange:this.handleNumberInputOnChange("height"),value:this.embedHeight,min:"1"})))))}handleNumberInputOnChange(t){let a=t==="width"?this.embedWidthRef:this.embedHeightRef,s=t==="width"?"embedWidth":"embedHeight";return()=>{a&&Number.parseFloat(a.value)<=0&&(this[s]=Number.parseInt(T),a.value=T)}}togglePopover(t){t.stopPropagation(),this.opened=!this.opened,this.popoverRef.open=this.opened}closePopover(){this.opened=!1,this.popoverRef.open=this.opened}async handleShareItem(t){this.shareUrl=await this.generateShareUrl();let a=null,s=navigator?.userAgent?.includes("Chrome")??!1,n=(navigator?.userAgent?.includes("Safari")??!1)&&!s;!n&&this.shortenShareUrl&&(a=await this.shortenUrl(this.shareUrl));let h=a||this.shareUrl;switch(t){case"link":navigator.clipboard.writeText(h),this.embed&&(this.copyEmbedPopoverRef.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&(this.copyLinkPopoverRef.open=!0,setTimeout(()=>this.copyLinkPopoverRef.open=!1,3e3)),this.inlineCopyLinkOpened=!0,this.copied=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let r;n&&(r=window.open("","_blank"),this.shortenShareUrl&&(h=await this.shortenUrl(this.shareUrl)||h));let f={url:encodeURI(h)},b=t==="x"?{...f,text:this.shareText}:f,u=(await R()).substitute(W[t],b);this.mode==="popover"&&this.closePopover(),n&&r?(r.location=u,r.focus()):window.open(encodeURI(u),"_blank")}break;case"native-share":let c={title:this.messages?.share?.label||"Share",text:this.shareText,url:encodeURI(h)};navigator?.canShare(c)?navigator.share(c).catch(r=>{console.error("Error using native share:",r)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(t){let n=(await(await L())(j,{query:{longUrl:t,f:"json"}}))?.data?.data?.url;if(n)return n.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}copyEmbedCode(){navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.open=!1,this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.open=!0,setTimeout(()=>this.copyEmbedPopoverRef.open=!1,3e3),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:t,y:a}=this.view.center,{spatialReference:s}=this.view,n=await y({...s.toJSON()}),h=await k({x:t,y:a,spatialReference:n}),c=await this.processPoint(h),{isWGS84:r,isWebMercator:f}=c.spatialReference,b=r||f;return this.generateShareUrlParams(c,b)}async processPoint(t){let{isWGS84:a,isWebMercator:s}=t.spatialReference;if(a||s)return t;let n=await C(),h=await y({wkid:4326});try{await n.load();let c=n.project(t,h);return Promise.resolve(c)}catch(c){return console.error("Failed to project point",c),await Promise.reject(new Error("Failed to project point"))}}generateShareUrlParams(t,a){let{longitude:s,latitude:n,x:h,y:c}=t;if(s===void 0||n===void 0)return this.shareUrl;let r=this.roundValue(a?s:h),f=this.roundValue(a?n:c),{zoom:b}=this.view,w=this.roundValue(b),u=this.view?.popup?.selectedFeature,z=this.view?.popup?.visible,g,_,v;if(u&&z&&u?.layer?.type==="feature"){let d=u?.layer;g=d?.id,_=u.attributes[d.objectIdField]}v=this.view.map?.allLayers.filter(d=>!d.visible).toArray().map(d=>d.id).toString().replaceAll(",",";");let{type:U}=this.view,{defaultUrlParams:m}=this,l=new URL(this.shareUrl),{searchParams:p}=l;if(p.get("center")&&p.delete("center"),p.get("level")&&p.delete("level"),p.get("selectedFeature")&&p.delete("selectedFeature"),p.get("hiddenLayers")&&p.delete("hiddenLayers"),p.get("viewpoint")&&p.delete("viewpoint"),U==="3d"){let{camera:d}=this.view,{heading:D,position:O,tilt:B}=d,{longitude:A,latitude:H,z:M}=O,x={longitude:this.roundValue(A,8),latitude:this.roundValue(H,8),z:this.roundValue(M,3),heading:this.roundValue(D,3),tilt:this.roundValue(B,3)},N=`cam:${x.longitude},${x.latitude},${x.z};${x.heading},${x.tilt}`;return m?.viewpoint!==!1&&l.searchParams.set("viewpoint",N),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}return m?.center!==!1&&l.searchParams.set("center",`${r};${f}`),m?.level!==!1&&l.searchParams.set("level",`${w}`),g&&_&&m?.selectedFeature!==!1&&l.searchParams.set("selectedFeature",`${g};${_}`),v&&m?.hiddenLayers!==!1&&l.searchParams.set("hiddenLayers",v),l.search=decodeURIComponent(l.search),l.href}roundValue(t,a=4){return Number.parseFloat(t.toFixed(a))}isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}get el(){return $(this)}};V.style=K;export{V as instant_apps_social_share};