@nasa-terra/components 0.0.179 → 0.0.181

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 (1275) hide show
  1. package/cdn/apis/harmony.api.d.ts +24 -1
  2. package/cdn/chunks/chunk.2DWOHXBK.js +19 -0
  3. package/cdn/chunks/chunk.2ND5H65H.js +357 -0
  4. package/cdn/chunks/chunk.2NYU2KVG.js +41 -0
  5. package/cdn/chunks/chunk.2Y5YYW4R.js +2244 -0
  6. package/cdn/chunks/chunk.35CHAEJK.js +19 -0
  7. package/cdn/chunks/chunk.3C6QCU6U.js +56 -0
  8. package/cdn/chunks/chunk.3OFBDOEM.js +32 -0
  9. package/cdn/chunks/chunk.3QZNL3QN.js +477 -0
  10. package/cdn/chunks/chunk.3RQ3EY2O.js +32 -0
  11. package/cdn/chunks/chunk.45VJVUYK.js +34 -0
  12. package/cdn/chunks/chunk.47Q7XTJE.js +514 -0
  13. package/cdn/chunks/chunk.4DZW7OYM.js +189 -0
  14. package/cdn/chunks/chunk.4HIIVOOA.js +19 -0
  15. package/cdn/chunks/chunk.4IWGQ3QM.js +34 -0
  16. package/cdn/chunks/chunk.4MF2CVEK.js +19 -0
  17. package/cdn/chunks/chunk.4MLYEWPE.js +19 -0
  18. package/cdn/chunks/chunk.4NU6XC7B.js +616 -0
  19. package/cdn/chunks/chunk.4QUFZHF6.js +19 -0
  20. package/cdn/chunks/chunk.4SNGWC6U.js +19 -0
  21. package/cdn/chunks/chunk.55F4UQSA.js +62 -0
  22. package/cdn/chunks/chunk.5BFFURMO.js +151 -0
  23. package/cdn/chunks/chunk.5C3JGD4D.js +19 -0
  24. package/cdn/chunks/chunk.5D66GYVU.js +29 -0
  25. package/cdn/chunks/chunk.5IGCBQF2.js +29 -0
  26. package/cdn/chunks/chunk.5Q3ESWK2.js +29 -0
  27. package/cdn/chunks/chunk.63GR7COJ.js +310 -0
  28. package/cdn/chunks/chunk.6DLL4PEH.js +29 -0
  29. package/cdn/chunks/chunk.6FVRJALX.js +472 -0
  30. package/cdn/chunks/chunk.6X5DB5KR.js +56075 -0
  31. package/cdn/chunks/chunk.6ZCOQKCQ.js +19 -0
  32. package/cdn/chunks/chunk.73E43E5H.js +19 -0
  33. package/cdn/chunks/chunk.73ZJ52GL.js +237 -0
  34. package/cdn/chunks/chunk.746HHL7J.js +39 -0
  35. package/cdn/chunks/chunk.765GMYVH.js +19 -0
  36. package/cdn/chunks/chunk.7MKFJACQ.js +19 -0
  37. package/cdn/chunks/chunk.7TSAQ7F7.js +19 -0
  38. package/cdn/chunks/chunk.7W7LCLU5.js +443 -0
  39. package/cdn/chunks/chunk.AGUPZDXW.js +19 -0
  40. package/cdn/chunks/chunk.ANTYCNBS.js +234 -0
  41. package/cdn/chunks/chunk.ANY6ZBQZ.js +1207 -0
  42. package/cdn/chunks/chunk.AODMPEAA.js +32 -0
  43. package/cdn/chunks/chunk.AXHGJXN6.js +113 -0
  44. package/cdn/chunks/chunk.AYENYRMH.js +19 -0
  45. package/cdn/chunks/chunk.B6THN23F.js +19 -0
  46. package/cdn/chunks/chunk.BCNBUAWM.js +36 -0
  47. package/cdn/chunks/chunk.BOPH3VGD.js +19 -0
  48. package/cdn/chunks/chunk.BUHSAHXI.js +538 -0
  49. package/cdn/chunks/chunk.BWWU3UOU.js +293 -0
  50. package/cdn/chunks/chunk.BYWARBVO.js +35 -0
  51. package/cdn/chunks/chunk.C2ZPLW2A.js +19 -0
  52. package/cdn/chunks/chunk.CD75NGST.js +35 -0
  53. package/cdn/chunks/chunk.CIVGGIRX.js +473 -0
  54. package/cdn/chunks/chunk.CUK563TP.js +32 -0
  55. package/cdn/chunks/chunk.CWBT2ALZ.js +29 -0
  56. package/cdn/chunks/chunk.CY34MSDE.js +123 -0
  57. package/cdn/chunks/chunk.D7FSLFUL.js +904 -0
  58. package/cdn/chunks/chunk.DEDLPLON.js +47 -0
  59. package/cdn/chunks/chunk.DHRENFRE.js +285 -0
  60. package/cdn/chunks/chunk.DNHL2E5Q.js +19 -0
  61. package/cdn/chunks/chunk.DSYH36LJ.js +19 -0
  62. package/cdn/chunks/chunk.DXWMVI4V.js +29 -0
  63. package/cdn/chunks/chunk.DYDZ3LJN.js +165 -0
  64. package/cdn/chunks/chunk.DYMGURNK.js +359 -0
  65. package/cdn/chunks/chunk.E25SYMSA.js +190 -0
  66. package/cdn/chunks/chunk.EDYR7OMS.js +19 -0
  67. package/cdn/chunks/chunk.EEN2PM7M.js +29 -0
  68. package/cdn/chunks/chunk.EHU3RZOC.js +320 -0
  69. package/cdn/chunks/chunk.ERWXE4KH.js +493 -0
  70. package/cdn/chunks/chunk.ETE5JGX3.js +32 -0
  71. package/cdn/chunks/chunk.EUV33A5J.js +132 -0
  72. package/cdn/chunks/chunk.F6ZY7PEP.js +29 -0
  73. package/cdn/chunks/chunk.FEXGBRTJ.js +29 -0
  74. package/cdn/chunks/chunk.FFGQUMMS.js +99 -0
  75. package/cdn/chunks/chunk.FFRZZJF3.js +19 -0
  76. package/cdn/chunks/chunk.FH7JIHQ5.js +32 -0
  77. package/cdn/chunks/chunk.FSRWOJNJ.js +29 -0
  78. package/cdn/chunks/chunk.FYEAHT4C.js +19 -0
  79. package/cdn/chunks/chunk.G6PPVFZP.js +19 -0
  80. package/cdn/chunks/chunk.G7ARINSA.js +19 -0
  81. package/cdn/chunks/chunk.GCDBZ3W7.js +599 -0
  82. package/cdn/chunks/chunk.GMDJOE3D.js +610 -0
  83. package/cdn/chunks/chunk.GOKKW2WL.js +35 -0
  84. package/cdn/chunks/chunk.GPLYMDPJ.js +33 -0
  85. package/cdn/chunks/chunk.GQ57E6W4.js +19 -0
  86. package/cdn/chunks/chunk.GRKM53EG.js +36 -0
  87. package/cdn/chunks/chunk.HAEGIPB7.js +32 -0
  88. package/cdn/chunks/chunk.HFRKSSXY.js +187 -0
  89. package/cdn/chunks/chunk.HJDMWAVV.js +33 -0
  90. package/cdn/chunks/chunk.HK3NF22B.js +19 -0
  91. package/cdn/chunks/chunk.HMDDYPZM.js +29 -0
  92. package/cdn/chunks/chunk.I3XWIX6E.js +32 -0
  93. package/cdn/chunks/chunk.I5G3F6D4.js +19 -0
  94. package/cdn/chunks/chunk.IJ7RWFE2.js +19 -0
  95. package/cdn/chunks/chunk.JIUL3OL6.js +29 -0
  96. package/cdn/chunks/chunk.JIY4UZ2J.js +99 -0
  97. package/cdn/chunks/chunk.JKURDNA4.js +161 -0
  98. package/cdn/chunks/chunk.JS5OOQLY.js +125 -0
  99. package/cdn/chunks/chunk.K2P3VBHL.js +19 -0
  100. package/cdn/chunks/chunk.K2UWIYQ2.js +82 -0
  101. package/cdn/chunks/chunk.KAPIG3C4.js +32 -0
  102. package/cdn/chunks/chunk.KKZLSSED.js +29 -0
  103. package/cdn/chunks/chunk.KOA6BIWM.js +29 -0
  104. package/cdn/chunks/chunk.KSVL4NCO.js +68 -0
  105. package/cdn/chunks/chunk.KSXGXCJD.js +278 -0
  106. package/cdn/chunks/chunk.KVMARFYP.js +34 -0
  107. package/cdn/chunks/chunk.KVXRPLPX.js +29 -0
  108. package/cdn/chunks/chunk.LA5VODPG.js +106 -0
  109. package/cdn/chunks/chunk.LEUFWZLL.js +29 -0
  110. package/cdn/chunks/chunk.LFHHJTEK.js +19 -0
  111. package/cdn/chunks/chunk.LG3OAUSC.js +19 -0
  112. package/cdn/chunks/chunk.LG5C4AHH.js +224 -0
  113. package/cdn/chunks/chunk.LJGNFTUU.js +19 -0
  114. package/cdn/chunks/chunk.LPIUMZT6.js +29 -0
  115. package/cdn/chunks/chunk.M7VLA6HV.js +113 -0
  116. package/cdn/chunks/chunk.MB2OLLCZ.js +19 -0
  117. package/cdn/chunks/chunk.MJUD6H2O.js +60 -0
  118. package/cdn/chunks/chunk.MK76WXRC.js +32 -0
  119. package/cdn/chunks/chunk.MVC5FVKI.js +9744 -0
  120. package/cdn/chunks/chunk.MX22XUB3.js +29 -0
  121. package/cdn/chunks/chunk.N466UPRW.js +86 -0
  122. package/cdn/chunks/chunk.N4WZUEQD.js +205 -0
  123. package/cdn/chunks/chunk.N55ZUY7F.js +19 -0
  124. package/cdn/chunks/chunk.NCFSJVEZ.js +19 -0
  125. package/cdn/chunks/chunk.NQ7HNAO3.js +19 -0
  126. package/cdn/chunks/chunk.O43CCSUG.js +29 -0
  127. package/cdn/chunks/chunk.O5VR4XW3.js +19 -0
  128. package/cdn/chunks/chunk.OAR4VKWQ.js +19 -0
  129. package/cdn/chunks/chunk.OFMIOABD.js +19 -0
  130. package/cdn/chunks/chunk.OJT6BD3G.js +915 -0
  131. package/cdn/chunks/chunk.OKJYOJFO.js +37 -0
  132. package/cdn/chunks/chunk.OL7XRVJD.js +19 -0
  133. package/cdn/chunks/chunk.OSBHMGAB.js +136 -0
  134. package/cdn/chunks/chunk.PFIB3T6I.js +19 -0
  135. package/cdn/chunks/chunk.PHEAH3PP.js +19 -0
  136. package/cdn/chunks/chunk.PK2YWTXR.js +104 -0
  137. package/cdn/chunks/chunk.PLWNLNYY.js +19 -0
  138. package/cdn/chunks/chunk.PNBVXM3Y.js +2547 -0
  139. package/cdn/chunks/chunk.PQPZKAOJ.js +231 -0
  140. package/cdn/chunks/chunk.PSGY75G2.js +32 -0
  141. package/cdn/chunks/chunk.QCHUEPMQ.js +29 -0
  142. package/cdn/chunks/chunk.QDINN7DO.js +32 -0
  143. package/cdn/chunks/chunk.QKKAIJRP.js +3451 -0
  144. package/cdn/chunks/chunk.QLPYQ5QM.js +19 -0
  145. package/cdn/chunks/chunk.QPZ3OXHJ.js +188 -0
  146. package/cdn/chunks/chunk.QRJLBELU.js +230 -0
  147. package/cdn/chunks/chunk.R2VK36KK.js +29 -0
  148. package/cdn/chunks/chunk.RCSM7Z5E.js +19 -0
  149. package/cdn/chunks/chunk.RISDH34C.js +350 -0
  150. package/cdn/chunks/chunk.RSUJRQLT.js +1975 -0
  151. package/cdn/chunks/chunk.S2BYBA42.js +32 -0
  152. package/cdn/chunks/chunk.S3S7RGFN.js +29 -0
  153. package/cdn/chunks/chunk.S3XNEX7Q.js +29 -0
  154. package/cdn/chunks/chunk.SCBSBLIF.js +19 -0
  155. package/cdn/chunks/chunk.SGQIYGS7.js +83 -0
  156. package/cdn/chunks/chunk.SJFGHGKH.js +264 -0
  157. package/cdn/chunks/chunk.SR53QDBY.js +19 -0
  158. package/cdn/chunks/chunk.SRLCDKSU.js +19 -0
  159. package/cdn/chunks/chunk.SV2PUNIH.js +19 -0
  160. package/cdn/chunks/chunk.T5BE45M3.js +19 -0
  161. package/cdn/chunks/chunk.T6YZOAIS.js +29 -0
  162. package/cdn/chunks/chunk.TBLE2KGA.js +29 -0
  163. package/cdn/chunks/chunk.TKWMC5YI.js +854 -0
  164. package/cdn/chunks/chunk.TOYEA3BN.js +92 -0
  165. package/cdn/chunks/chunk.TU4BBVTN.js +19 -0
  166. package/cdn/chunks/chunk.TUJY2RG5.js +19 -0
  167. package/cdn/chunks/chunk.TY4WIMYJ.js +658 -0
  168. package/cdn/chunks/chunk.UHX3667N.js +19 -0
  169. package/cdn/chunks/chunk.USXZCB3X.js +524 -0
  170. package/cdn/chunks/chunk.UZKLGTZL.js +29 -0
  171. package/cdn/chunks/chunk.V3V7RRLU.js +49 -0
  172. package/cdn/chunks/chunk.VA5AUQXO.js +19 -0
  173. package/cdn/chunks/chunk.VFSDKRWK.js +259 -0
  174. package/cdn/chunks/chunk.VJZNIJEP.js +60 -0
  175. package/cdn/chunks/chunk.VO4X552X.js +36 -0
  176. package/cdn/chunks/chunk.VRUAG7OU.js +19 -0
  177. package/cdn/chunks/chunk.VTCUUKPV.js +19 -0
  178. package/cdn/chunks/chunk.VTTODZFG.js +33 -0
  179. package/cdn/chunks/chunk.VVKYAGA2.js +134 -0
  180. package/cdn/chunks/chunk.VXY726KB.js +29 -0
  181. package/cdn/chunks/chunk.VZEACDBX.js +19 -0
  182. package/cdn/chunks/chunk.W2GF7BXP.js +71 -0
  183. package/cdn/chunks/chunk.W5J7BIAV.js +19 -0
  184. package/cdn/chunks/chunk.WCOFECTA.js +37 -0
  185. package/cdn/chunks/chunk.WNOGT4FJ.js +300 -0
  186. package/cdn/chunks/chunk.WT7GDDLE.js +19 -0
  187. package/cdn/chunks/chunk.WTXVDBRE.js +538 -0
  188. package/cdn/chunks/chunk.WWLOI3XF.js +74 -0
  189. package/cdn/chunks/chunk.XQO3ZO7J.js +662 -0
  190. package/cdn/chunks/chunk.XUBCJIWF.js +32 -0
  191. package/cdn/chunks/chunk.XVECFU6I.js +276 -0
  192. package/cdn/chunks/chunk.XZ6LSQ2S.js +29 -0
  193. package/cdn/chunks/chunk.YDWBYNL7.js +19 -0
  194. package/cdn/chunks/chunk.YFMBAZ43.js +123 -0
  195. package/cdn/chunks/chunk.YGZ7GOSX.js +35 -0
  196. package/cdn/chunks/chunk.YIGURDHN.js +30 -0
  197. package/cdn/chunks/chunk.YJA73KAA.js +78 -0
  198. package/cdn/chunks/chunk.YJWB5W4S.js +29 -0
  199. package/cdn/chunks/chunk.YPYN4V4T.js +93 -0
  200. package/cdn/chunks/chunk.YYDMU76Q.js +372 -0
  201. package/cdn/chunks/chunk.YYVIS6D4.js +36 -0
  202. package/cdn/chunks/chunk.Z45L4FIP.js +1184 -0
  203. package/cdn/chunks/chunk.ZC2YQQZ3.js +33 -0
  204. package/cdn/chunks/chunk.ZFOTRE5C.js +19 -0
  205. package/cdn/chunks/chunk.ZKC2RGQN.js +33 -0
  206. package/cdn/chunks/chunk.ZTRMYR7K.js +29 -0
  207. package/cdn/chunks/chunk.ZVIECZDH.js +155 -0
  208. package/cdn/chunks/chunk.ZZFZ22B2.js +288 -0
  209. package/cdn/components/accordion/accordion.component.js +3 -3
  210. package/cdn/components/accordion/accordion.js +4 -4
  211. package/cdn/components/alert/alert.component.js +2 -2
  212. package/cdn/components/alert/alert.js +3 -3
  213. package/cdn/components/avatar/avatar.component.js +3 -3
  214. package/cdn/components/avatar/avatar.js +4 -4
  215. package/cdn/components/badge/badge.component.js +2 -2
  216. package/cdn/components/badge/badge.js +3 -3
  217. package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
  218. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  219. package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
  220. package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
  221. package/cdn/components/browse-variables/browse-variables.component.js +11 -11
  222. package/cdn/components/browse-variables/browse-variables.js +12 -12
  223. package/cdn/components/button/button.component.js +3 -3
  224. package/cdn/components/button/button.js +4 -4
  225. package/cdn/components/button-group/button-group.component.js +2 -2
  226. package/cdn/components/button-group/button-group.js +3 -3
  227. package/cdn/components/caption/caption.component.js +2 -2
  228. package/cdn/components/caption/caption.js +3 -3
  229. package/cdn/components/card/card.component.js +2 -2
  230. package/cdn/components/card/card.js +3 -3
  231. package/cdn/components/checkbox/checkbox.component.js +3 -3
  232. package/cdn/components/checkbox/checkbox.js +4 -4
  233. package/cdn/components/chip/chip.component.js +2 -2
  234. package/cdn/components/chip/chip.js +3 -3
  235. package/cdn/components/combobox/combobox.component.js +2 -2
  236. package/cdn/components/combobox/combobox.js +3 -3
  237. package/cdn/components/data-access/data-access.component.js +26 -25
  238. package/cdn/components/data-access/data-access.js +27 -26
  239. package/cdn/components/data-grid/data-grid.component.js +3 -3
  240. package/cdn/components/data-grid/data-grid.js +4 -4
  241. package/cdn/components/data-rods/data-rods.component.js +36 -35
  242. package/cdn/components/data-rods/data-rods.js +37 -36
  243. package/cdn/components/data-subsetter/data-subsetter.component.js +36 -34
  244. package/cdn/components/data-subsetter/data-subsetter.js +37 -35
  245. package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  246. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +37 -35
  247. package/cdn/components/data-subsetter-history/data-subsetter-history.js +38 -36
  248. package/cdn/components/date-picker/date-picker.component.js +7 -7
  249. package/cdn/components/date-picker/date-picker.js +8 -8
  250. package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
  251. package/cdn/components/date-range-slider/date-range-slider.js +3 -3
  252. package/cdn/components/dialog/dialog.component.js +4 -4
  253. package/cdn/components/dialog/dialog.js +5 -5
  254. package/cdn/components/divider/divider.component.js +2 -2
  255. package/cdn/components/divider/divider.js +3 -3
  256. package/cdn/components/dropdown/dropdown.component.js +3 -3
  257. package/cdn/components/dropdown/dropdown.js +4 -4
  258. package/cdn/components/earthdata-login/earthdata-login.component.js +10 -10
  259. package/cdn/components/earthdata-login/earthdata-login.js +11 -11
  260. package/cdn/components/file-upload/file-upload.component.js +2 -2
  261. package/cdn/components/file-upload/file-upload.js +3 -3
  262. package/cdn/components/harmony-history/harmony-history.component.d.ts +91 -0
  263. package/cdn/components/harmony-history/harmony-history.component.js +43 -0
  264. package/cdn/components/harmony-history/harmony-history.d.ts +8 -0
  265. package/cdn/components/harmony-history/harmony-history.js +44 -0
  266. package/cdn/components/harmony-history/harmony-history.styles.d.ts +2 -0
  267. package/cdn/components/harmony-history/harmony-history.styles.js +9 -0
  268. package/cdn/components/icon/icon.component.js +2 -2
  269. package/cdn/components/icon/icon.js +3 -3
  270. package/cdn/components/input/input.component.js +3 -3
  271. package/cdn/components/input/input.js +4 -4
  272. package/cdn/components/loader/loader.component.js +2 -2
  273. package/cdn/components/loader/loader.js +3 -3
  274. package/cdn/components/login/login.component.js +8 -8
  275. package/cdn/components/login/login.js +9 -9
  276. package/cdn/components/map/map.component.js +7 -7
  277. package/cdn/components/map/map.js +8 -8
  278. package/cdn/components/map/map.service.js +3 -3
  279. package/cdn/components/menu/menu.component.js +2 -2
  280. package/cdn/components/menu/menu.js +3 -3
  281. package/cdn/components/menu-item/menu-item.component.js +5 -5
  282. package/cdn/components/menu-item/menu-item.js +6 -6
  283. package/cdn/components/option/option.component.js +3 -3
  284. package/cdn/components/option/option.js +4 -4
  285. package/cdn/components/pagination/pagination.component.js +3 -3
  286. package/cdn/components/pagination/pagination.js +4 -4
  287. package/cdn/components/plot/plot.component.js +3 -3
  288. package/cdn/components/plot/plot.js +4 -4
  289. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  290. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  291. package/cdn/components/plot-toolbar/plot-toolbar.component.js +14 -15
  292. package/cdn/components/plot-toolbar/plot-toolbar.js +15 -16
  293. package/cdn/components/popup/popup.component.js +2 -2
  294. package/cdn/components/popup/popup.js +3 -3
  295. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  296. package/cdn/components/progress-bar/progress-bar.js +3 -3
  297. package/cdn/components/radio/radio.component.js +2 -2
  298. package/cdn/components/radio/radio.js +3 -3
  299. package/cdn/components/radio-group/radio-group.component.js +2 -2
  300. package/cdn/components/radio-group/radio-group.js +3 -3
  301. package/cdn/components/scroll-hint/scroll-hint.component.js +3 -3
  302. package/cdn/components/scroll-hint/scroll-hint.js +4 -4
  303. package/cdn/components/select/select.component.js +5 -5
  304. package/cdn/components/select/select.js +6 -6
  305. package/cdn/components/site-header/site-header.component.js +3 -3
  306. package/cdn/components/site-header/site-header.js +3 -3
  307. package/cdn/components/site-navigation/site-navigation.component.js +2 -2
  308. package/cdn/components/site-navigation/site-navigation.js +2 -2
  309. package/cdn/components/skeleton/skeleton.component.js +2 -2
  310. package/cdn/components/skeleton/skeleton.js +3 -3
  311. package/cdn/components/slider/slider.component.js +2 -2
  312. package/cdn/components/slider/slider.js +3 -3
  313. package/cdn/components/spatial-picker/spatial-picker.component.js +12 -12
  314. package/cdn/components/spatial-picker/spatial-picker.js +13 -13
  315. package/cdn/components/status-indicator/status-indicator.component.js +2 -2
  316. package/cdn/components/status-indicator/status-indicator.js +3 -3
  317. package/cdn/components/stepper/stepper.component.js +2 -2
  318. package/cdn/components/stepper/stepper.js +3 -3
  319. package/cdn/components/stepper-step/stepper-step.component.js +3 -3
  320. package/cdn/components/stepper-step/stepper-step.js +4 -4
  321. package/cdn/components/tab/tab.component.js +3 -3
  322. package/cdn/components/tab/tab.js +4 -4
  323. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  324. package/cdn/components/tab-panel/tab-panel.js +3 -3
  325. package/cdn/components/tabs/tabs.component.js +3 -3
  326. package/cdn/components/tabs/tabs.js +4 -4
  327. package/cdn/components/tag/tag.component.js +3 -3
  328. package/cdn/components/tag/tag.js +4 -4
  329. package/cdn/components/textarea/textarea.component.js +2 -2
  330. package/cdn/components/textarea/textarea.js +3 -3
  331. package/cdn/components/time-average-map/time-average-map-cache.service.js +2 -3
  332. package/cdn/components/time-average-map/time-average-map.component.d.ts +10 -0
  333. package/cdn/components/time-average-map/time-average-map.component.js +26 -25
  334. package/cdn/components/time-average-map/time-average-map.controller.js +7 -6
  335. package/cdn/components/time-average-map/time-average-map.js +27 -26
  336. package/cdn/components/time-series/time-series-cache.service.js +2 -3
  337. package/cdn/components/time-series/time-series.component.d.ts +4 -0
  338. package/cdn/components/time-series/time-series.component.js +27 -26
  339. package/cdn/components/time-series/time-series.controller.js +8 -6
  340. package/cdn/components/time-series/time-series.js +28 -27
  341. package/cdn/components/toast/toast.component.js +3 -3
  342. package/cdn/components/toast/toast.js +4 -4
  343. package/cdn/components/toggle/toggle.component.js +2 -2
  344. package/cdn/components/toggle/toggle.js +3 -3
  345. package/cdn/components/tooltip/tooltip.component.d.ts +5 -0
  346. package/cdn/components/tooltip/tooltip.component.js +4 -4
  347. package/cdn/components/tooltip/tooltip.js +5 -5
  348. package/cdn/components/tooltip/tooltip.styles.js +1 -1
  349. package/cdn/components/variable-combobox/variable-combobox.component.js +6 -6
  350. package/cdn/components/variable-combobox/variable-combobox.js +7 -7
  351. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +7 -7
  352. package/cdn/components/variable-keyword-search/variable-keyword-search.js +8 -8
  353. package/cdn/custom-elements.json +461 -1
  354. package/cdn/data-services/types.d.ts +2 -0
  355. package/cdn/events/events.d.ts +2 -0
  356. package/cdn/events/terra-harmony-job-delete.d.ts +8 -0
  357. package/cdn/events/terra-harmony-job-select.d.ts +9 -0
  358. package/cdn/internal/indexeddb.d.ts +2 -1
  359. package/cdn/lib/api.client.d.ts +1 -1
  360. package/cdn/lib/harmony/harmony.request.d.ts +23 -1
  361. package/cdn/lib/thumbnails/thumbnail.service.d.ts +14 -0
  362. package/cdn/queries/harmony.queries.d.ts +28 -0
  363. package/cdn/react/accordion/index.js +4 -4
  364. package/cdn/react/alert/index.js +3 -3
  365. package/cdn/react/avatar/index.js +4 -4
  366. package/cdn/react/badge/index.js +3 -3
  367. package/cdn/react/breadcrumb/index.js +3 -3
  368. package/cdn/react/breadcrumbs/index.js +3 -3
  369. package/cdn/react/browse-variables/index.js +12 -12
  370. package/cdn/react/button/index.js +4 -4
  371. package/cdn/react/button-group/index.js +3 -3
  372. package/cdn/react/caption/index.js +3 -3
  373. package/cdn/react/card/index.js +3 -3
  374. package/cdn/react/checkbox/index.js +4 -4
  375. package/cdn/react/chip/index.js +3 -3
  376. package/cdn/react/combobox/index.js +3 -3
  377. package/cdn/react/data-access/index.js +27 -26
  378. package/cdn/react/data-grid/index.js +4 -4
  379. package/cdn/react/data-rods/index.js +37 -36
  380. package/cdn/react/data-subsetter/index.js +37 -35
  381. package/cdn/react/data-subsetter-history/index.js +38 -36
  382. package/cdn/react/date-picker/index.js +8 -8
  383. package/cdn/react/date-range-slider/index.js +3 -3
  384. package/cdn/react/dialog/index.js +5 -5
  385. package/cdn/react/divider/index.js +3 -3
  386. package/cdn/react/dropdown/index.js +4 -4
  387. package/cdn/react/earthdata-login/index.js +11 -11
  388. package/cdn/react/file-upload/index.js +3 -3
  389. package/cdn/react/harmony-history/index.d.ts +30 -0
  390. package/cdn/react/harmony-history/index.js +44 -0
  391. package/cdn/react/icon/index.js +3 -3
  392. package/cdn/react/index.d.ts +1 -0
  393. package/cdn/react/index.js +207 -200
  394. package/cdn/react/input/index.js +4 -4
  395. package/cdn/react/loader/index.js +3 -3
  396. package/cdn/react/login/index.js +9 -9
  397. package/cdn/react/map/index.js +8 -8
  398. package/cdn/react/menu/index.js +3 -3
  399. package/cdn/react/menu-item/index.js +6 -6
  400. package/cdn/react/option/index.js +4 -4
  401. package/cdn/react/pagination/index.js +4 -4
  402. package/cdn/react/plot/index.js +4 -4
  403. package/cdn/react/plot-toolbar/index.js +15 -16
  404. package/cdn/react/popup/index.js +3 -3
  405. package/cdn/react/progress-bar/index.js +3 -3
  406. package/cdn/react/radio/index.js +3 -3
  407. package/cdn/react/radio-group/index.js +3 -3
  408. package/cdn/react/scroll-hint/index.js +4 -4
  409. package/cdn/react/select/index.js +6 -6
  410. package/cdn/react/site-header/index.js +4 -4
  411. package/cdn/react/site-navigation/index.js +3 -3
  412. package/cdn/react/skeleton/index.js +3 -3
  413. package/cdn/react/slider/index.js +3 -3
  414. package/cdn/react/spatial-picker/index.js +13 -13
  415. package/cdn/react/status-indicator/index.js +3 -3
  416. package/cdn/react/stepper/index.js +3 -3
  417. package/cdn/react/stepper-step/index.js +4 -4
  418. package/cdn/react/tab/index.js +4 -4
  419. package/cdn/react/tab-panel/index.js +3 -3
  420. package/cdn/react/tabs/index.js +4 -4
  421. package/cdn/react/tag/index.js +4 -4
  422. package/cdn/react/textarea/index.js +3 -3
  423. package/cdn/react/time-average-map/index.js +27 -26
  424. package/cdn/react/time-series/index.js +28 -27
  425. package/cdn/react/toast/index.js +4 -4
  426. package/cdn/react/toggle/index.js +3 -3
  427. package/cdn/react/tooltip/index.js +5 -5
  428. package/cdn/react/variable-combobox/index.js +7 -7
  429. package/cdn/react/variable-keyword-search/index.js +8 -8
  430. package/cdn/terra-ui-components.d.ts +1 -0
  431. package/cdn/terra-ui-components.js +178 -171
  432. package/cdn/types/vue/index.d.ts +56 -0
  433. package/cdn/vscode.html-custom-data.json +38 -3
  434. package/cdn/web-types.json +99 -3
  435. package/dist/apis/harmony.api.d.ts +24 -1
  436. package/dist/chunks/chunk.244CTE3T.js +1 -0
  437. package/dist/chunks/chunk.27Y756GG.js +1 -0
  438. package/dist/chunks/chunk.2BHAYNPS.js +33 -0
  439. package/dist/chunks/chunk.2C5SN5KH.js +74 -0
  440. package/dist/chunks/chunk.2ENSAFQB.js +1 -0
  441. package/dist/chunks/chunk.2FKZOYDM.js +170 -0
  442. package/dist/chunks/chunk.2IEYXOYV.js +1 -0
  443. package/dist/chunks/chunk.2MLS3BXA.js +1 -0
  444. package/dist/chunks/chunk.2OO26QIR.js +126 -0
  445. package/dist/chunks/chunk.2P4DDFRQ.js +1 -0
  446. package/dist/chunks/chunk.2UQEJRIQ.js +1 -0
  447. package/dist/chunks/chunk.2UZ2VECA.js +1 -0
  448. package/dist/chunks/chunk.36AZ2XCI.js +1 -0
  449. package/dist/chunks/chunk.37QTJ25S.js +1 -0
  450. package/dist/chunks/chunk.3B4QPUAN.js +1 -0
  451. package/dist/chunks/chunk.3DFIUNAQ.js +1 -0
  452. package/dist/chunks/chunk.3IDBLCMG.js +1 -0
  453. package/dist/chunks/chunk.3MBQYZVW.js +1 -0
  454. package/dist/chunks/chunk.3MIQ6XNR.js +1 -0
  455. package/dist/chunks/chunk.3VXALYKM.js +1 -0
  456. package/dist/chunks/chunk.423GIWLL.js +1 -0
  457. package/dist/chunks/chunk.4CN24QEJ.js +20 -0
  458. package/dist/chunks/chunk.4E4ZURVB.js +1 -0
  459. package/dist/chunks/chunk.4EMIESAS.js +1 -0
  460. package/dist/chunks/chunk.4SHUUZJ2.js +1 -0
  461. package/dist/chunks/chunk.4SOONPCJ.js +1 -0
  462. package/dist/chunks/chunk.53R5NBAZ.js +1 -0
  463. package/dist/chunks/chunk.55RZU5QQ.js +5 -0
  464. package/dist/chunks/chunk.5BVXDE6L.js +1 -0
  465. package/dist/chunks/chunk.5CBU7CVX.js +35 -0
  466. package/dist/chunks/chunk.5DPPXATR.js +1 -0
  467. package/dist/chunks/chunk.5FHR3PRK.js +1 -0
  468. package/dist/chunks/chunk.5JBQBY62.js +39 -0
  469. package/dist/chunks/chunk.5MBY6WKW.js +1 -0
  470. package/dist/chunks/chunk.5QVSLO3V.js +280 -0
  471. package/dist/chunks/chunk.5SB77RHW.js +1 -0
  472. package/dist/chunks/chunk.5T6SIPN2.js +1 -0
  473. package/dist/chunks/chunk.5YXQRHD5.js +1 -0
  474. package/dist/chunks/chunk.64Q7BMHI.js +1 -0
  475. package/dist/chunks/chunk.64Z5WQSA.js +1 -0
  476. package/dist/chunks/chunk.6GKKK7NJ.js +1 -0
  477. package/dist/chunks/chunk.6UKNMXZJ.js +1 -0
  478. package/dist/chunks/chunk.6XF647QW.js +1 -0
  479. package/dist/chunks/chunk.76DTOJU7.js +16 -0
  480. package/dist/chunks/chunk.76G4XANJ.js +1 -0
  481. package/dist/chunks/chunk.7I5677S3.js +154 -0
  482. package/dist/chunks/chunk.7MBGEUE4.js +1 -0
  483. package/dist/chunks/chunk.7RCZODIH.js +1 -0
  484. package/dist/chunks/chunk.A26JWAE2.js +1 -0
  485. package/dist/chunks/chunk.AAY4R5IR.js +11 -0
  486. package/dist/chunks/chunk.ACHFH4Q5.js +1 -0
  487. package/dist/chunks/chunk.AP6WOLOM.js +1 -0
  488. package/dist/chunks/chunk.AQ25ZIGD.js +1 -0
  489. package/dist/chunks/chunk.ARVXHRR4.js +1 -0
  490. package/dist/chunks/chunk.B5J6EQBL.js +1 -0
  491. package/dist/chunks/chunk.BARYZDDP.js +1 -0
  492. package/dist/chunks/chunk.BCYULSBS.js +19 -0
  493. package/dist/chunks/chunk.BF6REXY3.js +1 -0
  494. package/dist/chunks/chunk.BNV4KROE.js +1 -0
  495. package/dist/chunks/chunk.BPWHAHIU.js +1 -0
  496. package/dist/chunks/chunk.BQ7I5O2H.js +62 -0
  497. package/dist/chunks/chunk.BWAKPSV4.js +38 -0
  498. package/dist/chunks/chunk.C2Z2P4HZ.js +1 -0
  499. package/dist/chunks/chunk.C7QR4SPF.js +1 -0
  500. package/dist/chunks/chunk.CL3UPHCV.js +145 -0
  501. package/dist/chunks/chunk.CQXIUSH7.js +1 -0
  502. package/dist/chunks/chunk.CZZ63EKR.js +1 -0
  503. package/dist/chunks/chunk.DMPAY35P.js +115 -0
  504. package/dist/chunks/chunk.E47M7NVI.js +55 -0
  505. package/dist/chunks/chunk.E6LODOVJ.js +65 -0
  506. package/dist/chunks/chunk.EDADTX5Q.js +1 -0
  507. package/dist/chunks/chunk.EDBJ4VFC.js +1 -0
  508. package/dist/chunks/chunk.EJOLVPRS.js +1 -0
  509. package/dist/chunks/chunk.EKDZB5S2.js +1 -0
  510. package/dist/chunks/chunk.ELUBODMC.js +12 -0
  511. package/dist/chunks/chunk.ETE4SEGE.js +1 -0
  512. package/dist/chunks/chunk.EZI7VJCI.js +1 -0
  513. package/dist/chunks/chunk.FB2U5ODR.js +1 -0
  514. package/dist/chunks/chunk.FEZWYWLM.js +1 -0
  515. package/dist/chunks/chunk.FM53AQRR.js +5 -0
  516. package/dist/chunks/chunk.FNBTJL76.js +55 -0
  517. package/dist/chunks/chunk.FSSL6ZLQ.js +35 -0
  518. package/dist/chunks/chunk.G6R7GCGB.js +1 -0
  519. package/dist/chunks/chunk.GPI7PCGX.js +1 -0
  520. package/dist/chunks/chunk.GQIIFJUH.js +1 -0
  521. package/dist/chunks/chunk.HBIKGPFF.js +1 -0
  522. package/dist/chunks/chunk.HOADB2CO.js +67 -0
  523. package/dist/chunks/chunk.HUZMK2VQ.js +1 -0
  524. package/dist/chunks/chunk.HZRKVYQY.js +1 -0
  525. package/dist/chunks/chunk.I5P6RFB4.js +1 -0
  526. package/dist/chunks/chunk.IWYCR2FE.js +1 -0
  527. package/dist/chunks/chunk.IWZF7C67.js +1 -0
  528. package/dist/chunks/chunk.J5THC22T.js +1 -0
  529. package/dist/chunks/chunk.JB4B7N5B.js +1 -0
  530. package/dist/chunks/chunk.JIPQ7AV4.js +1 -0
  531. package/dist/chunks/chunk.JLC7KOHX.js +1 -0
  532. package/dist/chunks/chunk.JLS55DD4.js +121 -0
  533. package/dist/chunks/chunk.JOGU5BJB.js +1 -0
  534. package/dist/chunks/chunk.JRVMPEDZ.js +1 -0
  535. package/dist/chunks/chunk.JZSTMBRE.js +55 -0
  536. package/dist/chunks/chunk.K3PIEJHK.js +23 -0
  537. package/dist/chunks/chunk.KAF7DE46.js +1 -0
  538. package/dist/chunks/chunk.KBH7XUJ2.js +1 -0
  539. package/dist/chunks/chunk.KWCBIL2K.js +11 -0
  540. package/dist/chunks/chunk.L5XSUU23.js +9 -0
  541. package/dist/chunks/chunk.LBG47EHU.js +80 -0
  542. package/dist/chunks/chunk.LC4ZSYI5.js +9 -0
  543. package/dist/chunks/chunk.LHGSX2EB.js +1 -0
  544. package/dist/chunks/chunk.LHSPDFX4.js +1 -0
  545. package/dist/chunks/chunk.LVPW3I5Y.js +1 -0
  546. package/dist/chunks/chunk.LXRYB5BK.js +1 -0
  547. package/dist/chunks/chunk.M7AHS3AH.js +1 -0
  548. package/dist/chunks/chunk.MJVP52R5.js +43 -0
  549. package/dist/chunks/chunk.MKVYWZTL.js +99 -0
  550. package/dist/chunks/chunk.MU3VKJWB.js +1 -0
  551. package/dist/chunks/chunk.MXOPVRH6.js +1 -0
  552. package/dist/chunks/chunk.N3AEF5KW.js +1 -0
  553. package/dist/chunks/chunk.NFM5IDJR.js +24 -0
  554. package/dist/chunks/chunk.NI5IMMU6.js +1 -0
  555. package/dist/chunks/chunk.NJTQ2K6F.js +48 -0
  556. package/dist/chunks/chunk.NORSDIMU.js +8 -0
  557. package/dist/chunks/chunk.NSHMVB5U.js +1 -0
  558. package/dist/chunks/chunk.NZ2EQTLJ.js +1 -0
  559. package/dist/chunks/chunk.NZRBH2FO.js +1 -0
  560. package/dist/chunks/chunk.NZW4RZY3.js +1 -0
  561. package/dist/chunks/chunk.O2HBLJZB.js +1 -0
  562. package/dist/chunks/chunk.O3JBMOQJ.js +749 -0
  563. package/dist/chunks/chunk.O7IVXZBJ.js +1 -0
  564. package/dist/chunks/chunk.OAYJFXJ7.js +37 -0
  565. package/dist/chunks/chunk.OBKNMV5D.js +1 -0
  566. package/dist/chunks/chunk.ODZ5RFHN.js +25 -0
  567. package/dist/chunks/chunk.OGQJH54I.js +1 -0
  568. package/dist/chunks/chunk.OILCN37O.js +299 -0
  569. package/dist/chunks/chunk.OWXXS6QM.js +100 -0
  570. package/dist/chunks/chunk.PABCKGCM.js +140 -0
  571. package/dist/chunks/chunk.PAEUAUNV.js +8 -0
  572. package/dist/chunks/chunk.PBRI7B7A.js +20 -0
  573. package/dist/chunks/chunk.PDXLX5LB.js +22 -0
  574. package/dist/chunks/chunk.PM4ZLX54.js +1 -0
  575. package/dist/chunks/chunk.PNFIHG3Z.js +1 -0
  576. package/dist/chunks/chunk.QBZ3RHNB.js +49 -0
  577. package/dist/chunks/chunk.QC2EZC4J.js +101 -0
  578. package/dist/chunks/chunk.QMLZIOGK.js +1 -0
  579. package/dist/chunks/chunk.QQO5GUXS.js +1 -0
  580. package/dist/chunks/chunk.QUPFWO2W.js +1 -0
  581. package/dist/chunks/chunk.QXFOLPTE.js +157 -0
  582. package/dist/chunks/chunk.QZB7YAW4.js +1 -0
  583. package/dist/chunks/chunk.RBE5AOEF.js +2 -0
  584. package/dist/chunks/chunk.RIHKWEWK.js +1 -0
  585. package/dist/chunks/chunk.RJSNPXT4.js +1 -0
  586. package/dist/chunks/chunk.RM5PZL2E.js +1 -0
  587. package/dist/chunks/chunk.RTZZX2UG.js +30 -0
  588. package/dist/chunks/chunk.RYXFAYSI.js +1 -0
  589. package/dist/chunks/chunk.S3WSRAXA.js +1 -0
  590. package/dist/chunks/chunk.SAYRRMRN.js +1 -0
  591. package/dist/chunks/chunk.SDEKZ7EH.js +1 -0
  592. package/dist/chunks/chunk.SJ7SUN6N.js +1 -0
  593. package/dist/chunks/chunk.SJW4CYVO.js +1 -0
  594. package/dist/chunks/chunk.SLEOS424.js +1 -0
  595. package/dist/chunks/chunk.T6M2XKVT.js +1 -0
  596. package/dist/chunks/chunk.TOHRQWOJ.js +43 -0
  597. package/dist/chunks/chunk.TQUTGUIU.js +1 -0
  598. package/dist/chunks/chunk.TTVYXNEX.js +1 -0
  599. package/dist/chunks/chunk.TZPFDI45.js +1 -0
  600. package/dist/chunks/chunk.U2FNXZ4T.js +1157 -0
  601. package/dist/chunks/chunk.U2GOK43S.js +14 -0
  602. package/dist/chunks/chunk.U2S27E26.js +1 -0
  603. package/dist/chunks/chunk.UEJTWT4H.js +1 -0
  604. package/dist/chunks/chunk.UHWXDO2X.js +1 -0
  605. package/dist/chunks/chunk.UIJRLYJ5.js +300 -0
  606. package/dist/chunks/chunk.UIKMEY7L.js +1 -0
  607. package/dist/chunks/chunk.UOPZ7IQO.js +1 -0
  608. package/dist/chunks/chunk.UQXFJXT2.js +566 -0
  609. package/dist/chunks/chunk.USZXOQ5W.js +1 -0
  610. package/dist/chunks/chunk.UYGW5SAC.js +37 -0
  611. package/dist/chunks/chunk.UZ4RSTT6.js +64 -0
  612. package/dist/chunks/chunk.V6OBKZEU.js +1 -0
  613. package/dist/chunks/chunk.V6ZDTBMM.js +1 -0
  614. package/dist/chunks/chunk.VBIWDPIC.js +6 -0
  615. package/dist/chunks/chunk.VZTQF4OE.js +1 -0
  616. package/dist/chunks/chunk.W753QEWS.js +122 -0
  617. package/dist/chunks/chunk.W7RCZIAS.js +30 -0
  618. package/dist/chunks/chunk.WGADCB3O.js +4 -0
  619. package/dist/chunks/chunk.WGYVWH4N.js +1 -0
  620. package/dist/chunks/chunk.WKLFO4CV.js +1 -0
  621. package/dist/chunks/chunk.WPYM7UE2.js +75 -0
  622. package/dist/chunks/chunk.WR22TB5Y.js +106 -0
  623. package/dist/chunks/chunk.WT6GZVYY.js +1 -0
  624. package/dist/chunks/chunk.X6YUDBBQ.js +1 -0
  625. package/dist/chunks/chunk.XIJIRCHU.js +1 -0
  626. package/dist/chunks/chunk.Y5KEEPVM.js +1 -0
  627. package/dist/chunks/chunk.YE2XHS7U.js +1 -0
  628. package/dist/chunks/chunk.YID2VH6X.js +17 -0
  629. package/dist/chunks/chunk.YQG4O6JG.js +1 -0
  630. package/dist/chunks/chunk.YS7ZNM77.js +1 -0
  631. package/dist/chunks/chunk.YSJ2VJE5.js +1 -0
  632. package/dist/chunks/chunk.YVP42OKY.js +26 -0
  633. package/dist/chunks/chunk.Z25SA46F.js +1 -0
  634. package/dist/chunks/chunk.ZDHEJXMO.js +1 -0
  635. package/dist/chunks/chunk.ZEIMRQG5.js +1 -0
  636. package/dist/chunks/chunk.ZF3CXW3V.js +1 -0
  637. package/dist/chunks/chunk.ZFIDO76G.js +1 -0
  638. package/dist/chunks/chunk.ZHOOI52R.js +1 -0
  639. package/dist/chunks/chunk.ZIOKLPTQ.js +47 -0
  640. package/dist/chunks/chunk.ZS3U4XEF.js +26 -0
  641. package/dist/chunks/chunk.ZTYZ7EWT.js +1 -0
  642. package/dist/components/accordion/accordion.component.js +1 -1
  643. package/dist/components/accordion/accordion.js +1 -1
  644. package/dist/components/alert/alert.component.js +1 -1
  645. package/dist/components/alert/alert.js +1 -1
  646. package/dist/components/avatar/avatar.component.js +1 -1
  647. package/dist/components/avatar/avatar.js +1 -1
  648. package/dist/components/badge/badge.component.js +1 -1
  649. package/dist/components/badge/badge.js +1 -1
  650. package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
  651. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  652. package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
  653. package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
  654. package/dist/components/browse-variables/browse-variables.component.js +1 -1
  655. package/dist/components/browse-variables/browse-variables.js +1 -1
  656. package/dist/components/button/button.component.js +1 -1
  657. package/dist/components/button/button.js +1 -1
  658. package/dist/components/button-group/button-group.component.js +1 -1
  659. package/dist/components/button-group/button-group.js +1 -1
  660. package/dist/components/caption/caption.component.js +1 -1
  661. package/dist/components/caption/caption.js +1 -1
  662. package/dist/components/card/card.component.js +1 -1
  663. package/dist/components/card/card.js +1 -1
  664. package/dist/components/checkbox/checkbox.component.js +1 -1
  665. package/dist/components/checkbox/checkbox.js +1 -1
  666. package/dist/components/chip/chip.component.js +1 -1
  667. package/dist/components/chip/chip.js +1 -1
  668. package/dist/components/combobox/combobox.component.js +1 -1
  669. package/dist/components/combobox/combobox.js +1 -1
  670. package/dist/components/data-access/data-access.component.js +1 -1
  671. package/dist/components/data-access/data-access.js +1 -1
  672. package/dist/components/data-grid/data-grid.component.js +1 -1
  673. package/dist/components/data-grid/data-grid.js +1 -1
  674. package/dist/components/data-rods/data-rods.component.js +1 -1
  675. package/dist/components/data-rods/data-rods.js +1 -1
  676. package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
  677. package/dist/components/data-subsetter/data-subsetter.js +1 -1
  678. package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  679. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
  680. package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
  681. package/dist/components/date-picker/date-picker.component.js +1 -1
  682. package/dist/components/date-picker/date-picker.js +1 -1
  683. package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
  684. package/dist/components/date-range-slider/date-range-slider.js +1 -1
  685. package/dist/components/dialog/dialog.component.js +1 -1
  686. package/dist/components/dialog/dialog.js +1 -1
  687. package/dist/components/divider/divider.component.js +1 -1
  688. package/dist/components/divider/divider.js +1 -1
  689. package/dist/components/dropdown/dropdown.component.js +1 -1
  690. package/dist/components/dropdown/dropdown.js +1 -1
  691. package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
  692. package/dist/components/earthdata-login/earthdata-login.js +1 -1
  693. package/dist/components/file-upload/file-upload.component.js +1 -1
  694. package/dist/components/file-upload/file-upload.js +1 -1
  695. package/dist/components/harmony-history/harmony-history.component.d.ts +91 -0
  696. package/dist/components/harmony-history/harmony-history.component.js +1 -0
  697. package/dist/components/harmony-history/harmony-history.d.ts +8 -0
  698. package/dist/components/harmony-history/harmony-history.js +1 -0
  699. package/dist/components/harmony-history/harmony-history.styles.d.ts +2 -0
  700. package/dist/components/harmony-history/harmony-history.styles.js +1 -0
  701. package/dist/components/icon/icon.component.js +1 -1
  702. package/dist/components/icon/icon.js +1 -1
  703. package/dist/components/input/input.component.js +1 -1
  704. package/dist/components/input/input.js +1 -1
  705. package/dist/components/loader/loader.component.js +1 -1
  706. package/dist/components/loader/loader.js +1 -1
  707. package/dist/components/login/login.component.js +1 -1
  708. package/dist/components/login/login.js +1 -1
  709. package/dist/components/map/map.component.js +1 -1
  710. package/dist/components/map/map.js +1 -1
  711. package/dist/components/map/map.service.js +1 -1
  712. package/dist/components/menu/menu.component.js +1 -1
  713. package/dist/components/menu/menu.js +1 -1
  714. package/dist/components/menu-item/menu-item.component.js +1 -1
  715. package/dist/components/menu-item/menu-item.js +1 -1
  716. package/dist/components/option/option.component.js +1 -1
  717. package/dist/components/option/option.js +1 -1
  718. package/dist/components/pagination/pagination.component.js +1 -1
  719. package/dist/components/pagination/pagination.js +1 -1
  720. package/dist/components/plot/plot.component.js +1 -1
  721. package/dist/components/plot/plot.js +1 -1
  722. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  723. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  724. package/dist/components/plot-toolbar/plot-toolbar.component.js +1 -1
  725. package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
  726. package/dist/components/popup/popup.component.js +1 -1
  727. package/dist/components/popup/popup.js +1 -1
  728. package/dist/components/progress-bar/progress-bar.component.js +1 -1
  729. package/dist/components/progress-bar/progress-bar.js +1 -1
  730. package/dist/components/radio/radio.component.js +1 -1
  731. package/dist/components/radio/radio.js +1 -1
  732. package/dist/components/radio-group/radio-group.component.js +1 -1
  733. package/dist/components/radio-group/radio-group.js +1 -1
  734. package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
  735. package/dist/components/scroll-hint/scroll-hint.js +1 -1
  736. package/dist/components/select/select.component.js +1 -1
  737. package/dist/components/select/select.js +1 -1
  738. package/dist/components/site-header/site-header.component.js +1 -1
  739. package/dist/components/site-header/site-header.js +1 -1
  740. package/dist/components/site-navigation/site-navigation.component.js +1 -1
  741. package/dist/components/site-navigation/site-navigation.js +1 -1
  742. package/dist/components/skeleton/skeleton.component.js +1 -1
  743. package/dist/components/skeleton/skeleton.js +1 -1
  744. package/dist/components/slider/slider.component.js +1 -1
  745. package/dist/components/slider/slider.js +1 -1
  746. package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
  747. package/dist/components/spatial-picker/spatial-picker.js +1 -1
  748. package/dist/components/status-indicator/status-indicator.component.js +1 -1
  749. package/dist/components/status-indicator/status-indicator.js +1 -1
  750. package/dist/components/stepper/stepper.component.js +1 -1
  751. package/dist/components/stepper/stepper.js +1 -1
  752. package/dist/components/stepper-step/stepper-step.component.js +1 -1
  753. package/dist/components/stepper-step/stepper-step.js +1 -1
  754. package/dist/components/tab/tab.component.js +1 -1
  755. package/dist/components/tab/tab.js +1 -1
  756. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  757. package/dist/components/tab-panel/tab-panel.js +1 -1
  758. package/dist/components/tabs/tabs.component.js +1 -1
  759. package/dist/components/tabs/tabs.js +1 -1
  760. package/dist/components/tag/tag.component.js +1 -1
  761. package/dist/components/tag/tag.js +1 -1
  762. package/dist/components/textarea/textarea.component.js +1 -1
  763. package/dist/components/textarea/textarea.js +1 -1
  764. package/dist/components/time-average-map/time-average-map-cache.service.js +1 -1
  765. package/dist/components/time-average-map/time-average-map.component.d.ts +10 -0
  766. package/dist/components/time-average-map/time-average-map.component.js +1 -1
  767. package/dist/components/time-average-map/time-average-map.controller.js +1 -1
  768. package/dist/components/time-average-map/time-average-map.js +1 -1
  769. package/dist/components/time-series/time-series-cache.service.js +1 -1
  770. package/dist/components/time-series/time-series.component.d.ts +4 -0
  771. package/dist/components/time-series/time-series.component.js +1 -1
  772. package/dist/components/time-series/time-series.controller.js +1 -1
  773. package/dist/components/time-series/time-series.js +1 -1
  774. package/dist/components/toast/toast.component.js +1 -1
  775. package/dist/components/toast/toast.js +1 -1
  776. package/dist/components/toggle/toggle.component.js +1 -1
  777. package/dist/components/toggle/toggle.js +1 -1
  778. package/dist/components/tooltip/tooltip.component.d.ts +5 -0
  779. package/dist/components/tooltip/tooltip.component.js +1 -1
  780. package/dist/components/tooltip/tooltip.js +1 -1
  781. package/dist/components/tooltip/tooltip.styles.js +1 -1
  782. package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
  783. package/dist/components/variable-combobox/variable-combobox.js +1 -1
  784. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
  785. package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
  786. package/dist/custom-elements.json +461 -1
  787. package/dist/data-services/types.d.ts +2 -0
  788. package/dist/events/events.d.ts +2 -0
  789. package/dist/events/terra-harmony-job-delete.d.ts +8 -0
  790. package/dist/events/terra-harmony-job-select.d.ts +9 -0
  791. package/dist/internal/indexeddb.d.ts +2 -1
  792. package/dist/lib/api.client.d.ts +1 -1
  793. package/dist/lib/harmony/harmony.request.d.ts +23 -1
  794. package/dist/lib/thumbnails/thumbnail.service.d.ts +14 -0
  795. package/dist/queries/harmony.queries.d.ts +28 -0
  796. package/dist/react/accordion/index.js +1 -1
  797. package/dist/react/alert/index.js +1 -1
  798. package/dist/react/avatar/index.js +1 -1
  799. package/dist/react/badge/index.js +1 -1
  800. package/dist/react/breadcrumb/index.js +1 -1
  801. package/dist/react/breadcrumbs/index.js +1 -1
  802. package/dist/react/browse-variables/index.js +1 -1
  803. package/dist/react/button/index.js +1 -1
  804. package/dist/react/button-group/index.js +1 -1
  805. package/dist/react/caption/index.js +1 -1
  806. package/dist/react/card/index.js +1 -1
  807. package/dist/react/checkbox/index.js +1 -1
  808. package/dist/react/chip/index.js +1 -1
  809. package/dist/react/combobox/index.js +1 -1
  810. package/dist/react/data-access/index.js +1 -1
  811. package/dist/react/data-grid/index.js +1 -1
  812. package/dist/react/data-rods/index.js +1 -1
  813. package/dist/react/data-subsetter/index.js +1 -1
  814. package/dist/react/data-subsetter-history/index.js +1 -1
  815. package/dist/react/date-picker/index.js +1 -1
  816. package/dist/react/date-range-slider/index.js +1 -1
  817. package/dist/react/dialog/index.js +1 -1
  818. package/dist/react/divider/index.js +1 -1
  819. package/dist/react/dropdown/index.js +1 -1
  820. package/dist/react/earthdata-login/index.js +1 -1
  821. package/dist/react/file-upload/index.js +1 -1
  822. package/dist/react/harmony-history/index.d.ts +30 -0
  823. package/dist/react/harmony-history/index.js +1 -0
  824. package/dist/react/icon/index.js +1 -1
  825. package/dist/react/index.d.ts +1 -0
  826. package/dist/react/index.js +1 -1
  827. package/dist/react/input/index.js +1 -1
  828. package/dist/react/loader/index.js +1 -1
  829. package/dist/react/login/index.js +1 -1
  830. package/dist/react/map/index.js +1 -1
  831. package/dist/react/menu/index.js +1 -1
  832. package/dist/react/menu-item/index.js +1 -1
  833. package/dist/react/option/index.js +1 -1
  834. package/dist/react/pagination/index.js +1 -1
  835. package/dist/react/plot/index.js +1 -1
  836. package/dist/react/plot-toolbar/index.js +1 -1
  837. package/dist/react/popup/index.js +1 -1
  838. package/dist/react/progress-bar/index.js +1 -1
  839. package/dist/react/radio/index.js +1 -1
  840. package/dist/react/radio-group/index.js +1 -1
  841. package/dist/react/scroll-hint/index.js +1 -1
  842. package/dist/react/select/index.js +1 -1
  843. package/dist/react/site-header/index.js +1 -1
  844. package/dist/react/site-navigation/index.js +1 -1
  845. package/dist/react/skeleton/index.js +1 -1
  846. package/dist/react/slider/index.js +1 -1
  847. package/dist/react/spatial-picker/index.js +1 -1
  848. package/dist/react/status-indicator/index.js +1 -1
  849. package/dist/react/stepper/index.js +1 -1
  850. package/dist/react/stepper-step/index.js +1 -1
  851. package/dist/react/tab/index.js +1 -1
  852. package/dist/react/tab-panel/index.js +1 -1
  853. package/dist/react/tabs/index.js +1 -1
  854. package/dist/react/tag/index.js +1 -1
  855. package/dist/react/textarea/index.js +1 -1
  856. package/dist/react/time-average-map/index.js +1 -1
  857. package/dist/react/time-series/index.js +1 -1
  858. package/dist/react/toast/index.js +1 -1
  859. package/dist/react/toggle/index.js +1 -1
  860. package/dist/react/tooltip/index.js +1 -1
  861. package/dist/react/variable-combobox/index.js +1 -1
  862. package/dist/react/variable-keyword-search/index.js +1 -1
  863. package/dist/terra-ui-components.d.ts +1 -0
  864. package/dist/terra-ui-components.js +1 -1
  865. package/dist/terra_ui_components-0.0.180-py3-none-any.whl +0 -0
  866. package/dist/terra_ui_components-0.0.180.tar.gz +0 -0
  867. package/dist/types/vue/index.d.ts +56 -0
  868. package/dist/vscode.html-custom-data.json +38 -3
  869. package/dist/web-types.json +99 -3
  870. package/package.json +1 -1
  871. package/cdn/chunks/chunk.26KT257Q.js +0 -19
  872. package/cdn/chunks/chunk.26SCJOJ4.js +0 -74
  873. package/cdn/chunks/chunk.2EHI57XD.js +0 -231
  874. package/cdn/chunks/chunk.2I5KN4RI.js +0 -37
  875. package/cdn/chunks/chunk.2NYR45OC.js +0 -19
  876. package/cdn/chunks/chunk.2PCUEDQZ.js +0 -443
  877. package/cdn/chunks/chunk.2PIJCAHO.js +0 -99
  878. package/cdn/chunks/chunk.2UX56X34.js +0 -113
  879. package/cdn/chunks/chunk.2XHYYHQN.js +0 -275
  880. package/cdn/chunks/chunk.3AKWECBP.js +0 -372
  881. package/cdn/chunks/chunk.3GBETBER.js +0 -123
  882. package/cdn/chunks/chunk.3HV55YDS.js +0 -224
  883. package/cdn/chunks/chunk.3KFZES7Q.js +0 -230
  884. package/cdn/chunks/chunk.3LTFEU5K.js +0 -36
  885. package/cdn/chunks/chunk.3MWEGEU7.js +0 -610
  886. package/cdn/chunks/chunk.3NTDKUSD.js +0 -29
  887. package/cdn/chunks/chunk.3S4XI5MC.js +0 -86
  888. package/cdn/chunks/chunk.43WTY3ZD.js +0 -32
  889. package/cdn/chunks/chunk.45N3DFV4.js +0 -19
  890. package/cdn/chunks/chunk.4HCU45UG.js +0 -29
  891. package/cdn/chunks/chunk.4LFOVYFH.js +0 -99
  892. package/cdn/chunks/chunk.4NTCIMIX.js +0 -2244
  893. package/cdn/chunks/chunk.4OP4GNVW.js +0 -29
  894. package/cdn/chunks/chunk.4VAP3VBN.js +0 -29
  895. package/cdn/chunks/chunk.4YNSLPJC.js +0 -19
  896. package/cdn/chunks/chunk.4ZM4QKER.js +0 -19
  897. package/cdn/chunks/chunk.55427GKA.js +0 -82
  898. package/cdn/chunks/chunk.57IZ2MZ2.js +0 -19
  899. package/cdn/chunks/chunk.5KGLRM37.js +0 -19
  900. package/cdn/chunks/chunk.5LCTOD4H.js +0 -19
  901. package/cdn/chunks/chunk.5OXHAB2B.js +0 -29
  902. package/cdn/chunks/chunk.5PL6BT5L.js +0 -19
  903. package/cdn/chunks/chunk.5PSII5RD.js +0 -19
  904. package/cdn/chunks/chunk.5SVFWLUR.js +0 -32
  905. package/cdn/chunks/chunk.5VKEN4OT.js +0 -19
  906. package/cdn/chunks/chunk.62YQVV2U.js +0 -2545
  907. package/cdn/chunks/chunk.6345KRH3.js +0 -29
  908. package/cdn/chunks/chunk.64LFYQBJ.js +0 -36
  909. package/cdn/chunks/chunk.65JGKMIH.js +0 -33
  910. package/cdn/chunks/chunk.6BANIONF.js +0 -36
  911. package/cdn/chunks/chunk.6BNVBPDD.js +0 -83
  912. package/cdn/chunks/chunk.6FWBBVHU.js +0 -29
  913. package/cdn/chunks/chunk.7CYCPGZL.js +0 -19
  914. package/cdn/chunks/chunk.7DBQXMNS.js +0 -32
  915. package/cdn/chunks/chunk.AFVDFDPT.js +0 -19
  916. package/cdn/chunks/chunk.ANMFYKYT.js +0 -19
  917. package/cdn/chunks/chunk.AO2NP5HV.js +0 -29
  918. package/cdn/chunks/chunk.AZNBVV2E.js +0 -278
  919. package/cdn/chunks/chunk.B5SI6B3Q.js +0 -19
  920. package/cdn/chunks/chunk.B6HZN4GK.js +0 -29
  921. package/cdn/chunks/chunk.BQ2HB43G.js +0 -189
  922. package/cdn/chunks/chunk.BQPGMCWW.js +0 -19
  923. package/cdn/chunks/chunk.BS2LEWWJ.js +0 -19
  924. package/cdn/chunks/chunk.BY2PSOYC.js +0 -29
  925. package/cdn/chunks/chunk.CEYEI6T4.js +0 -19
  926. package/cdn/chunks/chunk.CGEZSHZ5.js +0 -33
  927. package/cdn/chunks/chunk.CK5NGIYK.js +0 -60
  928. package/cdn/chunks/chunk.CLKXRS73.js +0 -19
  929. package/cdn/chunks/chunk.DFGOCWJB.js +0 -32
  930. package/cdn/chunks/chunk.DOBB44OO.js +0 -32
  931. package/cdn/chunks/chunk.DQMBRW4N.js +0 -205
  932. package/cdn/chunks/chunk.DZ7HKQYS.js +0 -19
  933. package/cdn/chunks/chunk.DZK2VH2Q.js +0 -19
  934. package/cdn/chunks/chunk.E46YC4DO.js +0 -190
  935. package/cdn/chunks/chunk.E5WMG3BD.js +0 -19
  936. package/cdn/chunks/chunk.EB3CVSCM.js +0 -41
  937. package/cdn/chunks/chunk.EC5TUHDA.js +0 -56075
  938. package/cdn/chunks/chunk.EFZHNM4Z.js +0 -78
  939. package/cdn/chunks/chunk.EKRKRJLH.js +0 -288
  940. package/cdn/chunks/chunk.EMRMJT4V.js +0 -264
  941. package/cdn/chunks/chunk.EN3OWGOT.js +0 -29
  942. package/cdn/chunks/chunk.ETS22PNR.js +0 -19
  943. package/cdn/chunks/chunk.EVTA6QPK.js +0 -19
  944. package/cdn/chunks/chunk.EWNVVXDC.js +0 -915
  945. package/cdn/chunks/chunk.F5CDI3XH.js +0 -188
  946. package/cdn/chunks/chunk.F65WZTM3.js +0 -524
  947. package/cdn/chunks/chunk.FA7FPDAP.js +0 -33
  948. package/cdn/chunks/chunk.FBQK3I4M.js +0 -251
  949. package/cdn/chunks/chunk.FKX557YD.js +0 -35
  950. package/cdn/chunks/chunk.FP5DQ5TE.js +0 -19
  951. package/cdn/chunks/chunk.FPMFEQWC.js +0 -662
  952. package/cdn/chunks/chunk.FUX5Z5ZH.js +0 -19
  953. package/cdn/chunks/chunk.FVSS56G2.js +0 -904
  954. package/cdn/chunks/chunk.G5R5NCHW.js +0 -29
  955. package/cdn/chunks/chunk.G5WKYWF3.js +0 -1975
  956. package/cdn/chunks/chunk.G7YZNTSI.js +0 -37
  957. package/cdn/chunks/chunk.GB2EHXNN.js +0 -29
  958. package/cdn/chunks/chunk.GDAG7XAY.js +0 -1145
  959. package/cdn/chunks/chunk.GDIHTNEZ.js +0 -19
  960. package/cdn/chunks/chunk.GKNJVUX5.js +0 -32
  961. package/cdn/chunks/chunk.GTYKITY2.js +0 -19
  962. package/cdn/chunks/chunk.GW4OJECU.js +0 -658
  963. package/cdn/chunks/chunk.GXEN7PV7.js +0 -29
  964. package/cdn/chunks/chunk.H7I2MF6Q.js +0 -19
  965. package/cdn/chunks/chunk.HBEYO22S.js +0 -477
  966. package/cdn/chunks/chunk.HBJP5PSR.js +0 -234
  967. package/cdn/chunks/chunk.HGYUVVIH.js +0 -19
  968. package/cdn/chunks/chunk.HHAXDGNT.js +0 -793
  969. package/cdn/chunks/chunk.HWHP3UHO.js +0 -35
  970. package/cdn/chunks/chunk.I64EAKC3.js +0 -68
  971. package/cdn/chunks/chunk.IUIDKVNA.js +0 -19
  972. package/cdn/chunks/chunk.J3OF4YDA.js +0 -19
  973. package/cdn/chunks/chunk.JEKJT3MY.js +0 -71
  974. package/cdn/chunks/chunk.JR5DAYAS.js +0 -19
  975. package/cdn/chunks/chunk.JRVFANJK.js +0 -47
  976. package/cdn/chunks/chunk.JXELTFHA.js +0 -29
  977. package/cdn/chunks/chunk.JYMWEWPJ.js +0 -19
  978. package/cdn/chunks/chunk.K2ACV56W.js +0 -32
  979. package/cdn/chunks/chunk.K44OFKQS.js +0 -32
  980. package/cdn/chunks/chunk.K4OQYYXM.js +0 -29
  981. package/cdn/chunks/chunk.KAUIQBTO.js +0 -359
  982. package/cdn/chunks/chunk.KFCGIILI.js +0 -151
  983. package/cdn/chunks/chunk.KOAN3QWI.js +0 -19
  984. package/cdn/chunks/chunk.KVFJQNWO.js +0 -35
  985. package/cdn/chunks/chunk.KY4QC2V2.js +0 -62
  986. package/cdn/chunks/chunk.KYZTZY5T.js +0 -32
  987. package/cdn/chunks/chunk.L5A336NA.js +0 -302
  988. package/cdn/chunks/chunk.L73LVHAO.js +0 -29
  989. package/cdn/chunks/chunk.LLAJXXYS.js +0 -29
  990. package/cdn/chunks/chunk.LS2IEWTZ.js +0 -36
  991. package/cdn/chunks/chunk.LYJWWGV5.js +0 -19
  992. package/cdn/chunks/chunk.MB2V6COB.js +0 -514
  993. package/cdn/chunks/chunk.MKM7UBWD.js +0 -19
  994. package/cdn/chunks/chunk.N445KZFN.js +0 -19
  995. package/cdn/chunks/chunk.N6S4QWLI.js +0 -19
  996. package/cdn/chunks/chunk.NAGHFEYY.js +0 -32
  997. package/cdn/chunks/chunk.NCADSUWB.js +0 -19
  998. package/cdn/chunks/chunk.NCQOAE3M.js +0 -19
  999. package/cdn/chunks/chunk.NO4RDEJF.js +0 -92
  1000. package/cdn/chunks/chunk.NPNAGT7B.js +0 -19
  1001. package/cdn/chunks/chunk.NQXDDIXR.js +0 -32
  1002. package/cdn/chunks/chunk.NSBA63MB.js +0 -29
  1003. package/cdn/chunks/chunk.NWIN2OV5.js +0 -329
  1004. package/cdn/chunks/chunk.NWMT6TEO.js +0 -237
  1005. package/cdn/chunks/chunk.NWOUTLRN.js +0 -19
  1006. package/cdn/chunks/chunk.NZXJUHZX.js +0 -293
  1007. package/cdn/chunks/chunk.O6VWUDUR.js +0 -165
  1008. package/cdn/chunks/chunk.ODOR7YRI.js +0 -9744
  1009. package/cdn/chunks/chunk.OHLZOOZU.js +0 -3798
  1010. package/cdn/chunks/chunk.OIJZAJWN.js +0 -357
  1011. package/cdn/chunks/chunk.OXBDJPHT.js +0 -161
  1012. package/cdn/chunks/chunk.OXZDJYTP.js +0 -538
  1013. package/cdn/chunks/chunk.P7H34OO5.js +0 -32
  1014. package/cdn/chunks/chunk.PGQT2SUZ.js +0 -29
  1015. package/cdn/chunks/chunk.PZDOAUYA.js +0 -19
  1016. package/cdn/chunks/chunk.PZTXEDKR.js +0 -32
  1017. package/cdn/chunks/chunk.Q2KZZXNW.js +0 -19
  1018. package/cdn/chunks/chunk.QBWMG6IT.js +0 -34
  1019. package/cdn/chunks/chunk.QKPGMKCU.js +0 -29
  1020. package/cdn/chunks/chunk.QSUEVWML.js +0 -19
  1021. package/cdn/chunks/chunk.R76JUQVJ.js +0 -19
  1022. package/cdn/chunks/chunk.RGVLUCXY.js +0 -136
  1023. package/cdn/chunks/chunk.ROOGE2IT.js +0 -34
  1024. package/cdn/chunks/chunk.RPOR5R2E.js +0 -29
  1025. package/cdn/chunks/chunk.RRAIBGZ4.js +0 -19
  1026. package/cdn/chunks/chunk.RSLF75JQ.js +0 -276
  1027. package/cdn/chunks/chunk.RXWDA5OC.js +0 -29
  1028. package/cdn/chunks/chunk.SEDBHEAB.js +0 -259
  1029. package/cdn/chunks/chunk.SI62BLWL.js +0 -117
  1030. package/cdn/chunks/chunk.SOLKAAGN.js +0 -616
  1031. package/cdn/chunks/chunk.SXQOBC52.js +0 -113
  1032. package/cdn/chunks/chunk.TP5I7KWU.js +0 -19
  1033. package/cdn/chunks/chunk.U5HIJOMQ.js +0 -75
  1034. package/cdn/chunks/chunk.U5MPUZM5.js +0 -19
  1035. package/cdn/chunks/chunk.UDOTA73Q.js +0 -104
  1036. package/cdn/chunks/chunk.UIM3CRXT.js +0 -32
  1037. package/cdn/chunks/chunk.UJ37LSQF.js +0 -35
  1038. package/cdn/chunks/chunk.ULPRYBXE.js +0 -19
  1039. package/cdn/chunks/chunk.UOI45MZN.js +0 -33
  1040. package/cdn/chunks/chunk.UP5IZCN2.js +0 -19
  1041. package/cdn/chunks/chunk.UT7NEDHK.js +0 -56
  1042. package/cdn/chunks/chunk.UZIKKKMX.js +0 -599
  1043. package/cdn/chunks/chunk.V3B7XZSR.js +0 -29
  1044. package/cdn/chunks/chunk.VEQFG24Y.js +0 -29
  1045. package/cdn/chunks/chunk.VJ3HSVRM.js +0 -19
  1046. package/cdn/chunks/chunk.VM7QIPMN.js +0 -19
  1047. package/cdn/chunks/chunk.VOMJQ2PY.js +0 -29
  1048. package/cdn/chunks/chunk.VSWWQTCR.js +0 -49
  1049. package/cdn/chunks/chunk.W6SOSTCJ.js +0 -535
  1050. package/cdn/chunks/chunk.W7J5622D.js +0 -132
  1051. package/cdn/chunks/chunk.WCT2EGAW.js +0 -19
  1052. package/cdn/chunks/chunk.WDXR2JIS.js +0 -155
  1053. package/cdn/chunks/chunk.WQHKJMY7.js +0 -29
  1054. package/cdn/chunks/chunk.WWVZEJPV.js +0 -19
  1055. package/cdn/chunks/chunk.WWXXMUQQ.js +0 -29
  1056. package/cdn/chunks/chunk.WYHJ7NLI.js +0 -134
  1057. package/cdn/chunks/chunk.Y3GAPNFQ.js +0 -60
  1058. package/cdn/chunks/chunk.Y5OZ5KWP.js +0 -106
  1059. package/cdn/chunks/chunk.Y76LQIOK.js +0 -19
  1060. package/cdn/chunks/chunk.YDXASEGU.js +0 -29
  1061. package/cdn/chunks/chunk.YFQYUNKU.js +0 -19
  1062. package/cdn/chunks/chunk.YIVEZAP4.js +0 -30
  1063. package/cdn/chunks/chunk.YOIXCCDN.js +0 -93
  1064. package/cdn/chunks/chunk.YWHPP2TL.js +0 -19
  1065. package/cdn/chunks/chunk.YYHKRVK5.js +0 -34
  1066. package/cdn/chunks/chunk.Z2Y7UOPY.js +0 -1184
  1067. package/cdn/chunks/chunk.Z4Q7EJUU.js +0 -19
  1068. package/cdn/chunks/chunk.Z5D5WHWT.js +0 -39
  1069. package/cdn/chunks/chunk.Z7JIWZZH.js +0 -285
  1070. package/cdn/chunks/chunk.ZALJFYJ6.js +0 -493
  1071. package/cdn/chunks/chunk.ZWKZYPUO.js +0 -19
  1072. package/cdn/chunks/chunk.ZWVOSI42.js +0 -29
  1073. package/dist/chunks/chunk.2AJNF5Z5.js +0 -1
  1074. package/dist/chunks/chunk.2NT5ZT4T.js +0 -1
  1075. package/dist/chunks/chunk.2P3YOE6H.js +0 -1
  1076. package/dist/chunks/chunk.2QP3CLLZ.js +0 -67
  1077. package/dist/chunks/chunk.2YCZCE4S.js +0 -1
  1078. package/dist/chunks/chunk.34SGSVEH.js +0 -140
  1079. package/dist/chunks/chunk.3NRLZXI2.js +0 -1
  1080. package/dist/chunks/chunk.3YYQOQRG.js +0 -20
  1081. package/dist/chunks/chunk.46H3YDP7.js +0 -1
  1082. package/dist/chunks/chunk.46LCWODR.js +0 -65
  1083. package/dist/chunks/chunk.47BVT76F.js +0 -1
  1084. package/dist/chunks/chunk.4B47VXVP.js +0 -1
  1085. package/dist/chunks/chunk.4DDE3552.js +0 -1
  1086. package/dist/chunks/chunk.4DHJWSZT.js +0 -1
  1087. package/dist/chunks/chunk.4FA2VISH.js +0 -1
  1088. package/dist/chunks/chunk.4MBPAU5Y.js +0 -566
  1089. package/dist/chunks/chunk.4NHCLCIX.js +0 -1
  1090. package/dist/chunks/chunk.4ONQSCPA.js +0 -1
  1091. package/dist/chunks/chunk.4QXSXFWK.js +0 -1
  1092. package/dist/chunks/chunk.4WU5R5TN.js +0 -64
  1093. package/dist/chunks/chunk.5C2GZTN3.js +0 -1
  1094. package/dist/chunks/chunk.5FEQDBOD.js +0 -1
  1095. package/dist/chunks/chunk.5GXUM2LI.js +0 -1
  1096. package/dist/chunks/chunk.5ITKGB2M.js +0 -43
  1097. package/dist/chunks/chunk.5WTW5KGY.js +0 -1
  1098. package/dist/chunks/chunk.6D2P5XBP.js +0 -11
  1099. package/dist/chunks/chunk.6DLYU7II.js +0 -1
  1100. package/dist/chunks/chunk.6FK4JW6B.js +0 -1
  1101. package/dist/chunks/chunk.6QKLZA7M.js +0 -43
  1102. package/dist/chunks/chunk.6S7AITRG.js +0 -1
  1103. package/dist/chunks/chunk.6XKRCX7E.js +0 -300
  1104. package/dist/chunks/chunk.773YJXBD.js +0 -1
  1105. package/dist/chunks/chunk.7UFP5DQ4.js +0 -25
  1106. package/dist/chunks/chunk.7VXGRXO3.js +0 -1
  1107. package/dist/chunks/chunk.7WKPVNAD.js +0 -33
  1108. package/dist/chunks/chunk.A4B6V7DZ.js +0 -1
  1109. package/dist/chunks/chunk.AA4OOWL2.js +0 -6
  1110. package/dist/chunks/chunk.ABTLN6NI.js +0 -1
  1111. package/dist/chunks/chunk.ABUMARPK.js +0 -1
  1112. package/dist/chunks/chunk.AFZGF7AF.js +0 -1
  1113. package/dist/chunks/chunk.AIKRJW76.js +0 -26
  1114. package/dist/chunks/chunk.AXB5O266.js +0 -1
  1115. package/dist/chunks/chunk.AZFD4LBL.js +0 -23
  1116. package/dist/chunks/chunk.B4W7MOEM.js +0 -145
  1117. package/dist/chunks/chunk.B6IOO3S6.js +0 -1
  1118. package/dist/chunks/chunk.B7Z7LN4Y.js +0 -157
  1119. package/dist/chunks/chunk.BDTBEGUV.js +0 -30
  1120. package/dist/chunks/chunk.BML4OHUL.js +0 -1
  1121. package/dist/chunks/chunk.BVJU5S2L.js +0 -1
  1122. package/dist/chunks/chunk.BWUUT4P3.js +0 -1
  1123. package/dist/chunks/chunk.C3LDULRW.js +0 -1
  1124. package/dist/chunks/chunk.C5IAOI5P.js +0 -75
  1125. package/dist/chunks/chunk.C6KTVOGD.js +0 -101
  1126. package/dist/chunks/chunk.C6UJFOJA.js +0 -1
  1127. package/dist/chunks/chunk.CCYI6V7E.js +0 -1
  1128. package/dist/chunks/chunk.CDRNZVTB.js +0 -1
  1129. package/dist/chunks/chunk.CHTAX6YR.js +0 -1
  1130. package/dist/chunks/chunk.CMW3T6G4.js +0 -1
  1131. package/dist/chunks/chunk.CR2MHGYF.js +0 -37
  1132. package/dist/chunks/chunk.CVX2IQ3N.js +0 -1
  1133. package/dist/chunks/chunk.D4FZXK32.js +0 -1
  1134. package/dist/chunks/chunk.DMFUOXZT.js +0 -1
  1135. package/dist/chunks/chunk.DTB6YVF7.js +0 -5
  1136. package/dist/chunks/chunk.DW57B6YE.js +0 -35
  1137. package/dist/chunks/chunk.E2HFVVAU.js +0 -8
  1138. package/dist/chunks/chunk.E4MVZA4I.js +0 -1
  1139. package/dist/chunks/chunk.E5VEP5QD.js +0 -80
  1140. package/dist/chunks/chunk.EQLKJ6SU.js +0 -1
  1141. package/dist/chunks/chunk.EXKNLUSQ.js +0 -299
  1142. package/dist/chunks/chunk.EZDC5SS3.js +0 -1
  1143. package/dist/chunks/chunk.FFPMXRI3.js +0 -1
  1144. package/dist/chunks/chunk.FPQ2ZB2O.js +0 -1
  1145. package/dist/chunks/chunk.FZAX2HVR.js +0 -1
  1146. package/dist/chunks/chunk.G5CKSEBJ.js +0 -1
  1147. package/dist/chunks/chunk.G6FIOHAT.js +0 -1
  1148. package/dist/chunks/chunk.GBHLNNMQ.js +0 -1
  1149. package/dist/chunks/chunk.GD7YPOPL.js +0 -1
  1150. package/dist/chunks/chunk.GDBO6KPI.js +0 -280
  1151. package/dist/chunks/chunk.GEA7S4SS.js +0 -1
  1152. package/dist/chunks/chunk.GKYOUI6O.js +0 -1
  1153. package/dist/chunks/chunk.GNAOV4CE.js +0 -1
  1154. package/dist/chunks/chunk.GNFSENN2.js +0 -1
  1155. package/dist/chunks/chunk.GVVISPQE.js +0 -47
  1156. package/dist/chunks/chunk.GXFFIW4T.js +0 -1
  1157. package/dist/chunks/chunk.HCRWISSS.js +0 -20
  1158. package/dist/chunks/chunk.HG64IQ3Z.js +0 -1
  1159. package/dist/chunks/chunk.HHLLNXRY.js +0 -1
  1160. package/dist/chunks/chunk.HIX5GPFI.js +0 -1
  1161. package/dist/chunks/chunk.HJZJT6KY.js +0 -30
  1162. package/dist/chunks/chunk.HLSW2UGB.js +0 -1
  1163. package/dist/chunks/chunk.HSGYZLW4.js +0 -100
  1164. package/dist/chunks/chunk.HTXCAUP2.js +0 -1
  1165. package/dist/chunks/chunk.HZ7S3ZVA.js +0 -1
  1166. package/dist/chunks/chunk.I3354BKM.js +0 -1
  1167. package/dist/chunks/chunk.I7DU7VFZ.js +0 -2
  1168. package/dist/chunks/chunk.I7UJ44FA.js +0 -100
  1169. package/dist/chunks/chunk.ICBA67NI.js +0 -1
  1170. package/dist/chunks/chunk.IDMFGWNJ.js +0 -1
  1171. package/dist/chunks/chunk.IEIJCOMT.js +0 -1
  1172. package/dist/chunks/chunk.ILEOTN2D.js +0 -1
  1173. package/dist/chunks/chunk.IR5OA5AA.js +0 -1
  1174. package/dist/chunks/chunk.ISVPRRSL.js +0 -37
  1175. package/dist/chunks/chunk.J3542ENW.js +0 -16
  1176. package/dist/chunks/chunk.JKWPNRMY.js +0 -1
  1177. package/dist/chunks/chunk.JM5EALZ5.js +0 -19
  1178. package/dist/chunks/chunk.JON4UZAS.js +0 -22
  1179. package/dist/chunks/chunk.JT3HRZTN.js +0 -1
  1180. package/dist/chunks/chunk.JUBJN5ZN.js +0 -1
  1181. package/dist/chunks/chunk.K4WN3B56.js +0 -24
  1182. package/dist/chunks/chunk.KDMJINCM.js +0 -1
  1183. package/dist/chunks/chunk.KI4EUF67.js +0 -121
  1184. package/dist/chunks/chunk.KIHZQ3LL.js +0 -1
  1185. package/dist/chunks/chunk.KIOEQ552.js +0 -39
  1186. package/dist/chunks/chunk.KSQ6GHXW.js +0 -1
  1187. package/dist/chunks/chunk.KTTXLINR.js +0 -1
  1188. package/dist/chunks/chunk.LHTIGXNJ.js +0 -1
  1189. package/dist/chunks/chunk.LP2CR5VG.js +0 -8
  1190. package/dist/chunks/chunk.LWMXBJFQ.js +0 -1
  1191. package/dist/chunks/chunk.LWURMOZE.js +0 -1
  1192. package/dist/chunks/chunk.LXQMAB2U.js +0 -1
  1193. package/dist/chunks/chunk.MBVNMYVL.js +0 -11
  1194. package/dist/chunks/chunk.MCNJ2ULL.js +0 -1
  1195. package/dist/chunks/chunk.MCW4UTWF.js +0 -74
  1196. package/dist/chunks/chunk.MFUFKXTH.js +0 -14
  1197. package/dist/chunks/chunk.MGKQUQZ4.js +0 -38
  1198. package/dist/chunks/chunk.MJQTHFJL.js +0 -1
  1199. package/dist/chunks/chunk.NDXOHDIZ.js +0 -55
  1200. package/dist/chunks/chunk.NGWYN3KF.js +0 -1
  1201. package/dist/chunks/chunk.NO7DUW25.js +0 -1
  1202. package/dist/chunks/chunk.NUJQKS4H.js +0 -4
  1203. package/dist/chunks/chunk.O2HQT52O.js +0 -1
  1204. package/dist/chunks/chunk.O3ISQM6H.js +0 -62
  1205. package/dist/chunks/chunk.O3JG4DO5.js +0 -9
  1206. package/dist/chunks/chunk.O4PAZJBP.js +0 -5
  1207. package/dist/chunks/chunk.O5IMLJBF.js +0 -1
  1208. package/dist/chunks/chunk.OAXWRTN7.js +0 -1
  1209. package/dist/chunks/chunk.OBEH7FCK.js +0 -1
  1210. package/dist/chunks/chunk.OKOYLAUA.js +0 -1157
  1211. package/dist/chunks/chunk.OMX5FETB.js +0 -1
  1212. package/dist/chunks/chunk.OS6ZETFH.js +0 -1
  1213. package/dist/chunks/chunk.OYNORNE2.js +0 -9
  1214. package/dist/chunks/chunk.OYP2F75M.js +0 -126
  1215. package/dist/chunks/chunk.P75IMUDZ.js +0 -1
  1216. package/dist/chunks/chunk.PA3VBXVK.js +0 -26
  1217. package/dist/chunks/chunk.PEBJNSWB.js +0 -1
  1218. package/dist/chunks/chunk.PFCI7VDW.js +0 -1
  1219. package/dist/chunks/chunk.PJBZOFER.js +0 -1
  1220. package/dist/chunks/chunk.PM4H5JFF.js +0 -1
  1221. package/dist/chunks/chunk.PPPGTIMB.js +0 -1
  1222. package/dist/chunks/chunk.PRA6LX5W.js +0 -1
  1223. package/dist/chunks/chunk.QFB3PCD3.js +0 -1
  1224. package/dist/chunks/chunk.QW3OF5NM.js +0 -1
  1225. package/dist/chunks/chunk.QYBSPXA4.js +0 -55
  1226. package/dist/chunks/chunk.R57SSUHG.js +0 -115
  1227. package/dist/chunks/chunk.R5PW2J2X.js +0 -17
  1228. package/dist/chunks/chunk.REZF2TMV.js +0 -1
  1229. package/dist/chunks/chunk.RI4PAVBN.js +0 -1
  1230. package/dist/chunks/chunk.RQH2KYAF.js +0 -1
  1231. package/dist/chunks/chunk.RRD4GWZM.js +0 -1
  1232. package/dist/chunks/chunk.S2PSK5XR.js +0 -99
  1233. package/dist/chunks/chunk.S37IUS6R.js +0 -154
  1234. package/dist/chunks/chunk.SRXNJS22.js +0 -1
  1235. package/dist/chunks/chunk.T6PYLVCK.js +0 -1
  1236. package/dist/chunks/chunk.TQLT4DUB.js +0 -1
  1237. package/dist/chunks/chunk.TQWV4GMD.js +0 -1
  1238. package/dist/chunks/chunk.TRM2XUGL.js +0 -1
  1239. package/dist/chunks/chunk.TWJIFZVX.js +0 -1
  1240. package/dist/chunks/chunk.TWSY3M6Q.js +0 -1
  1241. package/dist/chunks/chunk.U2K4W4DP.js +0 -35
  1242. package/dist/chunks/chunk.U5EMXKX4.js +0 -1
  1243. package/dist/chunks/chunk.UDAASDQK.js +0 -1
  1244. package/dist/chunks/chunk.UEGDQ6BM.js +0 -1
  1245. package/dist/chunks/chunk.UG3YZVHQ.js +0 -55
  1246. package/dist/chunks/chunk.UIBWBYNW.js +0 -1
  1247. package/dist/chunks/chunk.UMWKE4O2.js +0 -1
  1248. package/dist/chunks/chunk.UYEDKQLP.js +0 -1
  1249. package/dist/chunks/chunk.V6NAM6MU.js +0 -1
  1250. package/dist/chunks/chunk.VFOMINBL.js +0 -48
  1251. package/dist/chunks/chunk.VGFTYA6N.js +0 -1
  1252. package/dist/chunks/chunk.VMACUK42.js +0 -1
  1253. package/dist/chunks/chunk.VRFTRHNI.js +0 -1
  1254. package/dist/chunks/chunk.VRKJSPEU.js +0 -1
  1255. package/dist/chunks/chunk.VSYHMVFB.js +0 -1
  1256. package/dist/chunks/chunk.VY3UBC7Y.js +0 -1
  1257. package/dist/chunks/chunk.W3RY3L2T.js +0 -49
  1258. package/dist/chunks/chunk.W4U6DIPH.js +0 -1
  1259. package/dist/chunks/chunk.W55BGFHT.js +0 -1
  1260. package/dist/chunks/chunk.WEVKLE7C.js +0 -1
  1261. package/dist/chunks/chunk.WG6D7JHO.js +0 -1
  1262. package/dist/chunks/chunk.XT37PN45.js +0 -1
  1263. package/dist/chunks/chunk.Y7BOR5Y6.js +0 -1
  1264. package/dist/chunks/chunk.YCV2ZGED.js +0 -1
  1265. package/dist/chunks/chunk.YMWVYGLQ.js +0 -1
  1266. package/dist/chunks/chunk.YPGTCFAH.js +0 -12
  1267. package/dist/chunks/chunk.Z26IZTH3.js +0 -1
  1268. package/dist/chunks/chunk.Z54EHKYE.js +0 -1
  1269. package/dist/chunks/chunk.ZLSEXTRL.js +0 -1
  1270. package/dist/chunks/chunk.ZRHNMI52.js +0 -1
  1271. package/dist/chunks/chunk.ZSPCDPLN.js +0 -749
  1272. package/dist/chunks/chunk.ZXQ7UCTV.js +0 -1
  1273. package/dist/terra_ui_components-0.0.178-py3-none-any.whl +0 -0
  1274. package/dist/terra_ui_components-0.0.178.tar.gz +0 -0
  1275. /package/cdn/chunks/{GeoTIFF.HVXG65QH.js → GeoTIFF.WDM5HZIC.js} +0 -0
