PageSourceSearch

https://www.socib.es/_nuxt/HFRadarReports.d6cc5130.js

js socib.es collected 2026-09-24 09:43:28 UTC 2,535 bytes, 1 lines download raw bytes

1import{c as C,v as D,S as E}from"./bootstrap-vue-next.0f20d058.js";import{r as i,v as r,k as $,l as H,D as O,o as f,e as _,g as c,j as l,f as s,h as b,i as k,t as F,a1 as S}from"./entry.bde9e731.js";const U={class:"container"},I={key:0,class:"col-12 offset-2 col-lg-8"},L={key:1,class:"text-center"},N={key:2},x={class:"d-flex align-items-center justify-content-center mb-3"},A={class:"text-body-2"},K={class:"input-group align-items-end"},T={class:"mb-3"},q={name:"HFRadarReports"},P=Object.assign(q,{setup(z){const v=i(!0),h=i(!1),t=i(null),a=i(null),u=i(null),w=r(()=>t.value?new Date(t.value.firstMonth):null),R=r(()=>t.value?new Date(t.value.lastMonth):null),M=r(()=>t.value?w.value.getFullYear():null),d=r(()=>t.value?R.value.getFullYear():null),Y=r(()=>{if(!t.value)return[];const e=d.value-M.value+1;return Array.from({length:e},(n,p)=>d.value-p)}),V=r(()=>{if(!t.value)return[];let e=12,o=1,n=12;return parseInt(a.value)===M.value&&(o=w.value.getMonth()+1,e=13-o),parseInt(a.value)===d.value&&(n=R.value.getMonth()+1,e=n),Array.from({length:e},(m,g)=>n-g)}),j=r(()=>t.value?`https://www.socib.es/files/reports/HF_Radar/SOCIB_HFRadar_Report${a.value}${u.value.toString().padStart(2,"0")}.pdf`:null);$(t,()=>{a.value=d.value}),$(a,()=>{u.value=V.value[0]});const B=()=>{v.value=!0,h.value=!1,$fetch("https://www.socib.es/files/reports/HF_Radar/coverage.json").then(e=>{t.value=e,v.value=!1}).catch(e=>{h.value=!0,v.value=!1,console.error("Error:",e)})};return H(()=>{B()}),(e,o)=>{const n=C,p=D,m=O("FormKit"),g=E;return f(),_("div",null,[c("div",U,[l(h)?(f(),_("div",I,[s(n,{"model-value":!0,variant:"danger",dismissible:!1},{default:b(()=>[k(F(e.$t("error_api")),1)]),_:1})])):l(v)?(f(),_("div",L,[s(p,{variant:"primary",type:"grow",class:"m-5",style:{width:"6rem",height:"6rem"}})])):(f(),_("div",N,[c("div",x,[c("div",A,[s(m,{id:"radar-report-select-form",type:"form",actions:!1},{default:b(()=>[c("div",K,[s(m,{modelValue:l(a),"onUpdate:modelValue":o[0]||(o[0]=y=>S(a)?a.value=y:null),type:"select",label:e.$t("year"),name:"report_year",options:l(Y),"outer-class":"me-3"},null,8,["modelValue","label","options"]),s(m,{modelValue:l(u),"onUpdate:modelValue":o[1]||(o[1]=y=>S(u)?u.value=y:null),type:"select",label:e.$t("month"),name:"report_month",options:l(V),"outer-class":"me-3"},null,8,["modelValue","label","options"]),c("div",T,[s(g,{variant:"primary",title:e.$t("download"),href:l(j),target:"_blank"},{default:b(()=>[k(F(e.$t("download")),1)]),_:1},8,["title","href"])])])]),_:1})])])]))])])}}});export{P as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.