// data.jsx — central mock data for My S.W.O Portal. No backend.
// Everything user-facing routes through I18N via t() in i18n.jsx.

/* ---------------- People / roles ---------------- */
const USERS = {
  staff:   { id:'u1', name:'Trần Minh Quân',  email:'quan.tran@swo.vn',  title:'Nhân viên Kinh doanh', role:'staff' },
  manager: { id:'u2', name:'Lê Thu Hà',       email:'ha.le@swo.vn',      title:'Trưởng phòng Vận hành', role:'manager' },
  admin:   { id:'u3', name:'Phạm Quốc Bảo',   email:'bao.pham@swo.vn',   title:'Quản trị hệ thống',     role:'admin' },
};

/* ---------------- App catalog ---------------- */
// groups: office, hr, sales, ops, admin(adminOnly)
const APPS = [
  { id:'mail',      name:{vi:'Email',          en:'Email'},        group:'office', icon:'bi-envelope',        color:'#1466E0', module:'mail',      desc:{vi:'Soạn & gửi email ra ngoài',          en:'Compose & send external email'} },
  { id:'docs',      name:{vi:'Tài liệu',       en:'Documents'},    group:'office', icon:'bi-file-earmark-text',color:'#0FB0AB', desc:{vi:'Kho tài liệu nội bộ',                en:'Internal document store'} },
  { id:'calendar',  name:{vi:'Lịch',           en:'Calendar'},     group:'office', icon:'bi-calendar3',       color:'#7A5AF8', desc:{vi:'Lịch họp & sự kiện',                 en:'Meetings & events'} },
  { id:'chat',      name:{vi:'Trò chuyện',     en:'Chat'},         group:'office', icon:'bi-chat-dots',       color:'#16A34A', desc:{vi:'Tin nhắn nội bộ',                    en:'Internal messaging'} },
  { id:'customers', name:{vi:'Khách hàng',     en:'Customers'},    group:'sales',  icon:'bi-building',        color:'#0B4FBF', module:'customers', desc:{vi:'Dữ liệu chủ khách hàng',            en:'Customer master data'} },
  { id:'contacts',  name:{vi:'Liên hệ',        en:'Contacts'},     group:'sales',  icon:'bi-person-vcard',    color:'#C77700', module:'contacts',  desc:{vi:'Danh bạ liên hệ cá nhân',           en:'Personal contact directory'} },
  { id:'deals',     name:{vi:'Cơ hội',         en:'Deals'},        group:'sales',  icon:'bi-graph-up-arrow',  color:'#1F9D57', desc:{vi:'Pipeline bán hàng',                  en:'Sales pipeline'} },
  { id:'quotes',    name:{vi:'Báo giá',        en:'Quotes'},       group:'sales',  icon:'bi-receipt',         color:'#D14343', desc:{vi:'Tạo & quản lý báo giá',              en:'Create & manage quotes'} },
  { id:'contracts', name:{vi:'Hợp đồng',       en:'Contracts'},    group:'sales',  icon:'bi-file-earmark-text',color:'#0B4FBF', module:'contracts', desc:{vi:'Quản lý hợp đồng & thanh toán',       en:'Contracts & payment schedules'} },
  { id:'people',    name:{vi:'Nhân sự',        en:'People'},       group:'hr',     icon:'bi-people',          color:'#7A5AF8', desc:{vi:'Hồ sơ nhân viên',                    en:'Employee records'} },
  { id:'leave',     name:{vi:'Nghỉ phép',      en:'Leave'},        group:'hr',     icon:'bi-calendar-check',  color:'#0FB0AB', desc:{vi:'Đơn nghỉ phép & duyệt',             en:'Leave requests & approval'} },
  { id:'payroll',   name:{vi:'Bảng lương',     en:'Payroll'},      group:'hr',     icon:'bi-cash-stack',      color:'#16A34A', desc:{vi:'Lương & phụ cấp',                    en:'Salary & allowances'} },
  { id:'assets',    name:{vi:'Thiết bị',       en:'Assets'},       group:'ops',    icon:'bi-pc-display',      color:'#4A5567', desc:{vi:'Quản lý thiết bị IT',                en:'IT asset management'} },
  { id:'tickets',   name:{vi:'Hỗ trợ IT',      en:'IT Helpdesk'},  group:'ops',    icon:'bi-life-preserver',  color:'#1466E0', desc:{vi:'Ticket hỗ trợ kỹ thuật',            en:'Support tickets'} },
  { id:'inventory', name:{vi:'Kho',            en:'Inventory'},    group:'ops',    icon:'bi-box-seam',        color:'#C77700', desc:{vi:'Quản lý tồn kho',                    en:'Stock management'} },
  { id:'finance',   name:{vi:'Tài chính',      en:'Finance'},      group:'ops',    icon:'bi-wallet2',         color:'#1F9D57', module:'finance',   desc:{vi:'Thu chi, dòng tiền & dự báo',        en:'Cash flow, expenses & forecast'} },
  { id:'users',     name:{vi:'Người dùng',     en:'Users'},        group:'admin',  icon:'bi-person-gear',     color:'#0B4FBF', adminOnly:true, desc:{vi:'Quản lý tài khoản & quyền',          en:'Accounts & permissions'} },
  { id:'audit',     name:{vi:'Nhật ký',        en:'Audit log'},    group:'admin',  icon:'bi-clipboard-data',  color:'#4A5567', adminOnly:true, desc:{vi:'Nhật ký hệ thống',                   en:'System audit trail'} },
];
const APP_GROUPS = [
  { id:'office', name:{vi:'Văn phòng',  en:'Office'} },
  { id:'hr',     name:{vi:'Nhân sự',    en:'Human Resources'} },
  { id:'sales',  name:{vi:'Kinh doanh', en:'Sales'} },
  { id:'ops',    name:{vi:'Vận hành',   en:'Operations'} },
  { id:'admin',  name:{vi:'Quản trị',   en:'Administration'} },
];

