1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./20260930_14-B_ko5wqa.css","./20260930_14-BgiBupdt.css","./20260930_14-BvwJrrHe.css","./20260930_14-DQEmjg1v.css","./20260930_14-COaOXBrK.css","./20260930_14-PvDC2Ygz.css","./20260930_14-CN69qnFi.css"])))=>i.map(i=>d[i]); 2import{a0 as Be,a5 as Oe,t as Ie,w as Me,d as n,e as o,q as _,i as m,u as x,v as Ne,_ as e,p as l,n as b,g as h,k as g,y as V,j as u,F as L,m as R,aa as ft,ab as gt,ac as je,ad as vt,X as De,c as y,ae as Pe,af as Re,a9 as fe,ag as ht,a4 as Ue,a1 as yt,Z as xt,ah as bt,ai as kt,aj as At,ak as wt,al as _e,am as me,an as Et,ao as $t,a as St,o as Lt,ap as Rt,aq as Ct,a7 as Tt,ar as Bt,A as Ot,as as It,at as Mt,z as Nt,au as jt,av as Ce,aw as pe,ax as Dt,ay as Pt,az as te,aA as ne,aB as Ut,r as Vt,aC as zt,aD as Te,aE as Ft,aF as Ht}from"./20260930_14-BVvFGJkH.js";import{_ as qt}from"./20260930_14-DopyF2Hc.js";import{_ as Wt,a as Gt,b as Yt}from"./20260930_14-DI-bYR4v.js";import{_ as Kt,a as Xt,b as Jt,c as Zt}from"./20260930_14-AkAYEp5z.js";import{_ as Qt}from"./20260930_14-y41_9HQS.js";import{_ as ge}from"./20260930_14-aL1FxING.js";import{_ as ve}from"./20260930_14-CtKvAEDl.js";import{_ as en}from"./20260930_14-e_Mqc9bs.js";import{_ as tn}from"./20260930_14-DuiYR3oF.js";import{P as nn}from"./20260930_14-Cutj7HmP.js";import{d as sn,i as an,t as ee,a as ln,b as on,c as rn}from"./20260930_14-Cypy-HtS.js";import{u as cn}from"./20260930_14-DOwDmomN.js";import{_ as un}from"./20260930_14-CSRLdCNT.js";import{_ as dn}from"./20260930_14-DVFsmmNj.js";import{i as _n}from"./20260930_14-BKcrBE5j.js";import{u as mn}from"./20260930_14-CuEnKZ12.js";import{u as pn}from"./20260930_14-B-bo8h7B.js";import{u as fn}from"./20260930_14-42qqYCj8.js";import{u as gn}from"./20260930_14-CFMwcwxK.js";import{u as vn}from"./20260930_14-e22XkS4E.js";import{u as hn}from"./20260930_14-vzX_wNw7.js";import{u as yn}from"./20260930_14-CT3Sb117.js";import{w as xn}from"./20260930_14-DYVFZWME.js";import"./20260930_14-BfTtgUGv.js";import"./20260930_14-C7euQjo6.js";import"./20260930_14-nnVtvgWz.js";/* empty css */import"./20260930_14-B2iE5BfF.js";import"./20260930_14-Br9Onojv.js";import"./20260930_14-Xf0mPxRw.js";import"./20260930_14-Dcq7gNVr.js";/* empty css */import"./20260930_14-Bd6qbkE0.js";const bn={class:"w-full h-full"},kn={key:0,class:"block ml-4 my-2 font-ubuntu text-[16px] font-medium text-gray"},An={key:0,class:"pt-calendar__header"},wn={class:"pt-calendar__header--paginator"},En=["textContent"],$n=["textContent"],Sn={class:"flex justify-between"},Ln=["textContent"],Rn={key:1},Cn={key:0,class:"flex align-middle content-center"},Tn={key:0,class:"font-sans text-sm font-semibold text-gray"},Bn={class:"pt-calendar__content"},On={key:2},In={key:3},Mn={key:0,class:"pt-calendar__detail"},Nn={key:1,class:"mt-1 text-gray font-semibold text-sm"},jn={key:2,class:"flex space-x-1 text-sm text-gray mt-1"},Dn={key:1,class:"flex flex-col items-center justify-center text-center space-y-4"},Pn={class:"font-ubuntu font-medium text-lg"},Un={key:4},Vn={class:"flex flex-col"},zn={class:"pt-calendar__image"},Fn={class:"absolute top-1 left-1"},Hn={class:"pt-calendar__upcoming-content"},qn={key:0,class:"pt-calendar__absctract mt-3"},Wn={key:1,class:"pt-calendar__divider"},Gn=["textContent"],Yn={__name:"WidgetsCalendar",props:{list:{type:Array,default:()=>[]},title:{type:String,default:""},titleBanner:{type:String,default:""},link:{type:Object,default:()=>({})},dense:{type:Boolean,default:!1},paginator:{type:Boolean,default:!1},showTypeEvent:{type:Boolean,default:!1},showLocation:{type:Boolean,default:!1},theme:{type:String,default:"light",validator:a=>["dark","light","ghost","transparent"].includes(a)},enabledEmptyMessage:{type:Boolean,default:!1},type:{type:String,default:"schedulerList",validator:a=>["schedulerList","calendarList","sessionList","noDate","upcomingList"].includes(a)},loading:{type:Boolean,default:!1}},setup(a){const{t:p}=Be(),E=Oe(),O=cn(),I=a,z=De({indexEvents:0,maxEvents:5,paginatorState:{next:!1,previous:!1}}),{indexEvents:f,maxEvents:M,paginatorState:C}=Ie(z),N=y(()=>I.list.slice(f.value,f.value+M.value)),se=y(()=>{const i=E.query.sector,w=E.query.subsector;return i?`${p("formation.courses.calendar.emptySector",{value:`${p("formation.courses.calendar.sector")} ${Re(i.replace(/-/g," "))}`})}`:w?`${p("formation.courses.calendar.emptySector",{value:`${p("formation.courses.calendar.subsector")} ${Re(w.replace(/-/g," "))}`})}`:p("formation.courses.calendar.empty")});Me(()=>f.value,()=>{f.value>0&&f.value+M.value<I.list.length?(C.value.next=!0,C.value.previous=!0):f.value===0?(C.value.next=!0,C.value.previous=!1):f.value+M.value>=I.list.length&&(C.value.previous=!0,C.value.next=!1)});const F=i=>{try{return i.article?`${i.article.category.section}/${i.article.slug}`:i?`${Pe}/${i.slug||i.event.slug}`:""}catch{return""}},G=i=>{i==="+"&&f.value+M.value<I.list.length?f.value+=M.value:i==="-"&&f.value>0&&(f.value-=M.value)},ae=i=>{i.preventDefault();const w=[i.target.textContent.toLowerCase(),i.target.innerHTML.toLowerCase(),i.target.outerText.toLowerCase()];O.setFilter(w),O.setFilterAttribute(void 0),fe(ht)},Y=i=>{if(!i)return[];const T=(Array.isArray(i)?[...i]:[i]).map($=>
2String($||"").toLowerCase()).filter(Boolean);return T.includes("hybrid")?[...new Set([...T.filter($=>$!=="hybrid"),"webinar","onsite"])]:T};return(i,w)=>{const T=ge,$=ve,v=en,le=tn,K=je,X=nn;return n(),o("div",bn,[a.titleBanner?(n(),o("h2",kn,_(a.titleBanner),1)):m("",!0),x(l("article",{class:b(["pt-calendar",`pt-calendar-${a.theme} pt-calendar__${a.type}`])},[a.type!=="calendarList"&&a.paginator&&a.list.length>e(M)?(n(),o("div",An,[l("div",wn,[l("span",{class:b(["paginator__previous",{active:e(C).previous}]),onClick:w[0]||(w[0]=t=>G("-")),textContent:_(`< ${e(p)("formation.courses.calendar.actions.previous")}`)},null,10,En),l("span",{class:b(["paginator__next",{active:e(C).next}]),onClick:w[1]||(w[1]=t=>G("+")),textContent:_(`${e(p)("formation.courses.calendar.actions.next")} >`)},null,10,$n)])])):m("",!0),l("div",Sn,[a.title?(n(),o("h2",{key:0,class:"flex-auto mb-6 font-ubuntu text-2xl font-medium text-gray",textContent:_(a.title)},null,8,Ln)):m("",!0),a.link?.url?(n(),h($,{key:1,class:"link flex-1 justify-end mb-5",to:a.link.url},{default:g(()=>[V(_(a.link.label||(e(N).length?e(p)("ui.label.showOurCalendar"):e(p)("ui.label.showMoreEvents")))+" ",1),u(T,{name:"pt-arrow-right",class:"pt-events-menu__icon-see-more"})]),_:1},8,["to"])):m("",!0)]),a.type==="sessionList"?(n(),o("ul",Rn,[(n(!0),o(L,null,R(e(N),t=>(n(),o("li",{key:t.slug,class:b({"pt-calendar__dense":a.dense})},[t.lectures?(n(),o("div",Cn,[u(v,{"label-type":"gray",items:e(sn)(t.date)},null,8,["items"]),t.lectures.length>0&&t.lectures[0].event_time&&t.lectures[t.lectures.length-1].event_time&&e(an)(t.date)?(n(),o("span",Tn,_(e(ee)(t.lectures[0].event_time)+" - "+e(ee)(t.lectures[t.lectures.length-1].event_time)),1)):m("",!0)])):m("",!0),l("div",Bn,[l("h2",{class:b(["pt-calendar__description",`pt-calendar-${a.theme}__description`])},_(t.title),3)])],2))),128))])):a.type==="noDate"?(n(),o("ul",On,[l("li",{class:b({"pt-calendar__dense":a.dense})},[u(v,{"label-type":"text-gray",items:e(p)("formation.detail.session_onlinecourse_duration")},null,8,["items"])],2)])):a.type==="schedulerList"||a.type==="calendarList"?(n(),o("ul",In,[e(N).length?(n(!0),o(L,{key:0},R(e(N),(t,d)=>(n(),o("li",{key:d,class:b([{"pt-calendar__dense":a.dense},{"pt-calendar__border":d!==e(N).length-1}])},[a.type==="schedulerList"?(n(),o("div",{key:0,class:b(["bg-white flex flex-col relative overflow-hidden rounded",a.dense?"h-[60px] w-[60px]":"h-[90px] w-[90px]"])},[l("span",{class:b(["text-white text-xs flex justify-center items-center font-bold uppercase bg-red",a.dense?"h-[15px]":"h-[20px]"])},_(e(ln)(t.event_date||t.item.event_date)),3),l("span",{class:b(["text-gray-dark flex justify-center items-center font-bold",a.dense?"h-[20px] text-2xl mt-1":"text-4xl mt-auto"])},_(e(on)(t.event_date||t.item.event_date)),3),l("span",{class:b(["text-gray-dark flex justify-center items-center font-semibold mt-auto",a.dense?"text-xs":"text-base"])},_(t.min_session_time||e(rn)(t.event_date||t.item.event_date))+" h ",3)],2)):m("",!0),l("div",{class:b([{"p-4":a.type==="calendarList"},"pt-calendar__content"])},[t.event?.event_features?.event_format?(n(),o("div",Mn,[(n(!0),o(L,null,R(Y(t.event.event_features.event_format),(j,J)=>(n(),h(v,{key:`${j}_${J}`,items:e(ft)(e(gt)[j]),"label-type":"gray"},null,8,["items"]))),128))])):m("",!0),l("h3",{class:b(["pt-calendar__description",`pt-calendar-${a.theme}__description`])},[u($,{to:F(t)},{default:g(()=>[V(_(t.title||t.item.title),1)]),_:2},1032,["to"])],2),a.type==="calendarList"&&t.list_of_sessions[0].lectures?.length?(n(),o("div",Nn,_(e(ee)(t.list_of_sessions[0].lectures[0].event_time)+" - "+e(ee)(t.list_of_sessions[0].lectures[t.list_of_sessions[0].lectures.length-1].event_time)),1)):m("",!0),t.event?.campus&&a.showLocation?(n(),o("div",jn,[u(T,{name:"pt-map-marker",class:"text-lg"}),l("span",null,_(t.event.campus.name),1)])):m("",!0)],2)],2))),128)):!a.loading&&a.enabledEmptyMessage?(n(),o("div",Dn,[u(T,{class:"text-[33px] text-blue",name:"pt-calendar-slash"}),l("span",Pn,_(e(se)),1)])):m("",!0)])):(n(),o("ul",Un,[(n(!0),o(L,null,R(e(N),(t,d)=>(n(),o("li",{key:d},[l("div",Vn,[l("div",zn,[l("div",Fn,[t.event_date||t&&t.item?(n(),h(le,{key:0,dense:"",date:t.session.date||t.event_date||t.item.event_date,hour:t.session.time||t.session.min_session_time||t.event_date||t.item.event_date},null,8,["date","hour"])):m("",!0)]),u($,{to:F(t)},{default:g(()=>[(n(),h(K,{key:e(f)+d,loading:"lazy",src:t.main_image?.url,alt:t.title},null,8,["src","alt"]))]),_:2},1032,["to"])]),t.event_features.price&&t.event_features.price!==0?(n(),h(X,{key:0,class:"mt-3",icon:"",theme:"orange",price:t.event_features.price,discount:t.event_features.discount,currency:t.event_features.currency},null,8,["price","discount","currency"])):m("",!0)]),l("div",Hn,[l("div",{class:b(["pt-calendar__description",`pt-calendar-${a.theme}__description`])},[a.showTypeEvent&&t.event_features?.event_format?(n(),h(v,{key:0,"label-type":"gray",items:e(vt)(e(p)(`strapiDataMap.${t.event_features.event_format}`))},null,8,["items"])):m("",!0),u($,{to:F(t)},{default:g(()=>
2[V(_(t.title||t.item.title),1)]),_:2},1032,["to"])],2),t.abstract?(n(),o("p",qn,[u($,{to:F(t)},{default:g(()=>[V(_(t.abstract),1)]),_:2},1032,["to"])])):m("",!0),t.tags?.length?(n(),o("div",Wn,[(n(!0),o(L,null,R(t.tags,j=>(n(),o("span",{key:j.slug,class:"pt-calendar__label",onClick:ae,textContent:_(j.label)},null,8,Gn))),128))])):m("",!0)])]))),128))]))],2),[[Ne,e(N).length]])])}}},Kn={},Xn={class:"w-full flex animate-pulse"};function Jn(a,p){return n(),o("div",Xn,[...p[0]||(p[0]=[yt('<div class="h-[60px] min-w-[51px] bg-gray-soft rounded"><div class="w-full h-4 bg-gray rounded-t"></div></div><div class="ml-3 w-full"><div class="h-5 w-16 bg-gray rounded"></div><div class="h-3 bg-gray rounded-full my-2 w-full"></div><div class="h-3 bg-gray rounded-full w-2/3"></div></div>',2)])])}const Zn=Object.assign(Ue(Kn,[["render",Jn]]),{__name:"SkeletonCalendar"}),Qn={class:"py-16 lg:py-24 bg-gradient-to-br from-blue-very-light to-orange-very-light relative overflow-hidden"},es={class:"container mx-auto px-4 sm:px-6 lg:px-8 relative"},ts={class:"text-center mb-12 sm:mb-16"},ns={class:"text-lg sm:text-xl text-gray-dark leading-relaxed max-w-4xl mx-auto px-4 sm:px-0"},ss={class:"flex flex-col sm:flex-row gap-4 sm:gap-6 justify-center items-center px-4 sm:px-0"},as={class:"relative z-10"},ls=xt({__name:"index",props:{title:{default:"Mi Asesor"},buttonText:{default:"Descubre Mi Asesor"},buttonLink:{default:bt},description:{default:"Conecta con expertos especializados, optimiza la gestión de tu explotación y lleva tu negocio agrÃcola al siguiente nivel con tecnologÃa de vanguardia."}},setup(a){return(p,E)=>{const O=dn,I=ve;return n(),o("section",Qn,[E[0]||(E[0]=l("div",{class:"absolute inset-0 pointer-events-none"},[l("div",{class:"absolute top-10 left-10 w-32 h-32 bg-blue/10 rounded-full blur-xl"}),l("div",{class:"absolute bottom-10 right-10 w-40 h-40 bg-orange/10 rounded-full blur-xl"}),l("div",{class:"absolute top-1/2 left-1/3 w-24 h-24 bg-green/10 rounded-full blur-lg"})],-1)),l("div",es,[l("div",ts,[u(O,{content:a.title,class:"[&_*]:text-4xl md:[&_*]:text-5xl lg:[&_*]:text-6xl mb-6"},null,8,["content"]),l("p",ns,_(a.description),1)]),l("div",ss,[u(I,{to:a.buttonLink,class:"btn-primary group relative inline-flex items-center justify-center w-full sm:w-auto px-6 sm:px-8 py-3 sm:py-4 text-base sm:text-lg font-ubuntu font-bold text-white rounded-xl shadow-pt hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1 focus:outline-none focus:ring-4 focus:ring-green/30"},{default:g(()=>[l("span",as,_(a.buttonText),1)]),_:1},8,["to"])])])])}}}),os=Object.assign(ls,{__name:"BannersMiAsesor"}),rs=te(()=>ne(()=>import("./20260930_14-Dt8RJmhY.js"),__vite__mapDeps([0,1,2,3]),import.meta.url).then(a=>a.default||a)),is=te(()=>ne(()=>import("./20260930_14-hsckmj0G.js"),__vite__mapDeps([0,4]),import.meta.url).then(a=>a.default||a)),cs=te(()=>ne(()=>import("./20260930_14-Cp9dgVzO.js"),__vite__mapDeps([0,1,5]),import.meta.url).then(a=>a.default||a)),us=te(()=>ne(()=>import("./20260930_14-uT7JjZDV.js"),__vite__mapDeps([0,6]),import.meta.url).then(a=>a.default||a)),ds={class:"flex flex-col pt-5 divide-y divide-gray-soft"},_s={key:1,class:"flex w-full justify-center"},ms={class:"relative lg:ml-16"},ps={class:"bg-orange-very-light flex flex-col p-2.5 lg:p-4 min-h-40 h-full border-white"},fs=["textContent"],gs={key:0,class:"flex mb-4"},vs={class:"pt-last-market-comment-img"},hs={class:"pl-4"},ys={class:"px-5 pt-5 animate-pulse"},xs={key:1,class:"px-2.5 pt-5 pb-2.5 lg:pt-8 lg:pb-5 lg:px-5 border-t-4 border-white"},bs=["textContent"],ks={class:"px-2.5 pt-5 pb-2.5 lg:py-5 lg:px-5 border-y-4 border-white bg-white-dark"},As={class:"flex justify-between"},ws=["textContent"],Es={class:"flex justify-between flex-wrap items-center -m-2.5 pb-10"},$s=["textContent"],Ss={class:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-x-10 gap-y-10"},Ls={class:"overflow-hidden select-none"},Rs={__name:"index",async setup(a){let p,E;const O=Oe(),I=kt(),z=At(),{t:f}=Be(),{md:M}=mn(),{gtmAdsClick:C}=pn(),{trackAdsClicked:N,trackHomeLayoutRendered:se}=fn(),{createHeadSeo:F}=gn(),{getVideos:G}=vn(),{getEventsFilter:ae}=hn(),Y=wt("homeBannerTierraTv"),{getAuth:i,filtersBySector:w,filtersByRoute:T,getArticlesFilter:$}=yn(),v=De({filteredStep:6,filteredLimit:8,filteredShowed:8,unFilteredShowed:6,unFilteredLimit:16,filteredButton:!0}),le=Ut({books:[],sectorAgenda:[],sectorArticles:[]}),{books:K,sectorAgenda:X,sectorArticles:t}=Ie(le),{data:d}=([p,E]=_e(()=>jt(()=>z.getHome(),"$RcJmAH4yb5")),p=await p,E(),p),[{data:j},{data:J}]=([p,E]=_e(()=>Promise.all([me(()=>z.getLastReports(1),"$vRSuLDu0bD"),me(()=>z.getProjectsByCenters("palmerillas"),"$GeN_a8aLyn")])),p=await p,E(),p),{data:Ve,execute:ze}=me(()=>G({limit:3,sort:["published_date:desc"]}),{server:!1,immediate:!1,transform:({hits:s})=>s},"$rN8xtG-3b6"),{stop:Fe}=_n(Y,async([s])=>{if(s?.isIntersecting)try{await ze()}catch(r){console.error("Error fetching videos:",r)}finally{Fe()}},{threshold:.1}),he=y(()=>I.loadingAuth),D=y(()=>j.value?.length>0?j.value[0]:null),oe=y(()=>z.common.main_banner),He=y(()=>
2{if(t.value.length)return Te(t.value,pe.replace("/",""));if(!d.value?.main_highlight)return[];const s=d.value.main_highlight.map(ie),r=d.value.day_highlights?.map(ie)||[];return Te([...s,...r],pe.replace("/",""))}),H=y(()=>O.query.sector),Z=y(()=>O.query.subsector),re=y(()=>!d.value?.main_highlight||!d.value?.day_highlights?[]:[...d.value.main_highlight,...d.value.day_highlights].slice(0,3).map(ie).filter(s=>s.center||s.blog||s.category)),B=y(()=>{const s=He.value,r=H.value||i.value;return{uniqueArticle:s[0],smallArticles:s.slice(1,r?v.filteredShowed:v.unFilteredShowed),largeArticles:r?[]:s.slice(v.unFilteredShowed+1,v.unFilteredLimit),books:K.value}}),qe=y(()=>!i.value&&!H.value&&!Z.value?d.value?.agenda_items||[]:X.value),P=y(()=>H.value||Z.value||i.value),ye=y(()=>I.user?.user_interests||[]),U=y(()=>null),Q=y(()=>{if(!d.value?.meta)return null;const{title:s,description:r,og_image:{url:S}={url:null}}=d.value.meta;return{title:s,description:r,url:S}}),We=y(()=>{const s=B.value.uniqueArticle,r=D.value,S=oe.value;return[{id:"kpi_banner",rendered:!0},{id:"sectors_nav",rendered:!0},{id:"hero",rendered:!!s,content_id:s?.slug??null,content_title:s?.title??null},{id:"articles_small",rendered:B.value.smallArticles.length>0},{id:"pac_banner",rendered:!0},{id:"market_report",rendered:!!r,content_id:r?.slug??null,content_title:r?.title??null,destination:r?.slug?`${Ce}/${r.slug}`:null},{id:"promo_banner",rendered:!!S,content_id:S?.name??null,content_title:S?.title??null},{id:"agenda",rendered:!!d.value},{id:"staff_picks",rendered:re.value.length>0&&i.value&&P.value!==!0},{id:"projects_palmerillas",rendered:(J.value?.length??0)>0},{id:"articles_large",rendered:(B.value.largeArticles?.length??0)>0},{id:"tierratv",rendered:!0},{id:"community",rendered:!0},{id:"partners",rendered:!!d.value?.partners},{id:"mi_asesor",rendered:!0}]}),xe=y(()=>zt(We.value,{is_filtered_home:P.value})),k=y(()=>xe.value.reduce((s,r)=>(s[r.block_id]=r,s),{})),Ge=Et(),be=Vt(!1),ke=()=>{be.value||se(xe.value,{is_filtered_home:P.value})&&(be.value=!0)},Ye=Ge.hook($t,ke);St(()=>Ye?.()),Lt(ke);const ie=s=>({...s.article,...s.content,...s.event,...s.post,...s.course}),Ke=async()=>{i.value||H.value||Z.value?await Promise.all([Ae(),Xe()]):t.value.length&&(t.value=[])},Xe=async()=>{const s=`${w.value}${T.value?` AND (${T.value})`:""}`;X.value=await ae(3,s,!0)},Ae=async(s="reset")=>{let r=s;s==="reset"&&(r=v.filteredStep+2,v.filteredLimit=r,v.filteredShowed=r);const S=await $(i.value||H.value||Z.value?v.filteredLimit:v.unFilteredLimit);t.value=S,v.filteredButton=S.length>=r},Je=async()=>{const r=`(${Ft.map(S=>`${Ht} = ${S}`).join(" OR ")} OR type = report)${w.value?` AND (${w.value})`:""}`;K.value=await $(3,r)},Ze=()=>{const s=v.filteredShowed+v.filteredStep;v.filteredLimit=s,v.filteredShowed=s,Ae(s)},Qe=s=>{s.startsWith("https")?window.open(s,"_blank","noopener,noreferrer"):fe(s)},et=s=>{if(s?.type==="news")return pe.replace("/","");if(s?.category)return s.category.section;if("event_features"in s)return Pe.replace("/","");if("course_features"in s)return Dt.replace("/","");if(s?.blog)return Pt.replace("/","")},ce=async()=>{try{await Promise.all([Je(),Ke()])}catch(s){console.error("Error loading critical data:",s)}},ue=()=>{fe(`${Ce}/${D.value.slug}`)};return Me(()=>[O.query.sector,O.query.subsector],ce),xn(()=>!he.value,ce,{immediate:i.value}),i.value||([p,E]=_e(()=>ce()),await p,E()),Q.value&&F(Q.value.title,Q.value.description,Q.value.url,null,Rt.HOME),(s,r)=>{const S=qt,we=Yt,tt=Gt,de=Tt,nt=Jt,st=Zt,Ee=Qt,at=Wt,lt=je,$e=ge,ot=Kt,rt=Yn,it=Zn,Se=Xt,Le=ve,W=un,ct=ge,ut=rs,dt=is,_t=cs,mt=us,pt=os,A=Ct("track-block");return n(),o("div",null,[x(u(S,null,null,512),[[A,e(k).kpi_banner]]),u(W,{grid:"B","padding-y":"py-6 md:py-10"},{header:g(()=>[x((n(),o("div",null,[u(de,null,{fallback:g(()=>[u(we,{class:"pb-10"})]),default:g(()=>[e(ye).length?(n(),h(tt,{key:0,class:"pb-10",list:e(ye)},null,8,["list"])):(n(),h(we,{key:1,class:"pb-10"}))]),_:1})])),[[A,e(k).sectors_nav]])]),"content-left":g(()=>[e(B).uniqueArticle?x((n(),h(nt,{key:0,"highlight-content":e(B).uniqueArticle,"content-key":null,"media-key":e(B).uniqueArticle.media?"media":"main_image",secondary:""},null,8,["highlight-content","media-key"])),[[A,e(k).hero]]):m("",!0),x((n(),o("div",ds,[u(de,null,Ot({fallback:g(()=>[(n(),o(L,null,R(5,c=>u(st,{key:c})),64))]),_:2},[e(B).smallArticles.length?{name:"default",fn:g(()=>
2[(n(!0),o(L,null,R(e(B).smallArticles,c=>(n(),h(Ee,{key:c.slug,class:"py-5",size:"xs","size-label":"sm",dir:"row",tags:c.tags_facets,slug:c.blog?`${c.blog?.slug}/${c.slug}`:c.slug,title:c.title,image:c.main_image?c.main_image:c.media,subtitle:c.subtitle,section:et(c),date:e(P)?c.published_date:"","tags-position":e(P)?"top":"bottom"},null,8,["tags","slug","title","image","subtitle","section","date","tags-position"]))),128))]),key:"0"}:void 0]),1024)])),[[A,e(k).articles_small]]),e(v).filteredButton?x((n(),o("div",_s,[l("button",{class:"btn btn__outline--blue font-ubuntu text-sm mt-8 px-3 py-4 border-blue",type:"button",onClick:Ze},_(e(f)("ui.button.seeMoreHits")),1)],512)),[[Ne,e(H)||e(i)]]):m("",!0)]),"content-right":g(()=>[l("div",ms,[r[5]||(r[5]=l("div",{class:"absolute w-px lg:block min-h-48 h-full hidden top-0 -left-11 bg-gray-soft"},null,-1)),x(u(at,null,null,512),[[A,e(k).pac_banner]]),x((n(),o("div",ps,[l("h2",{class:"block mb-7 font-ubuntu text-2xl font-medium text-gray",textContent:_(e(f)("home.lastMarketReport.title"))},null,8,fs),e(D)?(n(),o("div",gs,[l("div",vs,[e(D).main_image?(n(),h(lt,{key:0,src:e(D).main_image.url,loading:"lazy",alt:e(D).main_image.alternativeText,onClick:r[0]||(r[0]=c=>ue())},null,8,["src","alt"])):m("",!0)]),l("div",hs,[e(D).title?(n(),o("h3",{key:0,class:"font-bold font-ubuntu text-base mb-4 hover:underline cursor-pointer",onClick:r[1]||(r[1]=c=>ue())},_(e(D).title),1)):m("",!0),l("span",{class:"link flex-1 justify-end",onClick:r[2]||(r[2]=c=>ue())},[V(_(e(f)("home.lastMarketReport.link"))+" ",1),u($e,{name:"pt-arrow-right",class:"text-xl"})])])])):m("",!0)])),[[A,e(k).market_report]]),e(oe)?x((n(),h(ot,{key:0,promotion:e(oe),class:"border-b-4 border-white"},null,8,["promotion"])),[[A,e(k).promo_banner]]):m("",!0),u(de,null,{fallback:g(()=>[l("div",ys,[r[4]||(r[4]=l("div",{class:"flex justify-between items-center gap-5 mb-5"},[l("div",{class:"h-8 w-36 rounded bg-gray-light"}),l("div",{class:"h-5 w-24 rounded bg-gray-light"})],-1)),(n(),o(L,null,R(3,(c,q)=>u(it,{key:c,class:b(["pt-calendar__dense",{"pt-calendar__border":q!==2}])},null,8,["class"])),64))])]),default:g(()=>[e(d)?x((n(),h(rt,{key:0,dense:"","show-location":"",list:e(qe),theme:"light",type:"schedulerList",loading:e(he),"enabled-empty-message":"",link:e(d).agenda.link,title:e(d).agenda.title},null,8,["list","loading","link","title"])),[[A,e(k).agenda]]):m("",!0)]),_:1}),e(re).length&&e(i)&&e(P)!==!0?x((n(),o("div",xs,[l("p",{class:"font-ubuntu text-2xl font-medium text-gray mb-7",textContent:_(e(f)("home.staffPicks"))},null,8,bs),(n(!0),o(L,null,R(e(re),(c,q)=>(n(),h(Se,{key:q,class:"mb-8 last:mb-0",project:c,article:""},null,8,["project"]))),128))])),[[A,e(k).staff_picks]]):m("",!0),x((n(),o("div",ks,[l("div",As,[l("h2",{class:"block mb-6 font-ubuntu text-2xl font-medium text-gray",textContent:_(e(f)("experimentalCenters.projects.projectsID"))},null,8,ws),u(Le,{class:"link justify-end mb-5",to:"VISIT_OUR_EXPERIMENTAL_CENTERS_BASE_URL"in s?s.VISIT_OUR_EXPERIMENTAL_CENTERS_BASE_URL:e(Bt)},{default:g(()=>[V(_(e(f)("ui.label.seeMore"))+" ",1),u($e,{class:"text-xl",name:"pt-arrow-right"})]),_:1},8,["to"])]),(n(!0),o(L,null,R(e(J),(c,q)=>(n(),h(Se,{key:q,class:b({"mb-8":!q}),icon:"",project:c},null,8,["class","project"]))),128))])),[[A,e(k).projects_palmerillas]])])]),_:1}),e(B)?.largeArticles?.length?x((n(),h(W,{key:0,class:"bg-orange-pastel",grid:"E"},{content:g(()=>[l("div",Es,[l("span",{class:"block m-2.5 font-ubuntu text-2xl font-medium text-gray-light",textContent:_(e(f)("detail.interest"))},null,8,$s),u(Le,{class:"link m-2.5",to:"INNOVATION_PAGE"in s?s.INNOVATION_PAGE:e(It)},{default:g(()=>[V(_(e(f)("ui.label.seeMore"))+" ",1),u(ct,{class:"text-xl",name:"pt-arrow-right"})]),_:1},8,["to"])]),l("div",Ss,[(n(!0),o(L,null,R(e(B).largeArticles,c=>(n(),h(Ee,{key:c.slug,slug:c.slug,size:"xs",dir:"row",date:e(P)?c.published_date:"",title:c.title,subtitle:c.subtitle,"class-title":"text-xl font-bold",section:c?.category?.section},null,8,["slug","date","title","subtitle","section"]))),128))])]),_:1})),[[A,e(k).articles_large]]):m("",!0),x(u(ut,{ref_key:"homeBannerTierraTv",ref:Y,videos:e(Ve),link:"TIERRATV_BASE_URL"in s?s.TIERRATV_BASE_URL:e(Mt)},null,8,["videos","link"]),[[A,e(k).tierratv]]),x((n(),h(W,{class:"bg-blue-soft min-h-[460px] 2xl:min-h-[413px]",grid:"E"},{content:g(()=>[u(dt)]),_:1})),[[A,e(k).community]]),e(U)?(n(),h(W,{key:1,class:"cursor-pointer min-h-[122px]",grid:"E","padding-y":"p-0",style:Nt(`background-color: ${e(U).bgcolor}`),onClick:r[3]||(r[3]=c=>{e(C)(e(U),"home"),e(N)(e(U),"home"),Qe(e(U).link.url)})},{content:g(()=>[l("div",Ls,[u(_t,{sources:e(M)?e(U).media_desktop:e(U).media_mobile,type:"banner"},null,8,["sources"])])]),_:1},8,["style"])):m("",!0),e(d)?.partners?x((n(),h(W,{key:2,class:"bg-white min-h-[335px]",grid:"E"},{content:g(()=>[u(mt,{title:e(d)?.partners?.title,logos:e(d)?.partners?.partner_logos},null,8,["title","logos"])]),_:1})),[[A,e(k).partners]]):m("",!0),x(u(pt,{title:e(d)?.banner_mi_asesor?.title,de
2scription:e(d)?.banner_mi_asesor?.description,"button-text":e(d)?.banner_mi_asesor?.button_text,"button-link":e(d)?.banner_mi_asesor?.button_link},null,8,["title","description","button-text","button-link"]),[[A,e(k).mi_asesor]])])}}},ca=Ue(Rs,[["__scopeId","data-v-3bca569d"]]);export{ca 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.