PageSourceSearch

https://genaix.org/assets/IndustryIntelligence-DZw4RZ3w.js

js genaix.org collected 2026-10-07 22:21:15 UTC 10,463 bytes, 11 lines download raw bytes

1import{p as w,r as I,N as A,j as e,S as f,f as R,R as L,K as E,C as n,a as c,c as y,e as N,B as o,F as D,v as P,s as F}from"./index-nbQLPUsP.js";import{u as M}from"./useMutation-a5sJEWHC.js";import{T,a as H,b as d,c as x}from"./tabs-DIsTv2CL.js";import{P as v}from"./progress-CDasyQJe.js";import{S as O}from"./SEOHead-PD39hXX2.js";import{F as B}from"./file-check-sg69JdL-.js";import{C as k}from"./clock-kZzggmxd.js";import{E as G}from"./external-link-CebresAU.js";import{H as V}from"./heart-CNCQxtVr.js";import{F as _}from"./factory-DyHCl34J.js";import{Z as $}from"./zap-BNo1Lq--.js";import{C as q}from"./circle-x-BosFV2jT.js";/**
2 * @license lucide-react v0.462.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const Z=w("Landmark",[["line",{x1:"3",x2:"21",y1:"22",y2:"22",key:"j8o0r"}],["line",{x1:"6",x2:"6",y1:"18",y2:"11",key:"10tf0k"}],["line",{x1:"10",x2:"10",y1:"18",y2:"11",key:"54lgf6"}],["line",{x1:"14",x2:"14",y1:"18",y2:"11",key:"380y"}],["line",{x1:"18",x2:"18",y1:"18",y2:"11",key:"1kevvc"}],["polygon",{points:"12 2 20 7 4 7",key:"jkujk7"}]]);/**
7 * @license lucide-react v0.462.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const z=w("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]),b=[{id:"healthcare",label:"Healthcare",icon:V,color:"text-red-500",desc:"HIPAA · FDA · HL7 FHIR"},{id:"finance",label:"Finance",icon:Z,color:"text-emerald-500",desc:"SOX · Basel III · PCI DSS"},{id:"manufacturing",label:"Manufacturing",icon:_,color:"text-orange-500",desc:"ISO 9001 · IEC 62443 · CMMC"},{id:"energy",label:"Energy",icon:$,color:"text-yellow-500",desc:"NERC CIP · ISO 50001"},{id:"retail",label:"Retail",icon:z,color:"text-purple-500",desc:"PCI DSS · CCPA · GDPR"}],U=r=>r==="critical"?"bg-red-500/10 text-red-600 border-red-500/20":r==="high"?"bg-orange-500/10 text-orange-600 border-orange-500/20":"bg-yellow-500/10 text-yellow-700 border-yellow-500/20",X=r=>r==="compliant"?e.jsx(P,{className:"h-4 w-4 text-emerald-500"}):r==="partial"?e.jsx(k,{className:"h-4 w-4 text-yellow-500"}):e.jsx(q,{className:"h-4 w-4 text-red-500"});function ne(){var h,u,p,g,j;const[r,C]=I.useState("healthcare"),{toast:m}=A(),l=M({mutationFn:async s=>{const{data:t,error:i}=await F.functions.invoke("industry-compliance-intel",{body:{vertical:s,companyName:"Enterprise"}});if(i)throw i;return t},onSuccess:()=>m({title:"Compliance scan complete",description:"Live regulatory data updated."}),onError:s=>m({title:"Scan failed",description:s.message,variant:"destructive"})}),a=l.data;return e.jsxs("div",{className:"min-h-screen bg-background",children:[e.jsx(O,{title:"Industry Intelligence | GenAIx Enterprise",description:"Deep-dive compliance intelligence for Healthcare, Finance, Manufacturing, Energy & Retail - AI governance tailored to your regulatory landscape."}),e.jsxs("div",{className:"max-w-7xl mx-auto px-4 py-8 space-y-8",children:[e.jsx("div",{className:"space-y-2",children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2.5 rounded-xl bg-primary/10",children:e.jsx(f,{className:"h-7 w-7 text-primary"})}),e.jsxs("div",{children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground tracking-tight",children:"Industry Compliance Intelligence"}),e.jsx("p",{className:"text-muted-foreground",children:"AI governance & regulatory monitoring by vertical"})]})]})}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-3",children:b.map(s=>{const t=s.icon,i=r===s.id;return e.jsxs("button",{onClick:()=>C(s.id),className:`flex flex-col items-center gap-2 p-4 rounded-xl border-2 transition-all duration-200 ${i?"border-primary bg-primary/5 shadow-md":"border-border hover:border-primary/40 bg-card"}`,children:[e.jsx(t,{className:`h-8 w-8 ${s.color}`}),e.jsx("span",{className:"font-semibold text-sm text-foreground",children:s.label}),e.jsx("span",{className:"text-[10px] text-muted-foreground text-center leading-tight",children:s.desc})]},s.id)})}),e.jsx("div",{className:"flex justify-center",children:e.jsxs(R,{size:"lg",onClick:()=>l.mutate(r),disabled:l.isPending,className:"px-8 gap-2",children:[l.isPending?e.jsx(L,{className:"h-4 w-4 animate-spin"}):e.jsx(E,{className:"h-4 w-4"}),l.isPending?"Scanning Regulations…":`Scan ${(h=b.find(s=>
11s.id===r))==null?void 0:h.label} Compliance`]})}),a&&e.jsxs(T,{defaultValue:"frameworks",className:"space-y-6",children:[e.jsxs(H,{className:"grid w-full grid-cols-3",children:[e.jsx(d,{value:"frameworks",children:"Compliance Frameworks"}),e.jsx(d,{value:"risks",children:"AI Risk Assessment"}),e.jsx(d,{value:"regulatory",children:"Regulatory Updates"})]}),e.jsx(n,{className:"border-primary/20 bg-gradient-to-r from-primary/5 to-transparent",children:e.jsxs(c,{className:"flex items-center justify-between p-6",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm text-muted-foreground font-medium",children:"AI Governance Score"}),e.jsxs("p",{className:"text-4xl font-bold text-foreground",children:[a.governanceScore,e.jsx("span",{className:"text-lg text-muted-foreground",children:"/100"})]})]}),e.jsxs("div",{className:"w-48",children:[e.jsx(v,{value:a.governanceScore,className:"h-3"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1 text-right",children:a.governanceScore>=80?"Excellent":a.governanceScore>=60?"Good - gaps remain":"Needs attention"})]})]})}),e.jsx(x,{value:"frameworks",className:"space-y-4",children:e.jsx("div",{className:"grid md:grid-cols-2 gap-4",children:(u=a.complianceModules)==null?void 0:u.map(s=>e.jsxs(n,{className:"hover:shadow-md transition-shadow",children:[e.jsx(y,{className:"pb-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs(N,{className:"text-base flex items-center gap-2",children:[X(s.status),s.framework]}),e.jsxs(o,{variant:"outline",className:s.aiRiskLevel==="high"?"border-red-300 text-red-600":s.aiRiskLevel==="medium"?"border-yellow-300 text-yellow-700":"border-emerald-300 text-emerald-600",children:[s.aiRiskLevel," AI risk"]})]})}),e.jsxs(c,{className:"space-y-3",children:[e.jsxs("div",{className:"flex justify-between text-sm",children:[e.jsx("span",{className:"text-muted-foreground",children:"Automation Opportunity"}),e.jsxs("span",{className:"font-semibold",children:[s.automationOpportunity,"%"]})]}),e.jsx(v,{value:s.automationOpportunity,className:"h-2"}),e.jsxs("div",{className:"flex justify-between text-xs text-muted-foreground",children:[e.jsxs("span",{children:["Last audit: ",new Date(s.lastAudit).toLocaleDateString()]}),e.jsxs("span",{children:["Next: ",new Date(s.nextReviewDate).toLocaleDateString()]})]})]})]},s.id))})}),e.jsx(x,{value:"risks",className:"space-y-4",children:(p=a.riskAssessments)==null?void 0:p.map(s=>{var t;return e.jsx(n,{className:"hover:shadow-md transition-shadow",children:e.jsx(c,{className:"p-5",children:e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex-1 space-y-2",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(D,{className:`h-4 w-4 ${s.severity==="critical"?"text-red-500":s.severity==="high"?"text-orange-500":"text-yellow-500"}`}),e.jsx("h3",{className:"font-semibold text-foreground",children:s.risk})]}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx(o,{className:U(s.severity),children:s.severity}),e.jsxs(o,{variant:"outline",className:"text-xs",children:["Likelihood: ",s.likelihood,"%"]}),e.jsx(o,{variant:"outline",className:"text-xs capitalize",children:s.mitigationStatus.replace("_"," ")})]}),e.jsx("ul",{className:"text-sm text-muted-foreground space-y-1 mt-2",children:(t=s.recommendedActions)==null?void 0:t.map((i,S)=>e.jsxs("li",{className:"flex items-center gap-1.5",children:[e.jsx(B,{className:"h-3 w-3 text-primary flex-shrink-0"}),i]},S))})]}),e.jsxs("div",{className:"text-right",children:[e.jsxs("div",{className:"text-2xl font-bold text-foreground",children:[s.likelihood,"%"]}),e.jsx("span",{className:"text-xs text-muted-foreground",children:"likelihood"})]})]})})},s.id)})}),e.jsxs(x,{value:"regulatory",className:"space-y-4",children:[(g=a.regulatoryUpdates)==null?void 0:g.map((s,t)=>e.jsx(n,{className:"hover:shadow-md transition-shadow",children:e.jsxs(c,{className:"p-5 space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h3",{className:"font-semibold text-foreground",children:s.title}),e.jsxs(o,{className:s.impact==="high"?"bg-red-500/10 text-red-600":"bg-yellow-500/10 text-yellow-700",children:[s.impact," impact"]})]}),e.jsx("p",{className:"text-sm text-muted-foreground",children:s.detail}),e.jsxs("div",{className:"flex items-center gap-4 text-xs text-muted-foreground",children:[s.deadline&&e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(k,{className:"h-3 w-3"})," Deadline: ",s.deadline]}),s.regulation&&e.jsx(o,{variant:"outline",className:"text-xs",children:s.regulation})]}),s.action_required&&e.jsxs("div",{className:"bg-primary/5 rounded-lg p-3 text-sm",children:[e.jsx("span",{className:"font-medium text-primary",children:"Action required:"})," ",s.action_required]})]})},t)),((j=a.citations)==null?void 0:j.length)>0&&e.jsxs(n,{children:[e.jsx(y,{className:"pb-2",children:e.jsx(N,{className:"text-sm text-muted-foreground",children:"Sources"})}),e.jsx(c,{className:"space-y-1",children:a.citations.map((s,t)=>e.jsxs("a",{href:s,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline flex items-center gap-1 truncate",children:[e.jsx(G,{className:"h-3 w-3 flex-shrink-0"})," ",s]},t))})]})]})]}),!a&&!l.isPending&&e.jsx(n,{className:"border-dashed border-2 border-muted-foreground
11/20",children:e.jsxs(c,{className:"flex flex-col items-center justify-center py-16 text-center space-y-4",children:[e.jsx(f,{className:"h-16 w-16 text-muted-foreground/30"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-semibold text-foreground",children:"Select a vertical and scan"}),e.jsx("p",{className:"text-sm text-muted-foreground max-w-md",children:"Get live regulatory intelligence, AI risk assessments, and compliance framework analysis tailored to your industry."})]})]})})]})]})}export{ne 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.