/* ---------------- Dashboard content ---------------- */
const ANNOUNCEMENTS = [
  { id:1, featured:true, tag:{vi:'Thông báo',en:'Notice'}, title:{vi:'Ra mắt Portal nội bộ My S.W.O 2.0', en:'Launching My S.W.O Portal 2.0'},
    excerpt:{vi:'Cổng truy cập tập trung mọi ứng dụng nội bộ với đăng nhập một lần (SSO).', en:'A single hub for every internal app with single sign-on (SSO).'}, date:'2026-06-05', author:'Ban CNTT' },
  { id:2, tag:{vi:'Nhân sự',en:'HR'}, title:{vi:'Lịch nghỉ lễ Quý 3/2026', en:'Q3/2026 public holiday schedule'}, date:'2026-06-03', author:'Phòng HR' },
  { id:3, tag:{vi:'Vận hành',en:'Ops'}, title:{vi:'Bảo trì hệ thống cuối tuần này', en:'System maintenance this weekend'}, date:'2026-06-02', author:'Ban CNTT' },
  { id:4, tag:{vi:'Kinh doanh',en:'Sales'}, title:{vi:'Đạt 100+ dự án triển khai thành công', en:'100+ projects delivered'}, date:'2026-05-29', author:'BLĐ' },
];
const TASKS = [
  { id:1, title:{vi:'Gửi báo giá cho Kizuna JV', en:'Send quote to Kizuna JV'}, due:'Hôm nay', done:false, prio:'high' },
  { id:2, title:{vi:'Cập nhật hồ sơ KH Kyanon', en:'Update Kyanon customer record'}, due:'Hôm nay', done:false, prio:'med' },
  { id:3, title:{vi:'Chuẩn bị tài liệu demo AppSheet', en:'Prep AppSheet demo deck'}, due:'Ngày mai', done:false, prio:'med' },
  { id:4, title:{vi:'Xác nhận lịch họp SEMITEC', en:'Confirm SEMITEC meeting'}, due:'08/06', done:true, prio:'low' },
];
const APPROVALS = [
  { id:1, kind:{vi:'Đơn nghỉ phép', en:'Leave request'}, who:'Nguyễn Văn An', detail:{vi:'Nghỉ 2 ngày · 12–13/06', en:'2 days · Jun 12–13'}, amount:null },
  { id:2, kind:{vi:'Đề nghị thanh toán', en:'Payment request'}, who:'Phòng Vận hành', detail:{vi:'Mua 5 màn hình Dell', en:'Buy 5 Dell monitors'}, amount:'24.500.000₫' },
  { id:3, kind:{vi:'Báo giá', en:'Quote'}, who:'Trần Minh Quân', detail:{vi:'BG-2026-041 · TSD', en:'BG-2026-041 · TSD'}, amount:'86.000.000₫' },
];
const NOTIFS = [
  { id:1, icon:'bi-envelope', text:{vi:'Email tới Kizuna JV đã được gửi', en:'Email to Kizuna JV was sent'}, time:'5 phút', unread:true },
  { id:2, icon:'bi-check2-circle', text:{vi:'Đơn nghỉ phép của bạn đã được duyệt', en:'Your leave request was approved'}, time:'1 giờ', unread:true },
  { id:3, icon:'bi-person-plus', text:{vi:'Liên hệ mới: Tanaka Yuki', en:'New contact: Tanaka Yuki'}, time:'3 giờ', unread:true },
  { id:4, icon:'bi-building', text:{vi:'KH “Kyanon.digital” được cập nhật', en:'Customer “Kyanon.digital” updated'}, time:'Hôm qua', unread:false },
];
const AGENDA = [
  { id:1, time:'09:00', title:{vi:'Họp giao ban tuần', en:'Weekly standup'}, color:'var(--primary)' },
  { id:2, time:'11:30', title:{vi:'Demo AppSheet — Kizuna', en:'AppSheet demo — Kizuna'}, color:'var(--accent)' },
  { id:3, time:'14:00', title:{vi:'Call với SEMITEC VN', en:'Call with SEMITEC VN'}, color:'var(--warning)' },
  { id:4, time:'16:30', title:{vi:'Review báo giá Q2', en:'Q2 quote review'}, color:'var(--success)' },
];
const DOCS = [
  { id:1, name:'Proposal_Kizuna_KCN.pdf', kind:'PDF', who:'Lê Thu Hà', when:'Hôm nay' },
  { id:2, name:'BangGia_CloudVoIP_2026.xlsx', kind:'XLSX', who:'Trần Minh Quân', when:'Hôm qua' },
  { id:3, name:'HopDong_Kyanon_v3.docx', kind:'DOCX', who:'Phạm Quốc Bảo', when:'04/06' },
  { id:4, name:'Demo_AppSheet_CanHo.mp4', kind:'MP4', who:'Lê Thu Hà', when:'03/06' },
];

