PageSourceSearch

https://agrihash-base.vercel.app/_next/static/chunks/2320.0a8cc0c58e81f585.js

js agrihash-base.vercel.app collected 2026-10-03 06:13:52 UTC 42,699 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2320],{6132:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(71847).A)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]])},21786:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(71847).A)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},27937:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(71847).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},35299:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(71847).A)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},42320:(e,t,r)=>{r.r(t),r.d(t,{default:()=>k});var s=r(95155),a=r(12115),n=r(27937),i=r(6132),l=r(89715),o=r(21873);let d=(0,r(71847).A)("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);var c=r(95664),x=r(35299),u=r(52056),m=r(89559),p=r(21786),f=r(65229),h=r(76907),b=r(61362),g=r(95740),j=r(5917),y=r(52472),v=r(75426),N=r(27476),w=r(59054);function k(e){let{batches:t,onMintBatch:r,onNavigateToTab:k,onSetSelectedBatchId:A}=e,[C,S]=(0,a.useState)(!1),[z,T]=(0,a.useState)(!1),[D,E]=(0,a.useState)(!1),[P,L]=(0,a.useState)(""),[R,O]=(0,a.useState)(""),[M,G]=(0,a.useState)(""),[H,U]=(0,a.useState)(""),[F,B]=(0,a.useState)(""),[q,I]=(0,a.useState)(""),[V,_]=(0,a.useState)(""),[K,Y]=(0,a.useState)([]),[$,W]=(0,a.useState)(!1),[Q,Z]=(0,a.useState)(null),[J,X]=(0,a.useState)(!1),[ee,et]=(0,a.useState)(null),[er,es]=(0,a.useState)(!1),[ea,en]=(0,a.useState)(null),[ei,el]=(0,a.useState)([]),[eo,ed]=(0,a.useState)(!1),[ec,ex]=(0,a.useState)(!1),[eu,em]=(0,a.useState)(!1),[ep,ef]=(0,a.useState)(null),[eh,eb]=(0,a.useState)(null),eg=(0,a.useRef)(null),ej=(0,a.useRef)(null),ey=(0,a.useRef)(null),ev=async()=>{ey.current&&(ey.current.getTracks().forEach(e=>e.stop()),ey.current=null),eh&&(eh.getTracks().forEach(e=>e.stop()),eb(null)),ex(!0),em(!0),ef(null);try{if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)throw Error("Your browser or device does not support hardware camera access.");let e=await navigator.mediaDevices.getUserMedia({video:{facingMode:{ideal:"environment"},width:{ideal:1280},height:{ideal:720}}});eb(e),ey.current=e,setTimeout(()=>{eg.current&&(eg.current.srcObject=e,eg.current.play().catch(e=>{console.error("Video play failed:",e)}))},150)}catch(s){var e,t;console.error("Camera startup error:",s);let r="Permission denied or camera is currently in use by another application.";(null==s?void 0:s.name)==="NotReadableError"||(null==s||null==(e=s.message)?void 0:e.toLowerCase().includes("device in use"))||(null==s||null==(t=s.message)?void 0:t.toLowerCase().includes("in use"))?r="Camera hardware is currently in use by another application or browser tab. Please close other camera sessions or use the simulated snapshot option below.":(null==s?void 0:s.name)==="NotAllowedError"||(null==s?void 0:s.name)==="PermissionDeniedError"?r="Camera permission was denied. Please allow camera access in your browser settings.":(null==s?void 0:s.name)==="NotFoundError"||(null==s?void 0:s.name)==="DevicesNotFoundError"?r="No video input camera device was found on this system.":(null==s?void 0:s.message)&&(r=s.message),ef(r)}finally{em(!1)}};a.useEffect(()=>()=>{ey.current&&ey.current.getTracks().forEach(e=>e.stop())},[]);let eN=(0,a.useRef)(null),ew=(0,a.useRef)(null),ek=(0,a.useRef)(null),eA=(0,a.useRef)(null),[eC,eS]=(0,a.useState)(null),[ez,eT]=(0,a.useState)(!1),[eD,eE]=(0,a.useState)(""),[eP,eL]=(0,a.useState)(!1),[eR,eO]=(0,a.useState)(""),eM=e=>{e.preventDefault(),e.stopPropagation(),"dragenter"===e.type||"dragover"===e.type?ed(!0):"dragleave"===e.type&&ed(!1)},eG=(e,t)=>{if(t.target.files&&t.target.files[0]){let r=t.target.files[0].name;"organic"===e?(Z(r),W(!0)):"fairtrade"===e?(et(r),X(!0)):"globalgap"===e&&(en(r),es(!0))}};return(0,s.jsxs)("div",{id:"register-batch-workspace",className:"max-w-5xl mx-auto 
1space-y-6 animate-in fade-in duration-300",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-bold font-sans text-muted-foreground uppercase tracking-widest",children:[(0,s.jsx)("button",{type:"button",onClick:()=>k("dashboard"),className:"hover:text-primary hover:underline transition-colors cursor-pointer uppercase font-bold tracking-widest text-muted-foreground text-xs bg-transparent border-0 p-0",children:"Overview"}),(0,s.jsx)(n.A,{size:10,className:"text-slate-350"}),(0,s.jsx)("button",{type:"button",onClick:()=>k("batches"),className:"hover:text-primary hover:underline transition-colors cursor-pointer uppercase font-bold tracking-widest text-muted-foreground text-xs bg-transparent border-0 p-0",children:"My Batches"}),(0,s.jsx)(n.A,{size:10,className:"text-slate-350"}),(0,s.jsx)("span",{className:"text-foreground font-extrabold border-b-2 border-[#113e21] pb-0.5",children:"Register"})]}),(0,s.jsx)("div",{className:"flex items-start justify-between border-b border-border/60 pb-5",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h1",{className:"text-3xl sm:text-4xl font-display font-bold text-[#00270f] tracking-tight",children:"Register New Batch"}),(0,s.jsx)("p",{className:"text-sm text-muted-foreground mt-1.5 max-w-2xl leading-relaxed",children:"Mint a verifiable digital twin for your harvest. This information will be immutable on the Base network once confirmed."})]})}),K.length>0&&(0,s.jsx)("div",{className:"bg-red-50 border border-red-200 rounded-xl p-4 animate-in fade-in duration-200",children:(0,s.jsxs)("div",{className:"flex items-start gap-2",children:[(0,s.jsx)(i.A,{size:14,className:"text-red-500 shrink-0 mt-0.5"}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("span",{className:"text-xs font-bold text-red-700 block",children:"Please fix the following errors:"}),K.map((e,t)=>(0,s.jsxs)("span",{className:"text-[10px] text-red-600 block",children:["• ",e.field,": ",e.message]},t))]})]})}),(0,s.jsxs)("form",{onSubmit:e=>{e.preventDefault();let t=(0,w.R7)({cropType:P,customCropType:R,quantity:M,harvestDate:H,farmingMethod:F,customFarmingMethod:q,farmLocation:V});if(t.length>0)return void Y(t);Y([]),S(!0);let s=[];$&&s.push("Organic Certified (USDA/EU)"),J&&s.push("Fair Trade (Ethics & Sustainability)"),er&&s.push("Global G.A.P. Practice"),0===s.length&&s.push("Standard Agricultural Origin Attestation"),setTimeout(()=>{let e=Math.floor(0xffffff*Math.random()).toString(16),t=Math.floor(9e3*Math.random())+1e3,a={id:"batch-".concat(Date.now()),cropType:P,quantity:parseFloat(M)||500,unit:"kg",harvestDate:H,qualityGrade:"Organic"===F?"Specialty Grade A":"Grade B - Commercial",farmLocation:V,visualProofs:ei.length>0?ei:["harvest_proof_photo.jpg"],labResultsName:Q||"lab_analysis_report.pdf",certifications:s,mintedAt:new Date().toISOString(),tokenId:"#AGT-".concat(t),transactionHash:"0x".concat(e,"d98a2fe67d9834aaef0c0d7cd9a88ad3b1c"),status:"Minted",pricePerUnit:P.includes("Coffee")?4.9:P.includes("Cocoa")?6.1:2.5,originCountry:P.includes("Coffee")?"Ethiopia":P.includes("Cocoa")?"Ivory Coast":P.includes("Maize")?"USA":"Madagascar",complianceCheck:"OK",complianceDetails:"Verification approved. Safe distance from primary high-conservation forest line.",farmerAddress:"0x71C2d8f921d7b382C8AECBcdA596fd79b844F2",estimatedGas:"0.00042 ETH"};r(a),eS(a),S(!1),T(!0)},1800)},className:"grid grid-cols-1 md:grid-cols-12 gap-6 items-start",children:[(0,s.jsxs)("div",{className:"md:col-span-8 space-y-6",children:[(0,s.jsxs)("div",{className:"bg-white border border-border rounded-2xl shadow-3xs p-6 space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5 pb-4 border-b border-border",children:[(0,s.jsx)("div",{className:"p-2 bg-primary rounded-lg text-white",children:(0,s.jsx)(l.A,{size:16})}),(0,s.jsx)("h3",{className:"font-display text-lg font-bold text-[#00270f]",children:"Batch Details"})]}),(0,s.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5 text-xs font-bold",children:[(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("label",{className:"text-muted-foreground uppercase tracking-wider text-[10px]",children:"CROP TYPE"}),(0,s.jsxs)("select",{value:P,onChange:e=>L(e.target.value),required:!0,className:"p-3 bg-muted/70 border border-[#c1c9bf]/80 focus:border-[#113e21] focus:ring-1 focus:ring-[#113e21] rounded-xl text-xs font-semibold text-foreground transition-all cursor-pointer",children:[(0,s.jsx)("option",{value:"",children:"Select crop type..."}),(0,s.jsx)("option",{value:"Coffee (Arabica)",children:"Coffee (Arabica)"}),(0,s.jsx)("option",{value:"Cocoa",children:"Cocoa"}),(0,s.jsx)("option",{value:"Maize",children:"Maize"}),(0,s.jsx)("option",{value:"Vanilla Beans",children:"Vanilla Beans"}),(0,s.jsx)("option",{value:"Sorghum Grains",children:"Sorghum Grains"}),(0,s.jsx)("option",{value:"Other",children:"Other"})]}),"Other"===P&&(0,s.jsxs)("div",{className:"flex flex-col gap-1 mt-1 animate-in fade-in duration-200",children:[(0,s.jsx)("label",{className:"text-[10px] font-extrabold uppercase tracking-wide text-primary",children:"Please specify crop type *"}),(0,s.jsx)("input",{type:"text",required:!0,autoComplete:"off",placeholder:"Please specify crop type...",value:R,onChange:e=>O(e.target.value),className:"p-2.5 bg-white border border-[#113e21] rounded-xl text-xs font-semibold text-foreground outline-none focus:ring-1 focus:ring-[#113e21]"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("label",{className:"text-muted-foreground uppercase tracking-wider text-[10px]",children:"QUANTITY (KG)"}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{type:"number",step:"any",min:"0.1",required:!0,autoComplete:"off",value:M,onChange:e=>G(e.target.value),placeholder:"e.g. 500.00",className:"w-full p-3 bg-muted/70 border border-[#c1c9bf]/80 focus:border-[#113e21] focus:ring-1 focus:ring-[#113e21] rounded-xl text-xs font-mono font-bold text-foreground transition-all"}),(0,s.jsx)("span",{className:"absolute right-4.5 top-3.5 text-[9px] text-slate-454 font-extrabold font-sans text-muted-foreground uppercase",children:"KG"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("label",{className:"text-muted-foreground uppercase tracking-wider text-[10px]",children:"HARVEST DATE"}),(0,s.jsx)("input",{type:"date",required:!0,value:H,onChange:e=>U(e.target.value),className:"p-3 bg-muted/70 border border-[#c1c9bf]/80 focus:border-[#113e21] focus:ring-1 focus:ring-[#113e21] rounded-xl text-xs font-semibold text-slate-705 transition-all text-muted-foreground"})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,s.jsx)("label",{className:"text-muted-foreground uppercase tracking-wider text-[10px]",children:"FARMING METHOD"}),(0,s.jsxs)("select",{value:F,onChange:e=>B(e.target.value),required:!0,className:"p-3 bg-muted/70 border border-[#c1c9bf]/80 focus:border-[#113e21] focus:ring-1 focus:ring-[#113e21] rounded-xl text-xs font-semibold text-slate-850 transition-all cursor-pointer",children:[(0,s.jsx)("option",{value:"",children:"Select farming method..."}),(0,s.jsx)("option",{value:"Organic",children:"Organic"}),(0,s.jsx)("option",{value:"Conventional",children:"Conventional"}),(0,s.jsx)("option",{value:"Biodynamic",children:"Biodynamic"}),(0,s.jsx)("option",{value:"Fair Trade Traced",children:"Fair Trade Traced"}),(0,s.jsx)("option",{value:"Other",children:"Other"})]}),"Other"===F&&(0,s.jsxs)("div",{className:"flex flex-col gap-1 mt-1 animate-in fade-in duration-200",children:[(0,s.jsx)("label",{className:"text-[10px] font-extrabold uppercase tracking-wide text-primary",children:"Please specify farming method *"}),(0,s.jsx)("input",{type:"text",required:!0,autoComplete:"off",placeholder:"Please specify farming method...",value:q,onChange:e=>I(e.target.value),className:"p-2.5 bg-white border border-[#113e21] rounded-xl text-xs font-semibold text-foreground outline-none focus:ring-1 focus:ring-[#113e21]"})]})]}),(0,s.jsxs)("div",{className:"flex flex-col gap-1.5 sm:col-span-2",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center text-[10px] text-muted-foreground",children:[(0,s.jsx)("span",{className:"uppercase tracking-wider",children:"Origin Location Address"}),(0,s.jsx)("button",{type:"button",onClick:()=>{_("Latitude: 6.7451\xb0 N, Longitude: 38.4123\xb0 E (Sidama Forest Ridge)"),alert("Secured live GPS locator link committed!")},className:"text-primary hover:underline font-bold",children:"Locate current Farm GPS"})]}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("input",{type:"text",required:!0,value:V,onChange:e=>_(e.target.value),placeholder:"e.g. Highland Ridge Sector 4, Sidama, Ethiopia",className:"w-full p-3 bg-muted/70 border border-[#c1c9bf]/80 focus:border-[#113e21] focus:ring-1 focus:ring-[#113e21] rounded-xl text-xs font-medium text-foreground pr-12 transition-all"}),(0,s.jsx)(o.A,{size:14,className:"absolute right-4 top-3.5 text-muted-foreground"})]})]})]})]}),(0,s.jsxs)("div",{className:"bg-white border border-border rounded-2xl shadow-3xs p-6 space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5 pb-4 border-b border-border",children:[(0,s.jsx)("div",{className:"p-2 bg-primary rounded-lg text-white",children:(0,s.jsx)(d,{size:16})}),(0,s.jsx)("h3",{className:"font-display text-lg font-bold text-[#00270f]",children:"Visual Evidence"})]}),(0,s.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:"Upload or snap up to 10 real-time photos of the raw agricultural produce, farm operations, and packaging boxes to lock verified proof on-chain."}),(0,s.jsxs)("div",{className:"border border-border rounded-xl bg-muted/70 p-4 space-y-3.5",children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("div",{className:"p-1.5 bg-primary/10 text-primary rounded-lg",children:(0,s.jsx)(c.A,{size:14})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-xs font-bold text-[#00270f] block",children:"Snap Live Harvest Photos"}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground font-semibold uppercase tracking-wider block",children:"Verifiable On-Field Device Lens"})]})]}),ec?(0,s.jsx)("button",{type:"button",onClick:()=>
1{eh&&(eh.getTracks().forEach(e=>e.stop()),eb(null)),ey.current&&(ey.current.getTracks().forEach(e=>e.stop()),ey.current=null),ex(!1),em(!1),ef(null)},className:"text-[10px] font-bold text-rose-605 bg-rose-50 text-rose-700 hover:bg-rose-100/70 border border-rose-250 py-1.5 px-3 rounded-lg transition-colors cursor-pointer select-none",children:"Deactivate Camera"}):(0,s.jsxs)("button",{type:"button",onClick:ev,className:"text-[10px] font-bold bg-primary hover:bg-primary/90 text-primary-foreground py-1.5 px-3 rounded-lg transition-all cursor-pointer flex items-center justify-center gap-1 select-none",children:[(0,s.jsx)(c.A,{size:11,className:"shrink-0"}),(0,s.jsx)("span",{children:"Open Device Camera"})]})]}),ec&&(0,s.jsxs)("div",{className:"space-y-3 animate-in slide-in-from-top-1.5 duration-200",children:[eu&&(0,s.jsxs)("div",{className:"h-44 sm:h-52 bg-muted rounded-xl flex flex-col items-center justify-center text-muted-foreground gap-1.5 border border-border animate-pulse",children:[(0,s.jsx)(x.A,{size:22,className:"animate-spin text-primary"}),(0,s.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider text-slate-450",children:"Requesting hardware stream..."})]}),ep&&(0,s.jsxs)("div",{className:"p-4 bg-rose-50/50 border border-rose-205 text-rose-900 rounded-xl text-xs space-y-2",children:[(0,s.jsxs)("p",{className:"font-bold flex items-center gap-1.5 leading-none",children:[(0,s.jsx)(u.A,{size:14,className:"text-rose-600 shrink-0"}),(0,s.jsx)("span",{children:"Camera Access Prevented"})]}),(0,s.jsx)("p",{className:"font-normal text-muted-foreground leading-relaxed text-[11px]",children:ep}),(0,s.jsxs)("div",{className:"flex items-center gap-2 pt-1",children:[(0,s.jsxs)("button",{type:"button",onClick:ev,className:"text-[10px] bg-rose-100 hover:bg-rose-150 text-rose-800 font-bold px-2.5 py-1 rounded-md flex items-center gap-1 transition-colors border border-rose-200 cursor-pointer",children:[(0,s.jsx)(m.A,{size:10})," Try Re-initializing"]}),(0,s.jsxs)("button",{type:"button",onClick:()=>{let e=document.createElement("canvas");e.width=640,e.height=480;let t=e.getContext("2d");if(t){let r=t.createLinearGradient(0,0,640,480);r.addColorStop(0,"#113e21"),r.addColorStop(1,"#00270f"),t.fillStyle=r,t.fillRect(0,0,640,480),t.fillStyle="#bdefc5",t.font="bold 24px monospace",t.fillText("AGRIHASH HARVEST BATCH",160,220),t.font="16px sans-serif",t.fillStyle="#94a3b8",t.fillText("SIMULATED CAMERA SNAPSHOT • ".concat(new Date().toLocaleTimeString()),130,260);let s=e.toDataURL("image/jpeg",.85);ei.length<10&&el(e=>[...e,s])}},className:"text-[10px] bg-primary hover:bg-primary/90 text-primary-foreground font-bold px-2.5 py-1 rounded-md flex items-center gap-1 transition-colors cursor-pointer",children:[(0,s.jsx)(c.A,{size:10})," Add Simulated Photo Snapshot"]})]})]}),!eu&&!ep&&(0,s.jsxs)("div",{className:"relative overflow-hidden rounded-xl bg-black border border-slate-350 shadow-inner group max-w-md mx-auto aspect-video",children:[(0,s.jsx)("canvas",{ref:ej,className:"hidden"}),(0,s.jsx)("video",{ref:eg,playsInline:!0,muted:!0,className:"w-full h-full object-cover bg-black"}),(0,s.jsxs)("div",{className:"absolute bottom-3.5 left-3.5 right-3.5 flex items-center justify-between bg-black/60 backdrop-blur-md p-2.5 rounded-xl border border-white/10 text-white",children:[(0,s.jsxs)("span",{className:"text-[10px] font-bold tracking-wider text-emerald-400 uppercase flex items-center gap-1.5 px-1.5",children:[(0,s.jsx)("span",{className:"w-1.5 h-1.5 bg-emerald-500 rounded-full animate-ping shrink-0"}),"Camera Active"]}),(0,s.jsxs)("button",{type:"button",onClick:()=>{if(eg.current&&ej.current){let e=eg.current,t=ej.current,r=t.getContext("2d");if(r){t.width=e.videoWidth||640,t.height=e.videoHeight||480,r.drawImage(e,0,0,t.width,t.height);let s=t.toDataURL("image/jpeg",.85);ei.length<10&&el(e=>[...e,s])}}},disabled:ei.length>=10,className:"bg-primary hover:bg-primary/90 disabled:opacity-50 text-primary-foreground text-xs font-bold px-4 py-2 rounded-lg flex items-center gap-1.5 transition-transform active:scale-95 cursor-pointer shadow-sm",children:[(0,s.jsx)(c.A,{size:13,className:"shrink-0"}),(0,s.jsx)("span",{children:"Snap Photo"})]})]})]})]})]}),(0,s.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-5 ga
1p-3.5 pt-1.5",children:[(0,s.jsxs)("div",{onDragEnter:eM,onDragOver:eM,onDragLeave:eM,onDrop:e=>{if(e.preventDefault(),e.stopPropagation(),ed(!1),e.dataTransfer.files&&e.dataTransfer.files[0]){let t=e.dataTransfer.files[0],r=URL.createObjectURL(t);ei.length<10&&el([...ei,r])}},onClick:()=>{var e;return null==(e=eN.current)?void 0:e.click()},className:"\n                  aspect-square rounded-xl border-2 border-dashed flex flex-col items-center justify-center p-2.5 cursor-pointer transition-all text-center select-none\n                  ".concat(eo?"border-[#113e21] bg-[#bdefc5]/20 text-[#00270f]":"border-[#c1c9bf] bg-muted hover:bg-muted/70 border-border","\n                "),children:[(0,s.jsx)("input",{type:"file",ref:eN,onChange:e=>{if(e.target.files&&e.target.files[0]){let t=e.target.files[0],r=URL.createObjectURL(t);ei.length<10&&el([...ei,r])}},accept:"image/*",className:"hidden"}),(0,s.jsx)("div",{className:"p-1.5 bg-primary/10 rounded-full mb-1",children:(0,s.jsx)(p.A,{size:14,className:"text-primary"})}),(0,s.jsx)("span",{className:"text-[10px] font-bold text-[#00270f]",children:"Upload"})]}),[0,1,2,3].map(e=>{let t=ei[e];return t?(0,s.jsxs)("div",{className:"aspect-square rounded-xl overflow-hidden border border-border relative group bg-muted",children:[(0,s.jsx)("img",{src:t,alt:"Harvest crop",className:"w-full h-full object-cover",referrerPolicy:"no-referrer"}),(0,s.jsx)("button",{type:"button",onClick:()=>{el(ei.filter((t,r)=>r!==e))},className:"absolute top-1.5 right-1.5 p-1 bg-black/60 hover:bg-black/85 text-white rounded-full transition-colors opacity-90 sm:opacity-0 group-hover:opacity-100 cursor-pointer",title:"Delete photo attachment",children:(0,s.jsx)(f.A,{size:10})})]},e):(0,s.jsx)("div",{className:"aspect-square rounded-xl border border-border bg-muted/60 flex items-center justify-center border-dashed",children:(0,s.jsx)(d,{size:14,className:"text-slate-300"})},e)})]})]})]}),(0,s.jsx)("div",{className:"md:col-span-4 space-y-6",children:(0,s.jsxs)("div",{className:"bg-white border border-border rounded-2xl shadow-3xs p-6 space-y-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2.5 pb-4 border-b border-border",children:[(0,s.jsx)("div",{className:"p-2 bg-primary rounded-lg text-white",children:(0,s.jsx)(h.A,{size:16})}),(0,s.jsx)("h3",{className:"font-display text-lg font-bold text-[#00270f]",children:"Certifications"})]}),(0,s.jsxs)("div",{className:"space-y-6",children:[(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-xs font-bold text-foreground leading-none",children:"Organic Certified"}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground mt-1 font-semibold block uppercase",children:"USDA / EU Organic"})]}),(0,s.jsx)("button",{type:"button",onClick:()=>{let e=!$;W(e),!e&&(Z(null),ew.current&&(ew.current.value=""))},className:"relative inline-flex h-5 w-10 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ".concat($?"bg-primary":"bg-slate-200"),children:(0,s.jsx)("span",{className:"pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow-xs transition duration-200 ease-in-out ".concat($?"translate-x-5":"translate-x-0")})})]}),(0,s.jsx)("input",{type:"file",ref:ew,onChange:e=>eG("organic",e),accept:".pdf",className:"hidden",disabled:!$}),(0,s.jsxs)("button",{type:"button",onClick:()=>{if($){var e;null==(e=ew.current)||e.click()}},disabled:!$,className:"w-full flex items-center justify-between p-3 border border-dashed rounded-xl text-left transition-all text-[11px] ".concat($?"bg-muted hover:bg-muted/85 border-border cursor-pointer text-muted-foreground":"bg-muted/60 border-border text-slate-405 cursor-not-allowed opacity-60"),children:[(0,s.jsxs)("span",{className:"truncate font-bold flex items-center gap-2",children:[(0,s.jsx)(l.A,{size:12,className:$?"text-primary":"text-muted-foreground"}),$?Q||"Upload PDF Certificate":"Turn on toggle first to upload certificate"]}),$&&Q?(0,s.jsx)(b.A,{size:12,className:"text-primary shrink-0"}):(0,s.jsx)(p.A,{size:12,className:"text-muted-foreground shrink-0"})]})]}),(0,s.jsxs)("div",{className:"space-y-2.5 pt-4.5 border-t border-border",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-xs font-bold text-foreground leading-none",children:"Fair Trade"}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground mt-1 font-semibold block uppercase",children:"Ethics and 
1Sustainability"})]}),(0,s.jsx)("button",{type:"button",onClick:()=>{let e=!J;X(e),!e&&(et(null),ek.current&&(ek.current.value=""))},className:"relative inline-flex h-5 w-10 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ".concat(J?"bg-primary":"bg-slate-200"),children:(0,s.jsx)("span",{className:"pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow-xs transition duration-200 ease-in-out ".concat(J?"translate-x-5":"translate-x-0")})})]}),(0,s.jsx)("input",{type:"file",ref:ek,onChange:e=>eG("fairtrade",e),accept:".pdf",className:"hidden",disabled:!J}),(0,s.jsxs)("button",{type:"button",onClick:()=>{if(J){var e;null==(e=ek.current)||e.click()}},disabled:!J,className:"w-full flex items-center justify-between p-3 border border-dashed rounded-xl text-left transition-all text-[11px] ".concat(J?"bg-muted hover:bg-muted/85 border-border cursor-pointer text-muted-foreground":"bg-muted/60 border-border text-slate-450 cursor-not-allowed opacity-60"),children:[(0,s.jsxs)("span",{className:"truncate font-bold flex items-center gap-2",children:[(0,s.jsx)(l.A,{size:12,className:J?"text-primary":"text-muted-foreground"}),J?ee||"Upload PDF Certificate":"Turn on toggle first to upload certificate"]}),J&&ee?(0,s.jsx)(b.A,{size:12,className:"text-primary shrink-0"}):(0,s.jsx)(p.A,{size:12,className:"text-muted-foreground shrink-0"})]})]}),(0,s.jsxs)("div",{className:"space-y-2.5 pt-4.5 border-t border-border",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:"text-xs font-bold text-foreground leading-none",children:"Global GAP"}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground mt-1 font-semibold block uppercase",children:"Good Agricultural Practices"})]}),(0,s.jsx)("button",{type:"button",onClick:()=>{let e=!er;es(e),!e&&(en(null),eA.current&&(eA.current.value=""))},className:"relative inline-flex h-5 w-10 shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none ".concat(er?"bg-primary":"bg-slate-200"),children:(0,s.jsx)("span",{className:"pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow-xs transition duration-200 ease-in-out ".concat(er?"translate-x-5":"translate-x-0")})})]}),(0,s.jsx)("input",{type:"file",ref:eA,onChange:e=>eG("globalgap",e),accept:".pdf",className:"hidden",disabled:!er}),(0,s.jsxs)("button",{type:"button",onClick:()=>{if(er){var e;null==(e=eA.current)||e.click()}},disabled:!er,className:"w-full flex items-center justify-between p-3 border border-dashed rounded-xl text-left transition-all text-[11px] ".concat(er?"bg-muted hover:bg-muted/85 border-border cursor-pointer text-muted-foreground":"bg-muted/60 border-border text-slate-450 cursor-not-allowed opacity-60"),children:[(0,s.jsxs)("span",{className:"truncate font-bold flex items-center gap-2",children:[(0,s.jsx)(l.A,{size:12,className:er?"text-primary":"text-muted-foreground"}),er?ea||"Upload PDF Certificate":"Turn on toggle first to upload certificate"]}),er&&ea?(0,s.jsx)(b.A,{size:12,className:"text-primary shrink-0"}):(0,s.jsx)(p.A,{size:12,className:"text-muted-foreground shrink-0"})]})]})]})]})}),(0,s.jsxs)("div",{id:"agri-ai-comparer-section",className:"col-span-12 bg-muted border border-[#c1c9bf]/70 rounded-2xl p-6 shadow-xs space-y-6 animate-in fade-in duration-300",children:[(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-4 border-b border-border",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("div",{className:"p-2 bg-primary text-emerald-100 rounded-xl",children:(0,s.jsx)(g.A,{size:20,className:"animate-pulse text-primary-foreground"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-display text-lg font-bold text-[#00270f]",children:"AgriAI™ Comparative Ledger Benchmarking"}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground",children:"Cross-examine draft harvest variables with active decentralized batches"})]})]}
1),(0,s.jsx)("span",{className:"self-start sm:self-center bg-primary/10 text-primary text-[10px] font-bold px-2.5 py-1 rounded-full uppercase tracking-widest leading-none",children:"Optimization Core"})]}),!ez&&!eP&&(0,s.jsxs)("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-6 bg-white p-5 rounded-xl border border-border",children:[(0,s.jsxs)("div",{className:"space-y-1.5 max-w-xl",children:[(0,s.jsx)("span",{className:"text-[10px] uppercase tracking-wider text-amber-700 font-extrabold block",children:"Baseline Comparison Ready"}),(0,s.jsxs)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:["Before finalizing your tokenized mint, our engine will compare your local parameters (Crop Type, Volume, Coordinates, and Certifications) against the active ",(0,s.jsxs)("strong",{children:["Highland cooperatives ledger ",t.length," baseline lots"]})," to recommend optimal value positioning and conclude which batch holds maximum market superiority."]})]}),(0,s.jsxs)("button",{type:"button",onClick:()=>{if(!P)return void alert("Please select a crop type first to run comparative intelligence benchmark.");if(!M)return void alert("Please enter a quantity in KG to compare yield characteristics.");eT(!0),eL(!1);let e=["Gathering Candidate Agronomic Parameters...","Extracting Historic Ledger Benchmarks...","Verifying Deforestation Compliance and EUDR coordinates...","Simulating Regional Market Indexes...","Finalizing Concluded Best Product Grade..."],r=0;eE(e[0]);let s=setInterval(()=>{if(++r<e.length)eE(e[r]);else if(clearInterval(s),eT(!1),eL(!0),$&&J)eO("candidate-lot");else{var a;eO((null==(a=t[0])?void 0:a.id)||"batch-1")}},600)},className:"shrink-0 flex items-center justify-center gap-2 px-5 py-3 bg-primary text-emerald-100 hover:bg-primary/90 font-bold rounded-xl transition-all shadow-sm cursor-pointer hover:scale-[1.01]",children:[(0,s.jsx)(N.A,{size:14}),(0,s.jsx)("span",{children:"Compare & Analyze Batches"})]})]}),ez&&(0,s.jsxs)("div",{className:"bg-white p-6 rounded-xl border border-border flex flex-col items-center justify-center text-center space-y-4 py-10",children:[(0,s.jsx)(x.A,{size:36,className:"text-primary animate-spin"}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("h4",{className:"text-sm font-bold text-[#00270f] uppercase tracking-wide",children:"AgriAI Engine Active"}),(0,s.jsx)("p",{className:"font-mono text-xs text-primary",children:eD})]}),(0,s.jsx)("div",{className:"w-56 bg-muted h-1 rounded-full overflow-hidden",children:(0,s.jsx)("div",{className:"bg-primary h-full animate-pulse rounded-full w-2/3"})})]}),eP&&(0,s.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6 animate-in fade-in slide-in-from-top-1 duration-400",children:[(0,s.jsxs)("div",{className:"lg:col-span-7 bg-white rounded-xl border border-border overflow-hidden",children:[(0,s.jsxs)("div",{className:"px-4 py-3 bg-muted border-b border-border flex items-center justify-between",children:[(0,s.jsx)("span",{className:"text-xs font-bold text-[#00270f] uppercase tracking-wider",children:"Side-by-Side Specifications"}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground font-mono",children:"Ledger Node: v2.5a"})]}),(0,s.jsx)("div",{className:"overflow-x-auto",children:(0,s.jsxs)("table",{className:"w-full text-left text-xs",children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{className:"border-b border-border bg-muted text-muted-foreground font-bold",children:[(0,s.jsx)("th",{className:"p-3",children:"Attribute"}),(0,s.jsx)("th",{className:"p-3 text-foreground font-bold bg-muted",children:"Current Draft Lot"}),(0,s.jsx)("th",{className:"p-3 text-primary bg-primary/5",children:"Best Historical Lot"})]})}),(0,s.jsxs)("tbody",{className:"divide-y divide-slate-100 font-mono text-foreground",children:[(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"p-3 font-sans font-semibold text-muted-foreground",children:"Crop Type"}),(0,s.jsx)("td",{className:"p-3",children:P||"Not entered"}),(0,s.jsx)("td",{className:"p-3 text-primary font-bold",children:"Coffee (Arabica)"})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"p-3 font-sans font-semibold text-muted-foreground",children:"Lot Weight (KG)"}),(0,s.jsx)("td",{className:"p-3",children:M?Number(M).toLocaleStr
1ing()+" KG":"0 KG"}),(0,s.jsx)("td",{className:"p-3",children:"1,200 KG"})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"p-3 font-sans font-semibold text-muted-foreground",children:"Farming Method"}),(0,s.jsx)("td",{className:"p-3 ".concat("Organic"===F?"text-primary font-bold":""),children:F||"Not selected"}),(0,s.jsxs)("td",{className:"p-3 text-primary font-extrabold flex items-center gap-1",children:[(0,s.jsx)(j.A,{size:11})," Organic"]})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"p-3 font-sans font-semibold text-muted-foreground",children:"Certificates"}),(0,s.jsxs)("td",{className:"p-3 font-bold",children:[+!!$+ +!!J+ +!!er," / 3"]}),(0,s.jsx)("td",{className:"p-3 text-primary font-bold",children:"3 / 3 (USDA, FT, GG)"})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"p-3 font-sans font-semibold text-muted-foreground",children:"EUDR Compliance"}),(0,s.jsx)("td",{className:"p-3 font-semibold text-primary uppercase",children:V?"OK":"PENDING"}),(0,s.jsxs)("td",{className:"p-3 text-primary font-extrabold flex items-center gap-1",children:[(0,s.jsx)(j.A,{size:11})," OK"]})]}),(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{className:"p-3 font-sans font-semibold text-muted-foreground",children:"Wholesale Valuation"}),(0,s.jsxs)("td",{className:"p-3 bg-emerald-50 text-base font-bold text-primary",children:["$",$&&J?"4.90":"3.80",(0,s.jsx)("span",{className:"text-xs",children:"/kg"})]}),(0,s.jsxs)("td",{className:"p-3 bg-primary/10/50 text-base font-extrabold text-primary",children:["$4.90",(0,s.jsx)("span",{className:"text-xs",children:"/kg"})]})]})]})]})})]}),(0,s.jsx)("div",{className:"lg:col-span-5 flex flex-col justify-between gap-4",children:(0,s.jsxs)("div",{className:"p-5 rounded-xl border flex flex-col h-full justify-between transition-all ".concat("candidate-lot"===eR?"bg-emerald-50/50 border-emerald-500 shadow-sm":"bg-amber-55 bg-amber-50/40 border-amber-300"),children:[(0,s.jsxs)("div",{className:"space-y-3",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between",children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 text-amber-805 text-amber-900 bg-amber-100 border border-amber-200 px-2 py-0.5 rounded-full text-[9px] font-bold uppercase tracking-wider",children:[(0,s.jsx)(y.A,{size:10})," Concluded Champion Lot"]}),(0,s.jsxs)("span",{className:"text-xs font-mono text-muted-foreground",children:["Audit Score: ","candidate-lot"===eR?"100/100":"94/100"]})]}),(0,s.jsxs)("div",{className:"space-y-1",children:[(0,s.jsx)("h4",{className:"font-display text-base font-bold text-slate-900 leading-tight",children:"candidate-lot"===eR?"✨ Your Candidate Lot wins!":"\uD83C\uDFC6 Historical Lot #4 Wins"}),(0,s.jsx)("p",{className:"text-[11px] text-muted-foreground font-medium",children:"Verified Coffee Basket Sidama Specialty Co-op"})]}),(0,s.jsx)("p",{className:"text-xs text-muted-foreground leading-relaxed",children:"candidate-lot"===eR?"Your crop draft matches absolute premium specs. Valid agricultural coordinates, USDA Organic certification, and Fair Trade ethics grant access to supreme direct-trade global markets, commanding maximum $4.90/kg wholesale value!":"Historical Lot #4 retains the lead. It yields higher wholesale premiums because it carries complete Organic and Fair Trade certifications. Upgrading your draft with PDF approvals instantly unlocks the top $4.90/kg tier."})]}),"candidate-lot"!==eR&&(0,s.jsxs)("button",{type:"button",onClick:()=>{L("Coffee (Arabica)"),G("1200.00"),B("Organic"),_("Latitude: 6.7451\xb0 N, Longitude: 38.4123\xb0 E (Sidama Forest Ridge)"),W(!0),Z("usda_organic_cert_2026.pdf"),X(!0),et("fairtrade_compliance_approved.pdf"),es(!0),en("globalgap_certified_audit.pdf"),el(["https://images.unsplash.com/photo-1541432901042-2d8bd64b4a9b?w=300&auto=format&fit=crop&q=80","https://images.unsplash.com/photo-1509042239860-f550ce710b93?w=300&auto=format&fit=crop&q=80"]),eT(!0),eL(!1),eE("Applying Premium High-Yield Configurations..."),setTimeout(()=>{eT(!1),eL(!0),eO("candidate-lot")},1e3)},className:"mt-4 w-full py-2.5 bg-gradient-to-r from-amber-600 to-[#113e21] hover:from-amber-700 hover:to-[#00270f] text-white rounded-lg text-xs font-extrabold flex items-center justify-center gap-1.5 transition-all shadow-sm hover:-translate-y-0.5 cursor-pointer",children:[(0,s.jsx)(g.A,{size:11,className:"text-yellow-300 shrink-0 select-none"}),(0,s.jsx)("span",{children:"✨ Auto-Optimize Draft to Match Be
1st Lot"})]}),"candidate-lot"===eR&&(0,s.jsxs)("div",{className:"mt-4 p-2.5 bg-primary/10/70 text-primary rounded-lg text-[10px] font-bold text-center flex items-center justify-center gap-1.5",children:[(0,s.jsx)(h.A,{size:12,className:"text-primary"}),(0,s.jsx)("span",{children:"Draft matches premium ledger benchmark. Ready to token-mint!"})]})]})})]})]}),(0,s.jsxs)("div",{id:"sticky-mint-gas-bar",className:"col-span-12 bg-white rounded-2xl border border-border/85 p-5 shadow-xs flex flex-col md:flex-row justify-between items-center gap-4 animate-in slide-in-from-bottom-2 duration-300",children:[(0,s.jsxs)("div",{className:"flex items-center gap-3.5 w-full md:w-auto",children:[(0,s.jsx)("div",{className:"p-2.5 bg-muted rounded-xl border border-border text-muted-foreground flex justify-center items-center",children:(0,s.jsx)(g.A,{size:16,className:"text-emerald-800"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"text-[9px] uppercase tracking-wider text-muted-foreground font-bold block",children:"Estimated Gas Fee"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)("span",{className:"font-mono text-xs sm:text-sm font-bold text-foreground",children:"0.00042 ETH"}),(0,s.jsx)("span",{className:"text-[10px] text-muted-foreground font-semibold",children:"(~$0.84 USD)"}),(0,s.jsxs)("div",{className:"flex items-center gap-1 bg-emerald-50 text-emerald-800 text-[9px] font-bold px-1.5 py-0.5 rounded-full uppercase tracking-wider",children:[(0,s.jsx)("span",{className:"w-1 h-1 bg-emerald-500 rounded-full animate-pulse"}),"Base Network Live"]})]})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3.5 justify-end w-full md:w-auto text-xs font-bold",children:[(0,s.jsx)("button",{type:"button",onClick:()=>{alert("Agronomic ledger draft variables saved locally successfully!")},className:"px-5 py-3 hover:bg-accent rounded-xl text-muted-foreground transition-colors cursor-pointer",children:"Save Draft"}),(0,s.jsx)("button",{type:"submit",disabled:C,className:"px-6 py-3 bg-primary hover:bg-primary/90 text-primary-foreground font-extrabold rounded-xl shadow-sm transition-transform hover:-translate-y-0.5 cursor-pointer disabled:opacity-50 inline-flex items-center gap-2",children:C?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x.A,{size:13,className:"animate-spin"}),"Gas Committing..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(N.A,{size:13}),"Mint Batch NFT"]})})]})]})]}),z&&eC&&(0,s.jsx)("div",{id:"minting-success-overlay",className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-md p-4 animate-in fade-in duration-300",children:(0,s.jsxs)("div",{className:"bg-white max-w-lg w-full rounded-2xl shadow-xl overflow-hidden animate-in zoom-in duration-350",children:[(0,s.jsxs)("div",{className:"bg-primary/90 p-10 flex flex-col items-center justify-center text-center relative text-white",children:[(0,s.jsx)("div",{className:"w-16 h-16 bg-[#bdefc5] rounded-full flex items-center justify-center mb-5 text-[#00270f] shadow-lg",children:(0,s.jsx)(b.A,{size:36})}),(0,s.jsx)("h3",{className:"font-display text-2xl font-bold tracking-tight mb-1",children:"Batch Minted Successfully!"}),(0,s.jsx)("p",{className:"text-emerald-300 text-xs font-semibold tracking-wider uppercase",children:"Twin entry finalized on Base L2 Testnet"})]}),(0,s.jsxs)("div",{className:"p-6 space-y-6",children:[(0,s.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,s.jsxs)("div",{className:"bg-muted p-4 rounded-xl border border-border",children:[(0,s.jsx)("p",{className:"text-[9px] text-muted-foreground uppercase font-bold tracking-wider",children:"Nft Token ID"}),(0,s.jsx)("p",{className:"font-bold text-[#00270f] font-mono mt-1 text-sm",children:eC.tokenId})]}),(0,s.jsxs)("div",{className:"bg-muted p-4 rounded-xl border border-border",children:[(0,s.jsx)("p",{className:"text-[9px] text-muted-foreground uppercase font-bold tracking-wider",children:"Transaction hash"}),(0,s.jsxs)("div",{className:"flex items-center gap-1 mt-1 text-xs font-mono font-bold text-blue-700",children:[(0,s.jsxs)("span",{children:[eC.transactionHash.substring(0,12),"..."]}),(0,s.jsx)("button",{className:"text-muted-foreground hover:text-foreground p-0.5 cursor-pointer",onClick:()=>{var e;return e=eC.transactionHash,void(navigator.clipboard.writeText(e),E(!0),setTimeout(()=>E(!1),2e3))},title:"Copy transaction hash",children:D?(0,s.jsx)(j.A,{size:11,className:"text-success"}):(0,s.jsx)(v.A,{size:11})})]})]})]}),(0,s.jsxs)("div",{className:"space-y-2.5",children:[(0,s.jsxs)("button",{onClick:()=>{T(!1),k("supplychain")},className:"w-full py-3 bg-primary hover:bg-primary/90 text-primary-foreground font-bold rounded-xl text-sm transition-all flex items-center justify-center gap-2 shadow-2xs cursor-pointer hover:shadow-xs",children:[(0,s.jsx)(N.A,{size:14}),"View Provenance Trace Map"]}),(0,s.jsx)("button",{onClick:()=>{T(!1),A(eC.id),k("batches")},className:"w-full py-3 border border-slate-250 hover:bg-accent text-foreground font-bold rounded-xl text-sm transition-all cursor-pointer",children:"Go to my Batch Registry"})]})]})]})})]})}},52472:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(71847).A)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},75426:(e,t,r)=>{r.d(t,{A:()=>s});
1let s=(0,r(71847).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},89715:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(71847).A)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},95664:(e,t,r)=>{r.d(t,{A:()=>s});let s=(0,r(71847).A)("camera",[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]])}}]);

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.