@nasa-terra/components 0.0.201 → 0.0.202

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 (1325) hide show
  1. package/cdn/apis/harmony.api.d.ts +7 -0
  2. package/cdn/chunks/chunk.26WIFY7V.js +19 -0
  3. package/cdn/chunks/chunk.2GA4CWAO.js +19 -0
  4. package/cdn/chunks/chunk.2HOYW6MS.js +49 -0
  5. package/cdn/chunks/chunk.2MS5ABFB.js +19 -0
  6. package/cdn/chunks/chunk.2OMLOQMV.js +925 -0
  7. package/cdn/chunks/chunk.2PRHFH3T.js +19 -0
  8. package/cdn/chunks/chunk.2UHL5P6K.js +29 -0
  9. package/cdn/chunks/chunk.2VP477VG.js +19 -0
  10. package/cdn/chunks/chunk.33R27RVH.js +132 -0
  11. package/cdn/chunks/chunk.34BJZDYA.js +537 -0
  12. package/cdn/chunks/chunk.3AHQKBOX.js +29 -0
  13. package/cdn/chunks/chunk.3AZSMAQH.js +158 -0
  14. package/cdn/chunks/chunk.3G5XI66I.js +35 -0
  15. package/cdn/chunks/chunk.3KKU7VXW.js +19 -0
  16. package/cdn/chunks/chunk.3SQV2QZD.js +29 -0
  17. package/cdn/chunks/chunk.3YE4RI37.js +377 -0
  18. package/cdn/chunks/chunk.3ZKU6WYW.js +71 -0
  19. package/cdn/chunks/chunk.47AEJXKW.js +231 -0
  20. package/cdn/chunks/chunk.4USNEUUH.js +278 -0
  21. package/cdn/chunks/chunk.4UTDVHGR.js +37 -0
  22. package/cdn/chunks/chunk.4ZYLJ7D3.js +82 -0
  23. package/cdn/chunks/chunk.55OQIAKO.js +29 -0
  24. package/cdn/chunks/chunk.5ESGWJLA.js +106 -0
  25. package/cdn/chunks/chunk.5EX3Z4DK.js +19 -0
  26. package/cdn/chunks/chunk.5I7B4IIZ.js +592 -0
  27. package/cdn/chunks/chunk.5KPNIIGS.js +604 -0
  28. package/cdn/chunks/chunk.5MEL64GJ.js +19 -0
  29. package/cdn/chunks/chunk.5OZWDB5C.js +19 -0
  30. package/cdn/chunks/chunk.5XNHMOAV.js +136 -0
  31. package/cdn/chunks/chunk.6AQLHC6W.js +32 -0
  32. package/cdn/chunks/chunk.6IN6IQWI.js +230 -0
  33. package/cdn/chunks/chunk.6RSIQP5A.js +34 -0
  34. package/cdn/chunks/chunk.6ULJR6ZE.js +155 -0
  35. package/cdn/chunks/chunk.6XYGFWIA.js +19 -0
  36. package/cdn/chunks/chunk.7A4LM7IX.js +32 -0
  37. package/cdn/chunks/chunk.7F73VUIV.js +556 -0
  38. package/cdn/chunks/chunk.7HMHLQLZ.js +29 -0
  39. package/cdn/chunks/chunk.7XXQMVFX.js +104 -0
  40. package/cdn/chunks/chunk.A7O62RXN.js +29 -0
  41. package/cdn/chunks/chunk.AVPLP47V.js +190 -0
  42. package/cdn/chunks/chunk.BCMV5FPA.js +35 -0
  43. package/cdn/chunks/chunk.BFWPKDGX.js +277 -0
  44. package/cdn/chunks/chunk.BIR4JWJE.js +29 -0
  45. package/cdn/chunks/chunk.BJ7UKTWC.js +19 -0
  46. package/cdn/chunks/chunk.BJVIJ7BT.js +19 -0
  47. package/cdn/chunks/chunk.BUB7FPJ5.js +19 -0
  48. package/cdn/chunks/chunk.BVHMTI75.js +35 -0
  49. package/cdn/chunks/chunk.BYNNIM7J.js +310 -0
  50. package/cdn/chunks/chunk.BZFJ6XDH.js +38 -0
  51. package/cdn/chunks/chunk.CPKXJI47.js +19 -0
  52. package/cdn/chunks/chunk.CTYJ2G2V.js +56075 -0
  53. package/cdn/chunks/chunk.CVPDIZ7K.js +224 -0
  54. package/cdn/chunks/chunk.DEHKVV4T.js +303 -0
  55. package/cdn/chunks/chunk.DIVDM5FL.js +29 -0
  56. package/cdn/chunks/chunk.DKJIIJCV.js +33 -0
  57. package/cdn/chunks/chunk.DLCXOQQB.js +83 -0
  58. package/cdn/chunks/chunk.DNWADQ5W.js +2546 -0
  59. package/cdn/chunks/chunk.DNZMWTWS.js +29 -0
  60. package/cdn/chunks/chunk.DOEGMJOZ.js +904 -0
  61. package/cdn/chunks/chunk.DU5T3TJE.js +19 -0
  62. package/cdn/chunks/chunk.DX5Y5JD2.js +19 -0
  63. package/cdn/chunks/chunk.DZVQRJHX.js +298 -0
  64. package/cdn/chunks/chunk.E6YEHXRQ.js +538 -0
  65. package/cdn/chunks/chunk.ECYELSFF.js +19 -0
  66. package/cdn/chunks/chunk.EHANRIPJ.js +29 -0
  67. package/cdn/chunks/chunk.EM7J56W4.js +478 -0
  68. package/cdn/chunks/chunk.EV4WF34M.js +1018 -0
  69. package/cdn/chunks/chunk.EW6F2GQY.js +29 -0
  70. package/cdn/chunks/chunk.F3WCMGTZ.js +36 -0
  71. package/cdn/chunks/chunk.F5BJYKTF.js +19 -0
  72. package/cdn/chunks/chunk.FFR22MCX.js +19 -0
  73. package/cdn/chunks/chunk.FH3P6CF5.js +19 -0
  74. package/cdn/chunks/chunk.FJSK6GY3.js +29 -0
  75. package/cdn/chunks/chunk.FNBRNK7F.js +37 -0
  76. package/cdn/chunks/chunk.FPG5SQ2I.js +35 -0
  77. package/cdn/chunks/chunk.FVOVPQKA.js +60 -0
  78. package/cdn/chunks/chunk.FYKDZ4XF.js +19 -0
  79. package/cdn/chunks/chunk.G2RISDFV.js +29 -0
  80. package/cdn/chunks/chunk.G4A6CMDQ.js +65 -0
  81. package/cdn/chunks/chunk.G6K6BXYG.js +134 -0
  82. package/cdn/chunks/chunk.GAI2J6ZS.js +37 -0
  83. package/cdn/chunks/chunk.GG4KL7GW.js +29 -0
  84. package/cdn/chunks/chunk.GGLVZVB5.js +33 -0
  85. package/cdn/chunks/chunk.GLYBW7KG.js +138 -0
  86. package/cdn/chunks/chunk.GQQ3K6N5.js +29 -0
  87. package/cdn/chunks/chunk.GRJVGKG7.js +19 -0
  88. package/cdn/chunks/chunk.GYLCUVEW.js +32 -0
  89. package/cdn/chunks/chunk.HOSUC6BD.js +29 -0
  90. package/cdn/chunks/chunk.HSOOL4RW.js +266 -0
  91. package/cdn/chunks/chunk.I4LPZIIK.js +789 -0
  92. package/cdn/chunks/chunk.IFH52YEF.js +29 -0
  93. package/cdn/chunks/chunk.IQZTU2J4.js +19 -0
  94. package/cdn/chunks/chunk.IRINNT4H.js +19 -0
  95. package/cdn/chunks/chunk.IUEFLVQW.js +93 -0
  96. package/cdn/chunks/chunk.J3B2QGRM.js +92 -0
  97. package/cdn/chunks/chunk.J6KAYZPW.js +524 -0
  98. package/cdn/chunks/chunk.JAOHMVHU.js +33 -0
  99. package/cdn/chunks/chunk.JDYJT6FG.js +113 -0
  100. package/cdn/chunks/chunk.JGAX4GO7.js +19 -0
  101. package/cdn/chunks/chunk.JNGYHT6A.js +32 -0
  102. package/cdn/chunks/chunk.JSANBP7K.js +367 -0
  103. package/cdn/chunks/chunk.JVYWBJQZ.js +19 -0
  104. package/cdn/chunks/chunk.JXGYRXMB.js +364 -0
  105. package/cdn/chunks/chunk.JXHGDIHB.js +348 -0
  106. package/cdn/chunks/chunk.JXK3FZE4.js +19 -0
  107. package/cdn/chunks/chunk.K5AO7XP2.js +151 -0
  108. package/cdn/chunks/chunk.KACXPSGJ.js +631 -0
  109. package/cdn/chunks/chunk.KFKCR6QA.js +168 -0
  110. package/cdn/chunks/chunk.KLFMBNVE.js +19 -0
  111. package/cdn/chunks/chunk.KPYXFXJQ.js +29 -0
  112. package/cdn/chunks/chunk.KQYGVB55.js +41 -0
  113. package/cdn/chunks/chunk.KVUF6LF4.js +47 -0
  114. package/cdn/chunks/chunk.KW56O2IH.js +19 -0
  115. package/cdn/chunks/chunk.KW65NRUO.js +357 -0
  116. package/cdn/chunks/chunk.L4XZB6ZY.js +19 -0
  117. package/cdn/chunks/chunk.L6EUQYXA.js +74 -0
  118. package/cdn/chunks/chunk.L6GXBCP7.js +19 -0
  119. package/cdn/chunks/chunk.LEIC7FZG.js +1697 -0
  120. package/cdn/chunks/chunk.LEV3NGRX.js +123 -0
  121. package/cdn/chunks/chunk.LFXWUWSU.js +32 -0
  122. package/cdn/chunks/chunk.LJ7VHJSX.js +39 -0
  123. package/cdn/chunks/chunk.LJPWAEWA.js +32 -0
  124. package/cdn/chunks/chunk.LL62QDQM.js +32 -0
  125. package/cdn/chunks/chunk.LNSFXPSI.js +19 -0
  126. package/cdn/chunks/chunk.LSIA3HEA.js +36 -0
  127. package/cdn/chunks/chunk.LWTBWDXM.js +978 -0
  128. package/cdn/chunks/chunk.MCHI55B3.js +32 -0
  129. package/cdn/chunks/chunk.MCVMPMS7.js +19 -0
  130. package/cdn/chunks/chunk.MHCN3GKD.js +29 -0
  131. package/cdn/chunks/chunk.MKNOJ7CM.js +62 -0
  132. package/cdn/chunks/chunk.MZ5FELAW.js +36 -0
  133. package/cdn/chunks/chunk.N5OWLRQR.js +32 -0
  134. package/cdn/chunks/chunk.N7A5RE4M.js +610 -0
  135. package/cdn/chunks/chunk.N7BFGJYR.js +19 -0
  136. package/cdn/chunks/chunk.NK547YK2.js +37 -0
  137. package/cdn/chunks/chunk.NKA5YELN.js +19 -0
  138. package/cdn/chunks/chunk.NKKB3FX7.js +32 -0
  139. package/cdn/chunks/chunk.NMJFHBS5.js +417 -0
  140. package/cdn/chunks/chunk.NUFNV5DK.js +188 -0
  141. package/cdn/chunks/chunk.NUFZV7LP.js +33 -0
  142. package/cdn/chunks/chunk.NWYFMEJU.js +196 -0
  143. package/cdn/chunks/chunk.NY7IV7XN.js +29 -0
  144. package/cdn/chunks/chunk.NZE5IKJW.js +195 -0
  145. package/cdn/chunks/chunk.O2NDUKFH.js +29 -0
  146. package/cdn/chunks/chunk.OD2DZWMX.js +2911 -0
  147. package/cdn/chunks/chunk.OKFWUYLX.js +29 -0
  148. package/cdn/chunks/chunk.OT4YPSAD.js +19 -0
  149. package/cdn/chunks/chunk.OXCDRW3M.js +19 -0
  150. package/cdn/chunks/chunk.P5BFYTDM.js +234 -0
  151. package/cdn/chunks/chunk.P6ZFLSLA.js +1197 -0
  152. package/cdn/chunks/chunk.PB3Y6MQO.js +19 -0
  153. package/cdn/chunks/chunk.PKQP2MA2.js +60 -0
  154. package/cdn/chunks/chunk.PS562SMS.js +19 -0
  155. package/cdn/chunks/chunk.QKNOTJCL.js +32 -0
  156. package/cdn/chunks/chunk.QM6JTIZV.js +19 -0
  157. package/cdn/chunks/chunk.QU7NYKM3.js +129 -0
  158. package/cdn/chunks/chunk.QUUHCJTG.js +19 -0
  159. package/cdn/chunks/chunk.RONK5ODL.js +19 -0
  160. package/cdn/chunks/chunk.RTC75E45.js +86 -0
  161. package/cdn/chunks/chunk.RZ4HFXEJ.js +672 -0
  162. package/cdn/chunks/chunk.SI7ZBJ26.js +32 -0
  163. package/cdn/chunks/chunk.SK2V5P52.js +33 -0
  164. package/cdn/chunks/chunk.SMSLR2AT.js +19 -0
  165. package/cdn/chunks/chunk.SNK5SHN5.js +162 -0
  166. package/cdn/chunks/chunk.SQ7L6KKX.js +19 -0
  167. package/cdn/chunks/chunk.SWK2BPWD.js +110 -0
  168. package/cdn/chunks/chunk.TUCSU6CG.js +293 -0
  169. package/cdn/chunks/chunk.TXB5M54T.js +29 -0
  170. package/cdn/chunks/chunk.TZEIENKR.js +19 -0
  171. package/cdn/chunks/chunk.U3GLETYN.js +32 -0
  172. package/cdn/chunks/chunk.U6OGFCQE.js +19 -0
  173. package/cdn/chunks/chunk.UCLX6LR3.js +29 -0
  174. package/cdn/chunks/chunk.UE5XH2VP.js +29 -0
  175. package/cdn/chunks/chunk.UFDANYS3.js +259 -0
  176. package/cdn/chunks/chunk.UJ2RMY3E.js +35 -0
  177. package/cdn/chunks/chunk.UMWYLPSI.js +19 -0
  178. package/cdn/chunks/chunk.UQVJF6VD.js +19 -0
  179. package/cdn/chunks/chunk.UUTUP2GS.js +56 -0
  180. package/cdn/chunks/chunk.UVJ7UDD7.js +29 -0
  181. package/cdn/chunks/chunk.V4T6KDXQ.js +36 -0
  182. package/cdn/chunks/chunk.VFNOOS3R.js +19 -0
  183. package/cdn/chunks/chunk.VKPVDKVG.js +30 -0
  184. package/cdn/chunks/chunk.VT7CU5GG.js +29 -0
  185. package/cdn/chunks/chunk.VUXNHYPK.js +19 -0
  186. package/cdn/chunks/chunk.VV7XEX5X.js +29 -0
  187. package/cdn/chunks/chunk.VZBWM3DN.js +4735 -0
  188. package/cdn/chunks/chunk.W3R3ZNBA.js +276 -0
  189. package/cdn/chunks/chunk.W5SOJEYN.js +543 -0
  190. package/cdn/chunks/chunk.WIJP5EMP.js +19 -0
  191. package/cdn/chunks/chunk.WRRUKGNP.js +19 -0
  192. package/cdn/chunks/chunk.WUEOPDUB.js +19 -0
  193. package/cdn/chunks/chunk.WWNFEPX7.js +1975 -0
  194. package/cdn/chunks/chunk.WZO7QXTZ.js +19 -0
  195. package/cdn/chunks/chunk.X33YQMXQ.js +117 -0
  196. package/cdn/chunks/chunk.XF5YT4NV.js +363 -0
  197. package/cdn/chunks/chunk.XHQZAOGE.js +32 -0
  198. package/cdn/chunks/chunk.XJKX5QJ7.js +19 -0
  199. package/cdn/chunks/chunk.XLY7H4ZC.js +19 -0
  200. package/cdn/chunks/chunk.XSNLMGTR.js +29 -0
  201. package/cdn/chunks/chunk.XT5DOVMF.js +443 -0
  202. package/cdn/chunks/chunk.XVM2NRZZ.js +19 -0
  203. package/cdn/chunks/chunk.XXQNALY7.js +29 -0
  204. package/cdn/chunks/chunk.Y4GV74E5.js +121 -0
  205. package/cdn/chunks/chunk.YAXJK6UB.js +19 -0
  206. package/cdn/chunks/chunk.YIX4KI4Q.js +19 -0
  207. package/cdn/chunks/chunk.YMFQOE6M.js +36 -0
  208. package/cdn/chunks/chunk.YOR3HFUL.js +34 -0
  209. package/cdn/chunks/chunk.YPCSP3D3.js +19 -0
  210. package/cdn/chunks/chunk.YZHPA7ZJ.js +624 -0
  211. package/cdn/chunks/chunk.Z45IXDIV.js +540 -0
  212. package/cdn/chunks/chunk.ZAHCQGUA.js +19 -0
  213. package/cdn/chunks/chunk.ZENSAK4S.js +68 -0
  214. package/cdn/chunks/chunk.ZFNIC34O.js +19 -0
  215. package/cdn/chunks/chunk.ZFYQAHEP.js +19 -0
  216. package/cdn/chunks/chunk.ZIKKX7BH.js +437 -0
  217. package/cdn/components/accordion/accordion.component.js +3 -3
  218. package/cdn/components/accordion/accordion.js +4 -4
  219. package/cdn/components/alert/alert.component.js +2 -2
  220. package/cdn/components/alert/alert.js +3 -3
  221. package/cdn/components/avatar/avatar.component.js +3 -3
  222. package/cdn/components/avatar/avatar.js +4 -4
  223. package/cdn/components/badge/badge.component.js +2 -2
  224. package/cdn/components/badge/badge.js +3 -3
  225. package/cdn/components/banner/banner.component.js +2 -2
  226. package/cdn/components/banner/banner.js +3 -3
  227. package/cdn/components/breadcrumb/breadcrumb.component.js +2 -2
  228. package/cdn/components/breadcrumb/breadcrumb.js +3 -3
  229. package/cdn/components/breadcrumbs/breadcrumbs.component.js +2 -2
  230. package/cdn/components/breadcrumbs/breadcrumbs.js +3 -3
  231. package/cdn/components/browse-variables/browse-variables.component.d.ts +15 -0
  232. package/cdn/components/browse-variables/browse-variables.component.js +16 -12
  233. package/cdn/components/browse-variables/browse-variables.js +17 -13
  234. package/cdn/components/browse-variables/browse-variables.styles.js +1 -1
  235. package/cdn/components/button/button.component.js +4 -4
  236. package/cdn/components/button/button.js +5 -5
  237. package/cdn/components/button-group/button-group.component.js +2 -2
  238. package/cdn/components/button-group/button-group.js +3 -3
  239. package/cdn/components/caption/caption.component.js +2 -2
  240. package/cdn/components/caption/caption.js +3 -3
  241. package/cdn/components/card/card.component.js +2 -2
  242. package/cdn/components/card/card.js +3 -3
  243. package/cdn/components/checkbox/checkbox.component.js +3 -3
  244. package/cdn/components/checkbox/checkbox.js +4 -4
  245. package/cdn/components/chip/chip.component.js +2 -2
  246. package/cdn/components/chip/chip.js +3 -3
  247. package/cdn/components/combobox/combobox.component.js +2 -2
  248. package/cdn/components/combobox/combobox.js +3 -3
  249. package/cdn/components/data-access/data-access.component.js +36 -36
  250. package/cdn/components/data-access/data-access.js +37 -37
  251. package/cdn/components/data-grid/data-grid.component.js +3 -3
  252. package/cdn/components/data-grid/data-grid.js +4 -4
  253. package/cdn/components/data-rods/data-rods.component.js +43 -43
  254. package/cdn/components/data-rods/data-rods.js +44 -44
  255. package/cdn/components/data-subsetter/data-subsetter.component.d.ts +3 -0
  256. package/cdn/components/data-subsetter/data-subsetter.component.js +47 -47
  257. package/cdn/components/data-subsetter/data-subsetter.js +48 -48
  258. package/cdn/components/data-subsetter/data-subsetter.styles.js +1 -1
  259. package/cdn/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  260. package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +48 -48
  261. package/cdn/components/data-subsetter-history/data-subsetter-history.js +49 -49
  262. package/cdn/components/date-picker/date-picker.component.js +9 -9
  263. package/cdn/components/date-picker/date-picker.js +10 -10
  264. package/cdn/components/date-range-slider/date-range-slider.component.js +2 -2
  265. package/cdn/components/date-range-slider/date-range-slider.js +3 -3
  266. package/cdn/components/dialog/dialog.component.js +5 -5
  267. package/cdn/components/dialog/dialog.js +6 -6
  268. package/cdn/components/divider/divider.component.js +2 -2
  269. package/cdn/components/divider/divider.js +3 -3
  270. package/cdn/components/dropdown/dropdown.component.js +3 -3
  271. package/cdn/components/dropdown/dropdown.js +4 -4
  272. package/cdn/components/earthdata-login/earthdata-login.component.js +11 -11
  273. package/cdn/components/earthdata-login/earthdata-login.js +12 -12
  274. package/cdn/components/file-upload/file-upload.component.d.ts +1 -0
  275. package/cdn/components/file-upload/file-upload.component.js +2 -2
  276. package/cdn/components/file-upload/file-upload.js +3 -3
  277. package/cdn/components/harmony-history/harmony-history.component.js +10 -10
  278. package/cdn/components/harmony-history/harmony-history.js +11 -11
  279. package/cdn/components/icon/icon.component.js +2 -2
  280. package/cdn/components/icon/icon.js +3 -3
  281. package/cdn/components/input/input.component.js +3 -3
  282. package/cdn/components/input/input.js +4 -4
  283. package/cdn/components/loader/loader.component.js +2 -2
  284. package/cdn/components/loader/loader.js +3 -3
  285. package/cdn/components/login/login.component.js +9 -9
  286. package/cdn/components/login/login.js +10 -10
  287. package/cdn/components/map/controls/draw-toolbar.control.js +3 -3
  288. package/cdn/components/map/layers/borders.layer.js +2 -2
  289. package/cdn/components/map/layers/labels.layer.js +2 -2
  290. package/cdn/components/map/map.component.js +11 -11
  291. package/cdn/components/map/map.js +12 -12
  292. package/cdn/components/map/map.service.js +8 -8
  293. package/cdn/components/map/models/LatLng.d.ts +6 -0
  294. package/cdn/components/map/models/LatLng.js +1 -1
  295. package/cdn/components/map/models/LatLngBounds.d.ts +5 -0
  296. package/cdn/components/map/models/LatLngBounds.js +2 -2
  297. package/cdn/components/menu/menu.component.js +2 -2
  298. package/cdn/components/menu/menu.js +3 -3
  299. package/cdn/components/menu-item/menu-item.component.js +5 -5
  300. package/cdn/components/menu-item/menu-item.js +6 -6
  301. package/cdn/components/option/option.component.js +3 -3
  302. package/cdn/components/option/option.js +4 -4
  303. package/cdn/components/pagination/pagination.component.js +3 -3
  304. package/cdn/components/pagination/pagination.js +4 -4
  305. package/cdn/components/plot/plot.component.js +2 -2
  306. package/cdn/components/plot/plot.js +3 -3
  307. package/cdn/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  308. package/cdn/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  309. package/cdn/components/plot-toolbar/plot-toolbar.component.js +19 -19
  310. package/cdn/components/plot-toolbar/plot-toolbar.js +20 -20
  311. package/cdn/components/popup/popup.component.js +2 -2
  312. package/cdn/components/popup/popup.js +3 -3
  313. package/cdn/components/progress-bar/progress-bar.component.js +2 -2
  314. package/cdn/components/progress-bar/progress-bar.js +3 -3
  315. package/cdn/components/radio/radio.component.js +2 -2
  316. package/cdn/components/radio/radio.js +3 -3
  317. package/cdn/components/radio-group/radio-group.component.js +2 -2
  318. package/cdn/components/radio-group/radio-group.js +3 -3
  319. package/cdn/components/scroll-hint/scroll-hint.component.js +3 -3
  320. package/cdn/components/scroll-hint/scroll-hint.js +4 -4
  321. package/cdn/components/select/select.component.js +5 -5
  322. package/cdn/components/select/select.js +6 -6
  323. package/cdn/components/site-header/site-header.component.js +3 -3
  324. package/cdn/components/site-header/site-header.js +3 -3
  325. package/cdn/components/site-navigation/site-navigation.component.js +2 -2
  326. package/cdn/components/site-navigation/site-navigation.js +2 -2
  327. package/cdn/components/skeleton/skeleton.component.js +2 -2
  328. package/cdn/components/skeleton/skeleton.js +3 -3
  329. package/cdn/components/slider/slider.component.js +2 -2
  330. package/cdn/components/slider/slider.js +3 -3
  331. package/cdn/components/spatial-picker/spatial-picker.component.js +19 -19
  332. package/cdn/components/spatial-picker/spatial-picker.js +20 -20
  333. package/cdn/components/spatial-picker/spatial-picker.service.js +3 -3
  334. package/cdn/components/status-indicator/status-indicator.component.js +2 -2
  335. package/cdn/components/status-indicator/status-indicator.js +3 -3
  336. package/cdn/components/stepper/stepper.component.d.ts +8 -0
  337. package/cdn/components/stepper/stepper.component.js +3 -3
  338. package/cdn/components/stepper/stepper.js +4 -4
  339. package/cdn/components/stepper/stepper.styles.js +1 -1
  340. package/cdn/components/stepper-step/stepper-step.component.d.ts +6 -0
  341. package/cdn/components/stepper-step/stepper-step.component.js +4 -4
  342. package/cdn/components/stepper-step/stepper-step.js +5 -5
  343. package/cdn/components/stepper-step/stepper-step.styles.js +1 -1
  344. package/cdn/components/tab/tab.component.js +3 -3
  345. package/cdn/components/tab/tab.js +4 -4
  346. package/cdn/components/tab-panel/tab-panel.component.js +2 -2
  347. package/cdn/components/tab-panel/tab-panel.js +3 -3
  348. package/cdn/components/tabs/tabs.component.js +3 -3
  349. package/cdn/components/tabs/tabs.js +4 -4
  350. package/cdn/components/tag/tag.component.js +3 -3
  351. package/cdn/components/tag/tag.js +4 -4
  352. package/cdn/components/textarea/textarea.component.js +2 -2
  353. package/cdn/components/textarea/textarea.js +3 -3
  354. package/cdn/components/time-average-map/time-average-map.component.js +28 -28
  355. package/cdn/components/time-average-map/time-average-map.controller.js +7 -7
  356. package/cdn/components/time-average-map/time-average-map.js +29 -29
  357. package/cdn/components/time-series/time-series.component.js +28 -28
  358. package/cdn/components/time-series/time-series.controller.js +7 -7
  359. package/cdn/components/time-series/time-series.js +29 -29
  360. package/cdn/components/toast/toast.component.js +3 -3
  361. package/cdn/components/toast/toast.js +4 -4
  362. package/cdn/components/toggle/toggle.component.js +2 -2
  363. package/cdn/components/toggle/toggle.js +3 -3
  364. package/cdn/components/tooltip/tooltip.component.js +3 -3
  365. package/cdn/components/tooltip/tooltip.js +4 -4
  366. package/cdn/components/variable-combobox/variable-combobox.component.js +10 -10
  367. package/cdn/components/variable-combobox/variable-combobox.js +11 -11
  368. package/cdn/components/variable-combobox/variable-combobox.styles.js +1 -1
  369. package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +7 -7
  370. package/cdn/components/variable-keyword-search/variable-keyword-search.js +8 -8
  371. package/cdn/controllers/harmony-request.controller.d.ts +2 -1
  372. package/cdn/custom-elements.json +9195 -8991
  373. package/cdn/lib/harmony/harmony.request.d.ts +11 -1
  374. package/cdn/queries/harmony.queries.d.ts +14 -0
  375. package/cdn/react/accordion/index.js +4 -4
  376. package/cdn/react/alert/index.js +3 -3
  377. package/cdn/react/avatar/index.js +4 -4
  378. package/cdn/react/badge/index.js +3 -3
  379. package/cdn/react/banner/index.js +3 -3
  380. package/cdn/react/breadcrumb/index.js +3 -3
  381. package/cdn/react/breadcrumbs/index.js +3 -3
  382. package/cdn/react/browse-variables/index.d.ts +2 -0
  383. package/cdn/react/browse-variables/index.js +17 -13
  384. package/cdn/react/button/index.js +5 -5
  385. package/cdn/react/button-group/index.js +3 -3
  386. package/cdn/react/caption/index.js +3 -3
  387. package/cdn/react/card/index.js +3 -3
  388. package/cdn/react/checkbox/index.js +4 -4
  389. package/cdn/react/chip/index.js +3 -3
  390. package/cdn/react/combobox/index.js +3 -3
  391. package/cdn/react/data-access/index.js +37 -37
  392. package/cdn/react/data-grid/index.js +4 -4
  393. package/cdn/react/data-rods/index.js +44 -44
  394. package/cdn/react/data-subsetter/index.js +48 -48
  395. package/cdn/react/data-subsetter-history/index.js +49 -49
  396. package/cdn/react/date-picker/index.js +10 -10
  397. package/cdn/react/date-range-slider/index.js +3 -3
  398. package/cdn/react/dialog/index.js +6 -6
  399. package/cdn/react/divider/index.js +3 -3
  400. package/cdn/react/dropdown/index.js +4 -4
  401. package/cdn/react/earthdata-login/index.js +12 -12
  402. package/cdn/react/file-upload/index.js +3 -3
  403. package/cdn/react/harmony-history/index.js +11 -11
  404. package/cdn/react/icon/index.js +3 -3
  405. package/cdn/react/index.d.ts +30 -30
  406. package/cdn/react/index.js +215 -215
  407. package/cdn/react/input/index.js +4 -4
  408. package/cdn/react/loader/index.js +3 -3
  409. package/cdn/react/login/index.js +10 -10
  410. package/cdn/react/map/index.js +12 -12
  411. package/cdn/react/menu/index.js +3 -3
  412. package/cdn/react/menu-item/index.js +6 -6
  413. package/cdn/react/option/index.js +4 -4
  414. package/cdn/react/pagination/index.js +4 -4
  415. package/cdn/react/plot/index.js +3 -3
  416. package/cdn/react/plot-toolbar/index.js +20 -20
  417. package/cdn/react/popup/index.js +3 -3
  418. package/cdn/react/progress-bar/index.js +3 -3
  419. package/cdn/react/radio/index.js +3 -3
  420. package/cdn/react/radio-group/index.js +3 -3
  421. package/cdn/react/scroll-hint/index.js +4 -4
  422. package/cdn/react/select/index.js +6 -6
  423. package/cdn/react/site-header/index.js +4 -4
  424. package/cdn/react/site-navigation/index.js +3 -3
  425. package/cdn/react/skeleton/index.js +3 -3
  426. package/cdn/react/slider/index.js +3 -3
  427. package/cdn/react/spatial-picker/index.js +20 -20
  428. package/cdn/react/status-indicator/index.js +3 -3
  429. package/cdn/react/stepper/index.js +4 -4
  430. package/cdn/react/stepper-step/index.js +5 -5
  431. package/cdn/react/tab/index.js +4 -4
  432. package/cdn/react/tab-panel/index.js +3 -3
  433. package/cdn/react/tabs/index.js +4 -4
  434. package/cdn/react/tag/index.js +4 -4
  435. package/cdn/react/textarea/index.js +3 -3
  436. package/cdn/react/time-average-map/index.js +29 -29
  437. package/cdn/react/time-series/index.js +29 -29
  438. package/cdn/react/toast/index.js +4 -4
  439. package/cdn/react/toggle/index.js +3 -3
  440. package/cdn/react/tooltip/index.js +4 -4
  441. package/cdn/react/variable-combobox/index.js +11 -11
  442. package/cdn/react/variable-keyword-search/index.js +8 -8
  443. package/cdn/terra-ui-components.js +194 -194
  444. package/cdn/themes/horizon.css +1 -1
  445. package/cdn/themes/horizon.styles.js +1 -1
  446. package/cdn/types/vue/index.d.ts +993 -983
  447. package/cdn/vscode.html-custom-data.json +821 -820
  448. package/cdn/web-types.json +2388 -2364
  449. package/dist/apis/harmony.api.d.ts +7 -0
  450. package/dist/chunks/chunk.224RQGIQ.js +1 -0
  451. package/dist/chunks/chunk.23AJO5JN.js +1 -0
  452. package/dist/chunks/chunk.255AACF5.js +1 -0
  453. package/dist/chunks/chunk.2JIESSDW.js +1 -0
  454. package/dist/chunks/chunk.2JSRPRFD.js +1 -0
  455. package/dist/chunks/chunk.2WX6SQIN.js +1 -0
  456. package/dist/chunks/chunk.32QRSPS4.js +1 -0
  457. package/dist/chunks/chunk.3473E453.js +25 -0
  458. package/dist/chunks/chunk.3G5RMVYE.js +1 -0
  459. package/dist/chunks/chunk.3OLVJCSH.js +11 -0
  460. package/dist/chunks/chunk.3V5SLRI5.js +100 -0
  461. package/dist/chunks/chunk.3XRCUOUJ.js +5 -0
  462. package/dist/chunks/chunk.4233YNTB.js +16 -0
  463. package/dist/chunks/chunk.46TLZFOW.js +1 -0
  464. package/dist/chunks/chunk.4GXEPG2P.js +1 -0
  465. package/dist/chunks/chunk.4PNNISNN.js +12 -0
  466. package/dist/chunks/chunk.4QXBDSLM.js +1 -0
  467. package/dist/chunks/chunk.4SEOBTSU.js +1 -0
  468. package/dist/chunks/chunk.4TPII7LG.js +1 -0
  469. package/dist/chunks/chunk.4WQ7VATR.js +1 -0
  470. package/dist/chunks/chunk.5K3WI2JJ.js +1 -0
  471. package/dist/chunks/chunk.5L32MMBB.js +1 -0
  472. package/dist/chunks/chunk.5MQKZTT2.js +1 -0
  473. package/dist/chunks/chunk.5P7CYUKX.js +1 -0
  474. package/dist/chunks/chunk.5RAKMWTT.js +1 -0
  475. package/dist/chunks/chunk.65Q3F3LJ.js +1 -0
  476. package/dist/chunks/chunk.6UGTTIL7.js +22 -0
  477. package/dist/chunks/chunk.74H67OO2.js +1 -0
  478. package/dist/chunks/chunk.75FLVY74.js +1 -0
  479. package/dist/chunks/chunk.77RIUMEQ.js +1 -0
  480. package/dist/chunks/chunk.7EG5USIU.js +17 -0
  481. package/dist/chunks/chunk.7IPNSQO2.js +1 -0
  482. package/dist/chunks/chunk.7JR6HYAR.js +1 -0
  483. package/dist/chunks/chunk.7KS523XQ.js +1 -0
  484. package/dist/chunks/chunk.7NHLPVYX.js +1 -0
  485. package/dist/chunks/chunk.7OHXT3IB.js +125 -0
  486. package/dist/chunks/chunk.7S5GHPMV.js +1 -0
  487. package/dist/chunks/chunk.A3HVUSWF.js +2 -0
  488. package/dist/chunks/chunk.ALBESADY.js +9 -0
  489. package/dist/chunks/chunk.AMTFHH3Q.js +1 -0
  490. package/dist/chunks/chunk.AQ5MV2PT.js +1 -0
  491. package/dist/chunks/chunk.ATKXVJOW.js +1 -0
  492. package/dist/chunks/chunk.B3MAWEN3.js +1 -0
  493. package/dist/chunks/chunk.B4E5VH3P.js +1 -0
  494. package/dist/chunks/chunk.B64IWXB6.js +1 -0
  495. package/dist/chunks/chunk.B6W7HFEB.js +1 -0
  496. package/dist/chunks/chunk.B7BKAZPP.js +1 -0
  497. package/dist/chunks/chunk.BBSZLWRW.js +1 -0
  498. package/dist/chunks/chunk.BFQBOANQ.js +1 -0
  499. package/dist/chunks/chunk.BJUETMM7.js +1 -0
  500. package/dist/chunks/chunk.BKTDTLSZ.js +356 -0
  501. package/dist/chunks/chunk.BLSN7TN3.js +1 -0
  502. package/dist/chunks/chunk.BM4VCIE3.js +1 -0
  503. package/dist/chunks/chunk.C5I3XGMY.js +64 -0
  504. package/dist/chunks/chunk.CK3QZMBE.js +20 -0
  505. package/dist/chunks/chunk.CM5PJDTJ.js +1 -0
  506. package/dist/chunks/chunk.CPE2JWFP.js +1 -0
  507. package/dist/chunks/chunk.CSI5FZUQ.js +1 -0
  508. package/dist/chunks/chunk.CWCJ7NPX.js +39 -0
  509. package/dist/chunks/chunk.D2BO7SXC.js +572 -0
  510. package/dist/chunks/chunk.D7CTZNLO.js +1 -0
  511. package/dist/chunks/chunk.DASVSHE2.js +122 -0
  512. package/dist/chunks/chunk.DBYNAZJ5.js +1 -0
  513. package/dist/chunks/chunk.DDLNROG2.js +1 -0
  514. package/dist/chunks/chunk.DQRYUPZU.js +1 -0
  515. package/dist/chunks/chunk.DX7K7LQL.js +1 -0
  516. package/dist/chunks/chunk.E322JSYC.js +1 -0
  517. package/dist/chunks/chunk.E3IZSCAQ.js +1 -0
  518. package/dist/chunks/chunk.E4TPOBZZ.js +26 -0
  519. package/dist/chunks/chunk.E5ZOHYTS.js +13 -0
  520. package/dist/chunks/chunk.EDO3KNNV.js +1 -0
  521. package/dist/chunks/chunk.EENXQ7FB.js +39 -0
  522. package/dist/chunks/chunk.EKBFKFVE.js +1 -0
  523. package/dist/chunks/chunk.EKPDUNBI.js +1 -0
  524. package/dist/chunks/chunk.ES3HNM2X.js +1 -0
  525. package/dist/chunks/chunk.EVHJJHLC.js +5 -0
  526. package/dist/chunks/chunk.EXCWGDK5.js +1 -0
  527. package/dist/chunks/chunk.F323KAPC.js +1 -0
  528. package/dist/chunks/chunk.F726CW4Q.js +1 -0
  529. package/dist/chunks/chunk.F76PQOT5.js +1 -0
  530. package/dist/chunks/chunk.FAWWXCJS.js +1 -0
  531. package/dist/chunks/chunk.FL7S7XOW.js +1 -0
  532. package/dist/chunks/chunk.FLRYZC3Y.js +1 -0
  533. package/dist/chunks/chunk.FMHRQDVQ.js +1 -0
  534. package/dist/chunks/chunk.FPOJCR2I.js +1 -0
  535. package/dist/chunks/chunk.G32X765Q.js +1 -0
  536. package/dist/chunks/chunk.G7C3NVYN.js +1 -0
  537. package/dist/chunks/chunk.GACVGPS5.js +1 -0
  538. package/dist/chunks/chunk.GFSY3DK7.js +1 -0
  539. package/dist/chunks/chunk.GJXW4PLR.js +43 -0
  540. package/dist/chunks/chunk.GMPJDMFO.js +1 -0
  541. package/dist/chunks/chunk.GZFHZRBN.js +19 -0
  542. package/dist/chunks/chunk.HE72A6CI.js +1 -0
  543. package/dist/chunks/chunk.HFUDHMSV.js +121 -0
  544. package/dist/chunks/chunk.HKUZZUCQ.js +157 -0
  545. package/dist/chunks/chunk.HLRVGPJI.js +1 -0
  546. package/dist/chunks/chunk.HM3GGGSZ.js +80 -0
  547. package/dist/chunks/chunk.HMJSVFLA.js +2 -0
  548. package/dist/chunks/chunk.HSPY2KHW.js +1 -0
  549. package/dist/chunks/chunk.HSU3GORK.js +1 -0
  550. package/dist/chunks/chunk.HZJALTAY.js +47 -0
  551. package/dist/chunks/chunk.I76ZGR5O.js +1 -0
  552. package/dist/chunks/chunk.IHH5IUXO.js +145 -0
  553. package/dist/chunks/chunk.II3GLGL3.js +1 -0
  554. package/dist/chunks/chunk.IIJNFZVF.js +35 -0
  555. package/dist/chunks/chunk.IV5N3NC3.js +1 -0
  556. package/dist/chunks/chunk.J6WCYCRH.js +1 -0
  557. package/dist/chunks/chunk.JF4PHYCT.js +1 -0
  558. package/dist/chunks/chunk.JHTKTEXH.js +1 -0
  559. package/dist/chunks/chunk.JHU4BG26.js +113 -0
  560. package/dist/chunks/chunk.JHZGV3DO.js +1 -0
  561. package/dist/chunks/chunk.JRRXWQNN.js +30 -0
  562. package/dist/chunks/chunk.JU3GZHPF.js +1 -0
  563. package/dist/chunks/chunk.JVZDQGJM.js +1 -0
  564. package/dist/chunks/chunk.K45NIOAW.js +37 -0
  565. package/dist/chunks/chunk.KC7KA2T7.js +55 -0
  566. package/dist/chunks/chunk.KCUVHJLC.js +1 -0
  567. package/dist/chunks/chunk.KEOX3HYL.js +6 -0
  568. package/dist/chunks/chunk.KOKSE6TG.js +1 -0
  569. package/dist/chunks/chunk.KTO4CWMX.js +1 -0
  570. package/dist/chunks/chunk.LVJYASQH.js +41 -0
  571. package/dist/chunks/chunk.M2V3P4RJ.js +35 -0
  572. package/dist/chunks/chunk.M3R3ADJT.js +1 -0
  573. package/dist/chunks/chunk.MD3WWSWH.js +1 -0
  574. package/dist/chunks/chunk.MGAR4A2C.js +1 -0
  575. package/dist/chunks/chunk.MHOPPG2L.js +27 -0
  576. package/dist/chunks/chunk.MHRETNDL.js +1 -0
  577. package/dist/chunks/chunk.MP2PA6I2.js +1 -0
  578. package/dist/chunks/chunk.MSTQMCZU.js +1 -0
  579. package/dist/chunks/chunk.MVZAQH35.js +1 -0
  580. package/dist/chunks/chunk.N6Y6OHJ2.js +1 -0
  581. package/dist/chunks/chunk.NEIV46YH.js +6 -0
  582. package/dist/chunks/chunk.NIKXQX3G.js +1 -0
  583. package/dist/chunks/chunk.NN26JW46.js +1 -0
  584. package/dist/chunks/chunk.NPVMA3OB.js +1 -0
  585. package/dist/chunks/chunk.OFQCUCKL.js +1 -0
  586. package/dist/chunks/chunk.OO3D3KYA.js +1 -0
  587. package/dist/chunks/chunk.OREQUNFN.js +1 -0
  588. package/dist/chunks/chunk.ORWDKUUV.js +1 -0
  589. package/dist/chunks/chunk.OSDEVN34.js +1001 -0
  590. package/dist/chunks/chunk.PLRFVB2T.js +523 -0
  591. package/dist/chunks/chunk.PMHKDAX4.js +14 -0
  592. package/dist/chunks/chunk.PMJBCFBC.js +4 -0
  593. package/dist/chunks/chunk.PPO2L3BE.js +24 -0
  594. package/dist/chunks/chunk.PQC63KGW.js +1 -0
  595. package/dist/chunks/chunk.PX6KXK37.js +112 -0
  596. package/dist/chunks/chunk.Q4V6CU45.js +1 -0
  597. package/dist/chunks/chunk.QD4WEVFW.js +1 -0
  598. package/dist/chunks/chunk.QFRJ47QK.js +1 -0
  599. package/dist/chunks/chunk.QGUTUAAS.js +55 -0
  600. package/dist/chunks/chunk.QVACFQ6X.js +1 -0
  601. package/dist/chunks/chunk.RAGUMQ4A.js +55 -0
  602. package/dist/chunks/chunk.RDSM7QJJ.js +1 -0
  603. package/dist/chunks/chunk.RJDX64F6.js +1 -0
  604. package/dist/chunks/chunk.RNK2SP3V.js +300 -0
  605. package/dist/chunks/chunk.RONKZSI5.js +1 -0
  606. package/dist/chunks/chunk.RQ3QRNRD.js +1 -0
  607. package/dist/chunks/chunk.RQHOJJUK.js +41 -0
  608. package/dist/chunks/chunk.RZC34L3A.js +26 -0
  609. package/dist/chunks/chunk.S5NWLDV6.js +1 -0
  610. package/dist/chunks/chunk.S6DL72MM.js +30 -0
  611. package/dist/chunks/chunk.S7X6AHZ3.js +11 -0
  612. package/dist/chunks/chunk.SUB7TSSV.js +1 -0
  613. package/dist/chunks/chunk.SWS3QDB5.js +8 -0
  614. package/dist/chunks/chunk.T37ISYQF.js +9 -0
  615. package/dist/chunks/chunk.TCE5GLO5.js +176 -0
  616. package/dist/chunks/chunk.TFQQDQPV.js +280 -0
  617. package/dist/chunks/chunk.TFVCIEQV.js +1 -0
  618. package/dist/chunks/chunk.TLCZPOGI.js +48 -0
  619. package/dist/chunks/chunk.TTHCQTJ5.js +1 -0
  620. package/dist/chunks/chunk.TWJJEPQI.js +1 -0
  621. package/dist/chunks/chunk.TXJOFCEB.js +20 -0
  622. package/dist/chunks/chunk.TYNOXO54.js +1 -0
  623. package/dist/chunks/chunk.TZ7VJYIG.js +1 -0
  624. package/dist/chunks/chunk.U423CTVK.js +1 -0
  625. package/dist/chunks/chunk.UDYMR57E.js +1 -0
  626. package/dist/chunks/chunk.UGALPERB.js +43 -0
  627. package/dist/chunks/chunk.UIR62OUZ.js +62 -0
  628. package/dist/chunks/chunk.UMFR3QZQ.js +1 -0
  629. package/dist/chunks/chunk.UWDWRAHZ.js +65 -0
  630. package/dist/chunks/chunk.V7NXYMPF.js +1 -0
  631. package/dist/chunks/chunk.VAMOIXWY.js +1 -0
  632. package/dist/chunks/chunk.VHVKDUXK.js +154 -0
  633. package/dist/chunks/chunk.VJ3TYI65.js +61 -0
  634. package/dist/chunks/chunk.VJ4PWETP.js +1 -0
  635. package/dist/chunks/chunk.VWWZFJJ3.js +1 -0
  636. package/dist/chunks/chunk.VYTCCGU7.js +74 -0
  637. package/dist/chunks/chunk.W2GWFBVH.js +1 -0
  638. package/dist/chunks/chunk.WFO7B4CB.js +1 -0
  639. package/dist/chunks/chunk.WKMUXXFT.js +1 -0
  640. package/dist/chunks/chunk.WO2UTEZC.js +4 -0
  641. package/dist/chunks/chunk.WT7V4Q75.js +67 -0
  642. package/dist/chunks/chunk.X4CA6KJW.js +1237 -0
  643. package/dist/chunks/chunk.XCGCQBTO.js +75 -0
  644. package/dist/chunks/chunk.XEXMENPB.js +780 -0
  645. package/dist/chunks/chunk.XLWUUG42.js +1 -0
  646. package/dist/chunks/chunk.XVIMCVSP.js +1 -0
  647. package/dist/chunks/chunk.XYM23MGW.js +1 -0
  648. package/dist/chunks/chunk.Y3ORBJE7.js +99 -0
  649. package/dist/chunks/chunk.Y4XLYB7I.js +33 -0
  650. package/dist/chunks/chunk.YP2AC3MD.js +1 -0
  651. package/dist/chunks/chunk.YXOAWWRW.js +350 -0
  652. package/dist/chunks/chunk.ZC3HYGTS.js +1 -0
  653. package/dist/chunks/chunk.ZCSONYDN.js +1 -0
  654. package/dist/chunks/chunk.ZDT2WOI7.js +23 -0
  655. package/dist/chunks/chunk.ZFNXPSQV.js +1 -0
  656. package/dist/chunks/chunk.ZGEMTZQ4.js +1 -0
  657. package/dist/chunks/chunk.ZJ4RZQYD.js +1 -0
  658. package/dist/chunks/chunk.ZJANM2QG.js +1 -0
  659. package/dist/chunks/chunk.ZN4K6E24.js +1 -0
  660. package/dist/chunks/chunk.ZRMNGS5U.js +1 -0
  661. package/dist/chunks/chunk.ZWWZUICO.js +1 -0
  662. package/dist/chunks/chunk.ZYGLUFVQ.js +148 -0
  663. package/dist/components/accordion/accordion.component.js +1 -1
  664. package/dist/components/accordion/accordion.js +1 -1
  665. package/dist/components/alert/alert.component.js +1 -1
  666. package/dist/components/alert/alert.js +1 -1
  667. package/dist/components/avatar/avatar.component.js +1 -1
  668. package/dist/components/avatar/avatar.js +1 -1
  669. package/dist/components/badge/badge.component.js +1 -1
  670. package/dist/components/badge/badge.js +1 -1
  671. package/dist/components/banner/banner.component.js +1 -1
  672. package/dist/components/banner/banner.js +1 -1
  673. package/dist/components/breadcrumb/breadcrumb.component.js +1 -1
  674. package/dist/components/breadcrumb/breadcrumb.js +1 -1
  675. package/dist/components/breadcrumbs/breadcrumbs.component.js +1 -1
  676. package/dist/components/breadcrumbs/breadcrumbs.js +1 -1
  677. package/dist/components/browse-variables/browse-variables.component.d.ts +15 -0
  678. package/dist/components/browse-variables/browse-variables.component.js +1 -1
  679. package/dist/components/browse-variables/browse-variables.js +1 -1
  680. package/dist/components/browse-variables/browse-variables.styles.js +1 -1
  681. package/dist/components/button/button.component.js +1 -1
  682. package/dist/components/button/button.js +1 -1
  683. package/dist/components/button-group/button-group.component.js +1 -1
  684. package/dist/components/button-group/button-group.js +1 -1
  685. package/dist/components/caption/caption.component.js +1 -1
  686. package/dist/components/caption/caption.js +1 -1
  687. package/dist/components/card/card.component.js +1 -1
  688. package/dist/components/card/card.js +1 -1
  689. package/dist/components/checkbox/checkbox.component.js +1 -1
  690. package/dist/components/checkbox/checkbox.js +1 -1
  691. package/dist/components/chip/chip.component.js +1 -1
  692. package/dist/components/chip/chip.js +1 -1
  693. package/dist/components/combobox/combobox.component.js +1 -1
  694. package/dist/components/combobox/combobox.js +1 -1
  695. package/dist/components/data-access/data-access.component.js +1 -1
  696. package/dist/components/data-access/data-access.js +1 -1
  697. package/dist/components/data-grid/data-grid.component.js +1 -1
  698. package/dist/components/data-grid/data-grid.js +1 -1
  699. package/dist/components/data-rods/data-rods.component.js +1 -1
  700. package/dist/components/data-rods/data-rods.js +1 -1
  701. package/dist/components/data-subsetter/data-subsetter.component.d.ts +3 -0
  702. package/dist/components/data-subsetter/data-subsetter.component.js +1 -1
  703. package/dist/components/data-subsetter/data-subsetter.js +1 -1
  704. package/dist/components/data-subsetter/data-subsetter.styles.js +1 -1
  705. package/dist/components/data-subsetter/notebooks/subsetter-notebook.js +1 -1
  706. package/dist/components/data-subsetter-history/data-subsetter-history.component.js +1 -1
  707. package/dist/components/data-subsetter-history/data-subsetter-history.js +1 -1
  708. package/dist/components/date-picker/date-picker.component.js +1 -1
  709. package/dist/components/date-picker/date-picker.js +1 -1
  710. package/dist/components/date-range-slider/date-range-slider.component.js +1 -1
  711. package/dist/components/date-range-slider/date-range-slider.js +1 -1
  712. package/dist/components/dialog/dialog.component.js +1 -1
  713. package/dist/components/dialog/dialog.js +1 -1
  714. package/dist/components/divider/divider.component.js +1 -1
  715. package/dist/components/divider/divider.js +1 -1
  716. package/dist/components/dropdown/dropdown.component.js +1 -1
  717. package/dist/components/dropdown/dropdown.js +1 -1
  718. package/dist/components/earthdata-login/earthdata-login.component.js +1 -1
  719. package/dist/components/earthdata-login/earthdata-login.js +1 -1
  720. package/dist/components/file-upload/file-upload.component.d.ts +1 -0
  721. package/dist/components/file-upload/file-upload.component.js +1 -1
  722. package/dist/components/file-upload/file-upload.js +1 -1
  723. package/dist/components/harmony-history/harmony-history.component.js +1 -1
  724. package/dist/components/harmony-history/harmony-history.js +1 -1
  725. package/dist/components/icon/icon.component.js +1 -1
  726. package/dist/components/icon/icon.js +1 -1
  727. package/dist/components/input/input.component.js +1 -1
  728. package/dist/components/input/input.js +1 -1
  729. package/dist/components/loader/loader.component.js +1 -1
  730. package/dist/components/loader/loader.js +1 -1
  731. package/dist/components/login/login.component.js +1 -1
  732. package/dist/components/login/login.js +1 -1
  733. package/dist/components/map/controls/draw-toolbar.control.js +1 -1
  734. package/dist/components/map/map.component.js +1 -1
  735. package/dist/components/map/map.js +1 -1
  736. package/dist/components/map/map.service.js +1 -1
  737. package/dist/components/map/models/LatLng.d.ts +6 -0
  738. package/dist/components/map/models/LatLng.js +1 -1
  739. package/dist/components/map/models/LatLngBounds.d.ts +5 -0
  740. package/dist/components/map/models/LatLngBounds.js +1 -1
  741. package/dist/components/menu/menu.component.js +1 -1
  742. package/dist/components/menu/menu.js +1 -1
  743. package/dist/components/menu-item/menu-item.component.js +1 -1
  744. package/dist/components/menu-item/menu-item.js +1 -1
  745. package/dist/components/option/option.component.js +1 -1
  746. package/dist/components/option/option.js +1 -1
  747. package/dist/components/pagination/pagination.component.js +1 -1
  748. package/dist/components/pagination/pagination.js +1 -1
  749. package/dist/components/plot/plot.component.js +1 -1
  750. package/dist/components/plot/plot.js +1 -1
  751. package/dist/components/plot-toolbar/notebooks/time-averaged-map-notebook.js +1 -1
  752. package/dist/components/plot-toolbar/notebooks/time-series-notebook.js +1 -1
  753. package/dist/components/plot-toolbar/plot-toolbar.component.js +1 -1
  754. package/dist/components/plot-toolbar/plot-toolbar.js +1 -1
  755. package/dist/components/popup/popup.component.js +1 -1
  756. package/dist/components/popup/popup.js +1 -1
  757. package/dist/components/progress-bar/progress-bar.component.js +1 -1
  758. package/dist/components/progress-bar/progress-bar.js +1 -1
  759. package/dist/components/radio/radio.component.js +1 -1
  760. package/dist/components/radio/radio.js +1 -1
  761. package/dist/components/radio-group/radio-group.component.js +1 -1
  762. package/dist/components/radio-group/radio-group.js +1 -1
  763. package/dist/components/scroll-hint/scroll-hint.component.js +1 -1
  764. package/dist/components/scroll-hint/scroll-hint.js +1 -1
  765. package/dist/components/select/select.component.js +1 -1
  766. package/dist/components/select/select.js +1 -1
  767. package/dist/components/site-header/site-header.component.js +1 -1
  768. package/dist/components/site-header/site-header.js +1 -1
  769. package/dist/components/site-navigation/site-navigation.component.js +1 -1
  770. package/dist/components/site-navigation/site-navigation.js +1 -1
  771. package/dist/components/skeleton/skeleton.component.js +1 -1
  772. package/dist/components/skeleton/skeleton.js +1 -1
  773. package/dist/components/slider/slider.component.js +1 -1
  774. package/dist/components/slider/slider.js +1 -1
  775. package/dist/components/spatial-picker/spatial-picker.component.js +1 -1
  776. package/dist/components/spatial-picker/spatial-picker.js +1 -1
  777. package/dist/components/spatial-picker/spatial-picker.service.js +1 -1
  778. package/dist/components/status-indicator/status-indicator.component.js +1 -1
  779. package/dist/components/status-indicator/status-indicator.js +1 -1
  780. package/dist/components/stepper/stepper.component.d.ts +8 -0
  781. package/dist/components/stepper/stepper.component.js +1 -1
  782. package/dist/components/stepper/stepper.js +1 -1
  783. package/dist/components/stepper/stepper.styles.js +1 -1
  784. package/dist/components/stepper-step/stepper-step.component.d.ts +6 -0
  785. package/dist/components/stepper-step/stepper-step.component.js +1 -1
  786. package/dist/components/stepper-step/stepper-step.js +1 -1
  787. package/dist/components/stepper-step/stepper-step.styles.js +1 -1
  788. package/dist/components/tab/tab.component.js +1 -1
  789. package/dist/components/tab/tab.js +1 -1
  790. package/dist/components/tab-panel/tab-panel.component.js +1 -1
  791. package/dist/components/tab-panel/tab-panel.js +1 -1
  792. package/dist/components/tabs/tabs.component.js +1 -1
  793. package/dist/components/tabs/tabs.js +1 -1
  794. package/dist/components/tag/tag.component.js +1 -1
  795. package/dist/components/tag/tag.js +1 -1
  796. package/dist/components/textarea/textarea.component.js +1 -1
  797. package/dist/components/textarea/textarea.js +1 -1
  798. package/dist/components/time-average-map/time-average-map.component.js +1 -1
  799. package/dist/components/time-average-map/time-average-map.controller.js +1 -1
  800. package/dist/components/time-average-map/time-average-map.js +1 -1
  801. package/dist/components/time-series/time-series.component.js +1 -1
  802. package/dist/components/time-series/time-series.controller.js +1 -1
  803. package/dist/components/time-series/time-series.js +1 -1
  804. package/dist/components/toast/toast.component.js +1 -1
  805. package/dist/components/toast/toast.js +1 -1
  806. package/dist/components/toggle/toggle.component.js +1 -1
  807. package/dist/components/toggle/toggle.js +1 -1
  808. package/dist/components/tooltip/tooltip.component.js +1 -1
  809. package/dist/components/tooltip/tooltip.js +1 -1
  810. package/dist/components/variable-combobox/variable-combobox.component.js +1 -1
  811. package/dist/components/variable-combobox/variable-combobox.js +1 -1
  812. package/dist/components/variable-combobox/variable-combobox.styles.js +1 -1
  813. package/dist/components/variable-keyword-search/variable-keyword-search.component.js +1 -1
  814. package/dist/components/variable-keyword-search/variable-keyword-search.js +1 -1
  815. package/dist/controllers/harmony-request.controller.d.ts +2 -1
  816. package/dist/custom-elements.json +9195 -8991
  817. package/dist/lib/harmony/harmony.request.d.ts +11 -1
  818. package/dist/queries/harmony.queries.d.ts +14 -0
  819. package/dist/react/accordion/index.js +1 -1
  820. package/dist/react/alert/index.js +1 -1
  821. package/dist/react/avatar/index.js +1 -1
  822. package/dist/react/badge/index.js +1 -1
  823. package/dist/react/banner/index.js +1 -1
  824. package/dist/react/breadcrumb/index.js +1 -1
  825. package/dist/react/breadcrumbs/index.js +1 -1
  826. package/dist/react/browse-variables/index.d.ts +2 -0
  827. package/dist/react/browse-variables/index.js +1 -1
  828. package/dist/react/button/index.js +1 -1
  829. package/dist/react/button-group/index.js +1 -1
  830. package/dist/react/caption/index.js +1 -1
  831. package/dist/react/card/index.js +1 -1
  832. package/dist/react/checkbox/index.js +1 -1
  833. package/dist/react/chip/index.js +1 -1
  834. package/dist/react/combobox/index.js +1 -1
  835. package/dist/react/data-access/index.js +1 -1
  836. package/dist/react/data-grid/index.js +1 -1
  837. package/dist/react/data-rods/index.js +1 -1
  838. package/dist/react/data-subsetter/index.js +1 -1
  839. package/dist/react/data-subsetter-history/index.js +1 -1
  840. package/dist/react/date-picker/index.js +1 -1
  841. package/dist/react/date-range-slider/index.js +1 -1
  842. package/dist/react/dialog/index.js +1 -1
  843. package/dist/react/divider/index.js +1 -1
  844. package/dist/react/dropdown/index.js +1 -1
  845. package/dist/react/earthdata-login/index.js +1 -1
  846. package/dist/react/file-upload/index.js +1 -1
  847. package/dist/react/harmony-history/index.js +1 -1
  848. package/dist/react/icon/index.js +1 -1
  849. package/dist/react/index.d.ts +30 -30
  850. package/dist/react/index.js +1 -1
  851. package/dist/react/input/index.js +1 -1
  852. package/dist/react/loader/index.js +1 -1
  853. package/dist/react/login/index.js +1 -1
  854. package/dist/react/map/index.js +1 -1
  855. package/dist/react/menu/index.js +1 -1
  856. package/dist/react/menu-item/index.js +1 -1
  857. package/dist/react/option/index.js +1 -1
  858. package/dist/react/pagination/index.js +1 -1
  859. package/dist/react/plot/index.js +1 -1
  860. package/dist/react/plot-toolbar/index.js +1 -1
  861. package/dist/react/popup/index.js +1 -1
  862. package/dist/react/progress-bar/index.js +1 -1
  863. package/dist/react/radio/index.js +1 -1
  864. package/dist/react/radio-group/index.js +1 -1
  865. package/dist/react/scroll-hint/index.js +1 -1
  866. package/dist/react/select/index.js +1 -1
  867. package/dist/react/site-header/index.js +1 -1
  868. package/dist/react/site-navigation/index.js +1 -1
  869. package/dist/react/skeleton/index.js +1 -1
  870. package/dist/react/slider/index.js +1 -1
  871. package/dist/react/spatial-picker/index.js +1 -1
  872. package/dist/react/status-indicator/index.js +1 -1
  873. package/dist/react/stepper/index.js +1 -1
  874. package/dist/react/stepper-step/index.js +1 -1
  875. package/dist/react/tab/index.js +1 -1
  876. package/dist/react/tab-panel/index.js +1 -1
  877. package/dist/react/tabs/index.js +1 -1
  878. package/dist/react/tag/index.js +1 -1
  879. package/dist/react/textarea/index.js +1 -1
  880. package/dist/react/time-average-map/index.js +1 -1
  881. package/dist/react/time-series/index.js +1 -1
  882. package/dist/react/toast/index.js +1 -1
  883. package/dist/react/toggle/index.js +1 -1
  884. package/dist/react/tooltip/index.js +1 -1
  885. package/dist/react/variable-combobox/index.js +1 -1
  886. package/dist/react/variable-keyword-search/index.js +1 -1
  887. package/dist/terra-ui-components.js +1 -1
  888. package/dist/terra_ui_components-0.0.202-py3-none-any.whl +0 -0
  889. package/dist/terra_ui_components-0.0.202.tar.gz +0 -0
  890. package/dist/themes/horizon.css +1 -1
  891. package/dist/themes/horizon.styles.js +1 -1
  892. package/dist/types/vue/index.d.ts +993 -983
  893. package/dist/vscode.html-custom-data.json +821 -820
  894. package/dist/web-types.json +2388 -2364
  895. package/package.json +72 -69
  896. package/cdn/chunks/chunk.2AZHW3NI.js +0 -62
  897. package/cdn/chunks/chunk.2GMJRLYQ.js +0 -604
  898. package/cdn/chunks/chunk.2QUVRAPY.js +0 -19
  899. package/cdn/chunks/chunk.2RIKRQ4D.js +0 -19
  900. package/cdn/chunks/chunk.2RWUR2JL.js +0 -2546
  901. package/cdn/chunks/chunk.2TQCFJVQ.js +0 -29
  902. package/cdn/chunks/chunk.3256UFRN.js +0 -19
  903. package/cdn/chunks/chunk.37QVOESQ.js +0 -29
  904. package/cdn/chunks/chunk.3INLH7LI.js +0 -19
  905. package/cdn/chunks/chunk.3PO7VXAW.js +0 -138
  906. package/cdn/chunks/chunk.3TFI26OB.js +0 -49
  907. package/cdn/chunks/chunk.3VHEYP2M.js +0 -92
  908. package/cdn/chunks/chunk.3VP3WQPD.js +0 -364
  909. package/cdn/chunks/chunk.4ANCA534.js +0 -19
  910. package/cdn/chunks/chunk.4IZ5QWCL.js +0 -592
  911. package/cdn/chunks/chunk.4QPOAJXP.js +0 -29
  912. package/cdn/chunks/chunk.4RKSH72J.js +0 -19
  913. package/cdn/chunks/chunk.4WUKLOQ3.js +0 -36
  914. package/cdn/chunks/chunk.4WZ65Q23.js +0 -74
  915. package/cdn/chunks/chunk.53W5YWTO.js +0 -158
  916. package/cdn/chunks/chunk.55WRSCJY.js +0 -978
  917. package/cdn/chunks/chunk.57DIZPDI.js +0 -29
  918. package/cdn/chunks/chunk.5DHLUBMH.js +0 -19
  919. package/cdn/chunks/chunk.5GXIKSYC.js +0 -657
  920. package/cdn/chunks/chunk.5JPWHGTQ.js +0 -29
  921. package/cdn/chunks/chunk.5LFN6KT3.js +0 -416
  922. package/cdn/chunks/chunk.5TICVM3P.js +0 -19
  923. package/cdn/chunks/chunk.5YAN7WHN.js +0 -394
  924. package/cdn/chunks/chunk.6CELGCID.js +0 -155
  925. package/cdn/chunks/chunk.6DHAZ6DZ.js +0 -29
  926. package/cdn/chunks/chunk.6T4SSHKA.js +0 -32
  927. package/cdn/chunks/chunk.6UXUUG3J.js +0 -29
  928. package/cdn/chunks/chunk.6YTKJIW2.js +0 -443
  929. package/cdn/chunks/chunk.6ZQMKTYA.js +0 -19
  930. package/cdn/chunks/chunk.72ZIJXV2.js +0 -29
  931. package/cdn/chunks/chunk.7HFVI6VA.js +0 -29
  932. package/cdn/chunks/chunk.7NVKHDK7.js +0 -34
  933. package/cdn/chunks/chunk.7P4E5GVO.js +0 -78
  934. package/cdn/chunks/chunk.ABNQAMWH.js +0 -29
  935. package/cdn/chunks/chunk.ACQ5NFZO.js +0 -371
  936. package/cdn/chunks/chunk.AKEAFDB3.js +0 -128
  937. package/cdn/chunks/chunk.ALANM6HV.js +0 -29
  938. package/cdn/chunks/chunk.APRNEJDQ.js +0 -230
  939. package/cdn/chunks/chunk.AXFNHOSM.js +0 -377
  940. package/cdn/chunks/chunk.B2HOZPO6.js +0 -56
  941. package/cdn/chunks/chunk.B2YIDU6U.js +0 -29
  942. package/cdn/chunks/chunk.B42N7DPY.js +0 -30
  943. package/cdn/chunks/chunk.BD4TYZWL.js +0 -29
  944. package/cdn/chunks/chunk.BPF4UJ52.js +0 -134
  945. package/cdn/chunks/chunk.BRQN3F2C.js +0 -29
  946. package/cdn/chunks/chunk.BYQ7ST2W.js +0 -36
  947. package/cdn/chunks/chunk.BZE5ZJ7T.js +0 -123
  948. package/cdn/chunks/chunk.C3CXYQKB.js +0 -33
  949. package/cdn/chunks/chunk.CCXE3ZLE.js +0 -19
  950. package/cdn/chunks/chunk.CFT6E372.js +0 -19
  951. package/cdn/chunks/chunk.CLNHUTGL.js +0 -29
  952. package/cdn/chunks/chunk.CONT7QQX.js +0 -29
  953. package/cdn/chunks/chunk.CROGJ6YF.js +0 -128
  954. package/cdn/chunks/chunk.DDBQOGIU.js +0 -19
  955. package/cdn/chunks/chunk.DIPU6IVU.js +0 -19
  956. package/cdn/chunks/chunk.DLCPWY67.js +0 -190
  957. package/cdn/chunks/chunk.DVMT42BQ.js +0 -19
  958. package/cdn/chunks/chunk.DZ3OSXLA.js +0 -4735
  959. package/cdn/chunks/chunk.E2ZS4UCS.js +0 -32
  960. package/cdn/chunks/chunk.EBQRJIE5.js +0 -60
  961. package/cdn/chunks/chunk.ECFWW5YT.js +0 -93
  962. package/cdn/chunks/chunk.EQS2M33G.js +0 -19
  963. package/cdn/chunks/chunk.EQWU6TVV.js +0 -32
  964. package/cdn/chunks/chunk.F3CODGFM.js +0 -616
  965. package/cdn/chunks/chunk.F3JEW22I.js +0 -231
  966. package/cdn/chunks/chunk.FDRGXPIF.js +0 -19
  967. package/cdn/chunks/chunk.FJCZ7YZ4.js +0 -33
  968. package/cdn/chunks/chunk.FKBBPBGA.js +0 -19
  969. package/cdn/chunks/chunk.FPUUQBZB.js +0 -19
  970. package/cdn/chunks/chunk.FQM5CI7F.js +0 -113
  971. package/cdn/chunks/chunk.G352BK7Q.js +0 -60
  972. package/cdn/chunks/chunk.G5NIUPHF.js +0 -33
  973. package/cdn/chunks/chunk.GOVZIEZD.js +0 -19
  974. package/cdn/chunks/chunk.GP723IDG.js +0 -36
  975. package/cdn/chunks/chunk.GWUHRDWF.js +0 -29
  976. package/cdn/chunks/chunk.GX64WIPT.js +0 -19
  977. package/cdn/chunks/chunk.HB4UBTFX.js +0 -68
  978. package/cdn/chunks/chunk.HITOJASR.js +0 -19
  979. package/cdn/chunks/chunk.HLNDVCZM.js +0 -37
  980. package/cdn/chunks/chunk.HS75CIWK.js +0 -276
  981. package/cdn/chunks/chunk.HSMS2PHV.js +0 -32
  982. package/cdn/chunks/chunk.HT4VXYXY.js +0 -37
  983. package/cdn/chunks/chunk.I4ACRUKD.js +0 -293
  984. package/cdn/chunks/chunk.I4SNTEYK.js +0 -19
  985. package/cdn/chunks/chunk.I5LNSGSR.js +0 -33
  986. package/cdn/chunks/chunk.I7HUTXHU.js +0 -479
  987. package/cdn/chunks/chunk.IQFL4UVO.js +0 -904
  988. package/cdn/chunks/chunk.ISZYSNVF.js +0 -672
  989. package/cdn/chunks/chunk.ITHFDF55.js +0 -278
  990. package/cdn/chunks/chunk.ITK2GQEZ.js +0 -1002
  991. package/cdn/chunks/chunk.IUZGXCFV.js +0 -36
  992. package/cdn/chunks/chunk.IYPNNII2.js +0 -29
  993. package/cdn/chunks/chunk.J35CXQX4.js +0 -35
  994. package/cdn/chunks/chunk.JKELJKO6.js +0 -110
  995. package/cdn/chunks/chunk.JLBHVHJZ.js +0 -19
  996. package/cdn/chunks/chunk.JXSV4XD4.js +0 -303
  997. package/cdn/chunks/chunk.KD5JYCKL.js +0 -543
  998. package/cdn/chunks/chunk.KJPGPJFX.js +0 -71
  999. package/cdn/chunks/chunk.KKPE3KJC.js +0 -19
  1000. package/cdn/chunks/chunk.KL5PSKJ3.js +0 -19
  1001. package/cdn/chunks/chunk.KNVPVYYS.js +0 -29
  1002. package/cdn/chunks/chunk.KQHMVEVR.js +0 -19
  1003. package/cdn/chunks/chunk.KS4PDYVB.js +0 -19
  1004. package/cdn/chunks/chunk.KTNBBFGU.js +0 -37
  1005. package/cdn/chunks/chunk.LA3ELYF2.js +0 -19
  1006. package/cdn/chunks/chunk.LBDJC6N7.js +0 -162
  1007. package/cdn/chunks/chunk.LH3S2EVK.js +0 -82
  1008. package/cdn/chunks/chunk.LIPFUNWP.js +0 -38
  1009. package/cdn/chunks/chunk.LYBKYZKO.js +0 -29
  1010. package/cdn/chunks/chunk.LZVY5UIW.js +0 -33
  1011. package/cdn/chunks/chunk.ME4DWNTC.js +0 -32
  1012. package/cdn/chunks/chunk.MHWLH2X2.js +0 -32
  1013. package/cdn/chunks/chunk.MHZAMQFI.js +0 -19
  1014. package/cdn/chunks/chunk.MMXLHYWT.js +0 -19
  1015. package/cdn/chunks/chunk.MY2CZEMK.js +0 -19
  1016. package/cdn/chunks/chunk.N6FMFL73.js +0 -19
  1017. package/cdn/chunks/chunk.NDOUQ2RH.js +0 -266
  1018. package/cdn/chunks/chunk.NEYV3XJQ.js +0 -35
  1019. package/cdn/chunks/chunk.NK2VQYCD.js +0 -19
  1020. package/cdn/chunks/chunk.NLGMTKSB.js +0 -29
  1021. package/cdn/chunks/chunk.NQAEXDQX.js +0 -19
  1022. package/cdn/chunks/chunk.O4MJ2UGE.js +0 -104
  1023. package/cdn/chunks/chunk.OF2T7LUM.js +0 -537
  1024. package/cdn/chunks/chunk.OF6PNEJD.js +0 -32
  1025. package/cdn/chunks/chunk.OIH73AFM.js +0 -234
  1026. package/cdn/chunks/chunk.OLXQEEYH.js +0 -19
  1027. package/cdn/chunks/chunk.OO4PLPM5.js +0 -35
  1028. package/cdn/chunks/chunk.OSW2S3HY.js +0 -29
  1029. package/cdn/chunks/chunk.OZNAXXFV.js +0 -83
  1030. package/cdn/chunks/chunk.P2RIMCQC.js +0 -19
  1031. package/cdn/chunks/chunk.P5SSS2YU.js +0 -19
  1032. package/cdn/chunks/chunk.PC5Q3XD2.js +0 -32
  1033. package/cdn/chunks/chunk.PCBCYIUF.js +0 -359
  1034. package/cdn/chunks/chunk.PEVHCSWS.js +0 -259
  1035. package/cdn/chunks/chunk.PF6HHPHM.js +0 -1691
  1036. package/cdn/chunks/chunk.PGBGELPU.js +0 -19
  1037. package/cdn/chunks/chunk.Q37FMCC3.js +0 -19
  1038. package/cdn/chunks/chunk.QBJMGAXS.js +0 -36
  1039. package/cdn/chunks/chunk.QDBZMPOJ.js +0 -34
  1040. package/cdn/chunks/chunk.QE27S3FT.js +0 -99
  1041. package/cdn/chunks/chunk.QIF6JAMD.js +0 -32
  1042. package/cdn/chunks/chunk.QK5H576L.js +0 -19
  1043. package/cdn/chunks/chunk.QKRKOCEG.js +0 -19
  1044. package/cdn/chunks/chunk.QOCVNKUN.js +0 -19
  1045. package/cdn/chunks/chunk.QU5D626U.js +0 -2785
  1046. package/cdn/chunks/chunk.QUHOX7DO.js +0 -132
  1047. package/cdn/chunks/chunk.QZ742FD3.js +0 -136
  1048. package/cdn/chunks/chunk.R22WNQCM.js +0 -47
  1049. package/cdn/chunks/chunk.RE2CJ7YH.js +0 -19
  1050. package/cdn/chunks/chunk.RFMVAVIU.js +0 -19
  1051. package/cdn/chunks/chunk.S5GCTGG7.js +0 -1197
  1052. package/cdn/chunks/chunk.S7XSFZJS.js +0 -19
  1053. package/cdn/chunks/chunk.SDL6C2BY.js +0 -29
  1054. package/cdn/chunks/chunk.SG346VAC.js +0 -19
  1055. package/cdn/chunks/chunk.SJJJM2KO.js +0 -1975
  1056. package/cdn/chunks/chunk.SOZG2CSG.js +0 -35
  1057. package/cdn/chunks/chunk.SVX6KHIC.js +0 -19
  1058. package/cdn/chunks/chunk.SXAPJEFP.js +0 -19
  1059. package/cdn/chunks/chunk.T3ZZETWY.js +0 -29
  1060. package/cdn/chunks/chunk.T77IGYGR.js +0 -277
  1061. package/cdn/chunks/chunk.T77TS7NG.js +0 -29
  1062. package/cdn/chunks/chunk.TAGA7EGX.js +0 -348
  1063. package/cdn/chunks/chunk.TINZXT55.js +0 -367
  1064. package/cdn/chunks/chunk.TKLGDSNB.js +0 -32
  1065. package/cdn/chunks/chunk.TOZVAUH5.js +0 -32
  1066. package/cdn/chunks/chunk.TTA6HRE7.js +0 -195
  1067. package/cdn/chunks/chunk.TUA7GHST.js +0 -41
  1068. package/cdn/chunks/chunk.TYYRLI6T.js +0 -224
  1069. package/cdn/chunks/chunk.UCEUICXD.js +0 -32
  1070. package/cdn/chunks/chunk.UTIEUVYR.js +0 -29
  1071. package/cdn/chunks/chunk.UYJBFTUW.js +0 -32
  1072. package/cdn/chunks/chunk.V2BU4ULP.js +0 -19
  1073. package/cdn/chunks/chunk.VPJPXQTQ.js +0 -86
  1074. package/cdn/chunks/chunk.VPKGODYM.js +0 -29
  1075. package/cdn/chunks/chunk.VTAXQ44I.js +0 -19
  1076. package/cdn/chunks/chunk.VVRBAIQH.js +0 -298
  1077. package/cdn/chunks/chunk.W3V3JBEX.js +0 -610
  1078. package/cdn/chunks/chunk.WBDZUWI4.js +0 -39
  1079. package/cdn/chunks/chunk.WBPEC2QG.js +0 -30
  1080. package/cdn/chunks/chunk.WE64K3PB.js +0 -19
  1081. package/cdn/chunks/chunk.WGWOVD57.js +0 -19
  1082. package/cdn/chunks/chunk.WN3NVSSV.js +0 -19
  1083. package/cdn/chunks/chunk.WTQZTCXG.js +0 -29
  1084. package/cdn/chunks/chunk.X3EOJIS4.js +0 -19
  1085. package/cdn/chunks/chunk.XIZSOVIX.js +0 -538
  1086. package/cdn/chunks/chunk.XUSCJW4Z.js +0 -19
  1087. package/cdn/chunks/chunk.XXKTPJUJ.js +0 -32
  1088. package/cdn/chunks/chunk.Y24AJWBF.js +0 -188
  1089. package/cdn/chunks/chunk.Y3EV6C6T.js +0 -27
  1090. package/cdn/chunks/chunk.Y47VOCWI.js +0 -19
  1091. package/cdn/chunks/chunk.Y4AR4VW3.js +0 -19
  1092. package/cdn/chunks/chunk.YERKS624.js +0 -478
  1093. package/cdn/chunks/chunk.YLAYVE6G.js +0 -19
  1094. package/cdn/chunks/chunk.YLO4GLWT.js +0 -29
  1095. package/cdn/chunks/chunk.YMLP3KAW.js +0 -56075
  1096. package/cdn/chunks/chunk.YNFYX3XA.js +0 -524
  1097. package/cdn/chunks/chunk.YPPH22LC.js +0 -168
  1098. package/cdn/chunks/chunk.YVFRSQES.js +0 -357
  1099. package/cdn/chunks/chunk.Z4Q5VENB.js +0 -106
  1100. package/cdn/chunks/chunk.Z7XRAEG4.js +0 -631
  1101. package/cdn/chunks/chunk.ZAECK6UU.js +0 -19
  1102. package/cdn/chunks/chunk.ZAL2LRND.js +0 -310
  1103. package/cdn/chunks/chunk.ZB55PYP4.js +0 -35
  1104. package/cdn/chunks/chunk.ZB55WF62.js +0 -19
  1105. package/cdn/chunks/chunk.ZBPPZNDS.js +0 -19
  1106. package/cdn/chunks/chunk.ZEF6TAO2.js +0 -925
  1107. package/cdn/chunks/chunk.ZK2VIBZG.js +0 -19
  1108. package/cdn/chunks/chunk.ZPKUIM2L.js +0 -151
  1109. package/cdn/chunks/chunk.ZX757SO6.js +0 -29
  1110. package/cdn/chunks/chunk.ZZY7TXJ7.js +0 -19
  1111. package/dist/chunks/chunk.23NZQGRT.js +0 -26
  1112. package/dist/chunks/chunk.25LMYNO6.js +0 -1
  1113. package/dist/chunks/chunk.2AFZ4ARB.js +0 -1
  1114. package/dist/chunks/chunk.2GLLXBJI.js +0 -1
  1115. package/dist/chunks/chunk.2HEYUFOC.js +0 -1
  1116. package/dist/chunks/chunk.2HRPOSAW.js +0 -5
  1117. package/dist/chunks/chunk.2HYEGGTW.js +0 -17
  1118. package/dist/chunks/chunk.2JC7JHZQ.js +0 -1
  1119. package/dist/chunks/chunk.2RX4X5D6.js +0 -26
  1120. package/dist/chunks/chunk.34NWE6KP.js +0 -1
  1121. package/dist/chunks/chunk.35CT445R.js +0 -1
  1122. package/dist/chunks/chunk.36DCFNTD.js +0 -24
  1123. package/dist/chunks/chunk.37FNACA5.js +0 -1
  1124. package/dist/chunks/chunk.3E7UOH46.js +0 -148
  1125. package/dist/chunks/chunk.3EIUZOLJ.js +0 -1
  1126. package/dist/chunks/chunk.3KWNJCLE.js +0 -1
  1127. package/dist/chunks/chunk.3QTUEAKY.js +0 -1
  1128. package/dist/chunks/chunk.4EHWIMWP.js +0 -65
  1129. package/dist/chunks/chunk.4GSSSX5K.js +0 -1
  1130. package/dist/chunks/chunk.4INVPZ4B.js +0 -1
  1131. package/dist/chunks/chunk.4RSDXTE3.js +0 -1
  1132. package/dist/chunks/chunk.5AGEL4Y7.js +0 -1
  1133. package/dist/chunks/chunk.5AY4IN2U.js +0 -64
  1134. package/dist/chunks/chunk.5ELCXOSZ.js +0 -20
  1135. package/dist/chunks/chunk.5J4GWMK2.js +0 -5
  1136. package/dist/chunks/chunk.5LCXFZBL.js +0 -1
  1137. package/dist/chunks/chunk.5PUJ3GGM.js +0 -1
  1138. package/dist/chunks/chunk.5WUDBUFM.js +0 -121
  1139. package/dist/chunks/chunk.6AE62EEA.js +0 -1
  1140. package/dist/chunks/chunk.6KBVEVQN.js +0 -1
  1141. package/dist/chunks/chunk.6XPB3NC3.js +0 -1
  1142. package/dist/chunks/chunk.723PPKYV.js +0 -100
  1143. package/dist/chunks/chunk.72J3EWDY.js +0 -1
  1144. package/dist/chunks/chunk.7DH5DXSD.js +0 -1
  1145. package/dist/chunks/chunk.7DL3RYTX.js +0 -1
  1146. package/dist/chunks/chunk.7NEQBVYI.js +0 -1
  1147. package/dist/chunks/chunk.7WW4MTNQ.js +0 -1
  1148. package/dist/chunks/chunk.7XLMISB3.js +0 -4
  1149. package/dist/chunks/chunk.ACP4UQR3.js +0 -1
  1150. package/dist/chunks/chunk.AD4FEYOU.js +0 -1
  1151. package/dist/chunks/chunk.AE7IKEFE.js +0 -154
  1152. package/dist/chunks/chunk.AEWY4FNM.js +0 -572
  1153. package/dist/chunks/chunk.AHQRG65K.js +0 -350
  1154. package/dist/chunks/chunk.ANQY2H66.js +0 -1
  1155. package/dist/chunks/chunk.ASPHVAUZ.js +0 -1
  1156. package/dist/chunks/chunk.ATX7REBU.js +0 -1
  1157. package/dist/chunks/chunk.AVGVZ2NM.js +0 -1
  1158. package/dist/chunks/chunk.AYLNZ7NR.js +0 -1
  1159. package/dist/chunks/chunk.BDNESHTZ.js +0 -1
  1160. package/dist/chunks/chunk.BHKRAHOT.js +0 -1
  1161. package/dist/chunks/chunk.BKHW3UZ4.js +0 -300
  1162. package/dist/chunks/chunk.BLDN6BDB.js +0 -1
  1163. package/dist/chunks/chunk.BZ6AZX3T.js +0 -37
  1164. package/dist/chunks/chunk.C7IF2K5M.js +0 -11
  1165. package/dist/chunks/chunk.CJSMISIQ.js +0 -1
  1166. package/dist/chunks/chunk.D7IDH3Z5.js +0 -1
  1167. package/dist/chunks/chunk.DBE5GOUX.js +0 -1
  1168. package/dist/chunks/chunk.DDYKQXQN.js +0 -1
  1169. package/dist/chunks/chunk.DFMIH7QL.js +0 -1
  1170. package/dist/chunks/chunk.DGQ7WR3U.js +0 -113
  1171. package/dist/chunks/chunk.DJ2CW4TV.js +0 -1
  1172. package/dist/chunks/chunk.DKJTLO5D.js +0 -75
  1173. package/dist/chunks/chunk.DNBYCX26.js +0 -25
  1174. package/dist/chunks/chunk.DXHQDWDZ.js +0 -1
  1175. package/dist/chunks/chunk.DXT5TH6L.js +0 -1
  1176. package/dist/chunks/chunk.E5WOJ3PK.js +0 -2
  1177. package/dist/chunks/chunk.EIG27QDJ.js +0 -1
  1178. package/dist/chunks/chunk.ENJASLZC.js +0 -8
  1179. package/dist/chunks/chunk.ENMFKETX.js +0 -1
  1180. package/dist/chunks/chunk.F2SOOHUF.js +0 -74
  1181. package/dist/chunks/chunk.F4CXK4DV.js +0 -1
  1182. package/dist/chunks/chunk.FFPGMQBG.js +0 -1
  1183. package/dist/chunks/chunk.FICO2IEF.js +0 -1
  1184. package/dist/chunks/chunk.FIQBMJKB.js +0 -1
  1185. package/dist/chunks/chunk.FLCVB7ZG.js +0 -1
  1186. package/dist/chunks/chunk.FQJUY2WN.js +0 -280
  1187. package/dist/chunks/chunk.FQLSPKU6.js +0 -1
  1188. package/dist/chunks/chunk.FSWZFV6X.js +0 -1
  1189. package/dist/chunks/chunk.FWGKOYZ6.js +0 -1
  1190. package/dist/chunks/chunk.FWRWPBEA.js +0 -1
  1191. package/dist/chunks/chunk.G5O2UXZR.js +0 -1
  1192. package/dist/chunks/chunk.GTIKA77C.js +0 -47
  1193. package/dist/chunks/chunk.H2CFP3PQ.js +0 -11
  1194. package/dist/chunks/chunk.H6EXXHNP.js +0 -20
  1195. package/dist/chunks/chunk.H7OSGJDN.js +0 -1
  1196. package/dist/chunks/chunk.HHF3GJJX.js +0 -22
  1197. package/dist/chunks/chunk.HJCUJPX6.js +0 -1
  1198. package/dist/chunks/chunk.HPNZH3Q4.js +0 -1
  1199. package/dist/chunks/chunk.HQJSNJAI.js +0 -1
  1200. package/dist/chunks/chunk.HSWO7GTZ.js +0 -1
  1201. package/dist/chunks/chunk.HWRLJA2Z.js +0 -1
  1202. package/dist/chunks/chunk.HZOOFT3Z.js +0 -1
  1203. package/dist/chunks/chunk.IBLMNONH.js +0 -1
  1204. package/dist/chunks/chunk.IEU7YQG3.js +0 -1
  1205. package/dist/chunks/chunk.IOKUMDKC.js +0 -33
  1206. package/dist/chunks/chunk.IUULTT4O.js +0 -1
  1207. package/dist/chunks/chunk.J2P5LTLJ.js +0 -1
  1208. package/dist/chunks/chunk.JL7WMXDP.js +0 -1
  1209. package/dist/chunks/chunk.JO2E3V6R.js +0 -1
  1210. package/dist/chunks/chunk.JO2SKBWZ.js +0 -1
  1211. package/dist/chunks/chunk.JQMXDI64.js +0 -1
  1212. package/dist/chunks/chunk.JRVIE4XW.js +0 -1
  1213. package/dist/chunks/chunk.JYAJJ7JB.js +0 -299
  1214. package/dist/chunks/chunk.JYD4MT2X.js +0 -1
  1215. package/dist/chunks/chunk.JYIZZOBA.js +0 -35
  1216. package/dist/chunks/chunk.K5ZNB5TT.js +0 -48
  1217. package/dist/chunks/chunk.KA7VO4CD.js +0 -80
  1218. package/dist/chunks/chunk.KF74PACJ.js +0 -1
  1219. package/dist/chunks/chunk.KHWI5BDR.js +0 -43
  1220. package/dist/chunks/chunk.KQBQJYII.js +0 -1
  1221. package/dist/chunks/chunk.KQJYCLV5.js +0 -1
  1222. package/dist/chunks/chunk.KRQB5VTT.js +0 -1
  1223. package/dist/chunks/chunk.L5AER4HL.js +0 -111
  1224. package/dist/chunks/chunk.L7UI364Z.js +0 -985
  1225. package/dist/chunks/chunk.LJ5UQBNV.js +0 -1
  1226. package/dist/chunks/chunk.LLARUBYC.js +0 -1
  1227. package/dist/chunks/chunk.LN3N6D2E.js +0 -1
  1228. package/dist/chunks/chunk.LO72HFZE.js +0 -1
  1229. package/dist/chunks/chunk.LURRF4YZ.js +0 -67
  1230. package/dist/chunks/chunk.LXQROJE2.js +0 -354
  1231. package/dist/chunks/chunk.M3B5KKI4.js +0 -1
  1232. package/dist/chunks/chunk.M3MZFHHD.js +0 -1
  1233. package/dist/chunks/chunk.MBS3RFJM.js +0 -6
  1234. package/dist/chunks/chunk.MEXCND7E.js +0 -1
  1235. package/dist/chunks/chunk.MGTW3UKR.js +0 -6
  1236. package/dist/chunks/chunk.MHUPHWBX.js +0 -1
  1237. package/dist/chunks/chunk.MJGXOZUM.js +0 -1
  1238. package/dist/chunks/chunk.MMI6AZ5X.js +0 -1
  1239. package/dist/chunks/chunk.MOLG5UGC.js +0 -780
  1240. package/dist/chunks/chunk.MRQ3S2IU.js +0 -1
  1241. package/dist/chunks/chunk.MSVNGRIO.js +0 -125
  1242. package/dist/chunks/chunk.MYLEMOHI.js +0 -1
  1243. package/dist/chunks/chunk.N72KUAUG.js +0 -1
  1244. package/dist/chunks/chunk.NIUAZKZN.js +0 -1
  1245. package/dist/chunks/chunk.NLDEYHPE.js +0 -1
  1246. package/dist/chunks/chunk.NQKLAIZQ.js +0 -145
  1247. package/dist/chunks/chunk.NRZIMG2K.js +0 -1
  1248. package/dist/chunks/chunk.NUODI7BE.js +0 -4
  1249. package/dist/chunks/chunk.OCFFVU5H.js +0 -1
  1250. package/dist/chunks/chunk.OCSCHASD.js +0 -1
  1251. package/dist/chunks/chunk.OGRY2QIP.js +0 -35
  1252. package/dist/chunks/chunk.OM5CHL6K.js +0 -9
  1253. package/dist/chunks/chunk.OSPWVWNF.js +0 -1
  1254. package/dist/chunks/chunk.OWCIKVBX.js +0 -1
  1255. package/dist/chunks/chunk.P2B7S4YB.js +0 -1
  1256. package/dist/chunks/chunk.P2NDCMFN.js +0 -1
  1257. package/dist/chunks/chunk.P34K4PMK.js +0 -1
  1258. package/dist/chunks/chunk.PB4GFMCH.js +0 -41
  1259. package/dist/chunks/chunk.PLVS2WBF.js +0 -43
  1260. package/dist/chunks/chunk.PSIIGWKB.js +0 -1
  1261. package/dist/chunks/chunk.Q6BMULA4.js +0 -1
  1262. package/dist/chunks/chunk.QM7VCIXI.js +0 -1
  1263. package/dist/chunks/chunk.QMJFLZ67.js +0 -30
  1264. package/dist/chunks/chunk.QVWZX4VS.js +0 -157
  1265. package/dist/chunks/chunk.RH4Y7BEE.js +0 -176
  1266. package/dist/chunks/chunk.RL342FCW.js +0 -1
  1267. package/dist/chunks/chunk.RPAY7BUI.js +0 -16
  1268. package/dist/chunks/chunk.RRIGLMOB.js +0 -1
  1269. package/dist/chunks/chunk.RRKWNEL7.js +0 -13
  1270. package/dist/chunks/chunk.RVUFNTS3.js +0 -1
  1271. package/dist/chunks/chunk.RXOHRFRL.js +0 -1
  1272. package/dist/chunks/chunk.S3GPO3V7.js +0 -61
  1273. package/dist/chunks/chunk.S5NYSCGF.js +0 -1
  1274. package/dist/chunks/chunk.S775HGVI.js +0 -99
  1275. package/dist/chunks/chunk.S77XG6XL.js +0 -1
  1276. package/dist/chunks/chunk.SDHMCRSG.js +0 -27
  1277. package/dist/chunks/chunk.SEM4QPEU.js +0 -1
  1278. package/dist/chunks/chunk.SJAXMDBS.js +0 -1
  1279. package/dist/chunks/chunk.SJKQOS3L.js +0 -1
  1280. package/dist/chunks/chunk.STLGBPK5.js +0 -1
  1281. package/dist/chunks/chunk.SUFVBKJY.js +0 -62
  1282. package/dist/chunks/chunk.T2CPBC4R.js +0 -1
  1283. package/dist/chunks/chunk.TAQ6A3B7.js +0 -2
  1284. package/dist/chunks/chunk.TCEAZ4JD.js +0 -1
  1285. package/dist/chunks/chunk.THEACYHF.js +0 -1198
  1286. package/dist/chunks/chunk.TO3S7ZON.js +0 -39
  1287. package/dist/chunks/chunk.TO4KVUBA.js +0 -1
  1288. package/dist/chunks/chunk.TWIM575W.js +0 -1
  1289. package/dist/chunks/chunk.TWLFGEFK.js +0 -55
  1290. package/dist/chunks/chunk.UMD3436Z.js +0 -12
  1291. package/dist/chunks/chunk.UU4IVFR3.js +0 -1
  1292. package/dist/chunks/chunk.UV2UYKDE.js +0 -8
  1293. package/dist/chunks/chunk.V73XUHPZ.js +0 -23
  1294. package/dist/chunks/chunk.VAQBINGF.js +0 -1
  1295. package/dist/chunks/chunk.VCBTYTPZ.js +0 -1
  1296. package/dist/chunks/chunk.VFKKJ5TJ.js +0 -9
  1297. package/dist/chunks/chunk.VWLW5SEW.js +0 -14
  1298. package/dist/chunks/chunk.VZB2WNDD.js +0 -30
  1299. package/dist/chunks/chunk.VZFZW3SJ.js +0 -1
  1300. package/dist/chunks/chunk.VZJ3CHHD.js +0 -1
  1301. package/dist/chunks/chunk.W56HBYGO.js +0 -1
  1302. package/dist/chunks/chunk.W5WASIVZ.js +0 -1
  1303. package/dist/chunks/chunk.WNWQ5G7U.js +0 -1
  1304. package/dist/chunks/chunk.WPQSWSZ4.js +0 -1
  1305. package/dist/chunks/chunk.WUAWBIQL.js +0 -1
  1306. package/dist/chunks/chunk.WYT63XP5.js +0 -55
  1307. package/dist/chunks/chunk.WZ5IMSXC.js +0 -1
  1308. package/dist/chunks/chunk.XB4MSOLC.js +0 -1
  1309. package/dist/chunks/chunk.XIKMUJ5L.js +0 -1
  1310. package/dist/chunks/chunk.XOXJ7JGG.js +0 -1
  1311. package/dist/chunks/chunk.YDZMQWAK.js +0 -1
  1312. package/dist/chunks/chunk.YJ5Y66AW.js +0 -1
  1313. package/dist/chunks/chunk.YO5HSONL.js +0 -41
  1314. package/dist/chunks/chunk.YXMQUC6E.js +0 -1
  1315. package/dist/chunks/chunk.YYB5UKM4.js +0 -122
  1316. package/dist/chunks/chunk.Z2JKVUIQ.js +0 -1
  1317. package/dist/chunks/chunk.Z33BUAHI.js +0 -1
  1318. package/dist/chunks/chunk.ZHYG6CFC.js +0 -19
  1319. package/dist/chunks/chunk.ZKBWQ2BW.js +0 -1
  1320. package/dist/chunks/chunk.ZMFVMONQ.js +0 -1
  1321. package/dist/chunks/chunk.ZNXXCV5Y.js +0 -1
  1322. package/dist/chunks/chunk.ZSH7I5S5.js +0 -55
  1323. package/dist/chunks/chunk.ZVWBJCKO.js +0 -1
  1324. package/dist/terra_ui_components-0.0.201-py3-none-any.whl +0 -0
  1325. package/dist/terra_ui_components-0.0.201.tar.gz +0 -0
