PageSourceSearch

https://anpg.co.ao/assets/ProductionPage-BbiGhHbx.js

js anpg.co.ao collected 2026-09-25 04:07:28 UTC 14,116 bytes, 2 lines download raw bytes

1/* ANPG DEVTEAM - 23/09/2026, 12:53:51 */
2import{j as e}from"./data-vendor-BRYI0K8G.js";import{P as B}from"./PageLayout-B43uM63E.js";import{bq as G,br as R,a1 as $,T as s,J as K,a7 as p,bs as L,S as m,F as E,Y as z}from"./index-cwV7SCbt.js";import{S as I,a as H}from"./StaggerContainer-Ca5vuASL.js";import{A as W}from"./AreaContactsSection-DjYfy_5A.js";import{D as k}from"./droplets-EQW09DTa.js";import{F as C}from"./factory-BJB1XPVw.js";import{G as Y}from"./gauge-DN-2mP4W.js";import{R as M,A as q,C as X,X as J,Y as U,T,b as Z,P as Q,d as V,e as ee}from"./charts-vendor-Cs07Jtv5.js";import{W as re}from"./waves-Yb4tswkl.js";import{T as se}from"./trending-down-DNtql27O.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"./useAreaContacts-Bs-Kp0CJ.js";const n=r=>r==null||Number.isNaN(Number(r))?"—":Math.round(Number(r)).toLocaleString("pt-PT").replace(/[.,\u00A0]/g," "),h=(r,a)=>Number(r).toFixed(a).replace(".",","),b=(r,a=2)=>r==null||Number.isNaN(Number(r))?"—":`${h(Number(r),a)}%`,j=(r,a)=>r==null||Number.isNaN(Number(r))?"—":h(Number(r)/1e6,a),O=["hsl(var(--primary))","hsl(var(--chart-2))","hsl(var(--chart-3))","hsl(var(--chart-4))","hsl(var(--chart-5))","hsl(24 90% 55%)","hsl(280 65% 60%)","hsl(160 60% 45%)","hsl(var(--muted-foreground))"],oe={totalenergies:"#f93545","azule energy":"#0f766e",chevron:"#2563eb",esso:"#111827","snl p&p":"#f59e0b","etu energias":"#7c3aed",acrep:"#db2777","chevron congo":"#16a34a"},D=(r,a)=>oe[String(r).trim().toLowerCase()]||O[a%O.length];function ae({icon:r,value:a,label:t,sublabel:d,change:l,suffix:x}){return e.jsxs("div",{className:"p-6 rounded-2xl bg-secondary/50 border border-border hover:border-primary/30 transition-all duration-300 hover:shadow-lg",children:[e.jsxs("div",{className:"flex items-start justify-between mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(r,{className:"w-6 h-6 text-primary"})}),l!==void 0&&e.jsxs("div",{className:`flex items-center gap-1 text-sm font-medium ${l>=0?"text-status-success-foreground":"text-destructive"}`,children:[l>=0?e.jsx(z,{className:"w-4 h-4"}):e.jsx(se,{className:"w-4 h-4"}),h(Math.abs(l),2),"%"]})]}),e.jsxs("p",{className:"text-3xl font-bold text-foreground mb-1",children:[a,x&&e.jsx("span",{className:"text-lg font-normal text-muted-foreground ml-1",children:x})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:t}),d&&e.jsx("p",{className:"text-xs text-muted-foreground/80 mt-1",children:d})]})}function f({children:r}){return e.jsxs("span",{className:"inline-flex items-center gap-2 text-primary font-medium text-sm uppercase tracking-wider",children:[e.jsx("span",{className:"w-8 h-px bg-primary"}),r]})}function Pe(){var y,v,_,P,w,A;const{data:r,isLoading:a}=G(),{data:t}=R(),d=Array.isArray(t)&&t.length>0,l=Array.isArray(r==null?void 0:r.operators_oil)?r.operators_oil:[],x=Array.isArray(r==null?void 0:r.operators_gas)?r.operators_gas:[],i=(r==null?void 0:r.environment)??null,g=Array.isArray(r==null?void 0:r.blocks)?r.blocks:[],c=(r==null?void 0:r.month_label)||"",N=r?[{icon:$,value:j(r.oil_total_barrels,1),suffix:"M barris",label:e.jsx(s,{children:"Produção de Óleo"})},{icon:k,value:j(r.oil_daily_bopd,2),suffix:"M BOPD",label:e.jsx(s,{children:"Média Diária de Óleo"}),change:r.oil_mom_pct!=null?Number(r.oil_mom_pct):void 0},{icon:C,value:n(r.gas_total_mmscf),suffix:"MMscf",label:e.jsx(s,{children:"Produção de Gás"})},{icon:k,value:n(r.gas_daily_mmscfd),suffix:"MMSCFD",label:e.jsx(s,{children:"Média Diária de Gás"}),change:r.gas_mom_pct!=null?Number(r.gas_mom_pct):void 0},{icon:K,value:String(r.concessions_total??"—"),label:e.jsx(s,{children:"Concessões em Produção"}),sublabel:e.jsx(s,{children:`${r.concessions_onshore??0} onshore · ${r.concessions_offshore??0} offshore`})},{icon:p,value:j(r.boe_total,1),suffix:"M BOE",label:e.jsx(s,{children:"Produção Total (Petróleo Bruto)"})}
2,{icon:Y,value:b(r.efficiency_pct),label:e.jsx(s,{children:"Eficiência Operacional"})}]:[];return e.jsxs(B,{pageKey:"production",titleKey:"pages.production.title",subtitleKey:"pages.production.subtitle",descriptionKey:"pages.production.description",backgroundImage:L,icon:e.jsx(p,{className:"w-8 h-8 text-primary"}),breadcrumbs:[{labelKey:"nav.production"}],children:[!r&&!d&&!a&&e.jsx(m,{children:e.jsxs("div",{className:"p-10 rounded-2xl bg-secondary/30 border border-border text-center",children:[e.jsx(p,{className:"w-10 h-10 text-muted-foreground mx-auto mb-4"}),e.jsx("h2",{className:"text-lg font-semibold text-foreground mb-1",children:e.jsx(s,{children:"Dados de produção em preparação"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:e.jsx(s,{children:"Os indicadores de produção serão apresentados assim que forem validados e publicados."})})]})}),N.length>0&&e.jsx(m,{children:e.jsxs("section",{className:"mb-16",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3 mb-8",children:[e.jsx(f,{children:e.jsx(s,{children:"Indicadores-chave"})}),c&&e.jsxs("span",{className:"text-sm font-medium text-muted-foreground",children:[e.jsx(s,{children:"Período de referência:"})," ",c]})]}),e.jsx(I,{className:"grid sm:grid-cols-2 lg:grid-cols-4 gap-6",children:N.map((o,u)=>e.jsx(H,{children:e.jsx(ae,{...o})},u))})]})}),d&&e.jsx(m,{delay:.1,children:e.jsx("section",{className:"mb-16",children:e.jsxs("div",{className:"p-6 md:p-8 rounded-2xl bg-secondary/30 border border-border",children:[e.jsxs("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-8",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl md:text-2xl font-bold text-foreground mb-1",children:e.jsx(s,{children:"Produção Histórica de Petróleo Bruto"})}),e.jsx("p",{className:"text-sm text-muted-foreground",children:e.jsx(s,{children:"Evolução anual da produção média diária de petróleo bruto, 1955-2025"})})]}),e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx("div",{className:"w-3 h-3 rounded-full bg-primary"}),e.jsx("span",{className:"text-muted-foreground",children:e.jsx(s,{children:"BOPD (média diária anual)"})})]})]}),e.jsx("div",{className:"h-[380px]",children:e.jsx(M,{width:"100%",height:"100%",children:e.jsxs(q,{data:t,margin:{top:10,right:10,left:0,bottom:0},children:[e.jsx("defs",{children:e.jsxs("linearGradient",{id:"colorOil",x1:"0",y1:"0",x2:"0",y2:"1",children:[e.jsx("stop",{offset:"5%",stopColor:"hsl(var(--primary))",stopOpacity:.3}),e.jsx("stop",{offset:"95%",stopColor:"hsl(var(--primary))",stopOpacity:0})]})}),e.jsx(X,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),e.jsx(J,{dataKey:"year",stroke:"hsl(var(--muted-foreground))",fontSize:12,minTickGap:24}),e.jsx(U,{stroke:"hsl(var(--muted-foreground))",fontSize:12,tickFormatter:o=>o>=1e6?`${h(o/1e6,1)}M`:n(o)}),e.jsx(T,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"8px"},formatter:o=>[`${n(Number(o))} BOPD`,"Produção"],labelFormatter:o=>`Ano ${o}`}),e.jsx(Z,{type:"monotone",dataKey:"bopd",stroke:"hsl(var(--primary))",fillOpacity:1,fill:"url(#colorOil)",strokeWidth:2,name:"BOPD"})]})})}),e.jsx("p",{className:"text-xs text-muted-foreground mt-4",children:e.jsx(s,{children:"Fonte: ANPG - Direcção de Produção"})})]})})}),(l.length>0||x.length>0)&&e.jsx(m,{delay:.2,children:e.jsxs("section",{className:"mb-16",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx(f,{children:e.jsx(s,{children:"Produção por Operador"})}),c&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:[e.jsx(s,{children:"Distribuição percentual da produção"})," — ",c]})]}),e.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[l.length>0&&e.jsx(S,{title:"Percentagem da Produção de Óleo por Operador",data:l}),x.length>0&&e.jsx(S,{title:"Percentagem da Produção de Gás por Operador",data:x})]})]})}),i&&e.jsx(m,{delay:.3,children:e.jsxs("section",{className:"mb-16",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx(f,{children:e.jsx(s,{children:"Produção por Ambiente Operacional"})}),c&&e.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:[e.jsx(s,{children:"Distribuição por localização das concessões"})," — ",c]})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-6 mb-6",children:[e.jsx(F,{icon:C,name:"Em terra",share:(y=i.onshore)==null?void 0:y.share_pct,concessions:(v=i.onshore)==null?void 0:v.concessions,detail:Array.isArray((_=i.onshore)==null?void 0:_.blocks)?i.onshore.blocks.join(", "):""}),e.jsx(F,{icon:re,name:"Zona marítima",share:(P=i.offshore)==null?void 0:P.share_pct,concessions:(w=i.offshore)==null?void 0:w.concessions,detail:""})]}),Array.isArray((A=i.offshore)==null?void 0:A.depths)&&i.offshore.depths.length>0&&e.jsxs("div",{className:"p-6 md:p-8 rounded-2xl bg-secondary/30 border border-border",children:[e.jsx("h3",{className:"text-lg font-bold text-foreground mb-6",children:e.jsx(s,{children:"Distribuição marítima por profundidade"})}),e.jsx("div",{className:"space-y-5",children:i.offshore.depths.map((o,u)=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1.5 text-sm",children:[e.jsx("span",{className:"font-medium text-foreground",children:e.jsx(s,{children:o.name})}),e.jsx("span",{className:"text-muted-foreground",children:b(o.share_pct)})]}),e.jsx("div",{className:"h-2.5 rounded-full bg-secondary overflow-hidden",children:e.jsx("div",{className:"h-full rounded-full bg-primary",style:{width:`${Math.min(Number(o.share_pct)||0,100)}%`}})}),Array.isArray(o.blocks)&&e.jsx("p",{className:"text-xs text-muted-foreground mt-1.5",children:o.blocks.join(", ")})]},u))})]})]})}),g.length>0&&e.jsx(m,{delay:.4,children:e.jsx("section",{className:"mb-16",children:e.jsxs("div",{className:"p-6 md:p-8 rounded-2xl bg-secondary/30 border border-border",children:[e.jsx("h3",{className:"text-lg font-bold text-foreground mb-1",children:e.jsx(s,{children:"Distribuição de Poços por Bloco"})}),c&&e.jsxs("p",{className:"text-sm text-muted-foreground mb-6",children:[e.jsx(s,{children:"Poços de óleo, água e gás (abertos / fechados)"})," — ",c]}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-border",children:[e.jsx("th",{className:"text-left py-3 px-3 font-semibold text-foreground",children:e.jsx(s,{children:"Bloco"})}),e.jsx("th",{className:"text-right py-3 px-3 font-semibold text-foreground",children:e.jsx(s,{children:"Óleo (A/F)"})}),e.jsx("th",{className:"text-right py-3 px-3 font-semibold text-foreground",children:e.jsx(s,{children:"Água (A/F)"})}),e.jsx("th",{className:"text-right py-3 px-3 font-semibold text-foreground",children:e.jsx(s,{children:"Gás (A/F)"})})]})}),e.jsx("tbody",{children:g.map((o,u)=>e.jsxs("tr",{className:"border-b border-border/50 hover:bg-secondary/50 transition-colors",children:[e.jsx("td",{className:"py-3 px-3 font-medium text-foreground",children:o.block}),e.jsxs("td",{className:"py-3 px-3 text-right text-muted-foreground",children:[n(o.oil_open)," / ",n(o.oil_closed)]}),e.jsxs("td",{className:"py-3 px-3 text-right text-muted-foreground",children:[n(o.water_open)," / ",n(o.water_closed)]}),e.jsxs("td",{className:"py-3 px-3 text-right text-muted-foreground",children:[n(o.gas_open)," / ",n(o.gas_closed)]})]},u))})]})})]})})}),(r==null?void 0:r.source_report_name)&&e.jsx(m,{delay:.5,children:e.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground p-4 rounded-xl bg-secondary/30 border border-border",children:[e.jsx(E,{className:"w-4 h-4 text-primary flex-shrink-0"}),e.jsxs("span",{children:["Fonte: ",r.source_report_name," e dados históricos da Direcção de Produção."]})]})}),e.jsx(W,{area:"dpp"})]})}function S({title:r,data:a}){return e.jsxs("div",{className:"p-6 md:p-8 rounded-2xl bg-secondary/30 border border-border",children:[e.jsx("h3",{className:"text-lg font-bold text-foreground mb-6",children:e.jsx(s,{children:r})}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-2/5 h-[220px]",children:e.jsx(M,{width:"100%",height:"100%",children:e.jsxs(Q,{children:[e.jsx(V,{data:a,cx:"50%",cy:"50%",innerRadius:45,outerRadius:80,paddingAngle:2,dataKey:"share_pct",nameKey:"name",children:a.map((t,d)=>e.jsx(ee,{fill:D(t.name,d)},`cell-${d}`))}),e.jsx(T,{contentStyle:{backgroundColor:"hsl(var(--background))",border:"1px solid hsl(var(--border))",borderRadius:"8px"},formatter:(t,d)=>[`${h(Number(t),2)}%`,d]})]})})}),e.jsx("div",{className:"w-3/5 space-y-2",children:a.map((t,d)=>e.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[e.jsx("div",{className:"w-3 h-3 rounded-full flex-shrink-0",style:{backgroundColor:D(t.name,d)}}),e.jsx("span",{className:"text-foreground truncate flex-1",children:t.name}),e.jsxs("span",{className:"font-medium text-foreground",children:[h(Number(t.share_pct),2),"%"]})]},t.name))})]})]})}function F({icon:r,name:a,share:t,concessions:d,detail:l}){return e.jsxs("div",{className:"p-6 rounded-2xl bg-secondary/30 border border-border",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-11 h-11 rounded-xl bg-primary/10 flex items-center justify-center",children:e.jsx(r,{className:"w-5 h-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h4",{className:"font-semibold text-foreground",children:e.jsx(s,{children:a})}),d!=null&&e.jsxs("p",{className:"text-xs text-muted-foreground",children:[d," ",e.jsx(s,{children:"concessões"})]})]})]}),e.jsx("p",{className:"text-3xl font-bold text-primary",children:b(t)}),e.jsx("p",{className:"text-xs text-muted-foreground",children:e.jsx(s,{children:"da produção total"})}),l&&e.jsx("p",{className:"text-xs text-muted-foreground mt-3",children:l})]})}
2export{Pe 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.