@@ -0,0 +1,2547 @@
1
+ import {
2
+ KnownFeatureFlags,
3
+ isFeatureEnabled
4
+ } from "./chunk.S6KQAZNG.js";
5
+ import {
6
+ convertVariableEntryIdToGiovanniFormat
7
+ } from "./chunk.FXO66O5A.js";
8
+ import {
9
+ getNotebook
10
+ } from "./chunk.K2UWIYQ2.js";
11
+ import {
12
+ TerraLogin
13
+ } from "./chunk.JIY4UZ2J.js";
14
+ import {
15
+ TerraDialog
16
+ } from "./chunk.4NU6XC7B.js";
17
+ import {
18
+ data_subsetter_styles_default
19
+ } from "./chunk.GPQPCP6B.js";
20
+ import {
21
+ TerraDataAccess,
22
+ debounce
23
+ } from "./chunk.OJT6BD3G.js";
24
+ import {
25
+ TerraSlider
26
+ } from "./chunk.7W7LCLU5.js";
27
+ import {
28
+ TerraMenuItem
29
+ } from "./chunk.LG5C4AHH.js";
30
+ import {
31
+ TerraMenu
32
+ } from "./chunk.5BFFURMO.js";
33
+ import {
34
+ TerraDatePicker
35
+ } from "./chunk.2Y5YYW4R.js";
36
+ import {
37
+ HarmonyRequestController
38
+ } from "./chunk.JS5OOQLY.js";
39
+ import {
40
+ HarmonyRequest
41
+ } from "./chunk.RISDH34C.js";
42
+ import {
43
+ AuthController
44
+ } from "./chunk.7DYV7ZXX.js";
45
+ import {
46
+ CollectionController
47
+ } from "./chunk.6FVRJALX.js";
48
+ import {
49
+ TerraSpatialPicker
50
+ } from "./chunk.47Q7XTJE.js";
51
+ import {
52
+ QueryClientMixin
53
+ } from "./chunk.N4WZUEQD.js";
54
+ import {
55
+ TerraInput
56
+ } from "./chunk.GMDJOE3D.js";
57
+ import {
58
+ TerraDropdown
59
+ } from "./chunk.BUHSAHXI.js";
60
+ import {
61
+ TerraLoader
62
+ } from "./chunk.OSBHMGAB.js";
63
+ import {
64
+ TerraButton
65
+ } from "./chunk.3QZNL3QN.js";
66
+ import {
67
+ getUTCDate
68
+ } from "./chunk.TKSEPVAL.js";
69
+ import {
70
+ TerraAccordion
71
+ } from "./chunk.N466UPRW.js";
72
+ import {
73
+ TerraIcon
74
+ } from "./chunk.QRJLBELU.js";
75
+ import {
76
+ getBasePath
77
+ } from "./chunk.ZQVMOVOT.js";
78
+ import {
79
+ TerraAlert
80
+ } from "./chunk.SJFGHGKH.js";
81
+ import {
82
+ watch
83
+ } from "./chunk.MPVZOQYA.js";
84
+ import {
85
+ TerraElement,
86
+ component_styles_default,
87
+ e,
88
+ n,
89
+ r
90
+ } from "./chunk.XQO3ZO7J.js";
91
+ import {
92
+ A,
93
+ b
94
+ } from "./chunk.RRCYT4LP.js";
95
+ import {
96
+ __decorateClass,
97
+ __privateAdd,
98
+ __privateGet,
99
+ __privateMethod,
100
+ __spreadProps,
101
+ __spreadValues,
102
+ init_buffer,
103
+ init_dirname,
104
+ init_process
105
+ } from "./chunk.ZEOVK2FE.js";
106
+
107
+ // src/components/data-subsetter/data-subsetter.component.ts
108
+ init_dirname();
109
+ init_buffer();
110
+ init_process();
111
+
112
+ // src/lib/jupyter.ts
113
+ init_dirname();
114
+ init_buffer();
115
+ init_process();
116
+ var JUPYTER_LITE_URL = "https://gesdisc.github.io/jupyterlite/lab/index.html";
117
+ function openJupyterLiteWindow(readyCb) {
118
+ const jupyterWindow = window.open(JUPYTER_LITE_URL, "_blank");
119
+ if (!jupyterWindow) {
120
+ console.error("Failed to open JupyterLite!");
121
+ return;
122
+ }
123
+ window.addEventListener("message", (event) => readyCb(event, jupyterWindow), {
124
+ once: true
125
+ });
126
+ return jupyterWindow;
127
+ }
128
+ function sendDataToJupyterNotebook(type, data) {
129
+ openJupyterLiteWindow((event, jupyterWindow) => {
130
+ var _a;
131
+ if (((_a = event.data) == null ? void 0 : _a.type) !== "jupyterlite-ready") {
132
+ return;
133
+ }
134
+ console.log("JupyterLite is ready!");
135
+ jupyterWindow.postMessage(__spreadValues({ type }, data), "*");
136
+ });
137
+ }
138
+
139
+ // src/services/cmr-variable.service.ts
140
+ init_dirname();
141
+ init_buffer();
142
+ init_process();
143
+ var CmrVariableService = class {
144
+ /**
145
+ * given a name and a list of variables, return the variable with the matching name
146
+ */
147
+ getVariableByName(name, variables) {
148
+ var _a;
149
+ if (!variables || !((_a = variables.items) == null ? void 0 : _a.length)) {
150
+ return;
151
+ }
152
+ return variables.items.find((variable) => variable.umm.Name === name);
153
+ }
154
+ /**
155
+ * given a variable, return the variable's display label
156
+ * ex: Shortname = LongName (Units)
157
+ */
158
+ getVariableDisplayLabel(variable) {
159
+ const { Name = "", LongName = "", Units = "" } = variable.umm;
160
+ return `${Name}${Name && LongName && Name !== LongName ? ` = ${LongName}` : ""}${Units ? ` (${Units})` : ""}`;
161
+ }
162
+ };
163
+ var cmrVariableService = new CmrVariableService();
164
+ var cmr_variable_service_default = cmrVariableService;
165
+
166
+ // src/components/data-subsetter/data-subsetter.component.ts
167
+ var defaultOutputFormat = {
168
+ key: "application/x-netcdf4",
169
+ label: "NetCDF",
170
+ description: "Download data in NetCDF format"
171
+ };
172
+ var _collectionController, _authController, _harmonyRequestController, _renderFooterForDialog, renderFooterForDialog_fn, _renderSizeInfo, renderSizeInfo_fn, _renderSubsetOptions, renderSubsetOptions_fn, _resetAllParameters, _renderSearchForCollection, renderSearchForCollection_fn, _renderOutputFormatSelection, renderOutputFormatSelection_fn, _renderDateRangeSelection, renderDateRangeSelection_fn, _handleDateChange, _resetDateRangeSelection, _resetFormatSelection, _getCollectionDateRange, getCollectionDateRange_fn, _renderSpatialSelection, renderSpatialSelection_fn, _handleSpatialChange, _resetSpatialSelection, _renderVariableSelection, renderVariableSelection_fn, _renderDimensionGroup, renderDimensionGroup_fn, _setDimensionValue, setDimensionValue_fn, _renderDimensionSelection, renderDimensionSelection_fn, _filterVariableTree, filterVariableTree_fn, _handleVariableFilterChange, handleVariableFilterChange_fn, _buildVariableTree, buildVariableTree_fn, _renderVariableTree, renderVariableTree_fn, _getAllGroupPaths, getAllGroupPaths_fn, _toggleGroupExpand, toggleGroupExpand_fn, _toggleExpandCollapseAll, toggleExpandCollapseAll_fn, _toggleVariableSelection, toggleVariableSelection_fn, _markFieldTouched, markFieldTouched_fn, _resetVariableSelection, _resetDimensionSelection, resetDimensionSelection_fn, _isDimensionExcluded, isDimensionExcluded_fn, _getCommonSelectableDimensions, getCommonSelectableDimensions_fn, _renderJobStatus, renderJobStatus_fn, _renderSelectedParams, renderSelectedParams_fn, _cancelJob, cancelJob_fn, _getData, getData_fn, _touchAllFields, touchAllFields_fn, _numberOfFilesFoundEstimate, numberOfFilesFoundEstimate_fn, _getDocumentationLinks, getDocumentationLinks_fn, _getDataLinks, getDataLinks_fn, _hasAtLeastOneSubsetOption, hasAtLeastOneSubsetOption_fn, _hasSpatialSubset, hasSpatialSubset_fn, _renderJobMessage, renderJobMessage_fn, _getJobMessageText, getJobMessageText_fn, _estimateJobSize, estimateJobSize_fn, _refineParameters, refineParameters_fn, _backToSubsetOptions, backToSubsetOptions_fn, _viewRunningJob, viewRunningJob_fn, _handleDownloadSelect, handleDownloadSelect_fn, _downloadLinksAsTxt, downloadLinksAsTxt_fn, _downloadPythonScript, downloadPythonScript_fn, _downloadEarthdataDownload, downloadEarthdataDownload_fn, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn, _renderAvailableTemporalRangeSection, renderAvailableTemporalRangeSection_fn, _renderAvailableSpatialRangeSection, renderAvailableSpatialRangeSection_fn, _renderDataAccessModeSelection, renderDataAccessModeSelection_fn, _getGiovanniValidationError, getGiovanniValidationError_fn;
173
+ var TerraDataSubsetter = class extends QueryClientMixin(TerraElement) {
174
+ constructor() {
175
+ super(...arguments);
176
+ __privateAdd(this, _renderFooterForDialog);
177
+ __privateAdd(this, _renderSizeInfo);
178
+ __privateAdd(this, _renderSubsetOptions);
179
+ __privateAdd(this, _renderSearchForCollection);
180
+ __privateAdd(this, _renderOutputFormatSelection);
181
+ __privateAdd(this, _renderDateRangeSelection);
182
+ __privateAdd(this, _getCollectionDateRange);
183
+ __privateAdd(this, _renderSpatialSelection);
184
+ __privateAdd(this, _renderVariableSelection);
185
+ __privateAdd(this, _renderDimensionGroup);
186
+ __privateAdd(this, _setDimensionValue);
187
+ __privateAdd(this, _renderDimensionSelection);
188
+ __privateAdd(this, _filterVariableTree);
189
+ __privateAdd(this, _handleVariableFilterChange);
190
+ __privateAdd(this, _buildVariableTree);
191
+ __privateAdd(this, _renderVariableTree);
192
+ __privateAdd(this, _getAllGroupPaths);
193
+ __privateAdd(this, _toggleGroupExpand);
194
+ __privateAdd(this, _toggleExpandCollapseAll);
195
+ __privateAdd(this, _toggleVariableSelection);
196
+ __privateAdd(this, _markFieldTouched);
197
+ __privateAdd(this, _resetDimensionSelection);
198
+ __privateAdd(this, _isDimensionExcluded);
199
+ __privateAdd(this, _getCommonSelectableDimensions);
200
+ __privateAdd(this, _renderJobStatus);
201
+ __privateAdd(this, _renderSelectedParams);
202
+ __privateAdd(this, _cancelJob);
203
+ __privateAdd(this, _getData);
204
+ __privateAdd(this, _touchAllFields);
205
+ __privateAdd(this, _numberOfFilesFoundEstimate);
206
+ __privateAdd(this, _getDocumentationLinks);
207
+ __privateAdd(this, _getDataLinks);
208
+ __privateAdd(this, _hasAtLeastOneSubsetOption);
209
+ __privateAdd(this, _hasSpatialSubset);
210
+ __privateAdd(this, _renderJobMessage);
211
+ __privateAdd(this, _getJobMessageText);
212
+ __privateAdd(this, _estimateJobSize);
213
+ __privateAdd(this, _refineParameters);
214
+ __privateAdd(this, _backToSubsetOptions);
215
+ __privateAdd(this, _viewRunningJob);
216
+ __privateAdd(this, _handleDownloadSelect);
217
+ __privateAdd(this, _downloadLinksAsTxt);
218
+ __privateAdd(this, _downloadPythonScript);
219
+ __privateAdd(this, _downloadEarthdataDownload);
220
+ __privateAdd(this, _handleJupyterNotebookClick);
221
+ __privateAdd(this, _renderAvailableTemporalRangeSection);
222
+ __privateAdd(this, _renderAvailableSpatialRangeSection);
223
+ __privateAdd(this, _renderDataAccessModeSelection);
224
+ __privateAdd(this, _getGiovanniValidationError);
225
+ this.showCollectionSearch = true;
226
+ this.showHistoryPanel = true;
227
+ this.isHistoryView = false;
228
+ this.selectedVariables = [];
229
+ this.selectedDimensionIndexes = {};
230
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
231
+ this.variableFilterText = "";
232
+ this.touchedFields = /* @__PURE__ */ new Set();
233
+ this.selectedDateRange = {
234
+ startDate: null,
235
+ endDate: null
236
+ };
237
+ this.selectedFormat = defaultOutputFormat;
238
+ this.cancelingGetData = false;
239
+ this.selectedTab = "web-links";
240
+ this.refineParameters = false;
241
+ this.collectionSearchType = "all";
242
+ this.collectionSearchLoading = false;
243
+ this.collectionLoading = false;
244
+ this.collectionAccordionOpen = true;
245
+ this.dataAccessMode = "original";
246
+ __privateAdd(this, _collectionController, new CollectionController(this, {
247
+ getCollectionEntryId: () => this.collectionEntryId,
248
+ getBearerToken: () => this.bearerToken
249
+ }));
250
+ __privateAdd(this, _authController, new AuthController(this));
251
+ __privateAdd(this, _harmonyRequestController, new HarmonyRequestController(this));
252
+ __privateAdd(this, _resetAllParameters, () => {
253
+ this.selectedVariables = [];
254
+ if (__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this)) {
255
+ __privateGet(this, _resetSpatialSelection).call(this);
256
+ }
257
+ this.selectedDateRange = {
258
+ startDate: null,
259
+ endDate: null
260
+ };
261
+ this.touchedFields = /* @__PURE__ */ new Set();
262
+ this.validationError = void 0;
263
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
264
+ this.requestUpdate();
265
+ });
266
+ __privateAdd(this, _handleDateChange, (e2) => {
267
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "date");
268
+ this.selectedDateRange = __spreadProps(__spreadValues({}, this.selectedDateRange), {
269
+ startDate: e2.detail.startDate,
270
+ endDate: e2.detail.endDate
271
+ });
272
+ });
273
+ __privateAdd(this, _resetDateRangeSelection, () => {
274
+ this.selectedDateRange = { startDate: null, endDate: null };
275
+ });
276
+ __privateAdd(this, _resetFormatSelection, () => {
277
+ var _a;
278
+ if ((_a = this.collectionWithServices) == null ? void 0 : _a.configuredOutputFormats.length) {
279
+ const netcdfFormat = this.collectionWithServices.configuredOutputFormats.find(
280
+ (f) => f.key === "application/x-netcdf4" || f.key === "application/netcdf"
281
+ );
282
+ this.selectedFormat = netcdfFormat || this.collectionWithServices.configuredOutputFormats[0];
283
+ } else {
284
+ this.selectedFormat = defaultOutputFormat;
285
+ }
286
+ });
287
+ __privateAdd(this, _handleSpatialChange, (e2) => {
288
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "spatial");
289
+ if (e2.detail.type === "point" /* POINT */) {
290
+ this.spatialSelection = e2.detail.latLng;
291
+ } else if (e2.detail.type === "bbox" /* BBOX */) {
292
+ this.spatialSelection = e2.detail.bounds;
293
+ } else {
294
+ this.spatialSelection = void 0;
295
+ }
296
+ });
297
+ /**
298
+ * resets the spatial selection back to the bounds of the collection
299
+ */
300
+ __privateAdd(this, _resetSpatialSelection, () => {
301
+ this.spatialSelection = void 0;
302
+ this.spatialPicker.clear();
303
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "spatial");
304
+ });
305
+ __privateAdd(this, _resetVariableSelection, () => {
306
+ this.selectedVariables = [];
307
+ __privateMethod(this, _resetDimensionSelection, resetDimensionSelection_fn).call(this);
308
+ });
309
+ }
310
+ jobIdChanged() {
311
+ if (this.jobId) {
312
+ __privateGet(this, _harmonyRequestController).startPollForJobStatus(this.jobId);
313
+ this.dataAccessMode = "subset";
314
+ }
315
+ }
316
+ shortNameAndVersionChanged() {
317
+ if (this.shortName && this.version) {
318
+ this.collectionEntryId = `${this.shortName}_${this.version}`;
319
+ }
320
+ }
321
+ collectionEntryIdChanged() {
322
+ if (this.collectionEntryId) {
323
+ this.showCollectionSearch = false;
324
+ } else {
325
+ this.showCollectionSearch = true;
326
+ }
327
+ }
328
+ firstUpdated() {
329
+ if (this.collectionEntryId) {
330
+ this.showCollectionSearch = false;
331
+ }
332
+ if (this.jobId) {
333
+ __privateGet(this, _harmonyRequestController).startPollForJobStatus(this.jobId);
334
+ this.dataAccessMode = "subset";
335
+ }
336
+ this.renderHistoryPanel();
337
+ }
338
+ updated(changedProps) {
339
+ var _a, _b, _c;
340
+ super.updated(changedProps);
341
+ const newCollectionInfo = __privateGet(this, _collectionController).collectionInfo;
342
+ if (newCollectionInfo !== this.collectionWithServices) {
343
+ this.collectionWithServices = newCollectionInfo;
344
+ }
345
+ const sampling = (_a = __privateGet(this, _collectionController).sampling) == null ? void 0 : _a.data;
346
+ if ((sampling == null ? void 0 : sampling.minDate) !== this.granuleMinDate) {
347
+ this.granuleMinDate = sampling == null ? void 0 : sampling.minDate;
348
+ }
349
+ if ((sampling == null ? void 0 : sampling.maxDate) !== this.granuleMaxDate) {
350
+ this.granuleMaxDate = sampling == null ? void 0 : sampling.maxDate;
351
+ }
352
+ const newGiovanni = __privateGet(this, _collectionController).giovanniVariables;
353
+ if (newGiovanni.size !== ((_c = (_b = this.giovanniConfiguredVariables) == null ? void 0 : _b.size) != null ? _c : 0)) {
354
+ this.giovanniConfiguredVariables = newGiovanni;
355
+ }
356
+ }
357
+ /** True if the collection contains sub-daily granules. Used by DataSubsetterController to format dates. */
358
+ get isSubDaily() {
359
+ return __privateGet(this, _collectionController).isSubDaily;
360
+ }
361
+ collectionChanged() {
362
+ const { startDate, endDate } = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
363
+ this.selectedDateRange = { startDate, endDate };
364
+ __privateGet(this, _resetFormatSelection).call(this);
365
+ this.collectionLoading = false;
366
+ this.collectionAccordionOpen = false;
367
+ }
368
+ granuleDatesChanged() {
369
+ const newRange = __spreadValues(__spreadValues({}, this.granuleMinDate && { startDate: this.granuleMinDate }), this.granuleMaxDate && { endDate: this.granuleMaxDate });
370
+ if (Object.keys(newRange).length > 0) {
371
+ this.selectedDateRange = __spreadValues(__spreadValues({}, this.selectedDateRange), newRange);
372
+ }
373
+ }
374
+ selectedFormatChanged() {
375
+ if (this.selectedFormat.isGiovanniFormat && this.selectedVariables.length > 1) {
376
+ this.selectedVariables = [this.selectedVariables[0]];
377
+ }
378
+ }
379
+ showDialog() {
380
+ var _a;
381
+ (_a = this.dialogElement) == null ? void 0 : _a.show();
382
+ }
383
+ render() {
384
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
385
+ const showJobStatus = __privateGet(this, _harmonyRequestController).jobId && !this.refineParameters;
386
+ const showMinimizeButton = showJobStatus && !!this.dialog;
387
+ const title = (_c = (_b = (_a = this.collectionWithServices) == null ? void 0 : _a.collection) == null ? void 0 : _b.EntryTitle) != null ? _c : "Download Data";
388
+ if (!this.collectionWithServices) {
389
+ if (__privateGet(this, _collectionController).hasCapabilitiesError) {
390
+ return b`
391
+ <terra-alert open variant="danger" appearance="white">
392
+ Failed to find the requested collection.
393
+ </terra-alert>
394
+ `;
395
+ }
396
+ }
397
+ const content = b`
398
+ <div class="container">
399
+ ${!this.dialog ? b`
400
+ <div class="header">
401
+ <h1>
402
+ <svg
403
+ class="download-icon"
404
+ viewBox="0 0 24 24"
405
+ fill="currentColor"
406
+ >
407
+ <path
408
+ d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
409
+ />
410
+ </svg>
411
+ ${title}
412
+ </h1>
413
+
414
+ ${showMinimizeButton ? b`<button
415
+ class="minimize-btn"
416
+ @click=${() => this.minimizeDialog()}
417
+ >
418
+ -
419
+ </button>` : A}
420
+ </div>
421
+ ` : A}
422
+ ${!this.isHistoryView && ((_e = (_d = this.collectionWithServices) == null ? void 0 : _d.services) == null ? void 0 : _e.length) ? b`
423
+ <div class="section">
424
+ ${__privateMethod(this, _renderDataAccessModeSelection, renderDataAccessModeSelection_fn).call(this)}
425
+ </div>
426
+ ` : A}
427
+ ${this.dataAccessMode === "original" ? b`
428
+ <div class="section">
429
+ <terra-data-access
430
+ short-name=${(_h = this.shortName) != null ? _h : (_g = (_f = this.collectionWithServices) == null ? void 0 : _f.collection) == null ? void 0 : _g.ShortName}
431
+ version=${(_k = this.version) != null ? _k : (_j = (_i = this.collectionWithServices) == null ? void 0 : _i.collection) == null ? void 0 : _j.Version}
432
+ ?footer-slot=${!!this.dialog}
433
+ >
434
+ ${this.dialog ? b`
435
+ <div
436
+ slot="footer"
437
+ style="margin-top: 15px;"
438
+ >
439
+ <slot
440
+ name="data-access-footer"
441
+ ></slot>
442
+ </div>
443
+ ` : A}
444
+ </terra-data-access>
445
+ </div>
446
+ ` : showJobStatus ? __privateMethod(this, _renderJobStatus, renderJobStatus_fn).call(this) : __privateMethod(this, _renderSubsetOptions, renderSubsetOptions_fn).call(this)}
447
+ </div>
448
+ `;
449
+ if (this.dialog) {
450
+ return b`
451
+ <terra-dialog id=${this.dialog} style="--title-font-size: 16px;">
452
+ <span
453
+ slot="label"
454
+ style="display: flex; align-items: center; gap: 8px; color: #0066cc; font-weight: 600;"
455
+ >
456
+ <svg
457
+ class="download-icon"
458
+ viewBox="0 0 24 24"
459
+ fill="currentColor"
460
+ style="width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex-shrink: 0;"
461
+ >
462
+ <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
463
+ </svg>
464
+ ${title}
465
+ </span>
466
+ ${showMinimizeButton ? b`
467
+ <button
468
+ slot="header-actions"
469
+ class="minimize-btn"
470
+ @click=${() => {
471
+ var _a2;
472
+ return (_a2 = this.dialogElement) == null ? void 0 : _a2.hide();
473
+ }}
474
+ aria-label="Minimize"
475
+ >
476
+ -
477
+ </button>
478
+ ` : A}
479
+ <slot name="dialog-header-content"></slot>
480
+ ${content} ${__privateMethod(this, _renderFooterForDialog, renderFooterForDialog_fn).call(this)}
481
+ </terra-dialog>
482
+ `;
483
+ }
484
+ return b`
485
+ <div class="container">
486
+ <div class="header">
487
+ <h1>
488
+ <svg
489
+ class="download-icon"
490
+ viewBox="0 0 24 24"
491
+ fill="currentColor"
492
+ >
493
+ <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
494
+ </svg>
495
+ ${title}
496
+ </h1>
497
+
498
+ ${showMinimizeButton ? b`<button
499
+ class="minimize-btn"
500
+ @click=${() => this.minimizeDialog()}
501
+ >
502
+ -
503
+ </button>` : A}
504
+ </div>
505
+ ${!this.isHistoryView && ((_m = (_l = this.collectionWithServices) == null ? void 0 : _l.services) == null ? void 0 : _m.length) ? b`
506
+ <div class="section">
507
+ ${__privateMethod(this, _renderDataAccessModeSelection, renderDataAccessModeSelection_fn).call(this)}
508
+ </div>
509
+ ` : A}
510
+ ${this.dataAccessMode === "original" ? b`
511
+ <div class="section">
512
+ <terra-data-access
513
+ short-name=${(_p = this.shortName) != null ? _p : (_o = (_n = this.collectionWithServices) == null ? void 0 : _n.collection) == null ? void 0 : _o.ShortName}
514
+ version=${(_s = this.version) != null ? _s : (_r = (_q = this.collectionWithServices) == null ? void 0 : _q.collection) == null ? void 0 : _r.Version}
515
+ ?footer-slot=${!!this.dialog}
516
+ >
517
+ ${this.dialog ? b`
518
+ <div
519
+ slot="footer"
520
+ style="margin-top: 15px;"
521
+ >
522
+ <slot
523
+ name="data-access-footer"
524
+ ></slot>
525
+ </div>
526
+ ` : A}
527
+ </terra-data-access>
528
+ </div>
529
+ ` : showJobStatus ? __privateMethod(this, _renderJobStatus, renderJobStatus_fn).call(this) : __privateMethod(this, _renderSubsetOptions, renderSubsetOptions_fn).call(this)}
530
+ </div>
531
+ `;
532
+ }
533
+ minimizeDialog() {
534
+ var _a;
535
+ (_a = this.closest("terra-dialog")) == null ? void 0 : _a.hide();
536
+ }
537
+ handleCollectionSearch(searchTerm) {
538
+ this.collectionSearchQuery = searchTerm;
539
+ }
540
+ renderHistoryPanel() {
541
+ const existingHistoryPanel = document.querySelector(
542
+ "terra-data-subsetter-history"
543
+ );
544
+ if (!existingHistoryPanel && this.bearerToken) {
545
+ const historyPanel = document.createElement(
546
+ "terra-data-subsetter-history"
547
+ );
548
+ if (this.bearerToken) {
549
+ historyPanel.setAttribute("bearer-token", this.bearerToken);
550
+ }
551
+ if (this.environment) {
552
+ historyPanel.setAttribute("environment", this.environment);
553
+ }
554
+ document.body.appendChild(historyPanel);
555
+ }
556
+ }
557
+ };
558
+ _collectionController = new WeakMap();
559
+ _authController = new WeakMap();
560
+ _harmonyRequestController = new WeakMap();
561
+ _renderFooterForDialog = new WeakSet();
562
+ renderFooterForDialog_fn = function() {
563
+ const showJobStatus = __privateGet(this, _harmonyRequestController).jobId && !this.refineParameters;
564
+ if (showJobStatus && __privateGet(this, _harmonyRequestController).jobId) {
565
+ return b`
566
+ <div slot="footer" class="footer">
567
+ ${__privateGet(this, _harmonyRequestController).status === "successful" /* SUCCESSFUL */ || __privateGet(this, _harmonyRequestController).status === "complete_with_errors" /* COMPLETE_WITH_ERRORS */ ? b`
568
+ <div
569
+ style="display: flex; align-items: center; gap: 8px;"
570
+ >
571
+ <terra-dropdown
572
+ @terra-select=${__privateMethod(this, _handleDownloadSelect, handleDownloadSelect_fn)}
573
+ >
574
+ <terra-button slot="trigger" caret>
575
+ Download Options
576
+ </terra-button>
577
+ <terra-menu>
578
+ <terra-menu-item value="file-list">
579
+ <svg
580
+ slot="prefix"
581
+ viewBox="0 0 24 24"
582
+ width="16"
583
+ height="16"
584
+ style="width: 16px; height: 16px;"
585
+ >
586
+ <path
587
+ fill="currentColor"
588
+ d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"
589
+ />
590
+ </svg>
591
+ File List
592
+ </terra-menu-item>
593
+ <terra-menu-item value="python-script">
594
+ <svg
595
+ slot="prefix"
596
+ viewBox="0 0 128 128"
597
+ width="16"
598
+ height="16"
599
+ style="width: 16px; height: 16px;"
600
+ >
601
+ <path
602
+ fill="currentColor"
603
+ d="M49.33 62h29.159C86.606 62 93 55.132 93 46.981V19.183c0-7.912-6.632-13.856-14.555-15.176-5.014-.835-10.195-1.215-15.187-1.191-4.99.023-9.612.448-13.805 1.191C37.098 6.188 35 10.758 35 19.183V30h29v4H23.776c-8.484 0-15.914 5.108-18.237 14.811-2.681 11.12-2.8 17.919 0 29.53C7.614 86.983 12.569 93 21.054 93H31V79.952C31 70.315 39.428 62 49.33 62zm-1.838-39.11c-3.026 0-5.478-2.479-5.478-5.545 0-3.079 2.451-5.581 5.478-5.581 3.015 0 5.479 2.502 5.479 5.581-.001 3.066-2.465 5.545-5.479 5.545zm74.789 25.921C120.183 40.363 116.178 34 107.682 34H97v12.981C97 57.031 88.206 65 78.489 65H49.33C41.342 65 35 72.326 35 80.326v27.8c0 7.91 6.745 12.564 14.462 14.834 9.242 2.717 17.994 3.208 29.051 0C85.862 120.831 93 116.549 93 108.126V97H64v-4h43.682c8.484 0 11.647-5.776 14.599-14.66 3.047-9.145 2.916-17.799 0-29.529zm-41.955 55.606c3.027 0 5.479 2.479 5.479 5.547 0 3.076-2.451 5.579-5.479 5.579-3.015 0-5.478-2.502-5.478-5.579 0-3.068 2.463-5.547 5.478-5.547z"
604
+ ></path>
605
+ </svg>
606
+ Python Script
607
+ </terra-menu-item>
608
+ <terra-menu-item value="earthdata-download">
609
+ <svg
610
+ slot="prefix"
611
+ viewBox="0 0 64 64"
612
+ fill="none"
613
+ width="16"
614
+ height="16"
615
+ style="width: 16px; height: 16px;"
616
+ >
617
+ <circle
618
+ cx="32"
619
+ cy="32"
620
+ r="28"
621
+ fill="currentColor"
622
+ />
623
+ <path
624
+ d="M32 14v26M32 40l-9-9M32 40l9-9"
625
+ stroke="#fff"
626
+ stroke-width="4"
627
+ stroke-linecap="round"
628
+ stroke-linejoin="round"
629
+ fill="none"
630
+ />
631
+ </svg>
632
+ Earthdata Download
633
+ </terra-menu-item>
634
+ </terra-menu>
635
+ </terra-dropdown>
636
+
637
+ <!--
638
+ <terra-button
639
+ outline
640
+ @click=${() => __privateMethod(this, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn).call(this)}
641
+ >
642
+ <terra-icon
643
+ name="outline-code-bracket"
644
+ library="heroicons"
645
+ font-size="1.5em"
646
+ style="margin-right: 5px;"
647
+ ></terra-icon>
648
+ Open in Jupyter Notebook
649
+ </terra-button>
650
+ -->
651
+ </div>
652
+ ` : A}
653
+ ${__privateGet(this, _harmonyRequestController).status === "running" /* RUNNING */ ? b`<button
654
+ class="btn btn-success"
655
+ @click=${__privateMethod(this, _cancelJob, cancelJob_fn)}
656
+ ?disabled=${this.cancelingGetData}
657
+ >
658
+ ${this.cancelingGetData ? "Canceling..." : "Cancel request"}
659
+ </button>` : A}
660
+
661
+ <div class="job-info">
662
+ Job ID:
663
+ <span class="job-id">
664
+ ${this.bearerToken ? b`<a
665
+ href="https://harmony.earthdata.nasa.gov/jobs/${__privateGet(this, _harmonyRequestController).jobId}"
666
+ target="_blank"
667
+ >${__privateGet(this, _harmonyRequestController).jobId}</a
668
+ >` : __privateGet(this, _harmonyRequestController).jobId}
669
+ </span>
670
+ <span class="info-icon">?</span>
671
+ </div>
672
+ </div>
673
+ `;
674
+ } else if (this.dataAccessMode === "subset") {
675
+ return b`
676
+ <div slot="footer" class="footer">
677
+ <button class="btn btn-secondary" @click=${__privateGet(this, _resetAllParameters)}>Reset All</button>
678
+ <div>
679
+ <button class="btn btn-primary" @click=${__privateMethod(this, _getData, getData_fn)}>
680
+ Get Data
681
+ </button>
682
+ ${this.jobId ? b`
683
+ <terra-button
684
+ variant="default"
685
+ @click=${__privateMethod(this, _viewRunningJob, viewRunningJob_fn)}
686
+ >
687
+ View Running Job
688
+ </terra-button>
689
+ ` : A}
690
+ </div>
691
+ </div>
692
+ </div>
693
+ </div>
694
+ `;
695
+ }
696
+ return A;
697
+ };
698
+ _renderSizeInfo = new WeakSet();
699
+ renderSizeInfo_fn = function(estimates) {
700
+ if (!__privateGet(this, _authController).state.isLoading && !__privateGet(this, _authController).state.user) {
701
+ return b`
702
+ <div class="size-info warning">
703
+ <terra-login>
704
+ <h2 slot="logged-out">Limited access as a guest.</h2>
705
+
706
+ <p slot="logged-out">
707
+ Your results will be capped at 10 links. Log in for full
708
+ access to all data.
709
+ </p>
710
+ </terra-login>
711
+ </div>
712
+ `;
713
+ }
714
+ return b`<div
715
+ class="size-info ${estimates.links >= 150 ? "warning" : "neutral"}"
716
+ >
717
+ <h2>Estimated size of results</h2>
718
+ <div class="size-stats">
719
+ ${estimates.days.toLocaleString()} days,
720
+ ${estimates.links.toLocaleString()} links
721
+ </div>
722
+ ${estimates.links >= 150 ? b`<div class="size-warning">
723
+ You are about to retrieve ${estimates.links.toLocaleString()}
724
+ file links from the archive. You may
725
+ <strong>speed up the request</strong> by limiting the scope of
726
+ your search.
727
+ </div>` : A}
728
+ </div>`;
729
+ };
730
+ _renderSubsetOptions = new WeakSet();
731
+ renderSubsetOptions_fn = function() {
732
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
733
+ const estimates = __privateMethod(this, _estimateJobSize, estimateJobSize_fn).call(this);
734
+ const hasSubsetOption = __privateMethod(this, _hasAtLeastOneSubsetOption, hasAtLeastOneSubsetOption_fn).call(this);
735
+ const collection = (_a = this.collectionWithServices) == null ? void 0 : _a.collection;
736
+ const temporalExtents = collection == null ? void 0 : collection.TemporalExtents;
737
+ const spatialExtent = collection == null ? void 0 : collection.SpatialExtent;
738
+ const showTemporalSection = temporalExtents == null ? void 0 : temporalExtents.length;
739
+ const showSpatialSection = (_c = (_b = spatialExtent == null ? void 0 : spatialExtent.HorizontalSpatialDomain) == null ? void 0 : _b.Geometry) == null ? void 0 : _c.BoundingRectangles;
740
+ return b`
741
+ ${this.dataAccessMode === "original" ? A : hasSubsetOption ? b`
742
+ ${hasSubsetOption && estimates ? __privateMethod(this, _renderSizeInfo, renderSizeInfo_fn).call(this, estimates) : A}
743
+ ${this.showCollectionSearch ? b`
744
+ <div class="section">
745
+ <h2 class="section-title">
746
+ Select Data Collection
747
+ </h2>
748
+
749
+ ${__privateMethod(this, _renderSearchForCollection, renderSearchForCollection_fn).call(this)}
750
+ </div>
751
+ ` : A}
752
+ ${((_e = (_d = this.collectionWithServices) == null ? void 0 : _d.summary.outputFormats) == null ? void 0 : _e.length) && hasSubsetOption ? b`
753
+ <div class="section">
754
+ <h2 class="section-title">Output Format</h2>
755
+
756
+ ${__privateMethod(this, _renderOutputFormatSelection, renderOutputFormatSelection_fn).call(this)}
757
+ </div>
758
+ ` : A}
759
+ <div class="section">
760
+ <h2 class="section-title">Subset Options</h2>
761
+ <p style="color: #666; margin-bottom: 16px;">
762
+ Generate file links that support spatial subsetting,
763
+ date/time range selection, and variable selection.
764
+ </p>
765
+
766
+ ${((_f = this.collectionWithServices) == null ? void 0 : _f.summary.subsetting.temporal) ? __privateMethod(this, _renderDateRangeSelection, renderDateRangeSelection_fn).call(this) : A}
767
+ ${__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this) ? __privateMethod(this, _renderSpatialSelection, renderSpatialSelection_fn).call(this) : A}
768
+ ${((_g = this.collectionWithServices) == null ? void 0 : _g.summary.subsetting.variable) ? __privateMethod(this, _renderVariableSelection, renderVariableSelection_fn).call(this) : A}
769
+ ${((_h = this.collectionWithServices) == null ? void 0 : _h.summary.subsetting.variable) && isFeatureEnabled(
770
+ KnownFeatureFlags.DIMENSION_SUBSET,
771
+ this.features
772
+ ) ? __privateMethod(this, _renderDimensionSelection, renderDimensionSelection_fn).call(this) : A}
773
+ </div>
774
+ ` : b`
775
+ ${showTemporalSection && !((_i = this.collectionWithServices) == null ? void 0 : _i.summary.subsetting.temporal) ? __privateMethod(this, _renderAvailableTemporalRangeSection, renderAvailableTemporalRangeSection_fn).call(this) : A}
776
+ ${showSpatialSection && !__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this) ? __privateMethod(this, _renderAvailableSpatialRangeSection, renderAvailableSpatialRangeSection_fn).call(this) : A}
777
+ `}
778
+ ${!hasSubsetOption && estimates ? b`
779
+ <div
780
+ class="neutral-info"
781
+ style="margin-top: 24px; padding: 16px 20px; border-radius: 6px; background: #f8f9fa; color: #555; border: 1px solid #ccc;"
782
+ >
783
+ <strong>Estimated result size:</strong><br />
784
+ Your request will return approximately
785
+ <b>${estimates.links.toLocaleString()}</b> files covering
786
+ <b>${estimates.days.toLocaleString()}</b> days.
787
+ </div>
788
+ ` : A}
789
+ ${this.dataAccessMode === "subset" && !this.dialog ? b`
790
+ <div class="footer">
791
+ <button class="btn btn-secondary" @click=${__privateGet(this, _resetAllParameters)}>Reset All</button>
792
+ <div>
793
+ <button
794
+ class="btn btn-primary"
795
+ @click=${__privateMethod(this, _getData, getData_fn)}
796
+ >
797
+ Get Data
798
+ </button>
799
+ ${this.jobId ? b`
800
+ <terra-button
801
+ variant="default"
802
+ @click=${__privateMethod(this, _viewRunningJob, viewRunningJob_fn)}
803
+ >
804
+ View Running Job
805
+ </terra-button>
806
+ ` : A}
807
+ </div>
808
+ </div>
809
+ </div>
810
+ </div>
811
+ ` : A}
812
+ `;
813
+ };
814
+ _resetAllParameters = new WeakMap();
815
+ _renderSearchForCollection = new WeakSet();
816
+ renderSearchForCollection_fn = function() {
817
+ var _a, _b;
818
+ let placeholder = "Search all types of resources (e.g. rainfall, GPM, hurricanes, etc.)";
819
+ if (this.collectionSearchType === "collection") {
820
+ placeholder = "Search collections (e.g. AQUA, GPM_3IMERGH, etc.)";
821
+ }
822
+ if (this.collectionSearchType === "variable") {
823
+ placeholder = "Search variables (e.g. rainfall, hurricanes, etc.)";
824
+ }
825
+ return b`
826
+ <terra-accordion .open=${this.collectionAccordionOpen}>
827
+ <div slot="summary">
828
+ <span class="accordion-title">Collection:</span>
829
+ </div>
830
+
831
+ <div
832
+ slot="summary-right"
833
+ style="display: flex; align-items: center; gap: 10px"
834
+ >
835
+ ${this.collectionEntryId ? b` <span
836
+ class="accordion-value"
837
+ id="selected-collection-display"
838
+ >${this.collectionEntryId}</span
839
+ >
840
+
841
+ <button
842
+ class="reset-btn"
843
+ @click=${() => this.collectionEntryId = void 0}
844
+ >
845
+ Reset
846
+ </button>` : A}
847
+ </div>
848
+
849
+ <div class="search-tabs-mini">
850
+ <button
851
+ class="search-tab-mini ${this.collectionSearchType === "all" ? "active" : ""}"
852
+ @click=${() => this.collectionSearchType = "all"}
853
+ >
854
+ All
855
+ </button>
856
+ <button
857
+ class="search-tab-mini ${this.collectionSearchType === "collection" ? "active" : ""}"
858
+ @click=${() => this.collectionSearchType = "collection"}
859
+ >
860
+ Collections
861
+ </button>
862
+ <button
863
+ class="search-tab-mini ${this.collectionSearchType === "variable" ? "active" : ""}"
864
+ @click=${() => this.collectionSearchType = "variable"}
865
+ >
866
+ Variables
867
+ </button>
868
+ </div>
869
+
870
+ <div class="search-container-mini">
871
+ <input
872
+ type="text"
873
+ class="search-input-mini"
874
+ id="search-input"
875
+ placeholder=${placeholder}
876
+ @input="${(e2) => this.handleCollectionSearch(
877
+ e2.target.value
878
+ )}"
879
+ />
880
+
881
+ <button class="search-button-mini">
882
+ <svg
883
+ class="search-icon-mini"
884
+ viewBox="0 0 24 24"
885
+ fill="currentColor"
886
+ >
887
+ <path
888
+ d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"
889
+ />
890
+ </svg>
891
+ Search
892
+ </button>
893
+ </div>
894
+
895
+ <!-- TODO: it may be nice to have a quick search, perhaps by recent trends?
896
+ <div class="quick-links-mini">
897
+ <a href="#" class="quick-link-mini" onclick="quickSearch('GPM')"
898
+ >GPM Precipitation</a
899
+ >
900
+ <a href="#" class="quick-link-mini" onclick="quickSearch('MODIS')"
901
+ >MODIS Data</a
902
+ >
903
+ <a
904
+ href="#"
905
+ class="quick-link-mini"
906
+ onclick="quickSearch('Landsat')"
907
+ >Landsat Imagery</a
908
+ >
909
+ <a href="#" class="quick-link-mini" onclick="quickSearch('AIRS')"
910
+ >Atmospheric Data</a
911
+ >
912
+ </div>
913
+ -->
914
+
915
+ <div id="search-results-section" class="search-results-section">
916
+ ${this.collectionSearchLoading ? b`
917
+ <div id="loading-mini" class="loading-mini">
918
+ <div class="spinner-mini"></div>
919
+ <div>Searching NASA CMR...</div>
920
+ </div>
921
+ ` : ((_a = this.collectionSearchResults) == null ? void 0 : _a.length) ? b` <div
922
+ id="results-container-mini"
923
+ class="results-container-mini"
924
+ >
925
+ ${(_b = this.collectionSearchResults) == null ? void 0 : _b.map(
926
+ (item) => b`
927
+ <div
928
+ class="result-item-mini"
929
+ @click=${() => {
930
+ this.collectionEntryId = item.collectionEntryId;
931
+ this.collectionAccordionOpen = false;
932
+ this.collectionLoading = true;
933
+ if (item.type === "variable") {
934
+ this.selectedVariables = [
935
+ {
936
+ name: item.entryId,
937
+ href: "",
938
+ conceptId: item.conceptId
939
+ }
940
+ ];
941
+ }
942
+ this.requestUpdate();
943
+ }}
944
+ style="cursor: pointer;"
945
+ >
946
+ <div class="result-title-mini">
947
+ ${item.title}
948
+ </div>
949
+ <div class="result-id-mini">
950
+ ${item.entryId}
951
+ </div>
952
+ <div class="result-description-mini">
953
+ ${item.summary || item.title}
954
+ </div>
955
+ <div class="result-meta-mini">
956
+ <span>📅 2000-02-24 - ongoing</span>
957
+ <span>🌍 Global</span>
958
+ <span>🏢 ${item.provider}</span>
959
+ ${item.type === "variable" ? b` <span
960
+ >📊
961
+ ${item.collectionEntryId}</span
962
+ >` : A}
963
+ <span class="tag-mini"
964
+ >${item.type.toUpperCase()}</span
965
+ >
966
+ </div>
967
+ </div>
968
+ `
969
+ )}
970
+ </div>` : this.collectionSearchResults && this.collectionSearchResults.length === 0 ? b`<div id="no-results-mini" class="no-results-mini">
971
+ <p>
972
+ No results found for
973
+ '${this.collectionSearchQuery}'. Try adjusting
974
+ your search term.
975
+ </p>
976
+ </div>` : A}
977
+ </div>
978
+ </terra-accordion>
979
+
980
+ ${this.collectionLoading ? b`
981
+ <div
982
+ class="collection-loading-bar"
983
+ style="display: flex; align-items: center; gap: 10px; margin: 16px 0;"
984
+ >
985
+ <span
986
+ class="loading-spinner"
987
+ style="width: 20px; height: 20px; border: 3px solid #ccc; border-top: 3px solid #31708f; border-radius: 50%; display: inline-block; animation: spin 1s linear infinite;"
988
+ ></span>
989
+ Retrieving collection, please wait...
990
+ </div>
991
+ <style>
992
+ @keyframes spin {
993
+ 0% {
994
+ transform: rotate(0deg);
995
+ }
996
+ 100% {
997
+ transform: rotate(360deg);
998
+ }
999
+ }
1000
+ </style>
1001
+ ` : A}
1002
+ `;
1003
+ };
1004
+ _renderOutputFormatSelection = new WeakSet();
1005
+ renderOutputFormatSelection_fn = function() {
1006
+ return b`
1007
+ <terra-accordion>
1008
+ <div slot="summary">
1009
+ <span class="accordion-title">File Format:</span>
1010
+ </div>
1011
+
1012
+ <div
1013
+ slot="summary-right"
1014
+ style="display: flex; align-items: center; gap: 10px;"
1015
+ >
1016
+ <span>${this.selectedFormat.label}</span>
1017
+
1018
+ <button class="reset-btn" @click=${__privateGet(this, _resetFormatSelection)}>
1019
+ Reset
1020
+ </button>
1021
+ </div>
1022
+
1023
+ <div class="accordion-content" style="margin-top: 12px;">
1024
+ ${(() => {
1025
+ var _a;
1026
+ return (((_a = this.collectionWithServices) == null ? void 0 : _a.configuredOutputFormats) || []).map(
1027
+ (format) => b`
1028
+ <label
1029
+ style="display: flex; align-items: center; gap: 8px; padding: 5px;"
1030
+ >
1031
+ <input
1032
+ type="radio"
1033
+ name="output-format"
1034
+ value="${format}"
1035
+ .checked=${this.selectedFormat === format}
1036
+ @change=${() => this.selectedFormat = format}
1037
+ />
1038
+ ${format.label}
1039
+ </label>
1040
+ `
1041
+ );
1042
+ })()}
1043
+ </div>
1044
+ </terra-accordion>
1045
+ `;
1046
+ };
1047
+ _renderDateRangeSelection = new WeakSet();
1048
+ renderDateRangeSelection_fn = function() {
1049
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1050
+ const { startDate: defaultStartDate, endDate: defaultEndDate } = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
1051
+ const startDate = (_b = (_a = this.selectedDateRange.startDate) != null ? _a : this.granuleMinDate) != null ? _b : defaultStartDate;
1052
+ const endDate = (_d = (_c = this.selectedDateRange.endDate) != null ? _c : this.granuleMaxDate) != null ? _d : defaultEndDate;
1053
+ const showError = this.touchedFields.has("date") && (!this.selectedDateRange.startDate || !this.selectedDateRange.endDate);
1054
+ return b`
1055
+ <terra-accordion>
1056
+ <div slot="summary">
1057
+ <span class="accordion-title">Refine Date Range:</span>
1058
+ </div>
1059
+
1060
+ <div
1061
+ slot="summary-right"
1062
+ style="display: flex; align-items: center; gap: 10px;"
1063
+ >
1064
+ ${showError ? b`<span class="accordion-value error"
1065
+ >Please select a date range</span
1066
+ >` : this.touchedFields.has("date") && startDate && endDate ? b`<span class="accordion-value"
1067
+ >${startDate} to ${endDate}</span
1068
+ >` : A}
1069
+ <button class="reset-btn" @click=${__privateGet(this, _resetDateRangeSelection)}>
1070
+ Reset
1071
+ </button>
1072
+ </div>
1073
+
1074
+ <div style="width: 300px">
1075
+ <terra-date-picker
1076
+ allow-input
1077
+ inline
1078
+ range
1079
+ split-inputs
1080
+ show-presets
1081
+ ?enable-time=${this.isSubDaily}
1082
+ start-label="Start Date"
1083
+ end-label="End Date"
1084
+ .minDate=${(_e = this.granuleMinDate) != null ? _e : defaultStartDate}
1085
+ .maxDate=${(_f = this.granuleMaxDate) != null ? _f : defaultEndDate}
1086
+ .startDate=${(_g = this.selectedDateRange.startDate) != null ? _g : this.granuleMinDate}
1087
+ .endDate=${(_h = this.selectedDateRange.endDate) != null ? _h : this.granuleMaxDate}
1088
+ .useEndOfDay=${!this.selectedFormat.isGiovanniFormat}
1089
+ @terra-date-range-change=${__privateGet(this, _handleDateChange)}
1090
+ ></terra-date-picker>
1091
+ </div>
1092
+
1093
+ <div
1094
+ style="display: flex; gap: 16px; margin-top: 15px; color: #31708f;"
1095
+ >
1096
+ <span
1097
+ ><strong>Available Range:</strong> ${defaultStartDate} to
1098
+ ${defaultEndDate}</span
1099
+ >
1100
+ ${this.isSubDaily ? b`<span
1101
+ ><strong>Note:</strong> All dates and times are in
1102
+ UTC.</span
1103
+ >` : A}
1104
+ </div>
1105
+ </terra-accordion>
1106
+ `;
1107
+ };
1108
+ _handleDateChange = new WeakMap();
1109
+ _resetDateRangeSelection = new WeakMap();
1110
+ _resetFormatSelection = new WeakMap();
1111
+ _getCollectionDateRange = new WeakSet();
1112
+ getCollectionDateRange_fn = function() {
1113
+ var _a, _b;
1114
+ const samplingMinDate = this.granuleMinDate;
1115
+ const samplingMaxDate = this.granuleMaxDate;
1116
+ if (samplingMinDate && samplingMaxDate) {
1117
+ return {
1118
+ startDate: samplingMinDate.slice(0, 10),
1119
+ endDate: samplingMaxDate.slice(0, 10)
1120
+ };
1121
+ }
1122
+ const temporalExtents = (_b = (_a = this.collectionWithServices) == null ? void 0 : _a.collection) == null ? void 0 : _b.TemporalExtents;
1123
+ if (!(temporalExtents == null ? void 0 : temporalExtents.length))
1124
+ return {
1125
+ startDate: null,
1126
+ endDate: null
1127
+ };
1128
+ let minStart = null;
1129
+ let maxEnd = null;
1130
+ const today = /* @__PURE__ */ new Date();
1131
+ for (const temporal of temporalExtents) {
1132
+ for (const range of temporal.RangeDateTimes || []) {
1133
+ const start = new Date(range.BeginningDateTime);
1134
+ let end;
1135
+ if (temporal.EndsAtPresentFlag || !range.EndingDateTime) {
1136
+ end = today;
1137
+ } else {
1138
+ end = new Date(range.EndingDateTime);
1139
+ }
1140
+ if (!minStart || start < minStart)
1141
+ minStart = start;
1142
+ if (!maxEnd || end > maxEnd)
1143
+ maxEnd = end;
1144
+ }
1145
+ }
1146
+ return {
1147
+ startDate: minStart ? minStart.toISOString().slice(0, 10) : null,
1148
+ endDate: maxEnd ? maxEnd.toISOString().slice(0, 10) : null
1149
+ };
1150
+ };
1151
+ _renderSpatialSelection = new WeakSet();
1152
+ renderSpatialSelection_fn = function() {
1153
+ var _a, _b;
1154
+ const showError = this.touchedFields.has("spatial") && !this.spatialSelection;
1155
+ const spatialString = (_b = (_a = this.spatialSelection) == null ? void 0 : _a.toString()) != null ? _b : this.spatialSelection;
1156
+ return b`
1157
+ <terra-accordion>
1158
+ <div slot="summary">
1159
+ <span class="accordion-title">Refine Region:</span>
1160
+ </div>
1161
+
1162
+ <div
1163
+ slot="summary-right"
1164
+ style="display: flex; align-items: center; gap: 10px;"
1165
+ >
1166
+ ${showError ? b`<span class="accordion-value error"
1167
+ >Please select a region</span
1168
+ >` : spatialString ? b`<span class="accordion-value"
1169
+ >${spatialString}</span
1170
+ >` : A}
1171
+ <button class="reset-btn" @click=${__privateGet(this, _resetSpatialSelection)}>
1172
+ Reset
1173
+ </button>
1174
+ </div>
1175
+ <div class="accordion-content">
1176
+ <terra-spatial-picker
1177
+ part="spatial-picker"
1178
+ inline
1179
+ hide-label
1180
+ .spatialConstraints=${__privateGet(this, _collectionController).spatialConstraints || "-180, -90, 180, 90"}
1181
+ .initialValue=${spatialString}
1182
+ @terra-map-change=${__privateGet(this, _handleSpatialChange)}
1183
+ ></terra-spatial-picker>
1184
+ <div
1185
+ style="display: flex; gap: 16px; margin-top: 15px; color: #31708f;"
1186
+ >
1187
+ <span
1188
+ ><strong>Available Range:</strong> ${__privateGet(this, _collectionController).spatialConstraints}</span
1189
+ >
1190
+ </div>
1191
+ </div>
1192
+ </terra-accordion>
1193
+ `;
1194
+ };
1195
+ _handleSpatialChange = new WeakMap();
1196
+ _resetSpatialSelection = new WeakMap();
1197
+ _renderVariableSelection = new WeakSet();
1198
+ renderVariableSelection_fn = function() {
1199
+ var _a;
1200
+ const variables = ((_a = this.collectionWithServices) == null ? void 0 : _a.variables) || [];
1201
+ const giovanniError = this.touchedFields.has("variables") && __privateMethod(this, _getGiovanniValidationError, getGiovanniValidationError_fn).call(this);
1202
+ const basicError = this.touchedFields.has("variables") && this.selectedVariables.length === 0;
1203
+ const showError = giovanniError || basicError;
1204
+ const errorMessage = giovanniError || (basicError ? "Please select at least one variable" : "");
1205
+ const tree = __privateMethod(this, _buildVariableTree, buildVariableTree_fn).call(this, variables);
1206
+ const allGroups = __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, tree);
1207
+ const allExpanded = allGroups.length > 0 && allGroups.every((g) => this.expandedVariableGroups.has(g));
1208
+ return b`
1209
+ <terra-accordion>
1210
+ <div slot="summary">
1211
+ <span class="accordion-title">Select Variables:</span>
1212
+ </div>
1213
+ <div
1214
+ slot="summary-right"
1215
+ style="display: flex; align-items: center; gap: 10px;"
1216
+ >
1217
+ ${showError ? b`<span class="accordion-value error"
1218
+ >${errorMessage}</span
1219
+ >` : this.selectedVariables.length ? b`<span class="accordion-value"
1220
+ >${this.selectedVariables.length} selected</span
1221
+ >` : A}
1222
+
1223
+ <button class="reset-btn" @click=${__privateGet(this, _resetVariableSelection)}>
1224
+ Reset
1225
+ </button>
1226
+ </div>
1227
+ <div class="accordion-content">
1228
+ <terra-input
1229
+ label="Filter variables"
1230
+ placeholder="Search by variable name..."
1231
+ .value=${this.variableFilterText}
1232
+ @input=${(e2) => {
1233
+ const input = e2.target;
1234
+ this.variableFilterText = input.value;
1235
+ __privateMethod(this, _handleVariableFilterChange, handleVariableFilterChange_fn).call(this);
1236
+ }}
1237
+ style="margin-bottom: 10px;"
1238
+ ></terra-input>
1239
+ <button
1240
+ class="reset-btn"
1241
+ style="margin-bottom: 10px;"
1242
+ @click=${() => __privateMethod(this, _toggleExpandCollapseAll, toggleExpandCollapseAll_fn).call(this, tree)}
1243
+ >
1244
+ ${allExpanded ? "Collapse Tree" : "Expand Tree"}
1245
+ </button>
1246
+
1247
+ ${this.selectedFormat.isGiovanniFormat && this.giovanniConfiguredVariables ? b`
1248
+ <terra-alert
1249
+ open
1250
+ appearance="white"
1251
+ style="margin: 10px 0"
1252
+ >
1253
+ <terra-icon
1254
+ slot="icon"
1255
+ name="outline-information-circle"
1256
+ library="heroicons"
1257
+ ></terra-icon>
1258
+ Only certain variables are supported for the
1259
+ selected output format. (Giovanni service)
1260
+ </terra-alert>
1261
+ ` : A}
1262
+ ${variables.length === 0 ? b`<p style="color: #666; font-style: italic;">
1263
+ No variables available for this collection.
1264
+ </p>` : __privateMethod(this, _renderVariableTree, renderVariableTree_fn).call(this, __privateMethod(this, _filterVariableTree, filterVariableTree_fn).call(this, tree), [])}
1265
+ </div>
1266
+ </terra-accordion>
1267
+ `;
1268
+ };
1269
+ _renderDimensionGroup = new WeakSet();
1270
+ renderDimensionGroup_fn = function(dim) {
1271
+ var _a, _b, _c, _d, _e, _f;
1272
+ const currentValue = (_a = this.selectedDimensionIndexes[dim.name]) != null ? _a : 1;
1273
+ const dimensions = ((_f = (_e = (_d = (_c = (_b = __privateGet(this, _collectionController).gesDiscCollection) == null ? void 0 : _b.data) == null ? void 0 : _c.services) == null ? void 0 : _d.subset) == null ? void 0 : _e.find(
1274
+ (s) => s.dimensions && s.dimensions.length > 0
1275
+ )) == null ? void 0 : _f.dimensions) || [];
1276
+ return b`
1277
+ <div style="margin-bottom: 16px;">
1278
+ <div
1279
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;"
1280
+ >
1281
+ <span style="font-weight: 600; margin-bottom: 44px"
1282
+ >Dimension: ${dim.name}</span
1283
+ >
1284
+ </div>
1285
+ <terra-slider
1286
+ class="dimension-slider"
1287
+ mode="range"
1288
+ min="1"
1289
+ .max=${dim.size}
1290
+ step="1"
1291
+ .startValue=${currentValue.start}
1292
+ .endValue=${currentValue.end}
1293
+ has-tooltips
1294
+ show-inputs
1295
+ hide-label
1296
+ .formatTooltip=${dimensions.length > 0 ? (value) => {
1297
+ const found = dimensions.find(
1298
+ (d) => String(d.value) === String(value)
1299
+ );
1300
+ return found ? found.label : String(value);
1301
+ } : A}
1302
+ @terra-slider-change=${(event) => {
1303
+ if ("startValue" in event.detail) {
1304
+ const { startValue, endValue } = event.detail;
1305
+ __privateMethod(this, _setDimensionValue, setDimensionValue_fn).call(this, dim.name, startValue, endValue);
1306
+ }
1307
+ }}
1308
+ ></terra-slider>
1309
+ </div>
1310
+ `;
1311
+ };
1312
+ _setDimensionValue = new WeakSet();
1313
+ setDimensionValue_fn = function(dimName, startValue, endValue) {
1314
+ const dimensions = __privateMethod(this, _getCommonSelectableDimensions, getCommonSelectableDimensions_fn).call(this);
1315
+ const found = dimensions.find((d) => d.name === dimName);
1316
+ if (!found) {
1317
+ return;
1318
+ }
1319
+ const normalizedStartValue = Math.min(
1320
+ Math.max(Math.round(startValue), 1),
1321
+ found.size
1322
+ );
1323
+ const normalizedEndValue = Math.min(
1324
+ Math.max(Math.round(endValue != null ? endValue : startValue), 1),
1325
+ found.size
1326
+ );
1327
+ if (normalizedStartValue <= 1 && normalizedEndValue >= found.size) {
1328
+ delete this.selectedDimensionIndexes[dimName];
1329
+ return;
1330
+ }
1331
+ this.selectedDimensionIndexes = __spreadProps(__spreadValues({}, this.selectedDimensionIndexes), {
1332
+ [dimName]: { start: normalizedStartValue, end: normalizedEndValue }
1333
+ });
1334
+ };
1335
+ _renderDimensionSelection = new WeakSet();
1336
+ renderDimensionSelection_fn = function() {
1337
+ const dimensions = __privateMethod(this, _getCommonSelectableDimensions, getCommonSelectableDimensions_fn).call(this);
1338
+ if (!dimensions.length) {
1339
+ return A;
1340
+ }
1341
+ const selectedCount = Object.keys(this.selectedDimensionIndexes).length;
1342
+ return b`
1343
+ <terra-accordion>
1344
+ <div slot="summary">
1345
+ <span class="accordion-title">Select Dimensions:</span>
1346
+ </div>
1347
+ <div
1348
+ slot="summary-right"
1349
+ style="display: flex; align-items: center; gap: 10px;"
1350
+ >
1351
+ ${selectedCount ? b`<span class="accordion-value"
1352
+ >${selectedCount}
1353
+ dimension${selectedCount === 1 ? "" : "s"}
1354
+ selected</span
1355
+ >` : A}
1356
+ <button class="reset-btn" @click=${__privateMethod(this, _resetDimensionSelection, resetDimensionSelection_fn)}>
1357
+ Reset
1358
+ </button>
1359
+ </div>
1360
+ <div class="accordion-content">
1361
+ ${dimensions.map((dim) => __privateMethod(this, _renderDimensionGroup, renderDimensionGroup_fn).call(this, dim))}
1362
+ </div>
1363
+ </terra-accordion>
1364
+ `;
1365
+ };
1366
+ _filterVariableTree = new WeakSet();
1367
+ filterVariableTree_fn = function(tree) {
1368
+ if (!this.variableFilterText.trim()) {
1369
+ return tree;
1370
+ }
1371
+ const filterText = this.variableFilterText.toLowerCase().trim();
1372
+ const filterNode = (node) => {
1373
+ const result = {};
1374
+ for (const [key, value] of Object.entries(node)) {
1375
+ if (value.__isLeaf) {
1376
+ const variableName = value.__variable.name.toLowerCase();
1377
+ if (variableName.includes(filterText)) {
1378
+ result[key] = value;
1379
+ }
1380
+ } else {
1381
+ const filteredChildren = filterNode(value.__children);
1382
+ if (Object.keys(filteredChildren).length > 0 || key.toLowerCase().includes(filterText)) {
1383
+ result[key] = __spreadProps(__spreadValues({}, value), {
1384
+ __children: filteredChildren
1385
+ });
1386
+ }
1387
+ }
1388
+ }
1389
+ return result;
1390
+ };
1391
+ return filterNode(tree);
1392
+ };
1393
+ _handleVariableFilterChange = new WeakSet();
1394
+ handleVariableFilterChange_fn = function() {
1395
+ var _a;
1396
+ if (!this.variableFilterText.trim()) {
1397
+ return;
1398
+ }
1399
+ const variables = ((_a = this.collectionWithServices) == null ? void 0 : _a.variables) || [];
1400
+ const tree = __privateMethod(this, _buildVariableTree, buildVariableTree_fn).call(this, variables);
1401
+ const filterText = this.variableFilterText.toLowerCase().trim();
1402
+ const groupsToExpand = /* @__PURE__ */ new Set();
1403
+ const findMatchingGroups = (node, path = []) => {
1404
+ for (const [key, value] of Object.entries(node)) {
1405
+ if (value.__isLeaf) {
1406
+ const variableName = value.__variable.name.toLowerCase();
1407
+ if (variableName.includes(filterText)) {
1408
+ for (let i = 0; i < path.length; i++) {
1409
+ const groupPath = path.slice(0, i + 1).join("/");
1410
+ groupsToExpand.add(groupPath);
1411
+ }
1412
+ }
1413
+ } else {
1414
+ const groupPath = [...path, key].join("/");
1415
+ findMatchingGroups(value.__children, [...path, key]);
1416
+ if (key.toLowerCase().includes(filterText)) {
1417
+ groupsToExpand.add(groupPath);
1418
+ }
1419
+ }
1420
+ }
1421
+ };
1422
+ findMatchingGroups(tree);
1423
+ if (groupsToExpand.size > 0) {
1424
+ this.expandedVariableGroups = /* @__PURE__ */ new Set([
1425
+ ...this.expandedVariableGroups,
1426
+ ...groupsToExpand
1427
+ ]);
1428
+ }
1429
+ };
1430
+ _buildVariableTree = new WeakSet();
1431
+ buildVariableTree_fn = function(variables) {
1432
+ let filteredVariables = variables;
1433
+ if (this.selectedFormat.isGiovanniFormat && this.giovanniConfiguredVariables) {
1434
+ filteredVariables = variables.filter((v) => {
1435
+ var _a, _b, _c;
1436
+ const shortName = (_a = this.collectionWithServices) == null ? void 0 : _a.shortName;
1437
+ const version = (_c = (_b = this.collectionWithServices) == null ? void 0 : _b.collection) == null ? void 0 : _c.Version;
1438
+ if (!shortName || !version) {
1439
+ return false;
1440
+ }
1441
+ const giovanniVariableName = convertVariableEntryIdToGiovanniFormat(
1442
+ shortName,
1443
+ version,
1444
+ v.name
1445
+ );
1446
+ return this.giovanniConfiguredVariables.has(giovanniVariableName);
1447
+ });
1448
+ }
1449
+ const root = {};
1450
+ for (const v of filteredVariables) {
1451
+ const parts = v.name.split("/");
1452
+ let node = root;
1453
+ for (let i = 0; i < parts.length; i++) {
1454
+ const part = parts[i];
1455
+ if (!node[part])
1456
+ node[part] = { __children: {}, __isLeaf: false };
1457
+ if (i === parts.length - 1) {
1458
+ node[part].__isLeaf = true;
1459
+ node[part].__variable = v;
1460
+ }
1461
+ node = node[part].__children;
1462
+ }
1463
+ }
1464
+ return root;
1465
+ };
1466
+ _renderVariableTree = new WeakSet();
1467
+ renderVariableTree_fn = function(node, path) {
1468
+ const isGiovanni = this.selectedFormat.isGiovanniFormat;
1469
+ return b`
1470
+ <div style="margin-left: ${path.length * 20}px;">
1471
+ ${Object.entries(node).map(([key, value]) => {
1472
+ var _a;
1473
+ const groupPath = [...path, key].join("/");
1474
+ if (value.__isLeaf) {
1475
+ const ummVar = cmr_variable_service_default.getVariableByName(
1476
+ key,
1477
+ (_a = __privateGet(this, _collectionController).variables) == null ? void 0 : _a.data
1478
+ );
1479
+ const variableLabel = ummVar ? cmr_variable_service_default.getVariableDisplayLabel(ummVar) : key;
1480
+ return b`
1481
+ <div class="option-row">
1482
+ <label class="checkbox-option">
1483
+ <input
1484
+ type="${isGiovanni ? "radio" : "checkbox"}"
1485
+ name="${isGiovanni ? "variable-selection" : ""}"
1486
+ .checked=${this.selectedVariables.some(
1487
+ (v) => v.name === value.__variable.name
1488
+ )}
1489
+ @change=${(e2) => __privateMethod(this, _toggleVariableSelection, toggleVariableSelection_fn).call(this, e2, value.__variable)}
1490
+ />
1491
+ <span>${variableLabel}</span>
1492
+ </label>
1493
+ </div>
1494
+ `;
1495
+ } else {
1496
+ const expanded = this.expandedVariableGroups.has(groupPath);
1497
+ return b`
1498
+ <div class="option-row" style="align-items: flex-start;">
1499
+ <span
1500
+ style="cursor: pointer; display: flex; align-items: center;"
1501
+ @click=${() => __privateMethod(this, _toggleGroupExpand, toggleGroupExpand_fn).call(this, groupPath)}
1502
+ >
1503
+ <terra-icon
1504
+ library="heroicons"
1505
+ name="${expanded ? "outline-minus-circle" : "outline-plus-circle"}"
1506
+ style="margin-right: 4px;"
1507
+ ></terra-icon>
1508
+ <span style="font-weight: 500;">${key}</span>
1509
+ </span>
1510
+ </div>
1511
+ ${expanded ? __privateMethod(this, _renderVariableTree, renderVariableTree_fn).call(this, value.__children, [
1512
+ ...path,
1513
+ key
1514
+ ]) : ""}
1515
+ `;
1516
+ }
1517
+ })}
1518
+ </div>
1519
+ `;
1520
+ };
1521
+ _getAllGroupPaths = new WeakSet();
1522
+ getAllGroupPaths_fn = function(node, path = []) {
1523
+ let groups = [];
1524
+ for (const [key, value] of Object.entries(node)) {
1525
+ if (!value.__isLeaf) {
1526
+ const groupPath = [...path, key].join("/");
1527
+ groups.push(groupPath);
1528
+ groups = groups.concat(
1529
+ __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, value.__children, [...path, key])
1530
+ );
1531
+ }
1532
+ }
1533
+ return groups;
1534
+ };
1535
+ _toggleGroupExpand = new WeakSet();
1536
+ toggleGroupExpand_fn = function(groupPath) {
1537
+ const set = new Set(this.expandedVariableGroups);
1538
+ if (set.has(groupPath)) {
1539
+ set.delete(groupPath);
1540
+ } else {
1541
+ set.add(groupPath);
1542
+ }
1543
+ this.expandedVariableGroups = set;
1544
+ };
1545
+ _toggleExpandCollapseAll = new WeakSet();
1546
+ toggleExpandCollapseAll_fn = function(tree) {
1547
+ const allGroups = __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, tree);
1548
+ const allExpanded = allGroups.length > 0 && allGroups.every((g) => this.expandedVariableGroups.has(g));
1549
+ if (allExpanded) {
1550
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
1551
+ } else {
1552
+ this.expandedVariableGroups = new Set(allGroups);
1553
+ }
1554
+ };
1555
+ _toggleVariableSelection = new WeakSet();
1556
+ toggleVariableSelection_fn = function(e2, variable) {
1557
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "variables");
1558
+ const checked = e2.target.checked;
1559
+ if (this.selectedFormat.isGiovanniFormat) {
1560
+ if (checked) {
1561
+ this.selectedVariables = [variable];
1562
+ }
1563
+ } else {
1564
+ if (checked) {
1565
+ if (!this.selectedVariables.some((v) => v.name === variable.name)) {
1566
+ this.selectedVariables = [...this.selectedVariables, variable];
1567
+ }
1568
+ } else {
1569
+ this.selectedVariables = this.selectedVariables.filter(
1570
+ (v) => v.name !== variable.name
1571
+ );
1572
+ }
1573
+ }
1574
+ };
1575
+ _markFieldTouched = new WeakSet();
1576
+ markFieldTouched_fn = function(field) {
1577
+ this.touchedFields = new Set(this.touchedFields).add(field);
1578
+ };
1579
+ _resetVariableSelection = new WeakMap();
1580
+ _resetDimensionSelection = new WeakSet();
1581
+ resetDimensionSelection_fn = function() {
1582
+ this.selectedDimensionIndexes = {};
1583
+ };
1584
+ _isDimensionExcluded = new WeakSet();
1585
+ isDimensionExcluded_fn = function(dim) {
1586
+ var _a, _b, _c;
1587
+ const normalizedName = (_b = (_a = dim.Name) == null ? void 0 : _a.toLowerCase()) != null ? _b : "";
1588
+ const normalizedType = ((_c = dim.Type) != null ? _c : "").toLowerCase();
1589
+ return ["time", "latitude", "longitude", "lat", "lon", "x", "y"].some(
1590
+ (value) => normalizedName.includes(value) || normalizedType.includes(value)
1591
+ );
1592
+ };
1593
+ _getCommonSelectableDimensions = new WeakSet();
1594
+ getCommonSelectableDimensions_fn = function() {
1595
+ var _a, _b;
1596
+ const variables = (_a = __privateGet(this, _collectionController).variables) == null ? void 0 : _a.data;
1597
+ if (!variables) {
1598
+ console.log("no variables found, cannot determine dimensions");
1599
+ return [];
1600
+ }
1601
+ const allUmmVars = (_b = variables.items) != null ? _b : [];
1602
+ if (!allUmmVars.length) {
1603
+ return [];
1604
+ }
1605
+ const allDimensionSets = allUmmVars.map(
1606
+ (v) => {
1607
+ var _a2;
1608
+ return (_a2 = v.umm.Dimensions) != null ? _a2 : [];
1609
+ }
1610
+ );
1611
+ if (!allDimensionSets.length) {
1612
+ return [];
1613
+ }
1614
+ const allDimensionNames = Array.from(
1615
+ new Set(allDimensionSets.flatMap((dimSet) => dimSet.map((dim) => dim.Name)))
1616
+ );
1617
+ const filteredCommon = allDimensionNames.map((name) => {
1618
+ var _a2, _b2;
1619
+ const dims = allDimensionSets.map((set) => set.find((dim) => dim.Name === name)).filter((d) => Boolean(d));
1620
+ if (!dims.length) {
1621
+ return null;
1622
+ }
1623
+ const validSizes = dims.filter((dim) => dim.Size !== void 0 && dim.Size !== "Varies").map((dim) => Number(dim.Size)).filter((size2) => Number.isFinite(size2) && size2 > 0);
1624
+ if (!validSizes.length) {
1625
+ return null;
1626
+ }
1627
+ const size = Math.min(...validSizes);
1628
+ return {
1629
+ name,
1630
+ type: (_b2 = (_a2 = dims[0]) == null ? void 0 : _a2.Type) != null ? _b2 : "OTHER",
1631
+ size
1632
+ };
1633
+ }).filter(
1634
+ (entry) => Boolean(entry)
1635
+ ).filter(
1636
+ (entry) => !__privateMethod(this, _isDimensionExcluded, isDimensionExcluded_fn).call(this, {
1637
+ Name: entry.name,
1638
+ Type: entry.type
1639
+ })
1640
+ );
1641
+ return filteredCommon;
1642
+ };
1643
+ _renderJobStatus = new WeakSet();
1644
+ renderJobStatus_fn = function() {
1645
+ var _a, _b, _c, _d, _e;
1646
+ if (!__privateGet(this, _harmonyRequestController).jobId) {
1647
+ return b`<div class="results-section" id="job-status-section">
1648
+ <div
1649
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"
1650
+ >
1651
+ <h2 class="results-title" style="margin: 0;">Results:</h2>
1652
+ ${!this.isHistoryView ? b`
1653
+ <terra-button
1654
+ variant="default"
1655
+ size="small"
1656
+ @click=${__privateMethod(this, _backToSubsetOptions, backToSubsetOptions_fn)}
1657
+ >
1658
+ ← Back to Subset Options
1659
+ </terra-button>
1660
+ ` : A}
1661
+ </div>
1662
+
1663
+ <div class="progress-container">
1664
+ <div class="progress-text">
1665
+ <span class="spinner"></span>
1666
+ <span class="status-running">Searching for data...</span>
1667
+ </div>
1668
+
1669
+ <div class="progress-bar">
1670
+ <div class="progress-fill" style="width: 0%"></div>
1671
+ </div>
1672
+ </div>
1673
+
1674
+ ${__privateMethod(this, _renderJobMessage, renderJobMessage_fn).call(this)}
1675
+ </div>`;
1676
+ }
1677
+ return b`
1678
+ <div class="results-section" id="job-status-section">
1679
+ <div
1680
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"
1681
+ >
1682
+ <h2 class="results-title" style="margin: 0;">Results:</h2>
1683
+ ${!this.isHistoryView ? b`
1684
+ <terra-button
1685
+ variant="default"
1686
+ size="small"
1687
+ @click=${__privateMethod(this, _backToSubsetOptions, backToSubsetOptions_fn)}
1688
+ >
1689
+ ← Back to Subset Options
1690
+ </terra-button>
1691
+ ` : A}
1692
+ </div>
1693
+
1694
+ ${__privateGet(this, _harmonyRequestController).status !== "canceled" && __privateGet(this, _harmonyRequestController).status !== "failed" ? b` <div class="progress-container">
1695
+ <div class="progress-text">
1696
+ ${__privateGet(this, _harmonyRequestController).progress >= 100 ? b`
1697
+ <span class="status-complete"
1698
+ >✓ Search complete</span
1699
+ >
1700
+ ` : b`
1701
+ <span class="spinner"></span>
1702
+ <span class="status-running"
1703
+ >Searching for data...
1704
+ (${__privateGet(this, _harmonyRequestController).progress}%)</span
1705
+ >
1706
+ `}
1707
+ </div>
1708
+
1709
+ <div class="progress-bar">
1710
+ <div
1711
+ class="progress-fill"
1712
+ style="width: ${__privateGet(this, _harmonyRequestController).progress}%"
1713
+ ></div>
1714
+ </div>
1715
+ </div>` : A}
1716
+
1717
+ <div class="search-status">
1718
+ <span class="file-count"
1719
+ >Found ${__privateMethod(this, _numberOfFilesFoundEstimate, numberOfFilesFoundEstimate_fn).call(this)} files</span
1720
+ >
1721
+ out of estimated
1722
+ <span class="estimated-total"
1723
+ >${(_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.numInputGranules.toLocaleString()}</span
1724
+ >
1725
+ </div>
1726
+
1727
+ ${__privateMethod(this, _renderJobMessage, renderJobMessage_fn).call(this)}
1728
+ ${((_c = (_b = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _b.errors) == null ? void 0 : _c.length) ? b`
1729
+ <terra-accordion>
1730
+ <div slot="summary">
1731
+ <span
1732
+ class="accordion-title"
1733
+ style="color: #dc3545;"
1734
+ >Errors
1735
+ (${(_d = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _d.errors.length})</span
1736
+ >
1737
+ </div>
1738
+ <div class="accordion-content">
1739
+ <ul
1740
+ style="color: #dc3545; font-size: 14px; padding-left: 20px;"
1741
+ >
1742
+ ${(_e = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _e.errors.map(
1743
+ (err) => b`
1744
+ <li style="margin-bottom: 12px;">
1745
+ <a
1746
+ href="${err.url}"
1747
+ target="_blank"
1748
+ style="word-break: break-all; color: #dc3545; text-decoration: underline;"
1749
+ >
1750
+ ${err.url}
1751
+ </a>
1752
+ <div style="margin-top: 2px;">
1753
+ ${err.message}
1754
+ </div>
1755
+ </li>
1756
+ `
1757
+ )}
1758
+ </ul>
1759
+ </div>
1760
+ </terra-accordion>
1761
+ ` : A}
1762
+
1763
+ <div class="tabs">
1764
+ <button
1765
+ class="tab ${this.selectedTab === "web-links" ? "active" : ""}"
1766
+ @click=${() => this.selectedTab = "web-links"}
1767
+ >
1768
+ Web Links
1769
+ </button>
1770
+
1771
+ ${!this.isHistoryView ? b`
1772
+ <button
1773
+ class="tab ${this.selectedTab === "selected-params" ? "active" : ""}"
1774
+ @click=${() => this.selectedTab = "selected-params"}
1775
+ >
1776
+ Selected Parameters
1777
+ </button>
1778
+ ` : A}
1779
+ </div>
1780
+ <div
1781
+ id="web-links"
1782
+ class="tab-content ${this.selectedTab === "web-links" ? "active" : ""}"
1783
+ >
1784
+ ${__privateMethod(this, _getDocumentationLinks, getDocumentationLinks_fn).call(this).length ? b`
1785
+ <div class="documentation-links">
1786
+ ${__privateMethod(this, _getDocumentationLinks, getDocumentationLinks_fn).call(this).map(
1787
+ (link) => b`
1788
+ <a href="${link.href}" class="doc-link"
1789
+ >${link.title}</a
1790
+ >
1791
+ `
1792
+ )}
1793
+ </div>
1794
+ ` : A}
1795
+
1796
+ <ul class="file-list">
1797
+ ${__privateMethod(this, _getDataLinks, getDataLinks_fn).call(this).map(
1798
+ (link) => b`
1799
+ <li class="file-item">
1800
+ <a
1801
+ href="${link.href}"
1802
+ class="file-link"
1803
+ target="_blank"
1804
+ >
1805
+ ${link.title}
1806
+ </a>
1807
+ </li>
1808
+ `
1809
+ )}
1810
+ </ul>
1811
+ </div>
1812
+
1813
+ <div
1814
+ id="selected-params"
1815
+ class="tab-content ${this.selectedTab === "selected-params" ? "active" : ""}"
1816
+ >
1817
+ ${__privateMethod(this, _renderSelectedParams, renderSelectedParams_fn).call(this)}
1818
+ </div>
1819
+ </div>
1820
+
1821
+ ${!this.dialog ? b`
1822
+ <div class="footer">
1823
+ ${__privateGet(this, _harmonyRequestController).status === "successful" /* SUCCESSFUL */ || __privateGet(this, _harmonyRequestController).status === "complete_with_errors" /* COMPLETE_WITH_ERRORS */ ? b`
1824
+ <div
1825
+ style="display: flex; align-items: center; gap: 8px;"
1826
+ >
1827
+ <terra-dropdown
1828
+ @terra-select=${__privateMethod(this, _handleDownloadSelect, handleDownloadSelect_fn)}
1829
+ >
1830
+ <terra-button slot="trigger" caret>
1831
+ Download Options
1832
+ </terra-button>
1833
+ <terra-menu>
1834
+ <terra-menu-item value="file-list">
1835
+ <svg
1836
+ slot="prefix"
1837
+ viewBox="0 0 24 24"
1838
+ width="16"
1839
+ height="16"
1840
+ style="width: 16px; height: 16px;"
1841
+ >
1842
+ <path
1843
+ fill="currentColor"
1844
+ d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"
1845
+ />
1846
+ </svg>
1847
+ File List
1848
+ </terra-menu-item>
1849
+ <terra-menu-item
1850
+ value="python-script"
1851
+ >
1852
+ <svg
1853
+ slot="prefix"
1854
+ viewBox="0 0 128 128"
1855
+ width="16"
1856
+ height="16"
1857
+ style="width: 16px; height: 16px;"
1858
+ >
1859
+ <path
1860
+ fill="currentColor"
1861
+ d="M49.33 62h29.159C86.606 62 93 55.132 93 46.981V19.183c0-7.912-6.632-13.856-14.555-15.176-5.014-.835-10.195-1.215-15.187-1.191-4.99.023-9.612.448-13.805 1.191C37.098 6.188 35 10.758 35 19.183V30h29v4H23.776c-8.484 0-15.914 5.108-18.237 14.811-2.681 11.12-2.8 17.919 0 29.53C7.614 86.983 12.569 93 21.054 93H31V79.952C31 70.315 39.428 62 49.33 62zm-1.838-39.11c-3.026 0-5.478-2.479-5.478-5.545 0-3.079 2.451-5.581 5.478-5.581 3.015 0 5.479 2.502 5.479 5.581-.001 3.066-2.465 5.545-5.479 5.545zm74.789 25.921C120.183 40.363 116.178 34 107.682 34H97v12.981C97 57.031 88.206 65 78.489 65H49.33C41.342 65 35 72.326 35 80.326v27.8c0 7.91 6.745 12.564 14.462 14.834 9.242 2.717 17.994 3.208 29.051 0C85.862 120.831 93 116.549 93 108.126V97H64v-4h43.682c8.484 0 11.647-5.776 14.599-14.66 3.047-9.145 2.916-17.799 0-29.529zm-41.955 55.606c3.027 0 5.479 2.479 5.479 5.547 0 3.076-2.451 5.579-5.479 5.579-3.015 0-5.478-2.502-5.478-5.579 0-3.068 2.463-5.547 5.478-5.547z"
1862
+ ></path>
1863
+ </svg>
1864
+ Python Script
1865
+ </terra-menu-item>
1866
+ <terra-menu-item
1867
+ value="earthdata-download"
1868
+ >
1869
+ <svg
1870
+ slot="prefix"
1871
+ viewBox="0 0 64 64"
1872
+ fill="none"
1873
+ width="16"
1874
+ height="16"
1875
+ style="width: 16px; height: 16px;"
1876
+ >
1877
+ <circle
1878
+ cx="32"
1879
+ cy="32"
1880
+ r="28"
1881
+ fill="currentColor"
1882
+ />
1883
+ <path
1884
+ d="M32 14v26M32 40l-9-9M32 40l9-9"
1885
+ stroke="#fff"
1886
+ stroke-width="4"
1887
+ stroke-linecap="round"
1888
+ stroke-linejoin="round"
1889
+ fill="none"
1890
+ />
1891
+ </svg>
1892
+ Earthdata Download
1893
+ </terra-menu-item>
1894
+ </terra-menu>
1895
+ </terra-dropdown>
1896
+
1897
+ <!--
1898
+ <terra-button
1899
+ outline
1900
+ @click=${() => __privateMethod(this, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn).call(this)}
1901
+ >
1902
+ <terra-icon
1903
+ name="outline-code-bracket"
1904
+ library="heroicons"
1905
+ font-size="1.5em"
1906
+ style="margin-right: 5px;"
1907
+ ></terra-icon>
1908
+ Open in Jupyter Notebook
1909
+ </terra-button>
1910
+ --></div>
1911
+ ` : A}
1912
+ ${__privateGet(this, _harmonyRequestController).status === "running" /* RUNNING */ ? b`<button
1913
+ class="btn btn-success"
1914
+ @click=${__privateMethod(this, _cancelJob, cancelJob_fn)}
1915
+ ?disabled=${this.cancelingGetData}
1916
+ >
1917
+ ${this.cancelingGetData ? "Canceling..." : "Cancel request"}
1918
+ </button>` : A}
1919
+
1920
+ <div class="job-info">
1921
+ Job ID:
1922
+ <span class="job-id">
1923
+ ${this.bearerToken ? b`<a
1924
+ href="https://harmony.earthdata.nasa.gov/jobs/${__privateGet(this, _harmonyRequestController).jobId}"
1925
+ target="_blank"
1926
+ >${__privateGet(this, _harmonyRequestController).jobId}</a
1927
+ >` : __privateGet(this, _harmonyRequestController).jobId}
1928
+ </span>
1929
+ <span class="info-icon">?</span>
1930
+ </div>
1931
+ </div>
1932
+ ` : A}
1933
+ `;
1934
+ };
1935
+ _renderSelectedParams = new WeakSet();
1936
+ renderSelectedParams_fn = function() {
1937
+ var _a, _b, _c, _d;
1938
+ const collection = (_a = this.collectionWithServices) == null ? void 0 : _a.collection;
1939
+ const variables = this.selectedVariables.length ? this.selectedVariables.map((v) => v.name) : ["All"];
1940
+ const dateRange = this.selectedDateRange.startDate && this.selectedDateRange.endDate ? `${this.selectedDateRange.startDate} to ${this.selectedDateRange.endDate}` : "\u2014";
1941
+ const spatial = (_c = (_b = this.spatialSelection) == null ? void 0 : _b.toString()) != null ? _c : "-";
1942
+ return b`
1943
+ <dl class="params-summary">
1944
+ <div>
1945
+ <dt><strong>Dataset</strong></dt>
1946
+ <dd>${(_d = collection == null ? void 0 : collection.EntryTitle) != null ? _d : "\u2014"}</dd>
1947
+ </div>
1948
+ <div>
1949
+ <dt><strong>Variables</strong></dt>
1950
+ <dd>${variables.map((v) => b`<div>${v}</div>`)}</dd>
1951
+ </div>
1952
+ <div>
1953
+ <dt><strong>Dimensions</strong></dt>
1954
+ <dd>
1955
+ ${Object.entries(this.selectedDimensionIndexes).length ? Object.entries(this.selectedDimensionIndexes).map(
1956
+ ([dimName, value]) => b`<div>
1957
+ <strong>${dimName}:</strong> ${value}
1958
+ </div>`
1959
+ ) : "\u2014"}
1960
+ </dd>
1961
+ </div>
1962
+ <div>
1963
+ <dt><strong>Date Range</strong></dt>
1964
+ <dd>${dateRange}</dd>
1965
+ </div>
1966
+ <div>
1967
+ <dt><strong>Spatial</strong></dt>
1968
+ <dd>${spatial}</dd>
1969
+ </div>
1970
+ </dl>
1971
+
1972
+ <terra-button @click=${__privateMethod(this, _refineParameters, refineParameters_fn)}
1973
+ >Refine Parameters</terra-button
1974
+ >
1975
+ `;
1976
+ };
1977
+ _cancelJob = new WeakSet();
1978
+ cancelJob_fn = async function() {
1979
+ if (!this.jobId) {
1980
+ return;
1981
+ }
1982
+ this.cancelingGetData = true;
1983
+ try {
1984
+ await __privateGet(this, _harmonyRequestController).cancelJob({
1985
+ jobId: this.jobId,
1986
+ options: { bearerToken: this.bearerToken }
1987
+ });
1988
+ } finally {
1989
+ this.cancelingGetData = false;
1990
+ }
1991
+ };
1992
+ _getData = new WeakSet();
1993
+ getData_fn = async function() {
1994
+ var _a;
1995
+ const validationError = __privateMethod(this, _getGiovanniValidationError, getGiovanniValidationError_fn).call(this);
1996
+ if (validationError) {
1997
+ this.validationError = validationError;
1998
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "variables");
1999
+ return;
2000
+ }
2001
+ this.validationError = void 0;
2002
+ this.cancelingGetData = false;
2003
+ __privateMethod(this, _touchAllFields, touchAllFields_fn).call(this);
2004
+ const variables = this.selectedFormat.isGiovanniFormat ? this.selectedVariables.map(
2005
+ (v) => {
2006
+ var _a2, _b, _c;
2007
+ return (
2008
+ // the Giovanni variable catalog uses different variable entry ids, we need to support them
2009
+ // ex. CMR: M2T1NXSLV_5.2.14 in Giovanni uses underscores: M2T1NXSLV_5_2_14
2010
+ convertVariableEntryIdToGiovanniFormat(
2011
+ (_a2 = this.collectionWithServices.shortName) != null ? _a2 : "",
2012
+ (_c = (_b = this.collectionWithServices.collection) == null ? void 0 : _b.Version) != null ? _c : "",
2013
+ v.name
2014
+ )
2015
+ );
2016
+ }
2017
+ ) : this.selectedVariables.map((v) => v.conceptId);
2018
+ const harmonyRequest = new HarmonyRequest({
2019
+ collectionConceptId: this.collectionWithServices.conceptId,
2020
+ variables,
2021
+ location: this.spatialSelection
2022
+ });
2023
+ if (((_a = this.collectionWithServices) == null ? void 0 : _a.summary.subsetting.temporal) && this.selectedDateRange.startDate && this.selectedDateRange.endDate) {
2024
+ harmonyRequest.startDate(
2025
+ this.isSubDaily ? this.selectedDateRange.startDate : getUTCDate(this.selectedDateRange.startDate).toISOString()
2026
+ );
2027
+ harmonyRequest.endDate(
2028
+ this.isSubDaily ? this.selectedDateRange.endDate : getUTCDate(this.selectedDateRange.endDate).toISOString()
2029
+ );
2030
+ }
2031
+ if (this.selectedFormat) {
2032
+ harmonyRequest.format(
2033
+ this.selectedFormat.isGiovanniFormat ? "text/csv" : this.selectedFormat.key
2034
+ );
2035
+ }
2036
+ if (this.selectedFormat.key === "text/csv") {
2037
+ harmonyRequest.average("area");
2038
+ }
2039
+ if (this.selectedFormat.key === "image/tiff") {
2040
+ harmonyRequest.average("time");
2041
+ }
2042
+ if (Object.keys(this.selectedDimensionIndexes).length) {
2043
+ Object.entries(this.selectedDimensionIndexes).forEach(
2044
+ ([dimName, { start, end }]) => {
2045
+ harmonyRequest.dimension({
2046
+ name: dimName,
2047
+ min: start,
2048
+ max: end
2049
+ });
2050
+ }
2051
+ );
2052
+ }
2053
+ harmonyRequest.label("terra-data-subsetter");
2054
+ console.log("Creating Harmony job with request:", harmonyRequest);
2055
+ const job = await __privateGet(this, _harmonyRequestController).startJob({
2056
+ harmonyRequest,
2057
+ options: { bearerToken: this.bearerToken }
2058
+ });
2059
+ this.jobId = job.jobID;
2060
+ setTimeout(() => {
2061
+ const el = this.renderRoot.querySelector("#job-status-section");
2062
+ el == null ? void 0 : el.scrollIntoView({ behavior: "smooth" });
2063
+ }, 100);
2064
+ this.refineParameters = false;
2065
+ this.isHistoryView = false;
2066
+ };
2067
+ _touchAllFields = new WeakSet();
2068
+ touchAllFields_fn = function() {
2069
+ this.touchedFields = /* @__PURE__ */ new Set(["variables", "spatial"]);
2070
+ };
2071
+ _numberOfFilesFoundEstimate = new WeakSet();
2072
+ numberOfFilesFoundEstimate_fn = function() {
2073
+ return Math.floor(
2074
+ __privateGet(this, _harmonyRequestController).data.numInputGranules * __privateGet(this, _harmonyRequestController).progress / 100
2075
+ );
2076
+ };
2077
+ _getDocumentationLinks = new WeakSet();
2078
+ getDocumentationLinks_fn = function() {
2079
+ return __privateGet(this, _harmonyRequestController).data.links.filter(
2080
+ (link) => link.rel === "stac-catalog-json"
2081
+ );
2082
+ };
2083
+ _getDataLinks = new WeakSet();
2084
+ getDataLinks_fn = function() {
2085
+ return __privateGet(this, _harmonyRequestController).data.links.filter(
2086
+ (link) => link.rel === "data"
2087
+ );
2088
+ };
2089
+ _hasAtLeastOneSubsetOption = new WeakSet();
2090
+ hasAtLeastOneSubsetOption_fn = function() {
2091
+ var _a, _b, _c, _d;
2092
+ return ((_a = this.collectionWithServices) == null ? void 0 : _a.summary.subsetting.bbox) || ((_b = this.collectionWithServices) == null ? void 0 : _b.summary.subsetting.shape) || ((_c = this.collectionWithServices) == null ? void 0 : _c.summary.subsetting.variable) || ((_d = this.collectionWithServices) == null ? void 0 : _d.summary.subsetting.temporal);
2093
+ };
2094
+ _hasSpatialSubset = new WeakSet();
2095
+ hasSpatialSubset_fn = function() {
2096
+ var _a, _b;
2097
+ return ((_a = this.collectionWithServices) == null ? void 0 : _a.summary.subsetting.bbox) || ((_b = this.collectionWithServices) == null ? void 0 : _b.summary.subsetting.shape);
2098
+ };
2099
+ _renderJobMessage = new WeakSet();
2100
+ renderJobMessage_fn = function() {
2101
+ const warningStatuses = [
2102
+ "canceled" /* CANCELED */,
2103
+ "complete_with_errors" /* COMPLETE_WITH_ERRORS */,
2104
+ "running_with_errors" /* RUNNING_WITH_ERRORS */
2105
+ ];
2106
+ const errorStatuses = ["failed" /* FAILED */];
2107
+ let type = "normal";
2108
+ if (warningStatuses.includes(__privateGet(this, _harmonyRequestController).data.status)) {
2109
+ type = "warning";
2110
+ } else if (errorStatuses.includes(__privateGet(this, _harmonyRequestController).data.status)) {
2111
+ type = "error";
2112
+ }
2113
+ let color, bg;
2114
+ if (type === "error") {
2115
+ color = "#dc3545";
2116
+ bg = "#f8d7da";
2117
+ } else if (type === "warning") {
2118
+ color = "#856404";
2119
+ bg = "#fff3cd";
2120
+ } else {
2121
+ color = "#555";
2122
+ bg = "#f8f9fa";
2123
+ }
2124
+ return b`
2125
+ <div
2126
+ style="
2127
+ margin: 24px 0 16px 0;
2128
+ padding: 16px 20px;
2129
+ border-radius: 6px;
2130
+ background: ${bg};
2131
+ color: ${color};
2132
+ border: 1px solid ${color}22;
2133
+ "
2134
+ >
2135
+ ${__privateMethod(this, _getJobMessageText, getJobMessageText_fn).call(this)}
2136
+ </div>
2137
+ `;
2138
+ };
2139
+ _getJobMessageText = new WeakSet();
2140
+ getJobMessageText_fn = function() {
2141
+ var _a;
2142
+ return (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.message.replace(
2143
+ /\b(The job|the job|job|Job)\b/g,
2144
+ (match) => {
2145
+ switch (match) {
2146
+ case "The job":
2147
+ return "Your request";
2148
+ case "the job":
2149
+ return "Your Request";
2150
+ case "job":
2151
+ return "request";
2152
+ case "Job":
2153
+ return "Request";
2154
+ }
2155
+ return match;
2156
+ }
2157
+ );
2158
+ };
2159
+ _estimateJobSize = new WeakSet();
2160
+ estimateJobSize_fn = function() {
2161
+ var _a, _b, _c, _d, _e;
2162
+ if (!((_a = this.collectionWithServices) == null ? void 0 : _a.granuleCount))
2163
+ return;
2164
+ const range = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
2165
+ let startDate;
2166
+ let endDate;
2167
+ let links = (_c = (_b = this.collectionWithServices) == null ? void 0 : _b.granuleCount) != null ? _c : 0;
2168
+ if (this.selectedDateRange.startDate && this.selectedDateRange.endDate) {
2169
+ startDate = this.selectedDateRange.startDate;
2170
+ endDate = this.selectedDateRange.endDate;
2171
+ } else {
2172
+ startDate = (_d = this.granuleMinDate) != null ? _d : range.startDate;
2173
+ endDate = (_e = this.granuleMaxDate) != null ? _e : range.endDate;
2174
+ }
2175
+ if (!startDate || !endDate)
2176
+ return;
2177
+ const start = new Date(startDate);
2178
+ const end = new Date(endDate);
2179
+ const days = Math.floor((end.getTime() - start.getTime()) / (1e3 * 60 * 60 * 24)) + 1;
2180
+ if (range.startDate && range.endDate) {
2181
+ const availableDaysInCollection = Math.floor(
2182
+ (new Date(range.endDate).getTime() - new Date(range.startDate).getTime()) / (1e3 * 60 * 60 * 24)
2183
+ ) + 1;
2184
+ const granulesPerDay = links / availableDaysInCollection;
2185
+ links = Math.ceil(days * granulesPerDay);
2186
+ }
2187
+ return { days, links };
2188
+ };
2189
+ _refineParameters = new WeakSet();
2190
+ refineParameters_fn = function() {
2191
+ this.refineParameters = true;
2192
+ };
2193
+ _backToSubsetOptions = new WeakSet();
2194
+ backToSubsetOptions_fn = function() {
2195
+ this.refineParameters = true;
2196
+ setTimeout(() => {
2197
+ const container = this.renderRoot.querySelector(".container");
2198
+ container == null ? void 0 : container.scrollIntoView({ behavior: "smooth", block: "start" });
2199
+ }, 100);
2200
+ };
2201
+ _viewRunningJob = new WeakSet();
2202
+ viewRunningJob_fn = function() {
2203
+ this.refineParameters = false;
2204
+ setTimeout(() => {
2205
+ const el = this.renderRoot.querySelector("#job-status-section");
2206
+ el == null ? void 0 : el.scrollIntoView({ behavior: "smooth" });
2207
+ }, 100);
2208
+ };
2209
+ _handleDownloadSelect = new WeakSet();
2210
+ handleDownloadSelect_fn = function(event) {
2211
+ const item = event.detail.item;
2212
+ const value = item.value || item.getTextLabel();
2213
+ if (value === "file-list") {
2214
+ __privateMethod(this, _downloadLinksAsTxt, downloadLinksAsTxt_fn).call(this, event);
2215
+ } else if (value === "python-script") {
2216
+ __privateMethod(this, _downloadPythonScript, downloadPythonScript_fn).call(this, event);
2217
+ } else if (value === "earthdata-download") {
2218
+ __privateMethod(this, _downloadEarthdataDownload, downloadEarthdataDownload_fn).call(this, event);
2219
+ }
2220
+ };
2221
+ _downloadLinksAsTxt = new WeakSet();
2222
+ downloadLinksAsTxt_fn = function(event) {
2223
+ var _a;
2224
+ event.stopPropagation();
2225
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2226
+ return;
2227
+ }
2228
+ const dataLinks = __privateMethod(this, _getDataLinks, getDataLinks_fn).call(this);
2229
+ if (dataLinks.length === 0) {
2230
+ return;
2231
+ }
2232
+ const content = dataLinks.map((link) => link.href).join("\n");
2233
+ const blob = new Blob([content], { type: "text/plain" });
2234
+ const url = URL.createObjectURL(blob);
2235
+ const a = document.createElement("a");
2236
+ a.href = url;
2237
+ a.download = `subset_links_${__privateGet(this, _harmonyRequestController).jobId}.txt`;
2238
+ document.body.appendChild(a);
2239
+ a.click();
2240
+ document.body.removeChild(a);
2241
+ URL.revokeObjectURL(url);
2242
+ };
2243
+ _downloadPythonScript = new WeakSet();
2244
+ downloadPythonScript_fn = async function(event) {
2245
+ var _a, _b, _c, _d;
2246
+ event.stopPropagation();
2247
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2248
+ return;
2249
+ }
2250
+ const response = await fetch(
2251
+ getBasePath("assets/data-subsetter/download_subset_files.py.txt")
2252
+ );
2253
+ if (!response.ok) {
2254
+ alert(
2255
+ "Sorry, there was a problem generating the Python script. We are investigating the issue.\nYou could try using the Jupyter Notebook in the meantime"
2256
+ );
2257
+ }
2258
+ const content = (await response.text()).replace(/{{jobId}}/gi, (_b = __privateGet(this, _harmonyRequestController).jobId) != null ? _b : "").replace(
2259
+ /{{HARMONY_ENV}}/gi,
2260
+ `Environment.${(_c = this.environment) == null ? void 0 : _c.toUpperCase()}`
2261
+ ).replace(
2262
+ /{{EARTHACCESS_ENV}}/gi,
2263
+ `earthaccess.${(_d = this.environment) == null ? void 0 : _d.toUpperCase()}`
2264
+ );
2265
+ const blob = new Blob([content], { type: "text/plain" });
2266
+ const url = URL.createObjectURL(blob);
2267
+ const a = document.createElement("a");
2268
+ a.href = url;
2269
+ a.download = `download_subset_files_${__privateGet(this, _harmonyRequestController).jobId}.py`;
2270
+ document.body.appendChild(a);
2271
+ a.click();
2272
+ document.body.removeChild(a);
2273
+ URL.revokeObjectURL(url);
2274
+ };
2275
+ _downloadEarthdataDownload = new WeakSet();
2276
+ downloadEarthdataDownload_fn = async function(event) {
2277
+ var _a;
2278
+ event.stopPropagation();
2279
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2280
+ return;
2281
+ }
2282
+ alert("Sorry, Earthdata Download is not currently supported");
2283
+ };
2284
+ _handleJupyterNotebookClick = new WeakSet();
2285
+ handleJupyterNotebookClick_fn = function() {
2286
+ const notebook = getNotebook(this);
2287
+ sendDataToJupyterNotebook("load-notebook", {
2288
+ filename: `subset_${__privateGet(this, _harmonyRequestController).jobId}.ipynb`,
2289
+ notebook,
2290
+ bearerToken: this.bearerToken
2291
+ });
2292
+ };
2293
+ _renderAvailableTemporalRangeSection = new WeakSet();
2294
+ renderAvailableTemporalRangeSection_fn = function() {
2295
+ const { startDate, endDate } = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
2296
+ if (!startDate || !endDate)
2297
+ return A;
2298
+ return b`
2299
+ <div class="section" style="margin-bottom: 16px;">
2300
+ <h2 class="section-title">Available Date Range</h2>
2301
+ <div style="color: #31708f; margin-top: 8px;">
2302
+ <strong>${startDate}</strong> to <strong>${endDate}</strong>
2303
+ </div>
2304
+ <div style="font-size: 0.95em; color: #666;">
2305
+ This collection does not support temporal subsetting.
2306
+ </div>
2307
+ </div>
2308
+ `;
2309
+ };
2310
+ _renderAvailableSpatialRangeSection = new WeakSet();
2311
+ renderAvailableSpatialRangeSection_fn = function() {
2312
+ var _a, _b, _c, _d, _e;
2313
+ const boundingRects = (_e = (_d = (_c = (_b = (_a = this.collectionWithServices) == null ? void 0 : _a.collection) == null ? void 0 : _b.SpatialExtent) == null ? void 0 : _c.HorizontalSpatialDomain) == null ? void 0 : _d.Geometry) == null ? void 0 : _e.BoundingRectangles;
2314
+ if (!boundingRects || !Array.isArray(boundingRects) || !boundingRects.length)
2315
+ return A;
2316
+ return b`
2317
+ <div class="section" style="margin-bottom: 16px;">
2318
+ <h2 class="section-title">Available Spatial Area</h2>
2319
+ <div style="color: #31708f; margin-top: 8px;">
2320
+ ${boundingRects.map(
2321
+ (rect) => b`<div>
2322
+ <strong>Bounding Box:</strong>
2323
+ ${rect.WestBoundingCoordinate},
2324
+ ${rect.SouthBoundingCoordinate},
2325
+ ${rect.EastBoundingCoordinate},
2326
+ ${rect.NorthBoundingCoordinate}
2327
+ </div>`
2328
+ )}
2329
+ </div>
2330
+ <div style="font-size: 0.95em; color: #666;">
2331
+ This collection does not support spatial subsetting.
2332
+ </div>
2333
+ </div>
2334
+ `;
2335
+ };
2336
+ _renderDataAccessModeSelection = new WeakSet();
2337
+ renderDataAccessModeSelection_fn = function() {
2338
+ if (!__privateGet(this, _collectionController).hasGranules) {
2339
+ return A;
2340
+ }
2341
+ return b`
2342
+ <div class="mode-selection">
2343
+ <div class="mode-options">
2344
+ <label
2345
+ class="mode-option ${this.dataAccessMode === "original" ? "selected" : ""}"
2346
+ >
2347
+ <input
2348
+ type="radio"
2349
+ name="data-access-mode"
2350
+ value="original"
2351
+ .checked=${this.dataAccessMode === "original"}
2352
+ @change=${() => this.dataAccessMode = "original"}
2353
+ />
2354
+ <div class="mode-content">
2355
+ <div class="mode-title">Get Original Files</div>
2356
+ <div class="mode-description">
2357
+ Filter file links directly from the archive.
2358
+ </div>
2359
+ </div>
2360
+ </label>
2361
+
2362
+ <label
2363
+ class="mode-option ${this.dataAccessMode === "subset" ? "selected" : ""}"
2364
+ >
2365
+ <input
2366
+ type="radio"
2367
+ name="data-access-mode"
2368
+ value="subset"
2369
+ .checked=${this.dataAccessMode === "subset"}
2370
+ @change=${() => this.dataAccessMode = "subset"}
2371
+ />
2372
+ <div class="mode-content">
2373
+ <div class="mode-title">Transform Data</div>
2374
+ <div class="mode-description">
2375
+ Transform the data to your specific needs.
2376
+ </div>
2377
+ </div>
2378
+ </label>
2379
+ </div>
2380
+ </div>
2381
+ `;
2382
+ };
2383
+ _getGiovanniValidationError = new WeakSet();
2384
+ getGiovanniValidationError_fn = function() {
2385
+ if (!this.selectedFormat.isGiovanniFormat) {
2386
+ return null;
2387
+ }
2388
+ if (this.selectedVariables.length === 0) {
2389
+ return "Please select a variable to subset.";
2390
+ }
2391
+ if (this.selectedVariables.length > 1) {
2392
+ return "The selected format only supports subsetting one variable at a time.";
2393
+ }
2394
+ return null;
2395
+ };
2396
+ TerraDataSubsetter.styles = [component_styles_default, data_subsetter_styles_default];
2397
+ TerraDataSubsetter.dependencies = {
2398
+ "terra-accordion": TerraAccordion,
2399
+ "terra-date-picker": TerraDatePicker,
2400
+ "terra-icon": TerraIcon,
2401
+ "terra-input": TerraInput,
2402
+ "terra-spatial-picker": TerraSpatialPicker,
2403
+ "terra-login": TerraLogin,
2404
+ "terra-loader": TerraLoader,
2405
+ "terra-data-access": TerraDataAccess,
2406
+ "terra-dialog": TerraDialog,
2407
+ "terra-dropdown": TerraDropdown,
2408
+ "terra-menu": TerraMenu,
2409
+ "terra-menu-item": TerraMenuItem,
2410
+ "terra-button": TerraButton,
2411
+ "terra-alert": TerraAlert,
2412
+ "terra-slider": TerraSlider
2413
+ };
2414
+ __decorateClass([
2415
+ n({ reflect: true, attribute: "collection-entry-id" })
2416
+ ], TerraDataSubsetter.prototype, "collectionEntryId", 2);
2417
+ __decorateClass([
2418
+ n({ reflect: true, attribute: "short-name" })
2419
+ ], TerraDataSubsetter.prototype, "shortName", 2);
2420
+ __decorateClass([
2421
+ n({ reflect: true, attribute: "version" })
2422
+ ], TerraDataSubsetter.prototype, "version", 2);
2423
+ __decorateClass([
2424
+ n({
2425
+ reflect: true,
2426
+ type: Boolean,
2427
+ attribute: "show-collection-search"
2428
+ })
2429
+ ], TerraDataSubsetter.prototype, "showCollectionSearch", 2);
2430
+ __decorateClass([
2431
+ n({ reflect: true, type: Boolean, attribute: "show-history-panel" })
2432
+ ], TerraDataSubsetter.prototype, "showHistoryPanel", 2);
2433
+ __decorateClass([
2434
+ n({ reflect: true, attribute: "job-id" })
2435
+ ], TerraDataSubsetter.prototype, "jobId", 2);
2436
+ __decorateClass([
2437
+ n({ attribute: "bearer-token" })
2438
+ ], TerraDataSubsetter.prototype, "bearerToken", 2);
2439
+ __decorateClass([
2440
+ n()
2441
+ ], TerraDataSubsetter.prototype, "features", 2);
2442
+ __decorateClass([
2443
+ n({ reflect: true })
2444
+ ], TerraDataSubsetter.prototype, "dialog", 2);
2445
+ __decorateClass([
2446
+ n({ reflect: true, type: Boolean, attribute: "is-history-view" })
2447
+ ], TerraDataSubsetter.prototype, "isHistoryView", 2);
2448
+ __decorateClass([
2449
+ r()
2450
+ ], TerraDataSubsetter.prototype, "collectionWithServices", 2);
2451
+ __decorateClass([
2452
+ r()
2453
+ ], TerraDataSubsetter.prototype, "selectedVariables", 2);
2454
+ __decorateClass([
2455
+ r()
2456
+ ], TerraDataSubsetter.prototype, "selectedDimensionIndexes", 2);
2457
+ __decorateClass([
2458
+ r()
2459
+ ], TerraDataSubsetter.prototype, "expandedVariableGroups", 2);
2460
+ __decorateClass([
2461
+ r()
2462
+ ], TerraDataSubsetter.prototype, "variableFilterText", 2);
2463
+ __decorateClass([
2464
+ r()
2465
+ ], TerraDataSubsetter.prototype, "touchedFields", 2);
2466
+ __decorateClass([
2467
+ r()
2468
+ ], TerraDataSubsetter.prototype, "spatialSelection", 2);
2469
+ __decorateClass([
2470
+ r()
2471
+ ], TerraDataSubsetter.prototype, "selectedDateRange", 2);
2472
+ __decorateClass([
2473
+ r()
2474
+ ], TerraDataSubsetter.prototype, "selectedFormat", 2);
2475
+ __decorateClass([
2476
+ r()
2477
+ ], TerraDataSubsetter.prototype, "cancelingGetData", 2);
2478
+ __decorateClass([
2479
+ r()
2480
+ ], TerraDataSubsetter.prototype, "selectedTab", 2);
2481
+ __decorateClass([
2482
+ r()
2483
+ ], TerraDataSubsetter.prototype, "refineParameters", 2);
2484
+ __decorateClass([
2485
+ r()
2486
+ ], TerraDataSubsetter.prototype, "collectionSearchType", 2);
2487
+ __decorateClass([
2488
+ r()
2489
+ ], TerraDataSubsetter.prototype, "collectionSearchQuery", 2);
2490
+ __decorateClass([
2491
+ r()
2492
+ ], TerraDataSubsetter.prototype, "collectionSearchLoading", 2);
2493
+ __decorateClass([
2494
+ r()
2495
+ ], TerraDataSubsetter.prototype, "collectionSearchResults", 2);
2496
+ __decorateClass([
2497
+ r()
2498
+ ], TerraDataSubsetter.prototype, "collectionLoading", 2);
2499
+ __decorateClass([
2500
+ r()
2501
+ ], TerraDataSubsetter.prototype, "collectionAccordionOpen", 2);
2502
+ __decorateClass([
2503
+ r()
2504
+ ], TerraDataSubsetter.prototype, "dataAccessMode", 2);
2505
+ __decorateClass([
2506
+ r()
2507
+ ], TerraDataSubsetter.prototype, "validationError", 2);
2508
+ __decorateClass([
2509
+ r()
2510
+ ], TerraDataSubsetter.prototype, "granuleMinDate", 2);
2511
+ __decorateClass([
2512
+ r()
2513
+ ], TerraDataSubsetter.prototype, "granuleMaxDate", 2);
2514
+ __decorateClass([
2515
+ r()
2516
+ ], TerraDataSubsetter.prototype, "giovanniConfiguredVariables", 2);
2517
+ __decorateClass([
2518
+ e('[part~="spatial-picker"]')
2519
+ ], TerraDataSubsetter.prototype, "spatialPicker", 2);
2520
+ __decorateClass([
2521
+ e("terra-dialog")
2522
+ ], TerraDataSubsetter.prototype, "dialogElement", 2);
2523
+ __decorateClass([
2524
+ watch(["jobId"], { waitUntilFirstUpdate: true })
2525
+ ], TerraDataSubsetter.prototype, "jobIdChanged", 1);
2526
+ __decorateClass([
2527
+ watch(["shortName", "version"])
2528
+ ], TerraDataSubsetter.prototype, "shortNameAndVersionChanged", 1);
2529
+ __decorateClass([
2530
+ watch("collectionEntryId", { waitUntilFirstUpdate: true })
2531
+ ], TerraDataSubsetter.prototype, "collectionEntryIdChanged", 1);
2532
+ __decorateClass([
2533
+ watch(["collectionWithServices"])
2534
+ ], TerraDataSubsetter.prototype, "collectionChanged", 1);
2535
+ __decorateClass([
2536
+ watch(["granuleMinDate", "granuleMaxDate"])
2537
+ ], TerraDataSubsetter.prototype, "granuleDatesChanged", 1);
2538
+ __decorateClass([
2539
+ watch("selectedFormat")
2540
+ ], TerraDataSubsetter.prototype, "selectedFormatChanged", 1);
2541
+ __decorateClass([
2542
+ debounce(500)
2543
+ ], TerraDataSubsetter.prototype, "handleCollectionSearch", 1);
2544
+
2545
+ export {
2546
+ TerraDataSubsetter
2547
+ };