/* ---------------- Customers (master data) ---------------- */
const INDUSTRIES = ['Sản xuất','CNTT/Phần mềm','Bất động sản','Linh kiện điện tử','Logistics','Bán lẻ','Dịch vụ'];
const CUSTOMERS = [
  { code:'KIZUNA', name:'Kizuna JV Corporation', shortName:'Kizuna', lang:'vi', mst:'0312345678', industry:'Bất động sản', country:'VN', owner:'Lê Thu Hà', status:'active' },
  { code:'KYANON', name:'Kyanon Digital', shortName:'Kyanon', lang:'en', mst:'0309876543', industry:'CNTT/Phần mềm', country:'VN', owner:'Trần Minh Quân', status:'active' },
  { code:'TSD', name:'TSD Solution', shortName:'TSD', lang:'vi', mst:'0311222333', industry:'CNTT/Phần mềm', country:'VN', owner:'Trần Minh Quân', status:'prospect' },
  { code:'SEMITEC', name:'SEMITEC Việt Nam', shortName:'SEMITEC', lang:'ja', mst:'0314445556', industry:'Linh kiện điện tử', country:'JP', owner:'Lê Thu Hà', status:'active' },
  { code:'NGOCMINH', name:'Công nghệ Ngọc Minh', shortName:'Ngọc Minh', lang:'vi', mst:'0316667778', industry:'Sản xuất', country:'VN', owner:'Phạm Quốc Bảo', status:'active' },
  { code:'VTIDC', name:'Viettel IDC', shortName:'Viettel IDC', lang:'vi', mst:'0100109106', industry:'CNTT/Phần mềm', country:'VN', owner:'Lê Thu Hà', status:'active' },
  { code:'AIPOWER', name:'AIPOWER Technology', shortName:'AIPOWER', lang:'en', mst:'0318889990', industry:'CNTT/Phần mềm', country:'VN', owner:'Trần Minh Quân', status:'prospect' },
  { code:'ONECAD', name:'Onecad Vietnam', shortName:'Onecad', lang:'en', mst:'0319990001', industry:'Sản xuất', country:'VN', owner:'Phạm Quốc Bảo', status:'inactive' },
  { code:'DASSVN', name:'DASS Corporation', shortName:'DASS', lang:'ko', mst:'0320001112', industry:'Logistics', country:'KR', owner:'Lê Thu Hà', status:'active' },
  { code:'NTSGROUP', name:'NTS Group', shortName:'NTS', lang:'ja', mst:'0321112223', industry:'Sản xuất', country:'JP', owner:'Trần Minh Quân', status:'prospect' },
  { code:'HQGTECH', name:'HQG Technology', shortName:'HQG', lang:'vi', mst:'0322223334', industry:'Dịch vụ', country:'VN', owner:'Phạm Quốc Bảo', status:'active' },
  { code:'BAUMANN', name:'Baumann GmbH', shortName:'Baumann', lang:'de', mst:'DE811569869', industry:'Sản xuất', country:'DE', owner:'Lê Thu Hà', status:'prospect' },
];
const COUNTRIES = { VN:'Việt Nam', JP:'Nhật Bản', KR:'Hàn Quốc', DE:'Đức', US:'Hoa Kỳ' };
const LANGS = { vi:'Tiếng Việt', en:'English', ja:'日本語', ko:'한국어', de:'Deutsch' };

