PageSourceSearch

https://anpg.co.ao/assets/FieldActivitiesPage-C8_rwkDZ.js

js anpg.co.ao collected 2026-09-25 04:07:02 UTC 3,999 bytes, 2 lines download raw bytes

1/* ANPG DEVTEAM - 23/09/2026, 12:53:51 */
2import{u as c,j as e}from"./data-vendor-BRYI0K8G.js";import{P as d}from"./PageLayout-B43uM63E.js";import{w as m,a6 as p,M as l,R as x,b as u,E as g,ac as h,u as f,T as o}from"./index-cwV7SCbt.js";import{u as j}from"./useTaxonomyLabels-BcfP-yXO.js";import{B as n}from"./badge-DH3OcwR0.js";import"./react-vendor-Bj9LQV-u.js";import"./PageBreadcrumb-Dy1zu2ro.js";import"./i18n-vendor-BSIZ7LIS.js";import"./motion-vendor-DMc3mo8t.js";import"./house-CbYFZtt0.js";import"./star-DIWblV4s.js";import"./circle-check-DFc5yF46.js";import"./charts-vendor-Cs07Jtv5.js";const y={cartografia:"Cartografia",amostragem:"Amostragem",desminagem:"Desminagem",magnetico:"Magnético",geoquimica:"Geoquímica",outro:"Outro"};function b({emptyText:i}){const{label:r}=j("basin"),{data:s,isLoading:a}=c({queryKey:["public-exploration-field-activities"],staleTime:5*60*1e3,queryFn:async()=>(await h.list({sort:"-activity_date",limit:200})).data});return a?e.jsx("div",{className:"text-center py-12 text-muted-foreground",children:e.jsx(m,{className:"w-6 h-6 mx-auto animate-spin"})}):s!=null&&s.length?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:s.map(t=>e.jsxs("article",{className:"rounded-xl border border-border bg-card p-5 space-y-3 hover:shadow-md transition-shadow",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("h3",{className:"font-semibold text-foreground leading-tight",children:t.title_pt}),t.activity_type&&e.jsx(n,{variant:"secondary",className:"shrink-0",children:y[t.activity_type]??t.activity_type})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-muted-foreground",children:[t.basin_code&&e.jsx(n,{variant:"outline",children:r(t.basin_code)}),t.location&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(l,{className:"w-3 h-3"}),t.location]}),t.activity_date&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(x,{className:"w-3 h-3"}),new Date(t.activity_date).toLocaleDateString("pt-PT")]})]}),t.description_pt&&e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-3",children:t.description_pt}),typeof t.progress_pct=="number"&&e.jsxs("div",{className:"space-y-1",children:[e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[e.jsx("span",{children:"Progresso"}),e.jsxs("span",{children:[t.progress_pct,"%"]})]}),e.jsx("div",{className:"h-2 rounded-full bg-muted overflow-hidden",children:e.jsx("div",{className:"h-full bg-primary rounded-full",style:{width:`${Math.min(100,Math.max(0,t.progress_pct))}%`}})})]}),t.report_url&&e.jsx(u,{asChild:!0,size:"sm",variant:"outline",children:e.jsxs("a",{href:t.report_url,target:"_blank",rel:"noopener noreferrer",children:[e.jsx(g,{className:"w-4 h-4 mr-1.5"}),"Relatório"]})})]},t.id))}):e.jsxs("div",{className:"text-center py-16 text-muted-foreground",children:[e.jsx(p,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),e.jsx("p",{children:i??"Conteúdo em preparação."})]})}function B(){const{data:i}=f("exploration-field-activities"),r=s=>{var a;return(a=i==null?void 0:i.find(t=>t.section_key===s))==null?void 0:a.content};return e.jsx(d,{pageKey:"exploration-field-activities",titleKey:"pages.exploration.fieldActivities",subtitleKey:"pages.exploration.fieldActivitiesSubtitle",icon:e.jsx(l,{className:"w-8 h-8 text-primary"}),breadcrumbs:[{labelKey:"nav.exploration",href:"/exploracao"},{label:"Actividades de Campo"}],children:e.jsxs("div",{className:"space-y-12",children:[["intro","details"].map(s=>{const a=r(s);return a?e.jsxs("section",{children:[e.jsx("h2",{className:"text-2xl font-bold text-foreground mb-4",children:e.jsx(o,{children:a.title})}),e.jsx("p",{className:"text-muted-foreground text-lg leading-relaxed",children:e.jsx(o,{children:a.body})})]},s):null}),e.jsx(b,{emptyText:"Registo das campanhas geológicas e amostragens realizadas em campo. Conteúdo em preparação."})]})})}export{B 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.