@@ -0,0 +1,2911 @@
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.4ZYLJ7D3.js";
11
+ import {
12
+ TerraLogin
13
+ } from "./chunk.5ESGWJLA.js";
14
+ import {
15
+ TerraDialog
16
+ } from "./chunk.YZHPA7ZJ.js";
17
+ import {
18
+ HarmonyRequestController
19
+ } from "./chunk.NWYFMEJU.js";
20
+ import {
21
+ HarmonyRequest
22
+ } from "./chunk.ZIKKX7BH.js";
23
+ import {
24
+ AuthController
25
+ } from "./chunk.4JXPGYJW.js";
26
+ import {
27
+ data_subsetter_styles_default
28
+ } from "./chunk.EV4WF34M.js";
29
+ import {
30
+ TerraDataAccess,
31
+ debounce
32
+ } from "./chunk.2OMLOQMV.js";
33
+ import {
34
+ TerraSlider
35
+ } from "./chunk.XT5DOVMF.js";
36
+ import {
37
+ TerraMenu
38
+ } from "./chunk.K5AO7XP2.js";
39
+ import {
40
+ TerraMenuItem
41
+ } from "./chunk.CVPDIZ7K.js";
42
+ import {
43
+ TerraDatePicker
44
+ } from "./chunk.DNWADQ5W.js";
45
+ import {
46
+ CollectionController
47
+ } from "./chunk.DEHKVV4T.js";
48
+ import {
49
+ TerraSpatialPicker
50
+ } from "./chunk.34BJZDYA.js";
51
+ import {
52
+ LatLng
53
+ } from "./chunk.FNBRNK7F.js";
54
+ import {
55
+ TerraInput
56
+ } from "./chunk.N7A5RE4M.js";
57
+ import {
58
+ TerraDropdown
59
+ } from "./chunk.E6YEHXRQ.js";
60
+ import {
61
+ QueryClientMixin
62
+ } from "./chunk.DOUWGQFH.js";
63
+ import {
64
+ TerraLoader
65
+ } from "./chunk.5XNHMOAV.js";
66
+ import {
67
+ formatDate,
68
+ getUTCDate
69
+ } from "./chunk.X2BIJLHO.js";
70
+ import {
71
+ HttpException
72
+ } from "./chunk.SYQOGYTQ.js";
73
+ import {
74
+ TerraButton
75
+ } from "./chunk.EM7J56W4.js";
76
+ import {
77
+ TerraAlert
78
+ } from "./chunk.HSOOL4RW.js";
79
+ import {
80
+ TerraAccordion
81
+ } from "./chunk.RTC75E45.js";
82
+ import {
83
+ TerraIcon
84
+ } from "./chunk.6IN6IQWI.js";
85
+ import {
86
+ watch
87
+ } from "./chunk.MPVZOQYA.js";
88
+ import {
89
+ TerraElement,
90
+ component_styles_default,
91
+ e,
92
+ n,
93
+ r,
94
+ undefinedStringConverter
95
+ } from "./chunk.RZ4HFXEJ.js";
96
+ import {
97
+ getBasePath
98
+ } from "./chunk.ZQVMOVOT.js";
99
+ import {
100
+ A,
101
+ b
102
+ } from "./chunk.RRCYT4LP.js";
103
+ import {
104
+ __decorateClass,
105
+ __privateAdd,
106
+ __privateGet,
107
+ __privateMethod,
108
+ __spreadProps,
109
+ __spreadValues,
110
+ init_buffer,
111
+ init_dirname,
112
+ init_process
113
+ } from "./chunk.ZEOVK2FE.js";
114
+
115
+ // src/components/data-subsetter/data-subsetter.component.ts
116
+ init_dirname();
117
+ init_buffer();
118
+ init_process();
119
+
120
+ // src/lib/jupyter.ts
121
+ init_dirname();
122
+ init_buffer();
123
+ init_process();
124
+ var JUPYTER_LITE_URL = "https://gesdisc.github.io/jupyterlite/lab/index.html";
125
+ function openJupyterLiteWindow(readyCb) {
126
+ const jupyterWindow = window.open(JUPYTER_LITE_URL, "_blank");
127
+ if (!jupyterWindow) {
128
+ console.error("Failed to open JupyterLite!");
129
+ return;
130
+ }
131
+ window.addEventListener("message", (event) => readyCb(event, jupyterWindow), {
132
+ once: true
133
+ });
134
+ return jupyterWindow;
135
+ }
136
+ function sendDataToJupyterNotebook(type, data) {
137
+ openJupyterLiteWindow((event, jupyterWindow) => {
138
+ var _a;
139
+ if (((_a = event.data) == null ? void 0 : _a.type) !== "jupyterlite-ready") {
140
+ return;
141
+ }
142
+ console.log("JupyterLite is ready!");
143
+ jupyterWindow.postMessage(__spreadValues({ type }, data), "*");
144
+ });
145
+ }
146
+
147
+ // src/services/cmr-variable.service.ts
148
+ init_dirname();
149
+ init_buffer();
150
+ init_process();
151
+ var CmrVariableService = class {
152
+ /**
153
+ * given a name and a list of variables, return the variable with the matching name
154
+ */
155
+ getVariableByName(name, variables) {
156
+ var _a;
157
+ if (!variables || !((_a = variables.items) == null ? void 0 : _a.length)) {
158
+ return;
159
+ }
160
+ return variables.items.find((variable) => variable.umm.Name === name);
161
+ }
162
+ /**
163
+ * given a variable, return the variable's display label
164
+ * ex: Shortname = LongName (Units)
165
+ */
166
+ getVariableDisplayLabel(variable) {
167
+ const { Name = "", LongName = "", Units = "" } = variable.umm;
168
+ return `${Name}${Name && LongName && Name !== LongName ? ` = ${LongName}` : ""}${Units ? ` (${Units})` : ""}`;
169
+ }
170
+ };
171
+ var cmrVariableService = new CmrVariableService();
172
+ var cmr_variable_service_default = cmrVariableService;
173
+
174
+ // src/components/data-subsetter/data-subsetter.component.ts
175
+ var defaultOutputFormat = {
176
+ key: "application/x-netcdf4",
177
+ label: "NetCDF",
178
+ description: "Download data in NetCDF format"
179
+ };
180
+ var DEFAULT_DATE_RANGE_MIN_DAYS = 30;
181
+ var DEFAULT_DATE_RANGE_MIN_GRANULES = 3;
182
+ 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, _getDefaultRecentDateRange, getDefaultRecentDateRange_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, _resumeJob, resumeJob_fn, _canCancelJob, canCancelJob_fn, _renderJobActionButtons, renderJobActionButtons_fn, _getData, getData_fn, _submitDataRequest, submitDataRequest_fn, _touchAllFields, touchAllFields_fn, _numberOfFilesFoundEstimate, numberOfFilesFoundEstimate_fn, _getDocumentationLinks, getDocumentationLinks_fn, _getDataLinks, getDataLinks_fn, _hasAtLeastOneSubsetOption, hasAtLeastOneSubsetOption_fn, _hasSpatialSubset, hasSpatialSubset_fn, _renderPausedMessage, renderPausedMessage_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;
183
+ var TerraDataSubsetter = class extends QueryClientMixin(TerraElement) {
184
+ constructor() {
185
+ super(...arguments);
186
+ __privateAdd(this, _renderFooterForDialog);
187
+ __privateAdd(this, _renderSizeInfo);
188
+ __privateAdd(this, _renderSubsetOptions);
189
+ __privateAdd(this, _renderSearchForCollection);
190
+ __privateAdd(this, _renderOutputFormatSelection);
191
+ __privateAdd(this, _renderDateRangeSelection);
192
+ __privateAdd(this, _getCollectionDateRange);
193
+ /**
194
+ * Computes a "recent" default date range instead of the full collection
195
+ * extent, sized to the collection's average granule cadence so
196
+ * low-frequency collections (e.g. monthly) still default to a window
197
+ * covering a handful of granules rather than just one.
198
+ */
199
+ __privateAdd(this, _getDefaultRecentDateRange);
200
+ __privateAdd(this, _renderSpatialSelection);
201
+ __privateAdd(this, _renderVariableSelection);
202
+ __privateAdd(this, _renderDimensionGroup);
203
+ __privateAdd(this, _setDimensionValue);
204
+ __privateAdd(this, _renderDimensionSelection);
205
+ __privateAdd(this, _filterVariableTree);
206
+ __privateAdd(this, _handleVariableFilterChange);
207
+ __privateAdd(this, _buildVariableTree);
208
+ __privateAdd(this, _renderVariableTree);
209
+ __privateAdd(this, _getAllGroupPaths);
210
+ __privateAdd(this, _toggleGroupExpand);
211
+ __privateAdd(this, _toggleExpandCollapseAll);
212
+ __privateAdd(this, _toggleVariableSelection);
213
+ __privateAdd(this, _markFieldTouched);
214
+ __privateAdd(this, _resetDimensionSelection);
215
+ __privateAdd(this, _isDimensionExcluded);
216
+ __privateAdd(this, _getCommonSelectableDimensions);
217
+ __privateAdd(this, _renderJobStatus);
218
+ __privateAdd(this, _renderSelectedParams);
219
+ __privateAdd(this, _cancelJob);
220
+ __privateAdd(this, _resumeJob);
221
+ /**
222
+ * A paused, running, or previewing job can be canceled. Used both to decide whether to
223
+ * render the Cancel request button and to know when a pending cancel has actually taken
224
+ * effect (the job status leaves this set).
225
+ */
226
+ __privateAdd(this, _canCancelJob);
227
+ /**
228
+ * Renders the Resume Job / Cancel request footer buttons based on the job's current status.
229
+ * A paused job can be resumed or canceled; a running (or previewing) job can only be canceled.
230
+ */
231
+ __privateAdd(this, _renderJobActionButtons);
232
+ __privateAdd(this, _getData);
233
+ __privateAdd(this, _submitDataRequest);
234
+ __privateAdd(this, _touchAllFields);
235
+ __privateAdd(this, _numberOfFilesFoundEstimate);
236
+ __privateAdd(this, _getDocumentationLinks);
237
+ __privateAdd(this, _getDataLinks);
238
+ __privateAdd(this, _hasAtLeastOneSubsetOption);
239
+ __privateAdd(this, _hasSpatialSubset);
240
+ __privateAdd(this, _renderPausedMessage);
241
+ __privateAdd(this, _renderJobMessage);
242
+ __privateAdd(this, _getJobMessageText);
243
+ __privateAdd(this, _estimateJobSize);
244
+ __privateAdd(this, _refineParameters);
245
+ __privateAdd(this, _backToSubsetOptions);
246
+ __privateAdd(this, _viewRunningJob);
247
+ __privateAdd(this, _handleDownloadSelect);
248
+ __privateAdd(this, _downloadLinksAsTxt);
249
+ __privateAdd(this, _downloadPythonScript);
250
+ __privateAdd(this, _downloadEarthdataDownload);
251
+ __privateAdd(this, _handleJupyterNotebookClick);
252
+ __privateAdd(this, _renderAvailableTemporalRangeSection);
253
+ __privateAdd(this, _renderAvailableSpatialRangeSection);
254
+ __privateAdd(this, _renderDataAccessModeSelection);
255
+ __privateAdd(this, _getGiovanniValidationError);
256
+ __privateAdd(this, _getHarmonyRequestErrorMessage);
257
+ __privateAdd(this, _renderHarmonyRequestError);
258
+ this.showCollectionSearch = true;
259
+ this.readConstraintsFromUrl = false;
260
+ this.showHistoryPanel = true;
261
+ this.isHistoryView = false;
262
+ this.selectedVariables = [];
263
+ this.selectedDimensionIndexes = {};
264
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
265
+ this.variableFilterText = "";
266
+ this.touchedFields = /* @__PURE__ */ new Set();
267
+ this.selectedDateRange = {
268
+ startDate: null,
269
+ endDate: null
270
+ };
271
+ this.selectedFormat = defaultOutputFormat;
272
+ this.cancelingGetData = false;
273
+ this.resumingJob = false;
274
+ this.isSubmittingRequest = false;
275
+ this.selectedTab = "web-links";
276
+ this.refineParameters = false;
277
+ this.collectionSearchType = "all";
278
+ this.collectionSearchLoading = false;
279
+ this.collectionLoading = false;
280
+ this.collectionAccordionOpen = true;
281
+ this.dataAccessMode = "original";
282
+ __privateAdd(this, _collectionController, new CollectionController(this, {
283
+ getCollectionEntryId: () => this.collectionEntryId,
284
+ getBearerToken: () => this.bearerToken
285
+ }));
286
+ __privateAdd(this, _authController, new AuthController(this));
287
+ __privateAdd(this, _harmonyRequestController, new HarmonyRequestController(this));
288
+ __privateAdd(this, _resetAllParameters, () => {
289
+ this.selectedVariables = [];
290
+ if (__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this)) {
291
+ __privateGet(this, _resetSpatialSelection).call(this);
292
+ }
293
+ this.selectedDateRange = __privateMethod(this, _getDefaultRecentDateRange, getDefaultRecentDateRange_fn).call(this);
294
+ this.touchedFields = /* @__PURE__ */ new Set();
295
+ this.validationError = void 0;
296
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
297
+ this.requestUpdate();
298
+ });
299
+ __privateAdd(this, _handleDateChange, (e2) => {
300
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "date");
301
+ this.selectedDateRange = __spreadProps(__spreadValues({}, this.selectedDateRange), {
302
+ startDate: e2.detail.startDate,
303
+ endDate: e2.detail.endDate
304
+ });
305
+ });
306
+ __privateAdd(this, _resetDateRangeSelection, () => {
307
+ this.selectedDateRange = __privateMethod(this, _getDefaultRecentDateRange, getDefaultRecentDateRange_fn).call(this);
308
+ });
309
+ __privateAdd(this, _resetFormatSelection, () => {
310
+ var _a, _b;
311
+ if ((_b = (_a = this.collectionWithServices) == null ? void 0 : _a.configuredOutputFormats) == null ? void 0 : _b.length) {
312
+ const netcdfFormat = this.collectionWithServices.configuredOutputFormats.find(
313
+ (f) => f.key === "application/x-netcdf4" || f.key === "application/netcdf"
314
+ );
315
+ this.selectedFormat = netcdfFormat || this.collectionWithServices.configuredOutputFormats[0];
316
+ } else {
317
+ this.selectedFormat = defaultOutputFormat;
318
+ }
319
+ });
320
+ __privateAdd(this, _handleSpatialChange, (e2) => {
321
+ var _a;
322
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "spatial");
323
+ if (e2.detail.type === "point" /* POINT */) {
324
+ this.shapeGeoJson = void 0;
325
+ this.spatialLabel = void 0;
326
+ this.spatialSelection = e2.detail.latLng;
327
+ } else if (e2.detail.type === "bbox" /* BBOX */) {
328
+ this.shapeGeoJson = void 0;
329
+ this.spatialLabel = void 0;
330
+ this.spatialSelection = e2.detail.bounds;
331
+ } else if (e2.detail.type === "polygon" /* POLYGON */) {
332
+ this.spatialSelection = void 0;
333
+ if (e2.detail.geoJson) {
334
+ this.shapeGeoJson = e2.detail.geoJson;
335
+ this.spatialLabel = (_a = e2.detail.label) != null ? _a : "Shape selected";
336
+ } else if (e2.detail.latLngs.length > 0) {
337
+ const coords = e2.detail.latLngs.map((ll) => [ll.lng, ll.lat]);
338
+ coords.push(coords[0]);
339
+ this.shapeGeoJson = {
340
+ type: "FeatureCollection",
341
+ features: [
342
+ {
343
+ type: "Feature",
344
+ geometry: {
345
+ type: "Polygon",
346
+ coordinates: [coords]
347
+ },
348
+ properties: null
349
+ }
350
+ ]
351
+ };
352
+ this.spatialLabel = `Polygon (${e2.detail.latLngs.length} vertices)`;
353
+ } else {
354
+ this.shapeGeoJson = void 0;
355
+ this.spatialLabel = void 0;
356
+ }
357
+ } else {
358
+ this.spatialSelection = void 0;
359
+ this.shapeGeoJson = void 0;
360
+ this.spatialLabel = void 0;
361
+ }
362
+ });
363
+ /**
364
+ * resets the spatial selection back to the bounds of the collection
365
+ */
366
+ __privateAdd(this, _resetSpatialSelection, () => {
367
+ this.spatialSelection = void 0;
368
+ this.shapeGeoJson = void 0;
369
+ this.spatialLabel = void 0;
370
+ this.spatialPicker.clear();
371
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "spatial");
372
+ });
373
+ __privateAdd(this, _resetVariableSelection, () => {
374
+ this.selectedVariables = [];
375
+ __privateMethod(this, _resetDimensionSelection, resetDimensionSelection_fn).call(this);
376
+ });
377
+ __privateAdd(this, _handleExpandSearchClick, (event) => {
378
+ event.preventDefault();
379
+ __privateMethod(this, _backToSubsetOptions, backToSubsetOptions_fn).call(this);
380
+ });
381
+ }
382
+ jobIdChanged() {
383
+ if (this.jobId) {
384
+ __privateGet(this, _harmonyRequestController).startPollForJobStatus(this.jobId, {
385
+ bearerToken: this.bearerToken
386
+ });
387
+ this.dataAccessMode = "subset";
388
+ }
389
+ }
390
+ shortNameAndVersionChanged() {
391
+ if (this.shortName && this.version) {
392
+ this.collectionEntryId = `${this.shortName}_${this.version}`;
393
+ }
394
+ }
395
+ collectionEntryIdChanged() {
396
+ if (this.collectionEntryId) {
397
+ this.showCollectionSearch = false;
398
+ } else {
399
+ this.showCollectionSearch = true;
400
+ }
401
+ }
402
+ readConstraintsFromUrlChanged() {
403
+ var _a, _b;
404
+ if (this.readConstraintsFromUrl) {
405
+ const urlParams = new URLSearchParams(window.location.search);
406
+ const rawShortName = (_a = urlParams.get("shortname")) != null ? _a : void 0;
407
+ const rawVersion = (_b = urlParams.get("version")) != null ? _b : void 0;
408
+ this.shortName = rawShortName ? rawShortName.length <= 85 ? rawShortName.replace(/[^a-zA-Z0-9._]/g, "") : void 0 : void 0;
409
+ this.version = rawVersion ? rawVersion.length <= 8 ? rawVersion.replace(/[^a-zA-Z0-9._]/g, "") : void 0 : void 0;
410
+ if (this.shortName && this.version) {
411
+ this.shortNameAndVersionChanged();
412
+ } else {
413
+ this.collectionEntryId = void 0;
414
+ console.warn(
415
+ "Invalid shortname or version in URL parameters. Collection entry ID will not be set."
416
+ );
417
+ }
418
+ }
419
+ }
420
+ firstUpdated() {
421
+ if (this.collectionEntryId) {
422
+ this.showCollectionSearch = false;
423
+ }
424
+ if (this.jobId) {
425
+ __privateGet(this, _harmonyRequestController).startPollForJobStatus(this.jobId, {
426
+ bearerToken: this.bearerToken
427
+ });
428
+ this.dataAccessMode = "subset";
429
+ }
430
+ this.renderHistoryPanel();
431
+ }
432
+ updated(changedProps) {
433
+ var _a, _b, _c;
434
+ super.updated(changedProps);
435
+ if (this.resumingJob && __privateGet(this, _harmonyRequestController).status !== "paused" /* PAUSED */) {
436
+ this.resumingJob = false;
437
+ }
438
+ if (this.cancelingGetData && !__privateMethod(this, _canCancelJob, canCancelJob_fn).call(this)) {
439
+ this.cancelingGetData = false;
440
+ }
441
+ const newCollectionInfo = __privateGet(this, _collectionController).collectionInfo;
442
+ if (newCollectionInfo !== this.collectionWithServices) {
443
+ this.collectionWithServices = newCollectionInfo;
444
+ }
445
+ const sampling = (_a = __privateGet(this, _collectionController).sampling) == null ? void 0 : _a.data;
446
+ if ((sampling == null ? void 0 : sampling.minDate) !== this.granuleMinDate) {
447
+ this.granuleMinDate = sampling == null ? void 0 : sampling.minDate;
448
+ }
449
+ if ((sampling == null ? void 0 : sampling.maxDate) !== this.granuleMaxDate) {
450
+ this.granuleMaxDate = sampling == null ? void 0 : sampling.maxDate;
451
+ }
452
+ const newGiovanni = __privateGet(this, _collectionController).giovanniVariables;
453
+ if (newGiovanni.size !== ((_c = (_b = this.giovanniConfiguredVariables) == null ? void 0 : _b.size) != null ? _c : 0)) {
454
+ this.giovanniConfiguredVariables = newGiovanni;
455
+ }
456
+ }
457
+ /** True if the collection contains sub-daily granules. Used by DataSubsetterController to format dates. */
458
+ get isSubDaily() {
459
+ return __privateGet(this, _collectionController).isSubDaily;
460
+ }
461
+ collectionChanged() {
462
+ const { startDate, endDate } = __privateMethod(this, _getDefaultRecentDateRange, getDefaultRecentDateRange_fn).call(this);
463
+ this.selectedDateRange = { startDate, endDate };
464
+ __privateGet(this, _resetFormatSelection).call(this);
465
+ this.collectionLoading = false;
466
+ this.collectionAccordionOpen = false;
467
+ }
468
+ granuleDatesChanged() {
469
+ if (!this.granuleMinDate && !this.granuleMaxDate)
470
+ return;
471
+ const { startDate, endDate } = __privateMethod(this, _getDefaultRecentDateRange, getDefaultRecentDateRange_fn).call(this);
472
+ this.selectedDateRange = { startDate, endDate };
473
+ }
474
+ selectedFormatChanged() {
475
+ if (this.selectedFormat.isGiovanniFormat && this.selectedVariables.length > 1) {
476
+ this.selectedVariables = [this.selectedVariables[0]];
477
+ }
478
+ }
479
+ showDialog() {
480
+ var _a;
481
+ (_a = this.dialogElement) == null ? void 0 : _a.show();
482
+ }
483
+ render() {
484
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
485
+ const showJobStatus = (__privateGet(this, _harmonyRequestController).jobId || this.harmonyRequestError) && !this.refineParameters;
486
+ const showMinimizeButton = showJobStatus && !!this.dialog;
487
+ const title = (_c = (_b = (_a = this.collectionWithServices) == null ? void 0 : _a.collection) == null ? void 0 : _b.EntryTitle) != null ? _c : "Download Data";
488
+ const hasCapabilitiesError = !this.collectionWithServices && __privateGet(this, _collectionController).hasCapabilitiesError;
489
+ const content = b`
490
+ <div class="container">
491
+ ${hasCapabilitiesError ? b`
492
+ <terra-alert open variant="danger" appearance="white">
493
+ Failed to find the requested collection.
494
+ </terra-alert>
495
+ ` : b`
496
+ ${!this.dialog ? b`
497
+ <div class="header">
498
+ <h1>
499
+ <svg
500
+ class="download-icon"
501
+ viewBox="0 0 24 24"
502
+ fill="currentColor"
503
+ >
504
+ <path
505
+ d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"
506
+ />
507
+ </svg>
508
+ ${title}
509
+ </h1>
510
+
511
+ ${showMinimizeButton ? b`<button
512
+ class="minimize-btn"
513
+ @click=${() => this.minimizeDialog()}
514
+ >
515
+ -
516
+ </button>` : A}
517
+ </div>
518
+ ` : A}
519
+ ${!this.isHistoryView && ((_e = (_d = this.collectionWithServices) == null ? void 0 : _d.services) == null ? void 0 : _e.length) ? b`
520
+ <div class="section">
521
+ ${__privateMethod(this, _renderDataAccessModeSelection, renderDataAccessModeSelection_fn).call(this)}
522
+ </div>
523
+ ` : A}
524
+ ${this.dataAccessMode === "original" ? b`
525
+ <div class="section">
526
+ <terra-data-access
527
+ short-name=${(_h = this.shortName) != null ? _h : (_g = (_f = this.collectionWithServices) == null ? void 0 : _f.collection) == null ? void 0 : _g.ShortName}
528
+ version=${(_k = this.version) != null ? _k : (_j = (_i = this.collectionWithServices) == null ? void 0 : _i.collection) == null ? void 0 : _j.Version}
529
+ ?footer-slot=${!!this.dialog}
530
+ >
531
+ ${this.dialog ? b`
532
+ <div
533
+ slot="footer"
534
+ style="margin-top: 15px;"
535
+ >
536
+ <slot
537
+ name="data-access-footer"
538
+ ></slot>
539
+ </div>
540
+ ` : A}
541
+ </terra-data-access>
542
+ </div>
543
+ ` : showJobStatus ? __privateMethod(this, _renderJobStatus, renderJobStatus_fn).call(this) : __privateMethod(this, _renderSubsetOptions, renderSubsetOptions_fn).call(this)}
544
+ `}
545
+ </div>
546
+ `;
547
+ if (this.dialog) {
548
+ return b`
549
+ <terra-dialog id=${this.dialog} style="--title-font-size: 16px;">
550
+ <span
551
+ slot="label"
552
+ style="display: flex; align-items: center; gap: 8px; color: var(--terra-text-brand-on-secondary, #1c67e3); font-weight: 600;"
553
+ >
554
+ <svg
555
+ class="download-icon"
556
+ viewBox="0 0 24 24"
557
+ fill="currentColor"
558
+ style="width: 16px; height: 16px; display: inline-block; vertical-align: middle; flex-shrink: 0;"
559
+ >
560
+ <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
561
+ </svg>
562
+ ${title}
563
+ </span>
564
+ ${showMinimizeButton ? b`
565
+ <button
566
+ slot="header-actions"
567
+ class="minimize-btn"
568
+ @click=${() => {
569
+ var _a2;
570
+ return (_a2 = this.dialogElement) == null ? void 0 : _a2.hide();
571
+ }}
572
+ aria-label="Minimize"
573
+ >
574
+ -
575
+ </button>
576
+ ` : A}
577
+ <slot name="dialog-header-content"></slot>
578
+ ${content} ${__privateMethod(this, _renderFooterForDialog, renderFooterForDialog_fn).call(this)}
579
+ </terra-dialog>
580
+ `;
581
+ }
582
+ return b`
583
+ <div class="container">
584
+ <div class="header">
585
+ <h1>
586
+ <svg
587
+ class="download-icon"
588
+ viewBox="0 0 24 24"
589
+ fill="currentColor"
590
+ >
591
+ <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" />
592
+ </svg>
593
+ ${title}
594
+ </h1>
595
+
596
+ ${showMinimizeButton ? b`<button
597
+ class="minimize-btn"
598
+ @click=${() => this.minimizeDialog()}
599
+ >
600
+ -
601
+ </button>` : A}
602
+ </div>
603
+ ${hasCapabilitiesError ? b`
604
+ <terra-alert open variant="danger" appearance="white">
605
+ Failed to find the requested collection.
606
+ </terra-alert>
607
+ ` : b`
608
+ ${!this.isHistoryView && ((_m = (_l = this.collectionWithServices) == null ? void 0 : _l.services) == null ? void 0 : _m.length) ? b`
609
+ <div class="section">
610
+ ${__privateMethod(this, _renderDataAccessModeSelection, renderDataAccessModeSelection_fn).call(this)}
611
+ </div>
612
+ ` : A}
613
+ ${this.dataAccessMode === "original" ? b`
614
+ <div class="section">
615
+ <terra-data-access
616
+ short-name=${(_p = this.shortName) != null ? _p : (_o = (_n = this.collectionWithServices) == null ? void 0 : _n.collection) == null ? void 0 : _o.ShortName}
617
+ version=${(_s = this.version) != null ? _s : (_r = (_q = this.collectionWithServices) == null ? void 0 : _q.collection) == null ? void 0 : _r.Version}
618
+ ?footer-slot=${!!this.dialog}
619
+ >
620
+ ${this.dialog ? b`
621
+ <div
622
+ slot="footer"
623
+ style="margin-top: 15px;"
624
+ >
625
+ <slot
626
+ name="data-access-footer"
627
+ ></slot>
628
+ </div>
629
+ ` : A}
630
+ </terra-data-access>
631
+ </div>
632
+ ` : showJobStatus ? __privateMethod(this, _renderJobStatus, renderJobStatus_fn).call(this) : __privateMethod(this, _renderSubsetOptions, renderSubsetOptions_fn).call(this)}
633
+ `}
634
+ </div>
635
+ `;
636
+ }
637
+ minimizeDialog() {
638
+ var _a;
639
+ (_a = this.closest("terra-dialog")) == null ? void 0 : _a.hide();
640
+ }
641
+ handleCollectionSearch(searchTerm) {
642
+ this.collectionSearchQuery = searchTerm;
643
+ }
644
+ renderHistoryPanel() {
645
+ const existingHistoryPanel = document.querySelector(
646
+ "terra-data-subsetter-history"
647
+ );
648
+ if (!existingHistoryPanel && this.bearerToken) {
649
+ const historyPanel = document.createElement(
650
+ "terra-data-subsetter-history"
651
+ );
652
+ if (this.bearerToken) {
653
+ historyPanel.setAttribute("bearer-token", this.bearerToken);
654
+ }
655
+ if (this.environment) {
656
+ historyPanel.setAttribute("environment", this.environment);
657
+ }
658
+ document.body.appendChild(historyPanel);
659
+ }
660
+ }
661
+ };
662
+ _collectionController = new WeakMap();
663
+ _authController = new WeakMap();
664
+ _harmonyRequestController = new WeakMap();
665
+ _renderFooterForDialog = new WeakSet();
666
+ renderFooterForDialog_fn = function() {
667
+ const showJobStatus = (__privateGet(this, _harmonyRequestController).jobId || this.harmonyRequestError) && !this.refineParameters;
668
+ if (showJobStatus) {
669
+ if (!__privateGet(this, _harmonyRequestController).jobId) {
670
+ return A;
671
+ }
672
+ return b`
673
+ <div slot="footer" class="footer">
674
+ ${__privateGet(this, _harmonyRequestController).status === "successful" /* SUCCESSFUL */ || __privateGet(this, _harmonyRequestController).status === "complete_with_errors" /* COMPLETE_WITH_ERRORS */ ? b`
675
+ <div
676
+ style="display: flex; align-items: center; gap: 8px;"
677
+ >
678
+ <terra-dropdown
679
+ @terra-select=${__privateMethod(this, _handleDownloadSelect, handleDownloadSelect_fn)}
680
+ >
681
+ <terra-button slot="trigger" caret>
682
+ Download Options
683
+ </terra-button>
684
+ <terra-menu>
685
+ <terra-menu-item value="file-list">
686
+ <svg
687
+ slot="prefix"
688
+ viewBox="0 0 24 24"
689
+ width="16"
690
+ height="16"
691
+ style="width: 16px; height: 16px;"
692
+ >
693
+ <path
694
+ fill="currentColor"
695
+ 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"
696
+ />
697
+ </svg>
698
+ File List
699
+ </terra-menu-item>
700
+ <terra-menu-item value="python-script">
701
+ <svg
702
+ slot="prefix"
703
+ viewBox="0 0 128 128"
704
+ width="16"
705
+ height="16"
706
+ style="width: 16px; height: 16px;"
707
+ >
708
+ <path
709
+ fill="currentColor"
710
+ 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"
711
+ ></path>
712
+ </svg>
713
+ Python Script
714
+ </terra-menu-item>
715
+ <terra-menu-item value="earthdata-download">
716
+ <svg
717
+ slot="prefix"
718
+ viewBox="0 0 64 64"
719
+ fill="none"
720
+ width="16"
721
+ height="16"
722
+ style="width: 16px; height: 16px;"
723
+ >
724
+ <circle
725
+ cx="32"
726
+ cy="32"
727
+ r="28"
728
+ fill="currentColor"
729
+ />
730
+ <path
731
+ d="M32 14v26M32 40l-9-9M32 40l9-9"
732
+ stroke="#fff"
733
+ stroke-width="4"
734
+ stroke-linecap="round"
735
+ stroke-linejoin="round"
736
+ fill="none"
737
+ />
738
+ </svg>
739
+ Earthdata Download
740
+ </terra-menu-item>
741
+ </terra-menu>
742
+ </terra-dropdown>
743
+
744
+ <!--
745
+ <terra-button
746
+ outline
747
+ @click=${() => __privateMethod(this, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn).call(this)}
748
+ >
749
+ <terra-icon
750
+ name="outline-code-bracket"
751
+ library="heroicons"
752
+ font-size="1.5em"
753
+ style="margin-right: 5px;"
754
+ ></terra-icon>
755
+ Open in Jupyter Notebook
756
+ </terra-button>
757
+ -->
758
+ </div>
759
+ ` : A}
760
+ ${__privateMethod(this, _renderJobActionButtons, renderJobActionButtons_fn).call(this)}
761
+
762
+ <div class="job-info">
763
+ Job ID:
764
+ <span class="job-id">
765
+ ${this.bearerToken ? b`<a
766
+ href="https://harmony.earthdata.nasa.gov/jobs/${__privateGet(this, _harmonyRequestController).jobId}"
767
+ target="_blank"
768
+ >${__privateGet(this, _harmonyRequestController).jobId}</a
769
+ >` : __privateGet(this, _harmonyRequestController).jobId}
770
+ </span>
771
+ <span class="info-icon">?</span>
772
+ </div>
773
+ </div>
774
+ `;
775
+ }
776
+ if (this.dataAccessMode === "subset") {
777
+ return b`
778
+ <div slot="footer" class="footer">
779
+ <button
780
+ class="btn btn-secondary"
781
+ @click=${__privateGet(this, _resetAllParameters)}
782
+ >
783
+ Reset All
784
+ </button>
785
+ <div>
786
+ <button
787
+ class="btn btn-primary"
788
+ ?disabled=${this.isSubmittingRequest}
789
+ @click=${__privateMethod(this, _getData, getData_fn)}
790
+ >
791
+ ${this.isSubmittingRequest ? "Getting Data..." : "Get Data"}
792
+ </button>
793
+ ${this.jobId ? b`
794
+ <terra-button
795
+ variant="default"
796
+ @click=${__privateMethod(this, _viewRunningJob, viewRunningJob_fn)}
797
+ >
798
+ View Running Job
799
+ </terra-button>
800
+ ` : A}
801
+ </div>
802
+ </div>
803
+ `;
804
+ }
805
+ return A;
806
+ };
807
+ _renderSizeInfo = new WeakSet();
808
+ renderSizeInfo_fn = function(estimates) {
809
+ if (!__privateGet(this, _authController).state.isLoading && !__privateGet(this, _authController).state.user) {
810
+ return b`
811
+ <div class="size-info warning">
812
+ <terra-login .onLoginClick=${this.onLoginClick}>
813
+ <h2 slot="logged-out">Limited access as a guest.</h2>
814
+
815
+ <p slot="logged-out">
816
+ Your results will be capped at 10 links. Log in for full
817
+ access to all data.
818
+ </p>
819
+ </terra-login>
820
+ </div>
821
+ `;
822
+ }
823
+ return b`<div
824
+ class="size-info ${estimates.links >= 150 ? "warning" : "neutral"}"
825
+ >
826
+ <h2>Estimated size of results</h2>
827
+ <div class="size-stats">
828
+ ${estimates.days.toLocaleString()} days,
829
+ ${estimates.links.toLocaleString()} links
830
+ </div>
831
+ ${estimates.links >= 150 ? b`<div class="size-warning">
832
+ You are about to retrieve ${estimates.links.toLocaleString()}
833
+ file links from the archive. You may
834
+ <strong>speed up the request</strong> by limiting the scope of
835
+ your search.
836
+ </div>` : A}
837
+ </div>`;
838
+ };
839
+ _renderSubsetOptions = new WeakSet();
840
+ renderSubsetOptions_fn = function() {
841
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i;
842
+ const estimates = __privateMethod(this, _estimateJobSize, estimateJobSize_fn).call(this);
843
+ const hasSubsetOption = __privateMethod(this, _hasAtLeastOneSubsetOption, hasAtLeastOneSubsetOption_fn).call(this);
844
+ const collection = (_a = this.collectionWithServices) == null ? void 0 : _a.collection;
845
+ const temporalExtents = collection == null ? void 0 : collection.TemporalExtents;
846
+ const spatialExtent = collection == null ? void 0 : collection.SpatialExtent;
847
+ const showTemporalSection = temporalExtents == null ? void 0 : temporalExtents.length;
848
+ const showSpatialSection = (_c = (_b = spatialExtent == null ? void 0 : spatialExtent.HorizontalSpatialDomain) == null ? void 0 : _b.Geometry) == null ? void 0 : _c.BoundingRectangles;
849
+ return b`
850
+ ${this.dataAccessMode === "original" ? A : hasSubsetOption ? b`
851
+ ${hasSubsetOption && estimates ? __privateMethod(this, _renderSizeInfo, renderSizeInfo_fn).call(this, estimates) : A}
852
+ ${this.showCollectionSearch ? b`
853
+ <div class="section">
854
+ <h2 class="section-title">
855
+ Select Data Collection
856
+ </h2>
857
+
858
+ ${__privateMethod(this, _renderSearchForCollection, renderSearchForCollection_fn).call(this)}
859
+ </div>
860
+ ` : A}
861
+ ${((_e = (_d = this.collectionWithServices) == null ? void 0 : _d.summary.outputFormats) == null ? void 0 : _e.length) && hasSubsetOption ? b`
862
+ <div class="section">
863
+ <h2 class="section-title">Output Format</h2>
864
+
865
+ ${__privateMethod(this, _renderOutputFormatSelection, renderOutputFormatSelection_fn).call(this)}
866
+ </div>
867
+ ` : A}
868
+ <div class="section">
869
+ <h2 class="section-title">Subset Options</h2>
870
+ <p style="color: #666; margin-bottom: 16px;">
871
+ Generate file links that support spatial subsetting,
872
+ date/time range selection, and variable selection.
873
+ </p>
874
+
875
+ ${((_f = this.collectionWithServices) == null ? void 0 : _f.summary.subsetting.temporal) ? __privateMethod(this, _renderDateRangeSelection, renderDateRangeSelection_fn).call(this) : A}
876
+ ${__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this) ? __privateMethod(this, _renderSpatialSelection, renderSpatialSelection_fn).call(this) : A}
877
+ ${((_g = this.collectionWithServices) == null ? void 0 : _g.summary.subsetting.variable) ? __privateMethod(this, _renderVariableSelection, renderVariableSelection_fn).call(this) : A}
878
+ ${((_h = this.collectionWithServices) == null ? void 0 : _h.summary.subsetting.variable) && isFeatureEnabled(
879
+ KnownFeatureFlags.DIMENSION_SUBSET,
880
+ this.features
881
+ ) ? __privateMethod(this, _renderDimensionSelection, renderDimensionSelection_fn).call(this) : A}
882
+ </div>
883
+ ` : b`
884
+ ${showTemporalSection && !((_i = this.collectionWithServices) == null ? void 0 : _i.summary.subsetting.temporal) ? __privateMethod(this, _renderAvailableTemporalRangeSection, renderAvailableTemporalRangeSection_fn).call(this) : A}
885
+ ${showSpatialSection && !__privateMethod(this, _hasSpatialSubset, hasSpatialSubset_fn).call(this) ? __privateMethod(this, _renderAvailableSpatialRangeSection, renderAvailableSpatialRangeSection_fn).call(this) : A}
886
+ `}
887
+ ${!hasSubsetOption && estimates ? b`
888
+ <div
889
+ class="neutral-info"
890
+ style="margin-top: 24px; padding: 16px 20px; border-radius: 6px; background: #f8f9fa; color: #555; border: 1px solid #ccc;"
891
+ >
892
+ <strong>Estimated result size:</strong><br />
893
+ Your request will return approximately
894
+ <b>${estimates.links.toLocaleString()}</b> files covering
895
+ <b>${estimates.days.toLocaleString()}</b> days.
896
+ </div>
897
+ ` : A}
898
+ ${this.dataAccessMode === "subset" && !this.dialog ? b`
899
+ <div class="footer">
900
+ <button
901
+ class="btn btn-secondary"
902
+ @click=${__privateGet(this, _resetAllParameters)}
903
+ >
904
+ Reset All
905
+ </button>
906
+ <div>
907
+ <button
908
+ class="btn btn-primary"
909
+ ?disabled=${this.isSubmittingRequest}
910
+ @click=${__privateMethod(this, _getData, getData_fn)}
911
+ >
912
+ ${this.isSubmittingRequest ? "Getting Data..." : "Get Data"}
913
+ </button>
914
+ ${this.jobId ? b`
915
+ <terra-button
916
+ variant="default"
917
+ @click=${__privateMethod(this, _viewRunningJob, viewRunningJob_fn)}
918
+ >
919
+ View Running Job
920
+ </terra-button>
921
+ ` : A}
922
+ </div>
923
+ </div>
924
+ ` : A}
925
+ `;
926
+ };
927
+ _resetAllParameters = new WeakMap();
928
+ _renderSearchForCollection = new WeakSet();
929
+ renderSearchForCollection_fn = function() {
930
+ var _a, _b;
931
+ let placeholder = "Search all types of resources (e.g. rainfall, GPM, hurricanes, etc.)";
932
+ if (this.collectionSearchType === "collection") {
933
+ placeholder = "Search collections (e.g. AQUA, GPM_3IMERGH, etc.)";
934
+ }
935
+ if (this.collectionSearchType === "variable") {
936
+ placeholder = "Search variables (e.g. rainfall, hurricanes, etc.)";
937
+ }
938
+ return b`
939
+ <terra-accordion .open=${this.collectionAccordionOpen}>
940
+ <div slot="summary">
941
+ <span class="accordion-title">Collection:</span>
942
+ </div>
943
+
944
+ <div
945
+ slot="summary-right"
946
+ style="display: flex; align-items: center; gap: 10px"
947
+ >
948
+ ${this.collectionEntryId ? b` <span
949
+ class="accordion-value"
950
+ id="selected-collection-display"
951
+ >${this.collectionEntryId}</span
952
+ >
953
+
954
+ <button
955
+ class="reset-btn"
956
+ @click=${() => this.collectionEntryId = void 0}
957
+ >
958
+ Reset
959
+ </button>` : A}
960
+ </div>
961
+
962
+ <div class="search-tabs-mini">
963
+ <button
964
+ class="search-tab-mini ${this.collectionSearchType === "all" ? "active" : ""}"
965
+ @click=${() => this.collectionSearchType = "all"}
966
+ >
967
+ All
968
+ </button>
969
+ <button
970
+ class="search-tab-mini ${this.collectionSearchType === "collection" ? "active" : ""}"
971
+ @click=${() => this.collectionSearchType = "collection"}
972
+ >
973
+ Collections
974
+ </button>
975
+ <button
976
+ class="search-tab-mini ${this.collectionSearchType === "variable" ? "active" : ""}"
977
+ @click=${() => this.collectionSearchType = "variable"}
978
+ >
979
+ Variables
980
+ </button>
981
+ </div>
982
+
983
+ <div class="search-container-mini">
984
+ <input
985
+ type="text"
986
+ class="search-input-mini"
987
+ id="search-input"
988
+ placeholder=${placeholder}
989
+ @input="${(e2) => this.handleCollectionSearch(
990
+ e2.target.value
991
+ )}"
992
+ />
993
+
994
+ <button class="search-button-mini">
995
+ <svg
996
+ class="search-icon-mini"
997
+ viewBox="0 0 24 24"
998
+ fill="currentColor"
999
+ >
1000
+ <path
1001
+ 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"
1002
+ />
1003
+ </svg>
1004
+ Search
1005
+ </button>
1006
+ </div>
1007
+
1008
+ <!-- TODO: it may be nice to have a quick search, perhaps by recent trends?
1009
+ <div class="quick-links-mini">
1010
+ <a href="#" class="quick-link-mini" onclick="quickSearch('GPM')"
1011
+ >GPM Precipitation</a
1012
+ >
1013
+ <a href="#" class="quick-link-mini" onclick="quickSearch('MODIS')"
1014
+ >MODIS Data</a
1015
+ >
1016
+ <a
1017
+ href="#"
1018
+ class="quick-link-mini"
1019
+ onclick="quickSearch('Landsat')"
1020
+ >Landsat Imagery</a
1021
+ >
1022
+ <a href="#" class="quick-link-mini" onclick="quickSearch('AIRS')"
1023
+ >Atmospheric Data</a
1024
+ >
1025
+ </div>
1026
+ -->
1027
+
1028
+ <div id="search-results-section" class="search-results-section">
1029
+ ${this.collectionSearchLoading ? b`
1030
+ <div id="loading-mini" class="loading-mini">
1031
+ <div class="spinner-mini"></div>
1032
+ <div>Searching NASA CMR...</div>
1033
+ </div>
1034
+ ` : ((_a = this.collectionSearchResults) == null ? void 0 : _a.length) ? b` <div
1035
+ id="results-container-mini"
1036
+ class="results-container-mini"
1037
+ >
1038
+ ${(_b = this.collectionSearchResults) == null ? void 0 : _b.map(
1039
+ (item) => b`
1040
+ <div
1041
+ class="result-item-mini"
1042
+ @click=${() => {
1043
+ this.collectionEntryId = item.collectionEntryId;
1044
+ this.collectionAccordionOpen = false;
1045
+ this.collectionLoading = true;
1046
+ if (item.type === "variable") {
1047
+ this.selectedVariables = [
1048
+ {
1049
+ name: item.entryId,
1050
+ href: "",
1051
+ conceptId: item.conceptId
1052
+ }
1053
+ ];
1054
+ }
1055
+ this.requestUpdate();
1056
+ }}
1057
+ style="cursor: pointer;"
1058
+ >
1059
+ <div class="result-title-mini">
1060
+ ${item.title}
1061
+ </div>
1062
+ <div class="result-id-mini">
1063
+ ${item.entryId}
1064
+ </div>
1065
+ <div class="result-description-mini">
1066
+ ${item.summary || item.title}
1067
+ </div>
1068
+ <div class="result-meta-mini">
1069
+ <span>📅 2000-02-24 - ongoing</span>
1070
+ <span>🌍 Global</span>
1071
+ <span>🏢 ${item.provider}</span>
1072
+ ${item.type === "variable" ? b` <span
1073
+ >📊
1074
+ ${item.collectionEntryId}</span
1075
+ >` : A}
1076
+ <span class="tag-mini"
1077
+ >${item.type.toUpperCase()}</span
1078
+ >
1079
+ </div>
1080
+ </div>
1081
+ `
1082
+ )}
1083
+ </div>` : this.collectionSearchResults && this.collectionSearchResults.length === 0 ? b`<div id="no-results-mini" class="no-results-mini">
1084
+ <p>
1085
+ No results found for
1086
+ '${this.collectionSearchQuery}'. Try adjusting
1087
+ your search term.
1088
+ </p>
1089
+ </div>` : A}
1090
+ </div>
1091
+ </terra-accordion>
1092
+
1093
+ ${this.collectionLoading ? b`
1094
+ <div
1095
+ class="collection-loading-bar"
1096
+ style="display: flex; align-items: center; gap: 10px; margin: 16px 0;"
1097
+ >
1098
+ <span
1099
+ class="loading-spinner"
1100
+ 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;"
1101
+ ></span>
1102
+ Retrieving collection, please wait...
1103
+ </div>
1104
+ <style>
1105
+ @keyframes spin {
1106
+ 0% {
1107
+ transform: rotate(0deg);
1108
+ }
1109
+ 100% {
1110
+ transform: rotate(360deg);
1111
+ }
1112
+ }
1113
+ </style>
1114
+ ` : A}
1115
+ `;
1116
+ };
1117
+ _renderOutputFormatSelection = new WeakSet();
1118
+ renderOutputFormatSelection_fn = function() {
1119
+ return b`
1120
+ <terra-accordion>
1121
+ <div slot="summary">
1122
+ <span class="accordion-title">File Format:</span>
1123
+ </div>
1124
+
1125
+ <div
1126
+ slot="summary-right"
1127
+ style="display: flex; align-items: center; gap: 10px;"
1128
+ >
1129
+ <span>${this.selectedFormat.label}</span>
1130
+
1131
+ <button class="reset-btn" @click=${__privateGet(this, _resetFormatSelection)}>
1132
+ Reset
1133
+ </button>
1134
+ </div>
1135
+
1136
+ <div class="accordion-content" style="margin-top: 12px;">
1137
+ ${(() => {
1138
+ var _a;
1139
+ return (((_a = this.collectionWithServices) == null ? void 0 : _a.configuredOutputFormats) || []).map(
1140
+ (format) => b`
1141
+ <label
1142
+ style="display: flex; align-items: center; gap: 8px; padding: 5px;"
1143
+ >
1144
+ <input
1145
+ type="radio"
1146
+ name="output-format"
1147
+ value="${format}"
1148
+ .checked=${this.selectedFormat === format}
1149
+ @change=${() => this.selectedFormat = format}
1150
+ />
1151
+ ${format.label}
1152
+ </label>
1153
+ `
1154
+ );
1155
+ })()}
1156
+ </div>
1157
+ </terra-accordion>
1158
+ `;
1159
+ };
1160
+ _renderDateRangeSelection = new WeakSet();
1161
+ renderDateRangeSelection_fn = function() {
1162
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1163
+ const { startDate: defaultStartDate, endDate: defaultEndDate } = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
1164
+ const startDate = (_b = (_a = this.selectedDateRange.startDate) != null ? _a : this.granuleMinDate) != null ? _b : defaultStartDate;
1165
+ const endDate = (_d = (_c = this.selectedDateRange.endDate) != null ? _c : this.granuleMaxDate) != null ? _d : defaultEndDate;
1166
+ const showError = this.touchedFields.has("date") && (!this.selectedDateRange.startDate || !this.selectedDateRange.endDate);
1167
+ return b`
1168
+ <terra-accordion>
1169
+ <div slot="summary">
1170
+ <span class="accordion-title">Refine Date Range:</span>
1171
+ </div>
1172
+
1173
+ <div
1174
+ slot="summary-right"
1175
+ style="display: flex; align-items: center; gap: 10px;"
1176
+ >
1177
+ ${showError ? b`<span class="accordion-value error"
1178
+ >Please select a date range</span
1179
+ >` : this.touchedFields.has("date") && startDate && endDate ? b`<span class="accordion-value"
1180
+ >${startDate} to ${endDate}</span
1181
+ >` : A}
1182
+ <button class="reset-btn" @click=${__privateGet(this, _resetDateRangeSelection)}>
1183
+ Reset
1184
+ </button>
1185
+ </div>
1186
+
1187
+ <div style="width: 300px">
1188
+ <terra-date-picker
1189
+ allow-input
1190
+ inline
1191
+ range
1192
+ split-inputs
1193
+ show-presets
1194
+ ?enable-time=${this.isSubDaily}
1195
+ start-label="Start Date"
1196
+ end-label="End Date"
1197
+ .minDate=${(_e = this.granuleMinDate) != null ? _e : defaultStartDate}
1198
+ .maxDate=${(_f = this.granuleMaxDate) != null ? _f : defaultEndDate}
1199
+ .startDate=${(_g = this.selectedDateRange.startDate) != null ? _g : this.granuleMinDate}
1200
+ .endDate=${(_h = this.selectedDateRange.endDate) != null ? _h : this.granuleMaxDate}
1201
+ .useEndOfDay=${!this.selectedFormat.isGiovanniFormat}
1202
+ @terra-date-range-change=${__privateGet(this, _handleDateChange)}
1203
+ ></terra-date-picker>
1204
+ </div>
1205
+
1206
+ <div style="display: flex; gap: 16px; margin-top: 15px;">
1207
+ <span
1208
+ ><strong>Available Range:</strong> ${defaultStartDate} to
1209
+ ${defaultEndDate}</span
1210
+ >
1211
+ ${this.isSubDaily ? b`<span
1212
+ ><strong>Note:</strong> All dates and times are in
1213
+ UTC.</span
1214
+ >` : A}
1215
+ </div>
1216
+ </terra-accordion>
1217
+ `;
1218
+ };
1219
+ _handleDateChange = new WeakMap();
1220
+ _resetDateRangeSelection = new WeakMap();
1221
+ _resetFormatSelection = new WeakMap();
1222
+ _getCollectionDateRange = new WeakSet();
1223
+ getCollectionDateRange_fn = function() {
1224
+ var _a, _b;
1225
+ const samplingMinDate = this.granuleMinDate;
1226
+ const samplingMaxDate = this.granuleMaxDate;
1227
+ if (samplingMinDate && samplingMaxDate) {
1228
+ return {
1229
+ startDate: samplingMinDate.slice(0, 10),
1230
+ endDate: samplingMaxDate.slice(0, 10)
1231
+ };
1232
+ }
1233
+ const temporalExtents = (_b = (_a = this.collectionWithServices) == null ? void 0 : _a.collection) == null ? void 0 : _b.TemporalExtents;
1234
+ if (!(temporalExtents == null ? void 0 : temporalExtents.length))
1235
+ return {
1236
+ startDate: null,
1237
+ endDate: null
1238
+ };
1239
+ let minStart = null;
1240
+ let maxEnd = null;
1241
+ const today = /* @__PURE__ */ new Date();
1242
+ for (const temporal of temporalExtents) {
1243
+ for (const range of temporal.RangeDateTimes || []) {
1244
+ const start = new Date(range.BeginningDateTime);
1245
+ let end;
1246
+ if (temporal.EndsAtPresentFlag || !range.EndingDateTime) {
1247
+ end = today;
1248
+ } else {
1249
+ end = new Date(range.EndingDateTime);
1250
+ }
1251
+ if (!minStart || start < minStart)
1252
+ minStart = start;
1253
+ if (!maxEnd || end > maxEnd)
1254
+ maxEnd = end;
1255
+ }
1256
+ }
1257
+ return {
1258
+ startDate: minStart ? minStart.toISOString().slice(0, 10) : null,
1259
+ endDate: maxEnd ? maxEnd.toISOString().slice(0, 10) : null
1260
+ };
1261
+ };
1262
+ _getDefaultRecentDateRange = new WeakSet();
1263
+ getDefaultRecentDateRange_fn = function() {
1264
+ var _a;
1265
+ const range = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
1266
+ const granuleCount = (_a = this.collectionWithServices) == null ? void 0 : _a.granuleCount;
1267
+ if (!range.startDate || !range.endDate || !granuleCount || granuleCount <= 1) {
1268
+ return range;
1269
+ }
1270
+ const msPerDay = 1e3 * 60 * 60 * 24;
1271
+ const fullStart = new Date(range.startDate);
1272
+ const fullEnd = new Date(range.endDate);
1273
+ const totalDays = Math.floor((fullEnd.getTime() - fullStart.getTime()) / msPerDay) + 1;
1274
+ if (totalDays <= 0) {
1275
+ return range;
1276
+ }
1277
+ const avgCadenceDays = totalDays / granuleCount;
1278
+ const windowDays = Math.min(
1279
+ totalDays,
1280
+ Math.max(
1281
+ DEFAULT_DATE_RANGE_MIN_DAYS,
1282
+ avgCadenceDays * DEFAULT_DATE_RANGE_MIN_GRANULES
1283
+ )
1284
+ );
1285
+ if (windowDays >= totalDays) {
1286
+ return range;
1287
+ }
1288
+ const recentStart = new Date(fullEnd.getTime() - (windowDays - 1) * msPerDay);
1289
+ return {
1290
+ startDate: recentStart > fullStart ? formatDate(recentStart) : range.startDate,
1291
+ endDate: range.endDate
1292
+ };
1293
+ };
1294
+ _renderSpatialSelection = new WeakSet();
1295
+ renderSpatialSelection_fn = function() {
1296
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
1297
+ const showError = this.touchedFields.has("spatial") && !this.spatialSelection && !this.shapeGeoJson;
1298
+ const spatialString = (_c = (_b = this.spatialLabel) != null ? _b : (_a = this.spatialSelection) == null ? void 0 : _a.toString()) != null ? _c : void 0;
1299
+ const spatialInitialValue = (_e = (_d = this.spatialSelection) == null ? void 0 : _d.toString()) != null ? _e : void 0;
1300
+ return b`
1301
+ <terra-accordion>
1302
+ <div slot="summary">
1303
+ <span class="accordion-title">Refine Region:</span>
1304
+ </div>
1305
+
1306
+ <div
1307
+ slot="summary-right"
1308
+ style="display: flex; align-items: center; gap: 10px;"
1309
+ >
1310
+ ${showError ? b`<span class="accordion-value error"
1311
+ >Please select a region</span
1312
+ >` : spatialString ? b`<span class="accordion-value"
1313
+ >${spatialString}</span
1314
+ >` : A}
1315
+ <button class="reset-btn" @click=${__privateGet(this, _resetSpatialSelection)}>
1316
+ Reset
1317
+ </button>
1318
+ </div>
1319
+ <div class="accordion-content">
1320
+ <terra-spatial-picker
1321
+ part="spatial-picker"
1322
+ inline
1323
+ hide-label
1324
+ .spatialConstraints=${__privateGet(this, _collectionController).spatialConstraints || "-180, -90, 180, 90"}
1325
+ .initialValue=${spatialInitialValue}
1326
+ ?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}
1327
+ ?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}
1328
+ @terra-map-change=${__privateGet(this, _handleSpatialChange)}
1329
+ ></terra-spatial-picker>
1330
+ <div
1331
+ style="display: flex; gap: 16px; margin-top: 15px; color: #31708f;"
1332
+ >
1333
+ <span
1334
+ ><strong>Available Range:</strong> ${__privateGet(this, _collectionController).spatialConstraints}</span
1335
+ >
1336
+ </div>
1337
+ </div>
1338
+ </terra-accordion>
1339
+ `;
1340
+ };
1341
+ _handleSpatialChange = new WeakMap();
1342
+ _resetSpatialSelection = new WeakMap();
1343
+ _renderVariableSelection = new WeakSet();
1344
+ renderVariableSelection_fn = function() {
1345
+ var _a;
1346
+ const variables = ((_a = this.collectionWithServices) == null ? void 0 : _a.variables) || [];
1347
+ const giovanniError = this.touchedFields.has("variables") && __privateMethod(this, _getGiovanniValidationError, getGiovanniValidationError_fn).call(this);
1348
+ const basicError = this.touchedFields.has("variables") && this.selectedVariables.length === 0;
1349
+ const showError = giovanniError || basicError;
1350
+ const errorMessage = giovanniError || (basicError ? "Please select at least one variable" : "");
1351
+ const tree = __privateMethod(this, _buildVariableTree, buildVariableTree_fn).call(this, variables);
1352
+ const allGroups = __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, tree);
1353
+ const allExpanded = allGroups.length > 0 && allGroups.every((g) => this.expandedVariableGroups.has(g));
1354
+ return b`
1355
+ <terra-accordion>
1356
+ <div slot="summary">
1357
+ <span class="accordion-title">Select Variables:</span>
1358
+ </div>
1359
+ <div
1360
+ slot="summary-right"
1361
+ style="display: flex; align-items: center; gap: 10px;"
1362
+ >
1363
+ ${showError ? b`<span class="accordion-value error"
1364
+ >${errorMessage}</span
1365
+ >` : this.selectedVariables.length ? b`<span class="accordion-value"
1366
+ >${this.selectedVariables.length} selected</span
1367
+ >` : A}
1368
+
1369
+ <button class="reset-btn" @click=${__privateGet(this, _resetVariableSelection)}>
1370
+ Reset
1371
+ </button>
1372
+ </div>
1373
+ <div class="accordion-content">
1374
+ <terra-input
1375
+ label="Filter variables"
1376
+ placeholder="Search by variable name..."
1377
+ .value=${this.variableFilterText}
1378
+ @input=${(e2) => {
1379
+ const input = e2.target;
1380
+ this.variableFilterText = input.value;
1381
+ __privateMethod(this, _handleVariableFilterChange, handleVariableFilterChange_fn).call(this);
1382
+ }}
1383
+ style="margin-bottom: 10px;"
1384
+ ></terra-input>
1385
+ <button
1386
+ class="reset-btn"
1387
+ style="margin-bottom: 10px;"
1388
+ @click=${() => __privateMethod(this, _toggleExpandCollapseAll, toggleExpandCollapseAll_fn).call(this, tree)}
1389
+ >
1390
+ ${allExpanded ? "Collapse Tree" : "Expand Tree"}
1391
+ </button>
1392
+
1393
+ ${this.selectedFormat.isGiovanniFormat && this.giovanniConfiguredVariables ? b`
1394
+ <terra-alert
1395
+ open
1396
+ appearance="white"
1397
+ style="margin: 10px 0"
1398
+ >
1399
+ <terra-icon
1400
+ slot="icon"
1401
+ name="outline-information-circle"
1402
+ library="heroicons"
1403
+ ></terra-icon>
1404
+ Only certain variables are supported for the
1405
+ selected output format. (Giovanni service)
1406
+ </terra-alert>
1407
+ ` : A}
1408
+ ${variables.length === 0 ? b`<p style="color: #666; font-style: italic;">
1409
+ No variables available for this collection.
1410
+ </p>` : __privateMethod(this, _renderVariableTree, renderVariableTree_fn).call(this, __privateMethod(this, _filterVariableTree, filterVariableTree_fn).call(this, tree), [])}
1411
+ </div>
1412
+ </terra-accordion>
1413
+ `;
1414
+ };
1415
+ _renderDimensionGroup = new WeakSet();
1416
+ renderDimensionGroup_fn = function(dim) {
1417
+ var _a, _b, _c, _d, _e, _f;
1418
+ const currentValue = (_a = this.selectedDimensionIndexes[dim.name]) != null ? _a : 1;
1419
+ 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(
1420
+ (s) => s.dimensions && s.dimensions.length > 0
1421
+ )) == null ? void 0 : _f.dimensions) || [];
1422
+ return b`
1423
+ <div style="margin-bottom: 16px;">
1424
+ <div
1425
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;"
1426
+ >
1427
+ <span style="font-weight: 600; margin-bottom: 44px"
1428
+ >Dimension: ${dim.name}</span
1429
+ >
1430
+ </div>
1431
+ <terra-slider
1432
+ class="dimension-slider"
1433
+ mode="range"
1434
+ min="1"
1435
+ .max=${dim.size}
1436
+ step="1"
1437
+ .startValue=${currentValue.start}
1438
+ .endValue=${currentValue.end}
1439
+ has-tooltips
1440
+ show-inputs
1441
+ hide-label
1442
+ .formatTooltip=${dimensions.length > 0 ? (value) => {
1443
+ const found = dimensions.find(
1444
+ (d) => String(d.value) === String(value)
1445
+ );
1446
+ return found ? found.label : String(value);
1447
+ } : A}
1448
+ @terra-slider-change=${(event) => {
1449
+ if ("startValue" in event.detail) {
1450
+ const { startValue, endValue } = event.detail;
1451
+ __privateMethod(this, _setDimensionValue, setDimensionValue_fn).call(this, dim.name, startValue, endValue);
1452
+ }
1453
+ }}
1454
+ ></terra-slider>
1455
+ </div>
1456
+ `;
1457
+ };
1458
+ _setDimensionValue = new WeakSet();
1459
+ setDimensionValue_fn = function(dimName, startValue, endValue) {
1460
+ const dimensions = __privateMethod(this, _getCommonSelectableDimensions, getCommonSelectableDimensions_fn).call(this);
1461
+ const found = dimensions.find((d) => d.name === dimName);
1462
+ if (!found) {
1463
+ return;
1464
+ }
1465
+ const normalizedStartValue = Math.min(
1466
+ Math.max(Math.round(startValue), 1),
1467
+ found.size
1468
+ );
1469
+ const normalizedEndValue = Math.min(
1470
+ Math.max(Math.round(endValue != null ? endValue : startValue), 1),
1471
+ found.size
1472
+ );
1473
+ if (normalizedStartValue <= 1 && normalizedEndValue >= found.size) {
1474
+ delete this.selectedDimensionIndexes[dimName];
1475
+ return;
1476
+ }
1477
+ this.selectedDimensionIndexes = __spreadProps(__spreadValues({}, this.selectedDimensionIndexes), {
1478
+ [dimName]: { start: normalizedStartValue, end: normalizedEndValue }
1479
+ });
1480
+ };
1481
+ _renderDimensionSelection = new WeakSet();
1482
+ renderDimensionSelection_fn = function() {
1483
+ const dimensions = __privateMethod(this, _getCommonSelectableDimensions, getCommonSelectableDimensions_fn).call(this);
1484
+ if (!dimensions.length) {
1485
+ return A;
1486
+ }
1487
+ const selectedCount = Object.keys(this.selectedDimensionIndexes).length;
1488
+ return b`
1489
+ <terra-accordion>
1490
+ <div slot="summary">
1491
+ <span class="accordion-title">Select Dimensions:</span>
1492
+ </div>
1493
+ <div
1494
+ slot="summary-right"
1495
+ style="display: flex; align-items: center; gap: 10px;"
1496
+ >
1497
+ ${selectedCount ? b`<span class="accordion-value"
1498
+ >${selectedCount}
1499
+ dimension${selectedCount === 1 ? "" : "s"}
1500
+ selected</span
1501
+ >` : A}
1502
+ <button class="reset-btn" @click=${__privateMethod(this, _resetDimensionSelection, resetDimensionSelection_fn)}>
1503
+ Reset
1504
+ </button>
1505
+ </div>
1506
+ <div class="accordion-content">
1507
+ ${dimensions.map((dim) => __privateMethod(this, _renderDimensionGroup, renderDimensionGroup_fn).call(this, dim))}
1508
+ </div>
1509
+ </terra-accordion>
1510
+ `;
1511
+ };
1512
+ _filterVariableTree = new WeakSet();
1513
+ filterVariableTree_fn = function(tree) {
1514
+ if (!this.variableFilterText.trim()) {
1515
+ return tree;
1516
+ }
1517
+ const filterText = this.variableFilterText.toLowerCase().trim();
1518
+ const filterNode = (node) => {
1519
+ const result = {};
1520
+ for (const [key, value] of Object.entries(node)) {
1521
+ if (value.__isLeaf) {
1522
+ const variableName = value.__variable.name.toLowerCase();
1523
+ if (variableName.includes(filterText)) {
1524
+ result[key] = value;
1525
+ }
1526
+ } else {
1527
+ const filteredChildren = filterNode(value.__children);
1528
+ if (Object.keys(filteredChildren).length > 0 || key.toLowerCase().includes(filterText)) {
1529
+ result[key] = __spreadProps(__spreadValues({}, value), {
1530
+ __children: filteredChildren
1531
+ });
1532
+ }
1533
+ }
1534
+ }
1535
+ return result;
1536
+ };
1537
+ return filterNode(tree);
1538
+ };
1539
+ _handleVariableFilterChange = new WeakSet();
1540
+ handleVariableFilterChange_fn = function() {
1541
+ var _a;
1542
+ if (!this.variableFilterText.trim()) {
1543
+ return;
1544
+ }
1545
+ const variables = ((_a = this.collectionWithServices) == null ? void 0 : _a.variables) || [];
1546
+ const tree = __privateMethod(this, _buildVariableTree, buildVariableTree_fn).call(this, variables);
1547
+ const filterText = this.variableFilterText.toLowerCase().trim();
1548
+ const groupsToExpand = /* @__PURE__ */ new Set();
1549
+ const findMatchingGroups = (node, path = []) => {
1550
+ for (const [key, value] of Object.entries(node)) {
1551
+ if (value.__isLeaf) {
1552
+ const variableName = value.__variable.name.toLowerCase();
1553
+ if (variableName.includes(filterText)) {
1554
+ for (let i = 0; i < path.length; i++) {
1555
+ const groupPath = path.slice(0, i + 1).join("/");
1556
+ groupsToExpand.add(groupPath);
1557
+ }
1558
+ }
1559
+ } else {
1560
+ const groupPath = [...path, key].join("/");
1561
+ findMatchingGroups(value.__children, [...path, key]);
1562
+ if (key.toLowerCase().includes(filterText)) {
1563
+ groupsToExpand.add(groupPath);
1564
+ }
1565
+ }
1566
+ }
1567
+ };
1568
+ findMatchingGroups(tree);
1569
+ if (groupsToExpand.size > 0) {
1570
+ this.expandedVariableGroups = /* @__PURE__ */ new Set([
1571
+ ...this.expandedVariableGroups,
1572
+ ...groupsToExpand
1573
+ ]);
1574
+ }
1575
+ };
1576
+ _buildVariableTree = new WeakSet();
1577
+ buildVariableTree_fn = function(variables) {
1578
+ let filteredVariables = variables;
1579
+ if (this.selectedFormat.isGiovanniFormat && this.giovanniConfiguredVariables) {
1580
+ filteredVariables = variables.filter((v) => {
1581
+ var _a, _b, _c;
1582
+ const shortName = (_a = this.collectionWithServices) == null ? void 0 : _a.shortName;
1583
+ const version = (_c = (_b = this.collectionWithServices) == null ? void 0 : _b.collection) == null ? void 0 : _c.Version;
1584
+ if (!shortName || !version) {
1585
+ return false;
1586
+ }
1587
+ const giovanniVariableName = convertVariableEntryIdToGiovanniFormat(
1588
+ shortName,
1589
+ version,
1590
+ v.name
1591
+ );
1592
+ return this.giovanniConfiguredVariables.has(giovanniVariableName);
1593
+ });
1594
+ }
1595
+ const root = {};
1596
+ for (const v of filteredVariables) {
1597
+ const parts = v.name.split("/");
1598
+ let node = root;
1599
+ for (let i = 0; i < parts.length; i++) {
1600
+ const part = parts[i];
1601
+ if (!node[part])
1602
+ node[part] = { __children: {}, __isLeaf: false };
1603
+ if (i === parts.length - 1) {
1604
+ node[part].__isLeaf = true;
1605
+ node[part].__variable = v;
1606
+ }
1607
+ node = node[part].__children;
1608
+ }
1609
+ }
1610
+ return root;
1611
+ };
1612
+ _renderVariableTree = new WeakSet();
1613
+ renderVariableTree_fn = function(node, path) {
1614
+ const isGiovanni = this.selectedFormat.isGiovanniFormat;
1615
+ return b`
1616
+ <div style="margin-left: ${path.length * 20}px;">
1617
+ ${Object.entries(node).map(([key, value]) => {
1618
+ var _a;
1619
+ const groupPath = [...path, key].join("/");
1620
+ if (value.__isLeaf) {
1621
+ const ummVar = cmr_variable_service_default.getVariableByName(
1622
+ key,
1623
+ (_a = __privateGet(this, _collectionController).variables) == null ? void 0 : _a.data
1624
+ );
1625
+ const variableLabel = ummVar ? cmr_variable_service_default.getVariableDisplayLabel(ummVar) : key;
1626
+ return b`
1627
+ <div class="option-row">
1628
+ <label class="checkbox-option">
1629
+ <input
1630
+ type="${isGiovanni ? "radio" : "checkbox"}"
1631
+ name="${isGiovanni ? "variable-selection" : ""}"
1632
+ .checked=${this.selectedVariables.some(
1633
+ (v) => v.name === value.__variable.name
1634
+ )}
1635
+ @change=${(e2) => __privateMethod(this, _toggleVariableSelection, toggleVariableSelection_fn).call(this, e2, value.__variable)}
1636
+ />
1637
+ <span>${variableLabel}</span>
1638
+ </label>
1639
+ </div>
1640
+ `;
1641
+ } else {
1642
+ const expanded = this.expandedVariableGroups.has(groupPath);
1643
+ return b`
1644
+ <div class="option-row" style="align-items: flex-start;">
1645
+ <span
1646
+ style="cursor: pointer; display: flex; align-items: center;"
1647
+ @click=${() => __privateMethod(this, _toggleGroupExpand, toggleGroupExpand_fn).call(this, groupPath)}
1648
+ >
1649
+ <terra-icon
1650
+ library="heroicons"
1651
+ name="${expanded ? "outline-minus-circle" : "outline-plus-circle"}"
1652
+ style="margin-right: 4px;"
1653
+ ></terra-icon>
1654
+ <span style="font-weight: 500;">${key}</span>
1655
+ </span>
1656
+ </div>
1657
+ ${expanded ? __privateMethod(this, _renderVariableTree, renderVariableTree_fn).call(this, value.__children, [
1658
+ ...path,
1659
+ key
1660
+ ]) : ""}
1661
+ `;
1662
+ }
1663
+ })}
1664
+ </div>
1665
+ `;
1666
+ };
1667
+ _getAllGroupPaths = new WeakSet();
1668
+ getAllGroupPaths_fn = function(node, path = []) {
1669
+ let groups = [];
1670
+ for (const [key, value] of Object.entries(node)) {
1671
+ if (!value.__isLeaf) {
1672
+ const groupPath = [...path, key].join("/");
1673
+ groups.push(groupPath);
1674
+ groups = groups.concat(
1675
+ __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, value.__children, [...path, key])
1676
+ );
1677
+ }
1678
+ }
1679
+ return groups;
1680
+ };
1681
+ _toggleGroupExpand = new WeakSet();
1682
+ toggleGroupExpand_fn = function(groupPath) {
1683
+ const set = new Set(this.expandedVariableGroups);
1684
+ if (set.has(groupPath)) {
1685
+ set.delete(groupPath);
1686
+ } else {
1687
+ set.add(groupPath);
1688
+ }
1689
+ this.expandedVariableGroups = set;
1690
+ };
1691
+ _toggleExpandCollapseAll = new WeakSet();
1692
+ toggleExpandCollapseAll_fn = function(tree) {
1693
+ const allGroups = __privateMethod(this, _getAllGroupPaths, getAllGroupPaths_fn).call(this, tree);
1694
+ const allExpanded = allGroups.length > 0 && allGroups.every((g) => this.expandedVariableGroups.has(g));
1695
+ if (allExpanded) {
1696
+ this.expandedVariableGroups = /* @__PURE__ */ new Set();
1697
+ } else {
1698
+ this.expandedVariableGroups = new Set(allGroups);
1699
+ }
1700
+ };
1701
+ _toggleVariableSelection = new WeakSet();
1702
+ toggleVariableSelection_fn = function(e2, variable) {
1703
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "variables");
1704
+ const checked = e2.target.checked;
1705
+ if (this.selectedFormat.isGiovanniFormat) {
1706
+ if (checked) {
1707
+ this.selectedVariables = [variable];
1708
+ }
1709
+ } else {
1710
+ if (checked) {
1711
+ if (!this.selectedVariables.some((v) => v.name === variable.name)) {
1712
+ this.selectedVariables = [...this.selectedVariables, variable];
1713
+ }
1714
+ } else {
1715
+ this.selectedVariables = this.selectedVariables.filter(
1716
+ (v) => v.name !== variable.name
1717
+ );
1718
+ }
1719
+ }
1720
+ };
1721
+ _markFieldTouched = new WeakSet();
1722
+ markFieldTouched_fn = function(field) {
1723
+ this.touchedFields = new Set(this.touchedFields).add(field);
1724
+ };
1725
+ _resetVariableSelection = new WeakMap();
1726
+ _resetDimensionSelection = new WeakSet();
1727
+ resetDimensionSelection_fn = function() {
1728
+ this.selectedDimensionIndexes = {};
1729
+ };
1730
+ _isDimensionExcluded = new WeakSet();
1731
+ isDimensionExcluded_fn = function(dim) {
1732
+ var _a, _b, _c;
1733
+ const normalizedName = (_b = (_a = dim.Name) == null ? void 0 : _a.toLowerCase()) != null ? _b : "";
1734
+ const normalizedType = ((_c = dim.Type) != null ? _c : "").toLowerCase();
1735
+ return ["time", "latitude", "longitude", "lat", "lon", "x", "y"].some(
1736
+ (value) => normalizedName.includes(value) || normalizedType.includes(value)
1737
+ );
1738
+ };
1739
+ _getCommonSelectableDimensions = new WeakSet();
1740
+ getCommonSelectableDimensions_fn = function() {
1741
+ var _a, _b;
1742
+ const variables = (_a = __privateGet(this, _collectionController).variables) == null ? void 0 : _a.data;
1743
+ if (!variables) {
1744
+ return [];
1745
+ }
1746
+ const allUmmVars = (_b = variables.items) != null ? _b : [];
1747
+ if (!allUmmVars.length) {
1748
+ return [];
1749
+ }
1750
+ const allDimensionSets = allUmmVars.map(
1751
+ (v) => {
1752
+ var _a2;
1753
+ return (_a2 = v.umm.Dimensions) != null ? _a2 : [];
1754
+ }
1755
+ );
1756
+ if (!allDimensionSets.length) {
1757
+ return [];
1758
+ }
1759
+ const allDimensionNames = Array.from(
1760
+ new Set(allDimensionSets.flatMap((dimSet) => dimSet.map((dim) => dim.Name)))
1761
+ );
1762
+ const filteredCommon = allDimensionNames.map((name) => {
1763
+ var _a2, _b2;
1764
+ const dims = allDimensionSets.map((set) => set.find((dim) => dim.Name === name)).filter((d) => Boolean(d));
1765
+ if (!dims.length) {
1766
+ return null;
1767
+ }
1768
+ const validSizes = dims.filter((dim) => dim.Size !== void 0 && dim.Size !== "Varies").map((dim) => Number(dim.Size)).filter((size2) => Number.isFinite(size2) && size2 > 0);
1769
+ if (!validSizes.length) {
1770
+ return null;
1771
+ }
1772
+ const size = Math.min(...validSizes);
1773
+ return {
1774
+ name,
1775
+ type: (_b2 = (_a2 = dims[0]) == null ? void 0 : _a2.Type) != null ? _b2 : "OTHER",
1776
+ size
1777
+ };
1778
+ }).filter(
1779
+ (entry) => Boolean(entry)
1780
+ ).filter(
1781
+ (entry) => !__privateMethod(this, _isDimensionExcluded, isDimensionExcluded_fn).call(this, {
1782
+ Name: entry.name,
1783
+ Type: entry.type
1784
+ })
1785
+ );
1786
+ return filteredCommon;
1787
+ };
1788
+ _renderJobStatus = new WeakSet();
1789
+ renderJobStatus_fn = function() {
1790
+ var _a, _b, _c, _d, _e;
1791
+ if (!__privateGet(this, _harmonyRequestController).jobId) {
1792
+ return b`<div class="results-section" id="job-status-section">
1793
+ <div
1794
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"
1795
+ >
1796
+ <h2 class="results-title" style="margin: 0;">Results:</h2>
1797
+ ${!this.isHistoryView ? b`
1798
+ <terra-button
1799
+ variant="default"
1800
+ size="small"
1801
+ @click=${__privateMethod(this, _backToSubsetOptions, backToSubsetOptions_fn)}
1802
+ >
1803
+ ← Back to Subset Options
1804
+ </terra-button>
1805
+ ` : A}
1806
+ </div>
1807
+
1808
+ <div class="progress-container">
1809
+ ${this.harmonyRequestError ? b`
1810
+ <terra-alert open variant="danger" appearance="white">
1811
+ ${__privateMethod(this, _renderHarmonyRequestError, renderHarmonyRequestError_fn).call(this)}
1812
+ </terra-alert>
1813
+ ` : b`
1814
+ <div class="progress-container">
1815
+ <div class="progress-text">
1816
+ <span class="spinner"></span>
1817
+ <span class="status-running"
1818
+ >Searching for data...</span
1819
+ >
1820
+ </div>
1821
+
1822
+ <div class="progress-bar">
1823
+ <div
1824
+ class="progress-fill"
1825
+ style="width: 0%"
1826
+ ></div>
1827
+ </div>
1828
+ </div>
1829
+
1830
+ ${__privateMethod(this, _renderJobMessage, renderJobMessage_fn).call(this)}
1831
+ `}
1832
+ </div>
1833
+ </div>`;
1834
+ }
1835
+ return b`
1836
+ <div class="results-section" id="job-status-section">
1837
+ <div
1838
+ style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;"
1839
+ >
1840
+ <h2 class="results-title" style="margin: 0;">Results:</h2>
1841
+ ${!this.isHistoryView ? b`
1842
+ <terra-button
1843
+ variant="default"
1844
+ size="small"
1845
+ @click=${__privateMethod(this, _backToSubsetOptions, backToSubsetOptions_fn)}
1846
+ >
1847
+ ← Back to Subset Options
1848
+ </terra-button>
1849
+ ` : A}
1850
+ </div>
1851
+
1852
+ ${__privateGet(this, _harmonyRequestController).status !== "canceled" && __privateGet(this, _harmonyRequestController).status !== "failed" ? b` <div class="progress-container">
1853
+ <div class="progress-text">
1854
+ ${__privateGet(this, _harmonyRequestController).status === "paused" /* PAUSED */ ? b`
1855
+ <span class="status-paused"
1856
+ >⏸ Paused for review
1857
+ (${__privateGet(this, _harmonyRequestController).progress}%)</span
1858
+ >
1859
+ ` : __privateGet(this, _harmonyRequestController).progress >= 100 ? b`
1860
+ <span class="status-complete"
1861
+ >✓ Search complete</span
1862
+ >
1863
+ ` : b`
1864
+ <span class="spinner"></span>
1865
+ <span class="status-running"
1866
+ >Searching for data...
1867
+ (${__privateGet(this, _harmonyRequestController).progress}%)</span
1868
+ >
1869
+ `}
1870
+ </div>
1871
+
1872
+ <div class="progress-bar">
1873
+ <div
1874
+ class="progress-fill"
1875
+ style="width: ${__privateGet(this, _harmonyRequestController).progress}%"
1876
+ ></div>
1877
+ </div>
1878
+ </div>` : A}
1879
+
1880
+ <div class="search-status">
1881
+ <span class="file-count"
1882
+ >Found ${__privateMethod(this, _numberOfFilesFoundEstimate, numberOfFilesFoundEstimate_fn).call(this)} files</span
1883
+ >
1884
+ out of estimated
1885
+ <span class="estimated-total"
1886
+ >${(_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.numInputGranules.toLocaleString()}</span
1887
+ >
1888
+ </div>
1889
+
1890
+ ${__privateMethod(this, _renderPausedMessage, renderPausedMessage_fn).call(this)} ${__privateMethod(this, _renderJobMessage, renderJobMessage_fn).call(this)}
1891
+ ${((_c = (_b = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _b.errors) == null ? void 0 : _c.length) ? b`
1892
+ <terra-accordion>
1893
+ <div slot="summary">
1894
+ <span
1895
+ class="accordion-title"
1896
+ style="color: #dc3545;"
1897
+ >Errors
1898
+ (${(_d = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _d.errors.length})</span
1899
+ >
1900
+ </div>
1901
+ <div class="accordion-content">
1902
+ <ul
1903
+ style="color: #dc3545; font-size: 14px; padding-left: 20px;"
1904
+ >
1905
+ ${(_e = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _e.errors.map(
1906
+ (err) => b`
1907
+ <li style="margin-bottom: 12px;">
1908
+ <a
1909
+ href="${err.url}"
1910
+ target="_blank"
1911
+ style="word-break: break-all; color: #dc3545; text-decoration: underline;"
1912
+ >
1913
+ ${err.url}
1914
+ </a>
1915
+ <div style="margin-top: 2px;">
1916
+ ${err.message}
1917
+ </div>
1918
+ </li>
1919
+ `
1920
+ )}
1921
+ </ul>
1922
+ </div>
1923
+ </terra-accordion>
1924
+ ` : A}
1925
+
1926
+ <div class="tabs">
1927
+ <button
1928
+ class="tab ${this.selectedTab === "web-links" ? "active" : ""}"
1929
+ @click=${() => this.selectedTab = "web-links"}
1930
+ >
1931
+ Web Links
1932
+ </button>
1933
+
1934
+ ${!this.isHistoryView ? b`
1935
+ <button
1936
+ class="tab ${this.selectedTab === "selected-params" ? "active" : ""}"
1937
+ @click=${() => this.selectedTab = "selected-params"}
1938
+ >
1939
+ Selected Parameters
1940
+ </button>
1941
+ ` : A}
1942
+ </div>
1943
+ <div
1944
+ id="web-links"
1945
+ class="tab-content ${this.selectedTab === "web-links" ? "active" : ""}"
1946
+ >
1947
+ ${__privateMethod(this, _getDocumentationLinks, getDocumentationLinks_fn).call(this).length ? b`
1948
+ <div class="documentation-links">
1949
+ ${__privateMethod(this, _getDocumentationLinks, getDocumentationLinks_fn).call(this).map(
1950
+ (link) => b`
1951
+ <a href="${link.href}" class="doc-link"
1952
+ >${link.title}</a
1953
+ >
1954
+ `
1955
+ )}
1956
+ </div>
1957
+ ` : A}
1958
+
1959
+ <ul class="file-list">
1960
+ ${__privateMethod(this, _getDataLinks, getDataLinks_fn).call(this).map(
1961
+ (link) => b`
1962
+ <li class="file-item">
1963
+ <a
1964
+ href="${link.href}"
1965
+ class="file-link"
1966
+ target="_blank"
1967
+ >
1968
+ ${link.title}
1969
+ </a>
1970
+ </li>
1971
+ `
1972
+ )}
1973
+ </ul>
1974
+ </div>
1975
+
1976
+ <div
1977
+ id="selected-params"
1978
+ class="tab-content ${this.selectedTab === "selected-params" ? "active" : ""}"
1979
+ >
1980
+ ${__privateMethod(this, _renderSelectedParams, renderSelectedParams_fn).call(this)}
1981
+ </div>
1982
+ </div>
1983
+
1984
+ ${!this.dialog ? b`
1985
+ <div class="footer">
1986
+ ${__privateGet(this, _harmonyRequestController).status === "successful" /* SUCCESSFUL */ || __privateGet(this, _harmonyRequestController).status === "complete_with_errors" /* COMPLETE_WITH_ERRORS */ ? b`
1987
+ <div
1988
+ style="display: flex; align-items: center; gap: 8px;"
1989
+ >
1990
+ <terra-dropdown
1991
+ @terra-select=${__privateMethod(this, _handleDownloadSelect, handleDownloadSelect_fn)}
1992
+ >
1993
+ <terra-button slot="trigger" caret>
1994
+ Download Options
1995
+ </terra-button>
1996
+ <terra-menu>
1997
+ <terra-menu-item value="file-list">
1998
+ <svg
1999
+ slot="prefix"
2000
+ viewBox="0 0 24 24"
2001
+ width="16"
2002
+ height="16"
2003
+ style="width: 16px; height: 16px;"
2004
+ >
2005
+ <path
2006
+ fill="currentColor"
2007
+ 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"
2008
+ />
2009
+ </svg>
2010
+ File List
2011
+ </terra-menu-item>
2012
+ <terra-menu-item
2013
+ value="python-script"
2014
+ >
2015
+ <svg
2016
+ slot="prefix"
2017
+ viewBox="0 0 128 128"
2018
+ width="16"
2019
+ height="16"
2020
+ style="width: 16px; height: 16px;"
2021
+ >
2022
+ <path
2023
+ fill="currentColor"
2024
+ 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"
2025
+ ></path>
2026
+ </svg>
2027
+ Python Script
2028
+ </terra-menu-item>
2029
+ <terra-menu-item
2030
+ value="earthdata-download"
2031
+ >
2032
+ <svg
2033
+ slot="prefix"
2034
+ viewBox="0 0 64 64"
2035
+ fill="none"
2036
+ width="16"
2037
+ height="16"
2038
+ style="width: 16px; height: 16px;"
2039
+ >
2040
+ <circle
2041
+ cx="32"
2042
+ cy="32"
2043
+ r="28"
2044
+ fill="currentColor"
2045
+ />
2046
+ <path
2047
+ d="M32 14v26M32 40l-9-9M32 40l9-9"
2048
+ stroke="#fff"
2049
+ stroke-width="4"
2050
+ stroke-linecap="round"
2051
+ stroke-linejoin="round"
2052
+ fill="none"
2053
+ />
2054
+ </svg>
2055
+ Earthdata Download
2056
+ </terra-menu-item>
2057
+ </terra-menu>
2058
+ </terra-dropdown>
2059
+
2060
+ <!--
2061
+ <terra-button
2062
+ outline
2063
+ @click=${() => __privateMethod(this, _handleJupyterNotebookClick, handleJupyterNotebookClick_fn).call(this)}
2064
+ >
2065
+ <terra-icon
2066
+ name="outline-code-bracket"
2067
+ library="heroicons"
2068
+ font-size="1.5em"
2069
+ style="margin-right: 5px;"
2070
+ ></terra-icon>
2071
+ Open in Jupyter Notebook
2072
+ </terra-button>
2073
+ --></div>
2074
+ ` : A}
2075
+ ${__privateMethod(this, _renderJobActionButtons, renderJobActionButtons_fn).call(this)}
2076
+
2077
+ <div class="job-info">
2078
+ Job ID:
2079
+ <span class="job-id">
2080
+ ${this.bearerToken ? b`<a
2081
+ href="https://harmony.earthdata.nasa.gov/jobs/${__privateGet(this, _harmonyRequestController).jobId}"
2082
+ target="_blank"
2083
+ >${__privateGet(this, _harmonyRequestController).jobId}</a
2084
+ >` : __privateGet(this, _harmonyRequestController).jobId}
2085
+ </span>
2086
+ <span class="info-icon">?</span>
2087
+ </div>
2088
+ </div>
2089
+ ` : A}
2090
+ `;
2091
+ };
2092
+ _renderSelectedParams = new WeakSet();
2093
+ renderSelectedParams_fn = function() {
2094
+ var _a, _b, _c, _d;
2095
+ const collection = (_a = this.collectionWithServices) == null ? void 0 : _a.collection;
2096
+ const variables = this.selectedVariables.length ? this.selectedVariables.map((v) => v.name) : ["All"];
2097
+ const dateRange = this.selectedDateRange.startDate && this.selectedDateRange.endDate ? `${this.selectedDateRange.startDate} to ${this.selectedDateRange.endDate}` : "\u2014";
2098
+ const spatial = (_c = (_b = this.spatialSelection) == null ? void 0 : _b.toString()) != null ? _c : "-";
2099
+ return b`
2100
+ <dl class="params-summary">
2101
+ <div>
2102
+ <dt><strong>Dataset</strong></dt>
2103
+ <dd>${(_d = collection == null ? void 0 : collection.EntryTitle) != null ? _d : "\u2014"}</dd>
2104
+ </div>
2105
+ <div>
2106
+ <dt><strong>Variables</strong></dt>
2107
+ <dd>${variables.map((v) => b`<div>${v}</div>`)}</dd>
2108
+ </div>
2109
+ <div>
2110
+ <dt><strong>Dimensions</strong></dt>
2111
+ <dd>
2112
+ ${Object.entries(this.selectedDimensionIndexes).length ? Object.entries(this.selectedDimensionIndexes).map(
2113
+ ([dimName, value]) => b`<div>
2114
+ <strong>${dimName}:</strong> ${value}
2115
+ </div>`
2116
+ ) : "\u2014"}
2117
+ </dd>
2118
+ </div>
2119
+ <div>
2120
+ <dt><strong>Date Range</strong></dt>
2121
+ <dd>${dateRange}</dd>
2122
+ </div>
2123
+ <div>
2124
+ <dt><strong>Spatial</strong></dt>
2125
+ <dd>${spatial}</dd>
2126
+ </div>
2127
+ </dl>
2128
+
2129
+ <terra-button @click=${__privateMethod(this, _refineParameters, refineParameters_fn)}
2130
+ >Refine Parameters</terra-button
2131
+ >
2132
+ `;
2133
+ };
2134
+ _cancelJob = new WeakSet();
2135
+ cancelJob_fn = async function() {
2136
+ if (!this.jobId) {
2137
+ return;
2138
+ }
2139
+ this.cancelingGetData = true;
2140
+ try {
2141
+ await __privateGet(this, _harmonyRequestController).cancelJob({
2142
+ jobId: this.jobId,
2143
+ options: { bearerToken: this.bearerToken }
2144
+ });
2145
+ } catch (e2) {
2146
+ this.cancelingGetData = false;
2147
+ }
2148
+ };
2149
+ _resumeJob = new WeakSet();
2150
+ resumeJob_fn = async function() {
2151
+ if (!this.jobId) {
2152
+ return;
2153
+ }
2154
+ this.resumingJob = true;
2155
+ try {
2156
+ await __privateGet(this, _harmonyRequestController).resumeJob({
2157
+ jobId: this.jobId,
2158
+ options: { bearerToken: this.bearerToken }
2159
+ });
2160
+ } catch (e2) {
2161
+ this.resumingJob = false;
2162
+ }
2163
+ };
2164
+ _canCancelJob = new WeakSet();
2165
+ canCancelJob_fn = function() {
2166
+ const status = __privateGet(this, _harmonyRequestController).status;
2167
+ return status === "running" /* RUNNING */ || status === "previewing" /* PREVIEWING */ || status === "paused" /* PAUSED */;
2168
+ };
2169
+ _renderJobActionButtons = new WeakSet();
2170
+ renderJobActionButtons_fn = function() {
2171
+ const status = __privateGet(this, _harmonyRequestController).status;
2172
+ return b`
2173
+ <div>
2174
+ ${status === "paused" /* PAUSED */ ? b`<button
2175
+ class="btn btn-primary"
2176
+ @click=${__privateMethod(this, _resumeJob, resumeJob_fn)}
2177
+ ?disabled=${this.resumingJob}
2178
+ >
2179
+ ${this.resumingJob ? "Resuming..." : "Resume"}
2180
+ </button>` : A}
2181
+ ${__privateMethod(this, _canCancelJob, canCancelJob_fn).call(this) ? b`<button
2182
+ class="btn btn-success"
2183
+ @click=${__privateMethod(this, _cancelJob, cancelJob_fn)}
2184
+ ?disabled=${this.cancelingGetData}
2185
+ >
2186
+ ${this.cancelingGetData ? "Canceling..." : "Cancel"}
2187
+ </button>` : A}
2188
+ </div>
2189
+ `;
2190
+ };
2191
+ _getData = new WeakSet();
2192
+ getData_fn = async function() {
2193
+ if (this.isSubmittingRequest) {
2194
+ return;
2195
+ }
2196
+ this.isSubmittingRequest = true;
2197
+ try {
2198
+ await __privateMethod(this, _submitDataRequest, submitDataRequest_fn).call(this);
2199
+ } finally {
2200
+ this.isSubmittingRequest = false;
2201
+ }
2202
+ };
2203
+ _submitDataRequest = new WeakSet();
2204
+ submitDataRequest_fn = async function() {
2205
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2206
+ this.harmonyRequestError = void 0;
2207
+ const validationError = __privateMethod(this, _getGiovanniValidationError, getGiovanniValidationError_fn).call(this);
2208
+ if (validationError) {
2209
+ this.validationError = validationError;
2210
+ __privateMethod(this, _markFieldTouched, markFieldTouched_fn).call(this, "variables");
2211
+ return;
2212
+ }
2213
+ this.validationError = void 0;
2214
+ this.cancelingGetData = false;
2215
+ __privateMethod(this, _touchAllFields, touchAllFields_fn).call(this);
2216
+ const variables = this.selectedFormat.isGiovanniFormat ? this.selectedVariables.map(
2217
+ (v) => {
2218
+ var _a2, _b2, _c2;
2219
+ return (
2220
+ // the Giovanni variable catalog uses different variable entry ids, we need to support them
2221
+ // ex. CMR: M2T1NXSLV_5.2.14 in Giovanni uses underscores: M2T1NXSLV_5_2_14
2222
+ convertVariableEntryIdToGiovanniFormat(
2223
+ (_a2 = this.collectionWithServices.shortName) != null ? _a2 : "",
2224
+ (_c2 = (_b2 = this.collectionWithServices.collection) == null ? void 0 : _b2.Version) != null ? _c2 : "",
2225
+ v.name
2226
+ )
2227
+ );
2228
+ }
2229
+ ) : this.selectedVariables.map((v) => v.conceptId);
2230
+ const harmonyRequest = new HarmonyRequest({
2231
+ collectionConceptId: this.collectionWithServices.conceptId,
2232
+ variables,
2233
+ location: this.spatialSelection,
2234
+ anonymous: !__privateGet(this, _authController).state.user
2235
+ });
2236
+ if (this.shapeGeoJson) {
2237
+ harmonyRequest.shape(this.shapeGeoJson);
2238
+ }
2239
+ if (this.selectedDateRange.startDate && this.selectedDateRange.endDate) {
2240
+ harmonyRequest.startDate(
2241
+ this.isSubDaily ? this.selectedDateRange.startDate : getUTCDate(this.selectedDateRange.startDate).toISOString()
2242
+ );
2243
+ harmonyRequest.endDate(
2244
+ this.isSubDaily ? this.selectedDateRange.endDate : getUTCDate(this.selectedDateRange.endDate).toISOString()
2245
+ );
2246
+ }
2247
+ if (this.selectedFormat) {
2248
+ harmonyRequest.format(
2249
+ this.selectedFormat.isGiovanniFormat ? "text/csv" : this.selectedFormat.key
2250
+ );
2251
+ }
2252
+ const isPointLocation = this.spatialSelection instanceof LatLng;
2253
+ if (this.selectedFormat.key === "text/csv" && !isPointLocation) {
2254
+ harmonyRequest.average("area");
2255
+ }
2256
+ if (this.selectedFormat.key === "image/tiff") {
2257
+ harmonyRequest.average("time");
2258
+ }
2259
+ if (Object.keys(this.selectedDimensionIndexes).length) {
2260
+ Object.entries(this.selectedDimensionIndexes).forEach(
2261
+ ([dimName, { start, end }]) => {
2262
+ harmonyRequest.dimension({
2263
+ name: dimName,
2264
+ min: start,
2265
+ max: end
2266
+ });
2267
+ }
2268
+ );
2269
+ }
2270
+ harmonyRequest.label("terra-data-subsetter");
2271
+ 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;
2272
+ const cwsVersion = (_f = (_e = this.collectionWithServices) == null ? void 0 : _e.collection) == null ? void 0 : _f.Version;
2273
+ const cwsEntryTitle = (_h = (_g = this.collectionWithServices) == null ? void 0 : _g.collection) == null ? void 0 : _h.EntryTitle;
2274
+ if (cwsShortName && cwsVersion) {
2275
+ harmonyRequest.label(
2276
+ `collection-entry-id: ${cwsShortName}_${cwsVersion}`.toLowerCase()
2277
+ );
2278
+ }
2279
+ if (cwsEntryTitle) {
2280
+ harmonyRequest.label(
2281
+ `collection-entry-title: ${cwsEntryTitle.toLowerCase()}`
2282
+ );
2283
+ }
2284
+ console.log("Creating Harmony job with request:", harmonyRequest.params);
2285
+ try {
2286
+ const job = await __privateGet(this, _harmonyRequestController).startJob({
2287
+ harmonyRequest,
2288
+ options: { bearerToken: this.bearerToken }
2289
+ });
2290
+ this.jobId = job.jobID;
2291
+ } catch (error) {
2292
+ this.harmonyRequestError = __privateMethod(this, _getHarmonyRequestErrorMessage, getHarmonyRequestErrorMessage_fn).call(this, error);
2293
+ this.refineParameters = false;
2294
+ return;
2295
+ }
2296
+ setTimeout(() => {
2297
+ const el = this.renderRoot.querySelector("#job-status-section");
2298
+ el == null ? void 0 : el.scrollIntoView({ behavior: "smooth" });
2299
+ }, 100);
2300
+ this.refineParameters = false;
2301
+ this.isHistoryView = false;
2302
+ };
2303
+ _touchAllFields = new WeakSet();
2304
+ touchAllFields_fn = function() {
2305
+ this.touchedFields = /* @__PURE__ */ new Set(["variables", "spatial"]);
2306
+ };
2307
+ _numberOfFilesFoundEstimate = new WeakSet();
2308
+ numberOfFilesFoundEstimate_fn = function() {
2309
+ var _a, _b, _c;
2310
+ return Math.floor(
2311
+ ((_b = (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.numInputGranules) != null ? _b : 0) * ((_c = __privateGet(this, _harmonyRequestController).progress) != null ? _c : 0) / 100
2312
+ );
2313
+ };
2314
+ _getDocumentationLinks = new WeakSet();
2315
+ getDocumentationLinks_fn = function() {
2316
+ var _a, _b;
2317
+ return ((_b = (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links) != null ? _b : []).filter(
2318
+ (link) => link.rel === "stac-catalog-json"
2319
+ );
2320
+ };
2321
+ _getDataLinks = new WeakSet();
2322
+ getDataLinks_fn = function() {
2323
+ var _a, _b;
2324
+ return ((_b = (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links) != null ? _b : []).filter(
2325
+ (link) => link.rel === "data"
2326
+ );
2327
+ };
2328
+ _hasAtLeastOneSubsetOption = new WeakSet();
2329
+ hasAtLeastOneSubsetOption_fn = function() {
2330
+ var _a, _b, _c, _d;
2331
+ 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);
2332
+ };
2333
+ _hasSpatialSubset = new WeakSet();
2334
+ hasSpatialSubset_fn = function() {
2335
+ var _a, _b;
2336
+ return ((_a = this.collectionWithServices) == null ? void 0 : _a.summary.subsetting.bbox) || ((_b = this.collectionWithServices) == null ? void 0 : _b.summary.subsetting.shape);
2337
+ };
2338
+ _renderPausedMessage = new WeakSet();
2339
+ renderPausedMessage_fn = function() {
2340
+ if (__privateGet(this, _harmonyRequestController).status !== "paused" /* PAUSED */ || this.resumingJob) {
2341
+ return A;
2342
+ }
2343
+ return b`
2344
+ <terra-alert open variant="warning" appearance="white">
2345
+ <p>
2346
+ This is a large request, so processing paused after the first few
2347
+ files so you can review the results.
2348
+ </p>
2349
+ <p>
2350
+ If everything looks correct, select
2351
+ <a
2352
+ href="#"
2353
+ class="action-link"
2354
+ @click=${(e2) => {
2355
+ e2.preventDefault();
2356
+ __privateMethod(this, _resumeJob, resumeJob_fn).call(this);
2357
+ }}
2358
+ >Resume</a
2359
+ >
2360
+ to continue. Otherwise, select
2361
+ <a
2362
+ href="#"
2363
+ class="action-link"
2364
+ @click=${(e2) => {
2365
+ e2.preventDefault();
2366
+ __privateMethod(this, _cancelJob, cancelJob_fn).call(this);
2367
+ }}
2368
+ >Cancel</a
2369
+ >
2370
+ and adjust your request.
2371
+ </p>
2372
+ <p>
2373
+ Large jobs may take some time to complete. You can leave this page
2374
+ and check progress later from the History tab in the bottom-right
2375
+ corner of the page.
2376
+ </p>
2377
+ </terra-alert>
2378
+ `;
2379
+ };
2380
+ _renderJobMessage = new WeakSet();
2381
+ renderJobMessage_fn = function() {
2382
+ var _a;
2383
+ const warningStatuses = [
2384
+ "canceled" /* CANCELED */,
2385
+ "complete_with_errors" /* COMPLETE_WITH_ERRORS */,
2386
+ "running_with_errors" /* RUNNING_WITH_ERRORS */
2387
+ ];
2388
+ const errorStatuses = ["failed" /* FAILED */];
2389
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.status) || __privateGet(this, _harmonyRequestController).status === "paused" /* PAUSED */) {
2390
+ return A;
2391
+ }
2392
+ let type = "normal";
2393
+ if (warningStatuses.includes(__privateGet(this, _harmonyRequestController).data.status)) {
2394
+ type = "warning";
2395
+ } else if (errorStatuses.includes(__privateGet(this, _harmonyRequestController).data.status)) {
2396
+ type = "error";
2397
+ }
2398
+ let color, bg;
2399
+ if (type === "error") {
2400
+ color = "#dc3545";
2401
+ bg = "#f8d7da";
2402
+ } else if (type === "warning") {
2403
+ color = "#856404";
2404
+ bg = "#fff3cd";
2405
+ } else {
2406
+ color = "#555";
2407
+ bg = "#f8f9fa";
2408
+ }
2409
+ return b`
2410
+ <div
2411
+ style="
2412
+ margin: 24px 0 16px 0;
2413
+ padding: 16px 20px;
2414
+ border-radius: 6px;
2415
+ background: ${bg};
2416
+ color: ${color};
2417
+ border: 1px solid ${color}22;
2418
+ "
2419
+ >
2420
+ ${__privateMethod(this, _getJobMessageText, getJobMessageText_fn).call(this)}
2421
+ </div>
2422
+ `;
2423
+ };
2424
+ _getJobMessageText = new WeakSet();
2425
+ getJobMessageText_fn = function() {
2426
+ var _a;
2427
+ return (_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.message.replace(
2428
+ /\b(The job|the job|job|Job)\b/g,
2429
+ (match) => {
2430
+ switch (match) {
2431
+ case "The job":
2432
+ return "Your request";
2433
+ case "the job":
2434
+ return "Your Request";
2435
+ case "job":
2436
+ return "request";
2437
+ case "Job":
2438
+ return "Request";
2439
+ }
2440
+ return match;
2441
+ }
2442
+ );
2443
+ };
2444
+ _estimateJobSize = new WeakSet();
2445
+ estimateJobSize_fn = function() {
2446
+ var _a, _b, _c, _d, _e;
2447
+ if (!((_a = this.collectionWithServices) == null ? void 0 : _a.granuleCount))
2448
+ return;
2449
+ const range = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
2450
+ let startDate;
2451
+ let endDate;
2452
+ let links = (_c = (_b = this.collectionWithServices) == null ? void 0 : _b.granuleCount) != null ? _c : 0;
2453
+ if (this.selectedDateRange.startDate && this.selectedDateRange.endDate) {
2454
+ startDate = this.selectedDateRange.startDate;
2455
+ endDate = this.selectedDateRange.endDate;
2456
+ } else {
2457
+ startDate = (_d = this.granuleMinDate) != null ? _d : range.startDate;
2458
+ endDate = (_e = this.granuleMaxDate) != null ? _e : range.endDate;
2459
+ }
2460
+ if (!startDate || !endDate)
2461
+ return;
2462
+ const start = new Date(startDate);
2463
+ const end = new Date(endDate);
2464
+ const days = Math.floor((end.getTime() - start.getTime()) / (1e3 * 60 * 60 * 24)) + 1;
2465
+ if (range.startDate && range.endDate) {
2466
+ const availableDaysInCollection = Math.floor(
2467
+ (new Date(range.endDate).getTime() - new Date(range.startDate).getTime()) / (1e3 * 60 * 60 * 24)
2468
+ ) + 1;
2469
+ const granulesPerDay = links / availableDaysInCollection;
2470
+ links = Math.ceil(days * granulesPerDay);
2471
+ }
2472
+ return { days, links };
2473
+ };
2474
+ _refineParameters = new WeakSet();
2475
+ refineParameters_fn = function() {
2476
+ this.refineParameters = true;
2477
+ };
2478
+ _backToSubsetOptions = new WeakSet();
2479
+ backToSubsetOptions_fn = function() {
2480
+ this.refineParameters = true;
2481
+ this.harmonyRequestError = void 0;
2482
+ setTimeout(() => {
2483
+ const container = this.renderRoot.querySelector(".container");
2484
+ container == null ? void 0 : container.scrollIntoView({ behavior: "smooth", block: "start" });
2485
+ }, 100);
2486
+ };
2487
+ _viewRunningJob = new WeakSet();
2488
+ viewRunningJob_fn = function() {
2489
+ this.refineParameters = false;
2490
+ setTimeout(() => {
2491
+ const el = this.renderRoot.querySelector("#job-status-section");
2492
+ el == null ? void 0 : el.scrollIntoView({ behavior: "smooth" });
2493
+ }, 100);
2494
+ };
2495
+ _handleDownloadSelect = new WeakSet();
2496
+ handleDownloadSelect_fn = function(event) {
2497
+ const item = event.detail.item;
2498
+ const value = item.value || item.getTextLabel();
2499
+ if (value === "file-list") {
2500
+ __privateMethod(this, _downloadLinksAsTxt, downloadLinksAsTxt_fn).call(this, event);
2501
+ } else if (value === "python-script") {
2502
+ __privateMethod(this, _downloadPythonScript, downloadPythonScript_fn).call(this, event);
2503
+ } else if (value === "earthdata-download") {
2504
+ __privateMethod(this, _downloadEarthdataDownload, downloadEarthdataDownload_fn).call(this, event);
2505
+ }
2506
+ };
2507
+ _downloadLinksAsTxt = new WeakSet();
2508
+ downloadLinksAsTxt_fn = function(event) {
2509
+ var _a;
2510
+ event.stopPropagation();
2511
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2512
+ return;
2513
+ }
2514
+ const dataLinks = __privateMethod(this, _getDataLinks, getDataLinks_fn).call(this);
2515
+ if (dataLinks.length === 0) {
2516
+ return;
2517
+ }
2518
+ const content = dataLinks.map((link) => link.href).join("\n");
2519
+ const blob = new Blob([content], { type: "text/plain" });
2520
+ const url = URL.createObjectURL(blob);
2521
+ const a = document.createElement("a");
2522
+ a.href = url;
2523
+ a.download = `subset_links_${__privateGet(this, _harmonyRequestController).jobId}.txt`;
2524
+ document.body.appendChild(a);
2525
+ a.click();
2526
+ document.body.removeChild(a);
2527
+ URL.revokeObjectURL(url);
2528
+ };
2529
+ _downloadPythonScript = new WeakSet();
2530
+ downloadPythonScript_fn = async function(event) {
2531
+ var _a, _b, _c, _d;
2532
+ event.stopPropagation();
2533
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2534
+ return;
2535
+ }
2536
+ const response = await fetch(
2537
+ getBasePath("assets/data-subsetter/download_subset_files.py.txt")
2538
+ );
2539
+ if (!response.ok) {
2540
+ alert(
2541
+ "Sorry, there was a problem generating the Python script. We are investigating the issue.\nYou could try using the Jupyter Notebook in the meantime"
2542
+ );
2543
+ }
2544
+ const content = (await response.text()).replace(/{{jobId}}/gi, (_b = __privateGet(this, _harmonyRequestController).jobId) != null ? _b : "").replace(
2545
+ /{{HARMONY_ENV}}/gi,
2546
+ `Environment.${(_c = this.environment) == null ? void 0 : _c.toUpperCase()}`
2547
+ ).replace(
2548
+ /{{EARTHACCESS_ENV}}/gi,
2549
+ `earthaccess.${(_d = this.environment) == null ? void 0 : _d.toUpperCase()}`
2550
+ );
2551
+ const blob = new Blob([content], { type: "text/plain" });
2552
+ const url = URL.createObjectURL(blob);
2553
+ const a = document.createElement("a");
2554
+ a.href = url;
2555
+ a.download = `download_subset_files_${__privateGet(this, _harmonyRequestController).jobId}.py`;
2556
+ document.body.appendChild(a);
2557
+ a.click();
2558
+ document.body.removeChild(a);
2559
+ URL.revokeObjectURL(url);
2560
+ };
2561
+ _downloadEarthdataDownload = new WeakSet();
2562
+ downloadEarthdataDownload_fn = async function(event) {
2563
+ var _a;
2564
+ event.stopPropagation();
2565
+ if (!((_a = __privateGet(this, _harmonyRequestController).data) == null ? void 0 : _a.links)) {
2566
+ return;
2567
+ }
2568
+ alert("Sorry, Earthdata Download is not currently supported");
2569
+ };
2570
+ _handleJupyterNotebookClick = new WeakSet();
2571
+ handleJupyterNotebookClick_fn = function() {
2572
+ const notebook = getNotebook(this);
2573
+ sendDataToJupyterNotebook("load-notebook", {
2574
+ filename: `subset_${__privateGet(this, _harmonyRequestController).jobId}.ipynb`,
2575
+ notebook,
2576
+ bearerToken: this.bearerToken
2577
+ });
2578
+ };
2579
+ _renderAvailableTemporalRangeSection = new WeakSet();
2580
+ renderAvailableTemporalRangeSection_fn = function() {
2581
+ const { startDate, endDate } = __privateMethod(this, _getCollectionDateRange, getCollectionDateRange_fn).call(this);
2582
+ if (!startDate || !endDate)
2583
+ return A;
2584
+ return b`
2585
+ <div class="section" style="margin-bottom: 16px;">
2586
+ <h2 class="section-title">Available Date Range</h2>
2587
+ <div style="color: #31708f; margin-top: 8px;">
2588
+ <strong>${startDate}</strong> to <strong>${endDate}</strong>
2589
+ </div>
2590
+ <div style="font-size: 0.95em; color: #666;">
2591
+ This collection does not support temporal subsetting.
2592
+ </div>
2593
+ </div>
2594
+ `;
2595
+ };
2596
+ _renderAvailableSpatialRangeSection = new WeakSet();
2597
+ renderAvailableSpatialRangeSection_fn = function() {
2598
+ var _a, _b, _c, _d, _e;
2599
+ 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;
2600
+ if (!boundingRects || !Array.isArray(boundingRects) || !boundingRects.length)
2601
+ return A;
2602
+ return b`
2603
+ <div class="section" style="margin-bottom: 16px;">
2604
+ <h2 class="section-title">Available Spatial Area</h2>
2605
+ <div style="color: #31708f; margin-top: 8px;">
2606
+ ${boundingRects.map(
2607
+ (rect) => b`<div>
2608
+ <strong>Bounding Box:</strong>
2609
+ ${rect.WestBoundingCoordinate},
2610
+ ${rect.SouthBoundingCoordinate},
2611
+ ${rect.EastBoundingCoordinate},
2612
+ ${rect.NorthBoundingCoordinate}
2613
+ </div>`
2614
+ )}
2615
+ </div>
2616
+ <div style="font-size: 0.95em; color: #666;">
2617
+ This collection does not support spatial subsetting.
2618
+ </div>
2619
+ </div>
2620
+ `;
2621
+ };
2622
+ _renderDataAccessModeSelection = new WeakSet();
2623
+ renderDataAccessModeSelection_fn = function() {
2624
+ if (!__privateGet(this, _collectionController).hasGranules) {
2625
+ return A;
2626
+ }
2627
+ return b`
2628
+ <div class="mode-selection">
2629
+ <div class="mode-options">
2630
+ <label
2631
+ class="mode-option ${this.dataAccessMode === "original" ? "selected" : ""}"
2632
+ >
2633
+ <input
2634
+ type="radio"
2635
+ name="data-access-mode"
2636
+ value="original"
2637
+ .checked=${this.dataAccessMode === "original"}
2638
+ @change=${() => this.dataAccessMode = "original"}
2639
+ />
2640
+ <div class="mode-content">
2641
+ <div class="mode-title">Get Original Files</div>
2642
+ <div class="mode-description">
2643
+ Filter file links directly from the archive.
2644
+ </div>
2645
+ </div>
2646
+ </label>
2647
+
2648
+ <label
2649
+ class="mode-option ${this.dataAccessMode === "subset" ? "selected" : ""}"
2650
+ >
2651
+ <input
2652
+ type="radio"
2653
+ name="data-access-mode"
2654
+ value="subset"
2655
+ .checked=${this.dataAccessMode === "subset"}
2656
+ @change=${() => this.dataAccessMode = "subset"}
2657
+ />
2658
+ <div class="mode-content">
2659
+ <div class="mode-title">Transform Data</div>
2660
+ <div class="mode-description">
2661
+ Transform the data to your specific needs.
2662
+ </div>
2663
+ </div>
2664
+ </label>
2665
+ </div>
2666
+ </div>
2667
+ `;
2668
+ };
2669
+ _getGiovanniValidationError = new WeakSet();
2670
+ getGiovanniValidationError_fn = function() {
2671
+ if (!this.selectedFormat.isGiovanniFormat) {
2672
+ return null;
2673
+ }
2674
+ if (this.selectedVariables.length === 0) {
2675
+ return "Please select a variable to subset.";
2676
+ }
2677
+ if (this.selectedVariables.length > 1) {
2678
+ return "The selected format only supports subsetting one variable at a time.";
2679
+ }
2680
+ return null;
2681
+ };
2682
+ _getHarmonyRequestErrorMessage = new WeakSet();
2683
+ getHarmonyRequestErrorMessage_fn = function(error) {
2684
+ var _a;
2685
+ if (error instanceof HttpException) {
2686
+ const sanitizedMessage = (_a = error.message) == null ? void 0 : _a.replace(/^Error:\s*/i, "").trim();
2687
+ if (sanitizedMessage == null ? void 0 : sanitizedMessage.toLowerCase().includes("no matching granules found")) {
2688
+ return "No matching granules were found for your subset request. Please try expanding your search";
2689
+ }
2690
+ if (sanitizedMessage) {
2691
+ return sanitizedMessage;
2692
+ }
2693
+ }
2694
+ return "Unable to create your subset request. Please try again.";
2695
+ };
2696
+ _renderHarmonyRequestError = new WeakSet();
2697
+ renderHarmonyRequestError_fn = function() {
2698
+ if (!this.harmonyRequestError) {
2699
+ return A;
2700
+ }
2701
+ const noGranulesMessage = "No matching granules were found for your subset request. Please try expanding your search";
2702
+ if (this.harmonyRequestError === noGranulesMessage) {
2703
+ return b`
2704
+ No matching granules were found for your subset request. Please try
2705
+ <a
2706
+ href="#"
2707
+ @click=${__privateGet(this, _handleExpandSearchClick)}
2708
+ style="color: inherit; text-decoration: underline; font-weight: 600;"
2709
+ >
2710
+ expanding your search
2711
+ </a>
2712
+ `;
2713
+ }
2714
+ return this.harmonyRequestError;
2715
+ };
2716
+ _handleExpandSearchClick = new WeakMap();
2717
+ TerraDataSubsetter.styles = [component_styles_default, data_subsetter_styles_default];
2718
+ TerraDataSubsetter.dependencies = {
2719
+ "terra-accordion": TerraAccordion,
2720
+ "terra-date-picker": TerraDatePicker,
2721
+ "terra-icon": TerraIcon,
2722
+ "terra-input": TerraInput,
2723
+ "terra-spatial-picker": TerraSpatialPicker,
2724
+ "terra-login": TerraLogin,
2725
+ "terra-loader": TerraLoader,
2726
+ "terra-data-access": TerraDataAccess,
2727
+ "terra-dialog": TerraDialog,
2728
+ "terra-dropdown": TerraDropdown,
2729
+ "terra-menu": TerraMenu,
2730
+ "terra-menu-item": TerraMenuItem,
2731
+ "terra-button": TerraButton,
2732
+ "terra-alert": TerraAlert,
2733
+ "terra-slider": TerraSlider
2734
+ };
2735
+ __decorateClass([
2736
+ n({
2737
+ reflect: true,
2738
+ attribute: "collection-entry-id",
2739
+ converter: undefinedStringConverter
2740
+ })
2741
+ ], TerraDataSubsetter.prototype, "collectionEntryId", 2);
2742
+ __decorateClass([
2743
+ n({
2744
+ reflect: true,
2745
+ attribute: "short-name",
2746
+ converter: undefinedStringConverter
2747
+ })
2748
+ ], TerraDataSubsetter.prototype, "shortName", 2);
2749
+ __decorateClass([
2750
+ n({
2751
+ reflect: true,
2752
+ attribute: "version",
2753
+ converter: undefinedStringConverter
2754
+ })
2755
+ ], TerraDataSubsetter.prototype, "version", 2);
2756
+ __decorateClass([
2757
+ n({
2758
+ reflect: true,
2759
+ type: Boolean,
2760
+ attribute: "show-collection-search"
2761
+ })
2762
+ ], TerraDataSubsetter.prototype, "showCollectionSearch", 2);
2763
+ __decorateClass([
2764
+ n({
2765
+ reflect: true,
2766
+ type: Boolean,
2767
+ attribute: "read-constraints-from-url"
2768
+ })
2769
+ ], TerraDataSubsetter.prototype, "readConstraintsFromUrl", 2);
2770
+ __decorateClass([
2771
+ n({ reflect: true, type: Boolean, attribute: "show-history-panel" })
2772
+ ], TerraDataSubsetter.prototype, "showHistoryPanel", 2);
2773
+ __decorateClass([
2774
+ n({ reflect: true, attribute: "job-id" })
2775
+ ], TerraDataSubsetter.prototype, "jobId", 2);
2776
+ __decorateClass([
2777
+ n({
2778
+ attribute: "bearer-token",
2779
+ converter: undefinedStringConverter
2780
+ })
2781
+ ], TerraDataSubsetter.prototype, "bearerToken", 2);
2782
+ __decorateClass([
2783
+ n({ attribute: false })
2784
+ ], TerraDataSubsetter.prototype, "onLoginClick", 2);
2785
+ __decorateClass([
2786
+ n()
2787
+ ], TerraDataSubsetter.prototype, "features", 2);
2788
+ __decorateClass([
2789
+ n({ reflect: true })
2790
+ ], TerraDataSubsetter.prototype, "dialog", 2);
2791
+ __decorateClass([
2792
+ n({ reflect: true, type: Boolean, attribute: "is-history-view" })
2793
+ ], TerraDataSubsetter.prototype, "isHistoryView", 2);
2794
+ __decorateClass([
2795
+ r()
2796
+ ], TerraDataSubsetter.prototype, "collectionWithServices", 2);
2797
+ __decorateClass([
2798
+ r()
2799
+ ], TerraDataSubsetter.prototype, "selectedVariables", 2);
2800
+ __decorateClass([
2801
+ r()
2802
+ ], TerraDataSubsetter.prototype, "selectedDimensionIndexes", 2);
2803
+ __decorateClass([
2804
+ r()
2805
+ ], TerraDataSubsetter.prototype, "expandedVariableGroups", 2);
2806
+ __decorateClass([
2807
+ r()
2808
+ ], TerraDataSubsetter.prototype, "variableFilterText", 2);
2809
+ __decorateClass([
2810
+ r()
2811
+ ], TerraDataSubsetter.prototype, "touchedFields", 2);
2812
+ __decorateClass([
2813
+ r()
2814
+ ], TerraDataSubsetter.prototype, "spatialSelection", 2);
2815
+ __decorateClass([
2816
+ r()
2817
+ ], TerraDataSubsetter.prototype, "shapeGeoJson", 2);
2818
+ __decorateClass([
2819
+ r()
2820
+ ], TerraDataSubsetter.prototype, "spatialLabel", 2);
2821
+ __decorateClass([
2822
+ r()
2823
+ ], TerraDataSubsetter.prototype, "selectedDateRange", 2);
2824
+ __decorateClass([
2825
+ r()
2826
+ ], TerraDataSubsetter.prototype, "selectedFormat", 2);
2827
+ __decorateClass([
2828
+ r()
2829
+ ], TerraDataSubsetter.prototype, "cancelingGetData", 2);
2830
+ __decorateClass([
2831
+ r()
2832
+ ], TerraDataSubsetter.prototype, "resumingJob", 2);
2833
+ __decorateClass([
2834
+ r()
2835
+ ], TerraDataSubsetter.prototype, "isSubmittingRequest", 2);
2836
+ __decorateClass([
2837
+ r()
2838
+ ], TerraDataSubsetter.prototype, "selectedTab", 2);
2839
+ __decorateClass([
2840
+ r()
2841
+ ], TerraDataSubsetter.prototype, "refineParameters", 2);
2842
+ __decorateClass([
2843
+ r()
2844
+ ], TerraDataSubsetter.prototype, "collectionSearchType", 2);
2845
+ __decorateClass([
2846
+ r()
2847
+ ], TerraDataSubsetter.prototype, "collectionSearchQuery", 2);
2848
+ __decorateClass([
2849
+ r()
2850
+ ], TerraDataSubsetter.prototype, "collectionSearchLoading", 2);
2851
+ __decorateClass([
2852
+ r()
2853
+ ], TerraDataSubsetter.prototype, "collectionSearchResults", 2);
2854
+ __decorateClass([
2855
+ r()
2856
+ ], TerraDataSubsetter.prototype, "collectionLoading", 2);
2857
+ __decorateClass([
2858
+ r()
2859
+ ], TerraDataSubsetter.prototype, "collectionAccordionOpen", 2);
2860
+ __decorateClass([
2861
+ r()
2862
+ ], TerraDataSubsetter.prototype, "dataAccessMode", 2);
2863
+ __decorateClass([
2864
+ r()
2865
+ ], TerraDataSubsetter.prototype, "validationError", 2);
2866
+ __decorateClass([
2867
+ r()
2868
+ ], TerraDataSubsetter.prototype, "harmonyRequestError", 2);
2869
+ __decorateClass([
2870
+ r()
2871
+ ], TerraDataSubsetter.prototype, "granuleMinDate", 2);
2872
+ __decorateClass([
2873
+ r()
2874
+ ], TerraDataSubsetter.prototype, "granuleMaxDate", 2);
2875
+ __decorateClass([
2876
+ r()
2877
+ ], TerraDataSubsetter.prototype, "giovanniConfiguredVariables", 2);
2878
+ __decorateClass([
2879
+ e('[part~="spatial-picker"]')
2880
+ ], TerraDataSubsetter.prototype, "spatialPicker", 2);
2881
+ __decorateClass([
2882
+ e("terra-dialog")
2883
+ ], TerraDataSubsetter.prototype, "dialogElement", 2);
2884
+ __decorateClass([
2885
+ watch(["jobId"], { waitUntilFirstUpdate: true })
2886
+ ], TerraDataSubsetter.prototype, "jobIdChanged", 1);
2887
+ __decorateClass([
2888
+ watch(["shortName", "version"])
2889
+ ], TerraDataSubsetter.prototype, "shortNameAndVersionChanged", 1);
2890
+ __decorateClass([
2891
+ watch("collectionEntryId", { waitUntilFirstUpdate: true })
2892
+ ], TerraDataSubsetter.prototype, "collectionEntryIdChanged", 1);
2893
+ __decorateClass([
2894
+ watch("readConstraintsFromUrl")
2895
+ ], TerraDataSubsetter.prototype, "readConstraintsFromUrlChanged", 1);
2896
+ __decorateClass([
2897
+ watch(["collectionWithServices"])
2898
+ ], TerraDataSubsetter.prototype, "collectionChanged", 1);
2899
+ __decorateClass([
2900
+ watch(["granuleMinDate", "granuleMaxDate"])
2901
+ ], TerraDataSubsetter.prototype, "granuleDatesChanged", 1);
2902
+ __decorateClass([
2903
+ watch("selectedFormat")
2904
+ ], TerraDataSubsetter.prototype, "selectedFormatChanged", 1);
2905
+ __decorateClass([
2906
+ debounce(500)
2907
+ ], TerraDataSubsetter.prototype, "handleCollectionSearch", 1);
2908
+
2909
+ export {
2910
+ TerraDataSubsetter
2911
+ };