/* Inline lucide-style SVG icons for AxiomPOS site */

const AxI = ({ children, className = "w-5 h-5", strokeWidth = 1.75, ...rest }) => (
  <svg
    xmlns="http://www.w3.org/2000/svg"
    viewBox="0 0 24 24"
    fill="none"
    stroke="currentColor"
    strokeWidth={strokeWidth}
    strokeLinecap="round"
    strokeLinejoin="round"
    className={className}
    {...rest}
  >
    {children}
  </svg>
);

const Ax = {
  ArrowRight: (p) => <AxI {...p}><line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/></AxI>,
  Check: (p) => <AxI {...p}><polyline points="20 6 9 17 4 12"/></AxI>,
  ChevronDown: (p) => <AxI {...p}><polyline points="6 9 12 15 18 9"/></AxI>,
  Plus: (p) => <AxI {...p}><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></AxI>,
  Minus: (p) => <AxI {...p}><line x1="5" y1="12" x2="19" y2="12"/></AxI>,
  Search: (p) => <AxI {...p}><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></AxI>,
  Menu: (p) => <AxI {...p}><line x1="4" y1="6" x2="20" y2="6"/><line x1="4" y1="12" x2="20" y2="12"/><line x1="4" y1="18" x2="20" y2="18"/></AxI>,
  Close: (p) => <AxI {...p}><line x1="6" y1="6" x2="18" y2="18"/><line x1="18" y1="6" x2="6" y2="18"/></AxI>,
  Sparkle: (p) => <AxI {...p}><path d="M12 3l1.7 4.6L18 9l-4.3 1.4L12 15l-1.7-4.6L6 9l4.3-1.4L12 3z"/></AxI>,

  /* Trust strip */
  Globe: (p) => <AxI {...p}><circle cx="12" cy="12" r="9"/><line x1="3" y1="12" x2="21" y2="12"/><path d="M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18"/></AxI>,
  Rand: (p) => <AxI {...p}><path d="M6 5v14"/><path d="M6 5h6a4 4 0 0 1 0 8H6"/><path d="M11 13l4 6"/><path d="M16 5v14"/></AxI>,
  WhatsApp: (p) => <AxI {...p}><path d="M21 11.5a8.4 8.4 0 0 1-12.6 7.3L3 21l2.3-5.3A8.4 8.4 0 1 1 21 11.5z"/><path d="M8.5 9.5c0 .8.4 1.7 1.2 2.6a8 8 0 0 0 3.2 2.4c.9.3 1.6.2 2.2-.3l.8-.7-1.8-1.6-.7.4c-.2.1-.4.1-.6-.1a4.6 4.6 0 0 1-1.1-.9 4.6 4.6 0 0 1-.8-1.1c-.1-.2-.1-.4 0-.5l.5-.7-1.5-1.8-.7.8c-.5.5-.7 1.1-.7 1.5z"/></AxI>,
  Cloud: (p) => <AxI {...p}><path d="M18 18a4 4 0 0 0-1.2-7.8A6 6 0 0 0 5 11.5 4 4 0 0 0 6 19h12z"/></AxI>,

  /* Feature icons */
  PosTouch: (p) => <AxI {...p}><rect x="3" y="3" width="14" height="14" rx="2"/><path d="M10 12l2 5 1.5-2.2L16 14l-6-2z"/></AxI>,
  Bot: (p) => <AxI {...p}><rect x="3" y="8" width="18" height="12" rx="3"/><circle cx="9" cy="14" r="1.2" fill="currentColor"/><circle cx="15" cy="14" r="1.2" fill="currentColor"/><path d="M12 2v4"/><circle cx="12" cy="2" r="1" fill="currentColor"/></AxI>,
  Receipt: (p) => <AxI {...p}><path d="M5 3h14v18l-3-2-3 2-3-2-3 2-2-2V3z"/><line x1="8" y1="8" x2="16" y2="8"/><line x1="8" y1="12" x2="16" y2="12"/><line x1="8" y1="16" x2="13" y2="16"/></AxI>,
  Boxes: (p) => <AxI {...p}><path d="M3 7l9-4 9 4-9 4-9-4z"/><path d="M3 7v10l9 4 9-4V7"/><line x1="12" y1="11" x2="12" y2="21"/></AxI>,
  Scale: (p) => <AxI {...p}><line x1="12" y1="3" x2="12" y2="21"/><path d="M5 7l-3 7a4 4 0 0 0 6 0L5 7z"/><path d="M19 7l-3 7a4 4 0 0 0 6 0l-3-7z"/><path d="M5 7h14"/></AxI>,
  Chart: (p) => <AxI {...p}><line x1="4" y1="20" x2="4" y2="4"/><line x1="4" y1="20" x2="20" y2="20"/><polyline points="7 14 11 10 14 13 19 7"/></AxI>,
  Users: (p) => <AxI {...p}><path d="M16 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M2 21v-1a6 6 0 0 1 6-6h0a6 6 0 0 1 6 6v1"/><path d="M16 14a6 6 0 0 1 6 6v1"/><circle cx="8" cy="8" r="3"/></AxI>,
  Activity: (p) => <AxI {...p}><polyline points="3 12 7 12 10 5 14 19 17 12 21 12"/></AxI>,
  Wrench: (p) => <AxI {...p}><path d="M14.7 6.3a4 4 0 0 1 5 5l-2.6-1L16 11.6l-.6 1.1 1 2.6a4 4 0 0 1-5 5l-1-2.6-1.1.6-1.1-1.1 1-2.6a4 4 0 0 1-5-5l2.6 1 1.1-.6.6-1.1-1-2.6a4 4 0 0 1 5-5l1 2.6 1.1-.6z"/></AxI>,
  Shield: (p) => <AxI {...p}><path d="M12 3l8 3v6c0 4.5-3.5 8-8 9-4.5-1-8-4.5-8-9V6l8-3z"/><polyline points="9 12 11 14 15 10"/></AxI>,

  /* Misc */
  Phone: (p) => <AxI {...p}><path d="M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z"/></AxI>,
  Mail: (p) => <AxI {...p}><rect x="3" y="5" width="18" height="14" rx="2"/><polyline points="3 7 12 13 21 7"/></AxI>,
  MapPin: (p) => <AxI {...p}><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 1 1 16 0z"/><circle cx="12" cy="10" r="3"/></AxI>,
  Star: (p) => <AxI {...p}><polygon points="12 2 15 9 22 9.3 16.5 14 18.5 21 12 17 5.5 21 7.5 14 2 9.3 9 9 12 2"/></AxI>,
  CreditCard: (p) => <AxI {...p}><rect x="2" y="6" width="20" height="13" rx="2"/><line x1="2" y1="11" x2="22" y2="11"/></AxI>,
  Cash: (p) => <AxI {...p}><rect x="2" y="6" width="20" height="13" rx="2"/><circle cx="12" cy="12.5" r="3"/></AxI>,
  Printer: (p) => <AxI {...p}><polyline points="6 9 6 3 18 3 18 9"/><rect x="3" y="9" width="18" height="9" rx="2"/><rect x="6" y="16" width="12" height="5"/></AxI>,
};

Object.assign(window, { Ax });