/* ---------------- Contacts (personal directory) ---------------- */
const TX_TYPES = {
  meeting:  { label:{vi:'Cuộc họp',en:'Meeting'},   icon:'bi-people',        color:'var(--primary)' },
  call:     { label:{vi:'Cuộc gọi',en:'Call'},      icon:'bi-telephone',     color:'var(--accent)' },
  email:    { label:{vi:'Email',en:'Email'},        icon:'bi-envelope',      color:'#7A5AF8' },
  quote:    { label:{vi:'Báo giá',en:'Quote'},      icon:'bi-receipt',       color:'var(--warning)' },
  deal:     { label:{vi:'Cơ hội',en:'Deal'},        icon:'bi-graph-up-arrow',color:'var(--success)' },
  contract: { label:{vi:'Hợp đồng',en:'Contract'},  icon:'bi-file-earmark-check', color:'#0B4FBF' },
  payment:  { label:{vi:'Thanh toán',en:'Payment'}, icon:'bi-cash-coin',     color:'#16A34A' },
  feedback: { label:{vi:'Phản hồi',en:'Feedback'},  icon:'bi-chat-quote',    color:'var(--error)' },
  note:     { label:{vi:'Ghi chú',en:'Note'},       icon:'bi-sticky',        color:'var(--text-muted)' },
};
function tx(date, type, title, body){ return { date, type, title, body }; }
const CONTACTS = [
  { code:'LH-0001', name:'Nguyễn Hoàng Long', native:'', nationality:'VN', type:'customer', customer:'KIZUNA', title:'Trưởng ban Quản lý', email:'long.nguyen@kizuna.vn', phone:'0903 111 222', owner:'Lê Thu Hà', status:'active', tx:[
    tx('2026-06-04','meeting','Họp khảo sát quy trình KCN','Thống nhất phạm vi số hóa giai đoạn 1.'),
    tx('2026-05-28','quote','Gửi báo giá BG-2026-039','Giá trị 320.000.000₫ — chờ phản hồi.'),
    tx('2026-05-20','email','Email giới thiệu giải pháp','Gửi hồ sơ năng lực + case study.'),
  ]},
  { code:'LH-0002', name:'Tanaka Yuki', native:'田中 由紀', nationality:'JP', type:'customer', customer:'SEMITEC', title:'購買マネージャー', email:'tanaka.y@semitec.co.jp', phone:'+81 90 1234 5678', owner:'Lê Thu Hà', status:'active', tx:[
    tx('2026-06-02','call','Call xác nhận đơn hàng linh kiện','Khách yêu cầu cập nhật tiến độ giao.'),
    tx('2026-05-15','contract','Ký hợp đồng cung cấp 2026','Thời hạn 12 tháng.'),
    tx('2026-04-30','payment','Thanh toán đợt 1','40% giá trị hợp đồng.'),
  ]},
  { code:'LH-0003', name:'Park Ji-won', native:'박지원', nationality:'KR', type:'partner', customer:'DASSVN', title:'Sales Director', email:'jiwon.park@dass.co.kr', phone:'+82 10 9876 5432', owner:'Trần Minh Quân', status:'active', tx:[
    tx('2026-05-31','deal','Cơ hội hợp tác logistics','Ước tính 1.2 tỷ — giai đoạn đề xuất.'),
    tx('2026-05-10','meeting','Họp đối tác quý 2','Trao đổi kế hoạch mở rộng.'),
  ]},
  { code:'LH-0004', name:'Trần Bảo Châu', native:'', nationality:'VN', type:'lead', customer:'TSD', title:'Giám đốc Công nghệ', email:'chau.tran@tsd.vn', phone:'0912 333 444', owner:'Trần Minh Quân', status:'active', tx:[
    tx('2026-06-01','email','Phản hồi quan tâm Cloud VoIP','Đề nghị demo trong tuần.'),
    tx('2026-05-25','feedback','Phản hồi sau hội thảo','Đánh giá cao nội dung trình bày.'),
  ]},
  { code:'LH-0005', name:'Müller Hans', native:'', nationality:'DE', type:'lead', customer:'BAUMANN', title:'Procurement Lead', email:'h.mueller@baumann.de', phone:'+49 151 2345 678', owner:'Lê Thu Hà', status:'prospect', tx:[
    tx('2026-05-22','note','Ghi chú từ triển lãm','Quan tâm giải pháp quản lý nhà xưởng.'),
  ]},
  { code:'LH-0006', name:'Lê Thị Mai', native:'', nationality:'VN', type:'customer', customer:'KYANON', title:'Project Manager', email:'mai.le@kyanon.digital', phone:'0987 555 666', owner:'Trần Minh Quân', status:'active', tx:[
    tx('2026-06-03','meeting','Review tiến độ dự án','Sprint 4 hoàn thành đúng hạn.'),
    tx('2026-05-18','payment','Thanh toán milestone 2','Đã xác nhận.'),
  ]},
  { code:'LH-0007', name:'Kim Seo-yeon', native:'김서연', nationality:'KR', type:'vendor', customer:'', title:'Account Manager', email:'seoyeon.kim@vendor.kr', phone:'+82 10 1122 3344', owner:'Phạm Quốc Bảo', status:'active', tx:[
    tx('2026-05-27','call','Trao đổi điều khoản cung cấp','Đàm phán chiết khấu.'),
  ]},
  { code:'LH-0008', name:'Phạm Văn Đức', native:'', nationality:'VN', type:'customer', customer:'NGOCMINH', title:'Giám đốc Vận hành', email:'duc.pham@ngocminh.vn', phone:'0934 777 888', owner:'Phạm Quốc Bảo', status:'active', tx:[
    tx('2026-05-30','contract','Gia hạn hợp đồng bảo trì','PC Health Check Annual.'),
    tx('2026-05-12','feedback','Phản hồi dịch vụ','Hài lòng, đề xuất mở rộng.'),
  ]},
  { code:'LH-0009', name:'Sato Haruki', native:'佐藤 春樹', nationality:'JP', type:'partner', customer:'NTSGROUP', title:'技術部長', email:'sato.h@nts.co.jp', phone:'+81 80 5678 1234', owner:'Trần Minh Quân', status:'active', tx:[
    tx('2026-05-21','meeting','Họp kỹ thuật tích hợp','Thống nhất API chuẩn.'),
  ]},
  { code:'LH-0010', name:'Vũ Quỳnh Anh', native:'', nationality:'VN', type:'lead', customer:'AIPOWER', title:'Marketing Lead', email:'anh.vu@aipower.vn', phone:'0901 999 000', owner:'Trần Minh Quân', status:'prospect', tx:[
    tx('2026-05-26','email','Gửi tài liệu giới thiệu','Theo dõi phản hồi.'),
  ]},
  { code:'LH-0011', name:'Đỗ Trung Kiên', native:'', nationality:'VN', type:'customer', customer:'HQGTECH', title:'CEO', email:'kien.do@hqg.vn', phone:'0978 222 111', owner:'Phạm Quốc Bảo', status:'active', tx:[
    tx('2026-06-04','deal','Cơ hội nâng cấp hệ thống','Giai đoạn thương thảo.'),
  ]},
  { code:'LH-0012', name:'Weber Anna', native:'', nationality:'DE', type:'vendor', customer:'', title:'Supply Manager', email:'a.weber@supply.de', phone:'+49 160 7788 990', owner:'Lê Thu Hà', status:'inactive', tx:[
    tx('2026-04-18','note','Ngừng hợp tác tạm thời','Chờ đánh giá lại Q3.'),
  ]},
  { code:'LH-0013', name:'Hoàng Nhật Nam', native:'', nationality:'VN', type:'partner', customer:'VTIDC', title:'Solution Architect', email:'nam.hoang@viettelidc.com.vn', phone:'0911 444 555', owner:'Lê Thu Hà', status:'active', tx:[
    tx('2026-05-29','meeting','Họp hạ tầng Cloud','Lên phương án triển khai.'),
  ]},
  { code:'LH-0014', name:'Choi Min-jun', native:'최민준', nationality:'KR', type:'lead', customer:'', title:'Business Dev', email:'minjun.choi@biz.kr', phone:'+82 10 3344 5566', owner:'Trần Minh Quân', status:'prospect', tx:[
    tx('2026-05-19','call','Giới thiệu cơ hội thị trường','Khám phá nhu cầu.'),
  ]},
];
const CONTACT_TYPES = { customer:{vi:'Khách hàng',en:'Customer'}, partner:{vi:'Đối tác',en:'Partner'}, lead:{vi:'Tiềm năng',en:'Lead'}, vendor:{vi:'Nhà cung cấp',en:'Vendor'} };

