PageSourceSearch

https://platform.carbonhalo.com/_next/static/chunks/pages/iso-1ead9b0198113a87.js

js carbonhalo.com collected 2026-10-04 10:28:19 UTC 24,811 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2399],{9616:(e,s,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/iso",function(){return a(28147)}])},28147:(e,s,a)=>{"use strict";a.r(s),a.d(s,{default:()=>P});var t=a(37876),l=a(70121),i=a(49408),r=a(14232),n=a(88992),o=a(13810),c=a(97685),m=a(60513);let d=m.z.enum(["self","independently"]),u=m.z.object({reportEnding:m.z.string().min(1,"Reporting period end date is required"),calculationService:d,member:m.z.string().optional(),stationaryFuels:m.z.coerce.number().min(0).optional(),mobileFuels:m.z.coerce.number().min(0).optional(),refrigerantLeakages:m.z.coerce.number().min(0).optional(),directEmissions:m.z.coerce.number().min(0).optional(),purchasedElectricity:m.z.coerce.number().min(0).optional(),purchasedHeating:m.z.coerce.number().min(0).optional(),businessTravel:m.z.coerce.number().min(0).optional(),employeeCommute:m.z.coerce.number().min(0).optional(),transportDistribution:m.z.coerce.number().min(0).optional(),packaging:m.z.coerce.number().min(0).optional(),electricityDistributionLosses:m.z.coerce.number().min(0).optional(),workFromHome:m.z.coerce.number().min(0).optional(),waterUsage:m.z.coerce.number().min(0).optional(),operationalWaste:m.z.coerce.number().min(0).optional(),operationalLeases:m.z.coerce.number().min(0).optional(),purchasedGoodsServices:m.z.coerce.number().min(0).optional(),fuelStorage:m.z.coerce.number().min(0).optional(),totalExpectedLifetimeEmission:m.z.coerce.number().min(0).optional(),eolStageEmission:m.z.coerce.number().min(0).optional(),downstreamFranchises:m.z.coerce.number().min(0).optional(),emissionFromInvestments:m.z.coerce.number().min(0).optional(),emissionsorRemoval:m.z.coerce.number().min(0).optional()}),p={reportEnding:"",calculationService:void 0,member:void 0,stationaryFuels:void 0,mobileFuels:void 0,refrigerantLeakages:void 0,directEmissions:void 0,purchasedElectricity:void 0,purchasedHeating:void 0,businessTravel:void 0,employeeCommute:void 0,transportDistribution:void 0,packaging:void 0,electricityDistributionLosses:void 0,workFromHome:void 0,waterUsage:void 0,operationalWaste:void 0,operationalLeases:void 0,purchasedGoodsServices:void 0,fuelStorage:void 0,totalExpectedLifetimeEmission:void 0,eolStageEmission:void 0,downstreamFranchises:void 0,emissionFromInvestments:void 0,emissionsorRemoval:void 0};var x=a(83350);function h(e){let{form:s}=e,{register:a,watch:l}=s,r=l("reportEnding"),n=l("calculationService"),o=l("stationaryFuels"),c=l("mobileFuels"),m=l("refrigerantLeakages"),d=l("directEmissions"),u=!!r&&!!n&&[o,c,m,d].some(e=>void 0!==e&&e>0);return(0,t.jsx)(i.A,{title:"Scope 1 — Direct Emissions: Category 1",color:"dark-blue",expand:!0,isCompleted:u,children:(0,t.jsxs)("div",{className:"space-y-6 p-6",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-lg font-semibold",children:"Reporting Perio
1d"}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"reportEnding",children:(0,t.jsx)("span",{className:"label-text",children:"Select the end date of your reporting period"})}),(0,t.jsx)("input",{type:"date",id:"reportEnding",...a("reportEnding"),className:"input input-bordered"}),(0,t.jsx)("label",{className:"label",children:(0,t.jsx)("span",{className:"label-text-alt text-base-content/70",children:"E.g. The report period of your assessment is Mar 2022 – Feb 2023. Enter Feb 2023."})})]})]}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-lg font-semibold",children:"Calculation Service"}),(0,t.jsxs)("div",{className:"form-control",children:[(0,t.jsx)("label",{className:"label",children:(0,t.jsx)("span",{className:"label-text",children:"How was this report calculated?"})}),(0,t.jsxs)("div",{className:"flex gap-6",children:[(0,t.jsxs)("label",{className:"label cursor-pointer gap-2",children:[(0,t.jsx)("input",{type:"radio",...a("calculationService"),value:"self",className:"radio"}),(0,t.jsx)("span",{className:"label-text",children:"Self-assessed"})]}),(0,t.jsxs)("label",{className:"label cursor-pointer gap-2",children:[(0,t.jsx)("input",{type:"radio",...a("calculationService"),value:"independently",className:"radio"}),(0,t.jsx)("span",{className:"label-text",children:"Independently verified"})]})]})]})]}),(0,t.jsx)("div",{className:"divider"}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-lg font-semibold",children:"Category 1 — Direct Emissions"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-base-content/70",children:"Enter all values in tonnes CO₂e."}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"stationaryFuels",children:(0,t.jsx)("span",{className:"label-text",children:"Stationary Fuels"})}),(0,t.jsx)("input",{type:"number",id:"stationaryFuels",...a("stationaryFuels"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"mobileFuels",children:(0,t.jsx)("span",{className:"label-text",children:"Mobile Fuels"})}),(0,t.jsx)("input",{type:"number",id:"mobileFuels",...a("mobileFuels"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"refrigerantLeakages",children:(0,t.jsx)("span",{className:"label-text",children:"Refrigerant Leakages"})}),(0,t.jsx)("input",{type:"number",id:"refrigerantLeakages",...a("refrigerantLeakages"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"directEmissions",children:(0,t.jsx)("span",{className:"label-text",children:"Direct emissions and removals from land use"})}),(0,t.jsx)("input",{type:"number",id:"directEmissions",...a("directEmissions"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]})]})]})]})})}function b(e){let{form:s}=e,{register:a,watch:l}=s,r=[l("purchasedElectricity"),l("purchasedHeating")].some(e=>void 0!==e&&e>0);return(0,t.jsx)(i.A,{title:"Scope 2 — Indirect Emissions: Category 2",color:"dark-blue",expand:!0,isCompleted:r,children:(0,t.jsx)("div",{className:"space-y-6 p-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-lg font-semibold",children:"Category 2 — Indirect Energy Emissions"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-base-content/70",children:"Enter all values in tonnes CO₂e."}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"purchasedElectricity",children:(0,t.jsx)("span",{className:"label-text",children:"Purchase Electricity"})}),(0,t.jsx)("input",{type:"number",id:"purchasedElectricity",...a("purchasedElectricity"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"purchasedHeating",children:(0,t.jsx)("span",{className:"label-text",children:"Purchase Heating & Cooling"})}),(0,t.jsx)("input",{type:"number",id:"purchasedHeating",...a("purchasedHeating"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]})]})]})})})}function g(e){let{form:s}=e,{register:a,watch:l}=s,r=l("businessTravel"),n=l("employeeCommute"),o=[r,n,l("transportDistribution"),l("packaging")].some(e=>void 0!==e&&e>0);return(0,t.jsx)(i.A,{title:"Scope 3 — Indirect Emissions: Category 3",color:"dark-blue",expand:!0,isCompleted:o,children:(0,t.jsx)("div",{className:"space-y-6 p-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-lg font-semibold",children:"Category 3 — Trans
1port & Distribution"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-base-content/70",children:"Enter all values in tonnes CO₂e."}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"businessTravel",children:(0,t.jsx)("span",{className:"label-text",children:"Business Travel"})}),(0,t.jsx)("input",{type:"number",id:"businessTravel",...a("businessTravel"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"employeeCommute",children:(0,t.jsx)("span",{className:"label-text",children:"Employee Commute"})}),(0,t.jsx)("input",{type:"number",id:"employeeCommute",...a("employeeCommute"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"transportDistribution",children:(0,t.jsx)("span",{className:"label-text",children:"Transport & Distribution"})}),(0,t.jsx)("input",{type:"number",id:"transportDistribution",...a("transportDistribution"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"packaging",children:(0,t.jsx)("span",{className:"label-text",children:"Packaging"})}),(0,t.jsx)("input",{type:"number",id:"packaging",...a("packaging"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]})]})]})})})}function j(e){let{form:s}=e,{register:a,watch:l}=s,r=l("electricityDistributionLosses"),n=l("workFromHome"),o=l("waterUsage"),c=l("operationalWaste"),m=l("operationalLeases"),d=[r,n,o,c,m,l("purchasedGoodsServices"),l("fuelStorage")].some(e=>void 0!==e&&e>0);return(0,t.jsx)(i.A,{title:"Scope 3 — Indirect Emissions: Category 4",color:"dark-blue",expand:!0,isCompleted:d,children:(0,t.jsx)("div",{className:"space-y-6 p-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-lg font-semibold",children:"Category 4 — Operational Emissions"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-base-content/70",children:"Enter all values in tonnes CO₂e."}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"electricityDistributionLosses",children:(0,t.jsx)("span",{className:"label-text",children:"Electricity transmission & distribution losses"})}),(0,t.jsx)("input",{type:"number",id:"electricityDistributionLosses",...a("electricityDistributionLosses"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"workFromHome",children:(0,t.jsx)("span",{className:"label-text",children:"Working from Home"})}),(0,t.jsx)("input",{type:"number",id:"workFromHome",...a("workFromHome"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"waterUsage",children:(0,t.jsx)("span",{className:"label-text",children:"Water Usage"})}),(0,t.jsx)("input",{type:"number",id:"waterUsage",...a("waterUsage"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"operationalWaste",children:(0,t.jsx)("span",{className:"label-text",children:"Operational Waste"})}),(0,t.jsx)("input",{type:"number",id:"operationalWaste",...a("operationalWaste"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"operationalLeases",children:(0,t.jsx)("span",{className:"label-text",children:"Operational Leases"})}),(0,t.jsx)("input",{type:"number",id:"operationalLeases",...a("operationalLeases"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"purchasedGoodsServices",children:(0,t.jsx)("span",{className:"label-text",children:"Purchased Goods & Services"})}),(0,t.jsx)("input",{type:"number",id:"purchasedGoodsServices",...a("purchasedGoodsServices"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"fuelStorage",children:(0,t.jsx)("span",{className:"label-text",children:"Fuel Storage"})}),(0,t.jsx)("input",{type:"number",id:"fuelStorage",...a("fuelStorage"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]})]})]})})})}function v(e){let{form:s}=e,{register:a,watch:l}=s,r=l("totalExpectedLifetimeEmission"),n=l("eolStageEmission"),o=[r,n,l("downstreamFranchises"),l("emissionFromInvestments")].some(e=>void 0!==e&&e>0);return(0,t.jsx)(i.A,{title:"Scope 3 — Indirect Emissions: Category 5",color:"dark-blue",expand:!0,isCompleted:o,children:(0,t.jsx)("div",{className:"space-y-6 p-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-lg font-semibold",children:"Category 5 — Product Lifecycle Emissions"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-base-content/70",children:"Enter all values in tonnes CO₂e."}),(0,t.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"totalExpectedLifetimeEmission",children:(0,t.jsx)("span",{className:"label-text",children:"Total expected lifetime emissions of products sold"})}),(0,t.jsx)("input",{type:"number",id:"totalExpectedLifetimeEmission",...a("totalExpectedLifetimeEmission"),
1className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"eolStageEmission",children:(0,t.jsx)("span",{className:"label-text",children:"End of life stage emissions"})}),(0,t.jsx)("input",{type:"number",id:"eolStageEmission",...a("eolStageEmission"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"downstreamFranchises",children:(0,t.jsx)("span",{className:"label-text",children:"Downstream franchises / leased assets"})}),(0,t.jsx)("input",{type:"number",id:"downstreamFranchises",...a("downstreamFranchises"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]}),(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"emissionFromInvestments",children:(0,t.jsx)("span",{className:"label-text",children:"Emissions from investments"})}),(0,t.jsx)("input",{type:"number",id:"emissionFromInvestments",...a("emissionFromInvestments"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]})]})]})})})}function f(e){let{form:s}=e,{register:a,watch:l}=s,r=l("emissionsorRemoval");return(0,t.jsx)(i.A,{title:"Scope 3 — Indirect Emissions: Category 6",color:"dark-blue",expand:!0,isCompleted:void 0!==r&&r>0,children:(0,t.jsx)("div",{className:"space-y-6 p-6",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"mb-4 text-lg font-semibold",children:"Category 6 — Other Emissions"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-base-content/70",children:"Enter all values in tonnes CO₂e."}),(0,t.jsx)("div",{className:"flex flex-col gap-4",children:(0,t.jsxs)("div",{className:"form-control max-w-md",children:[(0,t.jsx)("label",{className:"label",htmlFor:"emissionsorRemoval",children:(0,t.jsx)("span",{className:"label-text",children:"Emissions or removals which cannot be recorded in any other category"})}),(0,t.jsx)("input",{type:"number",id:"emissionsorRemoval",...a("emissionsorRemoval"),className:"input input-bordered",placeholder:"0",min:"0",step:"0.01"})]})})]})})})}let N=e=>"iso14064-draft-".concat(e);function y(e){let{memberCode:s,onSuccess:a,onError:i}=e,[m,d]=(0,r.useState)(!1),[y,E]=(0,r.useState)(!1),[w,F]=(0,r.useState)(0),[S,k]=(0,r.useState)(null),C=(0,r.useRef)(null),L=(0,r.useRef)(!1),P=(0,n.mN)({resolver:(0,o.u)(u),defaultValues:{...p,member:s},mode:"onBlur"}),{handleSubmit:D,reset:O,watch:I,formState:{errors:z}}=P;(0,r.useEffect)(()=>{if(!s||L.current)return;L.current=!0;let e=N(s),a=localStorage.getItem(e);if(a)try{let e=JSON.parse(a);O({...p,...e.data,member:s}),c.Ay.success("Draft loaded - continue where you left off"),k(new Date(e.timestamp))}catch(s){localStorage.removeItem(e)}},[s,O]),(0,r.useEffect)(()=>{if(!s||!L.current)return;let e=I(e=>{C.current&&clearTimeout(C.current),C.current=setTimeout(()=>{let a=N(s),t={},l=!1;if(Object.keys(e).forEach(s=>{if("member"===s)return;let a=e[s],i=p[s];JSON.stringify(""===a||null===a?void 0:a)!==JSON.stringify(""===i||null===i?void 0:i)&&(t[s]=a,l=!0)}),l)try{localStorage.setItem(a,JSON.stringify({timestamp:new Date().toISOString(),data:t})),k(new Date)}catch(e){}else localStorage.removeItem(a),k(null)},2e3)});return()=>{e.unsubscribe(),C.current&&clearTimeout(C.current)}},[s,I]);let A=async e=>{d(!0);try{var t,l,r,n,o,m,u,p,h,b,g,j,v,f,y,w,S,C,L,P,D,O;let i={memberId:s,lastUpdated:new Date().toISOString(),source:"carbonhalo-iso",year:new Date().getFullYear(),reportEnding:e.reportEnding,calculationService:e.calculationService,emissions:[{name:"Stationary Fuels",amount:null!=(t=e.stationaryFuels)?t:0,category:1,scope:1},{name:"Mobile Fuels",amount:null!=(l=e.mobileFuels)?l:0,category:1,scope:1},{name:"Refrigerant Leakages",amount:null!=(r=e.refrigerantLeakages)?r:0,category:1,scope:1},{name:"Direct emissions and removals from land use",amount:null!=(n=e.directEmissions)?n:0,category:1,scope:1},{name:"Purchase electricity",amount:null!=(o=e.purchasedElectricity)?o:0,category:2,scope:2},{name:"Purchase Heating & Cooling",amount:null!=(m=e.purchasedHeating)?m:0,category:2,scope:2},{name:"Business Travel",amount:null!=(u=e.businessTravel)?u:0,category:3,scope:3},{name:"Employee Commute",amount:null!=(p=e.employeeCommute)?p:0,
1category:3,scope:3},{name:"Transport & Distribution",amount:null!=(h=e.transportDistribution)?h:0,category:3,scope:3},{name:"Packaging",amount:null!=(b=e.packaging)?b:0,category:3,scope:3},{name:"Electricity transmission & distribution losses",amount:null!=(g=e.electricityDistributionLosses)?g:0,category:4,scope:3},{name:"Working from Home",amount:null!=(j=e.workFromHome)?j:0,category:4,scope:3},{name:"Water Usage",amount:null!=(v=e.waterUsage)?v:0,category:4,scope:3},{name:"Operational Waste",amount:null!=(f=e.operationalWaste)?f:0,category:4,scope:3},{name:"Operational Leases",amount:null!=(y=e.operationalLeases)?y:0,category:4,scope:3},{name:"Purchased Goods & Services",amount:null!=(w=e.purchasedGoodsServices)?w:0,category:4,scope:3},{name:"Fuel Storage",amount:null!=(S=e.fuelStorage)?S:0,category:4,scope:3},{name:"Total expected lifetime emissions of products sold",amount:null!=(C=e.totalExpectedLifetimeEmission)?C:0,category:5,scope:3},{name:"End of life stage emissions",amount:null!=(L=e.eolStageEmission)?L:0,category:5,scope:3},{name:"Downstream franchises / leased assets",amount:null!=(P=e.downstreamFranchises)?P:0,category:5,scope:3},{name:"Emissions from investments",amount:null!=(D=e.emissionFromInvestments)?D:0,category:5,scope:3},{name:"Emissions or removals which cannot be recorded in any other category",amount:null!=(O=e.emissionsorRemoval)?O:0,category:6,scope:3}]};await x.protectedApiCaller.post("/webhooks/measurement/member",i),c.Ay.success("Emissions submitted successfully!");let d=i.emissions.reduce((e,s)=>e+s.amount,0);F(d),s&&(localStorage.removeItem(N(s)),k(null)),E(!0),null==a||a()}catch(e){console.error("ISO 14064 submission error:",e),c.Ay.error(e instanceof Error?e.message:"Failed to submit emissions. Please try again."),i&&e instanceof Error&&i(e)}finally{d(!1)}},T=()=>{O({...p,member:s}),s&&(localStorage.removeItem(N(s)),k(null)),E(!1),L.current=!1},R=Object.keys(z).length>0;return y?(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-lg border-2 border-site-grey bg-base-100 p-12",children:[(0,t.jsx)("div",{className:"mb-6 text-4xl font-semibold text-header-blue",children:"Submission Complete!"}),(0,t.jsxs)("div",{className:"mb-8 text-center",children:[(0,t.jsxs)("div",{className:"mb-4 rounded-lg bg-primary-green p-4 text-6xl font-bold text-[var(--color-brand-text,#000000)]",children:[w.toFixed(1)," tonnes"]}),(0,t.jsx)("div",{className:"text-xl text-base-content/70",children:"CO₂e total submitted for the reporting period"})]}),(0,t.jsx)("div",{className:"mb-6 max-w-2xl text-center text-lg text-base-content/70",children:"Your ISO 14064 emissions have been saved and are now available in your reports."}),(0,t.jsxs)("div",{className:"flex gap-4",children:[(0,t.jsx)(l.A,{color:"dark-blue",onClick:T,children:"Submit Another"}),(0,t.jsx)(l.A,{color:"secondary",onClick:()=>window.location.href="/home",children:"Return to Dashboard"})]})]}):(0,t.jsxs)("form",{onSubmit:D(A),className:"space-y-4",children:[(0,t.jsx)(h,{form:P}),(0,t.jsx)(b,{form:P}),(0,t.jsx)(g,{form:P}),(0,t.jsx)(j,{form:P}),(0,t.jsx)(v,{form:P}),(0,t.jsx)(f,{form:P}),(0,t.jsxs)("div",{className:"flex justify-between gap-4 pt-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4",children:[(0,t.jsx)(l.A,{type:"button",onClick:T,disabled:m,children:"Reset Form"}),S&&(0,t.jsxs)("span",{className:"text-sm text-base-content/60",children:["Draft auto-saved at"," ",S.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}),(0,t.jsxs)("div",{className:"flex gap-4",children:[R&&(0,t.jsx)("span",{className:"flex items-center text-error",children:"Please fix validation errors above"}),(0,t.jsx)(l.A,{type:"submit",color:"dark-blue",disabled:m,className:"min-w-[150px]",children:m?"Submitting...":"Submit Emissions"})]})]})]})}var E=a(35280),w=a(22161),F=a(63548),S=a(64839),k=a(67232),C=a(15797),L=a(89099);let P=()=>{var e;let s=(0,L.useRouter)(),{user:a}=(0,k.A)(),{data:r}=(0,S.Yg)(null!=(e=s.query.memberId)?e:null==a?void 0:a.memberId);return(0,t.jsxs)(F.A,{title:"Carbonhalo",acl:{role:"member",subscriptionPlan:["bcap","bcap-e"],memberType:["BCAP"]},children:[s.query.memberId&&r&&(0,t.jsx)("div",{className:"absolute left-1/2 z-10 -translate-x-1/2 transform",children:(0,t.jsxs)("div",{className:"alert alert-info mx-auto mt-5 block max-w-[300px]",children:[(0,t.jsx)("div",{children:"Data input for member:"}),(0,t.jsx)("div",{className:"text-right",children:r.tradingAs||r.legalName})]})}),(0,t.jsx)(E.A,{}),(0,t.jsxs)(w.A,{className:"",children:[(0,t.jsx)(i.A,{color:"primary",expand:!0,title:(0,t.jsxs)("div",{className:"flex w-[980px] flex-row items-center justify-center gap-x-3",children:[(0,t.jsx)("div",{className:"text-2xl font-semibold leading-6",children:"ISO 14064"}),(0,t.jsx)("div",{className:"grow"}),(0,t.jsx)(l.A,{href:"/commit",color:"secondary",children:"Back"})]}),rightToggleClassName:(0,C.JF)("bg","header-green")}),(0,t.jsx)("div",{className:"border-b-[10px] border-[#f3f4f6] p-6",children:(null==r?void 0:r.code)&&(0,t.jsx)(y,{memberCode:r.code})})]})]})}},79819:(e,s,a)=>{"use strict";a.d(s,{q:()=>o});var t=a(15154),l=a(77771),i=a(93343);class r extends l.${constructor(e,s){super(e,s)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,s){super.setOptions({...e,behavior:(0,i.PL)()},s)}getOptimisticResult(e){return e.behavior=(0,i.PL)(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...s}={}
1){return this.fetch({...s,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...s}={}){return this.fetch({...s,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,s){var a,t,l,r,n,o;let{state:c}=e,m=super.createResult(e,s),{isFetching:d,isRefetching:u}=m,p=d&&(null==(a=c.fetchMeta)||null==(t=a.fetchMore)?void 0:t.direction)==="forward",x=d&&(null==(l=c.fetchMeta)||null==(r=l.fetchMore)?void 0:r.direction)==="backward";return{...m,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,i.rB)(s,null==(n=c.data)?void 0:n.pages),hasPreviousPage:(0,i.RQ)(s,null==(o=c.data)?void 0:o.pages),isFetchingNextPage:p,isFetchingPreviousPage:x,isRefetching:u&&!p&&!x}}}var n=a(75333);function o(e,s,a){let l=(0,t.vh)(e,s,a);return(0,n.t)(l,r)}}},e=>{e.O(0,[4440,3755,6587,3509,9899,5032,3548,4690,5280,636,6593,8792],()=>e(e.s=9616)),_N_E=e.O()}]);

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.