Files
alrahma_sunday_school_api/apps/admin/.next/static/chunks/2whz8frja7po-.js
T
2026-06-11 03:22:12 -04:00

1 line
43 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,78740,(e,a,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SEVERITY_COLORS=t.DAMAGE_ZONE_COORDS=void 0,t.DAMAGE_ZONE_COORDS={hood:{x:48,y:8,w:64,h:28},roof:{x:48,y:52,w:64,h:56},trunk:{x:48,y:124,w:64,h:28},"front-bumper":{x:48,y:0,w:64,h:10},"rear-bumper":{x:48,y:150,w:64,h:10},"front-left-fender":{x:20,y:10,w:30,h:35},"front-right-fender":{x:110,y:10,w:30,h:35},"front-left-door":{x:20,y:52,w:30,h:30},"front-right-door":{x:110,y:52,w:30,h:30},"rear-left-door":{x:20,y:82,w:30,h:30},"rear-right-door":{x:110,y:82,w:30,h:30},"rear-left-fender":{x:20,y:112,w:30,h:35},"rear-right-fender":{x:110,y:112,w:30,h:35},windshield:{x:52,y:38,w:56,h:18},"rear-window":{x:52,y:104,w:56,h:18},"left-mirror":{x:8,y:50,w:14,h:10},"right-mirror":{x:138,y:50,w:14,h:10},"front-left-wheel":{x:10,y:24,w:22,h:26},"front-right-wheel":{x:128,y:24,w:22,h:26},"rear-left-wheel":{x:10,y:110,w:22,h:26},"rear-right-wheel":{x:128,y:110,w:22,h:26},interior:{x:55,y:58,w:50,h:44},"under-hood":{x:52,y:10,w:56,h:20},undercarriage:{x:52,y:130,w:56,h:20}},t.SEVERITY_COLORS={SCRATCH:"#F59E0B",DENT:"#EF4444",CRACK:"#8B5CF6",MISSING:"#374151",OTHER:"#6B7280"}},33556,(e,a,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FUEL_POLICY_LABELS=void 0,t.FUEL_POLICY_LABELS={FULL_TO_FULL:{en:"Full-to-Full: Return vehicle with a full tank. A refueling fee applies if returned with less fuel.",fr:"Plein à plein : retournez le véhicule avec le plein. Des frais de ravitaillement s'appliquent sinon.",ar:"ممتلئ إلى ممتلئ: يجب إعادة السيارة بخزان ممتلئ. رسوم إضافية في حال الإعادة بمستوى أقل."},FULL_TO_EMPTY:{en:"Full-to-Empty: Vehicle is provided with a full tank. No refund for unused fuel upon return.",fr:"Plein à vide : le véhicule est livré avec le plein. Aucun remboursement n'est accordé pour le carburant non utilisé.",ar:"ممتلئ إلى فارغ: تُسلَّم السيارة بخزان ممتلئ. لا استرداد للوقود غير المستخدم."},SAME_TO_SAME:{en:"Same-to-Same: Return vehicle with the same fuel level as at pickup.",fr:"Même niveau : retournez le véhicule avec le même niveau de carburant qu'au départ.",ar:"نفس المستوى: أعد السيارة بنفس مستوى الوقود عند الاستلام."},PREPAID:{en:"Prepaid Fuel: You pre-purchase a full tank at a fixed rate. Return at any fuel level.",fr:"Carburant prépayé : vous achetez un plein à tarif fixe à l'avance. Retour possible avec n'importe quel niveau.",ar:"الوقود المدفوع مسبقاً: تدفع مقدماً ثمن خزان كامل بسعر ثابت. يمكن إعادة السيارة بأي مستوى."},FREE:{en:"Fuel Included: Fuel cost is included in the rental price.",fr:"Carburant inclus : le coût du carburant est inclus dans le tarif de location.",ar:"الوقود مشمول: تكلفة الوقود مشمولة في سعر الإيجار."}}},89456,(e,a,t)=>{"use strict";function s(e){if(e)return e;let a="object"==typeof globalThis&&"document"in globalThis?globalThis.document?.documentElement?.lang:void 0;return"en"===a||"fr"===a||"ar"===a?a:"en"}function r(e,a="MAD"){return"ar"===s(e)?"درهم":"MAD"}Object.defineProperty(t,"__esModule",{value:!0}),t.PLAN_FEATURES=t.PLAN_PRICES=void 0,t.getCurrencyLabel=r,t.formatCurrency=function(e,a="MAD",t){let l=s(t),n=new Intl.NumberFormat({en:"en-US",fr:"fr-FR",ar:"ar-MA"}[l],{minimumFractionDigits:2,maximumFractionDigits:2}).format(e/100),i=r(l,a);return"en"===l?`${i} ${n}`:`${n} ${i}`},t.PLAN_PRICES={STARTER:{MONTHLY:{MAD:2990},ANNUAL:{MAD:29900}},GROWTH:{MONTHLY:{MAD:3990},ANNUAL:{MAD:39900}},PRO:{MONTHLY:{MAD:99900},ANNUAL:{MAD:999e3}}},t.PLAN_FEATURES={STARTER:["Up to 10 vehicles","1 user account","Basic analytics","Marketplace listing"],GROWTH:["Up to 50 vehicles","5 user accounts","Full analytics","Priority marketplace placement","Custom branding"],PRO:["Unlimited vehicles","Unlimited user accounts","Advanced reports","API access","Dedicated support"]}},82110,(e,a,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultMarketplaceHomepageContent=t.defaultMarketplaceHomepageSections=void 0,t.cloneMarketplaceHomepageContent=function(){return JSON.parse(JSON.stringify(t.defaultMarketplaceHomepageContent))},t.resolveMarketplaceHomepageSections=function(e){let a=e?.length?e:t.defaultMarketplaceHomepageSections;return a.filter((e,t)=>a.indexOf(e)===t)},t.defaultMarketplaceHomepageSections=["hero","surface","pillars","audiences","features","steps","closing"],t.defaultMarketplaceHomepageContent={en:{sections:t.defaultMarketplaceHomepageSections,heroKicker:"RentalDriveGo",heroTitle:"Marketplace discovery with a sharper front door.",heroBody:"Rental companies run private operations, renters browse a shared marketplace, and every booking ends on the companys own branded checkout.",startTrial:"Start free trial",exploreVehicles:"Explore vehicles",surfaceLabel:"Marketplace surface",surfaceTitle:"Designed for two audiences at once.",surfaceBody:"Operators need control, renters need confidence. The marketplace should show both without feeling like a template.",liveLabel:"Live network",trustedFleets:"Trusted fleets",brandedFlows:"Branded booking flows",multiTenant:"Multi-tenant operations",companyKicker:"Operator workflow",companyTitle:"Manage inventory, offers, billing, and staff from one control layer.",companyBody:"Publish inventory once, decide what appears publicly, and keep contracts, payments, and reporting isolated per company.",renterKicker:"Renter experience",renterTitle:"Let renters compare quickly, then hand them off to the right company site.",renterBody:"The marketplace works as a discovery engine, not a dead-end aggregator. Search here, reserve there, and pay direct.",pillars:[["Unified publishing","Vehicle photos, pricing, and offers flow from one admin workflow into marketplace discovery and branded booking pages."],["Qualified discovery","Featured offers, location-aware browsing, and company reputation signals help renters narrow options fast."],["Direct revenue path","Bookings move into the companys own payment flow, so customer ownership and cash collection stay with the business."]].map(([e,a])=>({title:e,body:a})),metrics:[["01","Shared marketplace visibility"],["02","Direct company checkout"],["03","Company-owned payments"]].map(([e,a])=>({value:e,label:a})),featureLabel:"What the product covers",features:["Fleet management with multi-photo uploads","Marketplace offers and redirect booking flow","Branded public booking site per company","Customer CRM, analytics, and billing controls"],stepsTitle:"How companies launch",steps:[["1","Create your company workspace","Pick a plan, launch your 90-day trial, and verify the owner account."],["2","Publish vehicles and offers","Upload photos once and control what appears on the marketplace and branded site."],["3","Accept bookings on your own site","Renters discover your fleet on RentalDriveGo, then pay you directly on your branded booking flow."]].map(([e,a,t])=>({step:e,title:a,body:t})),stepLabel:"Step",readyKicker:"Ready to launch",readyTitle:"The marketplace homepage should explain the product in seconds.",readyBody:"Use the marketplace to attract demand, then move renters into a branded experience that keeps pricing, payments, and trust tied to your company.",viewPricing:"View pricing",createWorkspace:"Create workspace"},fr:{sections:t.defaultMarketplaceHomepageSections,heroKicker:"RentalDriveGo",heroTitle:"Une vitrine marketplace plus claire et plus percutante.",heroBody:"Les entreprises de location gèrent leurs opérations en privé, les clients parcourent une marketplace commune et chaque réservation se finalise sur le parcours de paiement aux couleurs de l'entreprise.",startTrial:"Commencer lessai gratuit",exploreVehicles:"Explorer les véhicules",surfaceLabel:"Vitrine marketplace",surfaceTitle:"Pensée pour deux audiences à la fois.",surfaceBody:"Les opérateurs veulent du contrôle, les clients veulent de la confiance. La marketplace doit montrer les deux sans ressembler à un modèle générique.",liveLabel:"Réseau actif",trustedFleets:"Flottes fiables",brandedFlows:"Parcours de marque",multiTenant:"Opérations multi-tenant",companyKicker:"Flux opérateur",companyTitle:"Pilotez linventaire, les offres, la facturation et l’équipe depuis un seul centre de contrôle.",companyBody:"Publiez une seule fois, choisissez ce qui apparaît publiquement, et gardez contrats, paiements et rapports isolés par entreprise.",renterKicker:"Expérience client",renterTitle:"Laissez les clients comparer rapidement, puis redirigez-les vers le bon site dentreprise.",renterBody:"La marketplace sert de moteur de découverte, pas dagrégateur sans suite. Recherche ici, réservation là-bas, paiement direct.",pillars:[["Publication unifiée","Les photos, tarifs et offres circulent depuis un seul flux dadministration vers la découverte marketplace et les pages de réservation de marque."],["Découverte qualifiée","Offres mises en avant, navigation par localisation et signaux de réputation aident les clients à filtrer rapidement."],["Revenus en direct","Les réservations basculent vers le paiement propre à lentreprise afin de préserver la relation client et lencaissement."]].map(([e,a])=>({title:e,body:a})),metrics:[["01","Visibilité marketplace partagée"],["02","Paiement direct entreprise"],["03","Paiements gérés par lentreprise"]].map(([e,a])=>({value:e,label:a})),featureLabel:"Ce que couvre le produit",features:["Gestion de flotte avec téléversement de plusieurs photos","Offres marketplace et redirection vers la réservation","Site public de réservation par entreprise","CRM client, analytics et contrôle de facturation"],stepsTitle:"Comment les entreprises démarrent",steps:[["1","Créez votre espace entreprise","Choisissez un plan, lancez votre essai de 90 jours et vérifiez le compte propriétaire."],["2","Publiez véhicules et offres","Téléversez une seule fois et contrôlez ce qui apparaît sur la marketplace et le site de marque."],["3","Acceptez les réservations sur votre site","Les clients découvrent votre flotte sur RentalDriveGo puis paient directement via votre parcours de réservation."]].map(([e,a,t])=>({step:e,title:a,body:t})),stepLabel:"Étape",readyKicker:"Prêt à démarrer",readyTitle:"La page daccueil marketplace doit présenter le produit en quelques secondes.",readyBody:"Utilisez la marketplace pour capter la demande, puis orientez les clients vers une expérience de marque où les prix, les paiements et la confiance restent attachés à votre entreprise.",viewPricing:"Voir les tarifs",createWorkspace:"Créer lespace"},ar:{sections:t.defaultMarketplaceHomepageSections,heroKicker:"RentalDriveGo",heroTitle:"واجهة سوق أكثر وضوحاً وتأثيراً.",heroBody:"شركات التأجير تدير عملياتها بشكل خاص، والمستأجرون يتصفحون سوقاً مشتركاً، وكل حجز ينتهي في صفحة دفع تحمل هوية الشركة ذاتها.",startTrial:"ابدأ التجربة المجانية",exploreVehicles:"استكشف السيارات",surfaceLabel:"واجهة السوق",surfaceTitle:"مصممة لجمهورين في الوقت نفسه.",surfaceBody:"المشغلون يريدون التحكم، والمستأجرون يريدون الثقة. يجب أن تُظهر المنصة الأمرين معاً من دون أن تبدو كقالب عادي.",liveLabel:"شبكة نشطة",trustedFleets:"أساطيل موثوقة",brandedFlows:"مسارات حجز مخصصة",multiTenant:"عمليات متعددة الشركات",companyKicker:"سير عمل المشغل",companyTitle:"تحكم في المخزون والعروض والفوترة والفريق من طبقة تشغيل واحدة.",companyBody:"انشر المخزون مرة واحدة، وحدد ما يظهر للعامة، واحتفظ بالعقود والمدفوعات والتقارير معزولة لكل شركة.",renterKicker:"تجربة المستأجر",renterTitle:"دع المستأجرين يقارنون بسرعة ثم وجّههم إلى موقع الشركة المناسب.",renterBody:"هذه المنصة محرك لاكتشاف الخيارات، وليست مُجمِّعاً بلا مسار واضح. ابحث هنا، احجز هناك، وادفع مباشرة للشركة.",pillars:[["نشر موحد","صور السيارات والأسعار والعروض تنتقل من سير إدارة واحد إلى السوق وصفحات الحجز ذات الهوية الخاصة."],["اكتشاف مؤهل","تساعد العروض المميزة، والتصفح حسب الموقع، وإشارات السمعة المستأجرين على تحديد خياراتهم بسرعة."],["مسار إيراد مباشر","تنتقل الحجوزات إلى صفحة الدفع الخاصة بالشركة حتى تبقى علاقة العميل والتحصيل المالي بيد الشركة نفسها."]].map(([e,a])=>({title:e,body:a})),metrics:[["01","ظهور مشترك في السوق"],["02","دفع مباشر للشركة"],["03","مدفوعات مملوكة للشركة"]].map(([e,a])=>({value:e,label:a})),featureLabel:"ما الذي يقدمه المنتج",features:["إدارة الأسطول مع رفع عدة صور","عروض السوق والتحويل إلى مسار الحجز","موقع حجز عام مخصص لكل شركة","إدارة العملاء والتحليلات والفوترة"],stepsTitle:"كيف تبدأ الشركات",steps:[["1","أنشئ مساحة عمل شركتك","اختر الخطة وابدأ تجربتك لمدة 14 يوماً ثم فعّل حساب المالك."],["2","انشر السيارات والعروض","ارفع الصور مرة واحدة وتحكم فيما يظهر في السوق وفي الموقع المخصص."],["3","استقبل الحجوزات على موقعك","يكتشف المستأجرون أسطولك على RentalDriveGo ثم يدفعون مباشرة عبر مسار الحجز الخاص بك."]].map(([e,a,t])=>({step:e,title:a,body:t})),stepLabel:"الخطوة",readyKicker:"جاهز للانطلاق",readyTitle:"يجب أن تشرح الصفحة الرئيسية قيمة المنصة خلال ثوانٍ.",readyBody:"استخدم السوق لجذب الطلب، ثم انقل المستأجرين إلى تجربة تحمل هوية شركتك، بحيث تبقى الأسعار والمدفوعات والثقة مرتبطة بنشاطك.",viewPricing:"عرض الأسعار",createWorkspace:"إنشاء المساحة"}}},64712,(e,a,t)=>{"use strict";var s=e.e&&e.e.__createBinding||(Object.create?function(e,a,t,s){void 0===s&&(s=t);var r=Object.getOwnPropertyDescriptor(a,t);(!r||("get"in r?!a.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return a[t]}}),Object.defineProperty(e,s,r)}:function(e,a,t,s){void 0===s&&(s=t),e[s]=a[t]}),r=e.e&&e.e.__exportStar||function(e,a){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(a,t)||s(a,e,t)};Object.defineProperty(t,"__esModule",{value:!0}),r(e.r(78740),t),r(e.r(33556),t),r(e.r(89456),t),r(e.r(82110),t)},63209,e=>{"use strict";var a=e.i(43476),t=e.i(71645),s=e.i(22016),r=e.i(64712),l=e.i(51224),n=e.i(6655);let i={ACTIVE:"text-emerald-400 bg-emerald-900/30",TRIALING:"text-sky-400 bg-sky-900/30",SUSPENDED:"text-red-400 bg-red-900/30",PENDING:"text-orange-400 bg-orange-900/30",CANCELLED:"text-zinc-400 bg-zinc-800"},c="w-full rounded-xl border border-zinc-700 bg-zinc-900 px-3 py-2 text-sm text-zinc-100 placeholder:text-zinc-500 focus:outline-none focus:ring-2 focus:ring-emerald-500",o="mb-2 block text-xs font-semibold uppercase tracking-[0.16em] text-zinc-500";function d(e){let a=JSON.parse(JSON.stringify(e));return["en","fr","ar"].forEach(e=>{a[e].sections=(0,r.resolveMarketplaceHomepageSections)(a[e].sections)}),a}let p=["hero","surface","pillars","audiences","features","steps","closing"];e.s(["default",0,function(){let{language:e,dict:m}=(0,l.useAdminI18n)(),u={en:{title:"Site configuration",description:"Edit the main marketplace homepage here, or jump into a company to manage its branded public homepage and menu.",homepageTitle:"Main website homepage",homepageDescription:"This controls the marketplace homepage shown on the main RentalDriveGo website.",saveHomepage:"Save homepage",savingHomepage:"Saving…",homepageSaved:"Marketplace homepage saved.",search:"Search by company or slug…",loading:"Loading…",empty:"No companies found",company:"Company",slug:"Slug",status:"Status",actions:"Actions",configure:"Configure site",manageCompany:"Open company",companiesTitle:"Company branded sites",languageLabel:"Language",hero:"Hero",surface:"Surface",companySection:"Operator card",renterSection:"Renter card",valueSection:"Value blocks",featureSection:"Feature list",stepsSection:"Launch steps",closingSection:"Closing call to action",previewTitle:"Live preview",previewDescription:"Draft changes appear here before you save them.",homepageSections:"Homepage sections",homepageSectionsDescription:"Add or remove blocks from the main marketplace homepage.",addSection:"Add",removeSection:"Remove",expand:"Expand",collapse:"Collapse"},fr:{title:"Configuration du site",description:"Modifiez ici la page daccueil principale de la marketplace, ou ouvrez une entreprise pour gérer sa page publique et son menu.",homepageTitle:"Page daccueil du site principal",homepageDescription:"Cette section contrôle la page daccueil marketplace affichée sur le site principal de RentalDriveGo.",saveHomepage:"Enregistrer la page daccueil",savingHomepage:"Enregistrement…",homepageSaved:"Page daccueil marketplace enregistrée.",search:"Rechercher par entreprise ou slug…",loading:"Chargement…",empty:"Aucune entreprise trouvée",company:"Entreprise",slug:"Slug",status:"Statut",actions:"Actions",configure:"Configurer le site",manageCompany:"Ouvrir lentreprise",companiesTitle:"Sites de marque des entreprises",languageLabel:"Langue",hero:"Bloc principal",surface:"Bloc marketplace",companySection:"Bloc opérateur",renterSection:"Bloc client",valueSection:"Blocs de valeur",featureSection:"Liste des fonctionnalités",stepsSection:"Étapes de lancement",closingSection:"Appel à laction final",previewTitle:"Aperçu en direct",previewDescription:"Les brouillons apparaissent ici avant lenregistrement.",homepageSections:"Sections de la page daccueil",homepageSectionsDescription:"Ajoutez ou retirez des blocs de la page daccueil marketplace principale.",addSection:"Ajouter",removeSection:"Retirer",expand:"Ouvrir",collapse:"Réduire"},ar:{title:"إعدادات الموقع",description:"عدّل الصفحة الرئيسية للموقع الرئيسي هنا، أو افتح شركة لإدارة صفحتها العامة وقائمة التنقل الخاصة بها.",homepageTitle:"الصفحة الرئيسية للموقع الرئيسي",homepageDescription:"هذا القسم يتحكم في الصفحة الرئيسية للمنصة على موقع RentalDriveGo الرئيسي.",saveHomepage:"حفظ الصفحة الرئيسية",savingHomepage:"جارٍ الحفظ…",homepageSaved:"تم حفظ الصفحة الرئيسية للمنصة.",search:"ابحث باسم الشركة أو slug…",loading:"جارٍ التحميل…",empty:"لم يتم العثور على شركات",company:"الشركة",slug:"Slug",status:"الحالة",actions:"الإجراءات",configure:"إعداد الموقع",manageCompany:"فتح الشركة",companiesTitle:"المواقع العامة للشركات",languageLabel:"اللغة",hero:"البطاقة الرئيسية",surface:"قسم المنصة",companySection:"بطاقة المشغل",renterSection:"بطاقة المستأجر",valueSection:"عناصر القيمة",featureSection:"قائمة الميزات",stepsSection:"خطوات الإطلاق",closingSection:"الدعوة الختامية",previewTitle:"معاينة مباشرة",previewDescription:"تظهر التغييرات هنا قبل الحفظ.",homepageSections:"أقسام الصفحة الرئيسية",homepageSectionsDescription:"أضف أو احذف كتل الصفحة الرئيسية للمنصة.",addSection:"إضافة",removeSection:"إزالة",expand:"توسيع",collapse:"طي"}}[e],[x,h]=(0,t.useState)([]),[g,f]=(0,t.useState)([]),[b,v]=(0,t.useState)(""),[y,j]=(0,t.useState)(!0),[N,k]=(0,t.useState)(null),[w,S]=(0,t.useState)((0,r.cloneMarketplaceHomepageContent)()),[C,T]=(0,t.useState)(e),[z,L]=(0,t.useState)(!1),[A,P]=(0,t.useState)(null),[M,B]=(0,t.useState)(!1);function E(e){S(a=>({...a,[C]:{...a[C],...e}}))}function R(e,a){E({pillars:w[C].pillars.map((t,s)=>s===e?{...t,...a}:t)})}function D(e,a){E({steps:w[C].steps.map((t,s)=>s===e?{...t,...a}:t)})}function O(){return(0,r.resolveMarketplaceHomepageSections)(F.sections)}async function _(){L(!0),P(null);try{let e=await fetch(`${n.ADMIN_API_BASE}/admin/site-config/marketplace-homepage`,{method:"PATCH",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({homepage:w})}),a=await e.json();if(!e.ok)throw Error(a?.message??"Failed to save homepage");S(d(a.data)),P(u.homepageSaved)}catch(e){k(e.message)}finally{L(!1)}}(0,t.useEffect)(()=>{T(e)},[e]),(0,t.useEffect)(()=>{!async function(){try{let[e,a]=await Promise.all([fetch(`${n.ADMIN_API_BASE}/admin/companies`,{credentials:"include",cache:"no-store"}),fetch(`${n.ADMIN_API_BASE}/admin/site-config/marketplace-homepage`,{credentials:"include",cache:"no-store"})]),t=await e.json();if(!e.ok)throw Error(t?.message??"Failed to fetch companies");h(t.data?.data??[]),f(t.data?.data??[]);let s=await a.json();a.ok&&s?.data&&S(d(s.data))}catch(e){k(e.message)}finally{j(!1)}}()},[]),(0,t.useEffect)(()=>{let e=b.toLowerCase();f(x.filter(a=>a.name.toLowerCase().includes(e)||a.slug.toLowerCase().includes(e)||a.email.toLowerCase().includes(e)))},[b,x]);let F=w[C],H=O(),$=p.filter(e=>!H.includes(e)),K={hero:u.hero,surface:u.surface,pillars:u.valueSection,audiences:`${u.companySection} / ${u.renterSection}`,features:u.featureSection,steps:u.stepsSection,closing:u.closingSection};return(0,a.jsxs)("div",{className:"shell space-y-6 py-8",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-start xl:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs uppercase tracking-[0.2em] text-emerald-400",children:m.platform}),(0,a.jsx)("h1",{className:"mt-1 text-3xl font-black",children:u.title}),(0,a.jsx)("p",{className:"mt-2 max-w-3xl text-sm text-zinc-500",children:u.description})]}),(0,a.jsx)("input",{className:"w-full rounded-xl border border-zinc-700 bg-zinc-800 px-3 py-2 text-sm text-zinc-100 placeholder:text-zinc-500 focus:outline-none focus:ring-2 focus:ring-emerald-500 xl:w-72",placeholder:u.search,value:b,onChange:e=>v(e.target.value)})]}),N?(0,a.jsx)("div",{className:"panel p-4 text-sm text-red-400",children:N}):null,(0,a.jsxs)("section",{className:"panel p-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-start xl:justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-zinc-100",children:u.homepageTitle}),(0,a.jsx)("p",{className:"mt-1 text-sm text-zinc-500",children:u.homepageDescription})]}),(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,a.jsx)("span",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-zinc-500",children:u.languageLabel}),["en","fr","ar"].map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>T(e),className:`rounded-full px-3 py-1.5 text-xs font-semibold transition ${C===e?"bg-emerald-500 text-white":"bg-zinc-800 text-zinc-300 hover:bg-zinc-700"}`,children:e.toUpperCase()},e))]}),(0,a.jsx)("button",{type:"button",onClick:()=>B(e=>!e),className:"rounded-full border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-xs font-semibold text-zinc-200 transition hover:border-zinc-600 hover:bg-zinc-800",children:M?u.collapse:u.expand})]})]}),M?(0,a.jsxs)(a.Fragment,{children:[A?(0,a.jsx)("div",{className:"mt-4 rounded-xl border border-emerald-500/30 bg-emerald-500/10 px-4 py-3 text-sm text-emerald-300",children:A}):null,(0,a.jsxs)("div",{className:"mt-6 rounded-2xl border border-zinc-800 bg-zinc-950/60 p-4",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-zinc-100",children:u.homepageSections}),(0,a.jsx)("p",{className:"mt-1 text-xs text-zinc-500",children:u.homepageSectionsDescription}),(0,a.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:H.map(e=>(0,a.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-xs font-semibold text-zinc-200",children:[(0,a.jsx)("span",{children:K[e]}),(0,a.jsx)("button",{type:"button",onClick:()=>{let a;0!==(a=O().filter(a=>a!==e)).length&&E({sections:a})},className:"rounded-full border border-rose-500/30 bg-rose-500/10 px-2 py-0.5 text-[10px] font-semibold uppercase tracking-[0.14em] text-rose-300",children:u.removeSection})]},e))}),$.length?(0,a.jsx)("div",{className:"mt-4 flex flex-wrap gap-2",children:$.map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>{let a;!(a=O()).includes(e)&&E({sections:[...a,e]})},className:"rounded-full border border-emerald-500/30 bg-emerald-500/10 px-3 py-1.5 text-xs font-semibold text-emerald-300 transition hover:bg-emerald-500/20",children:[u.addSection," ",K[e]]},e))}):null]}),(0,a.jsxs)("div",{className:"mt-6 rounded-[1.75rem] border border-zinc-800 bg-zinc-950/60 p-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4 border-b border-zinc-800 pb-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-zinc-100",children:u.previewTitle}),(0,a.jsx)("p",{className:"mt-1 text-xs text-zinc-500",children:u.previewDescription})]}),(0,a.jsx)("span",{className:"rounded-full border border-emerald-500/30 bg-emerald-500/10 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.18em] text-emerald-300",children:C.toUpperCase()})]}),(0,a.jsxs)("div",{className:"mt-4 overflow-hidden rounded-[1.5rem] border border-stone-200 bg-[linear-gradient(180deg,#f8f5ef_0%,#f4efe6_28%,#fffdf8_58%,#ffffff_100%)] shadow-2xl shadow-black/20",children:[(0,a.jsx)("div",{className:"border-b border-stone-200 bg-white/90 px-5 py-4",children:(0,a.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.32em] text-orange-700",children:F.heroKicker}),(0,a.jsx)("p",{className:"mt-2 text-sm text-stone-500",children:"rentaldrivego.com"})]}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2 text-xs font-semibold text-stone-600",children:F.metrics.map(e=>(0,a.jsx)("span",{className:"rounded-full border border-stone-300 bg-white px-3 py-1.5",children:e.label},e.value))})]})}),(0,a.jsxs)("div",{className:"space-y-10 px-5 py-6 lg:px-8",children:[H.includes("hero")?(0,a.jsxs)("section",{className:"grid gap-6 lg:grid-cols-[1.1fr_0.9fr] lg:items-center",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-4xl font-black tracking-[-0.04em] text-blue-950",children:F.heroTitle}),(0,a.jsx)("p",{className:"mt-5 max-w-2xl text-base leading-8 text-stone-600",children:F.heroBody}),(0,a.jsxs)("div",{className:"mt-8 flex flex-wrap gap-3",children:[(0,a.jsx)("span",{className:"rounded-full bg-orange-600 px-5 py-3 text-sm font-semibold text-white",children:F.startTrial}),(0,a.jsx)("span",{className:"rounded-full border border-stone-300 bg-white px-5 py-3 text-sm font-semibold text-stone-700",children:F.exploreVehicles})]})]}),H.includes("surface")?(0,a.jsxs)("div",{className:"rounded-[1.5rem] bg-[#06132e] p-6 text-white",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/15 bg-white/10 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-orange-200",children:F.surfaceLabel}),(0,a.jsx)("span",{className:"rounded-full bg-emerald-400/15 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-emerald-200",children:F.liveLabel})]}),(0,a.jsx)("h5",{className:"mt-5 text-2xl font-black tracking-[-0.03em]",children:F.surfaceTitle}),(0,a.jsx)("p",{className:"mt-4 text-sm leading-7 text-stone-300",children:F.surfaceBody}),(0,a.jsx)("div",{className:"mt-6 space-y-3",children:[F.trustedFleets,F.brandedFlows,F.multiTenant].map((e,t)=>(0,a.jsx)("div",{className:"rounded-[1.25rem] border border-white/10 bg-white/5 px-4 py-3 text-sm font-semibold",children:e},`${e}-${t}`))})]}):null]}):null,H.includes("surface")&&!H.includes("hero")?(0,a.jsxs)("section",{className:"rounded-[1.5rem] bg-[#06132e] p-6 text-white",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/15 bg-white/10 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-orange-200",children:F.surfaceLabel}),(0,a.jsx)("span",{className:"rounded-full bg-emerald-400/15 px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.22em] text-emerald-200",children:F.liveLabel})]}),(0,a.jsx)("h5",{className:"mt-5 text-2xl font-black tracking-[-0.03em]",children:F.surfaceTitle}),(0,a.jsx)("p",{className:"mt-4 text-sm leading-7 text-stone-300",children:F.surfaceBody})]}):null,H.includes("pillars")?(0,a.jsx)("section",{className:"grid gap-4 lg:grid-cols-3",children:F.pillars.map((e,t)=>(0,a.jsxs)("article",{className:`rounded-[1.5rem] border p-5 ${1===t?"border-orange-700 bg-orange-600 text-white":"border-stone-200 bg-white text-stone-900"}`,children:[(0,a.jsxs)("p",{className:`text-xs font-bold uppercase tracking-[0.24em] ${1===t?"text-stone-300":"text-stone-400"}`,children:["0",t+1]}),(0,a.jsx)("h5",{className:"mt-3 text-xl font-black",children:e.title}),(0,a.jsx)("p",{className:`mt-3 text-sm leading-7 ${1===t?"text-stone-200":"text-stone-600"}`,children:e.body})]},`${e.title}-${t}`))}):null,H.includes("audiences")?(0,a.jsxs)("section",{className:"grid gap-4 lg:grid-cols-2",children:[(0,a.jsxs)("article",{className:"rounded-[1.5rem] border border-stone-200 bg-white p-5",children:[(0,a.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.24em] text-stone-500",children:F.companyKicker}),(0,a.jsx)("h5",{className:"mt-3 text-2xl font-black text-blue-950",children:F.companyTitle}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-7 text-stone-600",children:F.companyBody})]}),(0,a.jsxs)("article",{className:"rounded-[1.5rem] border border-stone-200 bg-[#f7efe2] p-5",children:[(0,a.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.24em] text-orange-700",children:F.renterKicker}),(0,a.jsx)("h5",{className:"mt-3 text-2xl font-black text-blue-950",children:F.renterTitle}),(0,a.jsx)("p",{className:"mt-3 text-sm leading-7 text-stone-700",children:F.renterBody})]})]}):null,H.includes("features")||H.includes("steps")?(0,a.jsxs)("section",{className:"grid gap-6 lg:grid-cols-[0.9fr_1.1fr]",children:[H.includes("features")?(0,a.jsxs)("article",{className:"rounded-[1.5rem] border border-stone-200 bg-[#fffdf8] p-5",children:[(0,a.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.24em] text-stone-500",children:F.featureLabel}),(0,a.jsx)("div",{className:"mt-5 space-y-3",children:F.features.map((e,t)=>(0,a.jsxs)("div",{className:"flex items-start gap-3 rounded-[1rem] border border-stone-200 bg-white px-4 py-3",children:[(0,a.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-orange-600 text-xs font-bold text-white",children:t+1}),(0,a.jsx)("p",{className:"text-sm font-semibold leading-6 text-stone-800",children:e})]},`${e}-${t}`))})]}):(0,a.jsx)("div",{}),H.includes("steps")?(0,a.jsxs)("article",{className:"rounded-[1.5rem] border border-stone-200 bg-white p-5",children:[(0,a.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.24em] text-orange-700",children:F.readyKicker}),(0,a.jsx)("h5",{className:"mt-3 text-2xl font-black text-blue-950",children:F.stepsTitle}),(0,a.jsx)("div",{className:"mt-5 space-y-3",children:F.steps.map(e=>(0,a.jsxs)("div",{className:"rounded-[1rem] border border-stone-200 bg-stone-50 p-4",children:[(0,a.jsxs)("p",{className:"text-xs font-bold uppercase tracking-[0.24em] text-stone-500",children:[F.stepLabel," ",e.step]}),(0,a.jsx)("h6",{className:"mt-2 text-lg font-black text-blue-950",children:e.title}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-7 text-stone-600",children:e.body})]},e.step))})]}):(0,a.jsx)("div",{})]}):null,H.includes("closing")?(0,a.jsxs)("section",{className:"rounded-[1.5rem] bg-[#06132e] px-6 py-7 text-white",children:[(0,a.jsx)("p",{className:"text-xs font-bold uppercase tracking-[0.28em] text-orange-300",children:F.readyKicker}),(0,a.jsx)("h5",{className:"mt-4 max-w-3xl text-3xl font-black tracking-[-0.04em]",children:F.readyTitle}),(0,a.jsx)("p",{className:"mt-4 max-w-2xl text-sm leading-8 text-stone-300",children:F.readyBody}),(0,a.jsxs)("div",{className:"mt-6 flex flex-wrap gap-3",children:[(0,a.jsx)("span",{className:"rounded-full border border-white/20 px-5 py-3 text-sm font-semibold",children:F.viewPricing}),(0,a.jsx)("span",{className:"rounded-full bg-orange-300 px-5 py-3 text-sm font-semibold text-blue-950",children:F.createWorkspace})]})]}):null]})]})]}),(0,a.jsxs)("div",{className:"mt-6 space-y-8",children:[(0,a.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Brand kicker"}),(0,a.jsx)("input",{className:c,value:F.heroKicker,onChange:e=>E({heroKicker:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Primary CTA"}),(0,a.jsx)("input",{className:c,value:F.startTrial,onChange:e=>E({startTrial:e.target.value})})]}),(0,a.jsxs)("label",{className:"md:col-span-2",children:[(0,a.jsxs)("span",{className:o,children:[u.hero," title"]}),(0,a.jsx)("input",{className:c,value:F.heroTitle,onChange:e=>E({heroTitle:e.target.value})})]}),(0,a.jsxs)("label",{className:"md:col-span-2",children:[(0,a.jsxs)("span",{className:o,children:[u.hero," body"]}),(0,a.jsx)("textarea",{className:`${c} min-h-24`,value:F.heroBody,onChange:e=>E({heroBody:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Secondary CTA"}),(0,a.jsx)("input",{className:c,value:F.exploreVehicles,onChange:e=>E({exploreVehicles:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:[u.surface," badge"]}),(0,a.jsx)("input",{className:c,value:F.surfaceLabel,onChange:e=>E({surfaceLabel:e.target.value})})]})]}),(0,a.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,a.jsxs)("label",{className:"md:col-span-2",children:[(0,a.jsxs)("span",{className:o,children:[u.surface," title"]}),(0,a.jsx)("input",{className:c,value:F.surfaceTitle,onChange:e=>E({surfaceTitle:e.target.value})})]}),(0,a.jsxs)("label",{className:"md:col-span-2",children:[(0,a.jsxs)("span",{className:o,children:[u.surface," body"]}),(0,a.jsx)("textarea",{className:`${c} min-h-24`,value:F.surfaceBody,onChange:e=>E({surfaceBody:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Live label"}),(0,a.jsx)("input",{className:c,value:F.liveLabel,onChange:e=>E({liveLabel:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Trusted fleets"}),(0,a.jsx)("input",{className:c,value:F.trustedFleets,onChange:e=>E({trustedFleets:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Branded flows"}),(0,a.jsx)("input",{className:c,value:F.brandedFlows,onChange:e=>E({brandedFlows:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Multi-tenant"}),(0,a.jsx)("input",{className:c,value:F.multiTenant,onChange:e=>E({multiTenant:e.target.value})})]})]}),(0,a.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:[u.companySection," kicker"]}),(0,a.jsx)("input",{className:c,value:F.companyKicker,onChange:e=>E({companyKicker:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:[u.renterSection," kicker"]}),(0,a.jsx)("input",{className:c,value:F.renterKicker,onChange:e=>E({renterKicker:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:[u.companySection," title"]}),(0,a.jsx)("input",{className:c,value:F.companyTitle,onChange:e=>E({companyTitle:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:[u.renterSection," title"]}),(0,a.jsx)("input",{className:c,value:F.renterTitle,onChange:e=>E({renterTitle:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:[u.companySection," body"]}),(0,a.jsx)("textarea",{className:`${c} min-h-24`,value:F.companyBody,onChange:e=>E({companyBody:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:[u.renterSection," body"]}),(0,a.jsx)("textarea",{className:`${c} min-h-24`,value:F.renterBody,onChange:e=>E({renterBody:e.target.value})})]})]}),(0,a.jsxs)("div",{className:"grid gap-6 xl:grid-cols-2",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-zinc-200",children:u.valueSection}),(0,a.jsxs)("div",{className:"grid gap-4",children:[F.metrics.map((e,t)=>(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:["Metric ",e.value]}),(0,a.jsx)("input",{className:c,value:e.label,onChange:e=>{var a;return a=e.target.value,void E({metrics:w[C].metrics.map((e,s)=>s===t?{...e,label:a}:e)})}})]},e.value)),F.pillars.map((e,t)=>(0,a.jsxs)("div",{className:"grid gap-4 rounded-2xl border border-zinc-800 bg-zinc-950/50 p-4",children:[(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:["Pillar ",t+1," title"]}),(0,a.jsx)("input",{className:c,value:e.title,onChange:e=>R(t,{title:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsxs)("span",{className:o,children:["Pillar ",t+1," body"]}),(0,a.jsx)("textarea",{className:`${c} min-h-24`,value:e.body,onChange:e=>R(t,{body:e.target.value})})]})]},`${e.title}-${t}`))]})]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-zinc-200",children:u.featureSection}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Feature section label"}),(0,a.jsx)("input",{className:c,value:F.featureLabel,onChange:e=>E({featureLabel:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Features, one per line"}),(0,a.jsx)("textarea",{className:`${c} min-h-40`,value:F.features.join("\n"),onChange:e=>E({features:e.target.value.split("\n").map(e=>e.trim()).filter(Boolean)})})]})]})]}),(0,a.jsxs)("div",{className:"grid gap-6 xl:grid-cols-2",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-zinc-200",children:u.stepsSection}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Steps title"}),(0,a.jsx)("input",{className:c,value:F.stepsTitle,onChange:e=>E({stepsTitle:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Step label"}),(0,a.jsx)("input",{className:c,value:F.stepLabel,onChange:e=>E({stepLabel:e.target.value})})]}),F.steps.map((e,t)=>(0,a.jsxs)("div",{className:"grid gap-4 rounded-2xl border border-zinc-800 bg-zinc-950/50 p-4",children:[(0,a.jsxs)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em] text-zinc-500",children:["Step ",e.step]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Title"}),(0,a.jsx)("input",{className:c,value:e.title,onChange:e=>D(t,{title:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Body"}),(0,a.jsx)("textarea",{className:`${c} min-h-24`,value:e.body,onChange:e=>D(t,{body:e.target.value})})]})]},e.step))]}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-zinc-200",children:u.closingSection}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Closing kicker"}),(0,a.jsx)("input",{className:c,value:F.readyKicker,onChange:e=>E({readyKicker:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Closing title"}),(0,a.jsx)("input",{className:c,value:F.readyTitle,onChange:e=>E({readyTitle:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Closing body"}),(0,a.jsx)("textarea",{className:`${c} min-h-24`,value:F.readyBody,onChange:e=>E({readyBody:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Pricing CTA"}),(0,a.jsx)("input",{className:c,value:F.viewPricing,onChange:e=>E({viewPricing:e.target.value})})]}),(0,a.jsxs)("label",{children:[(0,a.jsx)("span",{className:o,children:"Workspace CTA"}),(0,a.jsx)("input",{className:c,value:F.createWorkspace,onChange:e=>E({createWorkspace:e.target.value})})]})]})]})]}),(0,a.jsx)("div",{className:"mt-6 flex justify-end",children:(0,a.jsx)("button",{type:"button",onClick:_,disabled:z,className:"rounded-xl bg-emerald-600 px-4 py-2 text-sm font-semibold text-white transition hover:bg-emerald-500 disabled:cursor-not-allowed disabled:opacity-60",children:z?u.savingHomepage:u.saveHomepage})})]}):null]}),(0,a.jsxs)("section",{className:"panel overflow-hidden",children:[(0,a.jsx)("div",{className:"border-b border-zinc-800 px-6 py-4",children:(0,a.jsx)("h2",{className:"text-base font-semibold text-zinc-100",children:u.companiesTitle})}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full text-sm",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{className:"border-b border-zinc-800",children:[(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-zinc-500",children:u.company}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-zinc-500",children:u.slug}),(0,a.jsx)("th",{className:"px-6 py-3 text-left text-xs font-medium uppercase tracking-wider text-zinc-500",children:u.status}),(0,a.jsx)("th",{className:"px-6 py-3 text-right text-xs font-medium uppercase tracking-wider text-zinc-500",children:u.actions})]})}),(0,a.jsx)("tbody",{className:"divide-y divide-zinc-800/60",children:y?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:4,className:"px-6 py-12 text-center text-zinc-500",children:u.loading})}):0===g.length?(0,a.jsx)("tr",{children:(0,a.jsx)("td",{colSpan:4,className:"px-6 py-12 text-center text-zinc-500",children:u.empty})}):g.map(e=>(0,a.jsxs)("tr",{className:"transition-colors hover:bg-zinc-800/30",children:[(0,a.jsxs)("td",{className:"px-6 py-4",children:[(0,a.jsx)("p",{className:"font-medium text-zinc-100",children:e.brand?.displayName??e.name}),(0,a.jsx)("p",{className:"text-xs text-zinc-500",children:e.email})]}),(0,a.jsx)("td",{className:"px-6 py-4 font-mono text-xs text-zinc-400",children:e.slug}),(0,a.jsx)("td",{className:"px-6 py-4",children:(0,a.jsx)("span",{className:`inline-flex items-center rounded-full px-2 py-0.5 text-xs font-medium ${i[e.status]??"text-zinc-400 bg-zinc-800"}`,children:e.status})}),(0,a.jsx)("td",{className:"px-6 py-4",children:(0,a.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,a.jsx)(s.default,{href:`/dashboard/companies/${e.id}#site-config`,className:"rounded-lg bg-emerald-600 px-3 py-1.5 text-xs font-medium text-white transition-colors hover:bg-emerald-500",children:u.configure}),(0,a.jsx)(s.default,{href:`/dashboard/companies/${e.id}`,className:"rounded-lg bg-zinc-800 px-3 py-1.5 text-xs font-medium text-zinc-200 transition-colors hover:bg-zinc-700",children:u.manageCompany})]})})]},e.id))})]})})]})]})}])}]);