/* ---------------- Email module ---------------- */
const EMAIL_TEMPLATES = [
  { id:'t1', name:{vi:'Thư giới thiệu dịch vụ', en:'Service introduction'}, subject:'S.W.O — Giải pháp chuyển đổi số cho doanh nghiệp',
    html:'<h2>Kính gửi Quý doanh nghiệp,</h2><p>S.W.O Technology mang đến giải pháp <b>Smart · Optimal · Simple</b> giúp doanh nghiệp chuyển đổi số với chi phí tối ưu.</p><p>Chúng tôi rất mong có cơ hội được tư vấn chi tiết.</p>' },
  { id:'t2', name:{vi:'Gửi báo giá', en:'Send quote'}, subject:'Báo giá dịch vụ — S.W.O Technology',
    html:'<h2>Xin chào,</h2><p>Đính kèm là báo giá chi tiết theo yêu cầu của Quý khách. Báo giá có hiệu lực trong <b>30 ngày</b>.</p><p>Vui lòng phản hồi nếu cần điều chỉnh.</p>' },
  { id:'t3', name:{vi:'Xác nhận cuộc họp', en:'Meeting confirmation'}, subject:'Xác nhận lịch họp với S.W.O',
    html:'<h2>Kính gửi Anh/Chị,</h2><p>Chúng tôi xác nhận cuộc họp vào <b>[thời gian]</b> tại <b>[địa điểm]</b>.</p><p>Rất mong được gặp Anh/Chị.</p>' },
  { id:'t4', name:{vi:'Cảm ơn sau hợp tác', en:'Thank you'}, subject:'Cảm ơn Quý khách đã tin tưởng S.W.O',
    html:'<h2>Trân trọng cảm ơn,</h2><p>S.W.O xin chân thành cảm ơn sự hợp tác của Quý khách. Chúng tôi cam kết đồng hành <b>24/7</b>.</p>' },
];
const SENT_EMAILS = [
  { id:'e1', to:['long.nguyen@kizuna.vn'], subject:'S.W.O — Giải pháp chuyển đổi số cho doanh nghiệp', date:'2026-06-04 10:22', status:'sent',
    html:'<h2>Kính gửi Quý doanh nghiệp,</h2><p>S.W.O Technology mang đến giải pháp <b>Smart · Optimal · Simple</b>...</p>' },
  { id:'e2', to:['mai.le@kyanon.digital','chau.tran@tsd.vn'], subject:'Báo giá dịch vụ Cloud VoIP', date:'2026-06-03 16:40', status:'sent',
    html:'<h2>Xin chào,</h2><p>Đính kèm báo giá chi tiết. Hiệu lực 30 ngày.</p>' },
  { id:'e3', to:['tanaka.y@semitec.co.jp'], subject:'Meeting confirmation — June 6', date:'2026-06-02 09:05', status:'sent',
    html:'<h2>Dear Tanaka-san,</h2><p>We confirm our meeting on <b>June 6, 14:00</b>.</p>' },
  { id:'e4', to:['kien.do@hqg.vn'], subject:'Cảm ơn Quý khách đã tin tưởng S.W.O', date:'2026-05-30 11:30', status:'sent',
    html:'<h2>Trân trọng cảm ơn,</h2><p>S.W.O cam kết đồng hành 24/7.</p>' },
];
const SIGNATURE = '<p style="margin:0">—<br><b>Trần Minh Quân</b><br>S.W.O Technology · info@swo.vn · 08888 202 89</p>';

Object.assign(window, {
  USERS, APPS, APP_GROUPS, ANNOUNCEMENTS, TASKS, APPROVALS, NOTIFS, AGENDA, DOCS,
  INDUSTRIES, CUSTOMERS, COUNTRIES, LANGS, TX_TYPES, CONTACTS, CONTACT_TYPES,
  EMAIL_TEMPLATES, SENT_EMAILS, SIGNATURE,
});
