PageSourceSearch

https://toptest.ai/assets/PharmDashboard-LTWgvDWr.js

js toptest.ai collected 2026-10-05 13:07:39 UTC 19,250 bytes, 56 lines download raw bytes

1import{c as o,r as j,v as C,j as e,L as T,J as L}from"./index-CVwKW8e-.js";import{S as k}from"./shield-check-CRNjVBIQ.js";import{T as v}from"./target-C3zawd5H.js";import{S as $,A as I}from"./settings-BM8z2M0n.js";import{S as y}from"./sparkles-CACWYPyv.js";import{A as z}from"./award-1KXJ1_oY.js";import{M as _}from"./message-square-B74W0AkD.js";import{L as E}from"./list-ordered-IyPGSPSm.js";import{A as R}from"./arrow-up-right-BPEBu8eT.js";/**
2 * @license lucide-react v0.555.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 P=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],U=o("brain-circuit",P);/**
7 * @license lucide-react v0.555.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 W=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],B=o("chart-column",W);/**
12 * @license lucide-react v0.555.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */const D=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],G=o("download",D);/**
17 * @license lucide-react v0.555.0 - ISC
18 *
19 * This source code is licensed under the ISC license.
20 * See the LICENSE file in the root directory of this source tree.
21 */const O=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],q=o("info",O);/**
22 * @license lucide-react v0.555.0 - ISC
23 *
24 * This source code is licensed under the ISC license.
25 * See the LICENSE file in the root directory of this source tree.
26 */const H=[["path",{d:"M6 18h8",key:"1borvv"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M14 22a7 7 0 1 0 0-14h-1",key:"1jwaiy"}],["path",{d:"M9 14h2",key:"197e7h"}],["path",{d:"M9 12a2 2 0 0 1-2-2V6h6v4a2 2 0 0 1-2 2Z",key:"1bmzmy"}],["path",{d:"M12 6V3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3",key:"1drr47"}]],V=o("microscope",H);/**
27 * @license lucide-react v0.555.0 - ISC
28 *
29 * This source code is licensed under the ISC license.
30 * See the LICENSE file in the root directory of this source tree.
31 */const K=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],Y=o("timer",K);/**
32 * @license lucide-react v0.555.0 - ISC
33 *
34 * This source code is licensed under the ISC license.
35 * See the LICENSE file in the root directory of this source tree.
36 */const Z=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],N=o("trending-up",Z);/**
37 * @license lucide-react v0.555.0 - ISC
38 *
39 * This source code is licensed under the ISC license.
40 * See the LICENSE file in the root directory of this source tree.
41 */const F=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],J=o("users",F),l={kpis:{totalEmployees:100,totalAttempts:5124,avgScore:84.2,complianceStatus:98,masteryRate:72,avgMinutesWeekly:45,certsThisWeek:124,medianScore:86},performanceTrend:[72,74,73,78,80,82,81,85,88,86,89,91],thematicDistribution:[{label:"Compliance",value:40,color:"#059669"},{label:"Sales",value:25,color:"#10b981"},{label:"Marketing",value:20,color:"#34d399"},{label:"Legal",value:15,color:"#6ee7b7"}],focusAreas:[{topic:"GCP Compliance Level 4",gap:38,risk:"Legal/Audit",attempts:840},{topic:"BioPharm Negotiations",gap:28,risk:"Revenue",attempts:1120},{topic:"Marketing (EU Regulations)",gap:12,risk:"Compliance",attempts:650},{topic:"Internal Legal Norms",gap:42,risk:"Regulatory",attempts:310}],popularity:{top:[{title:"GCP Basics 2025",count:890,trend:"+12%"},{title:"Advanced Sales Psychology",count:740,trend:"+5%"},{title:"Pharm Marketing Ethics",count:620,trend:"+8%"}],bottom:[{title:"Doc Archiving (Legal)",count:12,trend:"-40%"},{title:"Basic Chemistry intro",count:28,trend:"-15%"},{title:"Safety Data Sheets",count:45,trend:"0%"}]}};function ce({tests:x,locale:i,onNavigate:n}){const[c,m]=j.useState(""),[d,f]=j.useState(!1),s=C(i).corporate,w=i.toUpperCase()==="RU"||i.toUpperCase()==="PHARM"?"Russian":i.toUpperCase()==="DE"?"German":"English",p=async t=>{f(!0),m("");try{const a=new L({apiKey:"MY_GEMINI_API_KEY"});let r="";switch(t){case"success":r="Identify our successes. Analyze topics with high scores and engagement.";break;case"challenges":r="What are our main challenges? Identify critical knowledge gaps.";break;case"stop":r="What can we stop studying? Identify redundant or low-relevance topics.";break;case"increase":r="What needs more focus? Point out high-risk strategic areas with low readiness.";break;case"roadmap":r="Create a development roadmap for the next quarter.";break}const b=`
42        You are the Chief Learning Officer (CLO). 
43        DATABASE: 100 employees, 5000+ tests. 
44        KPIs: ${l.kpis.avgMinutesWeekly} min weekly per person, Median Score ${l.kpis.medianScore}%, Avg Score ${l.kpis.avgScore}%.
45        TOPICS: Compliance, Sales, Marketing, Legal.
46        CRITICAL AREAS: ${l.focusAreas.map(A=>A.topic).join(", ")}.
47        TASK: ${r}
48        
49        OUTPUT RULES:
50        - Use Markdown subheaders like ### Title.
51        - Use bullet points (-).
52        - Use bold for key terms (**Term**).
53        - Tone: Professional, analytical, concise.
54        - LANGUAGE: STRENGSTENS ${w}.
55      `,S=await a.models.generateContent({model:"gemini-3-flash-preview",contents:b});m(S.text||"Failed to generate analysis.")}catch{m("Connection to AI Strategy Module interrupted.")}finally{f(!1)}},M=t=>t.split(`
56`).map((a,r)=>
56{if(a.trim().startsWith("###"))return e.jsx("h4",{className:"text-lg font-black text-emerald-400 mt-6 mb-3 uppercase tracking-tight",children:a.replace(/^###\s*/,"")},r);const b=a.replace(/\*\*(.*?)\*\*/g,'<strong class="text-white font-black">$1</strong>');return a.trim().startsWith("-")||a.trim().startsWith("*")?e.jsx("li",{className:"ml-4 mb-2 list-disc opacity-90 text-slate-200",dangerouslySetInnerHTML:{__html:b.replace(/^[*-]\s*/,"")}},r):a.trim()===""?e.jsx("div",{className:"h-2"},r):e.jsx("p",{className:"mb-3 opacity-90 leading-relaxed text-slate-200",dangerouslySetInnerHTML:{__html:b}},r)});return e.jsxs("div",{className:"min-h-screen bg-slate-50 flex animate-in fade-in duration-700",children:[e.jsxs("aside",{className:"w-72 bg-white border-r border-slate-200 p-8 flex flex-col gap-10 shrink-0 hidden xl:flex shadow-sm",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 bg-emerald-600 rounded-2xl flex items-center justify-center text-white shadow-xl shadow-emerald-600/20",children:e.jsx(V,{size:28})}),e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("span",{className:"font-black text-slate-900 tracking-tighter text-lg leading-none",children:["Pharm",e.jsx("span",{className:"text-emerald-600",children:"Corp"})]}),e.jsx("span",{className:"text-[10px] font-bold text-emerald-500 uppercase tracking-widest mt-1 bg-emerald-50 px-1.5 py-0.5 rounded w-fit",children:s.previewLabel})]})]}),e.jsxs("nav",{className:"flex flex-col gap-1",children:[e.jsx(h,{icon:e.jsx(B,{size:18}),label:s.sidebarOverview,active:!0}),e.jsx(h,{icon:e.jsx(k,{size:18}),label:s.sidebarCompliance}),e.jsx(h,{icon:e.jsx(v,{size:18}),label:s.sidebarSales}),e.jsx(h,{icon:e.jsx(J,{size:18}),label:s.sidebarEmployees}),e.jsx(h,{icon:e.jsx($,{size:18}),label:s.sidebarSettings})]}),e.jsxs("div",{className:"mt-auto p-6 bg-slate-900 rounded-[2.5rem] text-white relative overflow-hidden group",children:[e.jsx("div",{className:"absolute top-0 right-0 p-4 opacity-5 group-hover:rotate-12 transition-transform",children:e.jsx(y,{size:60})}),e.jsx("p",{className:"text-[10px] font-black uppercase text-emerald-400 mb-2",children:s.statusTitle}),e.jsx("h4",{className:"text-xs font-bold leading-tight mb-4",children:s.statusDesc}),e.jsx("div",{className:"w-full bg-white/10 h-1 rounded-full overflow-hidden",children:e.jsx("div",{className:"w-full h-full bg-emerald-500 animate-pulse"})})]})]}),e.jsxs("main",{className:"flex-1 p-8 lg:p-12 overflow-y-auto scrollbar-hide",children:[e.jsxs("header",{className:"flex flex-col md:flex-row md:items-center justify-between gap-8 mb-12",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2 text-emerald-600 font-black text-[10px] uppercase tracking-[0.2em]",children:[e.jsx(I,{size:14,className:"animate-pulse"})," Corporate Intelligence v5.2 ",e.jsx("span",{className:"bg-emerald-600 text-white px-2 py-0.5 rounded ml-2 font-black",children:s.previewLabel})]}),e.jsx("h1",{className:"text-4xl font-black text-slate-900 tracking-tighter mb-4",children:s.title}),e.jsx("p",{className:"text-base text-slate-600 font-medium leading-relaxed max-w-3xl mb-6",children:s.introText}),e.jsxs("div",{className:"flex items-start gap-3 bg-white p-4 rounded-2xl border border-slate-200 max-w-2xl shadow-sm",children:[e.jsx(q,{size:20,className:"text-emerald-600 shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm font-medium text-slate-500 leading-relaxed",children:s.showroomDesc})]})]}),e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsxs("div",{className:"bg-white px-6 py-3 rounded-2xl border border-slate-200 shadow-sm text-right",children:[e.jsx("span",{className:"block text-[10px] font-bold text-slate-400 uppercase",children:s.kpiLearningTime}),e.jsxs("span",{className:"text-lg font-black text-slate-900",children:[l.kpis.avgMinutesWeekly," ",e.jsx("span",{className:"text-slate-400 font-medium text-sm",children:s.kpiWeekly})]})]}),e.jsx("button",{className:"bg-emerald-600 hover:bg-emerald-500 text-white p-4 rounded-2xl shadow-xl shadow-emerald-600/20 transition-all active:scale-95",children:e.jsx(G,{size:20})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 mb-12",children:[e.jsx(u,{icon:e.jsx(Y,{className:"text-blue-600"}),label:s.kpiLearningTime,value:`${l.kpis.avgMinutesWeekly}m`,trend:s.kpiWeekly,color:"blue"}),e.jsx(u,{icon:e.jsx(N,{className:"text-emerald-600"}),label:s.kpiMedianScore,value:`${l.kpis.medianScore}%`,trend:`${s.kpiAvg}: ${l.kpis.avgScore}%`,color:"emerald"}),e.jsx(u,{icon:e.jsx(z,{className:"text-amber-600"}),label:s.kpiCertificates,value:l.kpis.certsThisWeek,trend:"+18%",color:"amber"}),e.jsx(u,{icon:e.jsx(k,{className:"text-purple-600"}),label:s.kpiComplianceStatus,value:`${l.kpis.complianceStatus}%`,trend:`${s.kpiGoal}: 100%`,color:"purple"})]}),e.jsx("section",{className:"mb-12",children:e.jsxs("div",{className:"bg-slate-900 rounded-[3.5rem] p-10 md:p-14 text-white shadow-2xl relative overflow-hidden border border-slate-800",children:[e.jsx("div",{className:"absolute top-0 right-0 p-16 text-emerald-500/5 rotate-12 -z-0",children:e.jsx(U,{size:220})}),e.jsxs("div",{className:"relative z-10",children:[e.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between gap-8 mb-12",children:[e.jsxs("div",{className:"flex items-center gap-5",children:[e.jsx("div",{className:"w-16 h-16 bg-emerald-600 rounded-3xl flex items-center justify-center text-white shadow-lg shadow-emerald-600/40",children:e.jsx(y,{size:32})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-black tracking-tight",children:s.aiStrategist}),e.jsx("p",{className:"text-sm font-bold text-emerald-400 uppercase tracking-widest mt-1",children:s.aiStrategistSub})]})]}),e.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.jsx(g,{label:s.aiBtnSuccess,onClick:()=>p("success"),active:c&&!d}),e.jsx(g,{label:s.aiBtnChallenges,onClick:()=>p("challenges"),active:c&&!d}),e.jsx(g,{label:s.aiBtnStop,onClick:()=>p("stop"),active:c&&!d}),e.jsx(g,{label:s.aiBtnIncrease,onClick:()=>p("increase"),active:c&&!d}),e.jsx(g,{label:s.aiBtnRoadmap,onClick:()=>p("roadmap"),active:c&&!d})]})]}),e.jsx("div",{className:"bg-white/5 border border-white/10 rounded-[2.5rem] p-10 min-h-[300px] shadow-inner backdrop-blur-sm",children:d?e.jsxs("div",{className:"flex flex-col items-center justify-center h-48 gap-4",children:[e.jsx(T,{size:40,className:"animate-spin text-emerald-400"}),e.jsx("span",{className:"text-xs font-black text-slate-500 uppercase tracking-widest",children:s.aiLoadingText})]}):c?e.jsx("div",{className:"text-slate-100 text-base leading-relaxed animate-in fade-in slide-in-from-bottom-4 duration-500",children:M(c)}):e.jsxs("div",{className:"flex flex-col items-center justify-center h-48 text-center gap-4 max-w-lg mx-auto",children:[e.jsx(_,{size:32,className:"text-slate-700"}),e.jsx("p",{className:"text-sm font-bold text-slate-500 uppercase tracking-widest",children:s.aiIdleText})]})})]})]})}),e.jsxs("section",{className:"grid grid-cols-1 lg:grid-cols-12 gap-8 mb-12",children:[e.jsxs("div",{className:"lg:col-span-8 space-y-8",children:[e.jsxs("div",{className:"bg-white border border-slate-200 rounded-[3rem] p-10 shadow-sm",children:[e.jsxs("div",{className:"flex justify-between items-start mb-10",children:[e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-black text-slate-900 tracking-tight",children:s.chartTitle}),e.jsx("p",{className:"text-xs font-bold text-slate-400 uppercase mt-1",children:s.chartSub})]}),e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-black",children:[e.jsx(N,{size:12})," +19% ",s.chartTrend]})]}),e.jsx("div",{className:"h-48 w-full relative",children:e.jsx("svg",{className:"w-full h-full overflow-visible",viewBox:"0 0 100 40",children:e.jsx("path",{d:`M 0 ${40-l.performanceTrend[0]/3} ${l.performanceTrend.map((t,a)=>`L ${a/11*100} ${40-t/3}`).join(" ")}`,fill:"none",stroke:"#10b981",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),e.jsxs("div",{className:"bg-white border-2 border-slate-100 rounded-[3.5rem] p-10 shadow-xl shadow-slate-200/40",children:[e.jsxs("h3",{className:"text-2xl font-black text-slate-900 tracking-tight mb-10 flex items-center gap-3",children:[e.jsx(v,{size:26,className:"text-rose-600"})," ",s.riskTitle]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:l.focusAreas.map((t,a)=>e.jsxs("div",{className:`p-8 rounded-[2.5rem] border transition-all hover:scale-[1.02] ${t.ga
56p>30?"bg-rose-50 border-rose-100":"bg-slate-50 border-slate-100"}`,children:[e.jsx("h4",{className:"text-lg font-black text-slate-900 mb-6 leading-tight",children:t.topic}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex justify-between text-[11px] font-black uppercase text-slate-500",children:[e.jsx("span",{children:"Risk Level"}),e.jsxs("span",{className:"text-rose-600",children:[t.gap,"%"]})]}),e.jsx("div",{className:"w-full bg-slate-200 h-2 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-rose-500",style:{width:`${t.gap}%`}})})]})]},a))})]})]}),e.jsxs("div",{className:"lg:col-span-4 space-y-8",children:[e.jsxs("div",{className:"bg-white border border-slate-200 rounded-[3rem] p-10 shadow-sm",children:[e.jsx("h3",{className:"text-xl font-black text-slate-900 tracking-tight mb-8",children:s.distTitle}),e.jsx("div",{className:"space-y-3",children:l.thematicDistribution.map(t=>e.jsxs("div",{className:"flex items-center justify-between text-xs font-bold",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:t.color}}),e.jsx("span",{className:"text-slate-600",children:t.label})]}),e.jsxs("span",{className:"text-slate-900",children:[t.value,"%"]})]},t.label))})]}),e.jsxs("div",{className:"bg-slate-900 rounded-[3rem] p-10 text-white shadow-xl",children:[e.jsxs("h3",{className:"text-xl font-black tracking-tight mb-8 flex items-center gap-3",children:[e.jsx(E,{size:22,className:"text-emerald-400"})," ",s.popTitle]}),e.jsx("div",{className:"space-y-8",children:e.jsxs("div",{children:[e.jsx("span",{className:"text-[10px] font-black uppercase text-emerald-400 block mb-4 tracking-widest",children:s.popTrend}),e.jsx("div",{className:"space-y-4",children:l.popularity.top.map((t,a)=>e.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-white/5 border border-white/10",children:[e.jsx("span",{className:"text-xs font-bold truncate pr-4",children:t.title}),e.jsx("span",{className:"text-[10px] font-black text-emerald-400",children:t.trend})]},a))})]})})]})]})]})]})]})}function h({icon:x,label:i,active:n=!1}){return e.jsxs("button",{className:`flex items-center gap-4 px-6 py-4 rounded-2xl text-sm font-bold transition-all ${n?"bg-emerald-50 text-emerald-700 shadow-sm border border-emerald-100":"text-slate-400 hover:bg-slate-50 hover:text-slate-900"}`,children:[x," ",e.jsx("span",{className:"flex-1 text-left",children:i}),n&&e.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-600"})]})}function u({icon:x,label:i,value:n,trend:c,color:m}){const d={blue:"bg-blue-50 text-blue-600 border-blue-100",emerald:"bg-emerald-50 text-emerald-600 border-emerald-100",amber:"bg-amber-50 text-amber-600 border-amber-100",purple:"bg-purple-50 text-purple-600 border-purple-100"};return e.jsxs("div",{className:"bg-white border border-slate-200 p-8 rounded-[2.5rem] shadow-sm hover:shadow-xl hover:-translate-y-1 transition-all group",children:[e.jsxs("div",{className:"flex justify-between items-start mb-8",children:[e.jsx("div",{className:`w-14 h-14 rounded-2xl flex items-center justify-center text-2xl shadow-inner border ${d[m]} group-hover:scale-110 transition-transform`,children:x}),e.jsx("div",{className:"px-2 py-1 rounded-lg text-[10px] font-black bg-emerald-100 text-emerald-700",children:c})]}),e.jsx("h4",{className:"text-[11px] font-black text-slate-400 uppercase tracking-widest mb-1",children:i}),e.jsx("p",{className:"text-3xl font-black text-slate-900 tracking-tighter",children:n})]})}function g({label:x,onClick:i,active:n}){return e.jsxs("button",{onClick:i,className:`flex items-center gap-2 px-6 py-3 rounded-2xl border transition-all text-[11px] font-black uppercase tracking-wider ${n?"bg-emerald-600 border-emerald-500 text-white shadow-lg":"bg-white/10 border-white/10 text-slate-300 hover:bg-white/20"}`,children:[x," ",e.jsx(R,{size:14,className:n?"text-white":"text-emerald-500"})]})}export{ce 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.