@esri/solutions-components 1.2.0-next.13 → 1.2.0-next.14

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 (473) hide show
  1. package/dist/cdn/{EJSHS63C.js → 275D3YQA.js} +2 -2
  2. package/dist/cdn/{P5PCO4JO.js → 27I2DU2C.js} +2 -2
  3. package/dist/cdn/{TZBJLNXJ.js → 27JI2VQ2.js} +2 -2
  4. package/dist/cdn/{Y55OXV6Y.js → 27LWIDZP.js} +2 -2
  5. package/dist/cdn/{RAJJT4B3.js → 2AN7ELSH.js} +2 -2
  6. package/dist/cdn/{CQKWXPD2.js → 2AXIORVV.js} +1 -1
  7. package/dist/cdn/{4JNGRSAC.js → 2DGB5L7S.js} +1 -1
  8. package/dist/cdn/2JNJ6NTC.js +18 -0
  9. package/dist/cdn/{K2I34C5P.js → 2KKY4D26.js} +2 -2
  10. package/dist/cdn/{RKSQHCLI.js → 2NEXO4CL.js} +2 -2
  11. package/dist/cdn/{YXWR4LGR.js → 2PQ2DS43.js} +2 -2
  12. package/dist/cdn/{RHNY7QXI.js → 2UWPI3SL.js} +1 -1
  13. package/dist/cdn/{J6NONFBS.js → 32CJQFYT.js} +1 -1
  14. package/dist/cdn/{S35QUYH6.js → 32KLJCZ5.js} +2 -2
  15. package/dist/cdn/{JN23XJLY.js → 35FQADFO.js} +2 -2
  16. package/dist/cdn/{JRZKK7MA.js → 3I7S3ZV4.js} +2 -2
  17. package/dist/cdn/{QTNQ6E24.js → 3JGSO6KR.js} +2 -2
  18. package/dist/cdn/{D33N2HTW.js → 3JLPYT3H.js} +2 -2
  19. package/dist/cdn/{AF45E6DN.js → 3QPYBQCK.js} +2 -2
  20. package/dist/cdn/{POWA43LB.js → 3R72A4LX.js} +2 -2
  21. package/dist/cdn/{JCGX73CW.js → 3SZTNCCQ.js} +2 -2
  22. package/dist/cdn/{WNXG3ZCI.js → 3TZNTRGM.js} +2 -2
  23. package/dist/cdn/{VTXQOB7L.js → 3XM3G7I5.js} +1 -1
  24. package/dist/cdn/{RB6DOS5Z.js → 47HZO7HH.js} +2 -2
  25. package/dist/cdn/4DG5M3F4.js +4 -0
  26. package/dist/cdn/{YCA4LRXE.js → 4DHQUG3W.js} +2 -2
  27. package/dist/cdn/{T6BC4NP5.js → 4FALCKMG.js} +2 -2
  28. package/dist/cdn/4GUQBFYH.js +18 -0
  29. package/dist/cdn/{YO533QFL.js → 4MS4GKD3.js} +2 -2
  30. package/dist/cdn/{UZAHM4E4.js → 4VTYPOLQ.js} +1 -1
  31. package/dist/cdn/{EGXYKGYI.js → 4WWV5LXT.js} +2 -2
  32. package/dist/cdn/{JC73ZWM4.js → 4X6WXZQL.js} +2 -2
  33. package/dist/cdn/{W3HTFD5Y.js → 4XVIRWML.js} +2 -2
  34. package/dist/cdn/{2CSZLHQK.js → 4Z3GVHCU.js} +2 -2
  35. package/dist/cdn/{SSXAOZJ5.js → 55PIVHXI.js} +2 -2
  36. package/dist/cdn/{2W3PXN6A.js → 55SZWBDG.js} +2 -2
  37. package/dist/cdn/{PW4JQUZM.js → 57VUM2OX.js} +2 -2
  38. package/dist/cdn/{EFUTSJBL.js → 5AGT5STX.js} +2 -2
  39. package/dist/cdn/{CYX3TOXQ.js → 5BLRWVVT.js} +2 -2
  40. package/dist/cdn/5BPJLXIU.js +4 -0
  41. package/dist/cdn/{3VAHLUQ4.js → 5D6QFA7E.js} +2 -2
  42. package/dist/cdn/{E5QWGIJK.js → 5EVX3HTC.js} +2 -2
  43. package/dist/cdn/5LY5OONV.js +18 -0
  44. package/dist/cdn/{4DJFOTO3.js → 5M3POXXX.js} +2 -2
  45. package/dist/cdn/{WLP4EB7V.js → 5OZ5KLPF.js} +2 -2
  46. package/dist/cdn/{5IFJ723U.js → 5VS5R36W.js} +2 -2
  47. package/dist/cdn/{VLPI3GRM.js → 64IH7HAU.js} +2 -2
  48. package/dist/cdn/{PXIMWP5D.js → 64KLEAWB.js} +2 -2
  49. package/dist/cdn/{264FY26S.js → 67YBSQOW.js} +2 -2
  50. package/dist/cdn/{TGA357DA.js → 6BYQHGKG.js} +2 -2
  51. package/dist/cdn/6CH6MP7M.js +18 -0
  52. package/dist/cdn/{XK3SNODM.js → 6HZDA6VL.js} +2 -2
  53. package/dist/cdn/{YJMNTY3L.js → 6KL3NJRR.js} +1 -1
  54. package/dist/cdn/{K5WH7A5V.js → 6KMU4IZC.js} +2 -2
  55. package/dist/cdn/{TZHAIY5U.js → 6MQTHJAJ.js} +2 -2
  56. package/dist/cdn/{M56EPKQ7.js → 6NTONBY4.js} +2 -2
  57. package/dist/cdn/6OXM73V7.js +4 -0
  58. package/dist/cdn/{4MCZLOOB.js → 6PK752UJ.js} +2 -2
  59. package/dist/cdn/{IV3H2HEK.js → 6UQXA4EH.js} +2 -2
  60. package/dist/cdn/{YYHJHXNM.js → 77F3Y4SZ.js} +2 -2
  61. package/dist/cdn/{X43BLFIH.js → 7BLXQDEK.js} +2 -2
  62. package/dist/cdn/{NP2V2NOI.js → 7C563I5Y.js} +2 -2
  63. package/dist/cdn/{NCYTPCR2.js → 7FDUBCB6.js} +2 -2
  64. package/dist/cdn/{AQOTRYZM.js → 7HCS7QDO.js} +2 -2
  65. package/dist/cdn/{W4MD3F6R.js → 7INSFWLF.js} +2 -2
  66. package/dist/cdn/{THJAL2CV.js → 7RXY54AE.js} +2 -2
  67. package/dist/cdn/{7HE7J72C.js → 7SYXERJO.js} +1 -1
  68. package/dist/cdn/7WEJILVE.js +4 -0
  69. package/dist/cdn/{OJXGKKGT.js → 7XLXELEX.js} +2 -2
  70. package/dist/cdn/{J7NOQ4JL.js → A437YTBB.js} +2 -2
  71. package/dist/cdn/{NKSKFR6W.js → AADW5ILT.js} +2 -2
  72. package/dist/cdn/{PZTUREPY.js → ACRHJFIK.js} +2 -2
  73. package/dist/cdn/{QBT6IQTV.js → AFVKHRR2.js} +2 -2
  74. package/dist/cdn/AKYVL4SJ.js +18 -0
  75. package/dist/cdn/{YBRSEZ67.js → AOB5K76I.js} +2 -2
  76. package/dist/cdn/{GXHFJX3X.js → AROFWN7J.js} +2 -2
  77. package/dist/cdn/{74VIRFHE.js → ATHCVVJJ.js} +1 -1
  78. package/dist/cdn/{FS57RN34.js → AU5GOE2S.js} +1 -1
  79. package/dist/cdn/{4RPHWQJR.js → AUHY5KDY.js} +2 -2
  80. package/dist/cdn/{KQY6F6TC.js → AVGRHD4G.js} +2 -2
  81. package/dist/cdn/{SRVRHHIV.js → B6MXVUM7.js} +2 -2
  82. package/dist/cdn/{O2EZB4WB.js → BH44LJSG.js} +2 -2
  83. package/dist/cdn/{AZIEZPYO.js → BMZSYER5.js} +1 -1
  84. package/dist/cdn/{X556NDQM.js → BNGZYVGD.js} +2 -2
  85. package/dist/cdn/{XNQ6DBW6.js → BPZYGUMF.js} +2 -2
  86. package/dist/cdn/{NL2ZCSNM.js → BT3PZ755.js} +1 -1
  87. package/dist/cdn/{62BBD2YR.js → BZ2BCVFJ.js} +2 -2
  88. package/dist/cdn/{TDTBNJ5F.js → BZGPGXVO.js} +2 -2
  89. package/dist/cdn/{2HWHSNQH.js → C44APEWJ.js} +2 -2
  90. package/dist/cdn/{PZEXCL57.js → CAOSAERX.js} +2 -2
  91. package/dist/cdn/{N53S6LBM.js → CDKJFB3T.js} +2 -2
  92. package/dist/cdn/{666PNIZR.js → CFSE4FBZ.js} +2 -2
  93. package/dist/cdn/{DCQ7GLZI.js → CJQCUJAM.js} +2 -2
  94. package/dist/cdn/{7JLC7H3K.js → CKNLHB2K.js} +2 -2
  95. package/dist/cdn/{UR5O5JWE.js → CNYLCR6J.js} +2 -2
  96. package/dist/cdn/{7K3Y26XM.js → CRJF3MOM.js} +2 -2
  97. package/dist/cdn/{BQ7CXSHY.js → CS2LIBSE.js} +2 -2
  98. package/dist/cdn/{MSH52ZAT.js → CUJAQZ7Q.js} +2 -2
  99. package/dist/cdn/{WG4X43JN.js → CVHMFFUJ.js} +2 -2
  100. package/dist/cdn/CWUQXXM2.js +4 -0
  101. package/dist/cdn/{E5JZ5Z2I.js → DA6O63VU.js} +2 -2
  102. package/dist/cdn/{4ADOOMTH.js → DDORSIZO.js} +2 -2
  103. package/dist/cdn/{JLNLIHGB.js → DEHAUXXO.js} +2 -2
  104. package/dist/cdn/{TZJ2HEJQ.js → DG3J22ET.js} +2 -2
  105. package/dist/cdn/{EUH67UW5.js → DGAAG2WP.js} +2 -2
  106. package/dist/cdn/{L7LPWUMH.js → DGALIRFU.js} +2 -2
  107. package/dist/cdn/{GDKA6GQ6.js → DJIPWE3W.js} +2 -2
  108. package/dist/cdn/{ZKHKSH45.js → DM2QASNK.js} +2 -2
  109. package/dist/cdn/{J6423EDC.js → DMLSWP4B.js} +2 -2
  110. package/dist/cdn/{PPDJ32JJ.js → DUSKO4ZL.js} +2 -2
  111. package/dist/cdn/{CFYDKX3C.js → E5356ZMA.js} +2 -2
  112. package/dist/cdn/{LXW2GAAY.js → E7X4JPJZ.js} +2 -2
  113. package/dist/cdn/{T5PVRJMO.js → ED5F2TPC.js} +1 -1
  114. package/dist/cdn/{CX3A6KA3.js → EDFQHWSA.js} +2 -2
  115. package/dist/cdn/{3WIONUEL.js → EMDJVLHN.js} +2 -2
  116. package/dist/cdn/{OCYZRDAE.js → ERPKGUIG.js} +2 -2
  117. package/dist/cdn/{2AR77FHR.js → EW33PWBK.js} +1 -1
  118. package/dist/cdn/{N3MCXAZD.js → EYYXEXIY.js} +2 -2
  119. package/dist/cdn/{RUP3N6FQ.js → F4ML5DAH.js} +2 -2
  120. package/dist/cdn/{WXRMP3RF.js → F4YER46Y.js} +2 -2
  121. package/dist/cdn/{ZG2AHKGG.js → F6HR2OXE.js} +2 -2
  122. package/dist/cdn/{AKL67LTE.js → F6NAYPRN.js} +2 -2
  123. package/dist/cdn/{CNV5CX2O.js → FB7AKBYZ.js} +2 -2
  124. package/dist/cdn/{WUAYRTXU.js → FC7SCLY3.js} +2 -2
  125. package/dist/cdn/{RP3IBMYT.js → FCF6DXVK.js} +2 -2
  126. package/dist/cdn/{4362MOZ7.js → FFZOA5VY.js} +2 -2
  127. package/dist/cdn/{PZDHZUMS.js → FJLQNJZC.js} +2 -2
  128. package/dist/cdn/{EEE5US3J.js → FLMHLO43.js} +2 -2
  129. package/dist/cdn/FQUI4DDD.js +4 -0
  130. package/dist/cdn/{6ICMW2XL.js → FRA2DQWF.js} +2 -2
  131. package/dist/cdn/{2U7YXCJZ.js → FRWCYHC7.js} +2 -2
  132. package/dist/cdn/{GEOJT5HE.js → G3LGAMBQ.js} +2 -2
  133. package/dist/cdn/{OFZUHTRM.js → G57QOE4P.js} +2 -2
  134. package/dist/cdn/{OX5SNROI.js → G5TP26AI.js} +2 -2
  135. package/dist/cdn/{UORERW5B.js → G6MDAFDN.js} +2 -2
  136. package/dist/cdn/{EGJY2AK7.js → GAYYLVCV.js} +2 -2
  137. package/dist/cdn/{AYPV6SOA.js → GCFYG2IP.js} +2 -2
  138. package/dist/cdn/{OM4UKQNZ.js → GESWKJMD.js} +2 -2
  139. package/dist/cdn/{LOHXXUG6.js → GFHDLACH.js} +2 -2
  140. package/dist/cdn/{IBB7QBCT.js → GG5322XB.js} +2 -2
  141. package/dist/cdn/{WGQUTVDW.js → GICZBA3H.js} +2 -2
  142. package/dist/cdn/{Q46P3XZX.js → GKDBDC5Q.js} +2 -2
  143. package/dist/cdn/{KKUITPWU.js → GPTEAVC5.js} +2 -2
  144. package/dist/cdn/{4C7Y2IWS.js → GRL5XFU3.js} +2 -2
  145. package/dist/cdn/{HDGNDHWN.js → GZ4MUQVE.js} +2 -2
  146. package/dist/cdn/{46R75UZS.js → H3D27G4Z.js} +2 -2
  147. package/dist/cdn/{R7232VZW.js → H7LI4JLZ.js} +1 -1
  148. package/dist/cdn/{3GJ7UGOW.js → HAXUZW3B.js} +2 -2
  149. package/dist/cdn/{7DVUJMYC.js → HCGGITXI.js} +2 -2
  150. package/dist/cdn/{6BSZB4T2.js → HHCUJ2TU.js} +2 -2
  151. package/dist/cdn/{Y6LO3REZ.js → HKHRMYR3.js} +2 -2
  152. package/dist/cdn/{BXOZYAJQ.js → HU23U4PP.js} +2 -2
  153. package/dist/cdn/{JQMG7XAE.js → IEGO27TP.js} +2 -2
  154. package/dist/cdn/{MXL375F4.js → IIDHHI6H.js} +2 -2
  155. package/dist/cdn/IJBIJEFV.js +18 -0
  156. package/dist/cdn/{CO3K5ZRL.js → IJCGATIB.js} +2 -2
  157. package/dist/cdn/{XT5JYDSP.js → INIUEMX5.js} +2 -2
  158. package/dist/cdn/{TOWCBV67.js → IRZ5Q6P6.js} +2 -2
  159. package/dist/cdn/{5FXBCVIZ.js → IVMQMFER.js} +2 -2
  160. package/dist/cdn/{YRVDWBVN.js → IXHQQUJE.js} +2 -2
  161. package/dist/cdn/{4ATL3D6V.js → J4PD5ZQ7.js} +1 -1
  162. package/dist/cdn/{CKH5YBMU.js → JAY4QLVZ.js} +2 -2
  163. package/dist/cdn/{EJAMRCQS.js → JE6G7YCF.js} +2 -2
  164. package/dist/cdn/{QETK5HEL.js → JH3DG6QD.js} +2 -2
  165. package/dist/cdn/{OKH2UKNB.js → JKJ2E3QC.js} +2 -2
  166. package/dist/cdn/{X2HCZOFT.js → JLFUNC3I.js} +2 -2
  167. package/dist/cdn/{B4F5VQMS.js → JODMPBQI.js} +2 -2
  168. package/dist/cdn/{NR3CW5TL.js → JOSXFLJM.js} +2 -2
  169. package/dist/cdn/JQONUFIG.js +18 -0
  170. package/dist/cdn/{4DYJLPDZ.js → K743ADKQ.js} +2 -2
  171. package/dist/cdn/{6XLS7PCQ.js → K74PB5FR.js} +1 -1
  172. package/dist/cdn/{UCQ5Y3GX.js → KISPGYCP.js} +2 -2
  173. package/dist/cdn/{3OAMWWCL.js → KKXIEFPA.js} +2 -2
  174. package/dist/cdn/{TKKIU5DK.js → KLJWOWTJ.js} +2 -2
  175. package/dist/cdn/{BTVB74DT.js → KQIP55UX.js} +2 -2
  176. package/dist/cdn/{O2GEFWLI.js → KQWVAVJY.js} +2 -2
  177. package/dist/cdn/{UJFJN4KW.js → KTWF7YEW.js} +2 -2
  178. package/dist/cdn/{EGJPBCZR.js → KUPVTR4P.js} +2 -2
  179. package/dist/cdn/{B7WUGBLY.js → KVC6QETL.js} +2 -2
  180. package/dist/cdn/{UDPQ4ROC.js → KW7MDDY3.js} +1 -1
  181. package/dist/cdn/{MSWWPD5H.js → L2KEAIFF.js} +2 -2
  182. package/dist/cdn/{HPZC3A57.js → L3254555.js} +2 -2
  183. package/dist/cdn/{MCTAC35U.js → L3Q3HM35.js} +1 -1
  184. package/dist/cdn/{Z66C7X2A.js → L5VACHLZ.js} +2 -2
  185. package/dist/cdn/{VID2UZG4.js → LBTMKK7G.js} +2 -2
  186. package/dist/cdn/{R4WW5CCG.js → LDLY6XKA.js} +2 -2
  187. package/dist/cdn/{CQ6WSEAJ.js → LGVRRCS5.js} +2 -2
  188. package/dist/cdn/{K7DE43V5.js → LK5HDTLK.js} +2 -2
  189. package/dist/cdn/{ZKADU2PQ.js → LLKMGYSP.js} +2 -2
  190. package/dist/cdn/{45W7YE6A.js → LMAODDCB.js} +2 -2
  191. package/dist/cdn/{NRSYVSYQ.js → LOXYPSQZ.js} +2 -2
  192. package/dist/cdn/{VS7KGOXE.js → LQZ5FBXA.js} +2 -2
  193. package/dist/cdn/{GAJHTV7P.js → LR4UN32O.js} +2 -2
  194. package/dist/cdn/{5QB7S4ZH.js → LRR4ZR5H.js} +2 -2
  195. package/dist/cdn/{CDGFD3UK.js → LZ5XRNJU.js} +2 -2
  196. package/dist/cdn/{UKTZGR5H.js → M35BYI7Y.js} +2 -2
  197. package/dist/cdn/{XKQKAGOM.js → M3PIEBE5.js} +2 -2
  198. package/dist/cdn/{KBHGTYPO.js → M7P2ZTLV.js} +2 -2
  199. package/dist/cdn/{ZWZKBEYE.js → MDIV2FIJ.js} +2 -2
  200. package/dist/cdn/{SCJ2RD5L.js → MDNDODSS.js} +2 -2
  201. package/dist/cdn/{MGTUFHO4.js → MJ3U6PJY.js} +2 -2
  202. package/dist/cdn/{Z4GZ7VCW.js → MOSTA2DP.js} +1 -1
  203. package/dist/cdn/{P4IG3MVJ.js → MPNGG3EB.js} +2 -2
  204. package/dist/cdn/{WSK33HZC.js → MR4CUJA5.js} +2 -2
  205. package/dist/cdn/{LI5JOVXC.js → MR7TKHWW.js} +2 -2
  206. package/dist/cdn/{ILJ2CM7J.js → MSOGJSYT.js} +2 -2
  207. package/dist/cdn/{SB2EYKVI.js → N3V7I4KP.js} +1 -1
  208. package/dist/cdn/N5SMXPJM.js +4 -0
  209. package/dist/cdn/{QLVC7ZPZ.js → N6FSCHMI.js} +2 -2
  210. package/dist/cdn/{XBZDU3YA.js → NAEHM6JI.js} +2 -2
  211. package/dist/cdn/{AZUSEICT.js → NCQJQIGP.js} +2 -2
  212. package/dist/cdn/{OPU7UG63.js → NSBCSLHQ.js} +2 -2
  213. package/dist/cdn/{NSESHKON.js → NWFXWOAO.js} +2 -2
  214. package/dist/cdn/{5KJ2N6Y6.js → NY4VVXOI.js} +2 -2
  215. package/dist/cdn/{MZ3GB6EK.js → NZLIU3NZ.js} +2 -2
  216. package/dist/cdn/{GGC45SFJ.js → O7XMERIK.js} +2 -2
  217. package/dist/cdn/{34NMKZ4Y.js → OA5BDZZH.js} +2 -2
  218. package/dist/cdn/{OREJNY5T.js → OENFSWWX.js} +2 -2
  219. package/dist/cdn/{M63VDRSQ.js → OGINZV2L.js} +1 -1
  220. package/dist/cdn/{MFAP3QSG.js → OHAUP2TS.js} +2 -2
  221. package/dist/cdn/{ERNEEJXE.js → OVB6WWYJ.js} +2 -2
  222. package/dist/cdn/{UCG52BCL.js → OVDOY2TB.js} +3 -3
  223. package/dist/cdn/{IFOH36K3.js → OVEIHKZZ.js} +2 -2
  224. package/dist/cdn/{VBNUDSSG.js → OVVYNB4P.js} +2 -2
  225. package/dist/cdn/{ZLWPGFJV.js → OWNE3NKH.js} +4 -4
  226. package/dist/cdn/{MMAHFIB4.js → OWNKZH3J.js} +2 -2
  227. package/dist/cdn/{ROHOQMWQ.js → OWPOIGI3.js} +2 -2
  228. package/dist/cdn/{MX3WCXNM.js → OYR5JAG3.js} +3 -3
  229. package/dist/cdn/{3N2YHBI5.js → OZP2AS5I.js} +2 -2
  230. package/dist/cdn/{3ZD35GYW.js → OZXJ2M5O.js} +2 -2
  231. package/dist/cdn/{ASXFRSKX.js → PAWE5LYT.js} +2 -2
  232. package/dist/cdn/{37NQHUK5.js → PB5W7EYR.js} +2 -2
  233. package/dist/cdn/{533OGL7O.js → PCJDMYM4.js} +2 -2
  234. package/dist/cdn/{7ZRSM52L.js → PDBMILPZ.js} +1 -1
  235. package/dist/cdn/{GW27RGOK.js → PHDYMI4U.js} +2 -2
  236. package/dist/cdn/{PERMCVQL.js → PNSRB675.js} +2 -2
  237. package/dist/cdn/{ICFQB2ET.js → PNZWOZIO.js} +1 -1
  238. package/dist/cdn/{AOYCH2P3.js → POIPE7OT.js} +2 -2
  239. package/dist/cdn/{NGPU46XL.js → PUCYFTMU.js} +2 -2
  240. package/dist/cdn/{G6U42YTA.js → PZGSUW4E.js} +2 -2
  241. package/dist/cdn/{GENBEWQD.js → Q253POJJ.js} +1 -1
  242. package/dist/cdn/{B2KIFSSU.js → Q25NUDBB.js} +2 -2
  243. package/dist/cdn/{DSWPPG73.js → QBACNHT4.js} +2 -2
  244. package/dist/cdn/{2WL2CX5A.js → QBVRFM7C.js} +2 -2
  245. package/dist/cdn/{TB44WXEK.js → QESHG4WZ.js} +2 -2
  246. package/dist/cdn/{6HD5QOMC.js → QOSVCQEN.js} +2 -2
  247. package/dist/cdn/{OO6WR2YI.js → QTDYELK6.js} +1 -1
  248. package/dist/cdn/{CKKF4HOA.js → QU2RIV42.js} +2 -2
  249. package/dist/cdn/QWXBFNTX.js +4 -0
  250. package/dist/cdn/{BHKNTKZ7.js → R45VY7IL.js} +2 -2
  251. package/dist/cdn/{LVDQBRPQ.js → R4LWV66S.js} +2 -2
  252. package/dist/cdn/{YPTKKUQT.js → RDKSB4BZ.js} +2 -2
  253. package/dist/cdn/{ZP3Z6SIG.js → REM4XQLE.js} +2 -2
  254. package/dist/cdn/{EUE3LP5B.js → RFLPQTHR.js} +1 -1
  255. package/dist/cdn/{FSP7SPX2.js → RGEOJKWT.js} +1 -1
  256. package/dist/cdn/RHH5VDPN.js +4 -0
  257. package/dist/cdn/{4VSXNGPH.js → RKGMIWAB.js} +1 -1
  258. package/dist/cdn/{QZUTRMW6.js → RKI47VQ2.js} +2 -2
  259. package/dist/cdn/{TLY64OYB.js → RKIYQIND.js} +2 -2
  260. package/dist/cdn/{YHGLE6WS.js → RSERAAVS.js} +2 -2
  261. package/dist/cdn/RXTPHD3N.js +4 -0
  262. package/dist/cdn/{5OKDP5DK.js → S3UOX3S5.js} +2 -2
  263. package/dist/cdn/{XLUDDUX2.js → S5HZ3ZDX.js} +2 -2
  264. package/dist/cdn/{52TMIUZW.js → SCHYFVMA.js} +1 -1
  265. package/dist/cdn/{2Z5HA7D5.js → SDATDAKA.js} +2 -2
  266. package/dist/cdn/{RRQMNUDN.js → SE7AJBLC.js} +2 -2
  267. package/dist/cdn/{CFMJKVXR.js → SFSJYGXN.js} +1 -1
  268. package/dist/cdn/SIV3TXNM.js +18 -0
  269. package/dist/cdn/{XPNCU35H.js → SLDGR2DM.js} +2 -2
  270. package/dist/cdn/{ISEVSKNV.js → SQKB5YHF.js} +1 -1
  271. package/dist/cdn/{TWNSH3OD.js → T66ZKGRR.js} +1 -1
  272. package/dist/cdn/{3RO3BXDV.js → T6TRDLLW.js} +2 -2
  273. package/dist/cdn/{RAV53JFJ.js → TDYZLGUB.js} +2 -2
  274. package/dist/cdn/{555TJYQH.js → TFX7FLLB.js} +2 -2
  275. package/dist/cdn/{RDKNMWCS.js → TLXOAJK5.js} +2 -2
  276. package/dist/cdn/{5RDTSHLH.js → TX7XEQOI.js} +1 -1
  277. package/dist/cdn/{G2HMKJU3.js → TYRLD7J2.js} +2 -2
  278. package/dist/cdn/{XQJGWD7F.js → TYSGRYCE.js} +2 -2
  279. package/dist/cdn/{JD6EFQ6S.js → TZG6SUZL.js} +2 -2
  280. package/dist/cdn/{WUUFD7I3.js → U3YMG7NH.js} +2 -2
  281. package/dist/cdn/{EC2IHLSY.js → U62Y6WZO.js} +2 -2
  282. package/dist/cdn/{QL2DC6OE.js → UCPFFUQC.js} +2 -2
  283. package/dist/cdn/{3EOM2MFQ.js → ULJ5HIFK.js} +2 -2
  284. package/dist/cdn/{66KC2NXW.js → UPJWS62Y.js} +2 -2
  285. package/dist/cdn/{ZFIDAXHF.js → UYXUVFKE.js} +2 -2
  286. package/dist/cdn/{7WUQL7OH.js → V5TIHCQF.js} +2 -2
  287. package/dist/cdn/{OHBUH6XG.js → VC3WICDQ.js} +2 -2
  288. package/dist/cdn/{X4JROJKB.js → VD6EFCRJ.js} +2 -2
  289. package/dist/cdn/{3O5VSR67.js → VDCKQGGM.js} +2 -2
  290. package/dist/cdn/{MRGIGMEJ.js → VG77G3L3.js} +2 -2
  291. package/dist/cdn/{O466Y44Q.js → VHJXFNTB.js} +2 -2
  292. package/dist/cdn/{NSUKDWLQ.js → VJWAIQPC.js} +2 -2
  293. package/dist/cdn/{NFFXMGV3.js → VKLLQNEW.js} +2 -2
  294. package/dist/cdn/{2K763HQO.js → VN2Z7U4S.js} +2 -2
  295. package/dist/cdn/{UAD3Z7G6.js → VNHY7WVH.js} +2 -2
  296. package/dist/cdn/VNZX5NLF.js +4 -0
  297. package/dist/cdn/{YM6SKW7B.js → VQCSCWLK.js} +2 -2
  298. package/dist/cdn/{5YOZB2R2.js → VYCVM7AQ.js} +1 -1
  299. package/dist/cdn/{SICWCCBR.js → VYETQ5OQ.js} +2 -2
  300. package/dist/cdn/{RDOMCTUL.js → W5LN2VYT.js} +2 -2
  301. package/dist/cdn/{NQBEYMGR.js → WAOQ3JCJ.js} +2 -2
  302. package/dist/cdn/{K5AAAN6G.js → WC7D5CTI.js} +2 -2
  303. package/dist/cdn/WDUEH22A.js +4 -0
  304. package/dist/cdn/{QBLSQMGQ.js → WNWEV3AC.js} +2 -2
  305. package/dist/cdn/{QVON44ZD.js → WOF27X3U.js} +1 -1
  306. package/dist/cdn/{2ZUELHRU.js → WR2MBTUF.js} +2 -2
  307. package/dist/cdn/{RHKI3HOF.js → WTGX35K4.js} +2 -2
  308. package/dist/cdn/{3CBSLNB4.js → WTU66RJH.js} +2 -2
  309. package/dist/cdn/{EIWKHVBY.js → WTZ5V3MZ.js} +2 -2
  310. package/dist/cdn/{VC5VGOUO.js → WYUUHAX5.js} +1 -1
  311. package/dist/cdn/{U3X4JOWT.js → X5XLKUPY.js} +2 -2
  312. package/dist/cdn/{WRG3LT22.js → X73PGIQR.js} +2 -2
  313. package/dist/cdn/{XEYWQFQ5.js → X7S4K6O4.js} +2 -2
  314. package/dist/cdn/{NQMRDDCN.js → XEIR3HD2.js} +2 -2
  315. package/dist/cdn/{XSUH5ZWN.js → XGMVUDCR.js} +2 -2
  316. package/dist/cdn/{N2M3Q7OL.js → XJV42NPL.js} +2 -2
  317. package/dist/cdn/{SF3MI2B2.js → XQYMKMCD.js} +2 -2
  318. package/dist/cdn/{IIH6CLH2.js → XTSZRRWZ.js} +2 -2
  319. package/dist/cdn/{5MKFPVBN.js → XU5Y7VU2.js} +2 -2
  320. package/dist/cdn/{WXX3JVS7.js → XUFAW7KH.js} +2 -2
  321. package/dist/cdn/{VWVYEBDH.js → XUJUH4UK.js} +2 -2
  322. package/dist/cdn/{2XAZ3RTK.js → XUTQASNK.js} +2 -2
  323. package/dist/cdn/{V6OSHRQM.js → XW6UDQOC.js} +2 -2
  324. package/dist/cdn/{X5C4AZW2.js → Y2HBFVM4.js} +2 -2
  325. package/dist/cdn/{D5WGUMCY.js → Y3LT4KUT.js} +1 -1
  326. package/dist/cdn/{O4KKRMWS.js → Y3TZCUDN.js} +2 -2
  327. package/dist/cdn/Y4NZE64P.js +4 -0
  328. package/dist/cdn/{G2DGDDPX.js → Y4RGBYW4.js} +2 -2
  329. package/dist/cdn/{JBGL4JKZ.js → Y7LGH6KN.js} +1 -1
  330. package/dist/cdn/{F56KK6GE.js → YK3CVDW7.js} +2 -2
  331. package/dist/cdn/{NLLWLHBU.js → YK7CSNSO.js} +2 -2
  332. package/dist/cdn/{XUAIYIQ2.js → YYLWNW2V.js} +2 -2
  333. package/dist/cdn/{JM7YFJWW.js → YYS3KCN2.js} +2 -2
  334. package/dist/cdn/{M224VK7H.js → Z27EOVYK.js} +2 -2
  335. package/dist/cdn/{554YPOFT.js → Z6DZIVF7.js} +2 -2
  336. package/dist/cdn/{33SJC5CJ.js → ZASSV5QG.js} +2 -2
  337. package/dist/cdn/{22DI4MLQ.js → ZBPVWS4U.js} +2 -2
  338. package/dist/cdn/{ABV7A3TM.js → ZDRTTMHR.js} +2 -2
  339. package/dist/cdn/{4XAMBKX4.js → ZERWOJO6.js} +3 -3
  340. package/dist/cdn/{44CIVCB6.js → ZMWV3XIS.js} +2 -2
  341. package/dist/cdn/{BOSS7OMS.js → ZPI3URP2.js} +8 -6
  342. package/dist/cdn/{PWZHR4OS.js → ZPJLLGVT.js} +2 -2
  343. package/dist/cdn/{GAEULQXJ.js → ZQ53XSXJ.js} +2 -2
  344. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  345. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  346. package/dist/cdn/index.js +2 -2
  347. package/dist/chunks/Auth.js +1 -1
  348. package/dist/chunks/CardsFetcher.js +1 -1
  349. package/dist/chunks/appConfig.js +1 -1
  350. package/dist/chunks/cardFetchingUtils.js +1 -1
  351. package/dist/chunks/cardsHelpers.js +1 -1
  352. package/dist/chunks/common.js +1 -1
  353. package/dist/chunks/deployAppContexts.js +1 -1
  354. package/dist/chunks/downloadUtils.js +1 -1
  355. package/dist/chunks/getItemIcon.js +1 -1
  356. package/dist/chunks/helpers.js +1 -1
  357. package/dist/chunks/interfaces.js +1 -1
  358. package/dist/chunks/loadModules.js +1 -1
  359. package/dist/chunks/mapViewUtils.js +1 -1
  360. package/dist/chunks/pciUtils.js +1 -1
  361. package/dist/chunks/popupUtils.js +1 -1
  362. package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
  363. package/dist/chunks/privilegeUtils.js +1 -1
  364. package/dist/chunks/publicNotificationContext.js +1 -1
  365. package/dist/chunks/queryUtils.js +1 -1
  366. package/dist/chunks/runtime.js +1 -1
  367. package/dist/chunks/solution-store.js +1 -1
  368. package/dist/chunks/templates.js +1 -1
  369. package/dist/chunks/useT9n.js +1 -1
  370. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +0 -23
  371. package/dist/components/arcgis-solutions-assistant/customElement.js +97 -68
  372. package/dist/components/arcgis-solutions-assistant/index.d.ts +3 -3
  373. package/dist/components/arcgis-solutions-assistant/index.js +3 -3
  374. package/dist/components/arcgis-solutions-assistant/utils/querySolutions.d.ts +16 -0
  375. package/dist/components/basemap-gallery/customElement.js +1 -1
  376. package/dist/components/buffer-tools/customElement.js +1 -1
  377. package/dist/components/card-manager/customElement.js +1 -1
  378. package/dist/components/consent-manager/customElement.js +1 -1
  379. package/dist/components/create-feature/customElement.js +1 -1
  380. package/dist/components/create-related-feature/customElement.js +1 -1
  381. package/dist/components/crowdsource-manager/customElement.js +1 -1
  382. package/dist/components/crowdsource-reporter/customElement.js +3 -3
  383. package/dist/components/deduct-calculator/customElement.js +1 -1
  384. package/dist/components/delete-button/customElement.js +1 -1
  385. package/dist/components/delete-dialog/customElement.js +1 -1
  386. package/dist/components/edit-card/customElement.js +1 -1
  387. package/dist/components/feature-details/customElement.js +1 -1
  388. package/dist/components/feature-list/customElement.js +1 -1
  389. package/dist/components/field-selection/customElement.js +1 -1
  390. package/dist/components/floor-filter/customElement.js +1 -1
  391. package/dist/components/info-card/customElement.js +1 -1
  392. package/dist/components/json-editor/customElement.js +1 -1
  393. package/dist/components/layer-list/customElement.js +1 -1
  394. package/dist/components/layer-table/customElement.js +1 -1
  395. package/dist/components/map-card/customElement.js +1 -1
  396. package/dist/components/map-draw-tools/customElement.js +1 -1
  397. package/dist/components/map-fullscreen/customElement.js +1 -1
  398. package/dist/components/map-layer-picker/customElement.js +1 -1
  399. package/dist/components/map-legend/customElement.js +1 -1
  400. package/dist/components/map-picker/customElement.js +1 -1
  401. package/dist/components/map-search/customElement.js +1 -1
  402. package/dist/components/map-select-tools/customElement.js +1 -1
  403. package/dist/components/map-tools/customElement.js +1 -1
  404. package/dist/components/pci-calculator/customElement.js +1 -1
  405. package/dist/components/pdf-download/customElement.js +1 -1
  406. package/dist/components/public-notification/customElement.js +1 -1
  407. package/dist/components/refine-selection/customElement.js +1 -1
  408. package/dist/components/selection-tool/customElement.js +1 -1
  409. package/dist/components/solution-configuration/customElement.js +1 -1
  410. package/dist/components/solution-configure-dialog/customElement.js +1 -1
  411. package/dist/components/solution-configure-titles/customElement.js +1 -1
  412. package/dist/components/solution-contents/customElement.js +1 -1
  413. package/dist/components/solution-delete-dialog/customElement.js +1 -1
  414. package/dist/components/solution-deploy-dialog/customElement.js +1 -1
  415. package/dist/components/solution-deployed-card/customElement.js +1 -1
  416. package/dist/components/solution-deploying-dialog/customElement.js +1 -1
  417. package/dist/components/solution-details-card/customElement.js +2 -2
  418. package/dist/components/solution-details-panel/customElement.js +1 -1
  419. package/dist/components/solution-item/customElement.js +1 -1
  420. package/dist/components/solution-item-accordion/customElement.js +1 -1
  421. package/dist/components/solution-item-details/customElement.js +1 -1
  422. package/dist/components/solution-item-diagram/customElement.js +1 -1
  423. package/dist/components/solution-item-icon/customElement.js +1 -1
  424. package/dist/components/solution-item-sharing/customElement.js +1 -1
  425. package/dist/components/solution-organization-variables/customElement.js +1 -1
  426. package/dist/components/solution-resource-card/customElement.js +1 -1
  427. package/dist/components/solution-resource-item/customElement.js +1 -1
  428. package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
  429. package/dist/components/solution-social-share/customElement.js +1 -1
  430. package/dist/components/solution-spatial-ref/customElement.js +1 -1
  431. package/dist/components/solution-template-data/customElement.js +1 -1
  432. package/dist/components/solution-variables/customElement.js +1 -1
  433. package/dist/components/solutions-all-panel/customElement.js +6 -6
  434. package/dist/components/solutions-all-shell/customElement.js +23 -23
  435. package/dist/components/solutions-deploy-app/customElement.js +2 -2
  436. package/dist/components/solutions-deploy-app-nav/customElement.js +4 -4
  437. package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
  438. package/dist/components/solutions-deployed-panel/customElement.js +12 -12
  439. package/dist/components/solutions-deployed-shell/customElement.js +11 -11
  440. package/dist/components/solutions-filter-panel/customElement.js +18 -18
  441. package/dist/components/solutions-resource-panel/customElement.js +1 -1
  442. package/dist/components/solutions-resources/customElement.js +1 -1
  443. package/dist/components/solutions-resources-shell/customElement.js +1 -1
  444. package/dist/components/solutions-searchsort-toolbar/customElement.js +2 -2
  445. package/dist/components/spatial-ref/customElement.js +1 -1
  446. package/dist/components/store-manager/customElement.js +1 -1
  447. package/dist/docs/api.json +2 -2
  448. package/dist/docs/docs.json +2 -2
  449. package/dist/docs/web-types.json +1 -1
  450. package/dist/index.js +1 -1
  451. package/dist/loader.js +1 -1
  452. package/package.json +1 -1
  453. package/dist/cdn/4ENQBAQD.js +0 -4
  454. package/dist/cdn/5GDSQ7SZ.js +0 -18
  455. package/dist/cdn/5X4CMXBT.js +0 -4
  456. package/dist/cdn/B3QOZGKK.js +0 -18
  457. package/dist/cdn/D3K4ITIF.js +0 -4
  458. package/dist/cdn/DHEB777B.js +0 -4
  459. package/dist/cdn/EF5AJQH3.js +0 -18
  460. package/dist/cdn/FQY7OKCX.js +0 -4
  461. package/dist/cdn/IJVQHYFH.js +0 -4
  462. package/dist/cdn/JNL2IBVR.js +0 -18
  463. package/dist/cdn/LX5BVFDE.js +0 -4
  464. package/dist/cdn/MKKM47E4.js +0 -18
  465. package/dist/cdn/O7Q6YMZH.js +0 -4
  466. package/dist/cdn/QDOG42JX.js +0 -18
  467. package/dist/cdn/QEKRYT2T.js +0 -18
  468. package/dist/cdn/RY5ANV6A.js +0 -4
  469. package/dist/cdn/SLU6KLLC.js +0 -4
  470. package/dist/cdn/SLXWBGDY.js +0 -4
  471. package/dist/cdn/VGMWPYEH.js +0 -4
  472. package/dist/cdn/VGXU7I7U.js +0 -4
  473. package/dist/cdn/VYGWWP54.js +0 -18
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{a as O}from"./RAJJT4B3.js";import{A as H,C as M,D as F,d as B,e as L}from"./TWNSH3OD.js";import{b as U}from"./PZEXCL57.js";import"./LX5BVFDE.js";import"./UAD3Z7G6.js";import{B as S,C as m,D as h,E as I,G as a,H as b,I as C,h as T,i as n,j as w}from"./NL2ZCSNM.js";import"./GENBEWQD.js";var ee=T`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var(--calcite-icon-color);--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,i="instant-apps-social-share",N=".calcite-mode-dark",t={dialog:`${i}__dialog`,dialogContent:`${i}__dialog-content`,options:`${i}__options`,tipContainer:`${i}__tip`,tipHeader:`${i}__tip-header`,tipContent:`${i}__tip-content`,icon:`${i}__icon`,iconContainer:`${i}__icon-container`,optionText:`${i}__option-text`,popoverButton:`${i}__popover-button`,layout:{vertical:`${i}__layout--vertical`,horizontal:`${i}__layout--horizontal`},xLogo:{light:`${i}__x-logo--light`,dark:`${i}__x-logo--dark`},success:{container:`${i}__success`,header:`${i}__success-header`,message:`${i}__success-message`,icon:`${i}__success-icon`},embed:{container:`${i}__embed`,header:`${i}__embed-header`,embedCode:{container:`${i}__embed-code`,textArea:`${i}__embed-code-text-area`,copyButton:`${i}__embed-code-copy-button`},textAreaText:`${i}__embed-text-area-text`,dimensions:{container:`${i}__embed-dimensions`,input:`${i}__embed-dimensions-input`}},rtl:{optionText:`${i}__option-text--rtl`,textArea:`${i}__text-area--rtl`}},te={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},E=1,z=class extends I{constructor(){super(...arguments),this._messages=O({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=ee}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,E);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let l=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(l),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let p;r&&(p=window.open("","_blank"),this.shortenShareUrl&&(l=await this.shortenUrl(this.shareUrl)||l));let d={url:encodeURI(l)},f=e==="x"?{...d,text:this.shareText}:d,k=(await M()).substitute(te[e],f);this.mode==="popover"&&this.closePopover(),r&&p?(p.location=k,p.focus()):window.open(encodeURI(k),"_blank")}break;case"native-share":let v={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(l)};navigator?.canShare?.(v)?navigator.share(v).catch(p=>{console.error("Error using native share:",p)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await(await F())("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){await navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=await L({...o.toJSON()}),l=await B({x:e,y:s,spatialReference:r}),v=await this.processPoint(l),{isWGS84:p,isWebMercator:d}=v.spatialReference,f=p||d;return this.generateShareUrlParams(v,f)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=await H(),l=await L({wkid:4326}),v=this.view?.spatialReference??l;try{return await r.load(),r.execute(e,v)}catch(p){console.error("Failed to project point to outSpatialReference",p);try{let d=r.execute(e,l);return Promise.resolve(d)}catch(d){return console.error("Failed to project point to fallbackOutSpatialReference",d),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:l,y:v}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let p=this.roundValue(s?o:l),d=this.roundValue(s?r:v),{zoom:f}=this.view,k=this.roundValue(f),P=this.view?.popup?.selectedFeature,D=this.view?.popup?.visible,$,x;if(P&&D&&P?.layer?.type==="feature"){let _=P?.layer;$=_?.id,x=P.attributes[_.objectIdField]}let R=this.view.map?.allLayers.filter(_=>!_.visible).toArray().map(_=>_.id).toString().replaceAll(",",";"),{type:A}=this.view,{defaultUrlParams:g}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),A==="3d"){let{camera:_}=this.view,{heading:V,position:W,tilt:j}=_,{longitude:K,latitude:Z,x:G,y:X,z:q}=W,J=s?K:G,Q=s?Z:X,y={longitude:this.roundValue(J,8),latitude:this.roundValue(Q,8),z:this.roundValue(q,3),heading:this.roundValue(V,3),tilt:this.roundValue(j,3)},Y=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return g?.viewpoint!==!1&&c.searchParams.set("viewpoint",Y),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}return g?.center!==!1&&c.searchParams.set("center",`${p};${d}`),g?.level!==!1&&c.searchParams.set("level",`${k}`),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.isLinkCopiedToClipboard&&this.mode==="popover"?this.renderSuccess():n`<div class=${a(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(N)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,l=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${l} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${a(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${a(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${a(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${b({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${b({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(N);return n`<svg height=100% class=${a(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${b({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){return n`<svg height=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${b({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${b({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${b({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${b({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${a(t.tipContainer)}><span class=${a(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${a(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${a(t.embed.container)}><span class=${a(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${a(t.embed.embedCode.container)}><div class=${a(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${a(s)} .value=${S(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${a(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${a(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${a(t.embed.dimensions.container)}><label class=${a(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${S(this.embedWidth??"")} min=${E} ${h(this.embedWidthRef)}></label><label class=${a(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${S(this.embedHeight??"")} min=${E} ${h(this.embedHeightRef)}></label></div></div></div>`}};U("instant-apps-social-share",z);export{z as InstantAppsSocialShare};
3
+ v1.2.0-next.14 */
4
+ import{a as O}from"./2AN7ELSH.js";import{A as H,C as M,D as F,d as B,e as L}from"./T66ZKGRR.js";import{b as U}from"./CAOSAERX.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{B as S,C as m,D as h,E as I,G as a,H as b,I as C,h as T,i as n,j as w}from"./BT3PZ755.js";import"./Q253POJJ.js";var ee=T`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var(--calcite-icon-color);--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,i="instant-apps-social-share",N=".calcite-mode-dark",t={dialog:`${i}__dialog`,dialogContent:`${i}__dialog-content`,options:`${i}__options`,tipContainer:`${i}__tip`,tipHeader:`${i}__tip-header`,tipContent:`${i}__tip-content`,icon:`${i}__icon`,iconContainer:`${i}__icon-container`,optionText:`${i}__option-text`,popoverButton:`${i}__popover-button`,layout:{vertical:`${i}__layout--vertical`,horizontal:`${i}__layout--horizontal`},xLogo:{light:`${i}__x-logo--light`,dark:`${i}__x-logo--dark`},success:{container:`${i}__success`,header:`${i}__success-header`,message:`${i}__success-message`,icon:`${i}__success-icon`},embed:{container:`${i}__embed`,header:`${i}__embed-header`,embedCode:{container:`${i}__embed-code`,textArea:`${i}__embed-code-text-area`,copyButton:`${i}__embed-code-copy-button`},textAreaText:`${i}__embed-text-area-text`,dimensions:{container:`${i}__embed-dimensions`,input:`${i}__embed-dimensions-input`}},rtl:{optionText:`${i}__option-text--rtl`,textArea:`${i}__text-area--rtl`}},te={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},E=1,z=class extends I{constructor(){super(...arguments),this._messages=O({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=ee}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,E);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let l=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(l),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let p;r&&(p=window.open("","_blank"),this.shortenShareUrl&&(l=await this.shortenUrl(this.shareUrl)||l));let d={url:encodeURI(l)},f=e==="x"?{...d,text:this.shareText}:d,k=(await M()).substitute(te[e],f);this.mode==="popover"&&this.closePopover(),r&&p?(p.location=k,p.focus()):window.open(encodeURI(k),"_blank")}break;case"native-share":let v={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(l)};navigator?.canShare?.(v)?navigator.share(v).catch(p=>{console.error("Error using native share:",p)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await(await F())("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){await navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=await L({...o.toJSON()}),l=await B({x:e,y:s,spatialReference:r}),v=await this.processPoint(l),{isWGS84:p,isWebMercator:d}=v.spatialReference,f=p||d;return this.generateShareUrlParams(v,f)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=await H(),l=await L({wkid:4326}),v=this.view?.spatialReference??l;try{return await r.load(),r.execute(e,v)}catch(p){console.error("Failed to project point to outSpatialReference",p);try{let d=r.execute(e,l);return Promise.resolve(d)}catch(d){return console.error("Failed to project point to fallbackOutSpatialReference",d),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:l,y:v}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let p=this.roundValue(s?o:l),d=this.roundValue(s?r:v),{zoom:f}=this.view,k=this.roundValue(f),P=this.view?.popup?.selectedFeature,D=this.view?.popup?.visible,$,x;if(P&&D&&P?.layer?.type==="feature"){let _=P?.layer;$=_?.id,x=P.attributes[_.objectIdField]}let R=this.view.map?.allLayers.filter(_=>!_.visible).toArray().map(_=>_.id).toString().replaceAll(",",";"),{type:A}=this.view,{defaultUrlParams:g}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),A==="3d"){let{camera:_}=this.view,{heading:V,position:W,tilt:j}=_,{longitude:K,latitude:Z,x:G,y:X,z:q}=W,J=s?K:G,Q=s?Z:X,y={longitude:this.roundValue(J,8),latitude:this.roundValue(Q,8),z:this.roundValue(q,3),heading:this.roundValue(V,3),tilt:this.roundValue(j,3)},Y=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return g?.viewpoint!==!1&&c.searchParams.set("viewpoint",Y),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}return g?.center!==!1&&c.searchParams.set("center",`${p};${d}`),g?.level!==!1&&c.searchParams.set("level",`${k}`),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.isLinkCopiedToClipboard&&this.mode==="popover"?this.renderSuccess():n`<div class=${a(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(N)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,l=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${l} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${a(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${a(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${a(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${b({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${b({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(N);return n`<svg height=100% class=${a(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${b({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){return n`<svg height=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${b({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${b({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${b({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${b({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${a(t.tipContainer)}><span class=${a(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${a(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${a(t.embed.container)}><span class=${a(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${a(t.embed.embedCode.container)}><div class=${a(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${a(s)} .value=${S(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${a(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${a(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${a(t.embed.dimensions.container)}><label class=${a(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${S(this.embedWidth??"")} min=${E} ${h(this.embedWidthRef)}></label><label class=${a(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${S(this.embedHeight??"")} min=${E} ${h(this.embedHeightRef)}></label></div></div></div>`}};U("instant-apps-social-share",z);export{z as InstantAppsSocialShare};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import"./GENBEWQD.js";var e="\u041D\u044F\u043C\u0430\u0442\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044A\u0447\u043D\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0438, \u0437\u0430 \u0434\u0430 \u0438\u0437\u043F\u044A\u043B\u043D\u0438\u0442\u0435 \u0442\u0430\u0437\u0438 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u0421\u0432\u044A\u0440\u0436\u0435\u0442\u0435 \u0441\u0435 \u0441 \u0432\u0430\u0448\u0438\u044F \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440 \u043D\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u0430\u0442\u0430 ArcGIS \u0437\u0430 \u0441\u044A\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.",a="\u0422\u043E\u0437\u0438 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442 \u0435 \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0432\u0430\u043D \u043E\u0442 \u0431\u0435\u043B\u0435\u0436\u043D\u0438\u043A. \u0414\u043E\u0441\u0442\u044A\u043F\u044A\u0442 \u0434\u043E ArcGIS Notebooks \u0435 \u0431\u043B\u043E\u043A\u0438\u0440\u0430\u043D \u0437\u0430 \u0412\u0430\u0448\u0430\u0442\u0430 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u044F. \u0421\u0432\u044A\u0440\u0436\u0435\u0442\u0435 \u0441\u0435 \u0441 \u0412\u0430\u0448\u0438\u044F \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440, \u0437\u0430 \u0434\u0430 \u043A\u043E\u0440\u0438\u0433\u0438\u0440\u0430\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0442\u0430.",r="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 ${ additionalProperty }.",t="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0430 \u043D\u0430 \u0441\u0445\u0435\u043C\u0430\u0442\u0430 \u043D\u0430 \u0435\u0434\u043D\u0430 \u043E\u0442 \u0442\u0435\u0437\u0438: ${ schemaOptions }.",o="\u041E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E \u0434\u0430 \u0437\u0430\u043F\u0430\u0437\u0438\u0442\u0435 \u043A\u0430\u0440\u0442\u0430\u0442\u0430.",s="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0446\u0435\u043D\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u0440\u0435\u0432\u044A\u0440\u0442\u0435\u0442\u0435 \u043D\u0430\u0434\u043E\u043B\u0443, \u043A\u043E\u0440\u0438\u0433\u0438\u0440\u0430\u0439\u0442\u0435 \u0433\u0440\u0435\u0448\u043A\u0438\u0442\u0435 \u0438 \u043E\u0446\u0435\u043D\u0435\u0442\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0438\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E.",i="\u0412\u044A\u0437\u043D\u0438\u043A\u043D\u0430 \u0433\u0440\u0435\u0448\u043A\u0430 \u043F\u0440\u0438 \u0438\u0437\u043F\u044A\u043B\u043D\u0435\u043D\u0438\u0435\u0442\u043E \u043D\u0430 \u0430\u043D\u0430\u043B\u0438\u0437\u0430.",l="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0440\u0430\u0432\u043D\u0430 \u043D\u0430 \u0435\u0434\u043D\u0430 \u043E\u0442 \u0442\u0435\u0437\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u0435\u043D\u0438 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0438: ${ allowedValues }.",d="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u0445\u0440\u043E\u043D\u043E\u043B\u043E\u0433\u0438\u044F\u0442\u0430 \u043D\u0430 \u0430\u043D\u0430\u043B\u0438\u0437\u0430",n="\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435\u0442\u043E \u0437\u0430 \u0445\u0440\u043E\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u0435 \u043F\u044A\u043B\u043D\u043E. \u041F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043D\u044F\u043A\u043E\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u043E\u0442 \u0445\u0440\u043E\u043D\u043E\u043B\u043E\u0433\u0438\u044F\u0442\u0430 \u043D\u0430 \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u0438 \u043E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430 \u0437\u0430\u043F\u0430\u0437\u0438\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E.",c="\u0418\u043C\u0435\u0442\u043E \u043D\u0430 \u0443\u0441\u043B\u0443\u0433\u0430\u0442\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 \u0435\u0434\u0438\u043D \u0438\u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u0437\u043D\u0430\u043A\u0430.",m="\u0417\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u0438\u044F \u0441\u043B\u043E\u0439 \u043A\u0430\u0442\u043E \u0445\u043E\u0441\u0442\u0432\u0430\u043D \u043E\u0431\u0435\u043A\u0442\u0435\u043D \u0441\u043B\u043E\u0439 \u043D\u0435 \u0435 \u0437\u0430\u0432\u044A\u0440\u0448\u0435\u043D\u043E.",u="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u043B\u0443\u0447\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u043A\u043B\u044E\u0447\u043E\u0432\u0438 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430.",E="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435 \u043D\u0430 \u0441\u043B\u043E\u044F.",h="\u0421\u043B\u043E\u044F\u0442 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u0435\u043D.",y="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E\u0432\u0435\u0447\u0435 \u043E\u0442 ${ limit } \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438.",P="\u0412\u044A\u0437\u043D\u0438\u043A\u043D\u0430 \u0433\u0440\u0435\u0448\u043A\u0430 \u043F\u0440\u0438 \u0437\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0442\u043E\u0437\u0438 \u043C\u043E\u0434\u0435\u043B. \u041E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E \u0441\u043B\u0435\u0434 \u043C\u0430\u043B\u043A\u043E.",p="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E-\u043C\u0430\u043B\u043A\u043E \u043E\u0442 ${ limit } \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438.",S="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E-\u043C\u0430\u043B\u043A\u043E \u043E\u0442 ${ limit } \u0441\u0438\u043C\u0432\u043E\u043B\u0438.",$="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435 \u043D\u0430 \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u043E\u0442 \u043C\u043E\u0434\u0435\u043B. \u0423\u0432\u0435\u0440\u0435\u0442\u0435 \u0441\u0435, \u0447\u0435 \u043C\u043E\u0434\u0435\u043B\u0430 \u0441\u044A\u0449\u0435\u0441\u0442\u0432\u0443\u0432\u0430 \u0438 \u0447\u0435 \u0435 \u0434\u0430\u0434\u0435\u043D\u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u0437\u0430 \u0434\u043E\u0441\u0442\u044A\u043F.",v="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0438\u0437\u043F\u044A\u043B\u043D\u0435\u043D\u0438\u0435 \u043D\u0430 \u0437\u0430\u044F\u0432\u043A\u0430\u0442\u0430.",f="\u041D\u044F\u043C\u0430\u0442\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u0437\u0430 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442. <calcite-link target='_blank' href='${ docLink }'>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</calcite-link>",F="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0432\u043B\u0438\u0437\u0430\u043D\u0435 \u0432 \u043F\u043E\u0440\u0442\u0430\u043B\u0430.",I="\u0412\u0445\u043E\u0434\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u0438 \u043D\u0435 \u043C\u043E\u0433\u0430\u0442 \u0434\u0430 \u0441\u0435 \u043F\u0440\u043E\u0447\u0435\u0442\u0430\u0442.",k="${ dataPath } \u043D\u044F\u043C\u0430 \u0438\u043C\u0435 \u043D\u0430 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u043E ${ missingProperty }.",T="\u0421\u043B\u043E\u0439 \u0441 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0438 \u0432\u0435\u0447\u0435 \u0441\u044A\u0449\u0435\u0441\u0442\u0432\u0443\u0432\u0430 \u0441 \u0442\u043E\u0432\u0430 \u0438\u043C\u0435. \u0421\u043B\u043E\u0435\u0432\u0435\u0442\u0435 \u0441 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0438 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0430\u0442 \u043D\u0430\u0438\u043C\u0435\u043D\u0443\u0432\u0430\u043D\u0438 \u0443\u043D\u0438\u043A\u0430\u043B\u043D\u043E \u0432 \u0446\u044F\u043B\u0430\u0442\u0430 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u044F. \u041C\u043E\u043B\u044F, \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u043E \u0438\u043C\u0435.",L="\u0418\u0437\u0445\u043E\u0434\u043D\u043E\u0442\u043E \u0438\u043C\u0435 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 \u0435\u0434\u0438\u043D \u0438\u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u0437\u043D\u0430\u043A\u0430. <a href='${docLink}' target='_blank'>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435.</a>",b="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u0438\u044F \u0441\u043B\u043E\u0439 \u043A\u0430\u0442\u043E \u0445\u043E\u0441\u0442\u0432\u0430\u043D \u0441\u043B\u043E\u0439 \u043F\u043E\u0440\u0430\u0434\u0438 \u0435\u0434\u043D\u043E \u0438\u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u043F\u043E\u043B\u0435\u0442\u0430. \u0412\u0440\u044A\u0449\u0430\u043D\u0435 \u043D\u0430 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u0430 \u0437\u0430 \u0441\u044A\u0437\u0434\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u0441\u043B\u043E\u0439 \u0441 \u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u043F\u043E\u043B\u0435\u0442\u0430.",N="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0434\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u0437\u0430\u0434\u0430\u043D\u0438\u0435. \u041F\u0440\u0435\u0432\u044A\u0440\u0442\u0435\u0442\u0435 \u043D\u0430\u0434\u043E\u043B\u0443, \u043A\u043E\u0440\u0438\u0433\u0438\u0440\u0430\u0439\u0442\u0435 \u0433\u0440\u0435\u0448\u043A\u0438\u0442\u0435 \u0438 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u0439\u0442\u0435 \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043E\u0442\u043D\u043E\u0432\u043E.",g="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E\u043D\u0435 \u0435\u0434\u0438\u043D \u0441\u0438\u043C\u0432\u043E\u043B, \u043A\u043E\u0439\u0442\u043E \u043D\u0435 \u0435 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B.",V={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:l,failedToSaveHistory:d,fullSessionStorage:n,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:E,layerUnavailable:h,maxItems:y,mbFailedToSave:P,minItems:p,minLength:S,modelNotFound:$,networkError:v,noPermissionToAccessTool:f,portalLoadError:F,queryFeaturesError:I,requiredProperty:k,serviceNameExistsError:T,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:b,toolValidationError:N,whiteSpacePattern:g};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,V as default,i as defaultError,l as enumValues,d as failedToSaveHistory,n as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,E as layerLoadFailure,h as layerUnavailable,y as maxItems,P as mbFailedToSave,p as minItems,S as minLength,$ as modelNotFound,v as networkError,f as noPermissionToAccessTool,F as portalLoadError,I as queryFeaturesError,k as requiredProperty,T as serviceNameExistsError,L as specialCharactersInServiceNameError,b as temporaryLayerFieldsError,N as toolValidationError,g as whiteSpacePattern};
3
+ v1.2.0-next.14 */
4
+ import"./Q253POJJ.js";var e="\u041D\u044F\u043C\u0430\u0442\u0435 \u0434\u043E\u0441\u0442\u0430\u0442\u044A\u0447\u043D\u043E \u043A\u0440\u0435\u0434\u0438\u0442\u0438, \u0437\u0430 \u0434\u0430 \u0438\u0437\u043F\u044A\u043B\u043D\u0438\u0442\u0435 \u0442\u0430\u0437\u0438 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044F. \u0421\u0432\u044A\u0440\u0436\u0435\u0442\u0435 \u0441\u0435 \u0441 \u0432\u0430\u0448\u0438\u044F \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440 \u043D\u0430 \u0441\u0438\u0441\u0442\u0435\u043C\u0430\u0442\u0430 ArcGIS \u0437\u0430 \u0441\u044A\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.",a="\u0422\u043E\u0437\u0438 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442 \u0435 \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0432\u0430\u043D \u043E\u0442 \u0431\u0435\u043B\u0435\u0436\u043D\u0438\u043A. \u0414\u043E\u0441\u0442\u044A\u043F\u044A\u0442 \u0434\u043E ArcGIS Notebooks \u0435 \u0431\u043B\u043E\u043A\u0438\u0440\u0430\u043D \u0437\u0430 \u0412\u0430\u0448\u0430\u0442\u0430 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u044F. \u0421\u0432\u044A\u0440\u0436\u0435\u0442\u0435 \u0441\u0435 \u0441 \u0412\u0430\u0448\u0438\u044F \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440, \u0437\u0430 \u0434\u0430 \u043A\u043E\u0440\u0438\u0433\u0438\u0440\u0430\u0442\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0442\u0430.",r="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 ${ additionalProperty }.",t="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0430 \u043D\u0430 \u0441\u0445\u0435\u043C\u0430\u0442\u0430 \u043D\u0430 \u0435\u0434\u043D\u0430 \u043E\u0442 \u0442\u0435\u0437\u0438: ${ schemaOptions }.",o="\u041E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E \u0434\u0430 \u0437\u0430\u043F\u0430\u0437\u0438\u0442\u0435 \u043A\u0430\u0440\u0442\u0430\u0442\u0430.",s="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043E\u0446\u0435\u043D\u044F\u0432\u0430\u043D\u0435 \u043D\u0430 \u043A\u0440\u0435\u0434\u0438\u0442. \u041F\u0440\u0435\u0432\u044A\u0440\u0442\u0435\u0442\u0435 \u043D\u0430\u0434\u043E\u043B\u0443, \u043A\u043E\u0440\u0438\u0433\u0438\u0440\u0430\u0439\u0442\u0435 \u0433\u0440\u0435\u0448\u043A\u0438\u0442\u0435 \u0438 \u043E\u0446\u0435\u043D\u0435\u0442\u0435 \u043A\u0440\u0435\u0434\u0438\u0442\u0438\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E.",i="\u0412\u044A\u0437\u043D\u0438\u043A\u043D\u0430 \u0433\u0440\u0435\u0448\u043A\u0430 \u043F\u0440\u0438 \u0438\u0437\u043F\u044A\u043B\u043D\u0435\u043D\u0438\u0435\u0442\u043E \u043D\u0430 \u0430\u043D\u0430\u043B\u0438\u0437\u0430.",l="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u0440\u0430\u0432\u043D\u0430 \u043D\u0430 \u0435\u0434\u043D\u0430 \u043E\u0442 \u0442\u0435\u0437\u0438 \u043F\u043E\u0437\u0432\u043E\u043B\u0435\u043D\u0438 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442\u0438: ${ allowedValues }.",d="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u0445\u0440\u043E\u043D\u043E\u043B\u043E\u0433\u0438\u044F\u0442\u0430 \u043D\u0430 \u0430\u043D\u0430\u043B\u0438\u0437\u0430",n="\u0425\u0440\u0430\u043D\u0438\u043B\u0438\u0449\u0435\u0442\u043E \u0437\u0430 \u0445\u0440\u043E\u043D\u043E\u043B\u043E\u0433\u0438\u044F \u0435 \u043F\u044A\u043B\u043D\u043E. \u041F\u0440\u0435\u043C\u0430\u0445\u043D\u0435\u0442\u0435 \u043D\u044F\u043A\u043E\u0438 \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438 \u043E\u0442 \u0445\u0440\u043E\u043D\u043E\u043B\u043E\u0433\u0438\u044F\u0442\u0430 \u043D\u0430 \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u0438 \u043E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430 \u0437\u0430\u043F\u0430\u0437\u0438\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E.",c="\u0418\u043C\u0435\u0442\u043E \u043D\u0430 \u0443\u0441\u043B\u0443\u0433\u0430\u0442\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 \u0435\u0434\u0438\u043D \u0438\u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u0437\u043D\u0430\u043A\u0430.",m="\u0417\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u0438\u044F \u0441\u043B\u043E\u0439 \u043A\u0430\u0442\u043E \u0445\u043E\u0441\u0442\u0432\u0430\u043D \u043E\u0431\u0435\u043A\u0442\u0435\u043D \u0441\u043B\u043E\u0439 \u043D\u0435 \u0435 \u0437\u0430\u0432\u044A\u0440\u0448\u0435\u043D\u043E.",u="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u043B\u0443\u0447\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u043A\u043B\u044E\u0447\u043E\u0432\u0438 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u0430.",E="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435 \u043D\u0430 \u0441\u043B\u043E\u044F.",h="\u0421\u043B\u043E\u044F\u0442 \u043D\u0435 \u0435 \u043D\u0430\u043B\u0438\u0447\u0435\u043D.",y="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E\u0432\u0435\u0447\u0435 \u043E\u0442 ${ limit } \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438.",P="\u0412\u044A\u0437\u043D\u0438\u043A\u043D\u0430 \u0433\u0440\u0435\u0448\u043A\u0430 \u043F\u0440\u0438 \u0437\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435\u0442\u043E \u043D\u0430 \u0442\u043E\u0437\u0438 \u043C\u043E\u0434\u0435\u043B. \u041E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E \u0441\u043B\u0435\u0434 \u043C\u0430\u043B\u043A\u043E.",p="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E-\u043C\u0430\u043B\u043A\u043E \u043E\u0442 ${ limit } \u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438.",S="${ dataPath } \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E-\u043C\u0430\u043B\u043A\u043E \u043E\u0442 ${ limit } \u0441\u0438\u043C\u0432\u043E\u043B\u0438.",$="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0437\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435 \u043D\u0430 \u0435\u043B\u0435\u043C\u0435\u043D\u0442 \u043E\u0442 \u043C\u043E\u0434\u0435\u043B. \u0423\u0432\u0435\u0440\u0435\u0442\u0435 \u0441\u0435, \u0447\u0435 \u043C\u043E\u0434\u0435\u043B\u0430 \u0441\u044A\u0449\u0435\u0441\u0442\u0432\u0443\u0432\u0430 \u0438 \u0447\u0435 \u0435 \u0434\u0430\u0434\u0435\u043D\u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u0437\u0430 \u0434\u043E\u0441\u0442\u044A\u043F.",v="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0438\u0437\u043F\u044A\u043B\u043D\u0435\u043D\u0438\u0435 \u043D\u0430 \u0437\u0430\u044F\u0432\u043A\u0430\u0442\u0430.",f="\u041D\u044F\u043C\u0430\u0442\u0435 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u0438\u0435 \u0437\u0430 \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u043D\u0435 \u043D\u0430 \u0442\u043E\u0437\u0438 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442. <calcite-link target='_blank' href='${ docLink }'>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435</calcite-link>",F="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u0432\u043B\u0438\u0437\u0430\u043D\u0435 \u0432 \u043F\u043E\u0440\u0442\u0430\u043B\u0430.",I="\u0412\u0445\u043E\u0434\u043D\u0438\u0442\u0435 \u0434\u0430\u043D\u043D\u0438 \u043D\u0435 \u043C\u043E\u0433\u0430\u0442 \u0434\u0430 \u0441\u0435 \u043F\u0440\u043E\u0447\u0435\u0442\u0430\u0442.",k="${ dataPath } \u043D\u044F\u043C\u0430 \u0438\u043C\u0435 \u043D\u0430 \u0441\u0432\u043E\u0439\u0441\u0442\u0432\u043E ${ missingProperty }.",T="\u0421\u043B\u043E\u0439 \u0441 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0438 \u0432\u0435\u0447\u0435 \u0441\u044A\u0449\u0435\u0441\u0442\u0432\u0443\u0432\u0430 \u0441 \u0442\u043E\u0432\u0430 \u0438\u043C\u0435. \u0421\u043B\u043E\u0435\u0432\u0435\u0442\u0435 \u0441 \u0440\u0435\u0437\u0443\u043B\u0442\u0430\u0442\u0438 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0430\u0442 \u043D\u0430\u0438\u043C\u0435\u043D\u0443\u0432\u0430\u043D\u0438 \u0443\u043D\u0438\u043A\u0430\u043B\u043D\u043E \u0432 \u0446\u044F\u043B\u0430\u0442\u0430 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u044F. \u041C\u043E\u043B\u044F, \u0438\u0437\u043F\u043E\u043B\u0437\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u043B\u0438\u0447\u043D\u043E \u0438\u043C\u0435.",L="\u0418\u0437\u0445\u043E\u0434\u043D\u043E\u0442\u043E \u0438\u043C\u0435 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 \u0435\u0434\u0438\u043D \u0438\u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u0437\u043D\u0430\u043A\u0430. <a href='${docLink}' target='_blank'>\u041D\u0430\u0443\u0447\u0435\u0442\u0435 \u043F\u043E\u0432\u0435\u0447\u0435.</a>",b="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0443\u0432\u0430\u043D\u0435 \u043D\u0430 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u0438\u044F \u0441\u043B\u043E\u0439 \u043A\u0430\u0442\u043E \u0445\u043E\u0441\u0442\u0432\u0430\u043D \u0441\u043B\u043E\u0439 \u043F\u043E\u0440\u0430\u0434\u0438 \u0435\u0434\u043D\u043E \u0438\u043B\u0438 \u043F\u043E\u0432\u0435\u0447\u0435 \u043D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u043F\u043E\u043B\u0435\u0442\u0430. \u0412\u0440\u044A\u0449\u0430\u043D\u0435 \u043D\u0430 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u0430 \u0437\u0430 \u0441\u044A\u0437\u0434\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u0441\u043B\u043E\u0439 \u0441 \u0432\u0430\u043B\u0438\u0434\u043D\u0438 \u043F\u043E\u043B\u0435\u0442\u0430.",N="\u041D\u0435\u0443\u0441\u043F\u0435\u0448\u043D\u043E \u043F\u043E\u0434\u0430\u0432\u0430\u043D\u0435 \u043D\u0430 \u0437\u0430\u0434\u0430\u043D\u0438\u0435. \u041F\u0440\u0435\u0432\u044A\u0440\u0442\u0435\u0442\u0435 \u043D\u0430\u0434\u043E\u043B\u0443, \u043A\u043E\u0440\u0438\u0433\u0438\u0440\u0430\u0439\u0442\u0435 \u0433\u0440\u0435\u0448\u043A\u0438\u0442\u0435 \u0438 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u0439\u0442\u0435 \u0430\u043D\u0430\u043B\u0438\u0437\u0430 \u043E\u0442\u043D\u043E\u0432\u043E.",g="${ dataPath } \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043F\u043E\u043D\u0435 \u0435\u0434\u0438\u043D \u0441\u0438\u043C\u0432\u043E\u043B, \u043A\u043E\u0439\u0442\u043E \u043D\u0435 \u0435 \u0438\u043D\u0442\u0435\u0440\u0432\u0430\u043B.",V={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:l,failedToSaveHistory:d,fullSessionStorage:n,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:E,layerUnavailable:h,maxItems:y,mbFailedToSave:P,minItems:p,minLength:S,modelNotFound:$,networkError:v,noPermissionToAccessTool:f,portalLoadError:F,queryFeaturesError:I,requiredProperty:k,serviceNameExistsError:T,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:b,toolValidationError:N,whiteSpacePattern:g};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,V as default,i as defaultError,l as enumValues,d as failedToSaveHistory,n as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,E as layerLoadFailure,h as layerUnavailable,y as maxItems,P as mbFailedToSave,p as minItems,S as minLength,$ as modelNotFound,v as networkError,f as noPermissionToAccessTool,F as portalLoadError,I as queryFeaturesError,k as requiredProperty,T as serviceNameExistsError,L as specialCharactersInServiceNameError,b as temporaryLayerFieldsError,N as toolValidationError,g as whiteSpacePattern};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{a as G}from"./XUAIYIQ2.js";import{a as L}from"./66KC2NXW.js";import{c as K,d as _,e as U}from"./WSK33HZC.js";import{l as j,p as P}from"./TZHAIY5U.js";import"./7ZRSM52L.js";import"./CNV5CX2O.js";import"./R7232VZW.js";import"./YXWR4LGR.js";import"./EUE3LP5B.js";import{a as S}from"./4ATL3D6V.js";import"./YJMNTY3L.js";import"./666PNIZR.js";import"./7DVUJMYC.js";import"./PZTUREPY.js";import{w}from"./HDGNDHWN.js";import"./VTXQOB7L.js";import"./M63VDRSQ.js";import"./YHGLE6WS.js";import"./ISEVSKNV.js";import{b as A}from"./UZAHM4E4.js";import{a as c,b as p}from"./MCTAC35U.js";import"./Z4GZ7VCW.js";import"./GENBEWQD.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};
3
+ v1.2.0-next.14 */
4
+ import{a as G}from"./YYLWNW2V.js";import{a as L}from"./UPJWS62Y.js";import{c as K,d as _,e as U}from"./MR4CUJA5.js";import{l as j,p as P}from"./6MQTHJAJ.js";import"./PDBMILPZ.js";import"./FB7AKBYZ.js";import"./H7LI4JLZ.js";import"./2PQ2DS43.js";import"./RFLPQTHR.js";import{a as S}from"./J4PD5ZQ7.js";import"./6KL3NJRR.js";import"./CFSE4FBZ.js";import"./HCGGITXI.js";import"./ACRHJFIK.js";import{w}from"./GZ4MUQVE.js";import"./3XM3G7I5.js";import"./OGINZV2L.js";import"./RSERAAVS.js";import"./SQKB5YHF.js";import{b as A}from"./4VTYPOLQ.js";import{a as c,b as p}from"./L3Q3HM35.js";import"./MOSTA2DP.js";import"./Q253POJJ.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,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{a as D}from"./RHNY7QXI.js";import{b as F}from"./J7NOQ4JL.js";import{c as y,g as O,j as $}from"./YCA4LRXE.js";import{e as d}from"./J6NONFBS.js";import{a as k,d as E,f as T}from"./5YOZB2R2.js";import{b as I}from"./T5PVRJMO.js";import{a as G}from"./N53S6LBM.js";import"./LX5BVFDE.js";import"./UAD3Z7G6.js";import{b as V}from"./OKH2UKNB.js";import{C as u,D as p,E as v,G as _,H as C,h as w,i as c,o as L,r as S}from"./NL2ZCSNM.js";import"./GENBEWQD.js";var N=w`@layer{/** @license
3
+ v1.2.0-next.14 */
4
+ import{a as D}from"./2UWPI3SL.js";import{b as F}from"./A437YTBB.js";import{c as y,g as O,j as $}from"./4DHQUG3W.js";import{e as d}from"./32CJQFYT.js";import{a as k,d as E,f as T}from"./VYCVM7AQ.js";import{b as I}from"./ED5F2TPC.js";import{a as G}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as V}from"./JKJ2E3QC.js";import{C as u,D as p,E as v,G as _,H as C,h as w,i as c,o as L,r as S}from"./BT3PZ755.js";import"./Q253POJJ.js";var N=w`@layer{/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{e,f as t}from"./SB2EYKVI.js";import"./GENBEWQD.js";var n={type:"object",properties:{selectionMode:{type:"string",enum:["dynamic","manual"],default:"dynamic"},entityIds:{type:"array",items:{type:"string"},default:[]},eventIds:{type:"array",items:{type:"string"},default:[]},corners:{type:"string",enum:["square","round"],default:"square"},shadow:{type:"string",enum:["none","low","medium","heavy"],default:"none"},showAdditionalInfo:{type:"boolean",default:!0},access:{type:"array",items:{type:"string",enum:["private","org","public"]},default:[]},tags:e,categories:t,titleHeading:{type:"string",enum:["h1","h2","h3","h4","h5","h6"],default:"h4"},openIn:{type:"string",enum:["same","new"],default:"same"},layout:{type:"string",enum:["list","map","calendar"],default:"list"}}};export{n as EventGalleryCardSchema};
3
+ v1.2.0-next.14 */
4
+ import{e,f as t}from"./N3V7I4KP.js";import"./Q253POJJ.js";var n={type:"object",properties:{selectionMode:{type:"string",enum:["dynamic","manual"],default:"dynamic"},entityIds:{type:"array",items:{type:"string"},default:[]},eventIds:{type:"array",items:{type:"string"},default:[]},corners:{type:"string",enum:["square","round"],default:"square"},shadow:{type:"string",enum:["none","low","medium","heavy"],default:"none"},showAdditionalInfo:{type:"boolean",default:!0},access:{type:"array",items:{type:"string",enum:["private","org","public"]},default:[]},tags:e,categories:t,titleHeading:{type:"string",enum:["h1","h2","h3","h4","h5","h6"],default:"h4"},openIn:{type:"string",enum:["same","new"],default:"same"},layout:{type:"string",enum:["list","map","calendar"],default:"list"}}};export{n as EventGalleryCardSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{a as n}from"./AZIEZPYO.js";import{a as m}from"./3RO3BXDV.js";import"./YXWR4LGR.js";import"./EUE3LP5B.js";import"./4ATL3D6V.js";import"./YJMNTY3L.js";import"./PZTUREPY.js";import{a as s}from"./2U7YXCJZ.js";import{a as i}from"./X43BLFIH.js";import"./HDGNDHWN.js";import"./VTXQOB7L.js";import{a as o}from"./3N2YHBI5.js";import"./M63VDRSQ.js";import"./YHGLE6WS.js";import"./ISEVSKNV.js";import{b as r}from"./EEE5US3J.js";import"./QZUTRMW6.js";import"./BTVB74DT.js";import"./UZAHM4E4.js";import"./GDKA6GQ6.js";import"./MCTAC35U.js";import"./FSP7SPX2.js";import"./EUH67UW5.js";import"./Z4GZ7VCW.js";import"./ZFIDAXHF.js";import"./44CIVCB6.js";import"./XSUH5ZWN.js";import"./WUAYRTXU.js";import"./MSWWPD5H.js";import"./NRSYVSYQ.js";import"./AQOTRYZM.js";import"./NCYTPCR2.js";import"./555TJYQH.js";import"./W4MD3F6R.js";import"./3GJ7UGOW.js";import"./4JNGRSAC.js";import"./SB2EYKVI.js";import"./CFMJKVXR.js";import"./GENBEWQD.js";var p=(e,l)=>["myContent","organization"].map(d=>{let a=o("initiativeTemplate.fields.recommendedTemplates",d,"item",{user:e});return a.collections=[c(l)],a}),c=e=>({targetEntity:"item",key:"recommendedTemplates",label:`${e}.fields.recommendedTemplates.collection.label`,scope:{targetEntity:"item",filters:[{predicates:[{type:"Solution"}]},{predicates:[{typekeywords:["hubSolutionTemplate"]},{typekeywords:["Template"]}],operation:"OR"}]}});var k=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{type:"Control",scope:"/properties/name",labelKey:`${e}.fields.name.label`,options:{messages:[{type:r.error,keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.name.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{type:"Control",scope:"/properties/summary",labelKey:`${e}.fields.summary.label`,options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...m(e,l.thumbnail,n(l),"initiativeTemplate",t.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{type:"Control",scope:"/properties/description",labelKey:`${e}.fields.description.label`,options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await s(e,t)]}]},{type:"Section",labelKey:`${e}.sections.templateDetails.label`,elements:[{type:"Control",scope:"/properties/previewUrl",labelKey:`${e}.fields.previewUrl.label`,options:{helperText:{labelKey:`${e}.fields.previewUrl.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{type:"Control",scope:"/properties/recommendedTemplates",labelKey:`${e}.fields.recommendedTemplates.label`,options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:p(t.currentUser,e),facets:[{label:`{{${e}.fields.recommendedTemplates.facets.sharing:translate}}`,key:"access",field:"access",display:"multi-select",operation:"OR"}],canReorder:!1,linkTarget:"siteRelative",pickerTitle:{labelKey:`${e}.fields.recommendedTemplates.pickerTitle`}}}]}]});export{k as buildUiSchema};
3
+ v1.2.0-next.14 */
4
+ import{a as n}from"./BMZSYER5.js";import{a as m}from"./T6TRDLLW.js";import"./2PQ2DS43.js";import"./RFLPQTHR.js";import"./J4PD5ZQ7.js";import"./6KL3NJRR.js";import"./ACRHJFIK.js";import{a as s}from"./FRWCYHC7.js";import{a as i}from"./7BLXQDEK.js";import"./GZ4MUQVE.js";import"./3XM3G7I5.js";import{a as o}from"./OZP2AS5I.js";import"./OGINZV2L.js";import"./RSERAAVS.js";import"./SQKB5YHF.js";import{b as r}from"./FLMHLO43.js";import"./RKI47VQ2.js";import"./KQIP55UX.js";import"./4VTYPOLQ.js";import"./DJIPWE3W.js";import"./L3Q3HM35.js";import"./RGEOJKWT.js";import"./DGAAG2WP.js";import"./MOSTA2DP.js";import"./UYXUVFKE.js";import"./ZMWV3XIS.js";import"./XGMVUDCR.js";import"./FC7SCLY3.js";import"./L2KEAIFF.js";import"./LOXYPSQZ.js";import"./7HCS7QDO.js";import"./7FDUBCB6.js";import"./TFX7FLLB.js";import"./7INSFWLF.js";import"./HAXUZW3B.js";import"./2DGB5L7S.js";import"./N3V7I4KP.js";import"./SFSJYGXN.js";import"./Q253POJJ.js";var p=(e,l)=>["myContent","organization"].map(d=>{let a=o("initiativeTemplate.fields.recommendedTemplates",d,"item",{user:e});return a.collections=[c(l)],a}),c=e=>({targetEntity:"item",key:"recommendedTemplates",label:`${e}.fields.recommendedTemplates.collection.label`,scope:{targetEntity:"item",filters:[{predicates:[{type:"Solution"}]},{predicates:[{typekeywords:["hubSolutionTemplate"]},{typekeywords:["Template"]}],operation:"OR"}]}});var k=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{type:"Control",scope:"/properties/name",labelKey:`${e}.fields.name.label`,options:{messages:[{type:r.error,keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.name.maxLengthError"},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},{type:"Control",scope:"/properties/summary",labelKey:`${e}.fields.summary.label`,options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...m(e,l.thumbnail,n(l),"initiativeTemplate",t.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{type:"Control",scope:"/properties/description",labelKey:`${e}.fields.description.label`,options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await s(e,t)]}]},{type:"Section",labelKey:`${e}.sections.templateDetails.label`,elements:[{type:"Control",scope:"/properties/previewUrl",labelKey:`${e}.fields.previewUrl.label`,options:{helperText:{labelKey:`${e}.fields.previewUrl.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{type:"Control",scope:"/properties/recommendedTemplates",labelKey:`${e}.fields.recommendedTemplates.label`,options:{control:"hub-field-input-gallery-picker",targetEntity:"item",catalogs:p(t.currentUser,e),facets:[{label:`{{${e}.fields.recommendedTemplates.facets.sharing:translate}}`,key:"access",field:"access",display:"multi-select",operation:"OR"}],canReorder:!1,linkTarget:"siteRelative",pickerTitle:{labelKey:`${e}.fields.recommendedTemplates.pickerTitle`}}}]}]});export{k as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import"./GENBEWQD.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
3
+ v1.2.0-next.14 */
4
+ import"./Q253POJJ.js";var t=async(e,s,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.discussions.label`,elements:[{labelKey:`${e}.fields.discussable.label`,scope:"/properties/isDiscussable",type:"Control",options:{control:"hub-field-input-tile-select",layout:"horizontal",labels:[`{{${e}.fields.discussable.enabled.label:translate}}`,`{{${e}.fields.discussable.disabled.label:translate}}`],descriptions:[`{{${e}.fields.discussable.enabled.description:translate}}`,`{{${e}.fields.discussable.disabled.description:translate}}`],icons:["speech-bubbles","circle-disallowed"],type:"radio",styles:{"max-width":"45rem"}}}]}]});export{t as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{a as n}from"./4VSXNGPH.js";import{a as s}from"./3RO3BXDV.js";import"./YXWR4LGR.js";import"./EUE3LP5B.js";import"./4ATL3D6V.js";import"./YJMNTY3L.js";import{a as r,b as a}from"./RDKNMWCS.js";import"./666PNIZR.js";import"./7DVUJMYC.js";import"./PZTUREPY.js";import{a as o}from"./2U7YXCJZ.js";import{a as i}from"./X43BLFIH.js";import"./HDGNDHWN.js";import"./VTXQOB7L.js";import"./M63VDRSQ.js";import"./YHGLE6WS.js";import"./ISEVSKNV.js";import"./EEE5US3J.js";import"./QZUTRMW6.js";import"./BTVB74DT.js";import"./UZAHM4E4.js";import"./GDKA6GQ6.js";import"./MCTAC35U.js";import"./FSP7SPX2.js";import"./EUH67UW5.js";import"./Z4GZ7VCW.js";import"./ZFIDAXHF.js";import"./44CIVCB6.js";import"./XSUH5ZWN.js";import"./WUAYRTXU.js";import"./MSWWPD5H.js";import"./NRSYVSYQ.js";import"./AQOTRYZM.js";import"./NCYTPCR2.js";import"./555TJYQH.js";import"./W4MD3F6R.js";import"./3GJ7UGOW.js";import"./4JNGRSAC.js";import"./SB2EYKVI.js";import"./CFMJKVXR.js";import"./GENBEWQD.js";var d=async(e,l,t)=>({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.siteEntityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,l.thumbnail,l.thumbnailUrl,"site",t.requestOptions),...t.isPortal?[n(e)]:[],{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,t)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(l.location,t.hubRequestOptions),options:await a(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
3
+ v1.2.0-next.14 */
4
+ import{a as n}from"./RKGMIWAB.js";import{a as s}from"./T6TRDLLW.js";import"./2PQ2DS43.js";import"./RFLPQTHR.js";import"./J4PD5ZQ7.js";import"./6KL3NJRR.js";import{a as r,b as a}from"./TLXOAJK5.js";import"./CFSE4FBZ.js";import"./HCGGITXI.js";import"./ACRHJFIK.js";import{a as o}from"./FRWCYHC7.js";import{a as i}from"./7BLXQDEK.js";import"./GZ4MUQVE.js";import"./3XM3G7I5.js";import"./OGINZV2L.js";import"./RSERAAVS.js";import"./SQKB5YHF.js";import"./FLMHLO43.js";import"./RKI47VQ2.js";import"./KQIP55UX.js";import"./4VTYPOLQ.js";import"./DJIPWE3W.js";import"./L3Q3HM35.js";import"./RGEOJKWT.js";import"./DGAAG2WP.js";import"./MOSTA2DP.js";import"./UYXUVFKE.js";import"./ZMWV3XIS.js";import"./XGMVUDCR.js";import"./FC7SCLY3.js";import"./L2KEAIFF.js";import"./LOXYPSQZ.js";import"./7HCS7QDO.js";import"./7FDUBCB6.js";import"./TFX7FLLB.js";import"./7INSFWLF.js";import"./HAXUZW3B.js";import"./2DGB5L7S.js";import"./N3V7I4KP.js";import"./SFSJYGXN.js";import"./Q253POJJ.js";var d=async(e,l,t)=>({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.siteEntityTitleValidatorError`}]}},{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,l.thumbnail,l.thumbnailUrl,"site",t.requestOptions),...t.isPortal?[n(e)]:[],{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await i(l.tags,t.portal.id,t.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,t)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(l.location,t.hubRequestOptions),options:await a(l.id,l.type,l.location,t.portal.name,t.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import e from"./ILJ2CM7J.js";import b from"./O4KKRMWS.js";import"./BQ7CXSHY.js";import a from"./TZBJLNXJ.js";import{a as p}from"./RAJJT4B3.js";import"./TWNSH3OD.js";import{b as l}from"./PZEXCL57.js";import"./LX5BVFDE.js";import"./UAD3Z7G6.js";import{E as o,G as d,I as c,h as s,i as t,o as r}from"./NL2ZCSNM.js";import"./GENBEWQD.js";export default $arcgis.t(([,{b:h},{i:g,t:v}])=>{var x=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: 500;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .instant-apps-interactive-legend__header--compact .esri-widget__heading{font-size:.9rem}:host .esri-widget__heading{overflow:hidden;margin:0;display:inline-block;font-size:var(--calcite-font-size-1);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interacitveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container",compact:"instant-apps-interactive-legend__header--compact"},a=class extends o{constructor(){super(...arguments),this._messages=p({name:"instant-apps-interactive-legend"}),this.isChild=!1,this.expanded=!0,this.layerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=x}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=g(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages?.collapse:this._messages?.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"",_=h.get("compact")?` ${e.compact}`:"";return t`<header class=${`${e.interacitveLegendHeader} ${v(this.el)}${_}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i??""} .label=${i} scale=s></calcite-action><span><span class=${d(e.headerActionContainer)}><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};l("instant-apps-interactive-legend-layer-element-caption",a);return a},a,b,e)
3
+ v1.2.0-next.14 */
4
+ import e from"./MSOGJSYT.js";import b from"./Y3TZCUDN.js";import"./CS2LIBSE.js";import a from"./27JI2VQ2.js";import{a as p}from"./2AN7ELSH.js";import"./T66ZKGRR.js";import{b as l}from"./CAOSAERX.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{E as o,G as d,I as c,h as s,i as t,o as r}from"./BT3PZ755.js";import"./Q253POJJ.js";export default $arcgis.t(([,{b:h},{i:g,t:v}])=>{var x=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: 500;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .instant-apps-interactive-legend__header--compact .esri-widget__heading{font-size:.9rem}:host .esri-widget__heading{overflow:hidden;margin:0;display:inline-block;font-size:var(--calcite-font-size-1);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interacitveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container",compact:"instant-apps-interactive-legend__header--compact"},a=class extends o{constructor(){super(...arguments),this._messages=p({name:"instant-apps-interactive-legend"}),this.isChild=!1,this.expanded=!0,this.layerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=x}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=g(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages?.collapse:this._messages?.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"",_=h.get("compact")?` ${e.compact}`:"";return t`<header class=${`${e.interacitveLegendHeader} ${v(this.el)}${_}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i??""} .label=${i} scale=s></calcite-action><span><span class=${d(e.headerActionContainer)}><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};l("instant-apps-interactive-legend-layer-element-caption",a);return a},a,b,e)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{a as t}from"./CQ6WSEAJ.js";import"./R7232VZW.js";import"./3N2YHBI5.js";import"./M63VDRSQ.js";import"./YHGLE6WS.js";import"./ISEVSKNV.js";import"./Z4GZ7VCW.js";import"./GENBEWQD.js";var m=async(a,e,c)=>{let i=await t(a,e,c);return e.canEdit&&i.elements.splice(0,0,{type:"Notice",options:{noticeId:"20250311-channel-edit-warning"}}),i};export{m as buildUiSchema};
3
+ v1.2.0-next.14 */
4
+ import{a as t}from"./LGVRRCS5.js";import"./H7LI4JLZ.js";import"./OZP2AS5I.js";import"./OGINZV2L.js";import"./RSERAAVS.js";import"./SQKB5YHF.js";import"./MOSTA2DP.js";import"./Q253POJJ.js";var m=async(a,e,c)=>{let i=await t(a,e,c);return e.canEdit&&i.elements.splice(0,0,{type:"Notice",options:{noticeId:"20250311-channel-edit-warning"}}),i};export{m 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.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{a as g}from"./N53S6LBM.js";import"./LX5BVFDE.js";import"./UAD3Z7G6.js";import{b as p}from"./OKH2UKNB.js";import{E as u,I as s,h as l,i as c,r as h}from"./NL2ZCSNM.js";import"./GENBEWQD.js";var b=l`@layer{/** @license
3
+ v1.2.0-next.14 */
4
+ import{a as g}from"./CDKJFB3T.js";import"./WDUEH22A.js";import"./VNHY7WVH.js";import{b as p}from"./JKJ2E3QC.js";import{E as u,I as s,h as l,i as c,r as h}from"./BT3PZ755.js";import"./Q253POJJ.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.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{b as c}from"./T5PVRJMO.js";import{b as d}from"./OKH2UKNB.js";import{C as o,D as n,E as h,h as r,i as a,o as s}from"./NL2ZCSNM.js";import"./GENBEWQD.js";var m=r`/** @license
3
+ v1.2.0-next.14 */
4
+ import{b as c}from"./ED5F2TPC.js";import{b as d}from"./JKJ2E3QC.js";import{C as o,D as n,E as h,h as r,i as a,o as s}from"./BT3PZ755.js";import"./Q253POJJ.js";var m=r`/** @license
5
5
  * Copyright 2025 Esri
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{b as p,d as a,e as h,f as E}from"./VTXQOB7L.js";function n(r={}){return r.portal?E(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function v(r,t,e){if(!r)return r;let o=null;return typeof r.thumbnail=="string"&&(o=`${t}/content/items/${r.id}/info/${r.thumbnail}`,o&&r.access!=="public"&&e&&(o+=`?${e}`)),Object.assign(Object.assign({},r),o?{thumbnailUrl:o}:{})}function ar(r,t){let e=T(r,t),o=Object.assign({httpMethod:"GET"},t);return a(e,o).then(async i=>{let m=t?.portal||n(t),c;return t?.authentication&&typeof t.authentication!="string"&&i.access!=="public"&&(c=await t.authentication.getToken(e)),v(i,m,c)})}var T=(r,t)=>`${typeof t=="string"?t:n(t)}/content/items/${r}`;function ir(r,t){let e=`${T(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),a(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function mr(r){let t=`${T(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,a(t,e)}function cr(r,t){let e=`${T(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),a(e,o)}function dr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/delete`;return a(e,r)})}function hr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),a(e,r)})}function pr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return a(e,r)})}function br(r,t){let e=r||"self",o=`${n(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}function Y(r){return u(r).then(t=>{let e=r.folderId?`${n(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${n(r)}/content/users/${t}/items/${r.item.id}/update`;r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let o=n(r),i=v(Object.assign(Object.assign({},r.item),{access:r.item.access}),o),m=r.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof m=="string"&&i.thumbnailUrl.split("?")[0]===m.split("?")[0]&&delete r.params.thumbnailUrl,a(e,r)})}function jr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),a(e,r)})}function vr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),a(e,r)})}function Rr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return a(e,o)})}function Er(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),a(e,r)})}function Wr(r){return u(r).then(t=>{let o=`${`${n(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),a(o,r)})}function z(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${n(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return a(o,i)})}function Yr(r){let t=Object.assign({folderId:null},r);return z(t)}function Zr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/protect`;return a(e,r)})}function Or(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/unprotect`;return a(e,r)})}function M(r,t){let e=`${n(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(e,o)}function et(r,t){let e=`${n(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),a(e,o)}function A(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${n(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function k(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function S(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function P(r){return M(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=n(e)+o;return a(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function N(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function _(r){let t=r.id,e=`${n(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...F("users",r.users,o),...F("admins",r.admins,o)].map(c=>J(e,c));return Promise.all(m).then(V)}function F(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>H(r,i,e))}function H(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function J(r,t){return a(r,t).catch(e=>({errors:[e]}))}function V(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function B(r){let{id:t,users:e}=r,o=`${n(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return a(o,d).catch(l=>({errors:[l]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=f=>c.filter(g=>g[f]).reduce((g,w)=>g.concat(w[f]),[]),l=d("errors"),s={notRemoved:d("notRemoved")};return l.length?Object.assign(Object.assign({},s),{errors:l}):s})}function _t(r){let t=`${n(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function Jt(r){let t=`${n(r)}/community/groups/${r.id}/protect`;return a(t,r)}function Vt(r){let t=`${n(r)}/community/groups/${r.id}/unprotect`;return a(t,r)}function Xt(r){let t=`${n(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return a(t,e)}function qt(r){return $(r,"group")}function re(r){return $(r,"groupContent")}function ne(r){let t=`${n(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function C(r){let t=`${n(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,a(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${n(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return a(t,e)}async function Qe(r){let t=await r.authentication.getUsername(),e=A(r,t);return k(r,t)?D(e,r):S(r).then(o=>{if(o)return D(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function D(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),a(r,t)}function G(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return N(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function io(r){return G(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),P(r)]).then(([l,s,f])=>{let g=!!o;return c=l.role==="org_admin"&&!l.roleId,d=l.orgId!==s.orgId,L(l,g,f,c,s,r)}).then(l=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:f=>Promise.resolve(f)}]=l;return Promise.all(l.map(({promise:f})=>f)).then(()=>W(r,c,d)).then(f=>s(f))})}return W(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function L(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(R(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),R(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(R(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function W(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${n(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${n(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},a(m,r)}function R(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,l;if(c)e&&c.userMembership.memberType==="member"?(d=C({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let f=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:f})}).catch(()=>({notAdded:[t.username]})),l=s=>C({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),l=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=_({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(f=>{if(f.errors&&f.errors.length)throw f.errors[0];return f}).catch(()=>({notAdded:[t.username]})),l=f=>B({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>f)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:l}}function ho(r){return G(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([P(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,l=m.role==="org_admin"&&!m.roleId;if(!d&&!l&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return Q(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function Q(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${n(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${n(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},a(o,r)}function Uo(r){return K(null,r)}function K(r,t){let e=r||"self",o=`${n(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}export{n as a,u as b,Y as c,jr as d,vr as e,Rr as f,Er as g,Wr as h,z as i,Yr as j,ar as k,ir as l,mr as m,cr as n,Zr as o,Or as p,M as q,et as r,dr as s,hr as t,pr as u,x as v,N as w,B as x,_t as y,Jt as z,Vt as A,Xt as B,qt as C,re as D,ne as E,I as F,Qe as G,io as H,ho as I,Uo as J,K,br as L};
3
+ v1.2.0-next.14 */
4
+ import{b as p,d as a,e as h,f as E}from"./3XM3G7I5.js";function n(r={}){return r.portal?E(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function v(r,t,e){if(!r)return r;let o=null;return typeof r.thumbnail=="string"&&(o=`${t}/content/items/${r.id}/info/${r.thumbnail}`,o&&r.access!=="public"&&e&&(o+=`?${e}`)),Object.assign(Object.assign({},r),o?{thumbnailUrl:o}:{})}function ar(r,t){let e=T(r,t),o=Object.assign({httpMethod:"GET"},t);return a(e,o).then(async i=>{let m=t?.portal||n(t),c;return t?.authentication&&typeof t.authentication!="string"&&i.access!=="public"&&(c=await t.authentication.getToken(e)),v(i,m,c)})}var T=(r,t)=>`${typeof t=="string"?t:n(t)}/content/items/${r}`;function ir(r,t){let e=`${T(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),a(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function mr(r){let t=`${T(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,a(t,e)}function cr(r,t){let e=`${T(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),a(e,o)}function dr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/delete`;return a(e,r)})}function hr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),a(e,r)})}function pr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return a(e,r)})}function br(r,t){let e=r||"self",o=`${n(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}function Y(r){return u(r).then(t=>{let e=r.folderId?`${n(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${n(r)}/content/users/${t}/items/${r.item.id}/update`;r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let o=n(r),i=v(Object.assign(Object.assign({},r.item),{access:r.item.access}),o),m=r.params.thumbnailUrl;return typeof i.thumbnailUrl=="string"&&typeof m=="string"&&i.thumbnailUrl.split("?")[0]===m.split("?")[0]&&delete r.params.thumbnailUrl,a(e,r)})}function jr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),a(e,r)})}function vr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),a(e,r)})}function Rr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return a(e,o)})}function Er(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),a(e,r)})}function Wr(r){return u(r).then(t=>{let o=`${`${n(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),a(o,r)})}function z(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${n(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return a(o,i)})}function Yr(r){let t=Object.assign({folderId:null},r);return z(t)}function Zr(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/protect`;return a(e,r)})}function Or(r){return u(r).then(t=>{let e=`${n(r)}/content/users/${t}/items/${r.id}/unprotect`;return a(e,r)})}function M(r,t){let e=`${n(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return a(e,o)}function et(r,t){let e=`${n(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),a(e,o)}function A(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${n(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function k(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function S(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function P(r){return M(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=n(e)+o;return a(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function N(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function _(r){let t=r.id,e=`${n(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...F("users",r.users,o),...F("admins",r.admins,o)].map(c=>J(e,c));return Promise.all(m).then(V)}function F(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>H(r,i,e))}function H(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function J(r,t){return a(r,t).catch(e=>({errors:[e]}))}function V(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function B(r){let{id:t,users:e}=r,o=`${n(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return a(o,d).catch(l=>({errors:[l]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=f=>c.filter(g=>g[f]).reduce((g,w)=>g.concat(w[f]),[]),l=d("errors"),s={notRemoved:d("notRemoved")};return l.length?Object.assign(Object.assign({},s),{errors:l}):s})}function _t(r){let t=`${n(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function Jt(r){let t=`${n(r)}/community/groups/${r.id}/protect`;return a(t,r)}function Vt(r){let t=`${n(r)}/community/groups/${r.id}/unprotect`;return a(t,r)}function Xt(r){let t=`${n(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return a(t,e)}function qt(r){return $(r,"group")}function re(r){return $(r,"groupContent")}function ne(r){let t=`${n(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),a(t,r)}function C(r){let t=`${n(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,a(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${n(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return a(t,e)}async function Qe(r){let t=await r.authentication.getUsername(),e=A(r,t);return k(r,t)?D(e,r):S(r).then(o=>{if(o)return D(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function D(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),a(r,t)}function G(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return N(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function io(r){return G(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),P(r)]).then(([l,s,f])=>{let g=!!o;return c=l.role==="org_admin"&&!l.roleId,d=l.orgId!==s.orgId,L(l,g,f,c,s,r)}).then(l=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:f=>Promise.resolve(f)}]=l;return Promise.all(l.map(({promise:f})=>f)).then(()=>W(r,c,d)).then(f=>s(f))})}return W(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function L(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(R(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),R(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(R(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function W(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${n(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${n(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},a(m,r)}function R(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,l;if(c)e&&c.userMembership.memberType==="member"?(d=C({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let f=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:f})}).catch(()=>({notAdded:[t.username]})),l=s=>C({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),l=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=_({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(f=>{if(f.errors&&f.errors.length)throw f.errors[0];return f}).catch(()=>({notAdded:[t.username]})),l=f=>B({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>f)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:l}}function ho(r){return G(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([P(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,l=m.role==="org_admin"&&!m.roleId;if(!d&&!l&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return Q(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function Q(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${n(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${n(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},a(o,r)}function Uo(r){return K(null,r)}function K(r,t){let e=r||"self",o=`${n(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return a(o,i)}export{n as a,u as b,Y as c,jr as d,vr as e,Rr as f,Er as g,Wr as h,z as i,Yr as j,ar as k,ir as l,mr as m,cr as n,Zr as o,Or as p,M as q,et as r,dr as s,hr as t,pr as u,x as v,N as w,B as x,_t as y,Jt as z,Vt as A,Xt as B,qt as C,re as D,ne as E,I as F,Qe as G,io as H,ho as I,Uo as J,K,br as L};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import"./GENBEWQD.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
3
+ v1.2.0-next.14 */
4
+ import"./Q253POJJ.js";var o=async(e,r,t)=>({type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}}]});export{o as buildUiSchema};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
3
+ v1.2.0-next.14 */
4
4
  var t="cannotDiscuss";export{t as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{c as t}from"./4JNGRSAC.js";import{a,c as i,d as e,e as o,f as n,g as s,h as E,i as p,j as c,k as r,l as T,n as _}from"./SB2EYKVI.js";var m={$async:!0,type:"object",required:["name"],properties:{name:a,summary:i,description:{type:"string"},access:e,location:p,tags:o,categories:n,isDiscussable:s,_thumbnail:r,_followers:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"]}),showFollowAction:{type:"boolean",default:!0},isDiscussable:s}},_associations:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"],default:"private"}),membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"}}},view:{type:"object",properties:{embeds:{type:"array"},featuredContentIds:E,featuredImage:r,featuredImageAltText:{type:"string"},featuredImageName:{type:"string"},mapSettings:c,timeline:T,hero:{type:"string",default:t.map,enum:Object.keys(t)},heroActions:{type:"array"}}},_slug:_}};export{m as a};
3
+ v1.2.0-next.14 */
4
+ import{c as t}from"./2DGB5L7S.js";import{a,c as i,d as e,e as o,f as n,g as s,h as E,i as p,j as c,k as r,l as T,n as _}from"./N3V7I4KP.js";var m={$async:!0,type:"object",required:["name"],properties:{name:a,summary:i,description:{type:"string"},access:e,location:p,tags:o,categories:n,isDiscussable:s,_thumbnail:r,_followers:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"]}),showFollowAction:{type:"boolean",default:!0},isDiscussable:s}},_associations:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"],default:"private"}),membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"}}},view:{type:"object",properties:{embeds:{type:"array"},featuredContentIds:E,featuredImage:r,featuredImageAltText:{type:"string"},featuredImageName:{type:"string"},mapSettings:c,timeline:T,hero:{type:"string",default:t.map,enum:Object.keys(t)},heroActions:{type:"array"}}},_slug:_}};export{m as a};
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/1.2/esri/copyright.txt for details.
3
- v1.2.0-next.13 */
4
- import{d as c}from"./VTXQOB7L.js";import{a as y}from"./ISEVSKNV.js";var u=t=>{let[[e,n],[r,o]]=t;return f(e,n,r,o)},g=t=>t.map(e=>e.join(", ")).join(", ");function f(t,e,n,r,o=4326){return{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:{wkid:o}}}function h(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var m={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function E(t){let e=t.portalSelf,n=e.defaultExtent,r=y(e,"helperServices.geometry.url");if(!r||!n)return Promise.resolve(m);let o=`${r}/project`,i={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),transformForward:!1,transformation:"",inSR:n.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(i.authentication=t.authentication),c(o,i).then(a=>{let x=a.geometries[0];return{xmin:x.xmin,ymin:x.ymin,xmax:x.xmax,ymax:x.ymax,spatialReference:{wkid:4326}}}).catch(a=>m)}var d=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);var S=t=>{let e=[].concat(...t);for(let n=0;n<e.length;n+=2){let[r,o]=[e[n],e[n+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},B=t=>{let e=1/0,n=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[i,a]of s)e=Math.min(e,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a);return[[e,n],[r,o]]};export{u as a,g as b,h as c,E as d,d as e,S as f,B as g};
3
+ v1.2.0-next.14 */
4
+ import{d as c}from"./3XM3G7I5.js";import{a as y}from"./SQKB5YHF.js";var u=t=>{let[[e,n],[r,o]]=t;return f(e,n,r,o)},g=t=>t.map(e=>e.join(", ")).join(", ");function f(t,e,n,r,o=4326){return{xmin:t,ymin:e,xmax:n,ymax:r,spatialReference:{wkid:o}}}function h(t){return[[t.xmin,t.ymin],[t.xmax,t.ymax]]}var m={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:{wkid:4326}};function E(t){let e=t.portalSelf,n=e.defaultExtent,r=y(e,"helperServices.geometry.url");if(!r||!n)return Promise.resolve(m);let o=`${r}/project`,i={httpMethod:"POST",params:{geometries:JSON.stringify({geometryType:"esriGeometryEnvelope",geometries:[n]}),transformForward:!1,transformation:"",inSR:n.spatialReference.wkid,outSR:4326,f:"json"}};return t.authentication&&(i.authentication=t.authentication),c(o,i).then(a=>{let x=a.geometries[0];return{xmin:x.xmin,ymin:x.ymin,xmax:x.xmax,ymax:x.ymax,spatialReference:{wkid:4326}}}).catch(a=>m)}var d=t=>Array.isArray(t)&&Array.isArray(t[0])&&Array.isArray(t[1]);var S=t=>{let e=[].concat(...t);for(let n=0;n<e.length;n+=2){let[r,o]=[e[n],e[n+1]];if(o<-90||o>90||r<-180||r>180)return!1}return!0},B=t=>{let e=1/0,n=1/0,r=-1/0,o=-1/0;for(let s of t.coordinates)for(let[i,a]of s)e=Math.min(e,i),n=Math.min(n,a),r=Math.max(r,i),o=Math.max(o,a);return[[e,n],[r,o]]};export{u as a,g as b,h as c,E as d,d as e,S as f,B as g};