@nasa-terra/components 0.0.195 → 0.0.197

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 (1225) hide show
  1. package/cdn/chunks/chunk.2DTFNQFU.js +537 -0
  2. package/cdn/chunks/chunk.2GFNVSIG.js +134 -0
  3. package/cdn/chunks/chunk.2LBTME33.js +29 -0
  4. package/cdn/chunks/chunk.2QMJ6JFC.js +19 -0
  5. package/cdn/chunks/chunk.2WSLJMJH.js +19 -0
  6. package/cdn/chunks/chunk.2YVSNZK6.js +158 -0
  7. package/cdn/chunks/chunk.35V6PNLW.js +113 -0
  8. package/cdn/chunks/chunk.35W6TJ7F.js +266 -0
  9. package/cdn/chunks/chunk.3EDRI43W.js +19 -0
  10. package/cdn/chunks/chunk.3MSKTFUH.js +610 -0
  11. package/cdn/chunks/chunk.3MSMZU4H.js +33 -0
  12. package/cdn/chunks/chunk.3Q67HS22.js +19 -0
  13. package/cdn/chunks/chunk.43DUFN7D.js +37 -0
  14. package/cdn/chunks/chunk.463S4T2I.js +49 -0
  15. package/cdn/chunks/chunk.4AP7IUGS.js +19 -0
  16. package/cdn/chunks/chunk.4C66SG3L.js +47 -0
  17. package/cdn/chunks/chunk.4CMK7BSI.js +29 -0
  18. package/cdn/chunks/chunk.4GLQ2KWQ.js +631 -0
  19. package/cdn/chunks/chunk.4GNN2544.js +29 -0
  20. package/cdn/chunks/chunk.4U3PMGMD.js +36 -0
  21. package/cdn/chunks/chunk.4ZE6RMS6.js +132 -0
  22. package/cdn/chunks/chunk.5FAACRBU.js +594 -0
  23. package/cdn/chunks/chunk.5JFGJRLR.js +19 -0
  24. package/cdn/chunks/chunk.5S5IE4WQ.js +195 -0
  25. package/cdn/chunks/chunk.5U47W7ZI.js +32 -0
  26. package/cdn/chunks/chunk.5YAN7WHN.js +394 -0
  27. package/cdn/chunks/chunk.632TYPZK.js +19 -0
  28. package/cdn/chunks/chunk.6FJCGU4K.js +616 -0
  29. package/cdn/chunks/chunk.6INKGSON.js +19 -0
  30. package/cdn/chunks/chunk.6IRICZQU.js +36 -0
  31. package/cdn/chunks/chunk.6NKCYDS6.js +99 -0
  32. package/cdn/chunks/chunk.6OXV4DFR.js +29 -0
  33. package/cdn/chunks/chunk.6SJL6T2W.js +29 -0
  34. package/cdn/chunks/chunk.73PEBYZF.js +224 -0
  35. package/cdn/chunks/chunk.73QX76GR.js +19 -0
  36. package/cdn/chunks/chunk.7IYPYEBZ.js +278 -0
  37. package/cdn/chunks/chunk.7MG6BND4.js +359 -0
  38. package/cdn/chunks/chunk.7MOV32ZX.js +29 -0
  39. package/cdn/chunks/chunk.7OBDWUSU.js +293 -0
  40. package/cdn/chunks/chunk.A6A2KVBS.js +29 -0
  41. package/cdn/chunks/chunk.AATVQZ7X.js +277 -0
  42. package/cdn/chunks/chunk.AB5GSS2K.js +86 -0
  43. package/cdn/chunks/chunk.AP626FXT.js +35 -0
  44. package/cdn/chunks/chunk.ARMGN7PF.js +35 -0
  45. package/cdn/chunks/chunk.AUB3ZMUY.js +32 -0
  46. package/cdn/chunks/chunk.AUOREJVS.js +32 -0
  47. package/cdn/chunks/chunk.AVQ3IV27.js +29 -0
  48. package/cdn/chunks/chunk.B2JKFWS4.js +19 -0
  49. package/cdn/chunks/chunk.B3ZNCJ7K.js +32 -0
  50. package/cdn/chunks/chunk.B4EO7TSO.js +29 -0
  51. package/cdn/chunks/chunk.B4JUAUTG.js +29 -0
  52. package/cdn/chunks/chunk.B525B6TR.js +19 -0
  53. package/cdn/chunks/chunk.B6N22EGF.js +29 -0
  54. package/cdn/chunks/chunk.BEIYABPJ.js +155 -0
  55. package/cdn/chunks/chunk.BIFWEQ4T.js +68 -0
  56. package/cdn/chunks/chunk.BPM7DAZG.js +19 -0
  57. package/cdn/chunks/chunk.BSZO4VOU.js +29 -0
  58. package/cdn/chunks/chunk.BY4MQRHS.js +19 -0
  59. package/cdn/chunks/chunk.C5JHX2EK.js +19 -0
  60. package/cdn/chunks/chunk.CJZNLZ5M.js +190 -0
  61. package/cdn/chunks/chunk.CLL4XXBG.js +188 -0
  62. package/cdn/chunks/chunk.CLYZO6RS.js +19 -0
  63. package/cdn/chunks/chunk.COWPPOED.js +298 -0
  64. package/cdn/chunks/chunk.CROGJ6YF.js +128 -0
  65. package/cdn/chunks/chunk.D33JWLZ4.js +1197 -0
  66. package/cdn/chunks/chunk.D4EWCYPC.js +29 -0
  67. package/cdn/chunks/chunk.D7P7KTFB.js +60 -0
  68. package/cdn/chunks/chunk.DHO25PWY.js +29 -0
  69. package/cdn/chunks/chunk.DI7EKGFG.js +19 -0
  70. package/cdn/chunks/chunk.DL33ULT6.js +74 -0
  71. package/cdn/chunks/chunk.DS2UI56D.js +2546 -0
  72. package/cdn/chunks/chunk.E5DXZQD2.js +29 -0
  73. package/cdn/chunks/chunk.EGVLPWSM.js +19 -0
  74. package/cdn/chunks/chunk.EJ53LCTI.js +19 -0
  75. package/cdn/chunks/chunk.EJGXJRTJ.js +104 -0
  76. package/cdn/chunks/chunk.EM5ETPZC.js +538 -0
  77. package/cdn/chunks/chunk.ENHWIPZE.js +19 -0
  78. package/cdn/chunks/chunk.EOI3OPDR.js +19 -0
  79. package/cdn/chunks/chunk.EUOALKXD.js +443 -0
  80. package/cdn/chunks/chunk.EYGHFENC.js +29 -0
  81. package/cdn/chunks/chunk.FFXP3B4Q.js +357 -0
  82. package/cdn/chunks/chunk.FIBES3B2.js +657 -0
  83. package/cdn/chunks/chunk.G3RBNUL7.js +19 -0
  84. package/cdn/chunks/chunk.G6XFMNSN.js +39 -0
  85. package/cdn/chunks/chunk.GPKPQWJT.js +19 -0
  86. package/cdn/chunks/chunk.GSVBEUFJ.js +1264 -0
  87. package/cdn/chunks/chunk.GULH5ZQL.js +136 -0
  88. package/cdn/chunks/chunk.GZFLFIFJ.js +34 -0
  89. package/cdn/chunks/chunk.HDXVT23K.js +19 -0
  90. package/cdn/chunks/chunk.HOZW3NJM.js +29 -0
  91. package/cdn/chunks/chunk.HSJLPMW3.js +83 -0
  92. package/cdn/chunks/chunk.HYQMNFLO.js +19 -0
  93. package/cdn/chunks/chunk.I2ABYF5Q.js +29 -0
  94. package/cdn/chunks/chunk.IOF6AEVS.js +19 -0
  95. package/cdn/chunks/chunk.IYZN7M47.js +19 -0
  96. package/cdn/chunks/chunk.J5KHF56L.js +19 -0
  97. package/cdn/chunks/chunk.J7MBJE4R.js +19 -0
  98. package/cdn/chunks/chunk.JTS4WCJO.js +92 -0
  99. package/cdn/chunks/chunk.JU6WFHNW.js +36 -0
  100. package/cdn/chunks/chunk.JUSWD466.js +29 -0
  101. package/cdn/chunks/chunk.KT3QCKKA.js +19 -0
  102. package/cdn/chunks/chunk.L5CO7SOT.js +925 -0
  103. package/cdn/chunks/chunk.LAY23KKI.js +78 -0
  104. package/cdn/chunks/chunk.LBQ4PSBA.js +19 -0
  105. package/cdn/chunks/chunk.LH5PCM5Y.js +29 -0
  106. package/cdn/chunks/chunk.LK72N66W.js +19 -0
  107. package/cdn/chunks/chunk.LXN7MR5D.js +33 -0
  108. package/cdn/chunks/chunk.M2W34SRN.js +19 -0
  109. package/cdn/chunks/chunk.M3DISCOU.js +138 -0
  110. package/cdn/chunks/chunk.M6UIVWVO.js +478 -0
  111. package/cdn/chunks/chunk.MJWLUGWW.js +377 -0
  112. package/cdn/chunks/chunk.MLSETH2M.js +19 -0
  113. package/cdn/chunks/chunk.MYRHUQRX.js +71 -0
  114. package/cdn/chunks/chunk.N33IYXN4.js +19 -0
  115. package/cdn/chunks/chunk.N6LXBZMX.js +29 -0
  116. package/cdn/chunks/chunk.NG4ZI7ET.js +19 -0
  117. package/cdn/chunks/chunk.NGS4A7JM.js +960 -0
  118. package/cdn/chunks/chunk.NH3ZLAPS.js +231 -0
  119. package/cdn/chunks/chunk.NUC5GXPS.js +19 -0
  120. package/cdn/chunks/chunk.OG6IYX2E.js +19 -0
  121. package/cdn/chunks/chunk.OIV26ZOU.js +29 -0
  122. package/cdn/chunks/chunk.OPSENKP7.js +19 -0
  123. package/cdn/chunks/chunk.PEKPD5D3.js +32 -0
  124. package/cdn/chunks/chunk.PWQDSQNT.js +19 -0
  125. package/cdn/chunks/chunk.PY5A6OKW.js +19 -0
  126. package/cdn/chunks/chunk.Q4G4DZR4.js +19 -0
  127. package/cdn/chunks/chunk.QFAAK4H5.js +99 -0
  128. package/cdn/chunks/chunk.QFSWSE4T.js +19 -0
  129. package/cdn/chunks/chunk.QJWILSBB.js +151 -0
  130. package/cdn/chunks/chunk.QK2OQSMV.js +19 -0
  131. package/cdn/chunks/chunk.QKGQHWKR.js +19 -0
  132. package/cdn/chunks/chunk.QRED6RVA.js +36 -0
  133. package/cdn/chunks/chunk.R3WIGF3Z.js +19 -0
  134. package/cdn/chunks/chunk.REHR3VNE.js +294 -0
  135. package/cdn/chunks/chunk.RFGMNAAI.js +162 -0
  136. package/cdn/chunks/chunk.RIJPJNZ6.js +56075 -0
  137. package/cdn/chunks/chunk.RK6XTGKB.js +19 -0
  138. package/cdn/chunks/chunk.RKS4PEGG.js +330 -0
  139. package/cdn/chunks/chunk.S2TTSFDO.js +37 -0
  140. package/cdn/chunks/chunk.S5TMENAM.js +35 -0
  141. package/cdn/chunks/chunk.S7OZNH7N.js +32 -0
  142. package/cdn/chunks/chunk.SAIKW6IW.js +19 -0
  143. package/cdn/chunks/chunk.SBNF6Y4Z.js +29 -0
  144. package/cdn/chunks/chunk.SDT6TA7E.js +34 -0
  145. package/cdn/chunks/chunk.SHOBERVA.js +32 -0
  146. package/cdn/chunks/chunk.SIRMVNCG.js +19 -0
  147. package/cdn/chunks/chunk.SK73V355.js +19 -0
  148. package/cdn/chunks/chunk.SMALOHVS.js +62 -0
  149. package/cdn/chunks/chunk.SNTBUIUJ.js +123 -0
  150. package/cdn/chunks/chunk.SRYFSYXO.js +904 -0
  151. package/cdn/chunks/chunk.T2KZVS3W.js +30 -0
  152. package/cdn/chunks/chunk.T5RIWEQN.js +32 -0
  153. package/cdn/chunks/chunk.T62K7VOF.js +1975 -0
  154. package/cdn/chunks/chunk.TKRK5GQM.js +29 -0
  155. package/cdn/chunks/chunk.UD7NUYVG.js +230 -0
  156. package/cdn/chunks/chunk.UHPZT3U2.js +29 -0
  157. package/cdn/chunks/chunk.UYMPHDCE.js +19 -0
  158. package/cdn/chunks/chunk.V4YWPWXP.js +36 -0
  159. package/cdn/chunks/chunk.VBV3P6FL.js +32 -0
  160. package/cdn/chunks/chunk.VCPSDOI3.js +19 -0
  161. package/cdn/chunks/chunk.VGER7XWX.js +19 -0
  162. package/cdn/chunks/chunk.VLGM5YMT.js +19 -0
  163. package/cdn/chunks/chunk.VOW3VHP6.js +110 -0
  164. package/cdn/chunks/chunk.VYG3TDBE.js +19 -0
  165. package/cdn/chunks/chunk.W56KFXW3.js +672 -0
  166. package/cdn/chunks/chunk.WA4IWAQ5.js +33 -0
  167. package/cdn/chunks/chunk.WB4JIUNC.js +29 -0
  168. package/cdn/chunks/chunk.WBHKNBF4.js +32 -0
  169. package/cdn/chunks/chunk.WCJK4L7Z.js +32 -0
  170. package/cdn/chunks/chunk.WD7YIW7Q.js +2710 -0
  171. package/cdn/chunks/chunk.WLRHKMUU.js +60 -0
  172. package/cdn/chunks/chunk.WUXBI4OZ.js +599 -0
  173. package/cdn/chunks/chunk.WX3SD6KP.js +543 -0
  174. package/cdn/chunks/chunk.XF2FF246.js +32 -0
  175. package/cdn/chunks/chunk.XFQU5XOV.js +29 -0
  176. package/cdn/chunks/chunk.XGA76C4I.js +310 -0
  177. package/cdn/chunks/chunk.XKAWY3BU.js +234 -0
  178. package/cdn/chunks/chunk.XKYERLQI.js +33 -0
  179. package/cdn/chunks/chunk.XL2T3IOP.js +19 -0
  180. package/cdn/chunks/chunk.XNNFL6PT.js +19 -0
  181. package/cdn/chunks/chunk.XTIYI334.js +524 -0
  182. package/cdn/chunks/chunk.XXTI4EE7.js +33 -0
  183. package/cdn/chunks/chunk.Y6MVRFP6.js +32 -0
  184. package/cdn/chunks/chunk.YAQ7GYGE.js +93 -0
  185. package/cdn/chunks/chunk.YBMVWJN7.js +35 -0
  186. package/cdn/chunks/chunk.YIIC2VXV.js +41 -0
  187. package/cdn/chunks/chunk.YNW5MF6A.js +32 -0
  188. package/cdn/chunks/chunk.YR5IOGLT.js +29 -0
  189. package/cdn/chunks/chunk.YRXLTYVI.js +82 -0
  190. package/cdn/chunks/chunk.YT7YOMZX.js +19 -0
  191. package/cdn/chunks/chunk.YTS7DDAE.js +19 -0
  192. package/cdn/chunks/chunk.YYWIHJ7W.js +35 -0
  193. package/cdn/chunks/chunk.Z2RL47XD.js +259 -0
  194. package/cdn/chunks/chunk.ZFXH3XDM.js +19 -0
  195. package/cdn/chunks/chunk.ZHGWWFQE.js +29 -0
  196. package/cdn/chunks/chunk.ZM7I2NKC.js +19 -0
  197. package/cdn/chunks/chunk.ZMLAZTTI.js +29 -0
  198. package/cdn/chunks/chunk.ZRDBS5F2.js +19 -0
  199. package/cdn/chunks/chunk.ZRNQPABU.js +276 -0
  200. package/cdn/chunks/chunk.ZSRLKX2N.js +19 -0
  201. package/cdn/chunks/chunk.ZWCPWVFO.js +19 -0
  202. package/cdn/components/accordion/accordion.component.js +3 -3
  203. package/cdn/components/accordion/accordion.js +4 -4
  204. package/cdn/components/alert/alert.component.js +3 -3
  205. package/cdn/components/alert/alert.js +4 -4
  206. package/cdn/components/avatar/avatar.component.js +3 -3
  207. package/cdn/components/avatar/avatar.js +4 -4
  208. package/cdn/components/badge/badge.component.js +2 -2
  209. package/cdn/components/badge/badge.js +3 -3
  210. package/cdn/components/banner/banner.component.js +3 -3
  211. package/cdn/components/banner/banner.js +4 -4
  212. package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
  213. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  214. package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
  215. package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
  216. package/cdn/components/browse-variables/browse-variables.component.js +14 -14
  217. package/cdn/components/browse-variables/browse-variables.js +15 -15
  218. package/cdn/components/button/button.component.js +3 -3
  219. package/cdn/components/button/button.js +4 -4
  220. package/cdn/components/button-group/button-group.component.js +2 -2
  221. package/cdn/components/button-group/button-group.js +3 -3
  222. package/cdn/components/caption/caption.component.js +2 -2
  223. package/cdn/components/caption/caption.js +3 -3
  224. package/cdn/components/card/card.component.js +2 -2
  225. package/cdn/components/card/card.js +3 -3
  226. package/cdn/components/checkbox/checkbox.component.js +4 -4
  227. package/cdn/components/checkbox/checkbox.js +5 -5
  228. package/cdn/components/chip/chip.component.js +2 -2
  229. package/cdn/components/chip/chip.js +3 -3
  230. package/cdn/components/combobox/combobox.component.js +2 -2
  231. package/cdn/components/combobox/combobox.js +3 -3
  232. package/cdn/components/data-access/data-access.component.js +29 -29
  233. package/cdn/components/data-access/data-access.js +30 -30
  234. package/cdn/components/data-grid/data-grid.component.js +3 -3
  235. package/cdn/components/data-grid/data-grid.js +4 -4
  236. package/cdn/components/data-rods/data-rods.component.js +39 -39
  237. package/cdn/components/data-rods/data-rods.js +40 -40
  238. package/cdn/components/data-subsetter/data-subsetter.component.js +39 -39
  239. package/cdn/components/data-subsetter/data-subsetter.js +40 -40
  240. package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  241. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +41 -41
  242. package/cdn/components/data-subsetter-history/data-subsetter-history.js +42 -42
  243. package/cdn/components/date-picker/date-picker.component.js +11 -11
  244. package/cdn/components/date-picker/date-picker.js +12 -12
  245. package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
  246. package/cdn/components/date-range-slider/date-range-slider.js +3 -3
  247. package/cdn/components/dialog/dialog.component.js +4 -4
  248. package/cdn/components/dialog/dialog.js +5 -5
  249. package/cdn/components/divider/divider.component.js +2 -2
  250. package/cdn/components/divider/divider.js +3 -3
  251. package/cdn/components/dropdown/dropdown.component.js +4 -4
  252. package/cdn/components/dropdown/dropdown.js +5 -5
  253. package/cdn/components/earthdata-login/earthdata-login.component.js +11 -11
  254. package/cdn/components/earthdata-login/earthdata-login.js +12 -12
  255. package/cdn/components/file-upload/file-upload.component.js +2 -2
  256. package/cdn/components/file-upload/file-upload.js +3 -3
  257. package/cdn/components/harmony-history/harmony-history.component.js +7 -7
  258. package/cdn/components/harmony-history/harmony-history.js +8 -8
  259. package/cdn/components/icon/icon.component.js +2 -2
  260. package/cdn/components/icon/icon.js +3 -3
  261. package/cdn/components/input/input.component.js +3 -3
  262. package/cdn/components/input/input.js +4 -4
  263. package/cdn/components/loader/loader.component.js +2 -2
  264. package/cdn/components/loader/loader.js +3 -3
  265. package/cdn/components/login/login.component.js +9 -9
  266. package/cdn/components/login/login.js +10 -10
  267. package/cdn/components/map/map.component.js +2 -2
  268. package/cdn/components/map/map.js +3 -3
  269. package/cdn/components/menu/menu.component.js +2 -2
  270. package/cdn/components/menu/menu.js +3 -3
  271. package/cdn/components/menu-item/menu-item.component.js +5 -5
  272. package/cdn/components/menu-item/menu-item.js +6 -6
  273. package/cdn/components/option/option.component.js +3 -3
  274. package/cdn/components/option/option.js +4 -4
  275. package/cdn/components/pagination/pagination.component.js +3 -3
  276. package/cdn/components/pagination/pagination.js +4 -4
  277. package/cdn/components/plot/plot.component.js +2 -2
  278. package/cdn/components/plot/plot.js +3 -3
  279. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  280. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  281. package/cdn/components/plot-toolbar/plot-toolbar.component.js +14 -14
  282. package/cdn/components/plot-toolbar/plot-toolbar.js +15 -15
  283. package/cdn/components/popup/popup.component.js +2 -2
  284. package/cdn/components/popup/popup.js +3 -3
  285. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  286. package/cdn/components/progress-bar/progress-bar.js +3 -3
  287. package/cdn/components/radio/radio.component.js +2 -2
  288. package/cdn/components/radio/radio.js +3 -3
  289. package/cdn/components/radio-group/radio-group.component.js +2 -2
  290. package/cdn/components/radio-group/radio-group.js +3 -3
  291. package/cdn/components/scroll-hint/scroll-hint.component.js +3 -3
  292. package/cdn/components/scroll-hint/scroll-hint.js +4 -4
  293. package/cdn/components/select/select.component.js +5 -5
  294. package/cdn/components/select/select.js +6 -6
  295. package/cdn/components/site-header/site-header.component.js +3 -3
  296. package/cdn/components/site-header/site-header.js +3 -3
  297. package/cdn/components/site-navigation/site-navigation.component.js +2 -2
  298. package/cdn/components/site-navigation/site-navigation.js +2 -2
  299. package/cdn/components/skeleton/skeleton.component.js +2 -2
  300. package/cdn/components/skeleton/skeleton.js +3 -3
  301. package/cdn/components/slider/slider.component.js +2 -2
  302. package/cdn/components/slider/slider.js +3 -3
  303. package/cdn/components/spatial-picker/spatial-picker.component.js +13 -13
  304. package/cdn/components/spatial-picker/spatial-picker.js +14 -14
  305. package/cdn/components/status-indicator/status-indicator.component.js +2 -2
  306. package/cdn/components/status-indicator/status-indicator.js +3 -3
  307. package/cdn/components/stepper/stepper.component.js +2 -2
  308. package/cdn/components/stepper/stepper.js +3 -3
  309. package/cdn/components/stepper-step/stepper-step.component.js +3 -3
  310. package/cdn/components/stepper-step/stepper-step.js +4 -4
  311. package/cdn/components/tab/tab.component.js +3 -3
  312. package/cdn/components/tab/tab.js +4 -4
  313. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  314. package/cdn/components/tab-panel/tab-panel.js +3 -3
  315. package/cdn/components/tabs/tabs.component.js +3 -3
  316. package/cdn/components/tabs/tabs.js +4 -4
  317. package/cdn/components/tag/tag.component.js +3 -3
  318. package/cdn/components/tag/tag.js +4 -4
  319. package/cdn/components/textarea/textarea.component.js +2 -2
  320. package/cdn/components/textarea/textarea.js +3 -3
  321. package/cdn/components/time-average-map/time-average-map.component.js +22 -22
  322. package/cdn/components/time-average-map/time-average-map.controller.js +3 -3
  323. package/cdn/components/time-average-map/time-average-map.js +23 -23
  324. package/cdn/components/time-series/time-series.component.js +23 -23
  325. package/cdn/components/time-series/time-series.controller.js +3 -3
  326. package/cdn/components/time-series/time-series.js +24 -24
  327. package/cdn/components/toast/toast.component.js +4 -4
  328. package/cdn/components/toast/toast.js +5 -5
  329. package/cdn/components/toggle/toggle.component.js +2 -2
  330. package/cdn/components/toggle/toggle.js +3 -3
  331. package/cdn/components/tooltip/tooltip.component.js +3 -3
  332. package/cdn/components/tooltip/tooltip.js +4 -4
  333. package/cdn/components/variable-combobox/variable-combobox.component.js +8 -8
  334. package/cdn/components/variable-combobox/variable-combobox.js +9 -9
  335. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +9 -9
  336. package/cdn/components/variable-keyword-search/variable-keyword-search.js +10 -10
  337. package/cdn/custom-elements.json +9739 -9739
  338. package/cdn/internal/terra-element.d.ts +2 -1
  339. package/cdn/react/accordion/index.js +4 -4
  340. package/cdn/react/alert/index.js +4 -4
  341. package/cdn/react/avatar/index.js +4 -4
  342. package/cdn/react/badge/index.js +3 -3
  343. package/cdn/react/banner/index.js +4 -4
  344. package/cdn/react/breadcrumb/index.js +3 -3
  345. package/cdn/react/breadcrumbs/index.js +3 -3
  346. package/cdn/react/browse-variables/index.js +15 -15
  347. package/cdn/react/button/index.js +4 -4
  348. package/cdn/react/button-group/index.js +3 -3
  349. package/cdn/react/caption/index.js +3 -3
  350. package/cdn/react/card/index.js +3 -3
  351. package/cdn/react/checkbox/index.js +5 -5
  352. package/cdn/react/chip/index.js +3 -3
  353. package/cdn/react/combobox/index.js +3 -3
  354. package/cdn/react/data-access/index.js +30 -30
  355. package/cdn/react/data-grid/index.js +4 -4
  356. package/cdn/react/data-rods/index.js +40 -40
  357. package/cdn/react/data-subsetter/index.js +40 -40
  358. package/cdn/react/data-subsetter-history/index.js +42 -42
  359. package/cdn/react/date-picker/index.js +12 -12
  360. package/cdn/react/date-range-slider/index.js +3 -3
  361. package/cdn/react/dialog/index.js +5 -5
  362. package/cdn/react/divider/index.js +3 -3
  363. package/cdn/react/dropdown/index.js +5 -5
  364. package/cdn/react/earthdata-login/index.js +12 -12
  365. package/cdn/react/file-upload/index.js +3 -3
  366. package/cdn/react/harmony-history/index.js +8 -8
  367. package/cdn/react/icon/index.js +3 -3
  368. package/cdn/react/index.d.ts +28 -28
  369. package/cdn/react/index.js +224 -224
  370. package/cdn/react/input/index.js +4 -4
  371. package/cdn/react/loader/index.js +3 -3
  372. package/cdn/react/login/index.js +10 -10
  373. package/cdn/react/map/index.js +3 -3
  374. package/cdn/react/menu/index.js +3 -3
  375. package/cdn/react/menu-item/index.js +6 -6
  376. package/cdn/react/option/index.js +4 -4
  377. package/cdn/react/pagination/index.js +4 -4
  378. package/cdn/react/plot/index.js +3 -3
  379. package/cdn/react/plot-toolbar/index.js +15 -15
  380. package/cdn/react/popup/index.js +3 -3
  381. package/cdn/react/progress-bar/index.js +3 -3
  382. package/cdn/react/radio/index.js +3 -3
  383. package/cdn/react/radio-group/index.js +3 -3
  384. package/cdn/react/scroll-hint/index.js +4 -4
  385. package/cdn/react/select/index.js +6 -6
  386. package/cdn/react/site-header/index.js +4 -4
  387. package/cdn/react/site-navigation/index.js +3 -3
  388. package/cdn/react/skeleton/index.js +3 -3
  389. package/cdn/react/slider/index.js +3 -3
  390. package/cdn/react/spatial-picker/index.js +14 -14
  391. package/cdn/react/status-indicator/index.js +3 -3
  392. package/cdn/react/stepper/index.js +3 -3
  393. package/cdn/react/stepper-step/index.js +4 -4
  394. package/cdn/react/tab/index.js +4 -4
  395. package/cdn/react/tab-panel/index.js +3 -3
  396. package/cdn/react/tabs/index.js +4 -4
  397. package/cdn/react/tag/index.js +4 -4
  398. package/cdn/react/textarea/index.js +3 -3
  399. package/cdn/react/time-average-map/index.js +23 -23
  400. package/cdn/react/time-series/index.js +24 -24
  401. package/cdn/react/toast/index.js +5 -5
  402. package/cdn/react/toggle/index.js +3 -3
  403. package/cdn/react/tooltip/index.js +4 -4
  404. package/cdn/react/variable-combobox/index.js +9 -9
  405. package/cdn/react/variable-keyword-search/index.js +10 -10
  406. package/cdn/terra-ui-components.js +221 -221
  407. package/cdn/types/vue/index.d.ts +1157 -1157
  408. package/cdn/vscode.html-custom-data.json +704 -704
  409. package/cdn/web-types.json +1988 -1988
  410. package/dist/chunks/chunk.2BE47NJG.js +1 -0
  411. package/dist/chunks/chunk.2BVYE6EK.js +65 -0
  412. package/dist/chunks/chunk.2MOIXIOP.js +1 -0
  413. package/dist/chunks/chunk.2WPBJQIO.js +1 -0
  414. package/dist/chunks/chunk.2ZTMYRXN.js +148 -0
  415. package/dist/chunks/chunk.32OPJVEF.js +176 -0
  416. package/dist/chunks/chunk.34X7FELX.js +1 -0
  417. package/dist/chunks/chunk.3F22UDEH.js +1 -0
  418. package/dist/chunks/chunk.3IQUPDW3.js +11 -0
  419. package/dist/chunks/chunk.3KSPRQMI.js +121 -0
  420. package/dist/chunks/chunk.3V3CFSEN.js +113 -0
  421. package/dist/chunks/chunk.4333NETV.js +1 -0
  422. package/dist/chunks/chunk.4OH3XCDR.js +1190 -0
  423. package/dist/chunks/chunk.4XE7LAQK.js +1 -0
  424. package/dist/chunks/chunk.56XPDUQ4.js +1 -0
  425. package/dist/chunks/chunk.5HHCBSFB.js +1 -0
  426. package/dist/chunks/chunk.5HHGFBX2.js +1 -0
  427. package/dist/chunks/chunk.5IVGPQIR.js +1 -0
  428. package/dist/chunks/chunk.5MTTMHHO.js +39 -0
  429. package/dist/chunks/chunk.5RHVUOFK.js +41 -0
  430. package/dist/chunks/chunk.5UEDTOD2.js +1 -0
  431. package/dist/chunks/chunk.6CQWKIOY.js +1 -0
  432. package/dist/chunks/chunk.6JDRZLOM.js +17 -0
  433. package/dist/chunks/chunk.6LI23A6A.js +1 -0
  434. package/dist/chunks/chunk.6LKD4GN7.js +1 -0
  435. package/dist/chunks/chunk.6QRXPELF.js +30 -0
  436. package/dist/chunks/chunk.77Q72G7O.js +1 -0
  437. package/dist/chunks/chunk.7BF3EHDA.js +1 -0
  438. package/dist/chunks/chunk.7DNAQWHB.js +1 -0
  439. package/dist/chunks/chunk.7FXJ5AVW.js +1 -0
  440. package/dist/chunks/chunk.7PMPECD5.js +9 -0
  441. package/dist/chunks/chunk.7U7KBTDG.js +1 -0
  442. package/dist/chunks/chunk.7Z7Z3PL3.js +1 -0
  443. package/dist/chunks/chunk.A2OV7HOM.js +33 -0
  444. package/dist/chunks/chunk.A3JRF4BH.js +55 -0
  445. package/dist/chunks/chunk.A5TQR6LX.js +1 -0
  446. package/dist/chunks/chunk.AEDP2SPE.js +1 -0
  447. package/dist/chunks/chunk.AGJGHA2P.js +1 -0
  448. package/dist/chunks/chunk.B2XZLBDQ.js +1 -0
  449. package/dist/chunks/chunk.B6BNGOZB.js +1 -0
  450. package/dist/chunks/chunk.BGKV5FYM.js +55 -0
  451. package/dist/chunks/chunk.BM75XYNW.js +25 -0
  452. package/dist/chunks/chunk.BMO4MMSG.js +1 -0
  453. package/dist/chunks/chunk.BRJCUVRW.js +1 -0
  454. package/dist/chunks/chunk.BRS3VXJA.js +157 -0
  455. package/dist/chunks/chunk.BSTHMPZU.js +55 -0
  456. package/dist/chunks/chunk.C5WYVFSA.js +1 -0
  457. package/dist/chunks/chunk.CADMINOX.js +1 -0
  458. package/dist/chunks/chunk.CGWQDVJN.js +100 -0
  459. package/dist/chunks/chunk.CUOWQB5V.js +1 -0
  460. package/dist/chunks/chunk.D3OS6IHO.js +1 -0
  461. package/dist/chunks/chunk.D7YD545N.js +1 -0
  462. package/dist/chunks/chunk.DBLQWRGX.js +1 -0
  463. package/dist/chunks/chunk.DJC4XPKT.js +1 -0
  464. package/dist/chunks/chunk.DLSNNLZT.js +1 -0
  465. package/dist/chunks/chunk.DRZXFC52.js +1 -0
  466. package/dist/chunks/chunk.DTNZUN66.js +75 -0
  467. package/dist/chunks/chunk.DV3HUYSH.js +780 -0
  468. package/dist/chunks/chunk.E5WOJ3PK.js +2 -0
  469. package/dist/chunks/chunk.EAQPP2XQ.js +1 -0
  470. package/dist/chunks/chunk.EC43AUTZ.js +1 -0
  471. package/dist/chunks/chunk.EDSHE3IR.js +43 -0
  472. package/dist/chunks/chunk.EFJYUIN7.js +9 -0
  473. package/dist/chunks/chunk.ELAAFINX.js +1 -0
  474. package/dist/chunks/chunk.ELWTTGZP.js +1 -0
  475. package/dist/chunks/chunk.EOD4B3IX.js +11 -0
  476. package/dist/chunks/chunk.EVSHCE6H.js +1 -0
  477. package/dist/chunks/chunk.F2BK7U4N.js +1 -0
  478. package/dist/chunks/chunk.F4YPYLUT.js +1 -0
  479. package/dist/chunks/chunk.F56RXY3E.js +24 -0
  480. package/dist/chunks/chunk.FI3GSDLD.js +1 -0
  481. package/dist/chunks/chunk.FIRCFHOE.js +1 -0
  482. package/dist/chunks/chunk.FOFC6VTJ.js +1 -0
  483. package/dist/chunks/chunk.FR7BDEKN.js +1 -0
  484. package/dist/chunks/chunk.G35JQ2ZG.js +35 -0
  485. package/dist/chunks/chunk.G3TJUALR.js +1 -0
  486. package/dist/chunks/chunk.GNZLJUDW.js +1 -0
  487. package/dist/chunks/chunk.GQPIZDWW.js +1 -0
  488. package/dist/chunks/chunk.GTGYWE5F.js +1 -0
  489. package/dist/chunks/chunk.GXMHPA2J.js +572 -0
  490. package/dist/chunks/chunk.H3MW6SIJ.js +1 -0
  491. package/dist/chunks/chunk.H4ERXNRV.js +1 -0
  492. package/dist/chunks/chunk.H7VRVKXW.js +145 -0
  493. package/dist/chunks/chunk.HL5XIPFI.js +1 -0
  494. package/dist/chunks/chunk.HU7RII6Z.js +1 -0
  495. package/dist/chunks/chunk.I7EQNJXM.js +14 -0
  496. package/dist/chunks/chunk.IADRENNE.js +1 -0
  497. package/dist/chunks/chunk.IEJAC4O6.js +300 -0
  498. package/dist/chunks/chunk.IHS6LJWC.js +1 -0
  499. package/dist/chunks/chunk.IM2SCKZT.js +1 -0
  500. package/dist/chunks/chunk.ISCZLMLV.js +1 -0
  501. package/dist/chunks/chunk.J2SVUWUB.js +1 -0
  502. package/dist/chunks/chunk.J7U7DEKR.js +38 -0
  503. package/dist/chunks/chunk.JLDZFVA7.js +1 -0
  504. package/dist/chunks/chunk.JTPCGE2I.js +1 -0
  505. package/dist/chunks/chunk.JXY5E3AD.js +1 -0
  506. package/dist/chunks/chunk.JZ2UTIMK.js +1 -0
  507. package/dist/chunks/chunk.K44QIVOS.js +1 -0
  508. package/dist/chunks/chunk.K7SV4V3V.js +1 -0
  509. package/dist/chunks/chunk.KARB77CR.js +1 -0
  510. package/dist/chunks/chunk.KIXX2VNW.js +1 -0
  511. package/dist/chunks/chunk.KTGFGJ6W.js +127 -0
  512. package/dist/chunks/chunk.KVQQYHK5.js +20 -0
  513. package/dist/chunks/chunk.KVUEPY2V.js +1 -0
  514. package/dist/chunks/chunk.KW3AJIGO.js +1 -0
  515. package/dist/chunks/chunk.LYVAQ5X2.js +16 -0
  516. package/dist/chunks/chunk.MAPRGE2B.js +1 -0
  517. package/dist/chunks/chunk.MEIAXAOT.js +99 -0
  518. package/dist/chunks/chunk.MEYXYGYW.js +1 -0
  519. package/dist/chunks/chunk.MJFLOS25.js +1 -0
  520. package/dist/chunks/chunk.MSAGS4ZW.js +1 -0
  521. package/dist/chunks/chunk.MT7KXK33.js +8 -0
  522. package/dist/chunks/chunk.MWZZDUQK.js +1 -0
  523. package/dist/chunks/chunk.NAPQRTMB.js +1 -0
  524. package/dist/chunks/chunk.NDF272DG.js +64 -0
  525. package/dist/chunks/chunk.NFPZBWVO.js +1 -0
  526. package/dist/chunks/chunk.NLMFSOK6.js +37 -0
  527. package/dist/chunks/chunk.NX3H7USL.js +61 -0
  528. package/dist/chunks/chunk.NYXYKBL4.js +1 -0
  529. package/dist/chunks/chunk.OA6TRXCL.js +1 -0
  530. package/dist/chunks/chunk.OAGDC5NY.js +1 -0
  531. package/dist/chunks/chunk.OB3I6CC2.js +12 -0
  532. package/dist/chunks/chunk.OGD4IZSR.js +1 -0
  533. package/dist/chunks/chunk.ON4XJHQC.js +1 -0
  534. package/dist/chunks/chunk.P2RISYZB.js +1 -0
  535. package/dist/chunks/chunk.P3BESYTX.js +1 -0
  536. package/dist/chunks/chunk.P5LLMXGD.js +20 -0
  537. package/dist/chunks/chunk.PA2K76YR.js +1 -0
  538. package/dist/chunks/chunk.PM3TNHYU.js +74 -0
  539. package/dist/chunks/chunk.PO4J6EYL.js +26 -0
  540. package/dist/chunks/chunk.Q26WIGAX.js +280 -0
  541. package/dist/chunks/chunk.Q2MCOBRZ.js +154 -0
  542. package/dist/chunks/chunk.Q74JYYTU.js +1 -0
  543. package/dist/chunks/chunk.QBCCNPMY.js +1 -0
  544. package/dist/chunks/chunk.QBZRFS4J.js +1 -0
  545. package/dist/chunks/chunk.QOAJB4YT.js +1 -0
  546. package/dist/chunks/chunk.QSBUN22W.js +1 -0
  547. package/dist/chunks/chunk.QZ6YSHJK.js +1 -0
  548. package/dist/chunks/chunk.QZYXWLHN.js +1 -0
  549. package/dist/chunks/chunk.R5XG4VQB.js +1 -0
  550. package/dist/chunks/chunk.RAUAQANS.js +43 -0
  551. package/dist/chunks/chunk.REZJHB4P.js +35 -0
  552. package/dist/chunks/chunk.RITL4YAW.js +1 -0
  553. package/dist/chunks/chunk.RKMQB6WR.js +1 -0
  554. package/dist/chunks/chunk.RLEYBODQ.js +1 -0
  555. package/dist/chunks/chunk.RN2ARMZ5.js +1 -0
  556. package/dist/chunks/chunk.RQF6T73H.js +1 -0
  557. package/dist/chunks/chunk.RT7UII6X.js +4 -0
  558. package/dist/chunks/chunk.RU6XCWFZ.js +1 -0
  559. package/dist/chunks/chunk.SD6CXJRC.js +2 -0
  560. package/dist/chunks/chunk.SGZCX3AX.js +30 -0
  561. package/dist/chunks/chunk.SQ4F44ZY.js +1 -0
  562. package/dist/chunks/chunk.TR3HYY66.js +1 -0
  563. package/dist/chunks/chunk.U33TD5TB.js +6 -0
  564. package/dist/chunks/chunk.U37CFR4C.js +1 -0
  565. package/dist/chunks/chunk.U3N7OSDS.js +1 -0
  566. package/dist/chunks/chunk.U4HA7KFD.js +5 -0
  567. package/dist/chunks/chunk.U6JO5USY.js +1 -0
  568. package/dist/chunks/chunk.UDJWUU6K.js +19 -0
  569. package/dist/chunks/chunk.UECG6VCN.js +1 -0
  570. package/dist/chunks/chunk.UGBCGXEC.js +22 -0
  571. package/dist/chunks/chunk.UGPAZZ76.js +1 -0
  572. package/dist/chunks/chunk.UHZBOAYJ.js +1 -0
  573. package/dist/chunks/chunk.USGULNOF.js +1 -0
  574. package/dist/chunks/chunk.USKDRLRA.js +1 -0
  575. package/dist/chunks/chunk.VGKJBILS.js +23 -0
  576. package/dist/chunks/chunk.VIZRNKN5.js +8 -0
  577. package/dist/chunks/chunk.VTXWVS5C.js +1 -0
  578. package/dist/chunks/chunk.VWHPRXTT.js +1 -0
  579. package/dist/chunks/chunk.VZJ3CHHD.js +1 -0
  580. package/dist/chunks/chunk.W54WCDFS.js +1 -0
  581. package/dist/chunks/chunk.W6SAQQLD.js +1 -0
  582. package/dist/chunks/chunk.W7DE3ZXX.js +1 -0
  583. package/dist/chunks/chunk.W7L7HUEJ.js +122 -0
  584. package/dist/chunks/chunk.WCISQBWK.js +1 -0
  585. package/dist/chunks/chunk.WDAW64SW.js +27 -0
  586. package/dist/chunks/chunk.WDSYLS6Y.js +1 -0
  587. package/dist/chunks/chunk.WJM2AWLV.js +67 -0
  588. package/dist/chunks/chunk.XLXVZWI2.js +26 -0
  589. package/dist/chunks/chunk.XMNTSLBZ.js +1 -0
  590. package/dist/chunks/chunk.XOFUYZ46.js +1 -0
  591. package/dist/chunks/chunk.XPMJPPF5.js +1 -0
  592. package/dist/chunks/chunk.XYS4GJZH.js +299 -0
  593. package/dist/chunks/chunk.XZBSVTBX.js +1 -0
  594. package/dist/chunks/chunk.Y25FQCMA.js +1 -0
  595. package/dist/chunks/chunk.Y4QTK5OI.js +1 -0
  596. package/dist/chunks/chunk.Y6F5QAB2.js +1 -0
  597. package/dist/chunks/chunk.YBKVUXXU.js +1 -0
  598. package/dist/chunks/chunk.YIZ2RQOX.js +1 -0
  599. package/dist/chunks/chunk.YKWMWZMS.js +1 -0
  600. package/dist/chunks/chunk.YPU4IAHG.js +1 -0
  601. package/dist/chunks/chunk.YSQWMROO.js +5 -0
  602. package/dist/chunks/chunk.YTWF4W66.js +80 -0
  603. package/dist/chunks/chunk.YVVKOSUI.js +62 -0
  604. package/dist/chunks/chunk.ZBC4UK6H.js +48 -0
  605. package/dist/chunks/chunk.ZKDGF3PX.js +1 -0
  606. package/dist/chunks/chunk.ZLQVNAHB.js +1 -0
  607. package/dist/chunks/chunk.ZVOF2K46.js +1 -0
  608. package/dist/chunks/chunk.ZWNXLTTK.js +47 -0
  609. package/dist/chunks/chunk.ZXUW3LTE.js +1 -0
  610. package/dist/chunks/chunk.ZZBQVUDD.js +1 -0
  611. package/dist/components/accordion/accordion.component.js +1 -1
  612. package/dist/components/accordion/accordion.js +1 -1
  613. package/dist/components/alert/alert.component.js +1 -1
  614. package/dist/components/alert/alert.js +1 -1
  615. package/dist/components/avatar/avatar.component.js +1 -1
  616. package/dist/components/avatar/avatar.js +1 -1
  617. package/dist/components/badge/badge.component.js +1 -1
  618. package/dist/components/badge/badge.js +1 -1
  619. package/dist/components/banner/banner.component.js +1 -1
  620. package/dist/components/banner/banner.js +1 -1
  621. package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
  622. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  623. package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
  624. package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
  625. package/dist/components/browse-variables/browse-variables.component.js +1 -1
  626. package/dist/components/browse-variables/browse-variables.js +1 -1
  627. package/dist/components/button/button.component.js +1 -1
  628. package/dist/components/button/button.js +1 -1
  629. package/dist/components/button-group/button-group.component.js +1 -1
  630. package/dist/components/button-group/button-group.js +1 -1
  631. package/dist/components/caption/caption.component.js +1 -1
  632. package/dist/components/caption/caption.js +1 -1
  633. package/dist/components/card/card.component.js +1 -1
  634. package/dist/components/card/card.js +1 -1
  635. package/dist/components/checkbox/checkbox.component.js +1 -1
  636. package/dist/components/checkbox/checkbox.js +1 -1
  637. package/dist/components/chip/chip.component.js +1 -1
  638. package/dist/components/chip/chip.js +1 -1
  639. package/dist/components/combobox/combobox.component.js +1 -1
  640. package/dist/components/combobox/combobox.js +1 -1
  641. package/dist/components/data-access/data-access.component.js +1 -1
  642. package/dist/components/data-access/data-access.js +1 -1
  643. package/dist/components/data-grid/data-grid.component.js +1 -1
  644. package/dist/components/data-grid/data-grid.js +1 -1
  645. package/dist/components/data-rods/data-rods.component.js +1 -1
  646. package/dist/components/data-rods/data-rods.js +1 -1
  647. package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
  648. package/dist/components/data-subsetter/data-subsetter.js +1 -1
  649. package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  650. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
  651. package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
  652. package/dist/components/date-picker/date-picker.component.js +1 -1
  653. package/dist/components/date-picker/date-picker.js +1 -1
  654. package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
  655. package/dist/components/date-range-slider/date-range-slider.js +1 -1
  656. package/dist/components/dialog/dialog.component.js +1 -1
  657. package/dist/components/dialog/dialog.js +1 -1
  658. package/dist/components/divider/divider.component.js +1 -1
  659. package/dist/components/divider/divider.js +1 -1
  660. package/dist/components/dropdown/dropdown.component.js +1 -1
  661. package/dist/components/dropdown/dropdown.js +1 -1
  662. package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
  663. package/dist/components/earthdata-login/earthdata-login.js +1 -1
  664. package/dist/components/file-upload/file-upload.component.js +1 -1
  665. package/dist/components/file-upload/file-upload.js +1 -1
  666. package/dist/components/harmony-history/harmony-history.component.js +1 -1
  667. package/dist/components/harmony-history/harmony-history.js +1 -1
  668. package/dist/components/icon/icon.component.js +1 -1
  669. package/dist/components/icon/icon.js +1 -1
  670. package/dist/components/input/input.component.js +1 -1
  671. package/dist/components/input/input.js +1 -1
  672. package/dist/components/loader/loader.component.js +1 -1
  673. package/dist/components/loader/loader.js +1 -1
  674. package/dist/components/login/login.component.js +1 -1
  675. package/dist/components/login/login.js +1 -1
  676. package/dist/components/map/map.component.js +1 -1
  677. package/dist/components/map/map.js +1 -1
  678. package/dist/components/menu/menu.component.js +1 -1
  679. package/dist/components/menu/menu.js +1 -1
  680. package/dist/components/menu-item/menu-item.component.js +1 -1
  681. package/dist/components/menu-item/menu-item.js +1 -1
  682. package/dist/components/option/option.component.js +1 -1
  683. package/dist/components/option/option.js +1 -1
  684. package/dist/components/pagination/pagination.component.js +1 -1
  685. package/dist/components/pagination/pagination.js +1 -1
  686. package/dist/components/plot/plot.component.js +1 -1
  687. package/dist/components/plot/plot.js +1 -1
  688. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  689. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  690. package/dist/components/plot-toolbar/plot-toolbar.component.js +1 -1
  691. package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
  692. package/dist/components/popup/popup.component.js +1 -1
  693. package/dist/components/popup/popup.js +1 -1
  694. package/dist/components/progress-bar/progress-bar.component.js +1 -1
  695. package/dist/components/progress-bar/progress-bar.js +1 -1
  696. package/dist/components/radio/radio.component.js +1 -1
  697. package/dist/components/radio/radio.js +1 -1
  698. package/dist/components/radio-group/radio-group.component.js +1 -1
  699. package/dist/components/radio-group/radio-group.js +1 -1
  700. package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
  701. package/dist/components/scroll-hint/scroll-hint.js +1 -1
  702. package/dist/components/select/select.component.js +1 -1
  703. package/dist/components/select/select.js +1 -1
  704. package/dist/components/site-header/site-header.component.js +1 -1
  705. package/dist/components/site-header/site-header.js +1 -1
  706. package/dist/components/site-navigation/site-navigation.component.js +1 -1
  707. package/dist/components/site-navigation/site-navigation.js +1 -1
  708. package/dist/components/skeleton/skeleton.component.js +1 -1
  709. package/dist/components/skeleton/skeleton.js +1 -1
  710. package/dist/components/slider/slider.component.js +1 -1
  711. package/dist/components/slider/slider.js +1 -1
  712. package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
  713. package/dist/components/spatial-picker/spatial-picker.js +1 -1
  714. package/dist/components/status-indicator/status-indicator.component.js +1 -1
  715. package/dist/components/status-indicator/status-indicator.js +1 -1
  716. package/dist/components/stepper/stepper.component.js +1 -1
  717. package/dist/components/stepper/stepper.js +1 -1
  718. package/dist/components/stepper-step/stepper-step.component.js +1 -1
  719. package/dist/components/stepper-step/stepper-step.js +1 -1
  720. package/dist/components/tab/tab.component.js +1 -1
  721. package/dist/components/tab/tab.js +1 -1
  722. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  723. package/dist/components/tab-panel/tab-panel.js +1 -1
  724. package/dist/components/tabs/tabs.component.js +1 -1
  725. package/dist/components/tabs/tabs.js +1 -1
  726. package/dist/components/tag/tag.component.js +1 -1
  727. package/dist/components/tag/tag.js +1 -1
  728. package/dist/components/textarea/textarea.component.js +1 -1
  729. package/dist/components/textarea/textarea.js +1 -1
  730. package/dist/components/time-average-map/time-average-map.component.js +1 -1
  731. package/dist/components/time-average-map/time-average-map.controller.js +1 -1
  732. package/dist/components/time-average-map/time-average-map.js +1 -1
  733. package/dist/components/time-series/time-series.component.js +1 -1
  734. package/dist/components/time-series/time-series.controller.js +1 -1
  735. package/dist/components/time-series/time-series.js +1 -1
  736. package/dist/components/toast/toast.component.js +1 -1
  737. package/dist/components/toast/toast.js +1 -1
  738. package/dist/components/toggle/toggle.component.js +1 -1
  739. package/dist/components/toggle/toggle.js +1 -1
  740. package/dist/components/tooltip/tooltip.component.js +1 -1
  741. package/dist/components/tooltip/tooltip.js +1 -1
  742. package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
  743. package/dist/components/variable-combobox/variable-combobox.js +1 -1
  744. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
  745. package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
  746. package/dist/custom-elements.json +9739 -9739
  747. package/dist/internal/terra-element.d.ts +2 -1
  748. package/dist/react/accordion/index.js +1 -1
  749. package/dist/react/alert/index.js +1 -1
  750. package/dist/react/avatar/index.js +1 -1
  751. package/dist/react/badge/index.js +1 -1
  752. package/dist/react/banner/index.js +1 -1
  753. package/dist/react/breadcrumb/index.js +1 -1
  754. package/dist/react/breadcrumbs/index.js +1 -1
  755. package/dist/react/browse-variables/index.js +1 -1
  756. package/dist/react/button/index.js +1 -1
  757. package/dist/react/button-group/index.js +1 -1
  758. package/dist/react/caption/index.js +1 -1
  759. package/dist/react/card/index.js +1 -1
  760. package/dist/react/checkbox/index.js +1 -1
  761. package/dist/react/chip/index.js +1 -1
  762. package/dist/react/combobox/index.js +1 -1
  763. package/dist/react/data-access/index.js +1 -1
  764. package/dist/react/data-grid/index.js +1 -1
  765. package/dist/react/data-rods/index.js +1 -1
  766. package/dist/react/data-subsetter/index.js +1 -1
  767. package/dist/react/data-subsetter-history/index.js +1 -1
  768. package/dist/react/date-picker/index.js +1 -1
  769. package/dist/react/date-range-slider/index.js +1 -1
  770. package/dist/react/dialog/index.js +1 -1
  771. package/dist/react/divider/index.js +1 -1
  772. package/dist/react/dropdown/index.js +1 -1
  773. package/dist/react/earthdata-login/index.js +1 -1
  774. package/dist/react/file-upload/index.js +1 -1
  775. package/dist/react/harmony-history/index.js +1 -1
  776. package/dist/react/icon/index.js +1 -1
  777. package/dist/react/index.d.ts +28 -28
  778. package/dist/react/index.js +1 -1
  779. package/dist/react/input/index.js +1 -1
  780. package/dist/react/loader/index.js +1 -1
  781. package/dist/react/login/index.js +1 -1
  782. package/dist/react/map/index.js +1 -1
  783. package/dist/react/menu/index.js +1 -1
  784. package/dist/react/menu-item/index.js +1 -1
  785. package/dist/react/option/index.js +1 -1
  786. package/dist/react/pagination/index.js +1 -1
  787. package/dist/react/plot/index.js +1 -1
  788. package/dist/react/plot-toolbar/index.js +1 -1
  789. package/dist/react/popup/index.js +1 -1
  790. package/dist/react/progress-bar/index.js +1 -1
  791. package/dist/react/radio/index.js +1 -1
  792. package/dist/react/radio-group/index.js +1 -1
  793. package/dist/react/scroll-hint/index.js +1 -1
  794. package/dist/react/select/index.js +1 -1
  795. package/dist/react/site-header/index.js +1 -1
  796. package/dist/react/site-navigation/index.js +1 -1
  797. package/dist/react/skeleton/index.js +1 -1
  798. package/dist/react/slider/index.js +1 -1
  799. package/dist/react/spatial-picker/index.js +1 -1
  800. package/dist/react/status-indicator/index.js +1 -1
  801. package/dist/react/stepper/index.js +1 -1
  802. package/dist/react/stepper-step/index.js +1 -1
  803. package/dist/react/tab/index.js +1 -1
  804. package/dist/react/tab-panel/index.js +1 -1
  805. package/dist/react/tabs/index.js +1 -1
  806. package/dist/react/tag/index.js +1 -1
  807. package/dist/react/textarea/index.js +1 -1
  808. package/dist/react/time-average-map/index.js +1 -1
  809. package/dist/react/time-series/index.js +1 -1
  810. package/dist/react/toast/index.js +1 -1
  811. package/dist/react/toggle/index.js +1 -1
  812. package/dist/react/tooltip/index.js +1 -1
  813. package/dist/react/variable-combobox/index.js +1 -1
  814. package/dist/react/variable-keyword-search/index.js +1 -1
  815. package/dist/terra-ui-components.js +1 -1
  816. package/dist/terra_ui_components-0.0.197-py3-none-any.whl +0 -0
  817. package/dist/terra_ui_components-0.0.197.tar.gz +0 -0
  818. package/dist/types/vue/index.d.ts +1157 -1157
  819. package/dist/vscode.html-custom-data.json +704 -704
  820. package/dist/web-types.json +1988 -1988
  821. package/package.json +1 -1
  822. package/cdn/chunks/chunk.24DUJHDK.js +0 -99
  823. package/cdn/chunks/chunk.2GXXW4JW.js +0 -19
  824. package/cdn/chunks/chunk.2IZL2AQZ.js +0 -310
  825. package/cdn/chunks/chunk.2MJ2NCZB.js +0 -19
  826. package/cdn/chunks/chunk.3EXMQGS5.js +0 -33
  827. package/cdn/chunks/chunk.3F5WWWCP.js +0 -32
  828. package/cdn/chunks/chunk.3FZNWJLU.js +0 -138
  829. package/cdn/chunks/chunk.3KM52SYJ.js +0 -377
  830. package/cdn/chunks/chunk.3WLHSB2P.js +0 -60
  831. package/cdn/chunks/chunk.3XRHKAEG.js +0 -1197
  832. package/cdn/chunks/chunk.42TIMN33.js +0 -19
  833. package/cdn/chunks/chunk.4GCABVEB.js +0 -32
  834. package/cdn/chunks/chunk.4HOOLRRB.js +0 -294
  835. package/cdn/chunks/chunk.4JSKFMYL.js +0 -19
  836. package/cdn/chunks/chunk.4MA4WNAR.js +0 -19
  837. package/cdn/chunks/chunk.4OQEEMTX.js +0 -960
  838. package/cdn/chunks/chunk.4ZKXL6QQ.js +0 -2546
  839. package/cdn/chunks/chunk.56LL2PGB.js +0 -19
  840. package/cdn/chunks/chunk.5APQECEU.js +0 -272
  841. package/cdn/chunks/chunk.5DYZPUHM.js +0 -19
  842. package/cdn/chunks/chunk.5PKUX7GI.js +0 -32
  843. package/cdn/chunks/chunk.5QI4MBD3.js +0 -19
  844. package/cdn/chunks/chunk.5RFFOMS7.js +0 -19
  845. package/cdn/chunks/chunk.6AQBFPMC.js +0 -231
  846. package/cdn/chunks/chunk.6PJPHKZS.js +0 -616
  847. package/cdn/chunks/chunk.6UL4YIIE.js +0 -443
  848. package/cdn/chunks/chunk.73E6DBDT.js +0 -29
  849. package/cdn/chunks/chunk.73JELIRH.js +0 -29
  850. package/cdn/chunks/chunk.77C4GKUY.js +0 -19
  851. package/cdn/chunks/chunk.7GEFNIYD.js +0 -29
  852. package/cdn/chunks/chunk.7INFHMNF.js +0 -29
  853. package/cdn/chunks/chunk.7MTO53BK.js +0 -19
  854. package/cdn/chunks/chunk.7PXKDTIM.js +0 -32
  855. package/cdn/chunks/chunk.7W3MEEY4.js +0 -60
  856. package/cdn/chunks/chunk.A3BGCJF3.js +0 -19
  857. package/cdn/chunks/chunk.AOD5LM5P.js +0 -71
  858. package/cdn/chunks/chunk.APAET6SG.js +0 -19
  859. package/cdn/chunks/chunk.AVGRSDXZ.js +0 -32
  860. package/cdn/chunks/chunk.AWRZWD5U.js +0 -259
  861. package/cdn/chunks/chunk.B3L3TUDC.js +0 -537
  862. package/cdn/chunks/chunk.BHOL7N4X.js +0 -29
  863. package/cdn/chunks/chunk.BIHXNGW6.js +0 -35
  864. package/cdn/chunks/chunk.BJ5X5X4P.js +0 -19
  865. package/cdn/chunks/chunk.BL5KHAJE.js +0 -82
  866. package/cdn/chunks/chunk.BWX2YQ7G.js +0 -19
  867. package/cdn/chunks/chunk.C7MAVAHI.js +0 -29
  868. package/cdn/chunks/chunk.CBATMEEU.js +0 -19
  869. package/cdn/chunks/chunk.CG3UKDID.js +0 -357
  870. package/cdn/chunks/chunk.CI3PPRE2.js +0 -29
  871. package/cdn/chunks/chunk.CJDMYIJ3.js +0 -278
  872. package/cdn/chunks/chunk.CPPIU4DJ.js +0 -19
  873. package/cdn/chunks/chunk.CUQ43GND.js +0 -19
  874. package/cdn/chunks/chunk.D4HZHUNC.js +0 -19
  875. package/cdn/chunks/chunk.D7JYSAWP.js +0 -33
  876. package/cdn/chunks/chunk.DGEQK5ZJ.js +0 -99
  877. package/cdn/chunks/chunk.DHEXZGR7.js +0 -19
  878. package/cdn/chunks/chunk.EGVCUUSY.js +0 -36
  879. package/cdn/chunks/chunk.EHEZ6HRQ.js +0 -19
  880. package/cdn/chunks/chunk.FF3TG64X.js +0 -19
  881. package/cdn/chunks/chunk.FGNURE2G.js +0 -293
  882. package/cdn/chunks/chunk.FH5OTISR.js +0 -19
  883. package/cdn/chunks/chunk.FHLKSU4Z.js +0 -19
  884. package/cdn/chunks/chunk.FJOMHPCP.js +0 -136
  885. package/cdn/chunks/chunk.FOT4M63R.js +0 -19
  886. package/cdn/chunks/chunk.FPA7IQX3.js +0 -132
  887. package/cdn/chunks/chunk.FW2BZR4P.js +0 -68
  888. package/cdn/chunks/chunk.FW5WHIWR.js +0 -83
  889. package/cdn/chunks/chunk.FXAXW2P5.js +0 -19
  890. package/cdn/chunks/chunk.FZLLQOCC.js +0 -39
  891. package/cdn/chunks/chunk.FZNTZBRB.js +0 -29
  892. package/cdn/chunks/chunk.G3XUBBLG.js +0 -19
  893. package/cdn/chunks/chunk.G7CRYOZ6.js +0 -33
  894. package/cdn/chunks/chunk.GACJHA2S.js +0 -19
  895. package/cdn/chunks/chunk.GDBCAUAV.js +0 -32
  896. package/cdn/chunks/chunk.GF4FWTYY.js +0 -359
  897. package/cdn/chunks/chunk.GGRKUVCY.js +0 -29
  898. package/cdn/chunks/chunk.GQI5T2PQ.js +0 -32
  899. package/cdn/chunks/chunk.HBWQC2Z4.js +0 -294
  900. package/cdn/chunks/chunk.HHVETYHR.js +0 -32
  901. package/cdn/chunks/chunk.HOVXBUJT.js +0 -33
  902. package/cdn/chunks/chunk.HTOWSYLT.js +0 -93
  903. package/cdn/chunks/chunk.I2Y2VPUB.js +0 -37
  904. package/cdn/chunks/chunk.I3FRHVER.js +0 -19
  905. package/cdn/chunks/chunk.I4AH7J3O.js +0 -19
  906. package/cdn/chunks/chunk.I7NMTC5Q.js +0 -34
  907. package/cdn/chunks/chunk.IBA4NRT7.js +0 -86
  908. package/cdn/chunks/chunk.JAMUELKA.js +0 -19
  909. package/cdn/chunks/chunk.JIEFAMLF.js +0 -19
  910. package/cdn/chunks/chunk.JJDEFKUF.js +0 -524
  911. package/cdn/chunks/chunk.JJVQV3KV.js +0 -610
  912. package/cdn/chunks/chunk.JN5JWQ2B.js +0 -19
  913. package/cdn/chunks/chunk.JNQPADBB.js +0 -19
  914. package/cdn/chunks/chunk.JPMKABCV.js +0 -29
  915. package/cdn/chunks/chunk.JQHJEJ7I.js +0 -904
  916. package/cdn/chunks/chunk.K3FQJZZK.js +0 -188
  917. package/cdn/chunks/chunk.KAHOERXC.js +0 -657
  918. package/cdn/chunks/chunk.KCIASXLB.js +0 -1259
  919. package/cdn/chunks/chunk.KGM767Y2.js +0 -1975
  920. package/cdn/chunks/chunk.KSVXTOF4.js +0 -19
  921. package/cdn/chunks/chunk.KTOKMD4O.js +0 -19
  922. package/cdn/chunks/chunk.KTUPD7QF.js +0 -29
  923. package/cdn/chunks/chunk.KXA4ATJ2.js +0 -29
  924. package/cdn/chunks/chunk.KXRXZF7Z.js +0 -134
  925. package/cdn/chunks/chunk.L7OOVPGZ.js +0 -128
  926. package/cdn/chunks/chunk.LBAW4D6F.js +0 -19
  927. package/cdn/chunks/chunk.LCG6CS5W.js +0 -151
  928. package/cdn/chunks/chunk.LFDSFGQP.js +0 -158
  929. package/cdn/chunks/chunk.LGWGWJEP.js +0 -110
  930. package/cdn/chunks/chunk.LKJHLO7L.js +0 -155
  931. package/cdn/chunks/chunk.LPO3LYTF.js +0 -36
  932. package/cdn/chunks/chunk.LQO7FSCD.js +0 -19
  933. package/cdn/chunks/chunk.LUFN5OBJ.js +0 -29
  934. package/cdn/chunks/chunk.M4V6NBVW.js +0 -19
  935. package/cdn/chunks/chunk.M7N46T3J.js +0 -29
  936. package/cdn/chunks/chunk.MBQGLDFD.js +0 -41
  937. package/cdn/chunks/chunk.ME4MXD7Z.js +0 -123
  938. package/cdn/chunks/chunk.MIMEPCMP.js +0 -19
  939. package/cdn/chunks/chunk.MSA6YIWL.js +0 -32
  940. package/cdn/chunks/chunk.MUSV5WD7.js +0 -663
  941. package/cdn/chunks/chunk.MWZDKTYP.js +0 -539
  942. package/cdn/chunks/chunk.N2HXI3AV.js +0 -29
  943. package/cdn/chunks/chunk.N45T5BVL.js +0 -19
  944. package/cdn/chunks/chunk.N4S5SN4O.js +0 -234
  945. package/cdn/chunks/chunk.NF6QKS66.js +0 -35
  946. package/cdn/chunks/chunk.NPMUVLNM.js +0 -162
  947. package/cdn/chunks/chunk.OENYLZWT.js +0 -56075
  948. package/cdn/chunks/chunk.OHNT4PXQ.js +0 -35
  949. package/cdn/chunks/chunk.OS7S5YYF.js +0 -29
  950. package/cdn/chunks/chunk.P2RGLH4G.js +0 -74
  951. package/cdn/chunks/chunk.PDOH2WSS.js +0 -34
  952. package/cdn/chunks/chunk.PN2XAHPP.js +0 -29
  953. package/cdn/chunks/chunk.PPAETPB7.js +0 -2690
  954. package/cdn/chunks/chunk.PPVHICGA.js +0 -62
  955. package/cdn/chunks/chunk.PRZH2KCU.js +0 -19
  956. package/cdn/chunks/chunk.PS7COUUZ.js +0 -29
  957. package/cdn/chunks/chunk.PSDELLGY.js +0 -32
  958. package/cdn/chunks/chunk.PTOY2FES.js +0 -49
  959. package/cdn/chunks/chunk.PYGD5KXG.js +0 -35
  960. package/cdn/chunks/chunk.QN4AN7C5.js +0 -599
  961. package/cdn/chunks/chunk.QPH2YCQZ.js +0 -190
  962. package/cdn/chunks/chunk.QUXCDLLL.js +0 -19
  963. package/cdn/chunks/chunk.QVMEK5M3.js +0 -29
  964. package/cdn/chunks/chunk.R25INNJV.js +0 -19
  965. package/cdn/chunks/chunk.RHK4JGDC.js +0 -29
  966. package/cdn/chunks/chunk.RICV3H37.js +0 -19
  967. package/cdn/chunks/chunk.RLS2X5AZ.js +0 -19
  968. package/cdn/chunks/chunk.RNWGAI7P.js +0 -19
  969. package/cdn/chunks/chunk.RRE5BPDG.js +0 -19
  970. package/cdn/chunks/chunk.RYVQIS2S.js +0 -19
  971. package/cdn/chunks/chunk.RZQ3F6C3.js +0 -19
  972. package/cdn/chunks/chunk.S73UFG7T.js +0 -35
  973. package/cdn/chunks/chunk.SDEHB6TT.js +0 -19
  974. package/cdn/chunks/chunk.SFWFMK4W.js +0 -19
  975. package/cdn/chunks/chunk.SQOILSEV.js +0 -266
  976. package/cdn/chunks/chunk.STFECIPE.js +0 -32
  977. package/cdn/chunks/chunk.SUPNZXCZ.js +0 -36
  978. package/cdn/chunks/chunk.SYTFF46K.js +0 -29
  979. package/cdn/chunks/chunk.THXR2ES6.js +0 -78
  980. package/cdn/chunks/chunk.TMF5HOD4.js +0 -29
  981. package/cdn/chunks/chunk.TQUM32MX.js +0 -224
  982. package/cdn/chunks/chunk.TRYBS3TL.js +0 -912
  983. package/cdn/chunks/chunk.TXITE2FV.js +0 -538
  984. package/cdn/chunks/chunk.U2EYGXBE.js +0 -19
  985. package/cdn/chunks/chunk.U4SJDY6O.js +0 -29
  986. package/cdn/chunks/chunk.U6GRE2AY.js +0 -29
  987. package/cdn/chunks/chunk.UAAOIJFL.js +0 -29
  988. package/cdn/chunks/chunk.UD2WNVHE.js +0 -624
  989. package/cdn/chunks/chunk.UECXOXJZ.js +0 -19
  990. package/cdn/chunks/chunk.UEEC2GXT.js +0 -29
  991. package/cdn/chunks/chunk.UR5Y4MTD.js +0 -19
  992. package/cdn/chunks/chunk.UWBBHL5L.js +0 -29
  993. package/cdn/chunks/chunk.UWTXFYCD.js +0 -19
  994. package/cdn/chunks/chunk.VIKAJXUC.js +0 -113
  995. package/cdn/chunks/chunk.VPC6URQL.js +0 -47
  996. package/cdn/chunks/chunk.VZZ4WPTN.js +0 -92
  997. package/cdn/chunks/chunk.W2UWM7MU.js +0 -32
  998. package/cdn/chunks/chunk.W6C4Y6RE.js +0 -33
  999. package/cdn/chunks/chunk.WFFZWPNT.js +0 -19
  1000. package/cdn/chunks/chunk.WRUVQNZU.js +0 -19
  1001. package/cdn/chunks/chunk.WSYETG3Q.js +0 -29
  1002. package/cdn/chunks/chunk.X4NKTRX3.js +0 -32
  1003. package/cdn/chunks/chunk.XD5QY6PM.js +0 -195
  1004. package/cdn/chunks/chunk.XDDSC5QG.js +0 -104
  1005. package/cdn/chunks/chunk.XJBQGSHA.js +0 -29
  1006. package/cdn/chunks/chunk.XNCBBVLA.js +0 -36
  1007. package/cdn/chunks/chunk.XQCQ77ZI.js +0 -19
  1008. package/cdn/chunks/chunk.XQQCXMXT.js +0 -29
  1009. package/cdn/chunks/chunk.XY2BLPWZ.js +0 -32
  1010. package/cdn/chunks/chunk.Y2QU6FAL.js +0 -392
  1011. package/cdn/chunks/chunk.YFQAWKK2.js +0 -19
  1012. package/cdn/chunks/chunk.YL6WAIUW.js +0 -230
  1013. package/cdn/chunks/chunk.YLV2NQMM.js +0 -276
  1014. package/cdn/chunks/chunk.YOGJK3VO.js +0 -19
  1015. package/cdn/chunks/chunk.YR2V7D3U.js +0 -19
  1016. package/cdn/chunks/chunk.YXED3ORL.js +0 -19
  1017. package/cdn/chunks/chunk.YXV2OEKT.js +0 -330
  1018. package/cdn/chunks/chunk.Z2XXUCBC.js +0 -37
  1019. package/cdn/chunks/chunk.Z32AWZQH.js +0 -36
  1020. package/cdn/chunks/chunk.ZDTHRWMK.js +0 -30
  1021. package/cdn/chunks/chunk.ZEFTGZ6L.js +0 -589
  1022. package/cdn/chunks/chunk.ZHO3MDDD.js +0 -478
  1023. package/dist/chunks/chunk.22E5LE6S.js +0 -1
  1024. package/dist/chunks/chunk.26D6RYPR.js +0 -80
  1025. package/dist/chunks/chunk.27Z62R5G.js +0 -1
  1026. package/dist/chunks/chunk.2HL7Y4WO.js +0 -74
  1027. package/dist/chunks/chunk.2T6Y2G56.js +0 -300
  1028. package/dist/chunks/chunk.33JEWNO2.js +0 -1
  1029. package/dist/chunks/chunk.3CCS5BIB.js +0 -1
  1030. package/dist/chunks/chunk.4H2ENZPR.js +0 -30
  1031. package/dist/chunks/chunk.4MIKGY55.js +0 -1
  1032. package/dist/chunks/chunk.4QCVHW6X.js +0 -780
  1033. package/dist/chunks/chunk.4V3T5ED5.js +0 -1
  1034. package/dist/chunks/chunk.5FMWJJ36.js +0 -20
  1035. package/dist/chunks/chunk.5WCS6MPC.js +0 -1
  1036. package/dist/chunks/chunk.5WLCB2FX.js +0 -1
  1037. package/dist/chunks/chunk.5WQ4OCUY.js +0 -1
  1038. package/dist/chunks/chunk.5XNWMOI2.js +0 -1
  1039. package/dist/chunks/chunk.5YUJ4ULN.js +0 -1
  1040. package/dist/chunks/chunk.67QNRGSR.js +0 -55
  1041. package/dist/chunks/chunk.6B3M4FBK.js +0 -1
  1042. package/dist/chunks/chunk.6DO6SCAN.js +0 -2
  1043. package/dist/chunks/chunk.6SS4IWON.js +0 -1
  1044. package/dist/chunks/chunk.6XRX5RTY.js +0 -1
  1045. package/dist/chunks/chunk.6YAV522D.js +0 -1
  1046. package/dist/chunks/chunk.7WCWF45X.js +0 -1
  1047. package/dist/chunks/chunk.A3MYPEXH.js +0 -1
  1048. package/dist/chunks/chunk.ABTWGDZS.js +0 -1
  1049. package/dist/chunks/chunk.AWMMBQ7Q.js +0 -1
  1050. package/dist/chunks/chunk.AYSQDQ7A.js +0 -20
  1051. package/dist/chunks/chunk.B2RVIS6L.js +0 -1
  1052. package/dist/chunks/chunk.B4QRG775.js +0 -25
  1053. package/dist/chunks/chunk.BBCXSNXB.js +0 -11
  1054. package/dist/chunks/chunk.BFMGLV3Y.js +0 -19
  1055. package/dist/chunks/chunk.BFOMSZN2.js +0 -1
  1056. package/dist/chunks/chunk.BSMBRKPT.js +0 -1
  1057. package/dist/chunks/chunk.BSMJWBZ7.js +0 -121
  1058. package/dist/chunks/chunk.BSQNZJNF.js +0 -1
  1059. package/dist/chunks/chunk.BVOJXW4M.js +0 -1
  1060. package/dist/chunks/chunk.BVTUW2PM.js +0 -37
  1061. package/dist/chunks/chunk.BWJGCPQL.js +0 -1
  1062. package/dist/chunks/chunk.BX45XQUM.js +0 -8
  1063. package/dist/chunks/chunk.C2P2S5ZL.js +0 -64
  1064. package/dist/chunks/chunk.C5EJDSXH.js +0 -113
  1065. package/dist/chunks/chunk.C6NTJUXF.js +0 -1
  1066. package/dist/chunks/chunk.CHZR43AW.js +0 -1
  1067. package/dist/chunks/chunk.D5JQQQMX.js +0 -1
  1068. package/dist/chunks/chunk.D6Z6RV5N.js +0 -1
  1069. package/dist/chunks/chunk.DAVYYMC4.js +0 -1
  1070. package/dist/chunks/chunk.DCHBOJU5.js +0 -1
  1071. package/dist/chunks/chunk.DNX6VFES.js +0 -122
  1072. package/dist/chunks/chunk.DQIXJDIE.js +0 -1
  1073. package/dist/chunks/chunk.DWDYUZK2.js +0 -39
  1074. package/dist/chunks/chunk.DWUBRDBO.js +0 -1
  1075. package/dist/chunks/chunk.DXVAQ7KS.js +0 -1
  1076. package/dist/chunks/chunk.DYC3RF6V.js +0 -1
  1077. package/dist/chunks/chunk.DYDSL6ZW.js +0 -1
  1078. package/dist/chunks/chunk.E45DOCEZ.js +0 -1
  1079. package/dist/chunks/chunk.EDVIDEQN.js +0 -1
  1080. package/dist/chunks/chunk.EDZQ64GI.js +0 -55
  1081. package/dist/chunks/chunk.EVKKJS2Q.js +0 -75
  1082. package/dist/chunks/chunk.F54E2PUO.js +0 -1
  1083. package/dist/chunks/chunk.F7PR6RUU.js +0 -1
  1084. package/dist/chunks/chunk.FG6V2YTA.js +0 -1
  1085. package/dist/chunks/chunk.FHR4ECA5.js +0 -1
  1086. package/dist/chunks/chunk.FKI64WHR.js +0 -1
  1087. package/dist/chunks/chunk.FNPSZY43.js +0 -1
  1088. package/dist/chunks/chunk.FP5XEZKY.js +0 -1
  1089. package/dist/chunks/chunk.FVT6Q3WE.js +0 -30
  1090. package/dist/chunks/chunk.GDTUTXVL.js +0 -1
  1091. package/dist/chunks/chunk.GF3ZXGGP.js +0 -9
  1092. package/dist/chunks/chunk.GIK4TT5X.js +0 -1
  1093. package/dist/chunks/chunk.GJFSXCHE.js +0 -1
  1094. package/dist/chunks/chunk.GS6C5VNV.js +0 -43
  1095. package/dist/chunks/chunk.GSF2UKR2.js +0 -1
  1096. package/dist/chunks/chunk.GSZCUHUW.js +0 -23
  1097. package/dist/chunks/chunk.GT5LSMK3.js +0 -67
  1098. package/dist/chunks/chunk.GU22GHTU.js +0 -154
  1099. package/dist/chunks/chunk.GUN57VLX.js +0 -1
  1100. package/dist/chunks/chunk.H3UCBT2F.js +0 -100
  1101. package/dist/chunks/chunk.HBCDWQU4.js +0 -1
  1102. package/dist/chunks/chunk.HHTPWBEX.js +0 -1
  1103. package/dist/chunks/chunk.HP44BR7Q.js +0 -1
  1104. package/dist/chunks/chunk.HYWNTAAL.js +0 -1
  1105. package/dist/chunks/chunk.HZQNTZKJ.js +0 -1
  1106. package/dist/chunks/chunk.I3ZPIFPK.js +0 -1
  1107. package/dist/chunks/chunk.I42HLE2N.js +0 -35
  1108. package/dist/chunks/chunk.I4ASNPW6.js +0 -1
  1109. package/dist/chunks/chunk.IL56P34I.js +0 -5
  1110. package/dist/chunks/chunk.IO2JJLOR.js +0 -62
  1111. package/dist/chunks/chunk.IO7UVDVP.js +0 -1
  1112. package/dist/chunks/chunk.JELRT4AR.js +0 -1
  1113. package/dist/chunks/chunk.JNF66CIE.js +0 -1182
  1114. package/dist/chunks/chunk.K4NORFOW.js +0 -1
  1115. package/dist/chunks/chunk.KAG6Z6DO.js +0 -1
  1116. package/dist/chunks/chunk.KC7D5IGT.js +0 -157
  1117. package/dist/chunks/chunk.KFUQD4BX.js +0 -1
  1118. package/dist/chunks/chunk.KGOPIP4S.js +0 -127
  1119. package/dist/chunks/chunk.KJC33UZ5.js +0 -1
  1120. package/dist/chunks/chunk.KJYBVSWK.js +0 -1
  1121. package/dist/chunks/chunk.KUERMFX5.js +0 -1
  1122. package/dist/chunks/chunk.L6TW5LIY.js +0 -1
  1123. package/dist/chunks/chunk.LCGS7JFN.js +0 -299
  1124. package/dist/chunks/chunk.LEHE4EOE.js +0 -1
  1125. package/dist/chunks/chunk.LJTCKUFB.js +0 -99
  1126. package/dist/chunks/chunk.LLUDN2PS.js +0 -1
  1127. package/dist/chunks/chunk.LUFGUMYT.js +0 -1
  1128. package/dist/chunks/chunk.LY7YY3K2.js +0 -1
  1129. package/dist/chunks/chunk.M57NEZ6W.js +0 -1
  1130. package/dist/chunks/chunk.M6VUPGBZ.js +0 -1
  1131. package/dist/chunks/chunk.MKY7Y6QJ.js +0 -280
  1132. package/dist/chunks/chunk.MLQD2PHH.js +0 -38
  1133. package/dist/chunks/chunk.MOMD53AX.js +0 -1
  1134. package/dist/chunks/chunk.MOQL5C2E.js +0 -41
  1135. package/dist/chunks/chunk.MZTJXYFN.js +0 -1
  1136. package/dist/chunks/chunk.N5FXHMMX.js +0 -1
  1137. package/dist/chunks/chunk.NBRTR7IO.js +0 -1
  1138. package/dist/chunks/chunk.NJXX5UDS.js +0 -1
  1139. package/dist/chunks/chunk.NQEGHU55.js +0 -24
  1140. package/dist/chunks/chunk.NTT4DHJD.js +0 -1
  1141. package/dist/chunks/chunk.O7S3P6BA.js +0 -1
  1142. package/dist/chunks/chunk.OABGOXTV.js +0 -1
  1143. package/dist/chunks/chunk.OBXUIBS5.js +0 -1
  1144. package/dist/chunks/chunk.OO755T6M.js +0 -1
  1145. package/dist/chunks/chunk.OW6C7ADA.js +0 -22
  1146. package/dist/chunks/chunk.OZ653IVR.js +0 -1
  1147. package/dist/chunks/chunk.OZKLT66X.js +0 -1
  1148. package/dist/chunks/chunk.P2LITPPP.js +0 -48
  1149. package/dist/chunks/chunk.P4UGPFLO.js +0 -1
  1150. package/dist/chunks/chunk.P7BQUP6B.js +0 -1
  1151. package/dist/chunks/chunk.P7FUXKYP.js +0 -16
  1152. package/dist/chunks/chunk.P7PSBTVM.js +0 -1
  1153. package/dist/chunks/chunk.PBQTUPUD.js +0 -8
  1154. package/dist/chunks/chunk.PBWD7J5S.js +0 -9
  1155. package/dist/chunks/chunk.PCACJJPM.js +0 -1
  1156. package/dist/chunks/chunk.PCGWZEYW.js +0 -1
  1157. package/dist/chunks/chunk.PDVGLTEV.js +0 -1
  1158. package/dist/chunks/chunk.PJ3XPXPF.js +0 -1
  1159. package/dist/chunks/chunk.PPCBIO3V.js +0 -1
  1160. package/dist/chunks/chunk.PRW76IA2.js +0 -1
  1161. package/dist/chunks/chunk.PTUQEN4T.js +0 -1
  1162. package/dist/chunks/chunk.PXQAFDR7.js +0 -1
  1163. package/dist/chunks/chunk.Q5HEIZX3.js +0 -33
  1164. package/dist/chunks/chunk.QB3T4KR7.js +0 -1
  1165. package/dist/chunks/chunk.QPFHGXYZ.js +0 -1
  1166. package/dist/chunks/chunk.QRVMZ2T4.js +0 -1
  1167. package/dist/chunks/chunk.QYL7SQDJ.js +0 -1
  1168. package/dist/chunks/chunk.RFCIZJWS.js +0 -1
  1169. package/dist/chunks/chunk.RFFRH4BZ.js +0 -17
  1170. package/dist/chunks/chunk.RGKN43WN.js +0 -14
  1171. package/dist/chunks/chunk.RIBXZLNN.js +0 -26
  1172. package/dist/chunks/chunk.RIT7PNUW.js +0 -12
  1173. package/dist/chunks/chunk.RMEOPW4C.js +0 -1
  1174. package/dist/chunks/chunk.RQ65M4CE.js +0 -1
  1175. package/dist/chunks/chunk.S63FGGZF.js +0 -1
  1176. package/dist/chunks/chunk.SAFQT7K3.js +0 -1
  1177. package/dist/chunks/chunk.SEVX4EA5.js +0 -572
  1178. package/dist/chunks/chunk.SHENNSQK.js +0 -1
  1179. package/dist/chunks/chunk.SNXJ6L37.js +0 -1
  1180. package/dist/chunks/chunk.SSZM65FT.js +0 -1
  1181. package/dist/chunks/chunk.T234XEZF.js +0 -1
  1182. package/dist/chunks/chunk.T7NIKGIG.js +0 -1
  1183. package/dist/chunks/chunk.TE7JCILP.js +0 -1
  1184. package/dist/chunks/chunk.TK6NK5JE.js +0 -26
  1185. package/dist/chunks/chunk.TOQYLHPA.js +0 -1
  1186. package/dist/chunks/chunk.TPSI5CST.js +0 -5
  1187. package/dist/chunks/chunk.TTHXFCV5.js +0 -11
  1188. package/dist/chunks/chunk.TUX7N5E2.js +0 -1
  1189. package/dist/chunks/chunk.UCNBQNV2.js +0 -1
  1190. package/dist/chunks/chunk.UTIEBX6W.js +0 -1
  1191. package/dist/chunks/chunk.V4OWFROX.js +0 -1
  1192. package/dist/chunks/chunk.V4S2FRFS.js +0 -1
  1193. package/dist/chunks/chunk.VB4HNOSD.js +0 -1
  1194. package/dist/chunks/chunk.VKIHEYZ2.js +0 -176
  1195. package/dist/chunks/chunk.VLKM3MR3.js +0 -65
  1196. package/dist/chunks/chunk.VMLWYQ2W.js +0 -43
  1197. package/dist/chunks/chunk.VUMKCPHB.js +0 -1
  1198. package/dist/chunks/chunk.VWXTAHZH.js +0 -145
  1199. package/dist/chunks/chunk.VXK32EI2.js +0 -1
  1200. package/dist/chunks/chunk.VYRSEKIP.js +0 -1
  1201. package/dist/chunks/chunk.W64NLWOA.js +0 -148
  1202. package/dist/chunks/chunk.WAYYVCTL.js +0 -1
  1203. package/dist/chunks/chunk.WGTYCWJK.js +0 -27
  1204. package/dist/chunks/chunk.WKDMCSDZ.js +0 -1
  1205. package/dist/chunks/chunk.XELLMKLV.js +0 -1
  1206. package/dist/chunks/chunk.XREGZC62.js +0 -1
  1207. package/dist/chunks/chunk.XSHNKOCG.js +0 -6
  1208. package/dist/chunks/chunk.XT6WN2YX.js +0 -1
  1209. package/dist/chunks/chunk.XWEGKU5H.js +0 -35
  1210. package/dist/chunks/chunk.XZN3AKDK.js +0 -1
  1211. package/dist/chunks/chunk.YAYW6Z2L.js +0 -1
  1212. package/dist/chunks/chunk.YCF3BGQL.js +0 -47
  1213. package/dist/chunks/chunk.YDA5W6FZ.js +0 -1
  1214. package/dist/chunks/chunk.YIIUYOLR.js +0 -1
  1215. package/dist/chunks/chunk.YOHSRZEN.js +0 -55
  1216. package/dist/chunks/chunk.YPDNZD7J.js +0 -1
  1217. package/dist/chunks/chunk.YVMILHIJ.js +0 -1
  1218. package/dist/chunks/chunk.Z2BBQFB2.js +0 -1
  1219. package/dist/chunks/chunk.ZFEDVT56.js +0 -1
  1220. package/dist/chunks/chunk.ZVOXSSTY.js +0 -61
  1221. package/dist/chunks/chunk.ZWHRQALR.js +0 -1
  1222. package/dist/chunks/chunk.ZXCSA2P7.js +0 -1
  1223. package/dist/chunks/chunk.ZYBAFKDZ.js +0 -4
  1224. package/dist/terra_ui_components-0.0.195-py3-none-any.whl +0 -0
  1225. package/dist/terra_ui_components-0.0.195.tar.gz +0 -0
