/* * RealHome shared React components (React 18 UMD + Ant Design 5 UMD, compiled in-browser by Babel Standalone). * Everything is exported on window.RHC so page scripts can use it without a bundler. */ (() => { const { useState, useEffect, useRef, useCallback, useMemo } = React; const { ConfigProvider, App: AntApp, theme, Button, Input, Select, Tag, Avatar, Badge, Empty, Skeleton, Spin, message, Modal, Dropdown, Tooltip, Drawer, DatePicker, Upload, Result, Popconfirm, } = antd; const RH = window.RH; // ------------------------------------------------------------------ Theme const S = RH.settings || {}; const brandToken = { colorPrimary: S.primary_color || '#059669', colorLink: S.primary_color || '#047857', borderRadius: 12, fontFamily: '"Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif', }; const Icon = ({ name, className = '', style }) =>