%PDF- %PDF-
| Direktori : /home2/rezakur1/muakita.rezakurnia.com/Mua-Kita-Web/src/components/views/ |
| Current File : //home2/rezakur1/muakita.rezakurnia.com/Mua-Kita-Web/src/components/views/PengaturanView.tsx |
import React, { useState, useEffect } from 'react';
import {
Building2, MapPin, Image as ImageIcon, Phone, Sliders, FileText,
Save, RotateCcw, Upload, Map, Palette, Globe, ChevronRight, Check,
Instagram, Facebook, ExternalLink, Calendar, AlertTriangle, Download,
Trash2, ShieldAlert, FileCode, CheckCircle2, RefreshCw, X, Sparkles,
CreditCard, Clock, Plus, Edit3, QrCode, ToggleLeft, ToggleRight,
HelpCircle, Layers, CheckCircle
} from 'lucide-react';
interface BankAccount {
id: string;
bankName: string;
accountNumber: string;
accountName: string;
isPrimary: boolean;
isQrCode: boolean;
qrCodeUrl?: string;
notes?: string;
}
interface DaySchedule {
day: string;
isOpen: boolean;
openTime: string;
closeTime: string;
maxSlot: number;
breakStart?: string;
breakEnd?: string;
}
interface PengaturanViewProps {
activeTab?: string;
setActiveTab?: (tab: string) => void;
triggerToast: (msg: string) => void;
}
export const PengaturanView: React.FC<PengaturanViewProps> = ({
activeTab: externalTab,
setActiveTab: setExternalTab,
triggerToast
}) => {
// Determine local active tab based on external route if provided
const getInitialTab = (): 'semua' | 'profil' | 'operasional' | 'rekening' | 'form_publik' => {
if (externalTab === 'pengaturan_form_publik') return 'form_publik';
if (externalTab === 'pengaturan_profil') return 'profil';
if (externalTab === 'pengaturan_operasional') return 'operasional';
if (externalTab === 'pengaturan_rekening') return 'rekening';
return 'semua';
};
// Active Filter Tab in Settings Header
const [activeTab, setActiveTab] = useState<'semua' | 'profil' | 'operasional' | 'rekening' | 'form_publik'>(getInitialTab);
useEffect(() => {
if (externalTab === 'pengaturan_form_publik') setActiveTab('form_publik');
else if (externalTab === 'pengaturan_profil') setActiveTab('profil');
else if (externalTab === 'pengaturan_operasional') setActiveTab('operasional');
else if (externalTab === 'pengaturan_rekening') setActiveTab('rekening');
else if (externalTab === 'pengaturan' || externalTab === 'pengaturan_group') setActiveTab('semua');
}, [externalTab]);
const handleTabChange = (tab: 'semua' | 'profil' | 'operasional' | 'rekening' | 'form_publik') => {
setActiveTab(tab);
if (setExternalTab) {
if (tab === 'form_publik') setExternalTab('pengaturan_form_publik');
else if (tab === 'profil') setExternalTab('pengaturan_profil');
else if (tab === 'operasional') setExternalTab('pengaturan_operasional');
else if (tab === 'rekening') setExternalTab('pengaturan_rekening');
else setExternalTab('pengaturan');
}
};
// --- FORM STATES ---
// 0. Pengaturan Form Publik Tenan (Dinamis)
const [publicFormConfig, setPublicFormConfig] = useState(() => {
try {
const saved = localStorage.getItem('tenant_public_form_config');
if (saved) return JSON.parse(saved);
} catch (e) {
console.error(e);
}
return {
formTitle: 'Form Reservasi Publik Mandiri (Customer Self-Service)',
formSubtitle: 'Pelanggan dapat mengisi data diri, memilih paket, lokasi, serta opsi pembayaran DP secara langsung.',
studioName: 'Glamour Touch Studio',
studioTagline: 'Official MuaKita Tenant',
tenantIdCode: 'TEN-GLAMOUR',
studioAddress: 'Beauty Studio, Lantai 2, Unit B2-05 (Akses Lift Barat)',
studioDescription: 'Glamour Touch Studio adalah studio kecantikan & MUA profesional yang menghadirkan sentuhan terbaik untuk setiap momen spesial Anda. Dengan tim makeup artist berpengalaman lebih dari 3 tahun, produk high-end internasional, dan teknik complexion flawless anti-luntur 18 jam.',
bannerImage: 'https://images.unsplash.com/photo-1534528741775-53994a69daeb?auto=format&fit=crop&q=80&w=800',
galleryImage1: 'https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&q=80&w=300',
galleryImage2: 'https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?auto=format&fit=crop&q=80&w=300',
galleryImage3: 'https://images.unsplash.com/photo-1512496015851-a90fb38ba796?auto=format&fit=crop&q=80&w=300',
vipBadgeText: 'Studio VIP AC',
badgeChoiceText: 'Tenan Pilihan',
badgeVerifiedText: 'MUA Verified',
showAnnouncement: true,
announcementText: '⚡ Promo Bulan Ini: Dapatkan potongan DP 10% untuk pemesanan paket Wedding H-14!',
ratingValue: '4.9',
ratingCount: '256 Ulasan',
yearsExperience: '3+ Tahun',
satisfiedClients: '5.000+',
certificationText: 'MUA Pro Int.',
featureTag1: 'Garansi On-Time',
featureTag2: 'High-End Cosmetics',
featureTag3: 'Free Skincare Prep',
statusBadgeText: 'Buka',
specializationText: 'Bridal Makeup, Hairdo & Hijab Styling',
advantagesText: 'Flawless 18 jam, tahan air/keringat & ramah kulit sensitif',
suitableForText: 'Wedding, Engagement, Prewedding, Wisuda, & Event',
operatingHoursText: 'Setiap Hari: 09.00 - 20.00 WIB',
socialMediaHandle: '@glamourtouch.studio',
highlight1Title: '100% High-End Branded Cosmetics',
highlight1Desc: 'Menggunakan koleksi makeup original ternama seperti Dior, Charlotte Tilbury, Bobbi Brown, MAC, & Make Over untuk kesehatan kulit jangka panjang.',
highlight2Title: 'Standard Higienis Sterilisasi UV',
highlight2Desc: 'Setiap brush, sponge, dan aplikator dibersihkan dan disterilkan menggunakan UV Sanitizer Box sebelum berpindah ke klien berikutnya.',
highlight3Title: 'Langganan Influencer & Public Figure',
highlight3Desc: 'Telah dipercaya merias lebih dari 25+ Influencer & Figur Publik lokal untuk momen resepsi pernikahan, photo shoot, dan gala dinner.',
highlight4Title: 'Jaminan Punctuality (Tepat Waktu)',
highlight4Desc: 'Tim MUA kami bergaransi tiba 15 menit sebelum waktu pengerjaan. Proses riasan dikerjakan secara terstruktur tanpa mengulur jadwal acara.',
highlight5Title: 'Teknik Complexion Anti-Luntur 18 Jam',
highlight5Desc: 'Formula racikan khusus MUA profesional yang waterproof & sweatproof, tahan minyak seharian meski berada di venue outdoor/iklim tropis.',
highlight6Title: 'Free Touchup Kit & Softlens Import',
highlight6Desc: 'Setiap pemesanan Paket Wedding via portal MuaKita mendapatkan Complimentary Touchup Kit (lipcream, blotting paper) & Softlens gratis!',
minDpPercent: 30,
homecareTransportFee: 100000,
allowHomecare: true,
requireGmaps: true,
allowAdditionalPerson: true,
allowSocialTag: true,
bcaAccount: '8830-1928-3019 a.n. Glamour Touch Studio',
mandiriAccount: '1270-0192-8301 a.n. Glamour Touch Studio',
qrisAccount: 'QRIS GLAMOUR TOUCH STUDIO',
termsAndConditions: '1. Transfer DP minimal 30% untuk konfirmasi jadwal dan mengamankan slot MUA.\n2. Pembatalan sepihak mengakibatkan DP hangus (Non-refundable).\n3. Pelunasan sisa pembayaran dilakukan maksimal H-1 acara atau saat layanan selesai.',
clientNotes: 'Mohon wajah sudah dibersihkan dari sisa makeup & bebas skincare tebal 15 menit sebelum kedatangan MUA.',
submitButtonText: 'Kirim Reservasi Sekarang',
waAdminNumber: '081216613315',
waTemplateMessage: 'Halo {studio_name}, saya telah membuat reservasi online dengan kode {kode_booking} atas nama {nama_client} untuk tanggal {tanggal_acara}. Mohon verifikasi DP & konfirmasi slot ya!'
};
});
// 1. Informasi Bisnis
const [namaBisnis, setNamaBisnis] = useState('Vivaz Make Up');
const [namaPemilik, setNamaPemilik] = useState('Nur Khofifah');
const [emailBisnis, setEmailBisnis] = useState('vivaz.makeup@gmail.com');
const [phonePrefix, setPhonePrefix] = useState('+62');
const [phoneNumber, setPhoneNumber] = useState('812-1661-3315');
const [kategoriUtama, setKategoriUtama] = useState('Paket Wedding');
const [tahunBerdiri, setTahunBerdiri] = useState('2018');
const [deskripsiBisnis, setDeskripsiBisnis] = useState(
'Melayani rias pengantin, lamaran, wisuda, photoshoot dan acara spesial lainnya dengan sentuhan profesional dan elegan.'
);
// 2. Alamat Bisnis
const [alamatLengkap, setAlamatLengkap] = useState('Jl. Patimura 3E No.143 Sengon, Jombang, Jawa Timur, Indonesia');
const [kota, setKota] = useState('Jombang');
const [provinsi, setProvinsi] = useState('Jawa Timur');
const [kodePos, setKodePos] = useState('61419');
const [showMapModal, setShowMapModal] = useState(false);
// 3. Logo & Branding
const [warnaUtama, setWarnaUtama] = useState('#E91E63');
const [warnaSekunder, setWarnaSekunder] = useState('#8E24AA');
const [fontUtama, setFontUtama] = useState('Poppins');
const [logoPreview, setLogoPreview] = useState<string | null>(null);
// 4. Jam Operasional Studio
const [schedule, setSchedule] = useState<DaySchedule[]>([
{ day: 'Senin', isOpen: true, openTime: '08:00', closeTime: '20:00', maxSlot: 3 },
{ day: 'Selasa', isOpen: true, openTime: '08:00', closeTime: '20:00', maxSlot: 3 },
{ day: 'Rabu', isOpen: true, openTime: '08:00', closeTime: '20:00', maxSlot: 3 },
{ day: 'Kamis', isOpen: true, openTime: '08:00', closeTime: '20:00', maxSlot: 3 },
{ day: 'Jumat', isOpen: true, openTime: '08:00', closeTime: '20:00', maxSlot: 4 },
{ day: 'Sabtu', isOpen: true, openTime: '06:00', closeTime: '21:00', maxSlot: 6 },
{ day: 'Minggu', isOpen: true, openTime: '06:00', closeTime: '21:00', maxSlot: 6 },
]);
// 5. Rekening Bank & Pembayaran Studio
const [bankAccounts, setBankAccounts] = useState<BankAccount[]>([
{ id: '1', bankName: 'Bank BCA', accountNumber: '123-456-7890', accountName: 'Nur Khofifah', isPrimary: true, isQrCode: true, qrCodeUrl: 'https://images.unsplash.com/photo-1607604276583-eef5d076aa5f?auto=format&fit=crop&q=80&w=200', notes: 'Utama untuk Transfer DP Wedding' },
{ id: '2', bankName: 'Bank Mandiri', accountNumber: '987-654-3210', accountName: 'Vivaz Make Up Studio', isPrimary: false, isQrCode: false, notes: 'Rekening Operasional Studio' },
{ id: '3', bankName: 'Bank BRI', accountNumber: '0012-01-002345-50-8', accountName: 'Nur Khofifah', isPrimary: false, isQrCode: false },
]);
const [showAddBankModal, setShowAddBankModal] = useState(false);
const [editingBankId, setEditingBankId] = useState<string | null>(null);
const [bankForm, setBankForm] = useState<Omit<BankAccount, 'id'>>({
bankName: 'Bank BCA',
accountNumber: '',
accountName: '',
isPrimary: false,
isQrCode: false,
notes: ''
});
// 6. Kontak & Media Sosial
const [waBusiness, setWaBusiness] = useState('0812-1661-3315');
const [instagram, setInstagram] = useState('@vivaz_makeup');
const [facebook, setFacebook] = useState('Vivaz Make Up');
const [tiktok, setTiktok] = useState('@vivaz_makeup');
const [website, setWebsite] = useState('www.vivazmakeup.com');
// 7. Pengaturan Operasional & Preferensi
const [zonaWaktu, setZonaWaktu] = useState('(GMT+07:00) Jakarta, Indonesia');
const [mataUang, setMataUang] = useState('Rupiah (IDR) - Rp');
const [formatTanggal, setFormatTanggal] = useState('21 Mei 2025 (DD MMM YYYY)');
const [pembulatanHarga, setPembulatanHarga] = useState(true);
const [bookingLuarJam, setBookingLuarJam] = useState(false);
const [tampilkanPajak, setTampilkanPajak] = useState(true);
const [konfirmasiOtomatis, setKonfirmasiOtomatis] = useState(true);
// Backup & Delete Modals
const [showDeleteModal, setShowDeleteModal] = useState(false);
const [isSaving, setIsSaving] = useState(false);
// Handlers
const handleSave = (e?: React.FormEvent) => {
if (e) e.preventDefault();
setIsSaving(true);
try {
localStorage.setItem('tenant_public_form_config', JSON.stringify(publicFormConfig));
} catch (err) {
console.error(err);
}
setTimeout(() => {
setIsSaving(false);
triggerToast('Seluruh perubahan pengaturan bisnis & Form Publik berhasil disimpan!');
}, 600);
};
const handleReset = () => {
triggerToast('Pengaturan dikembalikan ke awal.');
};
const handleBackup = () => {
triggerToast('Mengunduh berkas backup data bisnis (JSON/ZIP)...');
};
// Operating Hours Handlers
const handleToggleDay = (index: number) => {
setSchedule(prev => prev.map((item, idx) =>
idx === index ? { ...item, isOpen: !item.isOpen } : item
));
};
const handleTimeChange = (index: number, field: 'openTime' | 'closeTime' | 'maxSlot', val: any) => {
setSchedule(prev => prev.map((item, idx) =>
idx === index ? { ...item, [field]: val } : item
));
};
const applySameHoursToAll = () => {
const firstDay = schedule[0];
setSchedule(prev => prev.map(item => ({
...item,
isOpen: true,
openTime: firstDay.openTime,
closeTime: firstDay.closeTime
})));
triggerToast('Jam buka Senin berhasil diterapkan ke seluruh hari!');
};
// Bank Handlers
const handleOpenAddBank = () => {
setEditingBankId(null);
setBankForm({
bankName: 'Bank BCA',
accountNumber: '',
accountName: namaPemilik,
isPrimary: bankAccounts.length === 0,
isQrCode: false,
notes: ''
});
setShowAddBankModal(true);
};
const handleOpenEditBank = (acc: BankAccount) => {
setEditingBankId(acc.id);
setBankForm({
bankName: acc.bankName,
accountNumber: acc.accountNumber,
accountName: acc.accountName,
isPrimary: acc.isPrimary,
isQrCode: acc.isQrCode,
notes: acc.notes || ''
});
setShowAddBankModal(true);
};
const handleSaveBank = () => {
if (!bankForm.accountNumber || !bankForm.accountName) {
triggerToast('Mohon lengkapi nomor rekening dan nama pemilik rekening!');
return;
}
if (editingBankId) {
setBankAccounts(prev => prev.map(item => {
if (item.id === editingBankId) {
return { ...item, ...bankForm };
}
if (bankForm.isPrimary) {
return { ...item, isPrimary: false };
}
return item;
}));
triggerToast('Rekening bank berhasil diperbarui!');
} else {
const newAcc: BankAccount = {
id: Date.now().toString(),
...bankForm
};
if (bankForm.isPrimary) {
setBankAccounts(prev => prev.map(item => ({ ...item, isPrimary: false })).concat(newAcc));
} else {
setBankAccounts(prev => [...prev, newAcc]);
}
triggerToast('Rekening bank baru berhasil ditambahkan!');
}
setShowAddBankModal(false);
};
const handleDeleteBank = (id: string) => {
setBankAccounts(prev => prev.filter(item => item.id !== id));
triggerToast('Rekening bank telah dihapus.');
};
const handleSetPrimaryBank = (id: string) => {
setBankAccounts(prev => prev.map(item => ({
...item,
isPrimary: item.id === id
})));
triggerToast('Rekening bank utama berhasil diubah.');
};
return (
<div className="space-y-4 animate-in fade-in duration-300 text-slate-800 pb-28">
{/* HEADER SECTION */}
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-3 bg-white p-4 rounded-2xl border border-slate-200/80 shadow-2xs">
<div className="flex items-start gap-3">
<div className="w-10 h-10 rounded-2xl bg-[#EC167F]/10 text-[#EC167F] flex items-center justify-center font-bold shrink-0 mt-0.5">
<Sliders className="w-5 h-5 stroke-[2.5]" />
</div>
<div>
<div className="flex items-center gap-2">
<h1 className="text-xl font-black text-slate-900 tracking-tight">Pengaturan Studio</h1>
<span className="px-2 py-0.5 bg-emerald-50 text-emerald-700 text-[10px] font-extrabold rounded-md border border-emerald-200">
Studio Terverifikasi
</span>
</div>
<p className="text-xs text-slate-500 font-medium mt-0.5">
Kelola informasi bisnis, jam operasional, rekening bank pembayaran, dan branding studio Anda.
</p>
</div>
</div>
{/* Category Tab Filters */}
<div className="flex items-center gap-1.5 bg-slate-100 p-1 rounded-xl self-start sm:self-center text-xs font-extrabold">
<button
type="button"
onClick={() => handleTabChange('semua')}
className={`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${
activeTab === 'semua' ? 'bg-white text-[#EC167F] shadow-2xs' : 'text-slate-600 hover:text-slate-900'
}`}
>
Semua
</button>
<button
type="button"
onClick={() => handleTabChange('profil')}
className={`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${
activeTab === 'profil' ? 'bg-white text-[#EC167F] shadow-2xs' : 'text-slate-600 hover:text-slate-900'
}`}
>
Profil & Branding
</button>
<button
type="button"
onClick={() => handleTabChange('operasional')}
className={`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${
activeTab === 'operasional' ? 'bg-white text-[#EC167F] shadow-2xs' : 'text-slate-600 hover:text-slate-900'
}`}
>
Jam Buka
</button>
<button
type="button"
onClick={() => handleTabChange('rekening')}
className={`px-3 py-1.5 rounded-lg transition-all cursor-pointer ${
activeTab === 'rekening' ? 'bg-white text-[#EC167F] shadow-2xs' : 'text-slate-600 hover:text-slate-900'
}`}
>
Rekening Bank
</button>
<button
type="button"
onClick={() => handleTabChange('form_publik')}
className={`px-3 py-1.5 rounded-lg transition-all cursor-pointer flex items-center gap-1.5 ${
activeTab === 'form_publik' ? 'bg-white text-[#EC167F] shadow-2xs' : 'text-slate-600 hover:text-slate-900'
}`}
>
<Globe className="w-3.5 h-3.5" />
<span>Form Publik (Tenant)</span>
</button>
</div>
</div>
{/* SECTION: PENGATURAN FORM PUBLIK (KONTEN DINAMIS TENAN) */}
{(activeTab === 'semua' || activeTab === 'form_publik') && (
<div className="bg-white p-5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-5">
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-3 pb-3 border-b border-slate-100">
<div className="flex items-center gap-2.5">
<div className="w-8 h-8 rounded-xl bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold">
<Globe className="w-4.5 h-4.5 stroke-[2.5]" />
</div>
<div>
<h2 className="text-sm font-extrabold text-slate-900">Pengaturan Form Publik (Dinamis Tenan)</h2>
<p className="text-xs text-slate-500 font-medium">Sesuaikan seluruh teks, banner, syarat DP, lokasi, & pesan otomatis WhatsApp untuk form booking publik tenan Anda.</p>
</div>
</div>
<div className="flex items-center gap-2">
<button
type="button"
onClick={() => {
try {
localStorage.setItem('tenant_public_form_config', JSON.stringify(publicFormConfig));
} catch (e) {}
triggerToast('Pengaturan Form Publik berhasil disimpan!');
}}
className="px-3.5 py-1.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer"
>
<Save className="w-3.5 h-3.5" />
<span>Simpan Form Publik</span>
</button>
<button
type="button"
onClick={() => {
try {
localStorage.setItem('tenant_public_form_config', JSON.stringify(publicFormConfig));
} catch (e) {}
if (setExternalTab) setExternalTab('form_reservasi_publik');
}}
className="px-3.5 py-1.5 bg-slate-900 hover:bg-slate-800 text-white rounded-xl text-xs font-extrabold transition-all flex items-center gap-1.5 shadow-2xs cursor-pointer"
>
<ExternalLink className="w-3.5 h-3.5" />
<span>Buka & Uji Form Publik</span>
</button>
</div>
</div>
<div className="grid grid-cols-1 lg:grid-cols-2 gap-5">
{/* KANAN/KIRI 1: IDENTITAS, BANNER, FOTO GALERI & BADGE */}
<div className="space-y-4 bg-slate-50/70 p-4 rounded-2xl border border-slate-200/80">
<h3 className="text-xs font-extrabold text-slate-900 flex items-center gap-1.5 text-[#EC167F]">
<ImageIcon className="w-4 h-4" />
<span>1. Visual Banner, Foto Galeri & Identitas Studio</span>
</h3>
<div className="space-y-3 text-xs">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Judul Utama Form Booking</label>
<input
type="text"
value={publicFormConfig.formTitle || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, formTitle: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]"
placeholder="Contoh: Form Reservasi Online Studio"
/>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-2.5">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Nama Studio / Tenan Publik</label>
<input
type="text"
value={publicFormConfig.studioName || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, studioName: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-black text-slate-900 focus:outline-none focus:border-[#EC167F]"
placeholder="Glamour Touch Studio"
/>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Kode ID Tenan</label>
<input
type="text"
value={publicFormConfig.tenantIdCode || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, tenantIdCode: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-mono text-slate-800 font-bold focus:outline-none focus:border-[#EC167F]"
placeholder="TEN-GLAMOUR"
/>
</div>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-2.5">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Tagline / Sub-label Tenan</label>
<input
type="text"
value={publicFormConfig.studioTagline || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, studioTagline: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-semibold text-slate-800 focus:outline-none focus:border-[#EC167F]"
placeholder="Official MuaKita Tenant"
/>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Alamat Ringkas Studio</label>
<input
type="text"
value={publicFormConfig.studioAddress || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, studioAddress: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-medium text-slate-800 focus:outline-none focus:border-[#EC167F]"
placeholder="Beauty Studio, Lt. 2 Unit B2-05"
/>
</div>
</div>
{/* Cover Image Banner & Preview */}
<div className="p-3 bg-white rounded-xl border border-slate-200 space-y-2">
<div className="flex items-center justify-between">
<label className="block text-slate-800 font-extrabold text-[11px]">URL Foto Cover Main Banner</label>
<span className="text-[10px] text-slate-400 font-medium">Link Unsplash / CDN</span>
</div>
<input
type="text"
value={publicFormConfig.bannerImage || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, bannerImage: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono text-[11px] text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F]"
placeholder="https://images.unsplash.com/photo-..."
/>
{publicFormConfig.bannerImage && (
<div className="relative h-24 rounded-lg overflow-hidden border border-slate-200 mt-1">
<img
src={publicFormConfig.bannerImage}
alt="Preview Banner"
referrerPolicy="no-referrer"
className="w-full h-full object-cover object-top"
onError={(e) => { (e.target as HTMLElement).style.display = 'none'; }}
/>
<span className="absolute bottom-1 right-1 bg-black/60 text-white text-[9px] px-1.5 py-0.5 rounded font-bold">Preview Banner</span>
</div>
)}
</div>
{/* 3 Galeri Foto Thumbnails */}
<div className="p-3 bg-white rounded-xl border border-slate-200 space-y-2">
<span className="block text-slate-800 font-extrabold text-[11px]">3 Foto Thumbnail Galeri Studio (Di bawah Banner Utama):</span>
<div className="space-y-2">
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">URL Foto Galeri 1</label>
<input
type="text"
value={publicFormConfig.galleryImage1 || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, galleryImage1: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-mono text-[10px] text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">URL Foto Galeri 2</label>
<input
type="text"
value={publicFormConfig.galleryImage2 || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, galleryImage2: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-mono text-[10px] text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">URL Foto Galeri 3</label>
<input
type="text"
value={publicFormConfig.galleryImage3 || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, galleryImage3: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-mono text-[10px] text-slate-700 focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
<div className="grid grid-cols-3 gap-1.5 pt-1">
{publicFormConfig.galleryImage1 && <img src={publicFormConfig.galleryImage1} alt="G1" className="h-12 w-full object-cover rounded-md border" />}
{publicFormConfig.galleryImage2 && <img src={publicFormConfig.galleryImage2} alt="G2" className="h-12 w-full object-cover rounded-md border" />}
{publicFormConfig.galleryImage3 && <img src={publicFormConfig.galleryImage3} alt="G3" className="h-12 w-full object-cover rounded-md border" />}
</div>
</div>
{/* Badge Overlay Teks */}
<div className="p-3 bg-white rounded-xl border border-slate-200 space-y-2">
<span className="block text-slate-800 font-extrabold text-[11px]">Badge & Label Atas Gambar:</span>
<div className="grid grid-cols-3 gap-2">
<div>
<label className="text-[10px] text-slate-500 font-bold block">Badge Kiri Top</label>
<input
type="text"
value={publicFormConfig.badgeChoiceText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, badgeChoiceText: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-[10px]"
placeholder="Tenan Pilihan"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block">Badge Verified</label>
<input
type="text"
value={publicFormConfig.badgeVerifiedText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, badgeVerifiedText: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-[10px]"
placeholder="MUA Verified"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block">Badge Kanan Bottom</label>
<input
type="text"
value={publicFormConfig.vipBadgeText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, vipBadgeText: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-[10px]"
placeholder="Studio VIP AC"
/>
</div>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Deskripsi Profil Tenan</label>
<textarea
rows={3}
value={publicFormConfig.studioDescription || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, studioDescription: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-normal text-slate-700 leading-relaxed focus:outline-none focus:border-[#EC167F]"
placeholder="Tuliskan deskripsi keunggulan studio Anda..."
/>
</div>
{/* Quick Stats Grid */}
<div className="pt-2 border-t border-slate-200 space-y-2">
<span className="font-bold text-slate-900 block text-[11px]">Statistik / Rating Tampilan Banner:</span>
<div className="grid grid-cols-2 sm:grid-cols-5 gap-2">
<div>
<label className="text-[10px] text-slate-500 font-semibold block">Rating</label>
<input
type="text"
value={publicFormConfig.ratingValue || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, ratingValue: e.target.value })}
className="w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold"
placeholder="4.9"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-semibold block">Ulasan</label>
<input
type="text"
value={publicFormConfig.ratingCount || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, ratingCount: e.target.value })}
className="w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold"
placeholder="256 Ulasan"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-semibold block">Pengalaman</label>
<input
type="text"
value={publicFormConfig.yearsExperience || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, yearsExperience: e.target.value })}
className="w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold"
placeholder="3+ Tahun"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-semibold block">Pelanggan</label>
<input
type="text"
value={publicFormConfig.satisfiedClients || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, satisfiedClients: e.target.value })}
className="w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold"
placeholder="5.000+"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-semibold block">Sertifikasi</label>
<input
type="text"
value={publicFormConfig.certificationText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, certificationText: e.target.value })}
className="w-full p-1.5 bg-white border border-slate-200 rounded-lg text-center font-bold"
placeholder="MUA Pro Int."
/>
</div>
</div>
</div>
{/* 3 Pills Feature Highlight Tag */}
<div className="pt-2 border-t border-slate-200 space-y-2">
<span className="font-bold text-slate-900 block text-[11px]">3 Badge / Tag Highlight Di Bawah Statistik:</span>
<div className="grid grid-cols-3 gap-2">
<input
type="text"
value={publicFormConfig.featureTag1 || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, featureTag1: e.target.value })}
className="w-full p-1.5 bg-white border border-slate-200 rounded-lg font-bold text-[10px] text-slate-700"
placeholder="Garansi On-Time"
/>
<input
type="text"
value={publicFormConfig.featureTag2 || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, featureTag2: e.target.value })}
className="w-full p-1.5 bg-white border border-slate-200 rounded-lg font-bold text-[10px] text-slate-700"
placeholder="High-End Cosmetics"
/>
<input
type="text"
value={publicFormConfig.featureTag3 || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, featureTag3: e.target.value })}
className="w-full p-1.5 bg-white border border-slate-200 rounded-lg font-bold text-[10px] text-slate-700"
placeholder="Free Skincare Prep"
/>
</div>
</div>
{/* Side Card: Tentang Tenan */}
<div className="p-3 bg-white rounded-xl border border-slate-200 space-y-2">
<span className="block text-slate-800 font-extrabold text-[11px]">Kartu Kanan "Tentang Tenan":</span>
<div className="space-y-2 text-[11px]">
<div className="grid grid-cols-2 gap-2">
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">Status Studio</label>
<input
type="text"
value={publicFormConfig.statusBadgeText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, statusBadgeText: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-emerald-700"
placeholder="Buka"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">Instagram Studio</label>
<input
type="text"
value={publicFormConfig.socialMediaHandle || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, socialMediaHandle: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-bold text-[#EC167F]"
placeholder="@glamourtouch.studio"
/>
</div>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">Spesialisasi</label>
<input
type="text"
value={publicFormConfig.specializationText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, specializationText: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-medium"
placeholder="Bridal Makeup, Hairdo & Hijab Styling"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">Keunggulan Utama</label>
<input
type="text"
value={publicFormConfig.advantagesText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, advantagesText: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-medium"
placeholder="Flawless 18 jam, tahan air/keringat..."
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">Cocok Untuk</label>
<input
type="text"
value={publicFormConfig.suitableForText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, suitableForText: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-medium"
placeholder="Wedding, Engagement, Prewedding, Wisuda, & Event"
/>
</div>
<div>
<label className="text-[10px] text-slate-500 font-bold block mb-0.5">Jam Operasional</label>
<input
type="text"
value={publicFormConfig.operatingHoursText || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, operatingHoursText: e.target.value })}
className="w-full p-1.5 bg-slate-50 border border-slate-200 rounded-lg font-medium"
placeholder="Setiap Hari: 09.00 - 20.00 WIB"
/>
</div>
</div>
</div>
</div>
</div>
{/* KANAN/KIRI 2: HIGHLIGHT KEUNGGULAN (6 KARTU) & ATURAN ATAS */}
<div className="space-y-4 bg-slate-50/70 p-4 rounded-2xl border border-slate-200/80">
<h3 className="text-xs font-extrabold text-slate-900 flex items-center gap-1.5 text-[#EC167F]">
<Sparkles className="w-4 h-4" />
<span>2. 6 Kartu Keunggulan Studio & Pengumuman</span>
</h3>
<div className="space-y-3 text-xs">
{/* 6 Kartu Feature Highlights */}
<div className="p-3 bg-white rounded-xl border border-slate-200 space-y-2.5">
<span className="block text-slate-800 font-extrabold text-[11px]">Editor 6 Kartu Informasi Menarik & Keunggulan Studio (Di Bawah Banner):</span>
<div className="space-y-2 max-h-72 overflow-y-auto pr-1">
{/* Kartu 1 */}
<div className="p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1">
<span className="text-[10px] font-black text-[#EC167F] block">Kartu 1</span>
<input
type="text"
value={publicFormConfig.highlight1Title || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight1Title: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]"
placeholder="Judul Kartu 1"
/>
<textarea
rows={2}
value={publicFormConfig.highlight1Desc || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight1Desc: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded text-[10px]"
placeholder="Deskripsi Kartu 1"
/>
</div>
{/* Kartu 2 */}
<div className="p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1">
<span className="text-[10px] font-black text-[#EC167F] block">Kartu 2</span>
<input
type="text"
value={publicFormConfig.highlight2Title || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight2Title: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]"
placeholder="Judul Kartu 2"
/>
<textarea
rows={2}
value={publicFormConfig.highlight2Desc || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight2Desc: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded text-[10px]"
placeholder="Deskripsi Kartu 2"
/>
</div>
{/* Kartu 3 */}
<div className="p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1">
<span className="text-[10px] font-black text-[#EC167F] block">Kartu 3</span>
<input
type="text"
value={publicFormConfig.highlight3Title || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight3Title: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]"
placeholder="Judul Kartu 3"
/>
<textarea
rows={2}
value={publicFormConfig.highlight3Desc || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight3Desc: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded text-[10px]"
placeholder="Deskripsi Kartu 3"
/>
</div>
{/* Kartu 4 */}
<div className="p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1">
<span className="text-[10px] font-black text-[#EC167F] block">Kartu 4</span>
<input
type="text"
value={publicFormConfig.highlight4Title || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight4Title: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]"
placeholder="Judul Kartu 4"
/>
<textarea
rows={2}
value={publicFormConfig.highlight4Desc || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight4Desc: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded text-[10px]"
placeholder="Deskripsi Kartu 4"
/>
</div>
{/* Kartu 5 */}
<div className="p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1">
<span className="text-[10px] font-black text-[#EC167F] block">Kartu 5</span>
<input
type="text"
value={publicFormConfig.highlight5Title || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight5Title: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]"
placeholder="Judul Kartu 5"
/>
<textarea
rows={2}
value={publicFormConfig.highlight5Desc || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight5Desc: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded text-[10px]"
placeholder="Deskripsi Kartu 5"
/>
</div>
{/* Kartu 6 */}
<div className="p-2 bg-slate-50 rounded-lg border border-slate-200 space-y-1">
<span className="text-[10px] font-black text-[#EC167F] block">Kartu 6</span>
<input
type="text"
value={publicFormConfig.highlight6Title || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight6Title: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded font-bold text-[10px]"
placeholder="Judul Kartu 6"
/>
<textarea
rows={2}
value={publicFormConfig.highlight6Desc || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, highlight6Desc: e.target.value })}
className="w-full p-1 bg-white border border-slate-200 rounded text-[10px]"
placeholder="Deskripsi Kartu 6"
/>
</div>
</div>
</div>
{/* Banner Pengumuman Bar */}
<div className="p-3 bg-white rounded-xl border border-slate-200 space-y-2">
<div className="flex items-center justify-between">
<span className="font-bold text-slate-800 text-[11px]">Tampilkan Announcement Banner Atas</span>
<button
type="button"
onClick={() => setPublicFormConfig({ ...publicFormConfig, showAnnouncement: !publicFormConfig.showAnnouncement })}
className={`w-9 h-5 rounded-full transition-colors relative cursor-pointer shrink-0 ${
publicFormConfig.showAnnouncement ? 'bg-[#EC167F]' : 'bg-slate-300'
}`}
>
<span className={`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${
publicFormConfig.showAnnouncement ? 'left-4.5' : 'left-0.5'
}`} />
</button>
</div>
{publicFormConfig.showAnnouncement && (
<input
type="text"
value={publicFormConfig.announcementText}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, announcementText: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-medium text-slate-800 focus:outline-none focus:border-[#EC167F]"
placeholder="Contoh: Promo cashback DP 10%..."
/>
)}
</div>
{/* Minimal DP & Fee Transport */}
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Minimal Persentase DP (%)</label>
<select
value={publicFormConfig.minDpPercent}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, minDpPercent: Number(e.target.value) })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-extrabold text-[#EC167F] focus:outline-none focus:border-[#EC167F]"
>
<option value={20}>20% dari Total Transaksi</option>
<option value={30}>30% dari Total Transaksi (Standar)</option>
<option value={50}>50% dari Total Transaksi</option>
<option value={100}>100% (Wajib Lunas Langsung)</option>
</select>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Biaya Transport On-Location (Rp)</label>
<input
type="number"
value={publicFormConfig.homecareTransportFee}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, homecareTransportFee: Number(e.target.value) })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]"
placeholder="100000"
/>
</div>
</div>
{/* Feature Toggles */}
<div className="p-3 bg-white rounded-xl border border-slate-200 space-y-2">
<span className="font-extrabold text-slate-900 block text-[11px]">Fitur Form Booking:</span>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-2 text-[11px]">
<label className="flex items-center gap-2 cursor-pointer font-bold text-slate-700">
<input
type="checkbox"
checked={publicFormConfig.allowHomecare}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, allowHomecare: e.target.checked })}
className="w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"
/>
<span>Izinkan Layanan Homecare</span>
</label>
<label className="flex items-center gap-2 cursor-pointer font-bold text-slate-700">
<input
type="checkbox"
checked={publicFormConfig.requireGmaps}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, requireGmaps: e.target.checked })}
className="w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"
/>
<span>Wajibkan Link Google Maps</span>
</label>
<label className="flex items-center gap-2 cursor-pointer font-bold text-slate-700">
<input
type="checkbox"
checked={publicFormConfig.allowAdditionalPerson}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, allowAdditionalPerson: e.target.checked })}
className="w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"
/>
<span>Izinkan Tambah Orang</span>
</label>
<label className="flex items-center gap-2 cursor-pointer font-bold text-slate-700">
<input
type="checkbox"
checked={publicFormConfig.allowSocialTag}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, allowSocialTag: e.target.checked })}
className="w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"
/>
<span>Tampilkan Opsi Tag Medsos</span>
</label>
</div>
</div>
{/* Rekening Pembayaran Form Publik */}
<div className="p-3 bg-white rounded-xl border border-slate-200 space-y-2">
<span className="font-extrabold text-slate-900 block text-[11px]">Rekening Pembayaran DP (Tampil di Step 4):</span>
<div className="space-y-2">
<div>
<label className="block text-slate-600 font-bold text-[10px] mb-0.5">Rekening BCA</label>
<input
type="text"
value={publicFormConfig.bcaAccount || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, bcaAccount: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono text-[11px] text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
placeholder="8830-1928-3019 a.n. Glamour Touch Studio"
/>
</div>
<div>
<label className="block text-slate-600 font-bold text-[10px] mb-0.5">Rekening Mandiri</label>
<input
type="text"
value={publicFormConfig.mandiriAccount || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, mandiriAccount: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono text-[11px] text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
placeholder="1270-0192-8301 a.n. Glamour Touch Studio"
/>
</div>
<div>
<label className="block text-slate-600 font-bold text-[10px] mb-0.5">Keterangan / Nama QRIS</label>
<input
type="text"
value={publicFormConfig.qrisAccount || ''}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, qrisAccount: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono text-[11px] text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
placeholder="QRIS GLAMOUR TOUCH STUDIO"
/>
</div>
</div>
</div>
{/* Terms and Conditions */}
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Syarat & Kebijakan Pembatalan / DP</label>
<textarea
rows={3}
value={publicFormConfig.termsAndConditions}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, termsAndConditions: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-normal text-slate-700 text-[11px] leading-relaxed focus:outline-none focus:border-[#EC167F]"
/>
</div>
{/* Client Notes */}
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Catatan Persiapan untuk Pemesan</label>
<input
type="text"
value={publicFormConfig.clientNotes}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, clientNotes: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-medium text-slate-800 text-[11px] focus:outline-none focus:border-[#EC167F]"
/>
</div>
{/* WhatsApp & Button Text */}
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">No WA Admin Konfirmasi</label>
<input
type="text"
value={publicFormConfig.waAdminNumber}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, waAdminNumber: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]"
placeholder="081216613315"
/>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Teks Tombol Submit Form</label>
<input
type="text"
value={publicFormConfig.submitButtonText}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, submitButtonText: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-bold text-[#EC167F] focus:outline-none focus:border-[#EC167F]"
placeholder="Kirim Reservasi Sekarang"
/>
</div>
</div>
{/* WhatsApp Template */}
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Template Pesan Otomatis WhatsApp</label>
<textarea
rows={2}
value={publicFormConfig.waTemplateMessage}
onChange={(e) => setPublicFormConfig({ ...publicFormConfig, waTemplateMessage: e.target.value })}
className="w-full p-2 bg-white border border-slate-200 rounded-xl font-mono text-[11px] text-slate-700 focus:outline-none focus:border-[#EC167F]"
/>
<p className="text-[10px] text-slate-400 font-medium mt-1">
Variabel: <code className="bg-slate-200 px-1 rounded text-slate-800 font-bold">{'{studio_name}'}</code>, <code className="bg-slate-200 px-1 rounded text-slate-800 font-bold">{'{kode_booking}'}</code>, <code className="bg-slate-200 px-1 rounded text-slate-800 font-bold">{'{nama_client}'}</code>, <code className="bg-slate-200 px-1 rounded text-slate-800 font-bold">{'{tanggal_acara}'}</code>.
</p>
</div>
</div>
</div>
</div>
</div>
)}
{/* ROW 1: INFORMASI BISNIS & ALAMAT & LOGO */}
{(activeTab === 'semua' || activeTab === 'profil') && (
<div className="grid grid-cols-1 lg:grid-cols-3 gap-4">
{/* CARD 1: INFORMASI BISNIS */}
<div className="bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5">
<div className="flex items-center gap-2 pb-2 border-b border-slate-100">
<div className="w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold">
<Building2 className="w-3.5 h-3.5" />
</div>
<h2 className="text-xs font-extrabold text-slate-900">Informasi Bisnis</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 text-xs">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Nama Bisnis</label>
<input
type="text"
value={namaBisnis}
onChange={(e) => setNamaBisnis(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Nama Pemilik</label>
<input
type="text"
value={namaPemilik}
onChange={(e) => setNamaPemilik(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 text-xs">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Email Bisnis</label>
<input
type="email"
value={emailBisnis}
onChange={(e) => setEmailBisnis(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Nomor Telepon</label>
<div className="flex gap-1.5">
<select
value={phonePrefix}
onChange={(e) => setPhonePrefix(e.target.value)}
className="bg-slate-50/70 border border-slate-200 rounded-xl text-xs font-bold px-2 py-2 text-slate-700 focus:outline-none"
>
<option value="+62">+62</option>
<option value="+1">+1</option>
<option value="+60">+60</option>
</select>
<input
type="text"
value={phoneNumber}
onChange={(e) => setPhoneNumber(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
</div>
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 text-xs">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Kategori Utama</label>
<select
value={kategoriUtama}
onChange={(e) => setKategoriUtama(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
>
<option value="Paket Wedding">Paket Wedding</option>
<option value="Make Up Wisuda">Make Up Wisuda</option>
<option value="Rias Pengantin">Rias Pengantin</option>
<option value="Photoshoot & Event">Photoshoot & Event</option>
</select>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Tahun Berdiri</label>
<div className="relative">
<Calendar className="w-3.5 h-3.5 text-slate-400 absolute left-2.5 top-3" />
<input
type="text"
value={tahunBerdiri}
onChange={(e) => setTahunBerdiri(e.target.value)}
className="w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Deskripsi Bisnis</label>
<textarea
rows={3}
value={deskripsiBisnis}
onChange={(e) => setDeskripsiBisnis(e.target.value)}
maxLength={300}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-medium text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F] resize-none"
/>
<div className="text-right text-[10px] text-slate-400 font-bold mt-0.5">
{deskripsiBisnis.length}/300
</div>
</div>
</div>
{/* CARD 2: ALAMAT BISNIS & LOKASI PETA */}
<div className="bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5 flex flex-col justify-between">
<div className="space-y-3.5">
<div className="flex items-center gap-2 pb-2 border-b border-slate-100">
<div className="w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold">
<MapPin className="w-3.5 h-3.5" />
</div>
<h2 className="text-xs font-extrabold text-slate-900">Alamat Bisnis</h2>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Alamat Lengkap Studio</label>
<input
type="text"
value={alamatLengkap}
onChange={(e) => setAlamatLengkap(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
<div className="grid grid-cols-2 gap-3 text-xs">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Kota / Kabupaten</label>
<select
value={kota}
onChange={(e) => setKota(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
>
<option value="Jombang">Jombang</option>
<option value="Surabaya">Surabaya</option>
<option value="Malang">Malang</option>
<option value="Kediri">Kediri</option>
</select>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Provinsi</label>
<select
value={provinsi}
onChange={(e) => setProvinsi(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
>
<option value="Jawa Timur">Jawa Timur</option>
<option value="Jawa Tengah">Jawa Tengah</option>
<option value="Jawa Barat">Jawa Barat</option>
<option value="DKI Jakarta">DKI Jakarta</option>
</select>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Kode Pos</label>
<input
type="text"
value={kodePos}
onChange={(e) => setKodePos(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
{/* Interactive Map View */}
<div className="relative rounded-2xl overflow-hidden border border-slate-200 bg-slate-100 h-28 flex flex-col items-center justify-center group cursor-pointer" onClick={() => setShowMapModal(true)}>
<div className="absolute inset-0 bg-[radial-gradient(#cbd5e1_1px,transparent_1px)] [background-size:12px_12px] opacity-70" />
<div className="absolute inset-0 bg-gradient-to-t from-slate-900/30 via-transparent to-transparent" />
<svg className="absolute inset-0 w-full h-full opacity-30 stroke-slate-400 stroke-2" fill="none">
<path d="M 0 40 Q 100 20 200 60 T 400 30" />
<path d="M 120 0 L 120 120" />
<path d="M 280 0 L 280 120" />
</svg>
<div className="relative z-10 flex flex-col items-center">
<div className="relative flex items-center justify-center">
<span className="absolute w-6 h-6 rounded-full bg-[#EC167F]/30 animate-ping" />
<div className="w-8 h-8 rounded-full bg-[#EC167F] text-white flex items-center justify-center shadow-md">
<MapPin className="w-4 h-4" />
</div>
</div>
</div>
<div className="absolute bottom-2 inset-x-2 z-10">
<button
type="button"
onClick={(e) => { e.stopPropagation(); setShowMapModal(true); }}
className="w-full py-1.5 px-3 bg-white/90 hover:bg-white text-slate-800 rounded-xl text-[11px] font-extrabold shadow-2xs border border-slate-200 flex items-center justify-center gap-1.5 transition-all cursor-pointer"
>
<Map className="w-3.5 h-3.5 text-[#EC167F]" />
<span>Ubah Lokasi di Peta</span>
</button>
</div>
</div>
</div>
{/* CARD 3: LOGO & BRANDING */}
<div className="bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5">
<div className="flex items-center gap-2 pb-2 border-b border-slate-100">
<div className="w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold">
<Palette className="w-3.5 h-3.5" />
</div>
<h2 className="text-xs font-extrabold text-slate-900">Logo & Branding</h2>
</div>
<div className="grid grid-cols-1 sm:grid-cols-12 gap-3">
<div className="sm:col-span-5 space-y-2">
<label className="block text-slate-700 font-bold text-[11px]">Logo Bisnis</label>
<div className="bg-slate-50 border border-slate-200 rounded-2xl p-3 flex flex-col items-center justify-center text-center h-32 relative group">
{logoPreview ? (
<img src={logoPreview} alt="Logo Preview" className="max-h-20 object-contain" />
) : (
<div className="flex flex-col items-center">
<div className="w-10 h-10 rounded-xl bg-gradient-to-tr from-amber-400 via-pink-500 to-purple-600 flex items-center justify-center text-white shadow-xs mb-1">
<Sparkles className="w-5 h-5" />
</div>
<span className="font-black text-slate-900 text-xs">Vivaz Make Up</span>
<span className="text-[9px] text-slate-400 font-extrabold uppercase tracking-widest">MUA & ATTIRE</span>
</div>
)}
</div>
<button
type="button"
onClick={() => triggerToast("Pilih logo baru dari komputer Anda...")}
className="w-full py-1.5 px-2 bg-white hover:bg-slate-50 border border-slate-200 rounded-xl text-[11px] font-bold text-slate-700 flex items-center justify-center gap-1.5 shadow-2xs cursor-pointer"
>
<Upload className="w-3.5 h-3.5 text-[#EC167F]" />
<span>Ganti Logo</span>
</button>
<p className="text-[9px] text-slate-400 font-semibold text-center">
PNG, JPG atau SVG. Maks 2MB
</p>
</div>
<div className="sm:col-span-7 space-y-3">
<div>
<label className="block text-slate-700 font-bold mb-1.5 text-[11px]">Warna Brand</label>
<div className="space-y-2">
<div className="flex items-center justify-between text-xs">
<span className="text-[11px] font-medium text-slate-600">Warna Utama</span>
<div className="flex items-center gap-2">
<input
type="color"
value={warnaUtama}
onChange={(e) => setWarnaUtama(e.target.value)}
className="w-6 h-6 rounded-lg cursor-pointer border-0 p-0"
/>
<input
type="text"
value={warnaUtama}
onChange={(e) => setWarnaUtama(e.target.value)}
className="w-20 p-1 text-center bg-slate-50 border border-slate-200 rounded-lg text-xs font-mono font-bold text-slate-800"
/>
</div>
</div>
<div className="flex items-center justify-between text-xs">
<span className="text-[11px] font-medium text-slate-600">Warna Sekunder</span>
<div className="flex items-center gap-2">
<input
type="color"
value={warnaSekunder}
onChange={(e) => setWarnaSekunder(e.target.value)}
className="w-6 h-6 rounded-lg cursor-pointer border-0 p-0"
/>
<input
type="text"
value={warnaSekunder}
onChange={(e) => setWarnaSekunder(e.target.value)}
className="w-20 p-1 text-center bg-slate-50 border border-slate-200 rounded-lg text-xs font-mono font-bold text-slate-800"
/>
</div>
</div>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Font Utama</label>
<select
value={fontUtama}
onChange={(e) => setFontUtama(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"
>
<option value="Poppins">Poppins</option>
<option value="Plus Jakarta Sans">Plus Jakarta Sans</option>
<option value="Inter">Inter</option>
<option value="Playfair Display">Playfair Display</option>
</select>
</div>
<div className="pt-1">
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Favicon (Opsional)</label>
<div className="flex items-center gap-2">
<div className="w-8 h-8 rounded-lg bg-pink-500 text-white flex items-center justify-center font-black text-xs shrink-0">
V
</div>
<button
type="button"
onClick={() => triggerToast("Pilih favicon baru...")}
className="flex-1 py-1.5 px-2 bg-white hover:bg-slate-50 border border-slate-200 rounded-xl text-[11px] font-bold text-slate-700 flex items-center justify-center gap-1.5 shadow-2xs cursor-pointer"
>
<Upload className="w-3.5 h-3.5 text-[#EC167F]" />
<span>Ganti Favicon</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
)}
{/* NEW FEATURED SECTION: JAM OPERASIONAL & REKENING BANK */}
{(activeTab === 'semua' || activeTab === 'operasional' || activeTab === 'rekening') && (
<div className="grid grid-cols-1 lg:grid-cols-12 gap-4">
{/* CARD 4: JAM OPERASIONAL & HARI KERJA (7 COLS) */}
{(activeTab === 'semua' || activeTab === 'operasional') && (
<div className={`bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5 ${
activeTab === 'operasional' ? 'lg:col-span-12' : 'lg:col-span-7'
}`}>
<div className="flex flex-col sm:flex-row sm:items-center justify-between gap-2 pb-2 border-b border-slate-100">
<div className="flex items-center gap-2">
<div className="w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold">
<Clock className="w-3.5 h-3.5" />
</div>
<div>
<h2 className="text-xs font-extrabold text-slate-900">Jam Operasional & Hari Buka</h2>
<p className="text-[10px] text-slate-400 font-medium">Atur jam operasional dan kuota booking per hari</p>
</div>
</div>
<button
type="button"
onClick={applySameHoursToAll}
className="px-2.5 py-1 bg-pink-50 hover:bg-pink-100 text-[#EC167F] rounded-lg text-[10px] font-extrabold transition-all border border-pink-200/60 flex items-center gap-1 self-start sm:self-center cursor-pointer"
>
<Sparkles className="w-3 h-3" />
<span>Samakan Jam Buka</span>
</button>
</div>
{/* Day Schedules List */}
<div className="space-y-2">
{schedule.map((item, index) => (
<div
key={item.day}
className={`p-2.5 rounded-xl border transition-all flex flex-col sm:flex-row sm:items-center justify-between gap-2 text-xs ${
item.isOpen ? 'bg-slate-50/60 border-slate-200' : 'bg-slate-100/50 border-slate-200/60 opacity-60'
}`}
>
<div className="flex items-center gap-3 shrink-0">
<button
type="button"
onClick={() => handleToggleDay(index)}
className={`w-9 h-5 rounded-full transition-colors relative cursor-pointer ${
item.isOpen ? 'bg-[#EC167F]' : 'bg-slate-300'
}`}
>
<span className={`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${
item.isOpen ? 'left-4.5' : 'left-0.5'
}`} />
</button>
<span className={`font-black w-16 text-[12px] ${item.isOpen ? 'text-slate-900' : 'text-slate-400'}`}>
{item.day}
</span>
<span className={`px-2 py-0.5 text-[9px] font-black rounded-md ${
item.isOpen ? 'bg-emerald-100 text-emerald-800' : 'bg-slate-200 text-slate-600'
}`}>
{item.isOpen ? 'BUKA' : 'TUTUP'}
</span>
</div>
{item.isOpen ? (
<div className="flex items-center gap-2 flex-wrap sm:flex-nowrap">
<div className="flex items-center gap-1 bg-white px-2 py-1 rounded-lg border border-slate-200">
<span className="text-[10px] text-slate-400 font-bold">Buka:</span>
<input
type="time"
value={item.openTime}
onChange={(e) => handleTimeChange(index, 'openTime', e.target.value)}
className="bg-transparent font-extrabold text-slate-800 focus:outline-none text-[11px]"
/>
</div>
<span className="text-slate-400 font-bold text-[10px]">-</span>
<div className="flex items-center gap-1 bg-white px-2 py-1 rounded-lg border border-slate-200">
<span className="text-[10px] text-slate-400 font-bold">Tutup:</span>
<input
type="time"
value={item.closeTime}
onChange={(e) => handleTimeChange(index, 'closeTime', e.target.value)}
className="bg-transparent font-extrabold text-slate-800 focus:outline-none text-[11px]"
/>
</div>
<div className="flex items-center gap-1 bg-white px-2 py-1 rounded-lg border border-slate-200">
<span className="text-[10px] text-slate-400 font-bold">Maks Slot:</span>
<input
type="number"
min="1"
max="20"
value={item.maxSlot}
onChange={(e) => handleTimeChange(index, 'maxSlot', parseInt(e.target.value) || 1)}
className="w-8 bg-transparent font-extrabold text-slate-800 focus:outline-none text-[11px] text-center"
/>
</div>
</div>
) : (
<span className="text-[11px] font-semibold text-slate-400 italic">
Studio Tutup (Tidak Terima Booking)
</span>
)}
</div>
))}
</div>
<div className="p-2.5 bg-amber-50/70 border border-amber-200/60 rounded-xl flex items-start gap-2 text-[11px] text-amber-800 font-medium">
<HelpCircle className="w-4 h-4 text-amber-600 shrink-0 mt-0.5" />
<span>
<strong>Info:</strong> Calon pelanggan yang memesan dari Form Publik hanya dapat memilih slot jadwal sesuai jam operasional dan kuota harian yang Anda tetapkan di sini.
</span>
</div>
</div>
)}
{/* CARD 5: REKENING BANK & PEMBAYARAN STUDIO (5 COLS) */}
{(activeTab === 'semua' || activeTab === 'rekening') && (
<div className={`bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5 ${
activeTab === 'rekening' ? 'lg:col-span-12' : 'lg:col-span-5'
}`}>
<div className="flex items-center justify-between pb-2 border-b border-slate-100">
<div className="flex items-center gap-2">
<div className="w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold">
<CreditCard className="w-3.5 h-3.5" />
</div>
<div>
<h2 className="text-xs font-extrabold text-slate-900">Rekening Bank & QRIS Studio</h2>
<p className="text-[10px] text-slate-400 font-medium">Tampil di invoice & form publik untuk transfer DP</p>
</div>
</div>
<button
type="button"
onClick={handleOpenAddBank}
className="px-2.5 py-1 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-lg text-[10px] font-extrabold transition-all flex items-center gap-1 shadow-2xs cursor-pointer"
>
<Plus className="w-3.5 h-3.5" />
<span>Tambah Rekening</span>
</button>
</div>
{/* Bank Accounts List */}
<div className="space-y-2.5">
{bankAccounts.length === 0 ? (
<div className="p-6 text-center bg-slate-50 border border-dashed border-slate-200 rounded-xl space-y-1">
<CreditCard className="w-8 h-8 text-slate-300 mx-auto" />
<p className="text-xs font-bold text-slate-700">Belum Ada Rekening Bank</p>
<p className="text-[10px] text-slate-400">Tambahkan rekening untuk mempermudah pembayaran transfer pelanggan</p>
</div>
) : (
bankAccounts.map((acc) => (
<div
key={acc.id}
className={`p-3 rounded-2xl border transition-all space-y-2 relative ${
acc.isPrimary
? 'bg-gradient-to-r from-pink-50/60 to-purple-50/40 border-pink-300 shadow-2xs'
: 'bg-white border-slate-200 hover:border-slate-300'
}`}
>
<div className="flex items-start justify-between gap-2">
<div className="flex items-center gap-2">
<div className="w-8 h-8 rounded-xl bg-slate-900 text-white font-black text-[11px] flex items-center justify-center shrink-0">
{acc.bankName.replace('Bank ', '').slice(0, 3)}
</div>
<div>
<div className="flex items-center gap-1.5">
<h4 className="font-extrabold text-slate-900 text-xs">{acc.bankName}</h4>
{acc.isPrimary && (
<span className="px-1.5 py-0.2 bg-[#EC167F] text-white text-[9px] font-black rounded-md">
Utama
</span>
)}
{acc.isQrCode && (
<span className="px-1.5 py-0.2 bg-purple-100 text-purple-700 text-[9px] font-bold rounded-md flex items-center gap-0.5">
<QrCode className="w-2.5 h-2.5" />
<span>QRIS</span>
</span>
)}
</div>
<p className="text-[10px] text-slate-500 font-medium">a.n. {acc.accountName}</p>
</div>
</div>
<div className="flex items-center gap-1">
<button
type="button"
onClick={() => handleOpenEditBank(acc)}
className="p-1 text-slate-400 hover:text-slate-700 rounded-lg hover:bg-slate-100 transition-colors"
title="Edit Rekening"
>
<Edit3 className="w-3.5 h-3.5" />
</button>
<button
type="button"
onClick={() => handleDeleteBank(acc.id)}
className="p-1 text-slate-400 hover:text-rose-600 rounded-lg hover:bg-rose-50 transition-colors"
title="Hapus Rekening"
>
<Trash2 className="w-3.5 h-3.5" />
</button>
</div>
</div>
{/* Account Number Box */}
<div className="flex items-center justify-between bg-white/80 p-2 rounded-xl border border-slate-200/80 font-mono text-xs">
<span className="font-bold text-slate-800 tracking-wider">{acc.accountNumber}</span>
{!acc.isPrimary && (
<button
type="button"
onClick={() => handleSetPrimaryBank(acc.id)}
className="text-[10px] font-extrabold text-[#EC167F] hover:underline cursor-pointer"
>
Jadikan Utama
</button>
)}
</div>
{acc.notes && (
<p className="text-[10px] text-slate-500 italic">
* {acc.notes}
</p>
)}
</div>
))
)}
</div>
</div>
)}
</div>
)}
{/* ROW 3: KONTAK & OPERASIONAL & DOKUMEN */}
{(activeTab === 'semua' || activeTab === 'operasional') && (
<div className="grid grid-cols-1 lg:grid-cols-3 gap-4">
{/* CARD 6: KONTAK & MEDIA SOSIAL */}
<div className="bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3">
<div className="flex items-center gap-2 pb-2 border-b border-slate-100">
<div className="w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold">
<Phone className="w-3.5 h-3.5" />
</div>
<h2 className="text-xs font-extrabold text-slate-900">Kontak & Media Sosial</h2>
</div>
<div className="space-y-2.5 text-xs">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">WhatsApp Business</label>
<div className="relative">
<div className="absolute left-2.5 top-2.5 text-emerald-600">
<Phone className="w-3.5 h-3.5" />
</div>
<input
type="text"
value={waBusiness}
onChange={(e) => setWaBusiness(e.target.value)}
className="w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Instagram</label>
<div className="relative">
<div className="absolute left-2.5 top-2.5 text-pink-600">
<Instagram className="w-3.5 h-3.5" />
</div>
<input
type="text"
value={instagram}
onChange={(e) => setInstagram(e.target.value)}
className="w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Facebook</label>
<div className="relative">
<div className="absolute left-2.5 top-2.5 text-blue-600">
<Facebook className="w-3.5 h-3.5" />
</div>
<input
type="text"
value={facebook}
onChange={(e) => setFacebook(e.target.value)}
className="w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">TikTok</label>
<div className="relative">
<div className="absolute left-2.5 top-2.5 text-slate-900">
<span className="font-black text-[11px] leading-none">♪</span>
</div>
<input
type="text"
value={tiktok}
onChange={(e) => setTiktok(e.target.value)}
className="w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Website Studio</label>
<div className="relative">
<div className="absolute left-2.5 top-2.5 text-slate-500">
<Globe className="w-3.5 h-3.5" />
</div>
<input
type="text"
value={website}
onChange={(e) => setWebsite(e.target.value)}
className="w-full pl-8 pr-2 py-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 text-xs focus:bg-white focus:outline-none focus:border-[#EC167F]"
/>
</div>
</div>
</div>
</div>
{/* CARD 7: PENGATURAN SYSTEM OPERASIONAL */}
<div className="bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3.5">
<div className="flex items-center gap-2 pb-2 border-b border-slate-100">
<div className="w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold">
<Sliders className="w-3.5 h-3.5" />
</div>
<h2 className="text-xs font-extrabold text-slate-900">Pengaturan Sistem</h2>
</div>
<div className="space-y-3 text-xs">
<div className="grid grid-cols-2 gap-3">
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Zona Waktu</label>
<select
value={zonaWaktu}
onChange={(e) => setZonaWaktu(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
>
<option value="(GMT+07:00) Jakarta, Indonesia">(GMT+07:00) Jakarta, Indonesia</option>
<option value="(GMT+08:00) Makasar, Indonesia">(GMT+08:00) Makasar, Indonesia</option>
<option value="(GMT+09:00) Jayapura, Indonesia">(GMT+09:00) Jayapura, Indonesia</option>
</select>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Mata Uang</label>
<select
value={mataUang}
onChange={(e) => setMataUang(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
>
<option value="Rupiah (IDR) - Rp">Rupiah (IDR) - Rp</option>
<option value="US Dollar (USD) - $">US Dollar (USD) - $</option>
</select>
</div>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1 text-[11px]">Format Tanggal</label>
<select
value={formatTanggal}
onChange={(e) => setFormatTanggal(e.target.value)}
className="w-full p-2 bg-slate-50/70 border border-slate-200 rounded-xl font-semibold text-slate-800 focus:bg-white focus:outline-none focus:border-[#EC167F]"
>
<option value="21 Mei 2025 (DD MMM YYYY)">21 Mei 2025 (DD MMM YYYY)</option>
<option value="21/05/2025 (DD/MM/YYYY)">21/05/2025 (DD/MM/YYYY)</option>
<option value="2025-05-21 (YYYY-MM-DD)">2025-05-21 (YYYY-MM-DD)</option>
</select>
</div>
{/* Toggles */}
<div className="space-y-2.5 pt-2 border-t border-slate-100">
<div className="flex items-center justify-between">
<div>
<span className="font-extrabold text-slate-900 block text-[11px]">Pembulatan Harga</span>
<span className="text-[10px] text-slate-500 font-medium block">Dibulatkan ke kelipatan 1.000</span>
</div>
<button
type="button"
onClick={() => setPembulatanHarga(!pembulatanHarga)}
className={`w-10 h-5 rounded-full transition-colors relative cursor-pointer shrink-0 ${
pembulatanHarga ? 'bg-[#EC167F]' : 'bg-slate-300'
}`}
>
<span className={`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${
pembulatanHarga ? 'left-5.5' : 'left-0.5'
}`} />
</button>
</div>
<div className="flex items-center justify-between">
<div>
<span className="font-extrabold text-slate-900 block text-[11px]">Booking Luar Jam Buka</span>
<span className="text-[10px] text-slate-500 font-medium block">Booking manual di luar jam operasional</span>
</div>
<button
type="button"
onClick={() => setBookingLuarJam(!bookingLuarJam)}
className={`w-10 h-5 rounded-full transition-colors relative cursor-pointer shrink-0 ${
bookingLuarJam ? 'bg-[#EC167F]' : 'bg-slate-300'
}`}
>
<span className={`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${
bookingLuarJam ? 'left-5.5' : 'left-0.5'
}`} />
</button>
</div>
<div className="flex items-center justify-between">
<div>
<span className="font-extrabold text-slate-900 block text-[11px]">Konfirmasi Otomatis DP</span>
<span className="text-[10px] text-slate-500 font-medium block">Konfirmasi otomatis setelah upload mutasi</span>
</div>
<button
type="button"
onClick={() => setKonfirmasiOtomatis(!konfirmasiOtomatis)}
className={`w-10 h-5 rounded-full transition-colors relative cursor-pointer shrink-0 ${
konfirmasiOtomatis ? 'bg-[#EC167F]' : 'bg-slate-300'
}`}
>
<span className={`block w-4 h-4 rounded-full bg-white transition-transform absolute top-0.5 ${
konfirmasiOtomatis ? 'left-5.5' : 'left-0.5'
}`} />
</button>
</div>
</div>
</div>
</div>
{/* CARD 8: DOKUMEN & KEAMANAN AKUN */}
<div className="bg-white p-4.5 rounded-2xl border border-slate-200/80 shadow-2xs space-y-3 flex flex-col justify-between">
<div className="space-y-3">
<div className="flex items-center gap-2 pb-2 border-b border-slate-100">
<div className="w-6 h-6 rounded-lg bg-pink-50 text-[#EC167F] flex items-center justify-center font-bold">
<FileText className="w-3.5 h-3.5" />
</div>
<h2 className="text-xs font-extrabold text-slate-900">Dokumen & Lainnya</h2>
</div>
<div className="space-y-2 text-xs">
<div
onClick={() => triggerToast("Membuka kelola Template Invoice...")}
className="p-2.5 rounded-xl border border-slate-100 hover:border-slate-200 transition-colors flex items-center justify-between cursor-pointer group"
>
<div className="flex items-center gap-2.5">
<div className="w-7 h-7 rounded-lg bg-slate-100 text-slate-600 flex items-center justify-center shrink-0">
<FileText className="w-3.5 h-3.5" />
</div>
<div>
<span className="font-extrabold text-slate-900 block text-[11px]">Template Invoice</span>
<span className="text-[10px] text-slate-500 font-medium block">Kontrak & tanda terima</span>
</div>
</div>
<ChevronRight className="w-4 h-4 text-slate-400 group-hover:text-slate-600" />
</div>
<div
onClick={() => triggerToast("Membuka Syarat & Ketentuan bisnis...")}
className="p-2.5 rounded-xl border border-slate-100 hover:border-slate-200 transition-colors flex items-center justify-between cursor-pointer group"
>
<div className="flex items-center gap-2.5">
<div className="w-7 h-7 rounded-lg bg-slate-100 text-slate-600 flex items-center justify-center shrink-0">
<FileCode className="w-3.5 h-3.5" />
</div>
<div>
<span className="font-extrabold text-slate-900 block text-[11px]">Syarat & Ketentuan DP</span>
<span className="text-[10px] text-slate-500 font-medium block">Aturan pembatalan & reschedule</span>
</div>
</div>
<ChevronRight className="w-4 h-4 text-slate-400 group-hover:text-slate-600" />
</div>
</div>
</div>
{/* Actions */}
<div className="space-y-2 pt-2 border-t border-slate-100">
<div className="p-2.5 rounded-xl border border-slate-100 flex items-center justify-between text-xs">
<div className="flex items-center gap-2.5">
<div className="w-7 h-7 rounded-lg bg-blue-50 text-blue-600 flex items-center justify-center shrink-0">
<Download className="w-3.5 h-3.5" />
</div>
<div>
<span className="font-extrabold text-slate-900 block text-[11px]">Backup Data</span>
<span className="text-[10px] text-slate-500 font-medium block">Unduh berkas JSON/ZIP</span>
</div>
</div>
<button
type="button"
onClick={handleBackup}
className="px-3 py-1.5 border border-rose-200 hover:border-rose-300 text-rose-600 hover:bg-rose-50 rounded-xl text-[11px] font-extrabold transition-all cursor-pointer shadow-2xs"
>
Backup
</button>
</div>
<div className="p-2.5 rounded-xl border border-rose-100 bg-rose-50/30 flex items-center justify-between text-xs">
<div className="flex items-center gap-2.5">
<div className="w-7 h-7 rounded-lg bg-rose-100 text-rose-600 flex items-center justify-center shrink-0">
<Trash2 className="w-3.5 h-3.5" />
</div>
<div>
<span className="font-extrabold text-rose-600 block text-[11px]">Hapus Akun</span>
<span className="text-[10px] text-slate-500 font-medium block">Hapus akun studio permanen</span>
</div>
</div>
<button
type="button"
onClick={() => setShowDeleteModal(true)}
className="px-3 py-1.5 border border-rose-200 hover:border-rose-300 text-rose-600 hover:bg-rose-100/50 rounded-xl text-[11px] font-extrabold transition-all cursor-pointer shadow-2xs"
>
Hapus
</button>
</div>
</div>
</div>
</div>
)}
{/* BOTTOM STICKY ACTION BAR */}
<div className="fixed bottom-0 left-0 right-0 z-40 bg-white/95 backdrop-blur-md border-t border-slate-200 p-3.5 shadow-lg">
<div className="max-w-7xl mx-auto flex items-center justify-end gap-3">
<button
type="button"
onClick={handleReset}
className="px-5 py-2.5 bg-white border border-slate-200 hover:border-slate-300 text-slate-700 rounded-xl text-xs font-bold transition-all shadow-2xs cursor-pointer"
>
Batal
</button>
<button
type="button"
onClick={handleSave}
disabled={isSaving}
className="px-6 py-2.5 bg-[#EC167F] hover:bg-[#D41270] text-white rounded-xl text-xs font-extrabold transition-all shadow-xs flex items-center gap-2 cursor-pointer disabled:opacity-70"
>
{isSaving ? (
<RefreshCw className="w-4 h-4 animate-spin" />
) : (
<Save className="w-4 h-4" />
)}
<span>Simpan Perubahan Pengaturan</span>
</button>
</div>
</div>
{/* MODAL: ADD / EDIT BANK ACCOUNT */}
{showAddBankModal && (
<div className="fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200">
<div className="bg-white w-full max-w-md rounded-2xl border border-slate-200 shadow-2xl overflow-hidden p-5 space-y-4">
<div className="flex items-center justify-between pb-2 border-b border-slate-100">
<div className="flex items-center gap-2">
<div className="w-8 h-8 rounded-full bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold">
<CreditCard className="w-4 h-4" />
</div>
<h3 className="text-sm font-extrabold text-slate-900">
{editingBankId ? 'Edit Rekening Bank' : 'Tambah Rekening Bank Baru'}
</h3>
</div>
<button onClick={() => setShowAddBankModal(false)} className="p-1 text-slate-400 hover:text-slate-600 rounded-lg">
<X className="w-4 h-4" />
</button>
</div>
<div className="space-y-3 text-xs">
<div>
<label className="block text-slate-700 font-bold mb-1">Pilih Bank / e-Wallet</label>
<select
value={bankForm.bankName}
onChange={(e) => setBankForm({ ...bankForm, bankName: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]"
>
<option value="Bank BCA">Bank BCA</option>
<option value="Bank Mandiri">Bank Mandiri</option>
<option value="Bank BRI">Bank BRI</option>
<option value="Bank BNI">Bank BNI</option>
<option value="Bank Syariah Indonesia (BSI)">Bank Syariah Indonesia (BSI)</option>
<option value="Bank CIMB Niaga">Bank CIMB Niaga</option>
<option value="DANA e-Wallet">DANA e-Wallet</option>
<option value="OVO e-Wallet">OVO e-Wallet</option>
<option value="GoPay e-Wallet">GoPay e-Wallet</option>
<option value="QRIS Studio">QRIS Studio All Payment</option>
</select>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1">Nomor Rekening / HP e-Wallet</label>
<input
type="text"
placeholder="Contoh: 1234567890"
value={bankForm.accountNumber}
onChange={(e) => setBankForm({ ...bankForm, accountNumber: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-mono font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]"
/>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1">Atas Nama (Pemilik Rekening)</label>
<input
type="text"
placeholder="Contoh: Nur Khofifah / Vivaz Studio"
value={bankForm.accountName}
onChange={(e) => setBankForm({ ...bankForm, accountName: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-bold text-slate-800 focus:outline-none focus:border-[#EC167F]"
/>
</div>
<div>
<label className="block text-slate-700 font-bold mb-1">Catatan Tambahan (Opsional)</label>
<input
type="text"
placeholder="Contoh: Rekening utama untuk transfer DP Wedding"
value={bankForm.notes || ''}
onChange={(e) => setBankForm({ ...bankForm, notes: e.target.value })}
className="w-full p-2 bg-slate-50 border border-slate-200 rounded-xl font-medium text-slate-800 focus:outline-none focus:border-[#EC167F]"
/>
</div>
<div className="pt-2 space-y-2 border-t border-slate-100">
<label className="flex items-center gap-2 cursor-pointer">
<input
type="checkbox"
checked={bankForm.isPrimary}
onChange={(e) => setBankForm({ ...bankForm, isPrimary: e.target.checked })}
className="w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"
/>
<span className="font-bold text-slate-800">Set sebagai Rekening Utama (Default)</span>
</label>
<label className="flex items-center gap-2 cursor-pointer">
<input
type="checkbox"
checked={bankForm.isQrCode}
onChange={(e) => setBankForm({ ...bankForm, isQrCode: e.target.checked })}
className="w-4 h-4 rounded text-[#EC167F] focus:ring-[#EC167F]"
/>
<span className="font-bold text-slate-800">Dukungan Scan Barcode QRIS</span>
</label>
</div>
</div>
<div className="flex justify-end gap-2 pt-2 border-t border-slate-100">
<button
type="button"
onClick={() => setShowAddBankModal(false)}
className="px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl text-xs"
>
Batal
</button>
<button
type="button"
onClick={handleSaveBank}
className="px-5 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-xl text-xs shadow-xs"
>
Simpan Rekening
</button>
</div>
</div>
</div>
)}
{/* MAP LOCATION SELECTOR MODAL */}
{showMapModal && (
<div className="fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200">
<div className="bg-white w-full max-w-lg rounded-2xl border border-slate-200 shadow-2xl overflow-hidden p-5 space-y-4">
<div className="flex items-center justify-between pb-2 border-b border-slate-100">
<div className="flex items-center gap-2">
<div className="w-8 h-8 rounded-full bg-pink-100 text-[#EC167F] flex items-center justify-center font-bold">
<MapPin className="w-4 h-4" />
</div>
<h3 className="text-sm font-extrabold text-slate-900">Tentukan Lokasi Bisnis di Peta</h3>
</div>
<button onClick={() => setShowMapModal(false)} className="p-1 text-slate-400 hover:text-slate-600 rounded-lg">
<X className="w-4 h-4" />
</button>
</div>
<div className="relative rounded-2xl overflow-hidden border border-slate-200 bg-slate-100 h-64 flex items-center justify-center">
<div className="absolute inset-0 bg-[radial-gradient(#94a3b8_1px,transparent_1px)] [background-size:16px_16px]" />
<div className="relative z-10 flex flex-col items-center">
<div className="w-10 h-10 rounded-full bg-[#EC167F] text-white flex items-center justify-center shadow-lg animate-bounce">
<MapPin className="w-5 h-5" />
</div>
<div className="bg-white px-3 py-1 rounded-xl shadow-md text-[11px] font-extrabold text-slate-800 border border-slate-200 mt-2">
Vivaz Make Up Studio
</div>
</div>
</div>
<div className="flex justify-end gap-2 pt-2">
<button
type="button"
onClick={() => setShowMapModal(false)}
className="px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl text-xs"
>
Batal
</button>
<button
type="button"
onClick={() => {
setShowMapModal(false);
triggerToast('Lokasi bisnis di peta berhasil diperbarui!');
}}
className="px-5 py-2 bg-[#EC167F] hover:bg-[#D41270] text-white font-extrabold rounded-xl text-xs shadow-xs"
>
Konfirmasi Lokasi Ini
</button>
</div>
</div>
</div>
)}
{/* DELETE ACCOUNT CONFIRMATION MODAL */}
{showDeleteModal && (
<div className="fixed inset-0 z-50 bg-slate-900/50 backdrop-blur-xs flex items-center justify-center p-4 animate-in fade-in duration-200">
<div className="bg-white w-full max-w-md rounded-2xl border border-rose-200 shadow-2xl overflow-hidden p-5 space-y-4">
<div className="flex items-center gap-3">
<div className="w-10 h-10 rounded-full bg-rose-100 text-rose-600 flex items-center justify-center font-bold shrink-0">
<AlertTriangle className="w-5 h-5" />
</div>
<div>
<h3 className="text-sm font-extrabold text-slate-900">Hapus Akun Bisnis Permanen?</h3>
<p className="text-xs text-slate-500 mt-0.5">Tindakan ini tidak dapat dibatalkan. Seluruh data reservasi, keuangan, dan kustomer akan terhapus.</p>
</div>
</div>
<div className="flex justify-end gap-2 pt-3 border-t border-slate-100 text-xs">
<button
type="button"
onClick={() => setShowDeleteModal(false)}
className="px-4 py-2 bg-slate-100 hover:bg-slate-200 text-slate-700 font-bold rounded-xl"
>
Batal
</button>
<button
type="button"
onClick={() => {
setShowDeleteModal(false);
triggerToast('Permintaan penghapusan akun telah diproses.');
}}
className="px-5 py-2 bg-rose-600 hover:bg-rose-700 text-white font-extrabold rounded-xl shadow-xs"
>
Ya, Hapus Akun
</button>
</div>
</div>
</div>
)}
</div>
);
};