@@ -0,0 +1,2710 @@
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.YRXLTYVI.js";
11
+ import {
12
+ TerraLogin
13
+ } from "./chunk.6NKCYDS6.js";
14
+ import {
15
+ TerraDialog
16
+ } from "./chunk.6FJCGU4K.js";
17
+ import {
18
+ data_subsetter_styles_default
19
+ } from "./chunk.ITK2GQEZ.js";
20
+ import {
21
+ HarmonyRequestController
22
+ } from "./chunk.CROGJ6YF.js";
23
+ import {
24
+ HarmonyRequest
25
+ } from "./chunk.5YAN7WHN.js";
26
+ import {
27
+ AuthController
28
+ } from "./chunk.4JXPGYJW.js";
29
+ import {
30
+ TerraDataAccess,
31
+ debounce
32
+ } from "./chunk.L5CO7SOT.js";
33
+ import {
34
+ TerraSlider
35
+ } from "./chunk.EUOALKXD.js";
36
+ import {
37
+ TerraMenu
38
+ } from "./chunk.QJWILSBB.js";
39
+ import {
40
+ TerraMenuItem
41
+ } from "./chunk.73PEBYZF.js";
42
+ import {
43
+ CollectionController
44
+ } from "./chunk.JXSV4XD4.js";
45
+ import {
46
+ TerraSpatialPicker
47
+ } from "./chunk.2DTFNQFU.js";
48
+ import {
49
+ TerraDatePicker
50
+ } from "./chunk.DS2UI56D.js";
51
+ import {
52
+ TerraDropdown
53
+ } from "./chunk.EM5ETPZC.js";
54
+ import {
55
+ TerraInput
56
+ } from "./chunk.3MSKTFUH.js";
57
+ import {
58
+ QueryClientMixin
59
+ } from "./chunk.DOUWGQFH.js";
60
+ import {
61
+ TerraLoader
62
+ } from "./chunk.GULH5ZQL.js";
63
+ import {
64
+ TerraButton
65
+ } from "./chunk.M6UIVWVO.js";
66
+ import {
67
+ getUTCDate
68
+ } from "./chunk.X2BIJLHO.js";
69
+ import {
70
+ HttpException
71
+ } from "./chunk.SYQOGYTQ.js";
72
+ import {
73
+ TerraAlert
74
+ } from "./chunk.35W6TJ7F.js";
75
+ import {
76
+ TerraAccordion
77
+ } from "./chunk.AB5GSS2K.js";
78
+ import {
79
+ TerraIcon
80
+ } from "./chunk.UD7NUYVG.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
+ undefinedStringConverter
91
+ } from "./chunk.W56KFXW3.js";
92
+ import {
93
+ getBasePath
94
+ } from "./chunk.ZQVMOVOT.js";
95
+ import {
96
+ A,
97
+ b
98
+ } from "./chunk.RRCYT4LP.js";
99
+ import {
100
+ __decorateClass,
101
+ __privateAdd,
102
+ __privateGet,
103
+ __privateMethod,
104
+ __spreadProps,
105
+ __spreadValues,
106
+ init_buffer,
107
+ init_dirname,
108
+ init_process
109
+ } from "./chunk.ZEOVK2FE.js";
110
+
111
+ // src/components/data-subsetter/data-subsetter.component.ts
112
+ init_dirname();
113
+ init_buffer();
114
+ init_process();
115
+
116
+ // src/lib/jupyter.ts
117
+ init_dirname();
118
+ init_buffer();
119
+ init_process();
120
+ var JUPYTER_LITE_URL = "https://gesdisc.github.io/jupyterlite/lab/index.html";
121
+ function openJupyterLiteWindow(readyCb) {
122
+ const jupyterWindow = window.open(JUPYTER_LITE_URL, "_blank");
123
+ if (!jupyterWindow) {
124
+ console.error("Failed to open JupyterLite!");
125
+ return;
126
+ }
127
+ window.addEventListener("message", (event) => readyCb(event, jupyterWindow), {
128
+ once: true
129
+ });
130
+ return jupyterWindow;
131
+ }
132
+ function sendDataToJupyterNotebook(type, data) {
133
+ openJupyterLiteWindow((event, jupyterWindow) => {
134
+ var _a;
135
+ if (((_a = event.data) == null ? void 0 : _a.type) !== "jupyterlite-ready") {
136
+ return;
137
+ }
138
+ console.log("JupyterLite is ready!");
139
+ jupyterWindow.postMessage(__spreadValues({ type }, data), "*");
140
+ });
141
+ }
142
+
143
+ // src/services/cmr-variable.service.ts
144
+ init_dirname();
145
+ init_buffer();
146
+ init_process();
147
+ var CmrVariableService = class {
148
+ /**
149
+ * given a name and a list of variables, return the variable with the matching name
150
+ */
151
+ getVariableByName(name, variables) {
152
+ var _a;
153
+ if (!variables || !((_a = variables.items) == null ? void 0 : _a.length)) {
154
+ return;
155
+ }
156
+ return variables.items.find((variable) => variable.umm.Name === name);
157
+ }
158
+ /**
159
+ * given a variable, return the variable's display label
160
+ * ex: Shortname = LongName (Units)
161
+ */
162
+ getVariableDisplayLabel(variable) {
163
+ const { Name = "", LongName = "", Units = "" } = variable.umm;
164
+ return `${Name}${Name && LongName && Name !== LongName ? ` = ${LongName}` : ""}${Units ? ` (${Units})` : ""}`;
165
+ }
166
+ };
167
+ var cmrVariableService = new CmrVariableService();
168
+ var cmr_variable_service_default = cmrVariableService;
169
+
170
+ // src/components/data-subsetter/data-subsetter.component.ts
171
+ var defaultOutputFormat = {
172
+ key: "application/x-netcdf4",
173
+ label: "NetCDF",
174
+ description: "Download data in NetCDF format"
175
+ };
176
+ 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, _getHarmonyRequestErrorMessage, getHarmonyRequestErrorMessage_fn, _renderHarmonyRequestError, renderHarmonyRequestError_fn, _handleExpandSearchClick;
177
+ var TerraDataSubsetter = class extends QueryClientMixin(TerraElement) {
178
+ constructor() {
179
+ super(...arguments);
180
+ __privateAdd(this, _renderFooterForDialog);
181
+ __privateAdd(this, _renderSizeInfo);
182
+ __privateAdd(this, _renderSubsetOptions);
183
+ __privateAdd(this, _renderSearchForCollection);
184
+ __privateAdd(this, _renderOutputFormatSelection);
185
+ __privateAdd(this, _renderDateRangeSelection);
186
+ __privateAdd(this, _getCollectionDateRange);
187
+ __privateAdd(this, _renderSpatialSelection);
188
+ __privateAdd(this, _renderVariableSelection);
189
+ __privateAdd(this, _renderDimensionGroup);
190
+ __privateAdd(this, _setDimensionValue);
191
+ __privateAdd(this, _renderDimensionSelection);
192
+ __privateAdd(this, _filterVariableTree);
193
+ __privateAdd(this, _handleVariableFilterChange);
194
+ __privateAdd(this, _buildVariableTree);
195
+ __privateAdd(this, _renderVariableTree);
196
+ __privateAdd(this, _getAllGroupPaths);
197
+ __privateAdd(this, _toggleGroupExpand);
198
+ __privateAdd(this, _toggleExpandCollapseAll);
199
+ __privateAdd(this, _toggleVariableSelection);
200
+ __privateAdd(this, _markFieldTouched);
201
+ __privateAdd(this, _resetDimensionSelection);
202
+ __privateAdd(this, _isDimensionExcluded);
203
+ __privateAdd(this, _getCommonSelectableDimensions);
204
+ __privateAdd(this, _renderJobStatus);
205
+ __privateAdd(this, _renderSelectedParams);
206
+ __privateAdd(this, _cancelJob);
207
+ __privateAdd(this, _getData);
208
+ __privateAdd(this, _touchAllFields);
209
+ __privateAdd(this, _numberOfFilesFoundEstimate);
210
+ __privateAdd(this, _getDocumentationLinks);
211
+ __privateAdd(this, _getDataLinks);
212
+ __privateAdd(this, _hasAtLeastOneSubsetOption);
213
+ __privateAdd(this, _hasSpatialSubset);
214
+ __privateAdd(this, _renderJobMessage);
215
+ __privateAdd(this, _getJobMessageText);
216
+ __privateAdd(this, _estimateJobSize);
217
+ __privateAdd(this, _refineParameters);
218
+ __privateAdd(this, _backToSubsetOptions);
219
+ __privateAdd(this, _viewRunningJob);
220
+ __privateAdd(this, _handleDownloadSelect);
221
+ __privateAdd(this, _downloadLinksAsTxt);
222
+ __privateAdd(this, _downloadPythonScript);
223
+ __privateAdd(this, _downloadEarthdataDownload);
224
+ __privateAdd(this, _handleJupyterNotebookClick);
225
+ __privateAdd(this, _renderAvailableTemporalRangeSection);
226
+ __privateAdd(this, _renderAvailableSpatialRangeSection);
227
+ __privateAdd(this, _renderDataAccessModeSelection);
228
+ __privateAdd(this, _getGiovanniValidationError);
229
+ __privateAdd(this, _getHarmonyRequestErrorMessage);
230
+ __privateAdd(this, _renderHarmonyRequestError);
231
+ this.showCollectionSearch = true;
232
+ this.showHistoryPanel = true;
233
+ this.isHistoryView = false;
234
+ this.selectedVariables = [];
235
+ this.selectedDimensionIndexes = {};
236
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
237
+ this.variableFilterText = "";
238
+ this.touchedFields = /* @__PURE__ */ new Set();
239
+ this.selectedDateRange = {
240
+ startDate: null,
241
+ endDate: null
242
+ };
243
+ this.selectedFormat = defaultOutputFormat;
244
+ this.cancelingGetData = false;
245
+ this.selectedTab = "web-links";
246
+ this.refineParameters = false;
247
+ this.collectionSearchType = "all";
248
+ this.collectionSearchLoading = false;
249
+ this.collectionLoading = false;
250
+ this.collectionAccordionOpen = true;
251
+ this.dataAccessMode = "original";
252
+ __privateAdd(this, _collectionController, new CollectionController(this, {
253
+ getCollectionEntryId: () => this.collectionEntryId,
254
+ getBearerToken: () => this.bearerToken
255
+ }));
256
+ __privateAdd(this, _authController, new AuthController(this));
257
+ __privateAdd(this, _harmonyRequestController, new HarmonyRequestController(this));
258
+ __privateAdd(this, _resetAllParameters, () => {
259
+ this.selectedVariables = [];
260
+ if (__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this)) {
261
+ __privateGet(this, _resetSpatialSelection).call(this);
262
+ }
263
+ this.selectedDateRange = {
264
+ startDate: null,
265
+ endDate: null
266
+ };
267
+ this.touchedFields = /* @__PURE__ */ new Set();
268
+ this.validationError = void 0;
269
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
270
+ this.requestUpdate();
271
+ });
272
+ __privateAdd(this, _handleDateChange, (e2) => {
273
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "date");
274
+ this.selectedDateRange = __spreadProps(__spreadValues({}, this.selectedDateRange), {
275
+ startDate: e2.detail.startDate,
276
+ endDate: e2.detail.endDate
277
+ });
278
+ });
279
+ __privateAdd(this, _resetDateRangeSelection, () => {
280
+ this.selectedDateRange = { startDate: null, endDate: null };
281
+ });
282
+ __privateAdd(this, _resetFormatSelection, () => {
283
+ var _a, _b;
284
+ if ((_b = (_a = this.collectionWithServices) == null ? void 0 : _a.configuredOutputFormats) == null ? void 0 : _b.length) {
285
+ const netcdfFormat = this.collectionWithServices.configuredOutputFormats.find(
286
+ (f) => f.key === "application/x-netcdf4" || f.key === "application/netcdf"
287
+ );
288
+ this.selectedFormat = netcdfFormat || this.collectionWithServices.configuredOutputFormats[0];
289
+ } else {
290
+ this.selectedFormat = defaultOutputFormat;
291
+ }
292
+ });
293
+ __privateAdd(this, _handleSpatialChange, (e2) => {
294
+ var _a;
295
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "spatial");
296
+ if (e2.detail.type === "point" /* POINT */) {
297
+ this.shapeGeoJson = void 0;
298
+ this.spatialLabel = void 0;
299
+ this.spatialSelection = e2.detail.latLng;
300
+ } else if (e2.detail.type === "bbox" /* BBOX */) {
301
+ this.shapeGeoJson = void 0;
302
+ this.spatialLabel = void 0;
303
+ this.spatialSelection = e2.detail.bounds;
304
+ } else if (e2.detail.type === "polygon" /* POLYGON */) {
305
+ this.spatialSelection = void 0;
306
+ if (e2.detail.geoJson) {
307
+ this.shapeGeoJson = e2.detail.geoJson;
308
+ this.spatialLabel = (_a = e2.detail.label) != null ? _a : "Shape selected";
309
+ } else if (e2.detail.latLngs.length > 0) {
310
+ const coords = e2.detail.latLngs.map((ll) => [ll.lng, ll.lat]);
311
+ coords.push(coords[0]);
312
+ this.shapeGeoJson = {
313
+ type: "FeatureCollection",
314
+ features: [
315
+ {
316
+ type: "Feature",
317
+ geometry: {
318
+ type: "Polygon",
319
+ coordinates: [coords]
320
+ },
321
+ properties: null
322
+ }
323
+ ]
324
+ };
325
+ this.spatialLabel = `Polygon (${e2.detail.latLngs.length} vertices)`;
326
+ } else {
327
+ this.shapeGeoJson = void 0;
328
+ this.spatialLabel = void 0;
329
+ }
330
+ } else {
331
+ this.spatialSelection = void 0;
332
+ this.shapeGeoJson = void 0;
333
+ this.spatialLabel = void 0;
334
+ }
335
+ });
336
+ /**
337
+ * resets the spatial selection back to the bounds of the collection
338
+ */
339
+ __privateAdd(this, _resetSpatialSelection, () => {
340
+ this.spatialSelection = void 0;
341
+ this.shapeGeoJson = void 0;
342
+ this.spatialLabel = void 0;
343
+ this.spatialPicker.clear();
344
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "spatial");
345
+ });
346
+ __privateAdd(this, _resetVariableSelection, () => {
347
+ this.selectedVariables = [];
348
+ __privateMethod(this, _resetDimensionSelection, resetDimensionSelection_fn).call(this);
349
+ });
350
+ __privateAdd(this, _handleExpandSearchClick, (event) => {
351
+ event.preventDefault();
352
+ __privateMethod(this, _backToSubsetOptions, backToSubsetOptions_fn).call(this);
353
+ });
354
+ }
355
+ jobIdChanged() {
356
+ if (this.jobId) {
357
+ __privateGet(this, _harmonyRequestController).startPollForJobStatus(this.jobId, {
358
+ bearerToken: this.bearerToken
359
+ });
360
+ this.dataAccessMode = "subset";
361
+ }
362
+ }
363
+ shortNameAndVersionChanged() {
364
+ if (this.shortName && this.version) {
365
+ this.collectionEntryId = `${this.shortName}_${this.version}`;
366
+ }
367
+ }
368
+ collectionEntryIdChanged() {
369
+ if (this.collectionEntryId) {
370
+ this.showCollectionSearch = false;
371
+ } else {
372
+ this.showCollectionSearch = true;
373
+ }
374
+ }
375
+ firstUpdated() {
376
+ if (this.collectionEntryId) {
377
+ this.showCollectionSearch = false;
378
+ }
379
+ if (this.jobId) {
380
+ __privateGet(this, _harmonyRequestController).startPollForJobStatus(this.jobId, {
381
+ bearerToken: this.bearerToken
382
+ });
383
+ this.dataAccessMode = "subset";
384
+ }
385
+ this.renderHistoryPanel();
386
+ }
387
+ updated(changedProps) {
388
+ var _a, _b, _c;
389
+ super.updated(changedProps);
390
+ const newCollectionInfo = __privateGet(this, _collectionController).collectionInfo;
391
+ if (newCollectionInfo !== this.collectionWithServices) {
392
+ this.collectionWithServices = newCollectionInfo;
393
+ }
394
+ const sampling = (_a = __privateGet(this, _collectionController).sampling) == null ? void 0 : _a.data;
395
+ if ((sampling == null ? void 0 : sampling.minDate) !== this.granuleMinDate) {
396
+ this.granuleMinDate = sampling == null ? void 0 : sampling.minDate;
397
+ }
398
+ if ((sampling == null ? void 0 : sampling.maxDate) !== this.granuleMaxDate) {
399
+ this.granuleMaxDate = sampling == null ? void 0 : sampling.maxDate;
400
+ }
401
+ const newGiovanni = __privateGet(this, _collectionController).giovanniVariables;
402
+ if (newGiovanni.size !== ((_c = (_b = this.giovanniConfiguredVariables) == null ? void 0 : _b.size) != null ? _c : 0)) {
403
+ this.giovanniConfiguredVariables = newGiovanni;
404
+ }
405
+ }
406
+ /** True if the collection contains sub-daily granules. Used by DataSubsetterController to format dates. */
407
+ get isSubDaily() {
408
+ return __privateGet(this, _collectionController).isSubDaily;
409
+ }
410
+ collectionChanged() {
411
+ const { startDate, endDate } = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
412
+ this.selectedDateRange = { startDate, endDate };
413
+ __privateGet(this, _resetFormatSelection).call(this);
414
+ this.collectionLoading = false;
415
+ this.collectionAccordionOpen = false;
416
+ }
417
+ granuleDatesChanged() {
418
+ const newRange = __spreadValues(__spreadValues({}, this.granuleMinDate && { startDate: this.granuleMinDate }), this.granuleMaxDate && { endDate: this.granuleMaxDate });
419
+ if (Object.keys(newRange).length > 0) {
420
+ this.selectedDateRange = __spreadValues(__spreadValues({}, this.selectedDateRange), newRange);
421
+ }
422
+ }
423
+ selectedFormatChanged() {
424
+ if (this.selectedFormat.isGiovanniFormat && this.selectedVariables.length > 1) {
425
+ this.selectedVariables = [this.selectedVariables[0]];
426
+ }
427
+ }
428
+ showDialog() {
429
+ var _a;
430
+ (_a = this.dialogElement) == null ? void 0 : _a.show();
431
+ }
432
+ render() {
433
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
434
+ const showJobStatus = (__privateGet(this, _harmonyRequestController).jobId || this.harmonyRequestError) && !this.refineParameters;
435
+ const showMinimizeButton = showJobStatus && !!this.dialog;
436
+ const title = (_c = (_b = (_a = this.collectionWithServices) == null ? void 0 : _a.collection) == null ? void 0 : _b.EntryTitle) != null ? _c : "Download Data";
437
+ const hasCapabilitiesError = !this.collectionWithServices && __privateGet(this, _collectionController).hasCapabilitiesError;
438
+ const content = b`
439
+ <div class="container">
440
+ ${hasCapabilitiesError ? b`
441
+ <terra-alert open variant="danger" appearance="white">
442
+ Failed to find the requested collection.
443
+ </terra-alert>
444
+ ` : b`
445
+ ${!this.dialog ? b`
446
+ <div class="header">
447
+ <h1>
448
+ <svg
449
+ class="download-icon"
450
+ viewBox="0 0 24 24"
451
+ fill="currentColor"
452
+ >
453
+ <path
454
+ d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
455
+ />
456
+ </svg>
457
+ ${title}
458
+ </h1>
459
+
460
+ ${showMinimizeButton ? b`<button
461
+ class="minimize-btn"
462
+ @click=${() => this.minimizeDialog()}
463
+ >
464
+ -
465
+ </button>` : A}
466
+ </div>
467
+ ` : A}
468
+ ${!this.isHistoryView && ((_e = (_d = this.collectionWithServices) == null ? void 0 : _d.services) == null ? void 0 : _e.length) ? b`
469
+ <div class="section">
470
+ ${__privateMethod(this, _renderDataAccessModeSelection, renderDataAccessModeSelection_fn).call(this)}
471
+ </div>
472
+ ` : A}
473
+ ${this.dataAccessMode === "original" ? b`
474
+ <div class="section">
475
+ <terra-data-access
476
+ short-name=${(_h = this.shortName) != null ? _h : (_g = (_f = this.collectionWithServices) == null ? void 0 : _f.collection) == null ? void 0 : _g.ShortName}
477
+ version=${(_k = this.version) != null ? _k : (_j = (_i = this.collectionWithServices) == null ? void 0 : _i.collection) == null ? void 0 : _j.Version}
478
+ ?footer-slot=${!!this.dialog}
479
+ >
480
+ ${this.dialog ? b`
481
+ <div
482
+ slot="footer"
483
+ style="margin-top: 15px;"
484
+ >
485
+ <slot
486
+ name="data-access-footer"
487
+ ></slot>
488
+ </div>
489
+ ` : A}
490
+ </terra-data-access>
491
+ </div>
492
+ ` : showJobStatus ? __privateMethod(this, _renderJobStatus, renderJobStatus_fn).call(this) : __privateMethod(this, _renderSubsetOptions, renderSubsetOptions_fn).call(this)}
493
+ `}
494
+ </div>
495
+ `;
496
+ if (this.dialog) {
497
+ return b`
498
+ <terra-dialog id=${this.dialog} style="--title-font-size: 16px;">
499
+ <span
500
+ slot="label"
501
+ style="display: flex; align-items: center; gap: 8px; color: var(--terra-text-brand-on-secondary, #1c67e3); font-weight: 600;"
502
+ >
503
+ <svg
504
+ class="download-icon"
505
+ viewBox="0 0 24 24"
506
+ fill="currentColor"
507
+ style="width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex-shrink: 0;"
508
+ >
509
+ <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
510
+ </svg>
511
+ ${title}
512
+ </span>
513
+ ${showMinimizeButton ? b`
514
+ <button
515
+ slot="header-actions"
516
+ class="minimize-btn"
517
+ @click=${() => {
518
+ var _a2;
519
+ return (_a2 = this.dialogElement) == null ? void 0 : _a2.hide();
520
+ }}
521
+ aria-label="Minimize"
522
+ >
523
+ -
524
+ </button>
525
+ ` : A}
526
+ <slot name="dialog-header-content"></slot>
527
+ ${content} ${__privateMethod(this, _renderFooterForDialog, renderFooterForDialog_fn).call(this)}
528
+ </terra-dialog>
529
+ `;
530
+ }
531
+ return b`
532
+ <div class="container">
533
+ <div class="header">
534
+ <h1>
535
+ <svg
536
+ class="download-icon"
537
+ viewBox="0 0 24 24"
538
+ fill="currentColor"
539
+ >
540
+ <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
541
+ </svg>
542
+ ${title}
543
+ </h1>
544
+
545
+ ${showMinimizeButton ? b`<button
546
+ class="minimize-btn"
547
+ @click=${() => this.minimizeDialog()}
548
+ >
549
+ -
550
+ </button>` : A}
551
+ </div>
552
+ ${hasCapabilitiesError ? b`
553
+ <terra-alert open variant="danger" appearance="white">
554
+ Failed to find the requested collection.
555
+ </terra-alert>
556
+ ` : b`
557
+ ${!this.isHistoryView && ((_m = (_l = this.collectionWithServices) == null ? void 0 : _l.services) == null ? void 0 : _m.length) ? b`
558
+ <div class="section">
559
+ ${__privateMethod(this, _renderDataAccessModeSelection, renderDataAccessModeSelection_fn).call(this)}
560
+ </div>
561
+ ` : A}
562
+ ${this.dataAccessMode === "original" ? b`
563
+ <div class="section">
564
+ <terra-data-access
565
+ short-name=${(_p = this.shortName) != null ? _p : (_o = (_n = this.collectionWithServices) == null ? void 0 : _n.collection) == null ? void 0 : _o.ShortName}
566
+ version=${(_s = this.version) != null ? _s : (_r = (_q = this.collectionWithServices) == null ? void 0 : _q.collection) == null ? void 0 : _r.Version}
567
+ ?footer-slot=${!!this.dialog}
568
+ >
569
+ ${this.dialog ? b`
570
+ <div
571
+ slot="footer"
572
+ style="margin-top: 15px;"
573
+ >
574
+ <slot
575
+ name="data-access-footer"
576
+ ></slot>
577
+ </div>
578
+ ` : A}
579
+ </terra-data-access>
580
+ </div>
581
+ ` : showJobStatus ? __privateMethod(this, _renderJobStatus, renderJobStatus_fn).call(this) : __privateMethod(this, _renderSubsetOptions, renderSubsetOptions_fn).call(this)}
582
+ `}
583
+ </div>
584
+ `;
585
+ }
586
+ minimizeDialog() {
587
+ var _a;
588
+ (_a = this.closest("terra-dialog")) == null ? void 0 : _a.hide();
589
+ }
590
+ handleCollectionSearch(searchTerm) {
591
+ this.collectionSearchQuery = searchTerm;
592
+ }
593
+ renderHistoryPanel() {
594
+ const existingHistoryPanel = document.querySelector(
595
+ "terra-data-subsetter-history"
596
+ );
597
+ if (!existingHistoryPanel && this.bearerToken) {
598
+ const historyPanel = document.createElement(
599
+ "terra-data-subsetter-history"
600
+ );
601
+ if (this.bearerToken) {
602
+ historyPanel.setAttribute("bearer-token", this.bearerToken);
603
+ }
604
+ if (this.environment) {
605
+ historyPanel.setAttribute("environment", this.environment);
606
+ }
607
+ document.body.appendChild(historyPanel);
608
+ }
609
+ }
610
+ };
611
+ _collectionController = new WeakMap();
612
+ _authController = new WeakMap();
613
+ _harmonyRequestController = new WeakMap();
614
+ _renderFooterForDialog = new WeakSet();
615
+ renderFooterForDialog_fn = function() {
616
+ const showJobStatus = (__privateGet(this, _harmonyRequestController).jobId || this.harmonyRequestError) && !this.refineParameters;
617
+ if (showJobStatus) {
618
+ if (!__privateGet(this, _harmonyRequestController).jobId) {
619
+ return A;
620
+ }
621
+ return b`
622
+ <div slot="footer" class="footer">
623
+ ${__privateGet(this, _harmonyRequestController).status === "successful" /* SUCCESSFUL */ || __privateGet(this, _harmonyRequestController).status === "complete_with_errors" /* COMPLETE_WITH_ERRORS */ ? b`
624
+ <div
625
+ style="display: flex; align-items: center; gap: 8px;"
626
+ >
627
+ <terra-dropdown
628
+ @terra-select=${__privateMethod(this, _handleDownloadSelect, handleDownloadSelect_fn)}
629
+ >
630
+ <terra-button slot="trigger" caret>
631
+ Download Options
632
+ </terra-button>
633
+ <terra-menu>
634
+ <terra-menu-item value="file-list">
635
+ <svg
636
+ slot="prefix"
637
+ viewBox="0 0 24 24"
638
+ width="16"
639
+ height="16"
640
+ style="width: 16px; height: 16px;"
641
+ >
642
+ <path
643
+ fill="currentColor"
644
+ 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"
645
+ />
646
+ </svg>
647
+ File List
648
+ </terra-menu-item>
649
+ <terra-menu-item value="python-script">
650
+ <svg
651
+ slot="prefix"
652
+ viewBox="0 0 128 128"
653
+ width="16"
654
+ height="16"
655
+ style="width: 16px; height: 16px;"
656
+ >
657
+ <path
658
+ fill="currentColor"
659
+ 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"
660
+ ></path>
661
+ </svg>
662
+ Python Script
663
+ </terra-menu-item>
664
+ <terra-menu-item value="earthdata-download">
665
+ <svg
666
+ slot="prefix"
667
+ viewBox="0 0 64 64"
668
+ fill="none"
669
+ width="16"
670
+ height="16"
671
+ style="width: 16px; height: 16px;"
672
+ >
673
+ <circle
674
+ cx="32"
675
+ cy="32"
676
+ r="28"
677
+ fill="currentColor"
678
+ />
679
+ <path
680
+ d="M32 14v26M32 40l-9-9M32 40l9-9"
681
+ stroke="#fff"
682
+ stroke-width="4"
683
+ stroke-linecap="round"
684
+ stroke-linejoin="round"
685
+ fill="none"
686
+ />
687
+ </svg>
688
+ Earthdata Download
689
+ </terra-menu-item>
690
+ </terra-menu>
691
+ </terra-dropdown>
692
+
693
+ <!--
694
+ <terra-button
695
+ outline
696
+ @click=${() => __privateMethod(this, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn).call(this)}
697
+ >
698
+ <terra-icon
699
+ name="outline-code-bracket"
700
+ library="heroicons"
701
+ font-size="1.5em"
702
+ style="margin-right: 5px;"
703
+ ></terra-icon>
704
+ Open in Jupyter Notebook
705
+ </terra-button>
706
+ -->
707
+ </div>
708
+ ` : A}
709
+ ${__privateGet(this, _harmonyRequestController).status === "running" /* RUNNING */ ? b`<button
710
+ class="btn btn-success"
711
+ @click=${__privateMethod(this, _cancelJob, cancelJob_fn)}
712
+ ?disabled=${this.cancelingGetData}
713
+ >
714
+ ${this.cancelingGetData ? "Canceling..." : "Cancel request"}
715
+ </button>` : A}
716
+
717
+ <div class="job-info">
718
+ Job ID:
719
+ <span class="job-id">
720
+ ${this.bearerToken ? b`<a
721
+ href="https://harmony.earthdata.nasa.gov/jobs/${__privateGet(this, _harmonyRequestController).jobId}"
722
+ target="_blank"
723
+ >${__privateGet(this, _harmonyRequestController).jobId}</a
724
+ >` : __privateGet(this, _harmonyRequestController).jobId}
725
+ </span>
726
+ <span class="info-icon">?</span>
727
+ </div>
728
+ </div>
729
+ `;
730
+ }
731
+ if (this.dataAccessMode === "subset") {
732
+ return b`
733
+ <div slot="footer" class="footer">
734
+ <button
735
+ class="btn btn-secondary"
736
+ @click=${__privateGet(this, _resetAllParameters)}
737
+ >
738
+ Reset All
739
+ </button>
740
+ <div>
741
+ <button class="btn btn-primary" @click=${__privateMethod(this, _getData, getData_fn)}>
742
+ Get Data
743
+ </button>
744
+ ${this.jobId ? b`
745
+ <terra-button
746
+ variant="default"
747
+ @click=${__privateMethod(this, _viewRunningJob, viewRunningJob_fn)}
748
+ >
749
+ View Running Job
750
+ </terra-button>
751
+ ` : A}
752
+ </div>
753
+ </div>
754
+ `;
755
+ }
756
+ return A;
757
+ };
758
+ _renderSizeInfo = new WeakSet();
759
+ renderSizeInfo_fn = function(estimates) {
760
+ if (!__privateGet(this, _authController).state.isLoading && !__privateGet(this, _authController).state.user) {
761
+ return b`
762
+ <div class="size-info warning">
763
+ <terra-login>
764
+ <h2 slot="logged-out">Limited access as a guest.</h2>
765
+
766
+ <p slot="logged-out">
767
+ Your results will be capped at 10 links. Log in for full
768
+ access to all data.
769
+ </p>
770
+ </terra-login>
771
+ </div>
772
+ `;
773
+ }
774
+ return b`<div
775
+ class="size-info ${estimates.links >= 150 ? "warning" : "neutral"}"
776
+ >
777
+ <h2>Estimated size of results</h2>
778
+ <div class="size-stats">
779
+ ${estimates.days.toLocaleString()} days,
780
+ ${estimates.links.toLocaleString()} links
781
+ </div>
782
+ ${estimates.links >= 150 ? b`<div class="size-warning">
783
+ You are about to retrieve ${estimates.links.toLocaleString()}
784
+ file links from the archive. You may
785
+ <strong>speed up the request</strong> by limiting the scope of
786
+ your search.
787
+ </div>` : A}
788
+ </div>`;
789
+ };
790
+ _renderSubsetOptions = new WeakSet();
791
+ renderSubsetOptions_fn = function() {
792
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
793
+ const estimates = __privateMethod(this, _estimateJobSize, estimateJobSize_fn).call(this);
794
+ const hasSubsetOption = __privateMethod(this, _hasAtLeastOneSubsetOption, hasAtLeastOneSubsetOption_fn).call(this);
795
+ const collection = (_a = this.collectionWithServices) == null ? void 0 : _a.collection;
796
+ const temporalExtents = collection == null ? void 0 : collection.TemporalExtents;
797
+ const spatialExtent = collection == null ? void 0 : collection.SpatialExtent;
798
+ const showTemporalSection = temporalExtents == null ? void 0 : temporalExtents.length;
799
+ const showSpatialSection = (_c = (_b = spatialExtent == null ? void 0 : spatialExtent.HorizontalSpatialDomain) == null ? void 0 : _b.Geometry) == null ? void 0 : _c.BoundingRectangles;
800
+ return b`
801
+ ${this.dataAccessMode === "original" ? A : hasSubsetOption ? b`
802
+ ${hasSubsetOption && estimates ? __privateMethod(this, _renderSizeInfo, renderSizeInfo_fn).call(this, estimates) : A}
803
+ ${this.showCollectionSearch ? b`
804
+ <div class="section">
805
+ <h2 class="section-title">
806
+ Select Data Collection
807
+ </h2>
808
+
809
+ ${__privateMethod(this, _renderSearchForCollection, renderSearchForCollection_fn).call(this)}
810
+ </div>
811
+ ` : A}
812
+ ${((_e = (_d = this.collectionWithServices) == null ? void 0 : _d.summary.outputFormats) == null ? void 0 : _e.length) && hasSubsetOption ? b`
813
+ <div class="section">
814
+ <h2 class="section-title">Output Format</h2>
815
+
816
+ ${__privateMethod(this, _renderOutputFormatSelection, renderOutputFormatSelection_fn).call(this)}
817
+ </div>
818
+ ` : A}
819
+ <div class="section">
820
+ <h2 class="section-title">Subset Options</h2>
821
+ <p style="color: #666; margin-bottom: 16px;">
822
+ Generate file links that support spatial subsetting,
823
+ date/time range selection, and variable selection.
824
+ </p>
825
+
826
+ ${((_f = this.collectionWithServices) == null ? void 0 : _f.summary.subsetting.temporal) ? __privateMethod(this, _renderDateRangeSelection, renderDateRangeSelection_fn).call(this) : A}
827
+ ${__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this) ? __privateMethod(this, _renderSpatialSelection, renderSpatialSelection_fn).call(this) : A}
828
+ ${((_g = this.collectionWithServices) == null ? void 0 : _g.summary.subsetting.variable) ? __privateMethod(this, _renderVariableSelection, renderVariableSelection_fn).call(this) : A}
829
+ ${((_h = this.collectionWithServices) == null ? void 0 : _h.summary.subsetting.variable) && isFeatureEnabled(
830
+ KnownFeatureFlags.DIMENSION_SUBSET,
831
+ this.features
832
+ ) ? __privateMethod(this, _renderDimensionSelection, renderDimensionSelection_fn).call(this) : A}
833
+ </div>
834
+ ` : b`
835
+ ${showTemporalSection && !((_i = this.collectionWithServices) == null ? void 0 : _i.summary.subsetting.temporal) ? __privateMethod(this, _renderAvailableTemporalRangeSection, renderAvailableTemporalRangeSection_fn).call(this) : A}
836
+ ${showSpatialSection && !__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this) ? __privateMethod(this, _renderAvailableSpatialRangeSection, renderAvailableSpatialRangeSection_fn).call(this) : A}
837
+ `}
838
+ ${!hasSubsetOption && estimates ? b`
839
+ <div
840
+ class="neutral-info"
841
+ style="margin-top: 24px; padding: 16px 20px; border-radius: 6px; background: #f8f9fa; color: #555; border: 1px solid #ccc;"
842
+ >
843
+ <strong>Estimated result size:</strong><br />
844
+ Your request will return approximately
845
+ <b>${estimates.links.toLocaleString()}</b> files covering
846
+ <b>${estimates.days.toLocaleString()}</b> days.
847
+ </div>
848
+ ` : A}
849
+ ${this.dataAccessMode === "subset" && !this.dialog ? b`
850
+ <div class="footer">
851
+ <button
852
+ class="btn btn-secondary"
853
+ @click=${__privateGet(this, _resetAllParameters)}
854
+ >
855
+ Reset All
856
+ </button>
857
+ <div>
858
+ <button class="btn btn-primary" @click=${__privateMethod(this, _getData, getData_fn)}>
859
+ Get Data
860
+ </button>
861
+ ${this.jobId ? b`
862
+ <terra-button
863
+ variant="default"
864
+ @click=${__privateMethod(this, _viewRunningJob, viewRunningJob_fn)}
865
+ >
866
+ View Running Job
867
+ </terra-button>
868
+ ` : A}
869
+ </div>
870
+ </div>
871
+ ` : A}
872
+ `;
873
+ };
874
+ _resetAllParameters = new WeakMap();
875
+ _renderSearchForCollection = new WeakSet();
876
+ renderSearchForCollection_fn = function() {
877
+ var _a, _b;
878
+ let placeholder = "Search all types of resources (e.g. rainfall, GPM, hurricanes, etc.)";
879
+ if (this.collectionSearchType === "collection") {
880
+ placeholder = "Search collections (e.g. AQUA, GPM_3IMERGH, etc.)";
881
+ }
882
+ if (this.collectionSearchType === "variable") {
883
+ placeholder = "Search variables (e.g. rainfall, hurricanes, etc.)";
884
+ }
885
+ return b`
886
+ <terra-accordion .open=${this.collectionAccordionOpen}>
887
+ <div slot="summary">
888
+ <span class="accordion-title">Collection:</span>
889
+ </div>
890
+
891
+ <div
892
+ slot="summary-right"
893
+ style="display: flex; align-items: center; gap: 10px"
894
+ >
895
+ ${this.collectionEntryId ? b` <span
896
+ class="accordion-value"
897
+ id="selected-collection-display"
898
+ >${this.collectionEntryId}</span
899
+ >
900
+
901
+ <button
902
+ class="reset-btn"
903
+ @click=${() => this.collectionEntryId = void 0}
904
+ >
905
+ Reset
906
+ </button>` : A}
907
+ </div>
908
+
909
+ <div class="search-tabs-mini">
910
+ <button
911
+ class="search-tab-mini ${this.collectionSearchType === "all" ? "active" : ""}"
912
+ @click=${() => this.collectionSearchType = "all"}
913
+ >
914
+ All
915
+ </button>
916
+ <button
917
+ class="search-tab-mini ${this.collectionSearchType === "collection" ? "active" : ""}"
918
+ @click=${() => this.collectionSearchType = "collection"}
919
+ >
920
+ Collections
921
+ </button>
922
+ <button
923
+ class="search-tab-mini ${this.collectionSearchType === "variable" ? "active" : ""}"
924
+ @click=${() => this.collectionSearchType = "variable"}
925
+ >
926
+ Variables
927
+ </button>
928
+ </div>
929
+
930
+ <div class="search-container-mini">
931
+ <input
932
+ type="text"
933
+ class="search-input-mini"
934
+ id="search-input"
935
+ placeholder=${placeholder}
936
+ @input="${(e2) => this.handleCollectionSearch(
937
+ e2.target.value
938
+ )}"
939
+ />
940
+
941
+ <button class="search-button-mini">
942
+ <svg
943
+ class="search-icon-mini"
944
+ viewBox="0 0 24 24"
945
+ fill="currentColor"
946
+ >
947
+ <path
948
+ 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"
949
+ />
950
+ </svg>
951
+ Search
952
+ </button>
953
+ </div>
954
+
955
+ <!-- TODO: it may be nice to have a quick search, perhaps by recent trends?
956
+ <div class="quick-links-mini">
957
+ <a href="#" class="quick-link-mini" onclick="quickSearch('GPM')"
958
+ >GPM Precipitation</a
959
+ >
960
+ <a href="#" class="quick-link-mini" onclick="quickSearch('MODIS')"
961
+ >MODIS Data</a
962
+ >
963
+ <a
964
+ href="#"
965
+ class="quick-link-mini"
966
+ onclick="quickSearch('Landsat')"
967
+ >Landsat Imagery</a
968
+ >
969
+ <a href="#" class="quick-link-mini" onclick="quickSearch('AIRS')"
970
+ >Atmospheric Data</a
971
+ >
972
+ </div>
973
+ -->
974
+
975
+ <div id="search-results-section" class="search-results-section">
976
+ ${this.collectionSearchLoading ? b`
977
+ <div id="loading-mini" class="loading-mini">
978
+ <div class="spinner-mini"></div>
979
+ <div>Searching NASA CMR...</div>
980
+ </div>
981
+ ` : ((_a = this.collectionSearchResults) == null ? void 0 : _a.length) ? b` <div
982
+ id="results-container-mini"
983
+ class="results-container-mini"
984
+ >
985
+ ${(_b = this.collectionSearchResults) == null ? void 0 : _b.map(
986
+ (item) => b`
987
+ <div
988
+ class="result-item-mini"
989
+ @click=${() => {
990
+ this.collectionEntryId = item.collectionEntryId;
991
+ this.collectionAccordionOpen = false;
992
+ this.collectionLoading = true;
993
+ if (item.type === "variable") {
994
+ this.selectedVariables = [
995
+ {
996
+ name: item.entryId,
997
+ href: "",
998
+ conceptId: item.conceptId
999
+ }
1000
+ ];
1001
+ }
1002
+ this.requestUpdate();
1003
+ }}
1004
+ style="cursor: pointer;"
1005
+ >
1006
+ <div class="result-title-mini">
1007
+ ${item.title}
1008
+ </div>
1009
+ <div class="result-id-mini">
1010
+ ${item.entryId}
1011
+ </div>
1012
+ <div class="result-description-mini">
1013
+ ${item.summary || item.title}
1014
+ </div>
1015
+ <div class="result-meta-mini">
1016
+ <span>📅 2000-02-24 - ongoing</span>
1017
+ <span>🌍 Global</span>
1018
+ <span>🏢 ${item.provider}</span>
1019
+ ${item.type === "variable" ? b` <span
1020
+ >📊
1021
+ ${item.collectionEntryId}</span
1022
+ >` : A}
1023
+ <span class="tag-mini"
1024
+ >${item.type.toUpperCase()}</span
1025
+ >
1026
+ </div>
1027
+ </div>
1028
+ `
1029
+ )}
1030
+ </div>` : this.collectionSearchResults && this.collectionSearchResults.length === 0 ? b`<div id="no-results-mini" class="no-results-mini">
1031
+ <p>
1032
+ No results found for
1033
+ '${this.collectionSearchQuery}'. Try adjusting
1034
+ your search term.
1035
+ </p>
1036
+ </div>` : A}
1037
+ </div>
1038
+ </terra-accordion>
1039
+
1040
+ ${this.collectionLoading ? b`
1041
+ <div
1042
+ class="collection-loading-bar"
1043
+ style="display: flex; align-items: center; gap: 10px; margin: 16px 0;"
1044
+ >
1045
+ <span
1046
+ class="loading-spinner"
1047
+ 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;"
1048
+ ></span>
1049
+ Retrieving collection, please wait...
1050
+ </div>
1051
+ <style>
1052
+ @keyframes spin {
1053
+ 0% {
1054
+ transform: rotate(0deg);
1055
+ }
1056
+ 100% {
1057
+ transform: rotate(360deg);
1058
+ }
1059
+ }
1060
+ </style>
1061
+ ` : A}
1062
+ `;
1063
+ };
1064
+ _renderOutputFormatSelection = new WeakSet();
1065
+ renderOutputFormatSelection_fn = function() {
1066
+ return b`
1067
+ <terra-accordion>
1068
+ <div slot="summary">
1069
+ <span class="accordion-title">File Format:</span>
1070
+ </div>
1071
+
1072
+ <div
1073
+ slot="summary-right"
1074
+ style="display: flex; align-items: center; gap: 10px;"
1075
+ >
1076
+ <span>${this.selectedFormat.label}</span>
1077
+
1078
+ <button class="reset-btn" @click=${__privateGet(this, _resetFormatSelection)}>
1079
+ Reset
1080
+ </button>
1081
+ </div>
1082
+
1083
+ <div class="accordion-content" style="margin-top: 12px;">
1084
+ ${(() => {
1085
+ var _a;
1086
+ return (((_a = this.collectionWithServices) == null ? void 0 : _a.configuredOutputFormats) || []).map(
1087
+ (format) => b`
1088
+ <label
1089
+ style="display: flex; align-items: center; gap: 8px; padding: 5px;"
1090
+ >
1091
+ <input
1092
+ type="radio"
1093
+ name="output-format"
1094
+ value="${format}"
1095
+ .checked=${this.selectedFormat === format}
1096
+ @change=${() => this.selectedFormat = format}
1097
+ />
1098
+ ${format.label}
1099
+ </label>
1100
+ `
1101
+ );
1102
+ })()}
1103
+ </div>
1104
+ </terra-accordion>
1105
+ `;
1106
+ };
1107
+ _renderDateRangeSelection = new WeakSet();
1108
+ renderDateRangeSelection_fn = function() {
1109
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1110
+ const { startDate: defaultStartDate, endDate: defaultEndDate } = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
1111
+ const startDate = (_b = (_a = this.selectedDateRange.startDate) != null ? _a : this.granuleMinDate) != null ? _b : defaultStartDate;
1112
+ const endDate = (_d = (_c = this.selectedDateRange.endDate) != null ? _c : this.granuleMaxDate) != null ? _d : defaultEndDate;
1113
+ const showError = this.touchedFields.has("date") && (!this.selectedDateRange.startDate || !this.selectedDateRange.endDate);
1114
+ return b`
1115
+ <terra-accordion>
1116
+ <div slot="summary">
1117
+ <span class="accordion-title">Refine Date Range:</span>
1118
+ </div>
1119
+
1120
+ <div
1121
+ slot="summary-right"
1122
+ style="display: flex; align-items: center; gap: 10px;"
1123
+ >
1124
+ ${showError ? b`<span class="accordion-value error"
1125
+ >Please select a date range</span
1126
+ >` : this.touchedFields.has("date") && startDate && endDate ? b`<span class="accordion-value"
1127
+ >${startDate} to ${endDate}</span
1128
+ >` : A}
1129
+ <button class="reset-btn" @click=${__privateGet(this, _resetDateRangeSelection)}>
1130
+ Reset
1131
+ </button>
1132
+ </div>
1133
+
1134
+ <div style="width: 300px">
1135
+ <terra-date-picker
1136
+ allow-input
1137
+ inline
1138
+ range
1139
+ split-inputs
1140
+ show-presets
1141
+ ?enable-time=${this.isSubDaily}
1142
+ start-label="Start Date"
1143
+ end-label="End Date"
1144
+ .minDate=${(_e = this.granuleMinDate) != null ? _e : defaultStartDate}
1145
+ .maxDate=${(_f = this.granuleMaxDate) != null ? _f : defaultEndDate}
1146
+ .startDate=${(_g = this.selectedDateRange.startDate) != null ? _g : this.granuleMinDate}
1147
+ .endDate=${(_h = this.selectedDateRange.endDate) != null ? _h : this.granuleMaxDate}
1148
+ .useEndOfDay=${!this.selectedFormat.isGiovanniFormat}
1149
+ @terra-date-range-change=${__privateGet(this, _handleDateChange)}
1150
+ ></terra-date-picker>
1151
+ </div>
1152
+
1153
+ <div style="display: flex; gap: 16px; margin-top: 15px;">
1154
+ <span
1155
+ ><strong>Available Range:</strong> ${defaultStartDate} to
1156
+ ${defaultEndDate}</span
1157
+ >
1158
+ ${this.isSubDaily ? b`<span
1159
+ ><strong>Note:</strong> All dates and times are in
1160
+ UTC.</span
1161
+ >` : A}
1162
+ </div>
1163
+ </terra-accordion>
1164
+ `;
1165
+ };
1166
+ _handleDateChange = new WeakMap();
1167
+ _resetDateRangeSelection = new WeakMap();
1168
+ _resetFormatSelection = new WeakMap();
1169
+ _getCollectionDateRange = new WeakSet();
1170
+ getCollectionDateRange_fn = function() {
1171
+ var _a, _b;
1172
+ const samplingMinDate = this.granuleMinDate;
1173
+ const samplingMaxDate = this.granuleMaxDate;
1174
+ if (samplingMinDate && samplingMaxDate) {
1175
+ return {
1176
+ startDate: samplingMinDate.slice(0, 10),
1177
+ endDate: samplingMaxDate.slice(0, 10)
1178
+ };
1179
+ }
1180
+ const temporalExtents = (_b = (_a = this.collectionWithServices) == null ? void 0 : _a.collection) == null ? void 0 : _b.TemporalExtents;
1181
+ if (!(temporalExtents == null ? void 0 : temporalExtents.length))
1182
+ return {
1183
+ startDate: null,
1184
+ endDate: null
1185
+ };
1186
+ let minStart = null;
1187
+ let maxEnd = null;
1188
+ const today = /* @__PURE__ */ new Date();
1189
+ for (const temporal of temporalExtents) {
1190
+ for (const range of temporal.RangeDateTimes || []) {
1191
+ const start = new Date(range.BeginningDateTime);
1192
+ let end;
1193
+ if (temporal.EndsAtPresentFlag || !range.EndingDateTime) {
1194
+ end = today;
1195
+ } else {
1196
+ end = new Date(range.EndingDateTime);
1197
+ }
1198
+ if (!minStart || start < minStart)
1199
+ minStart = start;
1200
+ if (!maxEnd || end > maxEnd)
1201
+ maxEnd = end;
1202
+ }
1203
+ }
1204
+ return {
1205
+ startDate: minStart ? minStart.toISOString().slice(0, 10) : null,
1206
+ endDate: maxEnd ? maxEnd.toISOString().slice(0, 10) : null
1207
+ };
1208
+ };
1209
+ _renderSpatialSelection = new WeakSet();
1210
+ renderSpatialSelection_fn = function() {
1211
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
1212
+ const showError = this.touchedFields.has("spatial") && !this.spatialSelection && !this.shapeGeoJson;
1213
+ const spatialString = (_c = (_b = this.spatialLabel) != null ? _b : (_a = this.spatialSelection) == null ? void 0 : _a.toString()) != null ? _c : void 0;
1214
+ const spatialInitialValue = (_e = (_d = this.spatialSelection) == null ? void 0 : _d.toString()) != null ? _e : void 0;
1215
+ return b`
1216
+ <terra-accordion>
1217
+ <div slot="summary">
1218
+ <span class="accordion-title">Refine Region:</span>
1219
+ </div>
1220
+
1221
+ <div
1222
+ slot="summary-right"
1223
+ style="display: flex; align-items: center; gap: 10px;"
1224
+ >
1225
+ ${showError ? b`<span class="accordion-value error"
1226
+ >Please select a region</span
1227
+ >` : spatialString ? b`<span class="accordion-value"
1228
+ >${spatialString}</span
1229
+ >` : A}
1230
+ <button class="reset-btn" @click=${__privateGet(this, _resetSpatialSelection)}>
1231
+ Reset
1232
+ </button>
1233
+ </div>
1234
+ <div class="accordion-content">
1235
+ <terra-spatial-picker
1236
+ part="spatial-picker"
1237
+ inline
1238
+ hide-label
1239
+ .spatialConstraints=${__privateGet(this, _collectionController).spatialConstraints || "-180, -90, 180, 90"}
1240
+ .initialValue=${spatialInitialValue}
1241
+ ?has-shape-selector=${(_i = (_h = (_g = (_f = this.collectionWithServices) == null ? void 0 : _f.summary) == null ? void 0 : _g.subsetting) == null ? void 0 : _h.shape) != null ? _i : false}
1242
+ ?show-polygon-selection=${(_m = (_l = (_k = (_j = this.collectionWithServices) == null ? void 0 : _j.summary) == null ? void 0 : _k.subsetting) == null ? void 0 : _l.shape) != null ? _m : false}
1243
+ @terra-map-change=${__privateGet(this, _handleSpatialChange)}
1244
+ ></terra-spatial-picker>
1245
+ <div
1246
+ style="display: flex; gap: 16px; margin-top: 15px; color: #31708f;"
1247
+ >
1248
+ <span
1249
+ ><strong>Available Range:</strong> ${__privateGet(this, _collectionController).spatialConstraints}</span
1250
+ >
1251
+ </div>
1252
+ </div>
1253
+ </terra-accordion>
1254
+ `;
1255
+ };
1256
+ _handleSpatialChange = new WeakMap();
1257
+ _resetSpatialSelection = new WeakMap();
1258
+ _renderVariableSelection = new WeakSet();
1259
+ renderVariableSelection_fn = function() {
1260
+ var _a;
1261
+ const variables = ((_a = this.collectionWithServices) == null ? void 0 : _a.variables) || [];
1262
+ const giovanniError = this.touchedFields.has("variables") && __privateMethod(this, _getGiovanniValidationError, getGiovanniValidationError_fn).call(this);
1263
+ const basicError = this.touchedFields.has("variables") && this.selectedVariables.length === 0;
1264
+ const showError = giovanniError || basicError;
1265
+ const errorMessage = giovanniError || (basicError ? "Please select at least one variable" : "");
1266
+ const tree = __privateMethod(this, _buildVariableTree, buildVariableTree_fn).call(this, variables);
1267
+ const allGroups = __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, tree);
1268
+ const allExpanded = allGroups.length > 0 && allGroups.every((g) => this.expandedVariableGroups.has(g));
1269
+ return b`
1270
+ <terra-accordion>
1271
+ <div slot="summary">
1272
+ <span class="accordion-title">Select Variables:</span>
1273
+ </div>
1274
+ <div
1275
+ slot="summary-right"
1276
+ style="display: flex; align-items: center; gap: 10px;"
1277
+ >
1278
+ ${showError ? b`<span class="accordion-value error"
1279
+ >${errorMessage}</span
1280
+ >` : this.selectedVariables.length ? b`<span class="accordion-value"
1281
+ >${this.selectedVariables.length} selected</span
1282
+ >` : A}
1283
+
1284
+ <button class="reset-btn" @click=${__privateGet(this, _resetVariableSelection)}>
1285
+ Reset
1286
+ </button>
1287
+ </div>
1288
+ <div class="accordion-content">
1289
+ <terra-input
1290
+ label="Filter variables"
1291
+ placeholder="Search by variable name..."
1292
+ .value=${this.variableFilterText}
1293
+ @input=${(e2) => {
1294
+ const input = e2.target;
1295
+ this.variableFilterText = input.value;
1296
+ __privateMethod(this, _handleVariableFilterChange, handleVariableFilterChange_fn).call(this);
1297
+ }}
1298
+ style="margin-bottom: 10px;"
1299
+ ></terra-input>
1300
+ <button
1301
+ class="reset-btn"
1302
+ style="margin-bottom: 10px;"
1303
+ @click=${() => __privateMethod(this, _toggleExpandCollapseAll, toggleExpandCollapseAll_fn).call(this, tree)}
1304
+ >
1305
+ ${allExpanded ? "Collapse Tree" : "Expand Tree"}
1306
+ </button>
1307
+
1308
+ ${this.selectedFormat.isGiovanniFormat && this.giovanniConfiguredVariables ? b`
1309
+ <terra-alert
1310
+ open
1311
+ appearance="white"
1312
+ style="margin: 10px 0"
1313
+ >
1314
+ <terra-icon
1315
+ slot="icon"
1316
+ name="outline-information-circle"
1317
+ library="heroicons"
1318
+ ></terra-icon>
1319
+ Only certain variables are supported for the
1320
+ selected output format. (Giovanni service)
1321
+ </terra-alert>
1322
+ ` : A}
1323
+ ${variables.length === 0 ? b`<p style="color: #666; font-style: italic;">
1324
+ No variables available for this collection.
1325
+ </p>` : __privateMethod(this, _renderVariableTree, renderVariableTree_fn).call(this, __privateMethod(this, _filterVariableTree, filterVariableTree_fn).call(this, tree), [])}
1326
+ </div>
1327
+ </terra-accordion>
1328
+ `;
1329
+ };
1330
+ _renderDimensionGroup = new WeakSet();
1331
+ renderDimensionGroup_fn = function(dim) {
1332
+ var _a, _b, _c, _d, _e, _f;
1333
+ const currentValue = (_a = this.selectedDimensionIndexes[dim.name]) != null ? _a : 1;
1334
+ 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(
1335
+ (s) => s.dimensions && s.dimensions.length > 0
1336
+ )) == null ? void 0 : _f.dimensions) || [];
1337
+ return b`
1338
+ <div style="margin-bottom: 16px;">
1339
+ <div
1340
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;"
1341
+ >
1342
+ <span style="font-weight: 600; margin-bottom: 44px"
1343
+ >Dimension: ${dim.name}</span
1344
+ >
1345
+ </div>
1346
+ <terra-slider
1347
+ class="dimension-slider"
1348
+ mode="range"
1349
+ min="1"
1350
+ .max=${dim.size}
1351
+ step="1"
1352
+ .startValue=${currentValue.start}
1353
+ .endValue=${currentValue.end}
1354
+ has-tooltips
1355
+ show-inputs
1356
+ hide-label
1357
+ .formatTooltip=${dimensions.length > 0 ? (value) => {
1358
+ const found = dimensions.find(
1359
+ (d) => String(d.value) === String(value)
1360
+ );
1361
+ return found ? found.label : String(value);
1362
+ } : A}
1363
+ @terra-slider-change=${(event) => {
1364
+ if ("startValue" in event.detail) {
1365
+ const { startValue, endValue } = event.detail;
1366
+ __privateMethod(this, _setDimensionValue, setDimensionValue_fn).call(this, dim.name, startValue, endValue);
1367
+ }
1368
+ }}
1369
+ ></terra-slider>
1370
+ </div>
1371
+ `;
1372
+ };
1373
+ _setDimensionValue = new WeakSet();
1374
+ setDimensionValue_fn = function(dimName, startValue, endValue) {
1375
+ const dimensions = __privateMethod(this, _getCommonSelectableDimensions, getCommonSelectableDimensions_fn).call(this);
1376
+ const found = dimensions.find((d) => d.name === dimName);
1377
+ if (!found) {
1378
+ return;
1379
+ }
1380
+ const normalizedStartValue = Math.min(
1381
+ Math.max(Math.round(startValue), 1),
1382
+ found.size
1383
+ );
1384
+ const normalizedEndValue = Math.min(
1385
+ Math.max(Math.round(endValue != null ? endValue : startValue), 1),
1386
+ found.size
1387
+ );
1388
+ if (normalizedStartValue <= 1 && normalizedEndValue >= found.size) {
1389
+ delete this.selectedDimensionIndexes[dimName];
1390
+ return;
1391
+ }
1392
+ this.selectedDimensionIndexes = __spreadProps(__spreadValues({}, this.selectedDimensionIndexes), {
1393
+ [dimName]: { start: normalizedStartValue, end: normalizedEndValue }
1394
+ });
1395
+ };
1396
+ _renderDimensionSelection = new WeakSet();
1397
+ renderDimensionSelection_fn = function() {
1398
+ const dimensions = __privateMethod(this, _getCommonSelectableDimensions, getCommonSelectableDimensions_fn).call(this);
1399
+ if (!dimensions.length) {
1400
+ return A;
1401
+ }
1402
+ const selectedCount = Object.keys(this.selectedDimensionIndexes).length;
1403
+ return b`
1404
+ <terra-accordion>
1405
+ <div slot="summary">
1406
+ <span class="accordion-title">Select Dimensions:</span>
1407
+ </div>
1408
+ <div
1409
+ slot="summary-right"
1410
+ style="display: flex; align-items: center; gap: 10px;"
1411
+ >
1412
+ ${selectedCount ? b`<span class="accordion-value"
1413
+ >${selectedCount}
1414
+ dimension${selectedCount === 1 ? "" : "s"}
1415
+ selected</span
1416
+ >` : A}
1417
+ <button class="reset-btn" @click=${__privateMethod(this, _resetDimensionSelection, resetDimensionSelection_fn)}>
1418
+ Reset
1419
+ </button>
1420
+ </div>
1421
+ <div class="accordion-content">
1422
+ ${dimensions.map((dim) => __privateMethod(this, _renderDimensionGroup, renderDimensionGroup_fn).call(this, dim))}
1423
+ </div>
1424
+ </terra-accordion>
1425
+ `;
1426
+ };
1427
+ _filterVariableTree = new WeakSet();
1428
+ filterVariableTree_fn = function(tree) {
1429
+ if (!this.variableFilterText.trim()) {
1430
+ return tree;
1431
+ }
1432
+ const filterText = this.variableFilterText.toLowerCase().trim();
1433
+ const filterNode = (node) => {
1434
+ const result = {};
1435
+ for (const [key, value] of Object.entries(node)) {
1436
+ if (value.__isLeaf) {
1437
+ const variableName = value.__variable.name.toLowerCase();
1438
+ if (variableName.includes(filterText)) {
1439
+ result[key] = value;
1440
+ }
1441
+ } else {
1442
+ const filteredChildren = filterNode(value.__children);
1443
+ if (Object.keys(filteredChildren).length > 0 || key.toLowerCase().includes(filterText)) {
1444
+ result[key] = __spreadProps(__spreadValues({}, value), {
1445
+ __children: filteredChildren
1446
+ });
1447
+ }
1448
+ }
1449
+ }
1450
+ return result;
1451
+ };
1452
+ return filterNode(tree);
1453
+ };
1454
+ _handleVariableFilterChange = new WeakSet();
1455
+ handleVariableFilterChange_fn = function() {
1456
+ var _a;
1457
+ if (!this.variableFilterText.trim()) {
1458
+ return;
1459
+ }
1460
+ const variables = ((_a = this.collectionWithServices) == null ? void 0 : _a.variables) || [];
1461
+ const tree = __privateMethod(this, _buildVariableTree, buildVariableTree_fn).call(this, variables);
1462
+ const filterText = this.variableFilterText.toLowerCase().trim();
1463
+ const groupsToExpand = /* @__PURE__ */ new Set();
1464
+ const findMatchingGroups = (node, path = []) => {
1465
+ for (const [key, value] of Object.entries(node)) {
1466
+ if (value.__isLeaf) {
1467
+ const variableName = value.__variable.name.toLowerCase();
1468
+ if (variableName.includes(filterText)) {
1469
+ for (let i = 0; i < path.length; i++) {
1470
+ const groupPath = path.slice(0, i + 1).join("/");
1471
+ groupsToExpand.add(groupPath);
1472
+ }
1473
+ }
1474
+ } else {
1475
+ const groupPath = [...path, key].join("/");
1476
+ findMatchingGroups(value.__children, [...path, key]);
1477
+ if (key.toLowerCase().includes(filterText)) {
1478
+ groupsToExpand.add(groupPath);
1479
+ }
1480
+ }
1481
+ }
1482
+ };
1483
+ findMatchingGroups(tree);
1484
+ if (groupsToExpand.size > 0) {
1485
+ this.expandedVariableGroups = /* @__PURE__ */ new Set([
1486
+ ...this.expandedVariableGroups,
1487
+ ...groupsToExpand
1488
+ ]);
1489
+ }
1490
+ };
1491
+ _buildVariableTree = new WeakSet();
1492
+ buildVariableTree_fn = function(variables) {
1493
+ let filteredVariables = variables;
1494
+ if (this.selectedFormat.isGiovanniFormat && this.giovanniConfiguredVariables) {
1495
+ filteredVariables = variables.filter((v) => {
1496
+ var _a, _b, _c;
1497
+ const shortName = (_a = this.collectionWithServices) == null ? void 0 : _a.shortName;
1498
+ const version = (_c = (_b = this.collectionWithServices) == null ? void 0 : _b.collection) == null ? void 0 : _c.Version;
1499
+ if (!shortName || !version) {
1500
+ return false;
1501
+ }
1502
+ const giovanniVariableName = convertVariableEntryIdToGiovanniFormat(
1503
+ shortName,
1504
+ version,
1505
+ v.name
1506
+ );
1507
+ return this.giovanniConfiguredVariables.has(giovanniVariableName);
1508
+ });
1509
+ }
1510
+ const root = {};
1511
+ for (const v of filteredVariables) {
1512
+ const parts = v.name.split("/");
1513
+ let node = root;
1514
+ for (let i = 0; i < parts.length; i++) {
1515
+ const part = parts[i];
1516
+ if (!node[part])
1517
+ node[part] = { __children: {}, __isLeaf: false };
1518
+ if (i === parts.length - 1) {
1519
+ node[part].__isLeaf = true;
1520
+ node[part].__variable = v;
1521
+ }
1522
+ node = node[part].__children;
1523
+ }
1524
+ }
1525
+ return root;
1526
+ };
1527
+ _renderVariableTree = new WeakSet();
1528
+ renderVariableTree_fn = function(node, path) {
1529
+ const isGiovanni = this.selectedFormat.isGiovanniFormat;
1530
+ return b`
1531
+ <div style="margin-left: ${path.length * 20}px;">
1532
+ ${Object.entries(node).map(([key, value]) => {
1533
+ var _a;
1534
+ const groupPath = [...path, key].join("/");
1535
+ if (value.__isLeaf) {
1536
+ const ummVar = cmr_variable_service_default.getVariableByName(
1537
+ key,
1538
+ (_a = __privateGet(this, _collectionController).variables) == null ? void 0 : _a.data
1539
+ );
1540
+ const variableLabel = ummVar ? cmr_variable_service_default.getVariableDisplayLabel(ummVar) : key;
1541
+ return b`
1542
+ <div class="option-row">
1543
+ <label class="checkbox-option">
1544
+ <input
1545
+ type="${isGiovanni ? "radio" : "checkbox"}"
1546
+ name="${isGiovanni ? "variable-selection" : ""}"
1547
+ .checked=${this.selectedVariables.some(
1548
+ (v) => v.name === value.__variable.name
1549
+ )}
1550
+ @change=${(e2) => __privateMethod(this, _toggleVariableSelection, toggleVariableSelection_fn).call(this, e2, value.__variable)}
1551
+ />
1552
+ <span>${variableLabel}</span>
1553
+ </label>
1554
+ </div>
1555
+ `;
1556
+ } else {
1557
+ const expanded = this.expandedVariableGroups.has(groupPath);
1558
+ return b`
1559
+ <div class="option-row" style="align-items: flex-start;">
1560
+ <span
1561
+ style="cursor: pointer; display: flex; align-items: center;"
1562
+ @click=${() => __privateMethod(this, _toggleGroupExpand, toggleGroupExpand_fn).call(this, groupPath)}
1563
+ >
1564
+ <terra-icon
1565
+ library="heroicons"
1566
+ name="${expanded ? "outline-minus-circle" : "outline-plus-circle"}"
1567
+ style="margin-right: 4px;"
1568
+ ></terra-icon>
1569
+ <span style="font-weight: 500;">${key}</span>
1570
+ </span>
1571
+ </div>
1572
+ ${expanded ? __privateMethod(this, _renderVariableTree, renderVariableTree_fn).call(this, value.__children, [
1573
+ ...path,
1574
+ key
1575
+ ]) : ""}
1576
+ `;
1577
+ }
1578
+ })}
1579
+ </div>
1580
+ `;
1581
+ };
1582
+ _getAllGroupPaths = new WeakSet();
1583
+ getAllGroupPaths_fn = function(node, path = []) {
1584
+ let groups = [];
1585
+ for (const [key, value] of Object.entries(node)) {
1586
+ if (!value.__isLeaf) {
1587
+ const groupPath = [...path, key].join("/");
1588
+ groups.push(groupPath);
1589
+ groups = groups.concat(
1590
+ __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, value.__children, [...path, key])
1591
+ );
1592
+ }
1593
+ }
1594
+ return groups;
1595
+ };
1596
+ _toggleGroupExpand = new WeakSet();
1597
+ toggleGroupExpand_fn = function(groupPath) {
1598
+ const set = new Set(this.expandedVariableGroups);
1599
+ if (set.has(groupPath)) {
1600
+ set.delete(groupPath);
1601
+ } else {
1602
+ set.add(groupPath);
1603
+ }
1604
+ this.expandedVariableGroups = set;
1605
+ };
1606
+ _toggleExpandCollapseAll = new WeakSet();
1607
+ toggleExpandCollapseAll_fn = function(tree) {
1608
+ const allGroups = __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, tree);
1609
+ const allExpanded = allGroups.length > 0 && allGroups.every((g) => this.expandedVariableGroups.has(g));
1610
+ if (allExpanded) {
1611
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
1612
+ } else {
1613
+ this.expandedVariableGroups = new Set(allGroups);
1614
+ }
1615
+ };
1616
+ _toggleVariableSelection = new WeakSet();
1617
+ toggleVariableSelection_fn = function(e2, variable) {
1618
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "variables");
1619
+ const checked = e2.target.checked;
1620
+ if (this.selectedFormat.isGiovanniFormat) {
1621
+ if (checked) {
1622
+ this.selectedVariables = [variable];
1623
+ }
1624
+ } else {
1625
+ if (checked) {
1626
+ if (!this.selectedVariables.some((v) => v.name === variable.name)) {
1627
+ this.selectedVariables = [...this.selectedVariables, variable];
1628
+ }
1629
+ } else {
1630
+ this.selectedVariables = this.selectedVariables.filter(
1631
+ (v) => v.name !== variable.name
1632
+ );
1633
+ }
1634
+ }
1635
+ };
1636
+ _markFieldTouched = new WeakSet();
1637
+ markFieldTouched_fn = function(field) {
1638
+ this.touchedFields = new Set(this.touchedFields).add(field);
1639
+ };
1640
+ _resetVariableSelection = new WeakMap();
1641
+ _resetDimensionSelection = new WeakSet();
1642
+ resetDimensionSelection_fn = function() {
1643
+ this.selectedDimensionIndexes = {};
1644
+ };
1645
+ _isDimensionExcluded = new WeakSet();
1646
+ isDimensionExcluded_fn = function(dim) {
1647
+ var _a, _b, _c;
1648
+ const normalizedName = (_b = (_a = dim.Name) == null ? void 0 : _a.toLowerCase()) != null ? _b : "";
1649
+ const normalizedType = ((_c = dim.Type) != null ? _c : "").toLowerCase();
1650
+ return ["time", "latitude", "longitude", "lat", "lon", "x", "y"].some(
1651
+ (value) => normalizedName.includes(value) || normalizedType.includes(value)
1652
+ );
1653
+ };
1654
+ _getCommonSelectableDimensions = new WeakSet();
1655
+ getCommonSelectableDimensions_fn = function() {
1656
+ var _a, _b;
1657
+ const variables = (_a = __privateGet(this, _collectionController).variables) == null ? void 0 : _a.data;
1658
+ if (!variables) {
1659
+ return [];
1660
+ }
1661
+ const allUmmVars = (_b = variables.items) != null ? _b : [];
1662
+ if (!allUmmVars.length) {
1663
+ return [];
1664
+ }
1665
+ const allDimensionSets = allUmmVars.map(
1666
+ (v) => {
1667
+ var _a2;
1668
+ return (_a2 = v.umm.Dimensions) != null ? _a2 : [];
1669
+ }
1670
+ );
1671
+ if (!allDimensionSets.length) {
1672
+ return [];
1673
+ }
1674
+ const allDimensionNames = Array.from(
1675
+ new Set(allDimensionSets.flatMap((dimSet) => dimSet.map((dim) => dim.Name)))
1676
+ );
1677
+ const filteredCommon = allDimensionNames.map((name) => {
1678
+ var _a2, _b2;
1679
+ const dims = allDimensionSets.map((set) => set.find((dim) => dim.Name === name)).filter((d) => Boolean(d));
1680
+ if (!dims.length) {
1681
+ return null;
1682
+ }
1683
+ const validSizes = dims.filter((dim) => dim.Size !== void 0 && dim.Size !== "Varies").map((dim) => Number(dim.Size)).filter((size2) => Number.isFinite(size2) && size2 > 0);
1684
+ if (!validSizes.length) {
1685
+ return null;
1686
+ }
1687
+ const size = Math.min(...validSizes);
1688
+ return {
1689
+ name,
1690
+ type: (_b2 = (_a2 = dims[0]) == null ? void 0 : _a2.Type) != null ? _b2 : "OTHER",
1691
+ size
1692
+ };
1693
+ }).filter(
1694
+ (entry) => Boolean(entry)
1695
+ ).filter(
1696
+ (entry) => !__privateMethod(this, _isDimensionExcluded, isDimensionExcluded_fn).call(this, {
1697
+ Name: entry.name,
1698
+ Type: entry.type
1699
+ })
1700
+ );
1701
+ return filteredCommon;
1702
+ };
1703
+ _renderJobStatus = new WeakSet();
1704
+ renderJobStatus_fn = function() {
1705
+ var _a, _b, _c, _d, _e;
1706
+ if (!__privateGet(this, _harmonyRequestController).jobId) {
1707
+ return b`<div class="results-section" id="job-status-section">
1708
+ <div
1709
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"
1710
+ >
1711
+ <h2 class="results-title" style="margin: 0;">Results:</h2>
1712
+ ${!this.isHistoryView ? b`
1713
+ <terra-button
1714
+ variant="default"
1715
+ size="small"
1716
+ @click=${__privateMethod(this, _backToSubsetOptions, backToSubsetOptions_fn)}
1717
+ >
1718
+ ← Back to Subset Options
1719
+ </terra-button>
1720
+ ` : A}
1721
+ </div>
1722
+
1723
+ <div class="progress-container">
1724
+ ${this.harmonyRequestError ? b`
1725
+ <terra-alert open variant="danger" appearance="white">
1726
+ ${__privateMethod(this, _renderHarmonyRequestError, renderHarmonyRequestError_fn).call(this)}
1727
+ </terra-alert>
1728
+ ` : b`
1729
+ <div class="progress-container">
1730
+ <div class="progress-text">
1731
+ <span class="spinner"></span>
1732
+ <span class="status-running"
1733
+ >Searching for data...</span
1734
+ >
1735
+ </div>
1736
+
1737
+ <div class="progress-bar">
1738
+ <div
1739
+ class="progress-fill"
1740
+ style="width: 0%"
1741
+ ></div>
1742
+ </div>
1743
+ </div>
1744
+
1745
+ ${__privateMethod(this, _renderJobMessage, renderJobMessage_fn).call(this)}
1746
+ `}
1747
+ </div>
1748
+ </div>`;
1749
+ }
1750
+ return b`
1751
+ <div class="results-section" id="job-status-section">
1752
+ <div
1753
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"
1754
+ >
1755
+ <h2 class="results-title" style="margin: 0;">Results:</h2>
1756
+ ${!this.isHistoryView ? b`
1757
+ <terra-button
1758
+ variant="default"
1759
+ size="small"
1760
+ @click=${__privateMethod(this, _backToSubsetOptions, backToSubsetOptions_fn)}
1761
+ >
1762
+ ← Back to Subset Options
1763
+ </terra-button>
1764
+ ` : A}
1765
+ </div>
1766
+
1767
+ ${__privateGet(this, _harmonyRequestController).status !== "canceled" && __privateGet(this, _harmonyRequestController).status !== "failed" ? b` <div class="progress-container">
1768
+ <div class="progress-text">
1769
+ ${__privateGet(this, _harmonyRequestController).progress >= 100 ? b`
1770
+ <span class="status-complete"
1771
+ >✓ Search complete</span
1772
+ >
1773
+ ` : b`
1774
+ <span class="spinner"></span>
1775
+ <span class="status-running"
1776
+ >Searching for data...
1777
+ (${__privateGet(this, _harmonyRequestController).progress}%)</span
1778
+ >
1779
+ `}
1780
+ </div>
1781
+
1782
+ <div class="progress-bar">
1783
+ <div
1784
+ class="progress-fill"
1785
+ style="width: ${__privateGet(this, _harmonyRequestController).progress}%"
1786
+ ></div>
1787
+ </div>
1788
+ </div>` : A}
1789
+
1790
+ <div class="search-status">
1791
+ <span class="file-count"
1792
+ >Found ${__privateMethod(this, _numberOfFilesFoundEstimate, numberOfFilesFoundEstimate_fn).call(this)} files</span
1793
+ >
1794
+ out of estimated
1795
+ <span class="estimated-total"
1796
+ >${(_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.numInputGranules.toLocaleString()}</span
1797
+ >
1798
+ </div>
1799
+
1800
+ ${__privateMethod(this, _renderJobMessage, renderJobMessage_fn).call(this)}
1801
+ ${((_c = (_b = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _b.errors) == null ? void 0 : _c.length) ? b`
1802
+ <terra-accordion>
1803
+ <div slot="summary">
1804
+ <span
1805
+ class="accordion-title"
1806
+ style="color: #dc3545;"
1807
+ >Errors
1808
+ (${(_d = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _d.errors.length})</span
1809
+ >
1810
+ </div>
1811
+ <div class="accordion-content">
1812
+ <ul
1813
+ style="color: #dc3545; font-size: 14px; padding-left: 20px;"
1814
+ >
1815
+ ${(_e = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _e.errors.map(
1816
+ (err) => b`
1817
+ <li style="margin-bottom: 12px;">
1818
+ <a
1819
+ href="${err.url}"
1820
+ target="_blank"
1821
+ style="word-break: break-all; color: #dc3545; text-decoration: underline;"
1822
+ >
1823
+ ${err.url}
1824
+ </a>
1825
+ <div style="margin-top: 2px;">
1826
+ ${err.message}
1827
+ </div>
1828
+ </li>
1829
+ `
1830
+ )}
1831
+ </ul>
1832
+ </div>
1833
+ </terra-accordion>
1834
+ ` : A}
1835
+
1836
+ <div class="tabs">
1837
+ <button
1838
+ class="tab ${this.selectedTab === "web-links" ? "active" : ""}"
1839
+ @click=${() => this.selectedTab = "web-links"}
1840
+ >
1841
+ Web Links
1842
+ </button>
1843
+
1844
+ ${!this.isHistoryView ? b`
1845
+ <button
1846
+ class="tab ${this.selectedTab === "selected-params" ? "active" : ""}"
1847
+ @click=${() => this.selectedTab = "selected-params"}
1848
+ >
1849
+ Selected Parameters
1850
+ </button>
1851
+ ` : A}
1852
+ </div>
1853
+ <div
1854
+ id="web-links"
1855
+ class="tab-content ${this.selectedTab === "web-links" ? "active" : ""}"
1856
+ >
1857
+ ${__privateMethod(this, _getDocumentationLinks, getDocumentationLinks_fn).call(this).length ? b`
1858
+ <div class="documentation-links">
1859
+ ${__privateMethod(this, _getDocumentationLinks, getDocumentationLinks_fn).call(this).map(
1860
+ (link) => b`
1861
+ <a href="${link.href}" class="doc-link"
1862
+ >${link.title}</a
1863
+ >
1864
+ `
1865
+ )}
1866
+ </div>
1867
+ ` : A}
1868
+
1869
+ <ul class="file-list">
1870
+ ${__privateMethod(this, _getDataLinks, getDataLinks_fn).call(this).map(
1871
+ (link) => b`
1872
+ <li class="file-item">
1873
+ <a
1874
+ href="${link.href}"
1875
+ class="file-link"
1876
+ target="_blank"
1877
+ >
1878
+ ${link.title}
1879
+ </a>
1880
+ </li>
1881
+ `
1882
+ )}
1883
+ </ul>
1884
+ </div>
1885
+
1886
+ <div
1887
+ id="selected-params"
1888
+ class="tab-content ${this.selectedTab === "selected-params" ? "active" : ""}"
1889
+ >
1890
+ ${__privateMethod(this, _renderSelectedParams, renderSelectedParams_fn).call(this)}
1891
+ </div>
1892
+ </div>
1893
+
1894
+ ${!this.dialog ? b`
1895
+ <div class="footer">
1896
+ ${__privateGet(this, _harmonyRequestController).status === "successful" /* SUCCESSFUL */ || __privateGet(this, _harmonyRequestController).status === "complete_with_errors" /* COMPLETE_WITH_ERRORS */ ? b`
1897
+ <div
1898
+ style="display: flex; align-items: center; gap: 8px;"
1899
+ >
1900
+ <terra-dropdown
1901
+ @terra-select=${__privateMethod(this, _handleDownloadSelect, handleDownloadSelect_fn)}
1902
+ >
1903
+ <terra-button slot="trigger" caret>
1904
+ Download Options
1905
+ </terra-button>
1906
+ <terra-menu>
1907
+ <terra-menu-item value="file-list">
1908
+ <svg
1909
+ slot="prefix"
1910
+ viewBox="0 0 24 24"
1911
+ width="16"
1912
+ height="16"
1913
+ style="width: 16px; height: 16px;"
1914
+ >
1915
+ <path
1916
+ fill="currentColor"
1917
+ 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"
1918
+ />
1919
+ </svg>
1920
+ File List
1921
+ </terra-menu-item>
1922
+ <terra-menu-item
1923
+ value="python-script"
1924
+ >
1925
+ <svg
1926
+ slot="prefix"
1927
+ viewBox="0 0 128 128"
1928
+ width="16"
1929
+ height="16"
1930
+ style="width: 16px; height: 16px;"
1931
+ >
1932
+ <path
1933
+ fill="currentColor"
1934
+ 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"
1935
+ ></path>
1936
+ </svg>
1937
+ Python Script
1938
+ </terra-menu-item>
1939
+ <terra-menu-item
1940
+ value="earthdata-download"
1941
+ >
1942
+ <svg
1943
+ slot="prefix"
1944
+ viewBox="0 0 64 64"
1945
+ fill="none"
1946
+ width="16"
1947
+ height="16"
1948
+ style="width: 16px; height: 16px;"
1949
+ >
1950
+ <circle
1951
+ cx="32"
1952
+ cy="32"
1953
+ r="28"
1954
+ fill="currentColor"
1955
+ />
1956
+ <path
1957
+ d="M32 14v26M32 40l-9-9M32 40l9-9"
1958
+ stroke="#fff"
1959
+ stroke-width="4"
1960
+ stroke-linecap="round"
1961
+ stroke-linejoin="round"
1962
+ fill="none"
1963
+ />
1964
+ </svg>
1965
+ Earthdata Download
1966
+ </terra-menu-item>
1967
+ </terra-menu>
1968
+ </terra-dropdown>
1969
+
1970
+ <!--
1971
+ <terra-button
1972
+ outline
1973
+ @click=${() => __privateMethod(this, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn).call(this)}
1974
+ >
1975
+ <terra-icon
1976
+ name="outline-code-bracket"
1977
+ library="heroicons"
1978
+ font-size="1.5em"
1979
+ style="margin-right: 5px;"
1980
+ ></terra-icon>
1981
+ Open in Jupyter Notebook
1982
+ </terra-button>
1983
+ --></div>
1984
+ ` : A}
1985
+ ${__privateGet(this, _harmonyRequestController).status === "running" /* RUNNING */ ? b`<button
1986
+ class="btn btn-success"
1987
+ @click=${__privateMethod(this, _cancelJob, cancelJob_fn)}
1988
+ ?disabled=${this.cancelingGetData}
1989
+ >
1990
+ ${this.cancelingGetData ? "Canceling..." : "Cancel request"}
1991
+ </button>` : A}
1992
+
1993
+ <div class="job-info">
1994
+ Job ID:
1995
+ <span class="job-id">
1996
+ ${this.bearerToken ? b`<a
1997
+ href="https://harmony.earthdata.nasa.gov/jobs/${__privateGet(this, _harmonyRequestController).jobId}"
1998
+ target="_blank"
1999
+ >${__privateGet(this, _harmonyRequestController).jobId}</a
2000
+ >` : __privateGet(this, _harmonyRequestController).jobId}
2001
+ </span>
2002
+ <span class="info-icon">?</span>
2003
+ </div>
2004
+ </div>
2005
+ ` : A}
2006
+ `;
2007
+ };
2008
+ _renderSelectedParams = new WeakSet();
2009
+ renderSelectedParams_fn = function() {
2010
+ var _a, _b, _c, _d;
2011
+ const collection = (_a = this.collectionWithServices) == null ? void 0 : _a.collection;
2012
+ const variables = this.selectedVariables.length ? this.selectedVariables.map((v) => v.name) : ["All"];
2013
+ const dateRange = this.selectedDateRange.startDate && this.selectedDateRange.endDate ? `${this.selectedDateRange.startDate} to ${this.selectedDateRange.endDate}` : "\u2014";
2014
+ const spatial = (_c = (_b = this.spatialSelection) == null ? void 0 : _b.toString()) != null ? _c : "-";
2015
+ return b`
2016
+ <dl class="params-summary">
2017
+ <div>
2018
+ <dt><strong>Dataset</strong></dt>
2019
+ <dd>${(_d = collection == null ? void 0 : collection.EntryTitle) != null ? _d : "\u2014"}</dd>
2020
+ </div>
2021
+ <div>
2022
+ <dt><strong>Variables</strong></dt>
2023
+ <dd>${variables.map((v) => b`<div>${v}</div>`)}</dd>
2024
+ </div>
2025
+ <div>
2026
+ <dt><strong>Dimensions</strong></dt>
2027
+ <dd>
2028
+ ${Object.entries(this.selectedDimensionIndexes).length ? Object.entries(this.selectedDimensionIndexes).map(
2029
+ ([dimName, value]) => b`<div>
2030
+ <strong>${dimName}:</strong> ${value}
2031
+ </div>`
2032
+ ) : "\u2014"}
2033
+ </dd>
2034
+ </div>
2035
+ <div>
2036
+ <dt><strong>Date Range</strong></dt>
2037
+ <dd>${dateRange}</dd>
2038
+ </div>
2039
+ <div>
2040
+ <dt><strong>Spatial</strong></dt>
2041
+ <dd>${spatial}</dd>
2042
+ </div>
2043
+ </dl>
2044
+
2045
+ <terra-button @click=${__privateMethod(this, _refineParameters, refineParameters_fn)}
2046
+ >Refine Parameters</terra-button
2047
+ >
2048
+ `;
2049
+ };
2050
+ _cancelJob = new WeakSet();
2051
+ cancelJob_fn = async function() {
2052
+ if (!this.jobId) {
2053
+ return;
2054
+ }
2055
+ this.cancelingGetData = true;
2056
+ try {
2057
+ await __privateGet(this, _harmonyRequestController).cancelJob({
2058
+ jobId: this.jobId,
2059
+ options: { bearerToken: this.bearerToken }
2060
+ });
2061
+ } finally {
2062
+ this.cancelingGetData = false;
2063
+ }
2064
+ };
2065
+ _getData = new WeakSet();
2066
+ getData_fn = async function() {
2067
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2068
+ this.harmonyRequestError = void 0;
2069
+ const validationError = __privateMethod(this, _getGiovanniValidationError, getGiovanniValidationError_fn).call(this);
2070
+ if (validationError) {
2071
+ this.validationError = validationError;
2072
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "variables");
2073
+ return;
2074
+ }
2075
+ this.validationError = void 0;
2076
+ this.cancelingGetData = false;
2077
+ __privateMethod(this, _touchAllFields, touchAllFields_fn).call(this);
2078
+ const variables = this.selectedFormat.isGiovanniFormat ? this.selectedVariables.map(
2079
+ (v) => {
2080
+ var _a2, _b2, _c2;
2081
+ return (
2082
+ // the Giovanni variable catalog uses different variable entry ids, we need to support them
2083
+ // ex. CMR: M2T1NXSLV_5.2.14 in Giovanni uses underscores: M2T1NXSLV_5_2_14
2084
+ convertVariableEntryIdToGiovanniFormat(
2085
+ (_a2 = this.collectionWithServices.shortName) != null ? _a2 : "",
2086
+ (_c2 = (_b2 = this.collectionWithServices.collection) == null ? void 0 : _b2.Version) != null ? _c2 : "",
2087
+ v.name
2088
+ )
2089
+ );
2090
+ }
2091
+ ) : this.selectedVariables.map((v) => v.conceptId);
2092
+ const harmonyRequest = new HarmonyRequest({
2093
+ collectionConceptId: this.collectionWithServices.conceptId,
2094
+ variables,
2095
+ location: this.spatialSelection
2096
+ });
2097
+ if (this.shapeGeoJson) {
2098
+ harmonyRequest.shape(this.shapeGeoJson);
2099
+ }
2100
+ if (this.selectedDateRange.startDate && this.selectedDateRange.endDate) {
2101
+ harmonyRequest.startDate(
2102
+ this.isSubDaily ? this.selectedDateRange.startDate : getUTCDate(this.selectedDateRange.startDate).toISOString()
2103
+ );
2104
+ harmonyRequest.endDate(
2105
+ this.isSubDaily ? this.selectedDateRange.endDate : getUTCDate(this.selectedDateRange.endDate).toISOString()
2106
+ );
2107
+ }
2108
+ if (this.selectedFormat) {
2109
+ harmonyRequest.format(
2110
+ this.selectedFormat.isGiovanniFormat ? "text/csv" : this.selectedFormat.key
2111
+ );
2112
+ }
2113
+ if (this.selectedFormat.key === "text/csv") {
2114
+ harmonyRequest.average("area");
2115
+ }
2116
+ if (this.selectedFormat.key === "image/tiff") {
2117
+ harmonyRequest.average("time");
2118
+ }
2119
+ if (Object.keys(this.selectedDimensionIndexes).length) {
2120
+ Object.entries(this.selectedDimensionIndexes).forEach(
2121
+ ([dimName, { start, end }]) => {
2122
+ harmonyRequest.dimension({
2123
+ name: dimName,
2124
+ min: start,
2125
+ max: end
2126
+ });
2127
+ }
2128
+ );
2129
+ }
2130
+ harmonyRequest.label("terra-data-subsetter");
2131
+ const cwsShortName = (_d = (_a = this.collectionWithServices) == null ? void 0 : _a.shortName) != null ? _d : (_c = (_b = this.collectionWithServices) == null ? void 0 : _b.collection) == null ? void 0 : _c.ShortName;
2132
+ const cwsVersion = (_f = (_e = this.collectionWithServices) == null ? void 0 : _e.collection) == null ? void 0 : _f.Version;
2133
+ const cwsEntryTitle = (_h = (_g = this.collectionWithServices) == null ? void 0 : _g.collection) == null ? void 0 : _h.EntryTitle;
2134
+ if (cwsShortName && cwsVersion) {
2135
+ harmonyRequest.label(
2136
+ `collection-entry-id: ${cwsShortName}_${cwsVersion}`.toLowerCase()
2137
+ );
2138
+ }
2139
+ if (cwsEntryTitle) {
2140
+ harmonyRequest.label(
2141
+ `collection-entry-title: ${cwsEntryTitle.toLowerCase()}`
2142
+ );
2143
+ }
2144
+ console.log("Creating Harmony job with request:", harmonyRequest.params);
2145
+ try {
2146
+ const job = await __privateGet(this, _harmonyRequestController).startJob({
2147
+ harmonyRequest,
2148
+ options: { bearerToken: this.bearerToken }
2149
+ });
2150
+ this.jobId = job.jobID;
2151
+ } catch (error) {
2152
+ this.harmonyRequestError = __privateMethod(this, _getHarmonyRequestErrorMessage, getHarmonyRequestErrorMessage_fn).call(this, error);
2153
+ this.refineParameters = false;
2154
+ return;
2155
+ }
2156
+ setTimeout(() => {
2157
+ const el = this.renderRoot.querySelector("#job-status-section");
2158
+ el == null ? void 0 : el.scrollIntoView({ behavior: "smooth" });
2159
+ }, 100);
2160
+ this.refineParameters = false;
2161
+ this.isHistoryView = false;
2162
+ };
2163
+ _touchAllFields = new WeakSet();
2164
+ touchAllFields_fn = function() {
2165
+ this.touchedFields = /* @__PURE__ */ new Set(["variables", "spatial"]);
2166
+ };
2167
+ _numberOfFilesFoundEstimate = new WeakSet();
2168
+ numberOfFilesFoundEstimate_fn = function() {
2169
+ var _a, _b, _c;
2170
+ return Math.floor(
2171
+ ((_b = (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.numInputGranules) != null ? _b : 0) * ((_c = __privateGet(this, _harmonyRequestController).progress) != null ? _c : 0) / 100
2172
+ );
2173
+ };
2174
+ _getDocumentationLinks = new WeakSet();
2175
+ getDocumentationLinks_fn = function() {
2176
+ var _a, _b;
2177
+ return ((_b = (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links) != null ? _b : []).filter(
2178
+ (link) => link.rel === "stac-catalog-json"
2179
+ );
2180
+ };
2181
+ _getDataLinks = new WeakSet();
2182
+ getDataLinks_fn = function() {
2183
+ var _a, _b;
2184
+ return ((_b = (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links) != null ? _b : []).filter(
2185
+ (link) => link.rel === "data"
2186
+ );
2187
+ };
2188
+ _hasAtLeastOneSubsetOption = new WeakSet();
2189
+ hasAtLeastOneSubsetOption_fn = function() {
2190
+ var _a, _b, _c, _d;
2191
+ 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);
2192
+ };
2193
+ _hasSpatialSubset = new WeakSet();
2194
+ hasSpatialSubset_fn = function() {
2195
+ var _a, _b;
2196
+ return ((_a = this.collectionWithServices) == null ? void 0 : _a.summary.subsetting.bbox) || ((_b = this.collectionWithServices) == null ? void 0 : _b.summary.subsetting.shape);
2197
+ };
2198
+ _renderJobMessage = new WeakSet();
2199
+ renderJobMessage_fn = function() {
2200
+ var _a;
2201
+ const warningStatuses = [
2202
+ "canceled" /* CANCELED */,
2203
+ "complete_with_errors" /* COMPLETE_WITH_ERRORS */,
2204
+ "running_with_errors" /* RUNNING_WITH_ERRORS */
2205
+ ];
2206
+ const errorStatuses = ["failed" /* FAILED */];
2207
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.status)) {
2208
+ return A;
2209
+ }
2210
+ let type = "normal";
2211
+ if (warningStatuses.includes(__privateGet(this, _harmonyRequestController).data.status)) {
2212
+ type = "warning";
2213
+ } else if (errorStatuses.includes(__privateGet(this, _harmonyRequestController).data.status)) {
2214
+ type = "error";
2215
+ }
2216
+ let color, bg;
2217
+ if (type === "error") {
2218
+ color = "#dc3545";
2219
+ bg = "#f8d7da";
2220
+ } else if (type === "warning") {
2221
+ color = "#856404";
2222
+ bg = "#fff3cd";
2223
+ } else {
2224
+ color = "#555";
2225
+ bg = "#f8f9fa";
2226
+ }
2227
+ return b`
2228
+ <div
2229
+ style="
2230
+ margin: 24px 0 16px 0;
2231
+ padding: 16px 20px;
2232
+ border-radius: 6px;
2233
+ background: ${bg};
2234
+ color: ${color};
2235
+ border: 1px solid ${color}22;
2236
+ "
2237
+ >
2238
+ ${__privateMethod(this, _getJobMessageText, getJobMessageText_fn).call(this)}
2239
+ </div>
2240
+ `;
2241
+ };
2242
+ _getJobMessageText = new WeakSet();
2243
+ getJobMessageText_fn = function() {
2244
+ var _a;
2245
+ return (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.message.replace(
2246
+ /\b(The job|the job|job|Job)\b/g,
2247
+ (match) => {
2248
+ switch (match) {
2249
+ case "The job":
2250
+ return "Your request";
2251
+ case "the job":
2252
+ return "Your Request";
2253
+ case "job":
2254
+ return "request";
2255
+ case "Job":
2256
+ return "Request";
2257
+ }
2258
+ return match;
2259
+ }
2260
+ );
2261
+ };
2262
+ _estimateJobSize = new WeakSet();
2263
+ estimateJobSize_fn = function() {
2264
+ var _a, _b, _c, _d, _e;
2265
+ if (!((_a = this.collectionWithServices) == null ? void 0 : _a.granuleCount))
2266
+ return;
2267
+ const range = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
2268
+ let startDate;
2269
+ let endDate;
2270
+ let links = (_c = (_b = this.collectionWithServices) == null ? void 0 : _b.granuleCount) != null ? _c : 0;
2271
+ if (this.selectedDateRange.startDate && this.selectedDateRange.endDate) {
2272
+ startDate = this.selectedDateRange.startDate;
2273
+ endDate = this.selectedDateRange.endDate;
2274
+ } else {
2275
+ startDate = (_d = this.granuleMinDate) != null ? _d : range.startDate;
2276
+ endDate = (_e = this.granuleMaxDate) != null ? _e : range.endDate;
2277
+ }
2278
+ if (!startDate || !endDate)
2279
+ return;
2280
+ const start = new Date(startDate);
2281
+ const end = new Date(endDate);
2282
+ const days = Math.floor((end.getTime() - start.getTime()) / (1e3 * 60 * 60 * 24)) + 1;
2283
+ if (range.startDate && range.endDate) {
2284
+ const availableDaysInCollection = Math.floor(
2285
+ (new Date(range.endDate).getTime() - new Date(range.startDate).getTime()) / (1e3 * 60 * 60 * 24)
2286
+ ) + 1;
2287
+ const granulesPerDay = links / availableDaysInCollection;
2288
+ links = Math.ceil(days * granulesPerDay);
2289
+ }
2290
+ return { days, links };
2291
+ };
2292
+ _refineParameters = new WeakSet();
2293
+ refineParameters_fn = function() {
2294
+ this.refineParameters = true;
2295
+ };
2296
+ _backToSubsetOptions = new WeakSet();
2297
+ backToSubsetOptions_fn = function() {
2298
+ this.refineParameters = true;
2299
+ this.harmonyRequestError = void 0;
2300
+ setTimeout(() => {
2301
+ const container = this.renderRoot.querySelector(".container");
2302
+ container == null ? void 0 : container.scrollIntoView({ behavior: "smooth", block: "start" });
2303
+ }, 100);
2304
+ };
2305
+ _viewRunningJob = new WeakSet();
2306
+ viewRunningJob_fn = function() {
2307
+ this.refineParameters = false;
2308
+ setTimeout(() => {
2309
+ const el = this.renderRoot.querySelector("#job-status-section");
2310
+ el == null ? void 0 : el.scrollIntoView({ behavior: "smooth" });
2311
+ }, 100);
2312
+ };
2313
+ _handleDownloadSelect = new WeakSet();
2314
+ handleDownloadSelect_fn = function(event) {
2315
+ const item = event.detail.item;
2316
+ const value = item.value || item.getTextLabel();
2317
+ if (value === "file-list") {
2318
+ __privateMethod(this, _downloadLinksAsTxt, downloadLinksAsTxt_fn).call(this, event);
2319
+ } else if (value === "python-script") {
2320
+ __privateMethod(this, _downloadPythonScript, downloadPythonScript_fn).call(this, event);
2321
+ } else if (value === "earthdata-download") {
2322
+ __privateMethod(this, _downloadEarthdataDownload, downloadEarthdataDownload_fn).call(this, event);
2323
+ }
2324
+ };
2325
+ _downloadLinksAsTxt = new WeakSet();
2326
+ downloadLinksAsTxt_fn = function(event) {
2327
+ var _a;
2328
+ event.stopPropagation();
2329
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2330
+ return;
2331
+ }
2332
+ const dataLinks = __privateMethod(this, _getDataLinks, getDataLinks_fn).call(this);
2333
+ if (dataLinks.length === 0) {
2334
+ return;
2335
+ }
2336
+ const content = dataLinks.map((link) => link.href).join("\n");
2337
+ const blob = new Blob([content], { type: "text/plain" });
2338
+ const url = URL.createObjectURL(blob);
2339
+ const a = document.createElement("a");
2340
+ a.href = url;
2341
+ a.download = `subset_links_${__privateGet(this, _harmonyRequestController).jobId}.txt`;
2342
+ document.body.appendChild(a);
2343
+ a.click();
2344
+ document.body.removeChild(a);
2345
+ URL.revokeObjectURL(url);
2346
+ };
2347
+ _downloadPythonScript = new WeakSet();
2348
+ downloadPythonScript_fn = async function(event) {
2349
+ var _a, _b, _c, _d;
2350
+ event.stopPropagation();
2351
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2352
+ return;
2353
+ }
2354
+ const response = await fetch(
2355
+ getBasePath("assets/data-subsetter/download_subset_files.py.txt")
2356
+ );
2357
+ if (!response.ok) {
2358
+ alert(
2359
+ "Sorry, there was a problem generating the Python script. We are investigating the issue.\nYou could try using the Jupyter Notebook in the meantime"
2360
+ );
2361
+ }
2362
+ const content = (await response.text()).replace(/{{jobId}}/gi, (_b = __privateGet(this, _harmonyRequestController).jobId) != null ? _b : "").replace(
2363
+ /{{HARMONY_ENV}}/gi,
2364
+ `Environment.${(_c = this.environment) == null ? void 0 : _c.toUpperCase()}`
2365
+ ).replace(
2366
+ /{{EARTHACCESS_ENV}}/gi,
2367
+ `earthaccess.${(_d = this.environment) == null ? void 0 : _d.toUpperCase()}`
2368
+ );
2369
+ const blob = new Blob([content], { type: "text/plain" });
2370
+ const url = URL.createObjectURL(blob);
2371
+ const a = document.createElement("a");
2372
+ a.href = url;
2373
+ a.download = `download_subset_files_${__privateGet(this, _harmonyRequestController).jobId}.py`;
2374
+ document.body.appendChild(a);
2375
+ a.click();
2376
+ document.body.removeChild(a);
2377
+ URL.revokeObjectURL(url);
2378
+ };
2379
+ _downloadEarthdataDownload = new WeakSet();
2380
+ downloadEarthdataDownload_fn = async function(event) {
2381
+ var _a;
2382
+ event.stopPropagation();
2383
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2384
+ return;
2385
+ }
2386
+ alert("Sorry, Earthdata Download is not currently supported");
2387
+ };
2388
+ _handleJupyterNotebookClick = new WeakSet();
2389
+ handleJupyterNotebookClick_fn = function() {
2390
+ const notebook = getNotebook(this);
2391
+ sendDataToJupyterNotebook("load-notebook", {
2392
+ filename: `subset_${__privateGet(this, _harmonyRequestController).jobId}.ipynb`,
2393
+ notebook,
2394
+ bearerToken: this.bearerToken
2395
+ });
2396
+ };
2397
+ _renderAvailableTemporalRangeSection = new WeakSet();
2398
+ renderAvailableTemporalRangeSection_fn = function() {
2399
+ const { startDate, endDate } = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
2400
+ if (!startDate || !endDate)
2401
+ return A;
2402
+ return b`
2403
+ <div class="section" style="margin-bottom: 16px;">
2404
+ <h2 class="section-title">Available Date Range</h2>
2405
+ <div style="color: #31708f; margin-top: 8px;">
2406
+ <strong>${startDate}</strong> to <strong>${endDate}</strong>
2407
+ </div>
2408
+ <div style="font-size: 0.95em; color: #666;">
2409
+ This collection does not support temporal subsetting.
2410
+ </div>
2411
+ </div>
2412
+ `;
2413
+ };
2414
+ _renderAvailableSpatialRangeSection = new WeakSet();
2415
+ renderAvailableSpatialRangeSection_fn = function() {
2416
+ var _a, _b, _c, _d, _e;
2417
+ 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;
2418
+ if (!boundingRects || !Array.isArray(boundingRects) || !boundingRects.length)
2419
+ return A;
2420
+ return b`
2421
+ <div class="section" style="margin-bottom: 16px;">
2422
+ <h2 class="section-title">Available Spatial Area</h2>
2423
+ <div style="color: #31708f; margin-top: 8px;">
2424
+ ${boundingRects.map(
2425
+ (rect) => b`<div>
2426
+ <strong>Bounding Box:</strong>
2427
+ ${rect.WestBoundingCoordinate},
2428
+ ${rect.SouthBoundingCoordinate},
2429
+ ${rect.EastBoundingCoordinate},
2430
+ ${rect.NorthBoundingCoordinate}
2431
+ </div>`
2432
+ )}
2433
+ </div>
2434
+ <div style="font-size: 0.95em; color: #666;">
2435
+ This collection does not support spatial subsetting.
2436
+ </div>
2437
+ </div>
2438
+ `;
2439
+ };
2440
+ _renderDataAccessModeSelection = new WeakSet();
2441
+ renderDataAccessModeSelection_fn = function() {
2442
+ if (!__privateGet(this, _collectionController).hasGranules) {
2443
+ return A;
2444
+ }
2445
+ return b`
2446
+ <div class="mode-selection">
2447
+ <div class="mode-options">
2448
+ <label
2449
+ class="mode-option ${this.dataAccessMode === "original" ? "selected" : ""}"
2450
+ >
2451
+ <input
2452
+ type="radio"
2453
+ name="data-access-mode"
2454
+ value="original"
2455
+ .checked=${this.dataAccessMode === "original"}
2456
+ @change=${() => this.dataAccessMode = "original"}
2457
+ />
2458
+ <div class="mode-content">
2459
+ <div class="mode-title">Get Original Files</div>
2460
+ <div class="mode-description">
2461
+ Filter file links directly from the archive.
2462
+ </div>
2463
+ </div>
2464
+ </label>
2465
+
2466
+ <label
2467
+ class="mode-option ${this.dataAccessMode === "subset" ? "selected" : ""}"
2468
+ >
2469
+ <input
2470
+ type="radio"
2471
+ name="data-access-mode"
2472
+ value="subset"
2473
+ .checked=${this.dataAccessMode === "subset"}
2474
+ @change=${() => this.dataAccessMode = "subset"}
2475
+ />
2476
+ <div class="mode-content">
2477
+ <div class="mode-title">Transform Data</div>
2478
+ <div class="mode-description">
2479
+ Transform the data to your specific needs.
2480
+ </div>
2481
+ </div>
2482
+ </label>
2483
+ </div>
2484
+ </div>
2485
+ `;
2486
+ };
2487
+ _getGiovanniValidationError = new WeakSet();
2488
+ getGiovanniValidationError_fn = function() {
2489
+ if (!this.selectedFormat.isGiovanniFormat) {
2490
+ return null;
2491
+ }
2492
+ if (this.selectedVariables.length === 0) {
2493
+ return "Please select a variable to subset.";
2494
+ }
2495
+ if (this.selectedVariables.length > 1) {
2496
+ return "The selected format only supports subsetting one variable at a time.";
2497
+ }
2498
+ return null;
2499
+ };
2500
+ _getHarmonyRequestErrorMessage = new WeakSet();
2501
+ getHarmonyRequestErrorMessage_fn = function(error) {
2502
+ var _a;
2503
+ if (error instanceof HttpException) {
2504
+ const sanitizedMessage = (_a = error.message) == null ? void 0 : _a.replace(/^Error:\s*/i, "").trim();
2505
+ if (sanitizedMessage == null ? void 0 : sanitizedMessage.toLowerCase().includes("no matching granules found")) {
2506
+ return "No matching granules were found for your subset request. Please try expanding your search";
2507
+ }
2508
+ if (sanitizedMessage) {
2509
+ return sanitizedMessage;
2510
+ }
2511
+ }
2512
+ return "Unable to create your subset request. Please try again.";
2513
+ };
2514
+ _renderHarmonyRequestError = new WeakSet();
2515
+ renderHarmonyRequestError_fn = function() {
2516
+ if (!this.harmonyRequestError) {
2517
+ return A;
2518
+ }
2519
+ const noGranulesMessage = "No matching granules were found for your subset request. Please try expanding your search";
2520
+ if (this.harmonyRequestError === noGranulesMessage) {
2521
+ return b`
2522
+ No matching granules were found for your subset request. Please try
2523
+ <a
2524
+ href="#"
2525
+ @click=${__privateGet(this, _handleExpandSearchClick)}
2526
+ style="color: inherit; text-decoration: underline; font-weight: 600;"
2527
+ >
2528
+ expanding your search
2529
+ </a>
2530
+ `;
2531
+ }
2532
+ return this.harmonyRequestError;
2533
+ };
2534
+ _handleExpandSearchClick = new WeakMap();
2535
+ TerraDataSubsetter.styles = [component_styles_default, data_subsetter_styles_default];
2536
+ TerraDataSubsetter.dependencies = {
2537
+ "terra-accordion": TerraAccordion,
2538
+ "terra-date-picker": TerraDatePicker,
2539
+ "terra-icon": TerraIcon,
2540
+ "terra-input": TerraInput,
2541
+ "terra-spatial-picker": TerraSpatialPicker,
2542
+ "terra-login": TerraLogin,
2543
+ "terra-loader": TerraLoader,
2544
+ "terra-data-access": TerraDataAccess,
2545
+ "terra-dialog": TerraDialog,
2546
+ "terra-dropdown": TerraDropdown,
2547
+ "terra-menu": TerraMenu,
2548
+ "terra-menu-item": TerraMenuItem,
2549
+ "terra-button": TerraButton,
2550
+ "terra-alert": TerraAlert,
2551
+ "terra-slider": TerraSlider
2552
+ };
2553
+ __decorateClass([
2554
+ n({
2555
+ reflect: true,
2556
+ attribute: "collection-entry-id",
2557
+ converter: undefinedStringConverter
2558
+ })
2559
+ ], TerraDataSubsetter.prototype, "collectionEntryId", 2);
2560
+ __decorateClass([
2561
+ n({
2562
+ reflect: true,
2563
+ attribute: "short-name",
2564
+ converter: undefinedStringConverter
2565
+ })
2566
+ ], TerraDataSubsetter.prototype, "shortName", 2);
2567
+ __decorateClass([
2568
+ n({
2569
+ reflect: true,
2570
+ attribute: "version",
2571
+ converter: undefinedStringConverter
2572
+ })
2573
+ ], TerraDataSubsetter.prototype, "version", 2);
2574
+ __decorateClass([
2575
+ n({
2576
+ reflect: true,
2577
+ type: Boolean,
2578
+ attribute: "show-collection-search"
2579
+ })
2580
+ ], TerraDataSubsetter.prototype, "showCollectionSearch", 2);
2581
+ __decorateClass([
2582
+ n({ reflect: true, type: Boolean, attribute: "show-history-panel" })
2583
+ ], TerraDataSubsetter.prototype, "showHistoryPanel", 2);
2584
+ __decorateClass([
2585
+ n({ reflect: true, attribute: "job-id" })
2586
+ ], TerraDataSubsetter.prototype, "jobId", 2);
2587
+ __decorateClass([
2588
+ n({
2589
+ attribute: "bearer-token",
2590
+ converter: undefinedStringConverter
2591
+ })
2592
+ ], TerraDataSubsetter.prototype, "bearerToken", 2);
2593
+ __decorateClass([
2594
+ n()
2595
+ ], TerraDataSubsetter.prototype, "features", 2);
2596
+ __decorateClass([
2597
+ n({ reflect: true })
2598
+ ], TerraDataSubsetter.prototype, "dialog", 2);
2599
+ __decorateClass([
2600
+ n({ reflect: true, type: Boolean, attribute: "is-history-view" })
2601
+ ], TerraDataSubsetter.prototype, "isHistoryView", 2);
2602
+ __decorateClass([
2603
+ r()
2604
+ ], TerraDataSubsetter.prototype, "collectionWithServices", 2);
2605
+ __decorateClass([
2606
+ r()
2607
+ ], TerraDataSubsetter.prototype, "selectedVariables", 2);
2608
+ __decorateClass([
2609
+ r()
2610
+ ], TerraDataSubsetter.prototype, "selectedDimensionIndexes", 2);
2611
+ __decorateClass([
2612
+ r()
2613
+ ], TerraDataSubsetter.prototype, "expandedVariableGroups", 2);
2614
+ __decorateClass([
2615
+ r()
2616
+ ], TerraDataSubsetter.prototype, "variableFilterText", 2);
2617
+ __decorateClass([
2618
+ r()
2619
+ ], TerraDataSubsetter.prototype, "touchedFields", 2);
2620
+ __decorateClass([
2621
+ r()
2622
+ ], TerraDataSubsetter.prototype, "spatialSelection", 2);
2623
+ __decorateClass([
2624
+ r()
2625
+ ], TerraDataSubsetter.prototype, "shapeGeoJson", 2);
2626
+ __decorateClass([
2627
+ r()
2628
+ ], TerraDataSubsetter.prototype, "spatialLabel", 2);
2629
+ __decorateClass([
2630
+ r()
2631
+ ], TerraDataSubsetter.prototype, "selectedDateRange", 2);
2632
+ __decorateClass([
2633
+ r()
2634
+ ], TerraDataSubsetter.prototype, "selectedFormat", 2);
2635
+ __decorateClass([
2636
+ r()
2637
+ ], TerraDataSubsetter.prototype, "cancelingGetData", 2);
2638
+ __decorateClass([
2639
+ r()
2640
+ ], TerraDataSubsetter.prototype, "selectedTab", 2);
2641
+ __decorateClass([
2642
+ r()
2643
+ ], TerraDataSubsetter.prototype, "refineParameters", 2);
2644
+ __decorateClass([
2645
+ r()
2646
+ ], TerraDataSubsetter.prototype, "collectionSearchType", 2);
2647
+ __decorateClass([
2648
+ r()
2649
+ ], TerraDataSubsetter.prototype, "collectionSearchQuery", 2);
2650
+ __decorateClass([
2651
+ r()
2652
+ ], TerraDataSubsetter.prototype, "collectionSearchLoading", 2);
2653
+ __decorateClass([
2654
+ r()
2655
+ ], TerraDataSubsetter.prototype, "collectionSearchResults", 2);
2656
+ __decorateClass([
2657
+ r()
2658
+ ], TerraDataSubsetter.prototype, "collectionLoading", 2);
2659
+ __decorateClass([
2660
+ r()
2661
+ ], TerraDataSubsetter.prototype, "collectionAccordionOpen", 2);
2662
+ __decorateClass([
2663
+ r()
2664
+ ], TerraDataSubsetter.prototype, "dataAccessMode", 2);
2665
+ __decorateClass([
2666
+ r()
2667
+ ], TerraDataSubsetter.prototype, "validationError", 2);
2668
+ __decorateClass([
2669
+ r()
2670
+ ], TerraDataSubsetter.prototype, "harmonyRequestError", 2);
2671
+ __decorateClass([
2672
+ r()
2673
+ ], TerraDataSubsetter.prototype, "granuleMinDate", 2);
2674
+ __decorateClass([
2675
+ r()
2676
+ ], TerraDataSubsetter.prototype, "granuleMaxDate", 2);
2677
+ __decorateClass([
2678
+ r()
2679
+ ], TerraDataSubsetter.prototype, "giovanniConfiguredVariables", 2);
2680
+ __decorateClass([
2681
+ e('[part~="spatial-picker"]')
2682
+ ], TerraDataSubsetter.prototype, "spatialPicker", 2);
2683
+ __decorateClass([
2684
+ e("terra-dialog")
2685
+ ], TerraDataSubsetter.prototype, "dialogElement", 2);
2686
+ __decorateClass([
2687
+ watch(["jobId"], { waitUntilFirstUpdate: true })
2688
+ ], TerraDataSubsetter.prototype, "jobIdChanged", 1);
2689
+ __decorateClass([
2690
+ watch(["shortName", "version"])
2691
+ ], TerraDataSubsetter.prototype, "shortNameAndVersionChanged", 1);
2692
+ __decorateClass([
2693
+ watch("collectionEntryId", { waitUntilFirstUpdate: true })
2694
+ ], TerraDataSubsetter.prototype, "collectionEntryIdChanged", 1);
2695
+ __decorateClass([
2696
+ watch(["collectionWithServices"])
2697
+ ], TerraDataSubsetter.prototype, "collectionChanged", 1);
2698
+ __decorateClass([
2699
+ watch(["granuleMinDate", "granuleMaxDate"])
2700
+ ], TerraDataSubsetter.prototype, "granuleDatesChanged", 1);
2701
+ __decorateClass([
2702
+ watch("selectedFormat")
2703
+ ], TerraDataSubsetter.prototype, "selectedFormatChanged", 1);
2704
+ __decorateClass([
2705
+ debounce(500)
2706
+ ], TerraDataSubsetter.prototype, "handleCollectionSearch", 1);
2707
+
2708
+ export {
2709
+ TerraDataSubsetter
2710
+ };