ocearo-ui
Version:
Ocean Robot UI: 3D visualization dashboard for signalk
1 lines • 1.45 kB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,58700,e=>{"use strict";var t=e.i(43476);e.i(71645);var s=e.i(49721),a=e.i(68757);e.s(["default",0,({content:e,onClose:i})=>{if(!e)return null;let n=e.split("\n").filter(e=>e.trim());return(0,t.jsxs)("div",{className:"tesla-card p-4 min-w-[180px] max-w-[240px] bg-hud-bg/90 backdrop-blur-xl border border-hud shadow-2xl rounded-lg",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,t.jsx)("span",{className:"text-xs font-black uppercase tracking-[0.2em] text-hud-muted",children:"VESSEL"}),(0,t.jsx)("button",{onClick:e=>{e.stopPropagation(),i?.()},className:"w-5 h-5 flex items-center justify-center rounded-full bg-hud-elevated text-hud-muted hover:text-hud-main hover:bg-oRed/20 transition-all",children:(0,t.jsx)(s.FontAwesomeIcon,{icon:a.faTimes,className:"text-xs"})})]}),(0,t.jsx)("div",{className:"space-y-1.5",children:n.map((e,s)=>{let a=e.indexOf(":"),i=-1!==a?e.substring(0,a).trim():null,n=-1!==a?e.substring(a+1).trim():e.trim();return(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[i&&(0,t.jsx)("span",{className:"text-[10px] font-black uppercase tracking-widest text-hud-muted whitespace-nowrap",children:i}),(0,t.jsx)("span",{className:"text-xs font-black text-hud-main truncate text-right",children:n})]},s)})})]})}])},77021,e=>{e.n(e.i(58700))}]);