PageSourceSearch

https://vizops360.ai/assets/projectShared-V5YYrOsv.js

js vizops360.ai collected 2026-10-05 13:51:33 UTC 6,322 bytes, 1 lines download raw bytes

1import{j as e,r as h,bq as S,br as F,ab as M,as as m,bs as $,a3 as C,C as P}from"./index-CpeGhXo5.js";function k({shortCode:r,colorClass:n,logo:a,name:l,size:o=28,fontSize:x=10}){if(a)return e.jsx("img",{src:a,alt:l,style:{width:o,height:o},className:"rounded-full object-cover shadow-2xs bg-white border border-slate-200 shrink-0",onError:b=>{b.currentTarget.style.display="none"}});const g={"bg-[#ea580c]":"#ea580c","bg-slate-600":"#475569","bg-emerald-600":"#059669","bg-blue-600":"#2563eb","bg-indigo-600":"#4f46e5","bg-purple-600":"#9333ea","bg-amber-600":"#d97706","bg-rose-600":"#e11d48","bg-teal-600":"#0d9488","bg-[#F5A623]":"#F5A623","bg-[#0066FF]":"#0066FF","bg-teal-500":"#14b8a6","bg-blue-500":"#3b82f6","bg-sky-500":"#0ea5e9","bg-orange-500":"#f97316","bg-[#1e293b]":"#1e293b"};let i="#0066FF";if(n.includes("[")){const b=n.match(/bg-\[(#[a-fA-F0-9]+)\]/);b&&(i=b[1])}else g[n]&&(i=g[n]);const d=o/2;return e.jsx("div",{style:{width:o,height:o},className:"shrink-0 select-none flex items-center justify-center",children:e.jsxs("svg",{width:o,height:o,viewBox:`0 0 ${o} ${o}`,className:"rounded-full overflow-hidden block",children:[e.jsx("circle",{cx:d,cy:d,r:d,fill:i}),e.jsx("text",{x:d,y:d+.5,textAnchor:"middle",dominantBaseline:"central",fill:"white",fontSize:x,fontWeight:"700",fontFamily:"Inter, system-ui, -apple-system, sans-serif",children:r})]})})}function D({currentDate:r,onSelectDate:n}){const[a,l]=h.useState(()=>{if(r){const t=new Date(r);if(!isNaN(t.getTime()))return t.getMonth()}return new Date().getMonth()}),[o,x]=h.useState(()=>{if(r){const t=new Date(r);if(!isNaN(t.getTime()))return t.getFullYear()}return new Date().getFullYear()}),[g,i]=h.useState(!1);h.useEffect(()=>{if(r){const t=new Date(r);isNaN(t.getTime())||(l(t.getMonth()),x(t.getFullYear()))}},[r]);const d=h.useMemo(()=>{if(!r)return!1;try{const t=new Date(r);if(isNaN(t.getTime()))return!1;const s=new Date;return s.setHours(0,0,0,0),t<s}catch{return!1}},[r]),b=["January","February","March","April","May","June","July","August","September","October","November","December"],j=[2024,2025,2026,2027,2028,2029,2030],w=new Date(o,a+1,0).getDate(),v=new Date(o,a,1).getDay();return e.jsx("div",{onClick:t=>t.stopPropagation(),children:e.jsxs(S,{open:g,onOpenChange:i,children:[e.jsx(F,{asChild:!0,children:e.jsxs("button",{type:"button",className:m("flex items-center gap-1.5 px-2.5 py-0.5 rounded text-[11px] font-medium w-max cursor-pointer transition-colors border",r?d?"bg-rose-50 border-rose-200 text-rose-600 hover:bg-rose-100":"bg-slate-50 border-slate-200 text-slate-700 hover:bg-slate-100":"bg-slate-50 border-slate-200 text-slate-400 hover:bg-slate-100 hover:text-slate-600"),children:[e.jsx(M,{className:m("w-3 h-3",d?"text-rose-500":"text-slate-500")}),e.jsx("span",{children:r?`Due date: ${r}`:"Select Due Date"})]})}),e.jsx($,{align:"start",className:"w-72 p-3 bg-white border border-slate-200 shadow-xl rounded-xl z-50 text-xs text-slate-700",children:e.jsxs("div",{className:"flex flex-col gap-2.5",children:[e.jsxs("div",{className:"flex items-center justify-between border-b border-slate-100 pb-2 px-1",children:[e.jsx("button",{type:"button",onClick:t=>{t.stopPropagation(),a===0?(l(11),x(s=>s-1)):l(s=>s-1)},className:"p-1 border border-slate-200 rounded-md hover:bg-slate-50 text-slate-600 transition-colors shadow-2xs",children:e.jsx(C,{className:"w-3.5 h-3.5"})}),e.jsxs("span",{className:"font-bold text-xs text-slate-800",children:[b[a]," ",o]}),e.jsx("button",{type:"button",onClick:t=>{t.stopPropagation(),a===11?(l(0),x(s=>s+1)):l(s=>s+1)},className:"p-1 border border-slate-200 rounded-md hover:bg-slate-50 text-slate-600 transition-colors shadow-2xs",children:e.jsx(P,{className:"w-3.5 h-3.5"})})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2 pt-0.5",children:[e.jsx("select",{value:a,onChange:t=>l(Number(t.target.value)),className:"flex-1 px-2 py-1 border border-slate-200 rounded-md text-xs font-semibold text-slate-700 bg-white outline-none cursor-pointer hover:border-slate-300",children:b.map((t,s)=>e.jsx("option",{value:s,children:t},t))}),e.jsx("select",{value:o,onChange:t=>x(Number(t.target.value)),className:"flex-1 px-2 py-1 border border-slate-200 rounded-md text-xs font-semibold text-slate-700 bg-white outline-none cursor-pointer hover:border-slate-300",children:j.map(t=>e.jsx("option",{value:t,children:t},t))})]}),e.jsxs("div",{className:"grid grid-cols-7 text-center font-bold text-slate-400 text-[10px] uppercase",children:[e.jsx("span",{children:"Su"}),e.jsx("span",{children:"Mo"}),e.jsx("span",{children:"Tu"}),e.jsx("span",{children:"We"}),e.jsx("span",{children:"Th"}),e.jsx("span",{children:"Fr"}),e.jsx("span",{children:"Sa"})]}),e.jsxs("div",{className:"grid grid-cols-7 gap-1 text-center text-xs",children:[Array.from({length:v}).map((t,s)=>e.jsx("div",{className:"h-7"},`empty-${s}`)),Array.from({length:w}).map((t,s)=>{const c=s+1,u=`${o}-${String(a+1).padStart(2,"0")}-${String(c).padStart(2,"0")}`,p=new Date,f=p.getDate()===c&&p.getMonth()===a&&p.getFullYear()===o,y=r?r.startsWith(u):!1;return e.jsx("button",{type:"button",onClick:N=>{N.stopPropagation(),n(u),i(!1)},className:m("h-7 w-7 rounded-lg flex items-center justify-center font-semibold transition-all mx-auto cursor-pointer text-xs",y?"bg-blue-600 text-white font-bold shadow-md ring-2 ring-blue-600 ring-offset-1":f?"bg-blue-50 text-blue-600 font-bold border-2 border-blue-500 hover:bg-blue-100 shadow-2xs":"hover:bg-slate-100 hover:text-blue-600 text-slate-700 font-medium"),title:f?`Today (${u})`:u,children:c},c)})]}),e.jsxs("div",{className:"pt-2 border-t border-slate-100 flex items-center justify-between",children:[e.jsx("button",{type:"button",onClick:t=>{t.stopPropagation();const s=new Date,c=`${s.getFullYear()}
1-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`;n(c),i(!1)},className:"text-xs text-blue-600 font-bold hover:underline cursor-pointer",children:"Today"}),e.jsx("button",{type:"button",onClick:t=>{t.stopPropagation();const s=new Date;s.setDate(s.getDate()+1);const c=`${s.getFullYear()}-${String(s.getMonth()+1).padStart(2,"0")}-${String(s.getDate()).padStart(2,"0")}`;n(c),i(!1)},className:"text-xs text-slate-600 font-semibold hover:text-blue-600 cursor-pointer",children:"Tomorrow"})]})]})})]})})}export{D,k as P};

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.