Files
alrahma_sunday_school_api/apps/dashboard/.next/static/chunks/0p6d-00x738rt.js
T
2026-06-11 03:22:12 -04:00

1 line
47 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,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SEVERITY_COLORS=r.DAMAGE_ZONE_COORDS=void 0,r.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}},r.SEVERITY_COLORS={SCRATCH:"#F59E0B",DENT:"#EF4444",CRACK:"#8B5CF6",MISSING:"#374151",OTHER:"#6B7280"}},33556,(e,a,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.FUEL_POLICY_LABELS=void 0,r.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,r)=>{"use strict";function t(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 i(e,a="MAD"){return"ar"===t(e)?"درهم":"MAD"}Object.defineProperty(r,"__esModule",{value:!0}),r.PLAN_FEATURES=r.PLAN_PRICES=void 0,r.getCurrencyLabel=i,r.formatCurrency=function(e,a="MAD",r){let n=t(r),s=new Intl.NumberFormat({en:"en-US",fr:"fr-FR",ar:"ar-MA"}[n],{minimumFractionDigits:2,maximumFractionDigits:2}).format(e/100),l=i(n,a);return"en"===n?`${l} ${s}`:`${s} ${l}`},r.PLAN_PRICES={STARTER:{MONTHLY:{MAD:2990},ANNUAL:{MAD:29900}},GROWTH:{MONTHLY:{MAD:3990},ANNUAL:{MAD:39900}},PRO:{MONTHLY:{MAD:99900},ANNUAL:{MAD:999e3}}},r.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,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.defaultMarketplaceHomepageContent=r.defaultMarketplaceHomepageSections=void 0,r.cloneMarketplaceHomepageContent=function(){return JSON.parse(JSON.stringify(r.defaultMarketplaceHomepageContent))},r.resolveMarketplaceHomepageSections=function(e){let a=e?.length?e:r.defaultMarketplaceHomepageSections;return a.filter((e,r)=>a.indexOf(e)===r)},r.defaultMarketplaceHomepageSections=["hero","surface","pillars","audiences","features","steps","closing"],r.defaultMarketplaceHomepageContent={en:{sections:r.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,r])=>({step:e,title:a,body:r})),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:r.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,r])=>({step:e,title:a,body:r})),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:r.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,r])=>({step:e,title:a,body:r})),stepLabel:"الخطوة",readyKicker:"جاهز للانطلاق",readyTitle:"يجب أن تشرح الصفحة الرئيسية قيمة المنصة خلال ثوانٍ.",readyBody:"استخدم السوق لجذب الطلب، ثم انقل المستأجرين إلى تجربة تحمل هوية شركتك، بحيث تبقى الأسعار والمدفوعات والثقة مرتبطة بنشاطك.",viewPricing:"عرض الأسعار",createWorkspace:"إنشاء المساحة"}}},64712,(e,a,r)=>{"use strict";var t=e.e&&e.e.__createBinding||(Object.create?function(e,a,r,t){void 0===t&&(t=r);var i=Object.getOwnPropertyDescriptor(a,r);(!i||("get"in i?!a.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return a[r]}}),Object.defineProperty(e,t,i)}:function(e,a,r,t){void 0===t&&(t=r),e[t]=a[r]}),i=e.e&&e.e.__exportStar||function(e,a){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(a,r)||t(a,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),i(e.r(78740),r),i(e.r(33556),r),i(e.r(89456),r),i(e.r(82110),r)},6239,e=>{"use strict";var a=e.i(43476);e.s(["BilingualInput",0,function({label:e,value:r,onChange:t,required:i=!1,maxLength:n}){return(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"mb-1.5 block text-sm font-medium text-slate-700",children:[e,i?(0,a.jsx)("span",{className:"ml-1 text-red-600",children:"*"}):null]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:[(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:"pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 rounded bg-blue-50 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-blue-500",children:"FR"}),(0,a.jsx)("input",{type:"text",dir:"ltr",lang:"fr",maxLength:n,placeholder:"Français…",value:r.fr,onChange:e=>t({...r,fr:e.target.value}),className:"input-field pl-11"})]}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("span",{className:"pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 rounded bg-emerald-50 px-1.5 py-0.5 text-[10px] font-bold uppercase tracking-wider text-emerald-600",children:"AR"}),(0,a.jsx)("input",{type:"text",dir:"rtl",lang:"ar",maxLength:n,placeholder:"بالعربية…",value:r.ar,onChange:e=>t({...r,ar:e.target.value}),className:"input-field pr-11 text-right"})]})]})]})},"bilingualPrimary",0,function(e){return e.fr||e.ar},"emptyBilingual",0,function(){return{fr:"",ar:""}}])},78468,e=>{"use strict";var a=e.i(43476),r=e.i(57688),t=e.i(22016),i=e.i(71645),n=e.i(18566),s=e.i(64712),l=e.i(56322),o=e.i(94327),c=e.i(87849),p=e.i(40829),d=e.i(6239);let m=["SARL","SARL AU","SA","SAS","AUTO_ENTREPRENEUR","EI","OTHER"],u=["LESS_THAN_1","ONE_TO_FIVE","MORE_THAN_5"],g="/dashboard/rentalcardrive.png";function h(e){let a=e=>e.fr.trim().length>0||e.ar.trim().length>0;return a(e.companyName)&&a(e.streetAddress)&&a(e.city)&&a(e.country)&&[e.legalName,e.legalForm,e.registrationNumber,e.iceNumber,e.taxId,e.operatingLicenseNumber,e.operatingLicenseIssuedAt,e.operatingLicenseIssuedBy,e.zipCode,e.companyPhone,e.companyEmail,e.yearsActive,e.responsibleName,e.responsibleRole,e.responsibleIdentityNumber,e.responsiblePhone,e.responsibleEmail].every(e=>e.trim().length>0)}function b({title:e,body:r}){return(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-xl font-semibold text-slate-900",children:e}),(0,a.jsx)("p",{className:"mt-2 text-sm leading-7 text-slate-500",children:r})]})}function y({title:e}){return(0,a.jsx)("h3",{className:"pt-2 text-sm font-semibold uppercase tracking-[0.16em] text-slate-500",children:e})}function x(e){return e.replace(/\s+/g,"").toLowerCase()}function f(e){return e.replace(/^\s+/,"")}function v(e){return e.replace(/^\s+/,"").toUpperCase()}function N({label:e,value:r,onChange:t,type:i="text",required:n=!1,maxLength:s}){return(0,a.jsxs)("label",{className:"block",children:[(0,a.jsxs)("span",{className:"mb-1.5 block text-sm font-medium text-slate-700",children:[e,n?(0,a.jsx)("span",{className:"ml-1 text-red-600",children:"*"}):null]}),(0,a.jsx)("input",{type:i,maxLength:s,className:"input-field",value:r,onChange:e=>t(e.target.value)})]})}function w({label:e,value:r,options:t,onChange:i,labels:n,required:s=!1}){return(0,a.jsxs)("label",{className:"block",children:[(0,a.jsxs)("span",{className:"mb-1.5 block text-sm font-medium text-slate-700",children:[e,s?(0,a.jsx)("span",{className:"ml-1 text-red-600",children:"*"}):null]}),(0,a.jsx)("select",{className:"input-field",value:r,onChange:e=>i(e.target.value),children:t.map(e=>(0,a.jsx)("option",{value:e,children:n?.[e]??e},e||"empty"))})]})}function A({onBack:e,onNext:r,loading:t=!1,nextLabel:i="Continue",backLabel:n="Back",loadingLabel:s="Working…"}){return(0,a.jsxs)("div",{className:"flex gap-3",children:[e?(0,a.jsx)("button",{type:"button",onClick:e,className:"btn-secondary flex-1 justify-center",children:n}):null,(0,a.jsx)("button",{type:"button",onClick:r,disabled:t,className:"btn-primary flex-1 justify-center disabled:cursor-not-allowed disabled:opacity-60",children:t?s:i})]})}e.s(["default",0,function(){var e,L;let{language:j,setLanguage:k}=(0,l.useDashboardI18n)(),R=(0,n.useSearchParams)(),P="GROWTH"===(e=R.get("plan"))||"PRO"===e||"STARTER"===e?e:"STARTER",C="ANNUAL"===R.get("billing")?"ANNUAL":"MONTHLY",T=(L=R.get("currency"),"MAD"),[E,S]=(0,i.useState)(1),[O,I]=(0,i.useState)(!1),[B,F]=(0,i.useState)(null),[M,_]=(0,i.useState)(null),[q,D]=(0,i.useState)({firstName:(0,d.emptyBilingual)(),lastName:(0,d.emptyBilingual)(),email:"",password:"",confirmPassword:"",preferredLanguage:"",companyName:(0,d.emptyBilingual)(),legalName:"",legalForm:"",registrationNumber:"",iceNumber:"",taxId:"",operatingLicenseNumber:"",operatingLicenseIssuedAt:"",operatingLicenseIssuedBy:"",streetAddress:(0,d.emptyBilingual)(),city:(0,d.emptyBilingual)(),country:(0,d.emptyBilingual)(),zipCode:"",companyPhone:"",companyEmail:"",fax:"",yearsActive:"",representativeName:"",representativeTitle:"",responsibleName:"",responsibleRole:"",responsibleIdentityNumber:"",responsibleQualification:"",responsiblePhone:"",responsibleEmail:"",plan:P,billingPeriod:C,currency:T,paymentProvider:"AMANPAY"}),U="ar"===j,H={en:{brand:"RentalDriveGo",pageTitle:"Launch your rental workspace",pageSubtitle:"Create the user account, complete the company information, and launch your workspace.",steps:["Account User","Company info","Plan","Verify"],ownerTitle:"Account User",ownerBody:"Create the primary user account that will manage this company workspace.",partnerTitle:"Company info",partnerBody:"Complete the company information required to create the workspace.",planTitle:"Choose your plan",planBody:"Your workspace starts immediately on a 90-day free trial in your preferred billing currency.",reviewTitle:"Review and launch",reviewBody:"We will create the company workspace immediately and start the 90-day trial with the plan you selected.",firstName:"Manager/Owner first name",lastName:"Manager/Owner last name",ownerEmail:"Manager/Owner email",emailReuseHint:"You can reuse the same email for the owner, company, and responsible person.",password:"Password",confirmPassword:"Confirm password",passwordHint:"Use at least 8 characters for your company owner account.",companyName:"Commercial name",legalName:"Legal company name",legalForm:"Legal form",registrationNumber:"Commercial Registry (RC)",iceNumber:"ICE number",taxId:"Fiscal ID (IF)",operatingLicenseNumber:"Operating license number",operatingLicenseIssuedAt:"License issue date",operatingLicenseIssuedBy:"Issuing authority",streetAddress:"Street Address",city:"City",country:"Country",zipCode:"Zip code",companyPhone:"Phone",companyEmail:"Company contact email",fax:"Fax (optional)",yearsActive:"Years active",representativeName:"Legal representative name",representativeTitle:"Legal representative title",responsibleName:"Responsible person name",responsibleRole:"Responsible person role",responsibleIdentityNumber:"Responsible person ID number",responsibleQualification:"Qualification / diploma / experience",responsiblePhone:"Responsible person phone",responsibleEmail:"Responsible person email",identitySection:"Legal identity",contactSection:"Company contact",representativeSection:"Legal representative",responsibleSection:"Responsible person",continue:"Continue",back:"Back",working:"Working…",createWorkspace:"Create workspace",workspaceReady:"Workspace ready",workspaceReadyBody:"is now active and the owner email",enterDashboard:"Enter dashboard",signInAnotherDevice:"Sign in on another device",reviewWorkspace:"Workspace",reviewPlan:"Plan",reviewOwnerEmail:"Owner email",reviewCompanyEmail:"Company email",reviewPhone:"Phone",reviewLegalName:"Legal name",reviewRegistration:"RC / ICE / IF",invalidPassword:"Choose a password with at least 8 characters.",passwordMismatch:"Passwords do not match.",missingRequired:"Fill in all required fields.",missingLanguage:"Please select your preferred language.",preferredLanguageLabel:"Preferred language",languageOptions:{en:"English",fr:"Français",ar:"العربية"},companyFallback:"Your company",couldNotCreate:"Could not create workspace",legalFormOptions:{"":"Select legal form",SARL:"SARL","SARL AU":"SARL AU",SA:"SA",SAS:"SAS",AUTO_ENTREPRENEUR:"Auto-entrepreneur",EI:"Sole proprietorship",OTHER:"Other"},yearsActiveOptions:{"":"Select years active",LESS_THAN_1:"Less than 1 year",ONE_TO_FIVE:"1 to 5 years",MORE_THAN_5:"More than 5 years"},planDescriptions:{STARTER:"Core fleet, offers, and bookings.",GROWTH:"Featured marketplace placement and more room to scale.",PRO:"Full white-label and premium controls."},billingPeriodOptions:{MONTHLY:"Monthly",ANNUAL:"Annual"},paymentProviderOptions:{AMANPAY:"AmanPay",PAYPAL:"PayPal"}},fr:{brand:"RentalDriveGo",pageTitle:"Lancez votre espace de location",pageSubtitle:"Créez le compte utilisateur, complétez les informations de lentreprise et lancez votre espace.",steps:["Compte utilisateur","Infos entreprise","Plan","Vérification"],ownerTitle:"Compte utilisateur",ownerBody:"Créez le compte utilisateur principal qui gérera cet espace entreprise.",partnerTitle:"Infos entreprise",partnerBody:"Complétez les informations de lentreprise requises pour créer lespace.",planTitle:"Choisissez votre formule",planBody:"Votre espace démarre immédiatement avec un essai gratuit de 90 jours dans la devise choisie.",reviewTitle:"Vérification et lancement",reviewBody:"Nous allons créer immédiatement lespace entreprise et démarrer lessai de 90 jours avec la formule choisie.",firstName:"Prénom du gérant/propriétaire",lastName:"Nom du gérant/propriétaire",ownerEmail:"E-mail du gérant/propriétaire",emailReuseHint:"Vous pouvez utiliser le même e-mail pour le propriétaire, lentreprise et le responsable.",password:"Mot de passe",confirmPassword:"Confirmer le mot de passe",passwordHint:"Utilisez au moins 8 caractères pour le compte propriétaire.",companyName:"Nom commercial",legalName:"Raison sociale",legalForm:"Forme juridique",registrationNumber:"Registre du commerce (RC)",iceNumber:"Numéro ICE",taxId:"Identifiant fiscal (IF)",operatingLicenseNumber:"Numéro dagrément",operatingLicenseIssuedAt:"Date de délivrance",operatingLicenseIssuedBy:"Autorité délivrante",streetAddress:"Adresse",city:"Ville",country:"Pays",zipCode:"Code postal",companyPhone:"Téléphone",companyEmail:"E-mail de contact de lentreprise",fax:"Fax (optionnel)",yearsActive:"Années dactivité",representativeName:"Nom et prénom du représentant",representativeTitle:"Fonction du représentant",responsibleName:"Nom et prénom du responsable",responsibleRole:"Qualité du responsable",responsibleIdentityNumber:"N° de pièce didentité",responsibleQualification:"Qualification / diplôme / expérience",responsiblePhone:"Téléphone du responsable",responsibleEmail:"E-mail du responsable",identitySection:"Identité juridique",contactSection:"Coordonnées de lentreprise",representativeSection:"Représentant légal",responsibleSection:"Responsable désigné",continue:"Continuer",back:"Retour",working:"Traitement…",createWorkspace:"Créer lespace",workspaceReady:"Espace prêt",workspaceReadyBody:"est maintenant actif et le-mail propriétaire",enterDashboard:"Accéder au tableau de bord",signInAnotherDevice:"Se connecter sur un autre appareil",reviewWorkspace:"Espace",reviewPlan:"Formule",reviewOwnerEmail:"E-mail propriétaire",reviewCompanyEmail:"E-mail entreprise",reviewPhone:"Téléphone",reviewLegalName:"Raison sociale",reviewRegistration:"RC / ICE / IF",invalidPassword:"Choisissez un mot de passe dau moins 8 caractères.",passwordMismatch:"Les mots de passe ne correspondent pas.",missingRequired:"Renseignez tous les champs obligatoires.",missingLanguage:"Veuillez sélectionner votre langue préférée.",preferredLanguageLabel:"Langue préférée",languageOptions:{en:"English",fr:"Français",ar:"العربية"},companyFallback:"Votre entreprise",couldNotCreate:"Impossible de créer lespace",legalFormOptions:{"":"Sélectionner la forme juridique",SARL:"SARL","SARL AU":"SARL AU",SA:"SA",SAS:"SAS",AUTO_ENTREPRENEUR:"Auto-entrepreneur",EI:"Entreprise individuelle",OTHER:"Autre"},yearsActiveOptions:{"":"Sélectionner les années dactivité",LESS_THAN_1:"Moins de 1 an",ONE_TO_FIVE:"1 an à 5 ans",MORE_THAN_5:"Plus de 5 ans"},planDescriptions:{STARTER:"Flotte, offres et réservations essentielles.",GROWTH:"Mise en avant marketplace et plus de marge pour évoluer.",PRO:"White-label complet et contrôles premium."},billingPeriodOptions:{MONTHLY:"Mensuel",ANNUAL:"Annuel"},paymentProviderOptions:{AMANPAY:"AmanPay",PAYPAL:"PayPal"}},ar:{brand:"RentalDriveGo",pageTitle:"أطلق مساحة التأجير الخاصة بك",pageSubtitle:"أنشئ حساب المستخدم، وأكمل معلومات الشركة، ثم أطلق مساحة العمل.",steps:["حساب المستخدم","معلومات الشركة","الخطة","المراجعة"],ownerTitle:"حساب المستخدم",ownerBody:"أنشئ حساب المستخدم الرئيسي الذي سيدير مساحة عمل الشركة.",partnerTitle:"معلومات الشركة",partnerBody:"أكمل معلومات الشركة المطلوبة لإنشاء مساحة العمل.",planTitle:"اختر خطتك",planBody:"تبدأ المساحة فوراً بفترة تجريبية مجانية لمدة 14 يوماً بالعملة التي تفضلها.",reviewTitle:"راجع وأطلق",reviewBody:"سننشئ مساحة الشركة فوراً ونبدأ الفترة التجريبية لمدة 14 يوماً بالخطة التي اخترتها.",firstName:"الاسم الأول للمدير/المالك",lastName:"اسم العائلة للمدير/المالك",ownerEmail:"بريد المدير/المالك الإلكتروني",emailReuseHint:"يمكنك استخدام نفس البريد الإلكتروني للمالك والشركة والمسؤول.",password:"كلمة المرور",confirmPassword:"تأكيد كلمة المرور",passwordHint:"استخدم 8 أحرف على الأقل لحساب مالك الشركة.",companyName:"الاسم التجاري",legalName:"الاسم القانوني للشركة",legalForm:"الشكل القانوني",registrationNumber:"السجل التجاري (RC)",iceNumber:"رقم ICE",taxId:"المعرف الضريبي (IF)",operatingLicenseNumber:"رقم الترخيص",operatingLicenseIssuedAt:"تاريخ إصدار الترخيص",operatingLicenseIssuedBy:"الجهة المانحة",streetAddress:"عنوان الشارع",city:"المدينة",country:"الدولة",zipCode:"الرمز البريدي",companyPhone:"الهاتف",companyEmail:"بريد الشركة للتواصل",fax:"الفاكس (اختياري)",yearsActive:"سنوات النشاط",representativeName:"اسم الممثل القانوني",representativeTitle:"صفة الممثل القانوني",responsibleName:"اسم المسؤول",responsibleRole:"صفة المسؤول",responsibleIdentityNumber:"رقم وثيقة الهوية",responsibleQualification:"المؤهل / الشهادة / الخبرة",responsiblePhone:"هاتف المسؤول",responsibleEmail:"بريد المسؤول الإلكتروني",identitySection:"الهوية القانونية",contactSection:"بيانات الشركة",representativeSection:"الممثل القانوني",responsibleSection:"الشخص المسؤول",continue:"متابعة",back:"رجوع",working:"جارٍ التنفيذ…",createWorkspace:"إنشاء المساحة",workspaceReady:"المساحة جاهزة",workspaceReadyBody:"أصبحت الآن نشطة وتم تسجيل بريد المالك",enterDashboard:"الدخول إلى لوحة التحكم",signInAnotherDevice:"تسجيل الدخول على جهاز آخر",reviewWorkspace:"المساحة",reviewPlan:"الخطة",reviewOwnerEmail:"بريد المالك",reviewCompanyEmail:"بريد الشركة",reviewPhone:"الهاتف",reviewLegalName:"الاسم القانوني",reviewRegistration:"RC / ICE / IF",invalidPassword:"اختر كلمة مرور من 8 أحرف على الأقل.",passwordMismatch:"كلمتا المرور غير متطابقتين.",missingRequired:"أكمل جميع الحقول الإلزامية.",missingLanguage:"يرجى اختيار اللغة المفضلة.",preferredLanguageLabel:"اللغة المفضلة",languageOptions:{en:"English",fr:"Français",ar:"العربية"},companyFallback:"شركتك",couldNotCreate:"تعذر إنشاء المساحة",legalFormOptions:{"":"اختر الشكل القانوني",SARL:"شركة ذات مسؤولية محدودة","SARL AU":"شركة ذات مسؤولية محدودة لشخص واحد",SA:"شركة مساهمة",SAS:"شركة مساهمة مبسطة",AUTO_ENTREPRENEUR:"مقاول ذاتي",EI:"مؤسسة فردية",OTHER:"أخرى"},yearsActiveOptions:{"":"اختر سنوات النشاط",LESS_THAN_1:"أقل من سنة",ONE_TO_FIVE:"من سنة إلى 5 سنوات",MORE_THAN_5:"أكثر من 5 سنوات"},planDescriptions:{STARTER:"الأساسيات للأسطول والعروض والحجوزات.",GROWTH:"ظهور مميز في السوق ومساحة أكبر للنمو.",PRO:"تحكم كامل وواجهة بيضاء متقدمة."},billingPeriodOptions:{MONTHLY:"شهري",ANNUAL:"سنوي"},paymentProviderOptions:{AMANPAY:"AmanPay",PAYPAL:"PayPal"}}}[j];async function z(){var e,a,r,t;if(q.password.length<8)return void F(H.invalidPassword);if(q.password!==q.confirmPassword)return void F(H.passwordMismatch);if(!h(q))return void F(H.missingRequired);I(!0),F(null);try{let r=await (0,o.apiFetch)("/auth/company/signup",{method:"POST",body:JSON.stringify({firstName:q.firstName.fr||q.firstName.ar,firstNameAr:q.firstName.ar||void 0,lastName:q.lastName.fr||q.lastName.ar,lastNameAr:q.lastName.ar||void 0,email:q.email,password:q.password,preferredLanguage:q.preferredLanguage||"en",companyName:q.companyName.fr||q.companyName.ar,legalName:q.legalName,companyNameAr:q.companyName.ar||void 0,legalForm:q.legalForm,registrationNumber:q.registrationNumber,iceNumber:q.iceNumber,taxId:q.taxId,operatingLicenseNumber:q.operatingLicenseNumber,operatingLicenseIssuedAt:q.operatingLicenseIssuedAt,operatingLicenseIssuedBy:q.operatingLicenseIssuedBy,streetAddress:q.streetAddress.fr||q.streetAddress.ar,streetAddressAr:q.streetAddress.ar||void 0,city:q.city.fr||q.city.ar,cityAr:q.city.ar||void 0,country:q.country.fr||q.country.ar,countryAr:q.country.ar||void 0,zipCode:q.zipCode,companyPhone:q.companyPhone,companyEmail:q.companyEmail,fax:q.fax||void 0,yearsActive:q.yearsActive,representativeName:q.representativeName||void 0,representativeTitle:q.representativeTitle||void 0,responsibleName:q.responsibleName,responsibleRole:q.responsibleRole,responsibleIdentityNumber:q.responsibleIdentityNumber,responsibleQualification:q.responsibleQualification||void 0,responsiblePhone:q.responsiblePhone,responsibleEmail:q.responsibleEmail,plan:q.plan,billingPeriod:q.billingPeriod,currency:q.currency,paymentProvider:q.paymentProvider})});_({companyName:q.companyName.fr||q.companyName.ar,email:q.email,emailWarning:(e=r.emailDelivery,a=j,!e||e.success?null:e.attempted?"fr"===a?`Le compte a \xe9t\xe9 cr\xe9\xe9, mais le-mail de confirmation na pas pu \xeatre envoy\xe9${e.error?` : ${e.error}`:"."}`:"ar"===a?`تم إنشاء الحساب، لكن تعذر إرسال رسالة التأكيد${e.error?`: ${e.error}`:"."}`:`The account was created, but the confirmation email could not be delivered${e.error?`: ${e.error}`:"."}`:"fr"===a?"Le compte a été créé, mais lenvoi de-mails nest pas encore configuré sur cet environnement.":"ar"===a?"تم إنشاء الحساب، لكن إرسال البريد الإلكتروني غير مهيأ بعد في هذه البيئة.":"The account was created, but email sending is not configured on this environment yet.")})}catch(e){F((r=e,t=H.couldNotCreate,r instanceof Error&&r.message?r.message:t))}finally{I(!1)}}return M?(0,a.jsx)(c.default,{children:(0,a.jsx)("main",{className:"flex-1 px-4 py-16",children:(0,a.jsxs)("div",{className:"mx-auto max-w-2xl rounded-[2rem] border border-slate-200 bg-white p-10 shadow-sm",children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("a",{href:p.marketplaceUrl,target:"_top",children:(0,a.jsx)(r.default,{src:g,alt:"RentalDriveGo",width:104,height:104,priority:!0,className:"h-24 w-24 rounded-[1.75rem] border border-blue-100 bg-white p-1.5 shadow-sm transition-colors dark:border-slate-700 dark:bg-blue-950"})})}),(0,a.jsx)("a",{href:p.marketplaceUrl,className:"mt-4 inline-block text-xs font-semibold uppercase tracking-[0.24em] text-blue-600",children:H.brand}),(0,a.jsx)("h1",{className:"mt-4 text-4xl font-black tracking-tight text-slate-900",children:H.workspaceReady}),(0,a.jsxs)("p",{className:"mt-4 text-base leading-7 text-slate-600",children:[(0,a.jsx)("span",{className:"font-semibold text-slate-900",children:M.companyName})," ",H.workspaceReadyBody,(0,a.jsxs)("span",{className:"font-semibold text-slate-900",children:[" ",M.email]}),"."]}),M.emailWarning?(0,a.jsx)("div",{className:"mt-6 rounded-2xl border border-orange-200 bg-orange-50 px-4 py-3 text-sm text-orange-800",children:M.emailWarning}):null,(0,a.jsxs)("div",{className:"mt-8 flex flex-col gap-3 sm:flex-row",children:[(0,a.jsx)(t.default,{href:"/",className:"btn-primary justify-center",children:H.enterDashboard}),(0,a.jsx)("a",{href:"/sign-in",className:"btn-secondary justify-center",children:H.signInAnotherDevice})]})]})})}):(0,a.jsx)(c.default,{children:(0,a.jsx)("main",{className:"px-4 py-12",children:(0,a.jsxs)("div",{className:"mx-auto max-w-4xl space-y-8",children:[(0,a.jsxs)("div",{className:`text-center ${U?"rtl":""}`,children:[(0,a.jsx)("div",{className:"flex justify-center",children:(0,a.jsx)("a",{href:p.marketplaceUrl,target:"_top",children:(0,a.jsx)(r.default,{src:g,alt:"RentalDriveGo",width:104,height:104,priority:!0,className:"h-24 w-24 rounded-[1.75rem] border border-blue-100 bg-white p-1.5 shadow-sm transition-colors dark:border-slate-700 dark:bg-blue-950"})})}),(0,a.jsx)("a",{href:p.marketplaceUrl,className:"mt-4 inline-block text-xs font-semibold uppercase tracking-[0.24em] text-blue-600",children:H.brand}),(0,a.jsx)("h1",{className:"mt-3 text-5xl font-black tracking-tight text-slate-900",children:H.pageTitle}),(0,a.jsx)("p",{className:"mt-4 text-base leading-7 text-slate-600",children:H.pageSubtitle})]}),(0,a.jsx)("div",{className:"grid gap-3 sm:grid-cols-4",children:H.steps.map((e,r)=>(0,a.jsx)("div",{className:`rounded-full px-4 py-2 text-center text-sm font-semibold ${r+1<=E?"bg-blue-900 text-white":"border border-slate-200 bg-white text-slate-500"}`,children:e},e))}),(0,a.jsxs)("div",{className:"rounded-[2rem] border border-slate-200 bg-white p-8 shadow-sm",children:[B?(0,a.jsx)("div",{className:"mb-6 rounded-2xl border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700",children:B}):null,1===E?(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)(b,{title:H.ownerTitle,body:H.ownerBody}),(0,a.jsx)(d.BilingualInput,{label:H.firstName,required:!0,maxLength:80,value:q.firstName,onChange:e=>D(a=>({...a,firstName:e}))}),(0,a.jsx)(d.BilingualInput,{label:H.lastName,required:!0,maxLength:80,value:q.lastName,onChange:e=>D(a=>({...a,lastName:e}))}),(0,a.jsx)(N,{label:H.ownerEmail,required:!0,type:"email",maxLength:254,value:q.email,onChange:e=>D(a=>({...a,email:x(e)}))}),(0,a.jsx)("p",{className:"text-xs text-slate-500",children:H.emailReuseHint}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.password,required:!0,type:"password",maxLength:128,value:q.password,onChange:e=>D(a=>({...a,password:e}))}),(0,a.jsx)(N,{label:H.confirmPassword,required:!0,type:"password",maxLength:128,value:q.confirmPassword,onChange:e=>D(a=>({...a,confirmPassword:e}))})]}),(0,a.jsx)("p",{className:"text-xs text-slate-500",children:H.passwordHint}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:"mb-1.5 block text-sm font-medium text-slate-700",children:[H.preferredLanguageLabel," ",(0,a.jsx)("span",{className:"text-red-600",children:"*"})]}),(0,a.jsx)("div",{className:"grid grid-cols-3 gap-2",children:["en","fr","ar"].map(e=>(0,a.jsx)("button",{type:"button",onClick:()=>{D(a=>({...a,preferredLanguage:e})),k(e)},className:`rounded-2xl border py-3 text-sm font-semibold transition ${q.preferredLanguage===e?"border-blue-900 bg-blue-900 text-white":"border-slate-200 bg-white text-slate-600 hover:border-slate-300 hover:bg-slate-50"}`,children:H.languageOptions[e]},e))})]}),(0,a.jsx)("div",{className:"flex justify-end",children:(0,a.jsx)("button",{type:"button",onClick:function(){if(!q.preferredLanguage)return void F(H.missingLanguage);let e=x(q.email);D(a=>({...a,companyEmail:a.companyEmail||e,responsibleEmail:a.responsibleEmail||e})),F(null),S(2)},className:"btn-primary",children:H.continue})})]}):null,2===E?(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)(b,{title:H.partnerTitle,body:H.partnerBody}),(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)(y,{title:H.identitySection}),(0,a.jsx)(d.BilingualInput,{label:H.companyName,required:!0,maxLength:120,value:q.companyName,onChange:e=>D(a=>({...a,companyName:e}))}),(0,a.jsx)(N,{label:H.legalName,required:!0,maxLength:160,value:q.legalName,onChange:e=>D(a=>({...a,legalName:f(e)}))}),(0,a.jsx)(w,{label:H.legalForm,required:!0,value:q.legalForm,options:["",...m],labels:H.legalFormOptions,onChange:e=>D(a=>({...a,legalForm:e}))}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.registrationNumber,required:!0,maxLength:120,value:q.registrationNumber,onChange:e=>D(a=>({...a,registrationNumber:v(e)}))}),(0,a.jsx)(N,{label:H.iceNumber,required:!0,maxLength:120,value:q.iceNumber,onChange:e=>D(a=>({...a,iceNumber:v(e)}))})]}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.taxId,required:!0,maxLength:120,value:q.taxId,onChange:e=>D(a=>({...a,taxId:v(e)}))}),(0,a.jsx)(N,{label:H.operatingLicenseNumber,required:!0,maxLength:120,value:q.operatingLicenseNumber,onChange:e=>D(a=>({...a,operatingLicenseNumber:v(e)}))})]}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.operatingLicenseIssuedAt,required:!0,type:"date",value:q.operatingLicenseIssuedAt,onChange:e=>D(a=>({...a,operatingLicenseIssuedAt:e}))}),(0,a.jsx)(N,{label:H.operatingLicenseIssuedBy,required:!0,maxLength:160,value:q.operatingLicenseIssuedBy,onChange:e=>D(a=>({...a,operatingLicenseIssuedBy:f(e)}))})]}),(0,a.jsx)(y,{title:H.contactSection}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.companyPhone,required:!0,maxLength:80,value:q.companyPhone,onChange:e=>D(a=>({...a,companyPhone:e}))}),(0,a.jsx)(N,{label:H.companyEmail,required:!0,type:"email",maxLength:254,value:q.companyEmail,onChange:e=>D(a=>({...a,companyEmail:x(e)}))})]}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.fax,maxLength:80,value:q.fax,onChange:e=>D(a=>({...a,fax:e}))}),(0,a.jsx)(w,{label:H.yearsActive,required:!0,value:q.yearsActive,options:["",...u],labels:H.yearsActiveOptions,onChange:e=>D(a=>({...a,yearsActive:e}))})]}),(0,a.jsx)(d.BilingualInput,{label:H.streetAddress,required:!0,maxLength:200,value:q.streetAddress,onChange:e=>D(a=>({...a,streetAddress:e}))}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(d.BilingualInput,{label:H.city,required:!0,maxLength:120,value:q.city,onChange:e=>D(a=>({...a,city:e}))}),(0,a.jsx)(d.BilingualInput,{label:H.country,required:!0,maxLength:120,value:q.country,onChange:e=>D(a=>({...a,country:e}))})]}),(0,a.jsx)(N,{label:H.zipCode,required:!0,maxLength:40,value:q.zipCode,onChange:e=>D(a=>({...a,zipCode:e.toUpperCase()}))}),(0,a.jsx)(y,{title:H.representativeSection}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.representativeName,maxLength:160,value:q.representativeName,onChange:e=>D(a=>({...a,representativeName:f(e)}))}),(0,a.jsx)(N,{label:H.representativeTitle,maxLength:120,value:q.representativeTitle,onChange:e=>D(a=>({...a,representativeTitle:f(e)}))})]}),(0,a.jsx)(y,{title:H.responsibleSection}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.responsibleName,required:!0,maxLength:160,value:q.responsibleName,onChange:e=>D(a=>({...a,responsibleName:f(e)}))}),(0,a.jsx)(N,{label:H.responsibleRole,required:!0,maxLength:120,value:q.responsibleRole,onChange:e=>D(a=>({...a,responsibleRole:f(e)}))})]}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.responsibleIdentityNumber,required:!0,maxLength:120,value:q.responsibleIdentityNumber,onChange:e=>D(a=>({...a,responsibleIdentityNumber:v(e)}))}),(0,a.jsx)(N,{label:H.responsibleQualification,maxLength:200,value:q.responsibleQualification,onChange:e=>D(a=>({...a,responsibleQualification:f(e)}))})]}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(N,{label:H.responsiblePhone,required:!0,maxLength:80,value:q.responsiblePhone,onChange:e=>D(a=>({...a,responsiblePhone:e}))}),(0,a.jsx)(N,{label:H.responsibleEmail,required:!0,type:"email",maxLength:254,value:q.responsibleEmail,onChange:e=>D(a=>({...a,responsibleEmail:x(e)}))})]})]}),(0,a.jsx)(A,{onBack:()=>S(1),onNext:function(){h(q)?(F(null),S(3)):F(H.missingRequired)},nextLabel:H.continue,backLabel:H.back,loadingLabel:H.working})]}):null,3===E?(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)(b,{title:H.planTitle,body:H.planBody}),(0,a.jsx)("div",{className:"grid gap-4 sm:grid-cols-3",children:["STARTER","GROWTH","PRO"].map(e=>(0,a.jsxs)("button",{type:"button",onClick:()=>D(a=>({...a,plan:e})),className:`rounded-3xl border p-5 text-left ${q.plan===e?"border-blue-900 bg-blue-900 text-white":"border-slate-200 bg-white text-slate-900"}`,children:[(0,a.jsx)("p",{className:"text-xs font-semibold uppercase tracking-[0.16em]",children:e}),(0,a.jsx)("p",{className:"mt-3 text-sm opacity-80",children:H.planDescriptions[e]})]},e))}),(0,a.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2",children:[(0,a.jsx)(w,{label:"fr"===j?"Période de facturation":"ar"===j?"فترة الفوترة":"Billing period",value:q.billingPeriod,options:["MONTHLY","ANNUAL"],labels:H.billingPeriodOptions,onChange:e=>D(a=>({...a,billingPeriod:e}))}),(0,a.jsx)(w,{label:"fr"===j?"Prestataire principal":"ar"===j?"مزود الدفع الرئيسي":"Primary provider",value:q.paymentProvider,options:["AMANPAY","PAYPAL"],labels:H.paymentProviderOptions,onChange:e=>D(a=>({...a,paymentProvider:e}))})]}),(0,a.jsx)(A,{onBack:()=>S(2),onNext:()=>S(4),nextLabel:H.continue,backLabel:H.back,loadingLabel:H.working})]}):null,4===E?(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsx)(b,{title:H.reviewTitle,body:H.reviewBody}),(0,a.jsxs)("div",{className:"rounded-3xl border border-slate-200 bg-slate-50 p-5 text-sm text-slate-600",children:[(0,a.jsxs)("p",{children:[(0,a.jsxs)("span",{className:"font-semibold text-slate-900",children:[H.reviewWorkspace,":"]})," ",q.companyName.fr||q.companyName.ar||H.companyFallback,q.companyName.fr&&q.companyName.ar?(0,a.jsxs)("span",{className:"ml-2 text-slate-400",children:["/ ",q.companyName.ar]}):null]}),(0,a.jsxs)("p",{className:"mt-2",children:[(0,a.jsxs)("span",{className:"font-semibold text-slate-900",children:[H.reviewLegalName,":"]})," ",q.legalName||"—"]}),(0,a.jsxs)("p",{className:"mt-2",children:[(0,a.jsxs)("span",{className:"font-semibold text-slate-900",children:[H.reviewPlan,":"]})," ",q.plan," · ",H.billingPeriodOptions[q.billingPeriod]," · ",(0,s.getCurrencyLabel)(j)]}),(0,a.jsxs)("p",{className:"mt-2",children:[(0,a.jsxs)("span",{className:"font-semibold text-slate-900",children:[H.reviewOwnerEmail,":"]})," ",q.email||"—"]}),(0,a.jsxs)("p",{className:"mt-2",children:[(0,a.jsxs)("span",{className:"font-semibold text-slate-900",children:[H.reviewCompanyEmail,":"]})," ",q.companyEmail||"—"]}),(0,a.jsxs)("p",{className:"mt-2",children:[(0,a.jsxs)("span",{className:"font-semibold text-slate-900",children:[H.reviewPhone,":"]})," ",q.companyPhone||"—"]}),(0,a.jsxs)("p",{className:"mt-2",children:[(0,a.jsxs)("span",{className:"font-semibold text-slate-900",children:[H.reviewRegistration,":"]})," ",q.registrationNumber||"—"," / ",q.iceNumber||"—"," / ",q.taxId||"—"]})]}),(0,a.jsx)(A,{onBack:()=>S(3),onNext:z,loading:O,nextLabel:H.createWorkspace,backLabel:H.back,loadingLabel:H.working})]}):null]})]})})})}])}]);