@atlashub/smartstack 2.9.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/router/smartstackRoutes.d.ts +18 -0
- package/dist/router/smartstackRoutes.d.ts.map +1 -1
- package/dist/smartstack.cjs +3 -3
- package/dist/smartstack.cjs.map +1 -1
- package/dist/smartstack.js +2216 -2188
- package/dist/smartstack.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/smartstack.cjs
CHANGED
|
@@ -498,11 +498,11 @@ Votre demande necessite une expertise supplementaire...`,active:!1,order:4}],jl=
|
|
|
498
498
|
}
|
|
499
499
|
},
|
|
500
500
|
"required": ["sentiment", "confidence"]
|
|
501
|
-
}`})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("ai.sections.reference.dashboard.title")}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-4",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-[var(--bg-secondary)] text-center",children:[e.jsx("div",{className:"text-2xl font-bold",children:"4"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.providersActive")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-purple-500/10 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-purple-600",children:"12"}),e.jsx("div",{className:"text-sm text-purple-600",children:s("ai.sections.reference.dashboard.instances")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-green-500/10 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-green-600",children:"$1,250"}),e.jsx("div",{className:"text-sm text-green-600",children:s("ai.sections.reference.dashboard.monthlyBudget")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-blue-500/10 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-blue-600",children:"$485.75"}),e.jsx("div",{className:"text-sm text-blue-600",children:s("ai.sections.reference.dashboard.usedThisMonth")})]})]}),e.jsx("h4",{className:"font-medium mb-3",children:s("ai.sections.reference.dashboard.metricsTitle")}),e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.dashboard.metric")}),e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.dashboard.metricDescription")}),e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.dashboard.metricCalculation")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2 font-medium",children:s("ai.sections.reference.dashboard.tokensUsed")}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.tokensUsedDesc")}),e.jsx("td",{className:"py-2 text-[var(--text-tertiary)]",children:s("ai.sections.reference.dashboard.tokensUsedCalc")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2 font-medium",children:s("ai.sections.reference.dashboard.estimatedCost")}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.estimatedCostDesc")}),e.jsx("td",{className:"py-2 text-[var(--text-tertiary)]",children:s("ai.sections.reference.dashboard.estimatedCostCalc")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2 font-medium",children:s("ai.sections.reference.dashboard.requestsPerDay")}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.requestsPerDayDesc")}),e.jsx("td",{className:"py-2 text-[var(--text-tertiary)]",children:s("ai.sections.reference.dashboard.requestsPerDayCalc")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 font-medium",children:s("ai.sections.reference.dashboard.errorRate")}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.errorRateDesc")}),e.jsx("td",{className:"py-2 text-[var(--text-tertiary)]",children:s("ai.sections.reference.dashboard.errorRateCalc")})]})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("ai.sections.reference.routes.title")}),e.jsxs("div",{className:"text-sm space-y-1 font-mono bg-[var(--bg-secondary)] p-3 rounded-lg mb-4",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Dashboard:"})," /platform/administration/ai"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Prompts:"})," /platform/administration/ai/prompts"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Prompt Detail:"})," /platform/administration/ai/prompts/:id"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Block Definitions:"})," /platform/administration/ai/prompts/blocks"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Output Schemas:"})," /platform/administration/ai/schemas"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Settings:"})," /platform/administration/ai/settings"]})]}),e.jsx("h4",{className:"font-medium mb-3",children:s("ai.sections.reference.permissions.title")}),e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.permissions.permission")}),e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.permissions.description")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.read"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.read")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.prompts.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.prompts")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.blocks.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.blocks")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.schemas.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.schemas")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.settings.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.settings")})]})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("ai.sections.reference.api.title")}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm font-mono",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.api.method")}),e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.api.endpoint")}),e.jsx("th",{className:"text-left py-2 font-sans",children:s("ai.sections.reference.api.description")})]})}),e.jsxs("tbody",{className:"text-xs",children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/dashboard"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getDashboard")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/prompts"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getPrompts")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/ai/prompts/","{id}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getPromptById")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-yellow-500/10 text-yellow-600",children:"POST"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/prompts"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.createPrompt")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-blue-500/10 text-blue-600",children:"PUT"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/ai/prompts/","{id}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.updatePrompt")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/prompts/block-definitions"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getBlockDefs")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/ai/prompts/block-definitions/","{id}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getBlockDefById")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/schemas"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getSchemas")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/settings/instances"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getInstances")})]})]})]})})]})]}),e.jsxs("div",{className:"flex justify-between pt-6 border-t border-[var(--border-color)]",children:[e.jsxs(W.Link,{to:"/system/docs/user",className:"flex items-center gap-2 text-[var(--text-secondary)] hover:text-[var(--color-primary-600)]",children:[e.jsx(r.ArrowRight,{className:"w-4 h-4 rotate-180"}),s("ai.nav.back")]}),e.jsxs(W.Link,{to:"/system/docs/user/modules",className:"flex items-center gap-2 text-[var(--color-primary-600)] hover:underline",children:[s("ai.nav.next"),e.jsx(r.ArrowRight,{className:"w-4 h-4"})]})]})]})}function Rg(){const{t:s}=ae.useTranslation("docs");return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(W.Link,{to:"/system/docs",className:"hover:text-[var(--color-primary-600)]",children:s("breadcrumb.documentation")}),e.jsx("span",{children:"/"}),e.jsx(W.Link,{to:"/system/docs/user",className:"hover:text-[var(--color-primary-600)]",children:s("breadcrumb.user")}),e.jsx("span",{children:"/"}),e.jsx("span",{children:s("settings.title")})]}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl font-bold mb-4 flex items-center gap-3",children:[e.jsx(r.Settings,{className:"w-8 h-8 text-[var(--color-primary-600)]"}),s("settings.title")]}),e.jsx("p",{className:"text-xl text-[var(--color-primary-600)] font-medium mb-2",children:s("settings.valueProposition")}),e.jsx("p",{className:"text-lg text-[var(--text-secondary)]",children:s("settings.subtitle")}),e.jsxs("div",{className:"mt-4 flex items-center gap-2",children:[e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-blue-500/10 text-blue-600 border border-blue-500/20",children:"Platform"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-purple-500/10 text-purple-600 border border-purple-500/20",children:"Administration"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-amber-500/10 text-amber-600 border border-amber-500/20",children:"Settings"})]})]}),e.jsxs("div",{className:"card p-4 bg-[var(--bg-secondary)]",children:[e.jsx("h3",{className:"font-semibold mb-3",children:s("settings.toc.title")}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 text-sm",children:[e.jsxs("a",{href:"#valeur",className:"text-[var(--color-primary-600)] hover:underline",children:["1. ",s("settings.toc.value")]}),e.jsxs("a",{href:"#cas-usage",className:"text-[var(--color-primary-600)] hover:underline",children:["2. ",s("settings.toc.useCases")]}),e.jsxs("a",{href:"#benefices",className:"text-[var(--color-primary-600)] hover:underline",children:["3. ",s("settings.toc.benefits")]}),e.jsxs("a",{href:"#avant-apres",className:"text-[var(--color-primary-600)] hover:underline",children:["4. ",s("settings.toc.beforeAfter")]}),e.jsxs("a",{href:"#fonctionnalites",className:"text-[var(--color-primary-600)] hover:underline",children:["5. ",s("settings.toc.features")]}),e.jsxs("a",{href:"#guide",className:"text-[var(--color-primary-600)] hover:underline",children:["6. ",s("settings.toc.guide")]}),e.jsxs("a",{href:"#faq",className:"text-[var(--color-primary-600)] hover:underline",children:["7. ",s("settings.toc.faq")]}),e.jsxs("a",{href:"#reference",className:"text-[var(--color-primary-600)] hover:underline",children:["8. ",s("settings.toc.reference")]})]})]}),e.jsxs("section",{id:"valeur",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"1"}),s("settings.sections.value.title")]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsxs("h3",{className:"font-semibold mb-3 flex items-center gap-2",children:[e.jsx(r.Target,{className:"w-5 h-5 text-red-500"}),s("settings.sections.value.problemTitle")]}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s("settings.sections.value.problem")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-green-500/10 border border-green-500/20",children:[e.jsxs("h3",{className:"font-semibold mb-2 flex items-center gap-2 text-green-700 dark:text-green-400",children:[e.jsx(r.Lightbulb,{className:"w-5 h-5"}),s("settings.sections.value.solutionTitle")]}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s("settings.sections.value.solution")})]})]})]}),e.jsxs("section",{id:"cas-usage",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"2"}),s("settings.sections.useCases.title")]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-blue-500/10 flex items-center justify-center",children:e.jsx(r.Settings,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s("settings.sections.useCases.case1.persona")}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.useCases.case1.role")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:s("settings.sections.useCases.situationLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case1.situation")})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-green-600",children:s("settings.sections.useCases.withFeatureLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case1.withFeature")})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-purple-500/10 flex items-center justify-center",children:e.jsx(r.Shield,{className:"w-6 h-6 text-purple-600"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s("settings.sections.useCases.case2.persona")}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.useCases.case2.role")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:s("settings.sections.useCases.situationLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case2.situation")})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-green-600",children:s("settings.sections.useCases.withFeatureLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case2.withFeature")})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-green-500/10 flex items-center justify-center",children:e.jsx(r.FileText,{className:"w-6 h-6 text-green-600"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s("settings.sections.useCases.case3.persona")}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.useCases.case3.role")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:s("settings.sections.useCases.situationLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case3.situation")})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-green-600",children:s("settings.sections.useCases.withFeatureLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case3.withFeature")})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-500/10 flex items-center justify-center",children:e.jsx(r.History,{className:"w-6 h-6 text-amber-600"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s("settings.sections.useCases.case4.persona")}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.useCases.case4.role")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:s("settings.sections.useCases.situationLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case4.situation")})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-green-600",children:s("settings.sections.useCases.withFeatureLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case4.withFeature")})]})]})]})]})]}),e.jsxs("section",{id:"benefices",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"3"}),s("settings.sections.benefits.title")]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"card p-6 text-center",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-blue-500/10 flex items-center justify-center",children:e.jsx(r.Clock,{className:"w-8 h-8 text-blue-600"})}),e.jsx("div",{className:"text-3xl font-bold text-blue-600 mb-2",children:s("settings.sections.benefits.time.value")}),e.jsx("div",{className:"font-semibold mb-1",children:s("settings.sections.benefits.time.label")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.benefits.time.description")})]}),e.jsxs("div",{className:"card p-6 text-center",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-green-500/10 flex items-center justify-center",children:e.jsx(r.Shield,{className:"w-8 h-8 text-green-600"})}),e.jsx("div",{className:"text-3xl font-bold text-green-600 mb-2",children:s("settings.sections.benefits.compliance.value")}),e.jsx("div",{className:"font-semibold mb-1",children:s("settings.sections.benefits.compliance.label")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.benefits.compliance.description")})]}),e.jsxs("div",{className:"card p-6 text-center",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-amber-500/10 flex items-center justify-center",children:e.jsx(r.History,{className:"w-8 h-8 text-amber-600"})}),e.jsx("div",{className:"text-3xl font-bold text-amber-600 mb-2",children:s("settings.sections.benefits.audit.value")}),e.jsx("div",{className:"font-semibold mb-1",children:s("settings.sections.benefits.audit.label")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.benefits.audit.description")})]})]})]}),e.jsxs("section",{id:"avant-apres",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"4"}),s("settings.sections.beforeAfter.title")]}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-red-500/5 border border-red-500/20",children:[e.jsxs("h3",{className:"font-semibold mb-4 flex items-center gap-2 text-red-600",children:[e.jsx(r.XCircle,{className:"w-5 h-5"}),s("settings.sections.beforeAfter.beforeTitle")]}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.XCircle,{className:"w-4 h-4 text-red-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.before.1")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.XCircle,{className:"w-4 h-4 text-red-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.before.2")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.XCircle,{className:"w-4 h-4 text-red-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.before.3")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.XCircle,{className:"w-4 h-4 text-red-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.before.4")})]})]})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-green-500/5 border border-green-500/20",children:[e.jsxs("h3",{className:"font-semibold mb-4 flex items-center gap-2 text-green-600",children:[e.jsx(r.CheckCircle,{className:"w-5 h-5"}),s("settings.sections.beforeAfter.afterTitle")]}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.after.1")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.after.2")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.after.3")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.after.4")})]})]})]})]})})]}),e.jsxs("section",{id:"fonctionnalites",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"5"}),s("settings.sections.features.title")]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-blue-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Settings,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("settings.sections.features.general.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("settings.sections.features.general.description")}),e.jsxs("div",{className:"p-3 rounded-lg bg-[var(--bg-secondary)] text-sm",children:[e.jsxs("span",{className:"font-medium text-[var(--color-primary-600)]",children:[s("settings.sections.features.exampleLabel")," "]}),s("settings.sections.features.general.example")]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-green-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Upload,{className:"w-6 h-6 text-green-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("settings.sections.features.fileUpload.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("settings.sections.features.fileUpload.description")}),e.jsxs("div",{className:"p-3 rounded-lg bg-[var(--bg-secondary)] text-sm",children:[e.jsxs("span",{className:"font-medium text-[var(--color-primary-600)]",children:[s("settings.sections.features.exampleLabel")," "]}),s("settings.sections.features.fileUpload.example")]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.FileText,{className:"w-6 h-6 text-amber-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("settings.sections.features.legalFile.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("settings.sections.features.legalFile.description")}),e.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-sm",children:[e.jsxs("span",{className:"font-medium text-amber-600",children:[s("settings.sections.features.legalWarning")," "]}),s("settings.sections.features.legalFile.warning")]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-purple-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Database,{className:"w-6 h-6 text-purple-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("settings.sections.features.storageInfo.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("settings.sections.features.storageInfo.description")}),e.jsxs("div",{className:"flex flex-wrap gap-2 mt-3",children:[e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-purple-500/10 text-purple-600 border border-purple-500/20",children:"AppSettings"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-green-500/10 text-green-600 border border-green-500/20",children:"Computed"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-orange-500/10 text-orange-600 border border-orange-500/20",children:"Environment"})]})]})]})})]})]}),e.jsxs("section",{id:"guide",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"6"}),s("settings.sections.guide.title")]}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"1"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("settings.sections.guide.step1.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mb-3",children:s("settings.sections.guide.step1.description")}),e.jsxs("div",{className:"flex items-center gap-2 p-3 bg-[var(--bg-secondary)] rounded-lg font-mono text-sm",children:[e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Platform"}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Administration"}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-[var(--color-primary-600)] font-semibold",children:"Settings"})]})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"2"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("settings.sections.guide.step2.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.guide.step2.description")})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"3"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("settings.sections.guide.step3.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.guide.step3.description")})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex flex-col items-center",children:e.jsx("div",{className:"w-10 h-10 rounded-full bg-green-500 text-white flex items-center justify-center font-bold",children:e.jsx(r.CheckCircle,{className:"w-5 h-5"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("settings.sections.guide.step4.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.guide.step4.description")})]})]})]})})]}),e.jsxs("section",{id:"faq",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"7"}),s("settings.sections.faq.title")]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"card p-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:s("settings.sections.faq.q1.question")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.faq.q1.answer")})]}),e.jsxs("div",{className:"card p-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:s("settings.sections.faq.q2.question")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.faq.q2.answer")})]}),e.jsxs("div",{className:"card p-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:s("settings.sections.faq.q3.question")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.faq.q3.answer")})]}),e.jsxs("div",{className:"card p-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:s("settings.sections.faq.q4.question")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.faq.q4.answer")})]})]})]}),e.jsxs("section",{id:"reference",className:"scroll-mt-4 space-y-6",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"8"}),s("settings.sections.reference.title")]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.architecture.title")}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"text-center p-4 bg-[var(--bg-secondary)] rounded-lg",children:[e.jsx(r.Settings,{className:"w-8 h-8 mx-auto text-blue-600 mb-2"}),e.jsx("div",{className:"font-medium",children:"General"}),e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:s("settings.sections.reference.architecture.general")})]}),e.jsxs("div",{className:"text-center p-4 bg-[var(--bg-secondary)] rounded-lg",children:[e.jsx(r.Upload,{className:"w-8 h-8 mx-auto text-green-600 mb-2"}),e.jsx("div",{className:"font-medium",children:"File Upload"}),e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:s("settings.sections.reference.architecture.fileUpload")})]}),e.jsxs("div",{className:"text-center p-4 bg-[var(--bg-secondary)] rounded-lg",children:[e.jsx(r.FileText,{className:"w-8 h-8 mx-auto text-amber-600 mb-2"}),e.jsx("div",{className:"font-medium",children:"Legal File"}),e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:s("settings.sections.reference.architecture.legalFile")})]}),e.jsxs("div",{className:"text-center p-4 bg-[var(--bg-secondary)] rounded-lg",children:[e.jsx(r.Database,{className:"w-8 h-8 mx-auto text-purple-600 mb-2"}),e.jsx("div",{className:"font-medium",children:"Storage Info"}),e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:s("settings.sections.reference.architecture.storageInfo")})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.sources.title")}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-[var(--bg-secondary)]",children:[e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.sources.source")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.sources.description")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.sources.editable")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-1 text-xs rounded bg-[var(--color-accent-500)]/10 text-[var(--color-accent-600)]",children:"Database"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:s("settings.sections.reference.sources.database")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(r.CheckCircle,{className:"w-5 h-5 text-green-500"})})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-1 text-xs rounded bg-purple-500/10 text-purple-600",children:"AppSettings"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:s("settings.sections.reference.sources.appSettings")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(r.Lock,{className:"w-5 h-5 text-[var(--text-tertiary)]"})})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-1 text-xs rounded bg-green-500/10 text-green-600",children:"Computed"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:s("settings.sections.reference.sources.computed")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(r.Lock,{className:"w-5 h-5 text-[var(--text-tertiary)]"})})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-1 text-xs rounded bg-orange-500/10 text-orange-600",children:"Environment"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:s("settings.sections.reference.sources.environment")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(r.Lock,{className:"w-5 h-5 text-[var(--text-tertiary)]"})})]})]})]})})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.categories.title")}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-[var(--bg-secondary)]",children:[e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.categories.category")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.categories.key")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.categories.type")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.categories.default")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"Session"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"IdleTimeoutMinutes"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-500/10 text-blue-600",children:"Int"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"20"})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"Session"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"MaxConcurrentSessions"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-500/10 text-blue-600",children:"Int"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"5"})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"FileUpload"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"MaxFileSizeMB"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-500/10 text-blue-600",children:"Int"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"10"})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"FileUpload"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"AllowedExtensions"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-purple-500/10 text-purple-600",children:"Json"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)] font-mono text-xs",children:'[".jpg", ".png", ...]'})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"LegalFile"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"RetentionDays"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-500/10 text-blue-600",children:"Int"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"3653 (10 ans)"})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"LegalFile"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"EnableWorm"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-green-500/10 text-green-600",children:"Bool"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"true"})]})]})]})})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.permissions.title")}),e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("settings.sections.reference.permissions.permission")}),e.jsx("th",{className:"text-left py-2",children:s("settings.sections.reference.permissions.description")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.settings.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("settings.sections.reference.permissions.all")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.settings.read"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("settings.sections.reference.permissions.read")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.settings.update"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("settings.sections.reference.permissions.update")})]})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.api.title")}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm font-mono",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("settings.sections.reference.api.method")}),e.jsx("th",{className:"text-left py-2",children:s("settings.sections.reference.api.endpoint")}),e.jsx("th",{className:"text-left py-2 font-sans",children:s("settings.sections.reference.api.description")})]})}),e.jsxs("tbody",{className:"text-xs",children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/settings"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.getAll")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/settings/","{category}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.getByCategory")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-blue-500/10 text-blue-600",children:"PUT"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/settings/","{category}","/","{key}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.update")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-yellow-500/10 text-yellow-600",children:"POST"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/settings/","{category}","/","{key}","/reset"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.reset")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/settings/","{category}","/","{key}","/history"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.history")})]})]})]})})]})]}),e.jsxs("div",{className:"flex justify-between pt-6 border-t border-[var(--border-color)]",children:[e.jsxs(W.Link,{to:"/system/docs/user",className:"flex items-center gap-2 text-[var(--text-secondary)] hover:text-[var(--color-primary-600)]",children:[e.jsx(r.ArrowRight,{className:"w-4 h-4 rotate-180"}),s("settings.nav.back")]}),e.jsxs(W.Link,{to:"/system/docs/user/ai",className:"flex items-center gap-2 text-[var(--color-primary-600)] hover:underline",children:[s("settings.nav.next"),e.jsx(r.ArrowRight,{className:"w-4 h-4"})]})]})]})}function Ig(){const{t:s}=ae.useTranslation("docs");return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(W.Link,{to:"/system/docs",className:"hover:text-[var(--color-primary-600)]",children:s("breadcrumb.documentation")}),e.jsx("span",{children:"/"}),e.jsx(W.Link,{to:"/system/docs/user",className:"hover:text-[var(--color-primary-600)]",children:s("breadcrumb.user")}),e.jsx("span",{children:"/"}),e.jsx("span",{children:s("theme.title")})]}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl font-bold mb-4 flex items-center gap-3",children:[e.jsx(r.Palette,{className:"w-8 h-8 text-[var(--color-primary-600)]"}),s("theme.title")]}),e.jsx("p",{className:"text-xl text-[var(--color-primary-600)] font-medium mb-2",children:s("theme.valueProposition")}),e.jsx("p",{className:"text-lg text-[var(--text-secondary)]",children:s("theme.subtitle")}),e.jsxs("div",{className:"mt-4 flex items-center gap-2",children:[e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-violet-500/10 text-violet-600 border border-violet-500/20",children:"Personal"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-indigo-500/10 text-indigo-600 border border-indigo-500/20",children:"My Space"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-pink-500/10 text-pink-600 border border-pink-500/20",children:"Preferences"})]})]}),e.jsxs("div",{className:"card p-4 bg-[var(--bg-secondary)]",children:[e.jsx("h3",{className:"font-semibold mb-3",children:s("theme.toc.title")}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 text-sm",children:[e.jsxs("a",{href:"#valeur",className:"text-[var(--color-primary-600)] hover:underline",children:["1. ",s("theme.toc.value")]}),e.jsxs("a",{href:"#scope",className:"text-[var(--color-primary-600)] hover:underline",children:["2. ",s("theme.toc.scope")]}),e.jsxs("a",{href:"#fonctionnalites",className:"text-[var(--color-primary-600)] hover:underline",children:["3. ",s("theme.toc.features")]}),e.jsxs("a",{href:"#guide",className:"text-[var(--color-primary-600)] hover:underline",children:["4. ",s("theme.toc.guide")]})]})]}),e.jsxs("section",{id:"valeur",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"1"}),s("theme.sections.value.title")]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsxs("h3",{className:"font-semibold mb-3 flex items-center gap-2",children:[e.jsx(r.Target,{className:"w-5 h-5 text-red-500"}),s("theme.sections.value.problemTitle")]}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s("theme.sections.value.problem")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-green-500/10 border border-green-500/20",children:[e.jsxs("h3",{className:"font-semibold mb-2 flex items-center gap-2 text-green-700 dark:text-green-400",children:[e.jsx(r.Lightbulb,{className:"w-5 h-5"}),s("theme.sections.value.solutionTitle")]}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s("theme.sections.value.solution")})]})]})]}),e.jsxs("section",{id:"scope",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"2"}),s("theme.sections.scope.title")]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("p",{className:"text-[var(--text-secondary)] mb-6",children:s("theme.sections.scope.description")}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-emerald-500/10 border border-emerald-500/20",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-emerald-500/20 flex items-center justify-center",children:e.jsx(r.Globe,{className:"w-5 h-5 text-emerald-600"})}),e.jsx("div",{children:e.jsx("h4",{className:"font-semibold text-emerald-700 dark:text-emerald-400",children:s("theme.sections.scope.global.title")})})]}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.scope.global.description")}),e.jsxs("ul",{className:"mt-3 space-y-1.5",children:[e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-500"}),e.jsx("span",{children:s("theme.sections.scope.global.benefit1")})]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-500"}),e.jsx("span",{children:s("theme.sections.scope.global.benefit2")})]})]})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-blue-500/10 border border-blue-500/20",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-blue-500/20 flex items-center justify-center",children:e.jsx(r.Building2,{className:"w-5 h-5 text-blue-600"})}),e.jsx("div",{children:e.jsx("h4",{className:"font-semibold text-blue-700 dark:text-blue-400",children:s("theme.sections.scope.tenant.title")})})]}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.scope.tenant.description")}),e.jsxs("ul",{className:"mt-3 space-y-1.5",children:[e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-blue-500"}),e.jsx("span",{children:s("theme.sections.scope.tenant.benefit1")})]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-blue-500"}),e.jsx("span",{children:s("theme.sections.scope.tenant.benefit2")})]})]})]})]}),e.jsx("div",{className:"mt-4 p-3 rounded-lg bg-amber-500/10 border border-amber-500/20",children:e.jsxs("p",{className:"text-sm text-amber-700 dark:text-amber-400",children:[e.jsx("strong",{children:s("theme.sections.scope.note.label")})," ",s("theme.sections.scope.note.content")]})})]})]}),e.jsxs("section",{id:"fonctionnalites",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"3"}),s("theme.sections.features.title")]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Sun,{className:"w-6 h-6 text-amber-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("theme.sections.features.mode.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("theme.sections.features.mode.description")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("span",{className:"px-3 py-1.5 text-sm rounded-lg bg-amber-500/10 text-amber-600 border border-amber-500/20 flex items-center gap-2",children:[e.jsx(r.Sun,{className:"w-4 h-4"})," ",s("theme.sections.features.mode.light")]}),e.jsxs("span",{className:"px-3 py-1.5 text-sm rounded-lg bg-indigo-500/10 text-indigo-600 border border-indigo-500/20 flex items-center gap-2",children:[e.jsx(r.Moon,{className:"w-4 h-4"})," ",s("theme.sections.features.mode.dark")]})]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-violet-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Palette,{className:"w-6 h-6 text-violet-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("theme.sections.features.accent.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("theme.sections.features.accent.description")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-indigo-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-violet-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-emerald-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-amber-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-rose-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-cyan-500"})]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-blue-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Layers,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("theme.sections.features.palette.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("theme.sections.features.palette.description")})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-slate-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Square,{className:"w-6 h-6 text-slate-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("theme.sections.features.corners.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("theme.sections.features.corners.description")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"0"},children:s("theme.sections.features.corners.none")}),e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"4px"},children:s("theme.sections.features.corners.small")}),e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"8px"},children:s("theme.sections.features.corners.medium")}),e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"12px"},children:s("theme.sections.features.corners.large")}),e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"9999px"},children:s("theme.sections.features.corners.full")})]})]})]})})]})]}),e.jsxs("section",{id:"guide",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"4"}),s("theme.sections.guide.title")]}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"1"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("theme.sections.guide.step1.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mb-3",children:s("theme.sections.guide.step1.description")}),e.jsxs("div",{className:"flex items-center gap-2 p-3 bg-[var(--bg-secondary)] rounded-lg font-mono text-sm",children:[e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Personal"}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"My Space"}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-[var(--color-primary-600)] font-semibold",children:"Preferences"})]})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"2"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("theme.sections.guide.step2.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.guide.step2.description")})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"3"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("theme.sections.guide.step3.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.guide.step3.description")})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex flex-col items-center",children:e.jsx("div",{className:"w-10 h-10 rounded-full bg-green-500 text-white flex items-center justify-center font-bold",children:e.jsx(r.CheckCircle,{className:"w-5 h-5"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("theme.sections.guide.step4.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.guide.step4.description")})]})]})]})})]}),e.jsxs("div",{className:"flex justify-between pt-6 border-t border-[var(--border-color)]",children:[e.jsxs(W.Link,{to:"/system/docs/user",className:"flex items-center gap-2 text-[var(--text-secondary)] hover:text-[var(--color-primary-600)]",children:[e.jsx(r.ArrowRight,{className:"w-4 h-4 rotate-180"}),s("theme.nav.back")]}),e.jsxs(W.Link,{to:"/system/docs/user/modules",className:"flex items-center gap-2 text-[var(--color-primary-600)] hover:underline",children:[s("theme.nav.next"),e.jsx(r.ArrowRight,{className:"w-4 h-4"})]})]})]})}function Eg(){const{t:s}=ae.useTranslation("docs"),[t,a]=l.useState(0),[n,i]=l.useState(!1),o=[{id:"architecture-flow",title:s("presentation.slides.architecture.title"),background:"from-[#0a0a12] via-[#0f1029] to-[#0a0a12]",content:e.jsxs("div",{className:"h-full flex flex-col text-white px-4 py-4 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[600px] h-[300px] bg-blue-500/10 rounded-full blur-[100px]"}),e.jsx("div",{className:"absolute bottom-0 left-1/4 w-[400px] h-[400px] bg-red-500/5 rounded-full blur-[120px]"}),e.jsx("div",{className:"absolute bottom-0 right-1/4 w-[400px] h-[400px] bg-emerald-500/5 rounded-full blur-[120px]"}),e.jsxs("div",{className:"relative z-10 flex justify-center gap-8 mb-6",children:[e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-blue-500/30 to-indigo-500/30 rounded-2xl blur opacity-0 group-hover:opacity-100 transition-all"}),e.jsxs("div",{className:"relative flex items-center gap-4 px-8 py-4 rounded-xl bg-gradient-to-br from-blue-600/90 to-blue-800/90 border border-blue-400/30 shadow-2xl shadow-blue-500/20",children:[e.jsx("div",{className:"w-14 h-14 rounded-xl bg-white/10 flex items-center justify-center",children:e.jsx(r.Server,{className:"w-8 h-8 text-blue-200"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xl font-bold",children:"ERP"}),e.jsx("div",{className:"text-blue-200/70 text-sm",children:s("common:examples")})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-indigo-500/30 to-purple-500/30 rounded-2xl blur opacity-0 group-hover:opacity-100 transition-all"}),e.jsxs("div",{className:"relative flex items-center gap-4 px-8 py-4 rounded-xl bg-gradient-to-br from-indigo-600/90 to-indigo-800/90 border border-indigo-400/30 shadow-2xl shadow-indigo-500/20",children:[e.jsx("div",{className:"w-14 h-14 rounded-xl bg-white/10 flex items-center justify-center",children:e.jsx(r.Database,{className:"w-8 h-8 text-indigo-200"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xl font-bold",children:s("presentation.slides.architecture.title")}),e.jsxs("div",{className:"text-indigo-200/70 text-sm",children:["CRM, ",s("common:examples")]})]})]})]})]}),e.jsxs("div",{className:"relative z-10 flex justify-center items-start gap-32 mb-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"px-4 py-1.5 rounded-full bg-red-500/20 border border-red-500/30 mb-2",children:e.jsx("span",{className:"text-red-400 text-sm font-medium",children:s("presentation.slides.problem.title")})}),e.jsx("div",{className:"w-1 h-12 bg-gradient-to-b from-blue-500/50 via-red-500/50 to-red-500/80 rounded-full"}),e.jsx(r.ArrowDown,{className:"w-6 h-6 text-red-400 -mt-1"})]}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"px-4 py-1.5 rounded-full bg-emerald-500/20 border border-emerald-500/30 mb-2",children:e.jsx("span",{className:"text-emerald-400 text-sm font-medium",children:s("common:automation")})}),e.jsx("div",{className:"w-1 h-12 bg-gradient-to-b from-blue-500/50 via-emerald-500/50 to-emerald-500/80 rounded-full"}),e.jsx(r.ArrowDown,{className:"w-6 h-6 text-emerald-400 -mt-1"})]})]}),e.jsxs("div",{className:"relative z-10 flex-1 grid grid-cols-2 gap-8 max-w-6xl mx-auto w-full",children:[e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-br from-red-500/20 to-orange-500/10 rounded-3xl blur-xl"}),e.jsxs("div",{className:"relative h-full rounded-2xl bg-gradient-to-br from-slate-900/95 to-slate-950/95 border border-red-500/20 p-6 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-red-500 to-orange-500 flex items-center justify-center shadow-lg shadow-red-500/30",children:e.jsx(r.XCircle,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-red-400",children:s("presentation.slides.problem.title")}),e.jsx("p",{className:"text-slate-500 text-sm",children:s("presentation.slides.problem.excel.item1")})]})]}),e.jsxs("div",{className:"flex-1 flex flex-col justify-center space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-xl bg-slate-800/50 border border-slate-700/50",children:[e.jsx(r.Wrench,{className:"w-5 h-5 text-amber-400"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-sm font-medium text-slate-300",children:"Actions manuelles"}),e.jsx("div",{className:"text-xs text-slate-500",children:"Copier-coller, ressaisie, VBA fragile"})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-3 py-4",children:[["v1","v2","v3"].map((d,m)=>e.jsxs("div",{className:"relative group/file",children:[e.jsxs("div",{className:"w-16 h-20 rounded-lg bg-gradient-to-br from-green-800/40 to-green-900/60 border border-green-500/30 flex flex-col items-center justify-center shadow-lg hover:scale-105 transition-transform",children:[e.jsx(r.FileSpreadsheet,{className:"w-6 h-6 text-green-400 mb-1"}),e.jsxs("span",{className:"text-[10px] text-green-300/70",children:[d,"_final.xlsx"]})]}),m<2&&e.jsx("div",{className:"absolute -right-2 top-1/2 w-2 h-px bg-slate-600"})]},d)),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-slate-600 mx-2"}),e.jsx("div",{className:"px-3 py-2 rounded-lg bg-amber-900/30 border border-amber-500/30",children:e.jsxs("span",{className:"text-xs text-amber-300",children:["Reconciliation",e.jsx("br",{}),"manuelle"]})})]}),e.jsx("div",{className:"flex justify-center gap-6",children:["Marie","Paul","Julie"].map(d=>e.jsxs("div",{className:"flex flex-col items-center opacity-60",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-700/50 border-2 border-dashed border-slate-600 flex items-center justify-center",children:e.jsx(r.Users,{className:"w-5 h-5 text-slate-500"})}),e.jsx("span",{className:"text-xs text-slate-500 mt-1",children:d}),e.jsx("span",{className:"text-[10px] text-red-400/70",children:"Isole"})]},d))})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3 mt-4 pt-4 border-t border-slate-700/50",children:[e.jsxs("div",{className:"text-center p-3 rounded-xl bg-red-950/30 border border-red-500/20",children:[e.jsx(r.Clock,{className:"w-5 h-5 text-red-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-red-400",children:"5j / mois"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"perdus"})]}),e.jsxs("div",{className:"text-center p-3 rounded-xl bg-red-950/30 border border-red-500/20",children:[e.jsx(r.AlertTriangle,{className:"w-5 h-5 text-red-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-red-400",children:"Erreurs"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"inevitables"})]}),e.jsxs("div",{className:"text-center p-3 rounded-xl bg-red-950/30 border border-red-500/20",children:[e.jsx(r.Ban,{className:"w-5 h-5 text-red-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-red-400",children:"0 securite"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"ni audit"})]})]})]})]}),e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-br from-emerald-500/20 to-cyan-500/10 rounded-3xl blur-xl"}),e.jsxs("div",{className:"relative h-full rounded-2xl bg-gradient-to-br from-slate-900/95 to-slate-950/95 border border-emerald-500/30 p-6 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-emerald-500 to-cyan-500 flex items-center justify-center shadow-lg shadow-emerald-500/30",children:e.jsx(r.Layers,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-emerald-400",children:s("presentation.slides.solution.title")}),e.jsx("p",{className:"text-slate-500 text-sm",children:s("presentation.slides.solution.unified.desc")})]})]}),e.jsxs("div",{className:"flex-1 flex flex-col justify-center space-y-4",children:[e.jsx("div",{className:"flex justify-center gap-4",children:["Marie","Paul","Julie"].map(d=>e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-emerald-500/30 to-cyan-500/30 border-2 border-emerald-500/50 flex items-center justify-center shadow-lg shadow-emerald-500/20",children:e.jsx(r.Users,{className:"w-5 h-5 text-emerald-300"})}),e.jsx("span",{className:"text-xs text-emerald-300 mt-1",children:d})]},d))}),e.jsx("div",{className:"flex justify-center",children:e.jsx(r.ArrowDown,{className:"w-5 h-5 text-emerald-500/50"})}),e.jsxs("div",{className:"flex items-center justify-center gap-3 p-3 rounded-xl bg-blue-950/40 border border-blue-500/30 mx-4",children:[e.jsx(r.Shield,{className:"w-5 h-5 text-blue-400"}),e.jsx("span",{className:"text-sm font-medium text-blue-300",children:"Entra ID"}),e.jsx("span",{className:"text-slate-500",children:"+"}),e.jsx(r.Globe,{className:"w-5 h-5 text-cyan-400"}),e.jsx("span",{className:"text-sm font-medium text-cyan-300",children:"API REST"})]}),e.jsx("div",{className:"flex justify-center",children:e.jsx(r.ArrowDown,{className:"w-5 h-5 text-emerald-500/50"})}),e.jsx("div",{className:"flex justify-center gap-4",children:[{icon:r.ClipboardList,name:"Suivi Projets",color:"emerald"},{icon:r.Calculator,name:"Budget",color:"purple"},{icon:r.TrendingUp,name:"Reporting",color:"cyan"}].map(d=>e.jsxs("div",{className:`w-24 h-24 rounded-xl bg-gradient-to-br from-${d.color}-900/50 to-${d.color}-950/70 border border-${d.color}-500/40 flex flex-col items-center justify-center p-2 hover:scale-105 transition-transform cursor-pointer shadow-lg`,children:[e.jsx(d.icon,{className:`w-7 h-7 text-${d.color}-400 mb-2`}),e.jsx("span",{className:`text-xs text-${d.color}-300 text-center leading-tight`,children:d.name})]},d.name))})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3 mt-4 pt-4 border-t border-emerald-500/20",children:[e.jsxs("div",{className:"text-center p-3 rounded-xl bg-emerald-950/40 border border-emerald-500/30",children:[e.jsx(r.RefreshCw,{className:"w-5 h-5 text-emerald-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-emerald-400",children:"Automatise"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"temps reel"})]}),e.jsxs("div",{className:"text-center p-3 rounded-xl bg-blue-950/40 border border-blue-500/30",children:[e.jsx(r.Eye,{className:"w-5 h-5 text-blue-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-blue-400",children:"Tracable"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"audit complet"})]}),e.jsxs("div",{className:"text-center p-3 rounded-xl bg-purple-950/40 border border-purple-500/30",children:[e.jsx(r.Shield,{className:"w-5 h-5 text-purple-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-purple-400",children:"Securise"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"enterprise"})]})]})]})]})]})]})},{id:"transformation",title:s("presentation.slides.problem.title"),content:e.jsxs("div",{className:"h-full flex flex-col justify-center",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-emerald-100 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 text-sm font-medium mb-4",children:[e.jsx(r.Calculator,{className:"w-4 h-4"}),"Cas d'usage : Direction Financiere"]}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[var(--text-primary)]",children:'"On a toujours fait comme ca..."'})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 max-w-6xl mx-auto",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-3 left-4 px-3 py-1 bg-red-500 text-white text-sm font-bold rounded-full z-10",children:"AVANT"}),e.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border-2 border-red-200 dark:border-red-800 rounded-2xl p-6 h-full",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-red-900/30 rounded-xl",children:[e.jsx(r.FileSpreadsheet,{className:"w-8 h-8 text-red-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Budget_2024_v12_FINAL_v2.xlsx"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"15 onglets, 200 formules, 3 versions en circulation"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-red-900/30 rounded-xl",children:[e.jsx(r.Clock,{className:"w-8 h-8 text-red-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Cloture mensuelle : 5 jours"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Consolidation manuelle de 12 fichiers departements"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-red-900/30 rounded-xl",children:[e.jsx(r.AlertTriangle,{className:"w-8 h-8 text-red-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Erreur decouverte en juin"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Une formule cassee depuis janvier, 50K d'ecart"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-red-900/30 rounded-xl",children:[e.jsx(r.UserX,{className:"w-8 h-8 text-red-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Marc est en vacances"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Lui seul comprend comment fonctionne le fichier"})]})]})]})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-3 left-4 px-3 py-1 bg-emerald-500 text-white text-sm font-bold rounded-full z-10",children:"AVEC SMARTSTACK"}),e.jsx("div",{className:"bg-emerald-50 dark:bg-emerald-900/20 border-2 border-emerald-200 dark:border-emerald-800 rounded-2xl p-6 h-full",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-emerald-900/30 rounded-xl",children:[e.jsx(r.Database,{className:"w-8 h-8 text-emerald-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Une seule source de verite"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Base de donnees centralisee, plus de versions multiples"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-emerald-900/30 rounded-xl",children:[e.jsx(r.Zap,{className:"w-8 h-8 text-emerald-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Cloture mensuelle : 4 heures"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Consolidation automatique en temps reel"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-emerald-900/30 rounded-xl",children:[e.jsx(r.CheckCheck,{className:"w-8 h-8 text-emerald-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Controles automatiques"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Alertes en temps reel si anomalie detectee"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-emerald-900/30 rounded-xl",children:[e.jsx(r.Users,{className:"w-8 h-8 text-emerald-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Autonomie complete"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Interface intuitive, documentation integree"})]})]})]})})]})]})]})},{id:"use-cases",title:s("presentation.slides.problem.powerApps.title"),background:"from-[#0f172a] via-[#1e1b4b] to-[#0f172a]",content:e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-white px-4 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-1/4 w-[500px] h-[500px] bg-blue-500/10 rounded-full blur-[150px]"}),e.jsx("div",{className:"absolute bottom-0 right-1/4 w-[500px] h-[500px] bg-purple-500/10 rounded-full blur-[150px]"}),e.jsxs("div",{className:"relative z-10 text-center mb-8",children:[e.jsx("p",{className:"text-sm uppercase tracking-[0.3em] text-slate-500 mb-3",children:"Ils l'ont fait"}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"Cas d'usage reels"})]}),e.jsxs("div",{className:"relative z-10 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 max-w-6xl w-full",children:[e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-amber-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-amber-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-amber-400 to-orange-500 flex items-center justify-center shadow-lg shadow-amber-500/20",children:e.jsx(r.HardHat,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Groupe DUVAL"}),e.jsx("p",{className:"text-xs text-amber-400/80",children:"BTP - 180 employes"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"35 chefs de chantier envoyaient leurs rapports par email Excel chaque semaine..."}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Consolidation"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"2 jours"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"2 heures"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Heures recuperees"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"47 000€/an"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-rose-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-rose-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-rose-400 to-pink-500 flex items-center justify-center shadow-lg shadow-rose-500/20",children:e.jsx(r.Stethoscope,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Clinique Saint-Louis"}),e.jsx("p",{className:"text-xs text-rose-400/80",children:"Sante - 420 employes"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:`Demandes d'achats par email, papier, post-it... "On n'a plus d'electrodes !"`}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Delai commande"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"3 semaines"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"4 jours"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Ruptures stock"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"-78%"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-blue-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-blue-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-blue-400 to-indigo-500 flex items-center justify-center shadow-lg shadow-blue-500/20",children:e.jsx(r.Truck,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"TransLogistic"}),e.jsx("p",{className:"text-xs text-blue-400/80",children:"Transport - 85 chauffeurs"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:'Photos WhatsApp, Excel litiges... "On vous fait un avoir faute de preuves"'}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:'Avoirs "par defaut"'}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"180K€"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"23K€/an"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Litiges gagnes"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"34% → 67%"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-violet-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-violet-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-violet-400 to-purple-500 flex items-center justify-center shadow-lg shadow-violet-500/20",children:e.jsx(r.Scale,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Cabinet NEXIA"}),e.jsx("p",{className:"text-xs text-violet-400/80",children:"Expertise comptable - 45 collaborateurs"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:'Checklist Word, PJ eparpillees... "On en est ou sur le dossier Martin ?"'}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Temps revue"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"-45%"})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Heures recuperees"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"112K€/an"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-cyan-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-cyan-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-cyan-400 to-teal-500 flex items-center justify-center shadow-lg shadow-cyan-500/20",children:e.jsx(r.Landmark,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Mairie Villeneuve"}),e.jsx("p",{className:"text-xs text-cyan-400/80",children:"Secteur public - 25 000 habitants"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:'Signalements par email, tel, courrier... "Je ne retrouve pas votre demande"'}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Delai resolution"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"45 jours"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"8 jours"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Satisfaction"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"34% → 78%"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-emerald-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-emerald-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-emerald-400 to-green-500 flex items-center justify-center shadow-lg shadow-emerald-500/20",children:e.jsx(r.Calculator,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Direction Financiere"}),e.jsx("p",{className:"text-xs text-emerald-400/80",children:"Finance - 12 departements"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:'Budget_v12_FINAL_v3.xlsx... "Marc est en vacances, lui seul sait"'}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Cloture mensuelle"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"5 jours"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"4 heures"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Erreurs"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"0 / 50K€ evites"})]})]})]})]})]}),e.jsxs("div",{className:"relative z-10 mt-8 flex items-center gap-2 text-slate-500 text-sm",children:[e.jsx(r.BadgeCheck,{className:"w-4 h-4 text-emerald-500"}),e.jsx("span",{children:"Des resultats mesures, pas des promesses"})]})]})},{id:"promise",title:s("presentation.slides.cta.title"),background:"from-[var(--color-primary-700)] to-[var(--color-primary-900)]",content:e.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-white px-4",children:[e.jsx(r.Lightbulb,{className:"w-16 h-16 mb-8 text-amber-300"}),e.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-6",children:"Ce que SmartStack vous apporte"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl mt-8",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left",children:[e.jsx("div",{className:"text-4xl font-bold text-amber-300 mb-2",children:"x10"}),e.jsx("div",{className:"text-xl font-semibold mb-2",children:"Plus rapide"}),e.jsxs("div",{className:"text-white/70 text-sm",children:["Des semaines au lieu de mois.",e.jsx("br",{}),"L'IA genere 80% du code."]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left",children:[e.jsx("div",{className:"text-4xl font-bold text-emerald-300 mb-2",children:"-70%"}),e.jsx("div",{className:"text-xl font-semibold mb-2",children:"Moins cher"}),e.jsxs("div",{className:"text-white/70 text-sm",children:["Pas de licence par utilisateur.",e.jsx("br",{}),"Infrastructure mutualisee."]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left",children:[e.jsx("div",{className:"text-4xl font-bold text-blue-300 mb-2",children:"100%"}),e.jsx("div",{className:"text-xl font-semibold mb-2",children:"Maitrise"}),e.jsxs("div",{className:"text-white/70 text-sm",children:["Votre code, vos donnees.",e.jsx("br",{}),"Pas de vendor lock-in."]})]})]}),e.jsx("div",{className:"mt-12 text-lg text-white/60",children:"Une plateforme. Une equipe. Des applications metier illimitees."})]})},{id:"how-it-works",title:s("presentation.slides.cta.subtitle"),content:e.jsxs("div",{className:"h-full flex flex-col justify-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[var(--text-primary)] text-center mb-12",children:"De l'idee a l'application en 3 etapes"}),e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-4 -left-4 w-12 h-12 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-xl font-bold",children:"1"}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] p-6 pt-8 h-full",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center mb-4",children:e.jsx(r.Users,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h3",{className:"text-xl font-semibold text-[var(--text-primary)] mb-2",children:"Vous decrivez"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:"Expliquez votre besoin en langage naturel. Pas de cahier des charges de 100 pages - juste vos processus actuels et ce que vous voulez ameliorer."})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-4 -left-4 w-12 h-12 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-xl font-bold",children:"2"}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] p-6 pt-8 h-full",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center mb-4",children:e.jsx(r.Brain,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h3",{className:"text-xl font-semibold text-[var(--text-primary)] mb-2",children:"L'IA construit"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:"Claude Code genere l'application : base de donnees, API, interface utilisateur, securite. Le tout en respectant les standards enterprise."})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-4 -left-4 w-12 h-12 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-xl font-bold",children:"3"}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] p-6 pt-8 h-full",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-emerald-100 dark:bg-emerald-900/30 flex items-center justify-center mb-4",children:e.jsx(r.Rocket,{className:"w-6 h-6 text-emerald-600"})}),e.jsx("h3",{className:"text-xl font-semibold text-[var(--text-primary)] mb-2",children:"Vous utilisez"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:"Deploiement instantane, formation integree, evolution continue. Vos equipes sont autonomes pour les modifications simples."})]})]})]}),e.jsxs("div",{className:"hidden md:flex items-center justify-center mt-8 gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(r.Clock,{className:"w-4 h-4"}),e.jsx("span",{children:"Jour 1-2"})]}),e.jsx("div",{className:"flex-1 h-1 bg-gradient-to-r from-blue-500 via-purple-500 to-emerald-500 rounded-full max-w-xs"}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(r.Clock,{className:"w-4 h-4"}),e.jsx("span",{children:"Jour 3-10"})]}),e.jsx("div",{className:"flex-1 h-1 bg-gradient-to-r from-purple-500 to-emerald-500 rounded-full max-w-xs"}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(r.Clock,{className:"w-4 h-4"}),e.jsx("span",{children:"Jour 11+"})]})]})]})]})},{id:"vibecoding",title:s("presentation.slides.vibecoding.title"),background:"from-violet-900 via-purple-900 to-indigo-900",content:e.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-white px-4",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 text-white/90 text-sm font-medium mb-6",children:[e.jsx(r.Sparkles,{className:"w-4 h-4"}),"Le secret SmartStack"]}),e.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:"Vibecoding"}),e.jsx("p",{className:"text-xl text-white/70 max-w-2xl",children:"Quand l'IA et les standards se rencontrent"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left border border-white/10 hover:border-white/30 transition-colors",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-blue-400 to-cyan-400 flex items-center justify-center mb-4",children:e.jsx(r.Code,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Meme logique de dev"}),e.jsxs("ul",{className:"space-y-2 text-white/70 text-sm",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Architecture CQRS / Clean Architecture"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Patterns de code identiques"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Conventions de nommage strictes"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Tests et validation automatiques"})]})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left border border-white/10 hover:border-white/30 transition-colors",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-amber-400 to-orange-400 flex items-center justify-center mb-4",children:e.jsx(r.FileText,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Meme documentation"}),e.jsxs("ul",{className:"space-y-2 text-white/70 text-sm",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Structure de doc standardisee"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"CLAUDE.md genere automatiquement"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"API documentee par defaut"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Guides utilisateur coherents"})]})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left border border-white/10 hover:border-white/30 transition-colors",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-pink-400 to-rose-400 flex items-center justify-center mb-4",children:e.jsx(r.LayoutGrid,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Meme UI / UX"}),e.jsxs("ul",{className:"space-y-2 text-white/70 text-sm",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Design system unifie"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Composants reutilisables"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Experience utilisateur coherente"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Responsive & accessible"})]})]})]})]}),e.jsxs("div",{className:"mt-10 flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 text-sm",children:[e.jsx(r.Brain,{className:"w-4 h-4 text-purple-300"}),e.jsx("span",{children:"Claude Code genere"})]}),e.jsx(r.ArrowRight,{className:"w-5 h-5 text-white/50"}),e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 text-sm",children:[e.jsx(r.Terminal,{className:"w-4 h-4 text-cyan-300"}),e.jsx("span",{children:"MCP Server valide"})]}),e.jsx(r.ArrowRight,{className:"w-5 h-5 text-white/50"}),e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full bg-emerald-500/30 text-sm font-medium",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-300"}),e.jsx("span",{children:"100% conforme"})]})]})]})},{id:"tech-stack",title:s("presentation.slides.architecture.title"),content:e.jsxs("div",{className:"h-full flex flex-col justify-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[var(--text-primary)] text-center mb-4",children:"Une architecture enterprise"}),e.jsx("p",{className:"text-center text-[var(--text-secondary)] mb-10 max-w-2xl mx-auto",children:"Technologies modernes, standards ouverts, pas de vendor lock-in"}),e.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] overflow-hidden",children:[e.jsx("div",{className:"bg-gradient-to-r from-purple-600 to-indigo-600 px-5 py-4",children:e.jsxs("div",{className:"flex items-center gap-3 text-white",children:[e.jsx(r.Server,{className:"w-6 h-6"}),e.jsx("span",{className:"font-semibold text-lg",children:"Backend"})]})}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Runtime"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:".NET 10"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"ORM"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"Entity Framework Core"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Pattern"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"CQRS / Clean Arch"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Auth"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"Entra ID / JWT"})]})]})]}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] overflow-hidden",children:[e.jsx("div",{className:"bg-gradient-to-r from-cyan-600 to-blue-600 px-5 py-4",children:e.jsxs("div",{className:"flex items-center gap-3 text-white",children:[e.jsx(r.Globe,{className:"w-6 h-6"}),e.jsx("span",{className:"font-semibold text-lg",children:"Frontend"})]})}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Framework"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"React 19"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Langage"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"TypeScript 5"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Style"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"Tailwind CSS"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"i18n"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"4 langues (FR/EN/DE/IT)"})]})]})]}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] overflow-hidden",children:[e.jsx("div",{className:"bg-gradient-to-r from-pink-600 to-rose-600 px-5 py-4",children:e.jsxs("div",{className:"flex items-center gap-3 text-white",children:[e.jsx(r.Brain,{className:"w-6 h-6"}),e.jsx("span",{className:"font-semibold text-lg",children:"IA & DevOps"})]})}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Assistant"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"Claude Code"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Protocole"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"MCP Server"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Workflow"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"GitFlow integre"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"CI/CD"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"GitHub Actions"})]})]})]})]})]})},{id:"features",title:s("presentation.slides.features.title"),content:e.jsxs("div",{className:"h-full flex flex-col justify-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[var(--text-primary)] text-center mb-4",children:"Tout ce dont vous avez besoin"}),e.jsx("p",{className:"text-center text-[var(--text-secondary)] mb-10",children:"Pre-construit, teste, pret a l'emploi"}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 max-w-5xl mx-auto",children:[{icon:r.Users,label:"Gestion utilisateurs",desc:"Creation, roles, SSO",color:"text-blue-500 bg-blue-100 dark:bg-blue-900/30"},{icon:r.Shield,label:"Permissions",desc:"Granulaires, hierarchiques",color:"text-green-500 bg-green-100 dark:bg-green-900/30"},{icon:r.Building2,label:"Multi-tenant",desc:"Organisations, domaines",color:"text-purple-500 bg-purple-100 dark:bg-purple-900/30"},{icon:r.Workflow,label:"Workflows",desc:"Emails, notifications",color:"text-pink-500 bg-pink-100 dark:bg-pink-900/30"},{icon:r.Globe,label:"Multi-langues",desc:"FR, EN, DE, IT",color:"text-cyan-500 bg-cyan-100 dark:bg-cyan-900/30"},{icon:r.LayoutGrid,label:"Navigation",desc:"Dynamique, par role",color:"text-orange-500 bg-orange-100 dark:bg-orange-900/30"},{icon:r.Database,label:"Audit complet",desc:"Tracabilite, logs",color:"text-red-500 bg-red-100 dark:bg-red-900/30"},{icon:r.Sparkles,label:"Theming",desc:"Branding, dark mode",color:"text-amber-500 bg-amber-100 dark:bg-amber-900/30"}].map(d=>e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-xl border border-[var(--border-color)] p-4 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:`w-10 h-10 rounded-lg ${d.color} flex items-center justify-center mb-3`,children:e.jsx(d.icon,{className:"w-5 h-5"})}),e.jsx("div",{className:"font-medium text-[var(--text-primary)] text-sm",children:d.label}),e.jsx("div",{className:"text-xs text-[var(--text-tertiary)] mt-1",children:d.desc})]},d.label))})]})},{id:"cta",title:s("presentation.slides.cta.title"),background:"from-slate-900 to-slate-800",content:e.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-white px-4",children:[e.jsx(r.Layers,{className:"w-20 h-20 mb-6 text-[var(--color-primary-400)]"}),e.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4",children:"SmartStack"}),e.jsxs("p",{className:"text-xl md:text-2xl text-slate-300 mb-8 max-w-2xl",children:["Transformez vos idees en applications.",e.jsx("br",{}),"Sans attendre. Sans vous ruiner."]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-12",children:[e.jsxs(W.Link,{to:"/system/docs/developer/installation",className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-[var(--color-primary-600)] hover:bg-[var(--color-primary-500)] text-white rounded-xl font-semibold transition-colors",children:[e.jsx(r.Rocket,{className:"w-5 h-5"}),s("presentation.slides.cta.getStarted")]}),e.jsxs(W.Link,{to:"/system/docs/developer",className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 hover:bg-white/20 text-white rounded-xl font-semibold transition-colors",children:[e.jsx(r.Code,{className:"w-5 h-5"}),s("presentation.slides.cta.documentation")]})]}),e.jsx("div",{className:"text-slate-400 text-sm",children:"Des questions ? Contactez-nous : contact@smartstack.app"})]})}],c=l.useCallback(()=>{a(d=>(d+1)%o.length)},[o.length]),x=l.useCallback(()=>{a(d=>(d-1+o.length)%o.length)},[o.length]);l.useEffect(()=>{const d=m=>{m.key==="ArrowRight"||m.key===" "?(m.preventDefault(),c()):m.key==="ArrowLeft"?(m.preventDefault(),x()):m.key==="Escape"&&i(!1)};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[c,x]),l.useEffect(()=>{if(!n)return;const d=setInterval(c,1e4);return()=>clearInterval(d)},[n,c]);const u=o[t];return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsxs("div",{className:`flex-1 relative overflow-hidden transition-all duration-500 ${u.background?`bg-gradient-to-br ${u.background}`:"bg-[var(--bg-primary)]"}`,children:[e.jsx("div",{className:"absolute top-4 left-4 z-20",children:e.jsxs(W.Link,{to:"/system/docs",className:`flex items-center gap-2 px-3 py-2 rounded-lg transition-colors ${u.background?"text-white/70 hover:text-white hover:bg-white/10":"text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)]"}`,children:[e.jsx(r.Home,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:s("presentation.backToDocs")})]})}),e.jsx("div",{className:`absolute top-4 right-4 z-20 px-3 py-1 rounded-lg ${u.background?"bg-white/10 text-white":"bg-[var(--bg-secondary)] text-[var(--text-secondary)]"}`,children:e.jsxs("span",{className:"text-sm font-mono",children:[t+1," / ",o.length]})}),e.jsx("div",{className:"container mx-auto px-4 py-16 h-full flex items-center",children:e.jsx("div",{className:"w-full",children:u.content})})]}),e.jsx("div",{className:"bg-[var(--bg-secondary)] border-t border-[var(--border-color)] px-4 py-3",children:e.jsxs("div",{className:"container mx-auto flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center gap-2",children:o.map((d,m)=>e.jsx("button",{onClick:()=>a(m),className:`h-2 rounded-full transition-all ${m===t?"w-8 bg-[var(--color-primary-600)]":"w-2 bg-[var(--border-color)] hover:bg-[var(--color-primary-400)]"}`,title:d.title},d.id))}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>i(!n),className:"p-2 rounded-lg hover:bg-[var(--bg-hover)] text-[var(--text-secondary)]",title:n?"Pause":"Auto-play (10s)",children:n?e.jsx(r.Pause,{className:"w-5 h-5"}):e.jsx(r.Play,{className:"w-5 h-5"})}),e.jsx("button",{onClick:x,className:"p-2 rounded-lg hover:bg-[var(--bg-hover)] text-[var(--text-secondary)]",children:e.jsx(r.ChevronLeft,{className:"w-5 h-5"})}),e.jsx("button",{onClick:c,className:"p-2 rounded-lg hover:bg-[var(--bg-hover)] text-[var(--text-secondary)]",children:e.jsx(r.ChevronRight,{className:"w-5 h-5"})})]})]})})]})}const Dg=[{icon:r.Users,title:"Gestion des Utilisateurs",description:"Créez, modifiez et gérez vos utilisateurs avec une interface intuitive. Profils complets, avatars et informations personnalisables.",color:"from-blue-500 to-cyan-500"},{icon:r.Bell,title:"Gestion des Notifications",description:"Système de notifications en temps réel. Email, push, in-app. Templates personnalisables et historique complet.",color:"from-amber-500 to-orange-500"},{icon:r.HeadphonesIcon,title:"Gestion du Support",description:"Système de tickets intégré pour le support client. Suivi, priorités, assignation et statistiques.",color:"from-emerald-500 to-teal-500"},{icon:r.Shield,title:"Panneau Administrateur",description:"Dashboard complet pour administrer votre plateforme. Métriques, logs, configuration et monitoring.",color:"from-purple-500 to-pink-500"},{icon:r.Key,title:"Gestion des Rôles",description:"RBAC avancé avec permissions granulaires. Hiérarchie de rôles, wildcards et héritage des droits.",color:"from-red-500 to-rose-500"},{icon:r.Layers,title:"Architecture Modulaire",description:"Structure en 5 niveaux : Contexte, Application, Module, Section, Resource. Extensible et maintenable.",color:"from-indigo-500 to-violet-500"}],Lg=[{icon:r.Zap,text:"Démarrage rapide"},{icon:r.Lock,text:"Sécurité intégrée"},{icon:r.Rocket,text:"Performance optimale"}],Pg=[".NET 10","React 19","TypeScript","EF Core","SQL Server","Tailwind CSS"];function $g(){return e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("section",{className:"relative pt-32 pb-20 md:pt-40 md:pb-32 overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 rounded-full bg-primary-500/10 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-40 -left-40 w-80 h-80 rounded-full bg-accent-500/10 blur-3xl"}),e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full bg-gradient-to-r from-primary-500/5 to-accent-500/5 blur-3xl"})]}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary-500/10 border border-primary-500/20 mb-8",children:[e.jsx(r.Zap,{className:"w-4 h-4 text-primary-500"}),e.jsx("span",{className:"text-sm font-medium text-primary-500",children:"Version 1.0 disponible"})]}),e.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold tracking-tight mb-6",children:["Le socle moderne pour",e.jsx("br",{}),e.jsx("span",{className:"gradient-text",children:"vos applications"})]}),e.jsx("p",{className:"max-w-2xl mx-auto text-lg md:text-xl text-[var(--text-secondary)] mb-10",children:"SmartStack est une plateforme complète pour créer des applications d'entreprise. Authentification, rôles, notifications et support intégrés."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 mb-16",children:[e.jsxs("a",{href:"/register",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-primary-600 hover:bg-primary-700 text-white font-semibold transition-all shadow-lg shadow-primary-500/25 hover:shadow-primary-500/40",children:["Commencer gratuitement",e.jsx(r.ArrowRight,{className:"w-5 h-5"})]}),e.jsx("a",{href:"#features",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-[var(--bg-tertiary)] hover:bg-[var(--bg-secondary)] border border-[var(--border-color)] font-semibold transition-all",children:"Découvrir les fonctionnalités"})]}),e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-6",children:Lg.map(s=>e.jsxs("div",{className:"flex items-center gap-2 text-[var(--text-secondary)]",children:[e.jsx(s.icon,{className:"w-5 h-5 text-primary-500"}),e.jsx("span",{children:s.text})]},s.text))})]})})]}),e.jsx("section",{className:"py-8 bg-[var(--bg-secondary)] border-y border-[var(--border-color)]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-8 md:gap-12",children:[e.jsx("span",{className:"text-[var(--text-tertiary)] text-sm uppercase tracking-wider",children:"Construit avec"}),Pg.map(s=>e.jsx("span",{className:"text-[var(--text-secondary)] font-medium",children:s},s))]})})}),e.jsx("section",{id:"features",className:"py-20 md:py-32",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Tout ce dont vous avez besoin"}),e.jsx("p",{className:"max-w-2xl mx-auto text-[var(--text-secondary)]",children:"SmartStack inclut toutes les fonctionnalités essentielles pour démarrer votre projet d'entreprise."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Dg.map(s=>e.jsxs("div",{className:"group p-6 rounded-2xl bg-[var(--bg-card)] border border-[var(--border-color)] hover-card",children:[e.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${s.color} flex items-center justify-center mb-4`,children:e.jsx(s.icon,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-semibold mb-2",children:s.title}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s.description})]},s.title))})]})}),e.jsx("section",{id:"modules",className:"py-20 md:py-32 bg-[var(--bg-secondary)]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:["Architecture modulaire",e.jsx("br",{}),e.jsx("span",{className:"gradient-text",children:"prête pour la production"})]}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-8",children:"SmartStack utilise une architecture en 5 niveaux qui permet une organisation claire et une extensibilité maximale. Chaque niveau correspond à un scope de permissions."}),e.jsx("ul",{className:"space-y-4 mb-8",children:["Contexte - Environnements séparés (Platform, Business, Personal)","Application - Apps au sein d'un contexte (Admin, MySpace)","Module - Fonctionnalités (Users, Roles, Profile)","Section - Sous-divisions des modules","Resource - Éléments individuels"].map(s=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-primary-500/10 flex items-center justify-center mt-0.5",children:e.jsx(r.Check,{className:"w-4 h-4 text-primary-500"})}),e.jsx("span",{className:"text-[var(--text-secondary)]",children:s})]},s))})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary-500/20 to-accent-500/20 rounded-3xl blur-2xl"}),e.jsx("div",{className:"relative p-8 rounded-3xl bg-[var(--bg-card)] border border-[var(--border-color)]",children:e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"p-4 rounded-xl bg-gradient-to-r from-primary-500/10 to-primary-500/5 border border-primary-500/20",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-3 h-3 rounded-full bg-primary-500"}),e.jsx("span",{className:"font-semibold text-primary-500",children:"Contexte: Platform"})]}),e.jsxs("div",{className:"ml-4 mt-3 p-3 rounded-lg bg-accent-500/10 border border-accent-500/20",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-accent-500"}),e.jsx("span",{className:"font-medium text-accent-500",children:"Application: Admin"})]}),e.jsxs("div",{className:"ml-4 mt-2 space-y-2",children:[e.jsx("div",{className:"p-2 rounded bg-[var(--bg-tertiary)] border border-[var(--border-color)]",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r.Users,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-sm",children:"Module: Users"})]})}),e.jsx("div",{className:"p-2 rounded bg-[var(--bg-tertiary)] border border-[var(--border-color)]",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r.Key,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-sm",children:"Module: Roles"})]})})]})]})]})})})]})]})})}),e.jsx("section",{id:"contact",className:"py-20 md:py-32",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"relative overflow-hidden rounded-3xl animated-gradient p-px",children:e.jsxs("div",{className:"relative rounded-3xl bg-[var(--bg-primary)] p-8 md:p-16 text-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Prêt à commencer ?"}),e.jsx("p",{className:"max-w-2xl mx-auto text-[var(--text-secondary)] mb-8",children:"Lancez votre projet d'entreprise avec SmartStack. Tout est déjà configuré pour vous permettre de vous concentrer sur votre métier."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs("a",{href:"/register",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-primary-600 hover:bg-primary-700 text-white font-semibold transition-all shadow-lg shadow-primary-500/25 hover:shadow-primary-500/40",children:["Créer un compte",e.jsx(r.ArrowRight,{className:"w-5 h-5"})]}),e.jsx("a",{href:"/contact",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-[var(--bg-tertiary)] hover:bg-[var(--bg-secondary)] border border-[var(--border-color)] font-semibold transition-all",children:"Nous contacter"})]})]})})})})]})}const Zi=["/platform","/personal","/business","/auth","/login","/register","/confirm-email","/forgot-password","/reset-password","/force-change-password","/notifications","/system/docs"];function Mg(s){return Zi.some(t=>s===t||s.startsWith(`${t}/`))}const yl=[{index:!0,element:e.jsx(nd,{})},{path:"administration",element:e.jsx(Ka,{})},{path:"administration/users",element:e.jsx(Wa,{})},{path:"administration/users/list",element:e.jsx(Wa,{})},{path:"administration/users/dashboard",element:e.jsx(Ka,{})},{path:"administration/users/groups",element:e.jsx(wm,{})},{path:"administration/users/groups/:groupId",element:e.jsx(Mm,{})},{path:"administration/users/:userId",element:e.jsx(Nm,{})},{path:"administration/users/references",element:e.jsx(Um,{})},{path:"administration/permissions",element:e.jsx(W.Navigate,{to:"roles",replace:!0})},{path:"administration/permissions/roles",element:e.jsx(Bm,{})},{path:"administration/permissions/roles/:roleId",element:e.jsx(zm,{})},{path:"administration/permissions/permissions",element:e.jsx(_m,{})},{path:"administration/permissions/permissions/:permissionId",element:e.jsx(Xm,{})},{path:"administration/permissions/assignments",element:e.jsx(ex,{})},{path:"administration/applications",element:e.jsx(sx,{})},{path:"administration/applications/dashboard",element:e.jsx(cx,{})},{path:"administration/applications/list",element:e.jsx(mx,{})},{path:"administration/applications/:appId",element:e.jsx(Ox,{})},{path:"administration/ai",element:e.jsx(W.Navigate,{to:"dashboard",replace:!0})},{path:"administration/ai/dashboard",element:e.jsx(qx,{})},{path:"administration/ai/settings",element:e.jsx(tu,{})},{path:"administration/ai/prompts",element:e.jsx(ru,{})},{path:"administration/ai/prompts/create",element:e.jsx(fn,{})},{path:"administration/ai/prompts/:promptId",element:e.jsx(nu,{})},{path:"administration/ai/prompts/:promptId/edit",element:e.jsx(fn,{})},{path:"administration/ai/prompts/blocks",element:e.jsx(du,{})},{path:"administration/ai/prompts/blocks/create",element:e.jsx(Nn,{})},{path:"administration/ai/prompts/blocks/:definitionId",element:e.jsx(xu,{})},{path:"administration/ai/prompts/blocks/:definitionId/edit",element:e.jsx(Nn,{})},{path:"administration/workflows",element:e.jsx(W.Navigate,{to:"list",replace:!0})},{path:"administration/workflows/email-templates",element:e.jsx(wn,{})},{path:"administration/workflows/email-templates/email",element:e.jsx(wn,{})},{path:"administration/workflows/email-templates/sms",element:e.jsx(Au,{})},{path:"administration/workflows/email-templates/create",element:e.jsx(hu,{})},{path:"administration/workflows/email-templates/:templateId",element:e.jsx(gu,{})},{path:"administration/workflows/email-templates/:templateId/edit",element:e.jsx(Su,{})},{path:"administration/workflows/templates",element:e.jsx(W.Navigate,{to:"../email-templates",relative:"path",replace:!0})},{path:"administration/workflows/templates/*",element:e.jsx(dr,{to:"/platform/administration/workflows/email-templates"})},{path:"administration/workflows/list",element:e.jsx(Ru,{})},{path:"administration/workflows/triggers",element:e.jsx(Iu,{})},{path:"administration/workflows/history",element:e.jsx(Vu,{})},{path:"administration/workflows/create",element:e.jsx(Eu,{})},{path:"administration/workflows/:workflowId",element:e.jsx(Pu,{})},{path:"administration/workflows/:workflowId/edit",element:e.jsx(qu,{})},{path:"administration/entra",element:e.jsx(W.Navigate,{to:"dashboard",replace:!0})},{path:"administration/entra/dashboard",element:e.jsx(ph,{})},{path:"administration/entra/groups",element:e.jsx(Un,{})},{path:"administration/entra/groups/:groupId",element:e.jsx(Un,{})},{path:"administration/entra/users",element:e.jsx(vh,{})},{path:"administration/entra/conflicts",element:e.jsx(bh,{})},{path:"administration/entra/settings",element:e.jsx(Nh,{})},{path:"administration/configuration",element:e.jsx(W.Navigate,{to:"settings",replace:!0})},{path:"administration/configuration/settings",element:e.jsx(wh,{}),children:[{index:!0,element:e.jsx(W.Navigate,{to:"general",replace:!0})},{path:"general",element:e.jsx(kh,{})},{path:"file-upload",element:e.jsx(Ch,{})},{path:"legal-file",element:e.jsx(Sh,{})}]},{path:"administration/configuration/appsettings",element:e.jsx(Th,{}),children:[{index:!0,element:e.jsx(W.Navigate,{to:"infrastructure",replace:!0})},{path:"infrastructure",element:e.jsx(Ah,{})},{path:"authentication",element:e.jsx(Eh,{})},{path:"logging",element:e.jsx(Dh,{})},{path:"email",element:e.jsx(Lh,{})},{path:"entra",element:e.jsx(Ph,{})}]},{path:"administration/settings",element:e.jsx(W.Navigate,{to:"../configuration/settings",relative:"path",replace:!0})},{path:"administration/settings/*",element:e.jsx(dr,{to:"/platform/administration/configuration/settings"})},{path:"administration/appsettings",element:e.jsx(W.Navigate,{to:"../configuration/appsettings",relative:"path",replace:!0})},{path:"administration/appsettings/*",element:e.jsx(dr,{to:"/platform/administration/configuration/appsettings"})},{path:"administration/tenants",element:e.jsx(W.Navigate,{to:"dashboard",replace:!0})},{path:"administration/tenants/dashboard",element:e.jsx(Zp,{})},{path:"administration/tenants/system",element:e.jsx(oh,{})},{path:"administration/tenants/business",element:e.jsx(dh,{})},{path:"administration/tenants/personal",element:e.jsx(mh,{})},{path:"administration/tenants/list",element:e.jsx(wa,{})},{path:"administration/tenants/create",element:e.jsx(_p,{})},{path:"administration/tenants/templates",element:e.jsx(eh,{})},{path:"administration/tenants/templates/:templateId",element:e.jsx(rh,{})},{path:"administration/tenants/:tenantId",element:e.jsx(Tr,{})},{path:"administration/tenants/:tenantId/members",element:e.jsx(Tr,{})},{path:"administration/tenants/:tenantId/applications",element:e.jsx(Tr,{})},{path:"administration/email-templates",element:e.jsx(W.Navigate,{to:"../workflows/email-templates",relative:"path",replace:!0})},{path:"administration/email-templates/list",element:e.jsx(W.Navigate,{to:"../../workflows/email-templates",relative:"path",replace:!0})},{path:"administration/email-templates/create",element:e.jsx(W.Navigate,{to:"../../workflows/email-templates/create",relative:"path",replace:!0})},{path:"support",element:e.jsx(W.Navigate,{to:"dashboard",replace:!0})},{path:"support/dashboard",element:e.jsx(Av,{})},{path:"support/tickets",element:e.jsx($h,{})},{path:"support/tickets/new",element:e.jsx(Vv,{})},{path:"support/tickets/TestBug",element:e.jsx(Gv,{})},{path:"support/tickets/:ticketId",element:e.jsx(Cv,{})},{path:"support/my-tickets",element:e.jsx(Iv,{})},{path:"support/admin",element:e.jsx(W.Navigate,{to:"sla",replace:!0})},{path:"support/admin/sla",element:e.jsx(Ev,{})},{path:"support/admin/templates",element:e.jsx($v,{})},{path:"support/admin/escalation",element:e.jsx(Uv,{})},{path:"support/admin/permissions",element:e.jsx(Bv,{})},{path:"support/sla",element:e.jsx(W.Navigate,{to:"../admin/sla",relative:"path",replace:!0})},{path:"support/templates",element:e.jsx(W.Navigate,{to:"../admin/templates",relative:"path",replace:!0})}],Nl=[{index:!0,element:e.jsx(sb,{})},{path:"profile",element:e.jsx(tb,{})},{path:"preferences",element:e.jsx(lb,{})},{path:"tenants",element:e.jsx(W.Navigate,{to:"workspaces",replace:!0})},{path:"tenants/workspaces",element:e.jsx(ib,{})},{path:"tenants/access-requests",element:e.jsx(ob,{})},{path:"portal",element:e.jsx(cb,{})}],wl=[{index:!0,element:e.jsx(xb,{})},{path:"support-client",element:e.jsx(W.Navigate,{to:"my-tickets",replace:!0})},{path:"support-client/my-tickets",element:e.jsx(ub,{})},{path:"support-client/my-tickets/:ticketId",element:e.jsx(pb,{})},{path:"support-client/create-ticket",element:e.jsx(fb,{})}],kl=[{index:!0,element:e.jsx(Hv,{})}],eo=[{element:e.jsx(ui,{}),children:[{path:"/",element:e.jsx($g,{})}]},{path:"/system/docs",element:e.jsx(ki,{}),children:[{index:!0,element:e.jsx(jb,{})},{path:"developer",element:e.jsx(Db,{})},{path:"developer/infrastructure",element:e.jsx(Lb,{})},{path:"developer/installation",element:e.jsx($b,{})},{path:"developer/database",element:e.jsx(qb,{})},{path:"developer/dual-dbcontext",element:e.jsx(Vb,{})},{path:"developer/cross-schema-fk",element:e.jsx(zb,{})},{path:"developer/tenants",element:e.jsx(Hb,{})},{path:"developer/tenants/multi-tenant-mode",element:e.jsx(Kb,{})},{path:"developer/tenants/b2c",element:e.jsx(_b,{})},{path:"developer/multi-tenant-mode",element:e.jsx(W.Navigate,{to:"/system/docs/developer/tenants/multi-tenant-mode",replace:!0})},{path:"developer/teams-integration",element:e.jsx(Xb,{})},{path:"developer/testing/security",element:e.jsx(Qb,{})},{path:"user",element:e.jsx(Jb,{})},{path:"user/architecture",element:e.jsx(Zb,{})},{path:"user/modules",element:e.jsx(sg,{})},{path:"user/support",element:e.jsx(ng,{})},{path:"user/support-dashboard",element:e.jsx(ig,{})},{path:"user/support-tickets",element:e.jsx(xg,{})},{path:"user/support-my-tickets",element:e.jsx(bg,{})},{path:"user/support-sla",element:e.jsx(ag,{})},{path:"user/support-templates",element:e.jsx(yg,{})},{path:"user/support-escalation",element:e.jsx(Tg,{})},{path:"user/ai",element:e.jsx(Ag,{})},{path:"user/settings",element:e.jsx(Rg,{})},{path:"user/theme",element:e.jsx(Ig,{})},{path:"ba",element:e.jsx(yb,{})},{path:"ba/:appCode",element:e.jsx(ml,{})},{path:"ba/:appCode/:moduleCode",element:e.jsx(ml,{})}]},{path:"/system/docs/presentation",element:e.jsx(Eg,{})},{path:"/docs/*",element:e.jsx(W.Navigate,{to:"/system/docs",replace:!0})},{path:"/docs",element:e.jsx(W.Navigate,{to:"/system/docs",replace:!0})},{path:"/login",element:e.jsx(Wc,{})},{path:"/register",element:e.jsx(Xc,{})},{path:"/confirm-email",element:e.jsx(Qc,{})},{path:"/forgot-password",element:e.jsx(Jc,{})},{path:"/reset-password",element:e.jsx(Yc,{})},{path:"/force-change-password",element:e.jsx(Zc,{})},{path:"/auth/callback",element:e.jsx(sd,{})},{path:"/auth/onboarding",element:e.jsx(td,{})},{path:"/t/:slug",element:e.jsx(Ba,{}),children:[{path:"platform",element:e.jsx(ut,{}),children:yl},{path:"personal/myspace",element:e.jsx(Jr,{}),children:Nl},{path:"business",element:e.jsx(Qr,{}),children:wl},{path:"notifications",element:e.jsx(ut,{}),children:kl}]},{element:e.jsx(Ba,{}),children:[{path:"/platform",element:e.jsx(ut,{}),children:yl},{path:"/notifications",element:e.jsx(ut,{}),children:kl},{path:"/personal/myspace",element:e.jsx(Jr,{}),children:Nl},{path:"/business",element:e.jsx(Qr,{}),children:wl}]},{path:"/admin",element:e.jsx(W.Navigate,{to:"/platform",replace:!0})},{path:"/platform/admin/*",element:e.jsx(W.Navigate,{to:"/platform/administration",replace:!0})},{path:"/dashboard",element:e.jsx(W.Navigate,{to:"/personal/myspace",replace:!0})},{path:"/personal",element:e.jsx(W.Navigate,{to:"/personal/myspace",replace:!0})},{path:"*",element:e.jsx(W.Navigate,{to:"/",replace:!0})}],Fg={business:{standard:"/business",tenant:"business"},platform:{standard:"/platform",tenant:"platform"},personal:{standard:"/personal/myspace",tenant:"personal/myspace"}};function so(s,t){return s.map(a=>{const n={...a};for(const[i,o]of Object.entries(Fg)){const c=t[i];if(!c?.length)continue;const x=n.path;(x===o.standard||x===o.tenant)&&(n.children=[...n.children||[],...c])}return n.children&&(n.children=so(n.children,t)),n})}function Ug(s,t,a=eo){const n=[],i=new Set;for(const c of s){if(Mg(c.path)){console.warn(`[SmartStack] Route "${c.path}" is locked and cannot be overridden. Use contextRoutes parameter to inject routes into locked contexts. Locked prefixes: ${Zi.join(", ")}`);continue}i.add(c.path),n.push(c)}const o=t?so(a,t):a;for(const c of o)c.path&&i.has(c.path)||n.push(c);return n}function Bg(){return{captureContext:l.useCallback(()=>{const t=Qs.captureBrowserInfo(),a=qe.getRecentErrors().slice(0,5);return{sourceUrl:window.location.href,browser:{name:t.browser,version:t.browserVersion,language:t.language},os:{name:t.os,version:t.osVersion},device:{type:t.deviceType,screenResolution:t.screenResolution},recentErrors:a.map(n=>({message:n.message,stack:n.stack,component:n.component,timestamp:n.timestamp.toISOString()}))}},[])}}function to(s={}){const t=l.useRef(null),[a,n]=l.useState(Me.HubConnectionState.Disconnected),i=l.useRef(s);i.current=s;const o=l.useCallback(()=>localStorage.getItem("token"),[]),c=l.useCallback(async()=>{const u=o();if(!u){console.warn("SignalR: No token available, skipping connection");return}if(t.current?.state!==Me.HubConnectionState.Connected)try{const d=new Me.HubConnectionBuilder().withUrl("/hubs/notifications",{accessTokenFactory:()=>u}).withAutomaticReconnect({nextRetryDelayInMilliseconds:m=>m.previousRetryCount===0?0:m.previousRetryCount===1?2e3:m.previousRetryCount===2?1e4:m.previousRetryCount<5?3e4:null}).configureLogging(Me.LogLevel.Warning).build();d.on("ReceiveNotification",m=>{i.current.onNotification?.(m)}),d.on("UnreadCountUpdate",m=>{i.current.onUnreadCountUpdate?.(m)}),d.on("PermissionsChanged",()=>{i.current.onPermissionsChanged?.()}),d.onreconnecting(()=>{n(Me.HubConnectionState.Reconnecting),i.current.onConnectionStateChange?.(Me.HubConnectionState.Reconnecting)}),d.onreconnected(()=>{n(Me.HubConnectionState.Connected),i.current.onConnectionStateChange?.(Me.HubConnectionState.Connected)}),d.onclose(()=>{n(Me.HubConnectionState.Disconnected),i.current.onConnectionStateChange?.(Me.HubConnectionState.Disconnected)}),await d.start(),t.current=d,n(Me.HubConnectionState.Connected),i.current.onConnectionStateChange?.(Me.HubConnectionState.Connected),console.log("SignalR: Connected to notification hub")}catch(d){console.error("SignalR: Failed to connect",d),n(Me.HubConnectionState.Disconnected)}},[o]),x=l.useCallback(async()=>{if(t.current)try{await t.current.stop(),t.current=null,n(Me.HubConnectionState.Disconnected),console.log("SignalR: Disconnected from notification hub")}catch(u){console.error("SignalR: Failed to disconnect",u)}},[]);return l.useEffect(()=>(c(),()=>{x()}),[c,x]),l.useEffect(()=>{const u=d=>{d.key==="token"&&(d.newValue?c():x())};return window.addEventListener("storage",u),()=>window.removeEventListener("storage",u)},[c,x]),{connectionState:a,isConnected:a===Me.HubConnectionState.Connected,connect:c,disconnect:x}}function Og(){const{refreshPermissions:s,user:t}=Ke(),{refreshMenu:a}=Ze(),n=l.useRef(!1),i=l.useCallback(async()=>{if(!n.current){n.current=!0;try{await Promise.all([s(),a()]),console.log("[PermissionSync] Permissions and menu refreshed")}catch(x){console.error("[PermissionSync] Failed to refresh permissions:",x)}finally{n.current=!1}}},[s,a]),{isConnected:o,connectionState:c}=to({onPermissionsChanged:i});return{isConnected:o,connectionState:c,isAuthenticated:!!t}}function qg(){return e.jsx("div",{className:"min-h-screen bg-[var(--bg-primary)] flex items-center justify-center p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsx("div",{className:"text-center mb-8",children:e.jsxs("a",{href:"/",className:"inline-flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl animated-gradient flex items-center justify-center",children:e.jsx(r.Layers,{className:"w-6 h-6 text-white"})}),e.jsx("span",{className:"text-2xl font-bold gradient-text",children:"SmartStack"})]})}),e.jsx("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] p-8",children:e.jsx(W.Outlet,{})})]})})}const Gr={granted:{icon:r.Check,color:"var(--success-text)",bg:"var(--success-bg)",label:"Accordé"},denied:{icon:r.X,color:"var(--error-text)",bg:"var(--error-bg)",label:"Refusé"},partial:{icon:r.Minus,color:"var(--warning-text)",bg:"var(--warning-bg)",label:"Partiel"},inherited:{icon:r.Check,color:"var(--info-text)",bg:"var(--info-bg)",label:"Hérité"},none:{icon:r.Minus,color:"var(--text-tertiary)",bg:"transparent",label:"Non défini"}};function Vg({rows:s,columns:t,getRowId:a,getRowLabel:n,getRowGroup:i,getRowSubGroup:o,getRowIcon:c,isRowLocked:x,getRowChildCount:u,getColumnId:d,getColumnLabel:m,getColumnShortLabel:p,isColumnLocked:h,getColumnColor:b,getCellState:v,onCellClick:g,loading:N=!1,showLegend:w=!0,searchable:k=!1,rowColumnWidth:f="250px",cellWidth:j="44px",className:S="",emptyMessage:y="Aucune donnée",canEditLocked:A=!1}){const[L,R]=l.useState(new Set),[D,C]=l.useState(""),T=l.useMemo(()=>{const H=new Map;return s.forEach($=>{const E=i?.($)||"_default",F=o?.($);H.has(E)||H.set(E,{rows:[],subGroups:new Map});const B=H.get(E);F?(B.subGroups.has(F)||B.subGroups.set(F,[]),B.subGroups.get(F).push($)):B.rows.push($)}),H},[s,i,o]),I=l.useCallback((H,$)=>{const E=new Map;return H.forEach((F,B)=>{const J=F.filter(P=>n(P).toLowerCase().includes($));J.length>0&&E.set(B,J)}),E},[n]),M=l.useMemo(()=>{if(!D)return T;const H=D.toLowerCase(),$=new Map;return T.forEach((E,F)=>{const B=E.rows.filter(P=>n(P).toLowerCase().includes(H)),J=I(E.subGroups,H);(B.length>0||J.size>0)&&$.set(F,{rows:B,subGroups:J})}),$},[T,D,n,I]),X=H=>{R($=>{const E=new Set($);return E.has(H)?E.delete(H):E.add(H),E})},O=l.useCallback((H,$,E,F)=>{g&&(E&&!A||F&&!A||g(H,$))},[g,A]),U=l.useCallback((H,$,E,F,B,J,P,q)=>{const K=F.icon,se=g&&(!B||A)&&(!J||A);return e.jsx("td",{className:"px-0 py-1 text-center",style:{width:j},children:e.jsx("button",{type:"button",onClick:()=>O(H,$,B,J),disabled:!se,className:`
|
|
501
|
+
}`})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("ai.sections.reference.dashboard.title")}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-4",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-[var(--bg-secondary)] text-center",children:[e.jsx("div",{className:"text-2xl font-bold",children:"4"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.providersActive")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-purple-500/10 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-purple-600",children:"12"}),e.jsx("div",{className:"text-sm text-purple-600",children:s("ai.sections.reference.dashboard.instances")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-green-500/10 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-green-600",children:"$1,250"}),e.jsx("div",{className:"text-sm text-green-600",children:s("ai.sections.reference.dashboard.monthlyBudget")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-blue-500/10 text-center",children:[e.jsx("div",{className:"text-2xl font-bold text-blue-600",children:"$485.75"}),e.jsx("div",{className:"text-sm text-blue-600",children:s("ai.sections.reference.dashboard.usedThisMonth")})]})]}),e.jsx("h4",{className:"font-medium mb-3",children:s("ai.sections.reference.dashboard.metricsTitle")}),e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.dashboard.metric")}),e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.dashboard.metricDescription")}),e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.dashboard.metricCalculation")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2 font-medium",children:s("ai.sections.reference.dashboard.tokensUsed")}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.tokensUsedDesc")}),e.jsx("td",{className:"py-2 text-[var(--text-tertiary)]",children:s("ai.sections.reference.dashboard.tokensUsedCalc")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2 font-medium",children:s("ai.sections.reference.dashboard.estimatedCost")}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.estimatedCostDesc")}),e.jsx("td",{className:"py-2 text-[var(--text-tertiary)]",children:s("ai.sections.reference.dashboard.estimatedCostCalc")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2 font-medium",children:s("ai.sections.reference.dashboard.requestsPerDay")}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.requestsPerDayDesc")}),e.jsx("td",{className:"py-2 text-[var(--text-tertiary)]",children:s("ai.sections.reference.dashboard.requestsPerDayCalc")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2 font-medium",children:s("ai.sections.reference.dashboard.errorRate")}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.dashboard.errorRateDesc")}),e.jsx("td",{className:"py-2 text-[var(--text-tertiary)]",children:s("ai.sections.reference.dashboard.errorRateCalc")})]})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("ai.sections.reference.routes.title")}),e.jsxs("div",{className:"text-sm space-y-1 font-mono bg-[var(--bg-secondary)] p-3 rounded-lg mb-4",children:[e.jsxs("div",{children:[e.jsx("strong",{children:"Dashboard:"})," /platform/administration/ai"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Prompts:"})," /platform/administration/ai/prompts"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Prompt Detail:"})," /platform/administration/ai/prompts/:id"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Block Definitions:"})," /platform/administration/ai/prompts/blocks"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Output Schemas:"})," /platform/administration/ai/schemas"]}),e.jsxs("div",{children:[e.jsx("strong",{children:"Settings:"})," /platform/administration/ai/settings"]})]}),e.jsx("h4",{className:"font-medium mb-3",children:s("ai.sections.reference.permissions.title")}),e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.permissions.permission")}),e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.permissions.description")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.read"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.read")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.prompts.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.prompts")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.blocks.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.blocks")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.schemas.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.schemas")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.ai.settings.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("ai.sections.reference.permissions.settings")})]})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("ai.sections.reference.api.title")}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm font-mono",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.api.method")}),e.jsx("th",{className:"text-left py-2",children:s("ai.sections.reference.api.endpoint")}),e.jsx("th",{className:"text-left py-2 font-sans",children:s("ai.sections.reference.api.description")})]})}),e.jsxs("tbody",{className:"text-xs",children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/dashboard"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getDashboard")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/prompts"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getPrompts")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/ai/prompts/","{id}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getPromptById")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-yellow-500/10 text-yellow-600",children:"POST"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/prompts"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.createPrompt")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-blue-500/10 text-blue-600",children:"PUT"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/ai/prompts/","{id}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.updatePrompt")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/prompts/block-definitions"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getBlockDefs")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/ai/prompts/block-definitions/","{id}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getBlockDefById")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/schemas"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getSchemas")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/ai/settings/instances"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("ai.sections.reference.api.getInstances")})]})]})]})})]})]}),e.jsxs("div",{className:"flex justify-between pt-6 border-t border-[var(--border-color)]",children:[e.jsxs(W.Link,{to:"/system/docs/user",className:"flex items-center gap-2 text-[var(--text-secondary)] hover:text-[var(--color-primary-600)]",children:[e.jsx(r.ArrowRight,{className:"w-4 h-4 rotate-180"}),s("ai.nav.back")]}),e.jsxs(W.Link,{to:"/system/docs/user/modules",className:"flex items-center gap-2 text-[var(--color-primary-600)] hover:underline",children:[s("ai.nav.next"),e.jsx(r.ArrowRight,{className:"w-4 h-4"})]})]})]})}function Rg(){const{t:s}=ae.useTranslation("docs");return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(W.Link,{to:"/system/docs",className:"hover:text-[var(--color-primary-600)]",children:s("breadcrumb.documentation")}),e.jsx("span",{children:"/"}),e.jsx(W.Link,{to:"/system/docs/user",className:"hover:text-[var(--color-primary-600)]",children:s("breadcrumb.user")}),e.jsx("span",{children:"/"}),e.jsx("span",{children:s("settings.title")})]}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl font-bold mb-4 flex items-center gap-3",children:[e.jsx(r.Settings,{className:"w-8 h-8 text-[var(--color-primary-600)]"}),s("settings.title")]}),e.jsx("p",{className:"text-xl text-[var(--color-primary-600)] font-medium mb-2",children:s("settings.valueProposition")}),e.jsx("p",{className:"text-lg text-[var(--text-secondary)]",children:s("settings.subtitle")}),e.jsxs("div",{className:"mt-4 flex items-center gap-2",children:[e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-blue-500/10 text-blue-600 border border-blue-500/20",children:"Platform"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-purple-500/10 text-purple-600 border border-purple-500/20",children:"Administration"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-amber-500/10 text-amber-600 border border-amber-500/20",children:"Settings"})]})]}),e.jsxs("div",{className:"card p-4 bg-[var(--bg-secondary)]",children:[e.jsx("h3",{className:"font-semibold mb-3",children:s("settings.toc.title")}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 text-sm",children:[e.jsxs("a",{href:"#valeur",className:"text-[var(--color-primary-600)] hover:underline",children:["1. ",s("settings.toc.value")]}),e.jsxs("a",{href:"#cas-usage",className:"text-[var(--color-primary-600)] hover:underline",children:["2. ",s("settings.toc.useCases")]}),e.jsxs("a",{href:"#benefices",className:"text-[var(--color-primary-600)] hover:underline",children:["3. ",s("settings.toc.benefits")]}),e.jsxs("a",{href:"#avant-apres",className:"text-[var(--color-primary-600)] hover:underline",children:["4. ",s("settings.toc.beforeAfter")]}),e.jsxs("a",{href:"#fonctionnalites",className:"text-[var(--color-primary-600)] hover:underline",children:["5. ",s("settings.toc.features")]}),e.jsxs("a",{href:"#guide",className:"text-[var(--color-primary-600)] hover:underline",children:["6. ",s("settings.toc.guide")]}),e.jsxs("a",{href:"#faq",className:"text-[var(--color-primary-600)] hover:underline",children:["7. ",s("settings.toc.faq")]}),e.jsxs("a",{href:"#reference",className:"text-[var(--color-primary-600)] hover:underline",children:["8. ",s("settings.toc.reference")]})]})]}),e.jsxs("section",{id:"valeur",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"1"}),s("settings.sections.value.title")]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsxs("h3",{className:"font-semibold mb-3 flex items-center gap-2",children:[e.jsx(r.Target,{className:"w-5 h-5 text-red-500"}),s("settings.sections.value.problemTitle")]}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s("settings.sections.value.problem")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-green-500/10 border border-green-500/20",children:[e.jsxs("h3",{className:"font-semibold mb-2 flex items-center gap-2 text-green-700 dark:text-green-400",children:[e.jsx(r.Lightbulb,{className:"w-5 h-5"}),s("settings.sections.value.solutionTitle")]}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s("settings.sections.value.solution")})]})]})]}),e.jsxs("section",{id:"cas-usage",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"2"}),s("settings.sections.useCases.title")]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-blue-500/10 flex items-center justify-center",children:e.jsx(r.Settings,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s("settings.sections.useCases.case1.persona")}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.useCases.case1.role")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:s("settings.sections.useCases.situationLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case1.situation")})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-green-600",children:s("settings.sections.useCases.withFeatureLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case1.withFeature")})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-purple-500/10 flex items-center justify-center",children:e.jsx(r.Shield,{className:"w-6 h-6 text-purple-600"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s("settings.sections.useCases.case2.persona")}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.useCases.case2.role")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:s("settings.sections.useCases.situationLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case2.situation")})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-green-600",children:s("settings.sections.useCases.withFeatureLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case2.withFeature")})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-green-500/10 flex items-center justify-center",children:e.jsx(r.FileText,{className:"w-6 h-6 text-green-600"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s("settings.sections.useCases.case3.persona")}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.useCases.case3.role")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:s("settings.sections.useCases.situationLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case3.situation")})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-green-600",children:s("settings.sections.useCases.withFeatureLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case3.withFeature")})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-amber-500/10 flex items-center justify-center",children:e.jsx(r.History,{className:"w-6 h-6 text-amber-600"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold",children:s("settings.sections.useCases.case4.persona")}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.useCases.case4.role")})]})]}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:s("settings.sections.useCases.situationLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case4.situation")})]}),e.jsxs("div",{className:"text-sm",children:[e.jsx("span",{className:"font-medium text-green-600",children:s("settings.sections.useCases.withFeatureLabel")}),e.jsx("p",{children:s("settings.sections.useCases.case4.withFeature")})]})]})]})]})]}),e.jsxs("section",{id:"benefices",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"3"}),s("settings.sections.benefits.title")]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[e.jsxs("div",{className:"card p-6 text-center",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-blue-500/10 flex items-center justify-center",children:e.jsx(r.Clock,{className:"w-8 h-8 text-blue-600"})}),e.jsx("div",{className:"text-3xl font-bold text-blue-600 mb-2",children:s("settings.sections.benefits.time.value")}),e.jsx("div",{className:"font-semibold mb-1",children:s("settings.sections.benefits.time.label")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.benefits.time.description")})]}),e.jsxs("div",{className:"card p-6 text-center",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-green-500/10 flex items-center justify-center",children:e.jsx(r.Shield,{className:"w-8 h-8 text-green-600"})}),e.jsx("div",{className:"text-3xl font-bold text-green-600 mb-2",children:s("settings.sections.benefits.compliance.value")}),e.jsx("div",{className:"font-semibold mb-1",children:s("settings.sections.benefits.compliance.label")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.benefits.compliance.description")})]}),e.jsxs("div",{className:"card p-6 text-center",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-amber-500/10 flex items-center justify-center",children:e.jsx(r.History,{className:"w-8 h-8 text-amber-600"})}),e.jsx("div",{className:"text-3xl font-bold text-amber-600 mb-2",children:s("settings.sections.benefits.audit.value")}),e.jsx("div",{className:"font-semibold mb-1",children:s("settings.sections.benefits.audit.label")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.benefits.audit.description")})]})]})]}),e.jsxs("section",{id:"avant-apres",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"4"}),s("settings.sections.beforeAfter.title")]}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-red-500/5 border border-red-500/20",children:[e.jsxs("h3",{className:"font-semibold mb-4 flex items-center gap-2 text-red-600",children:[e.jsx(r.XCircle,{className:"w-5 h-5"}),s("settings.sections.beforeAfter.beforeTitle")]}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.XCircle,{className:"w-4 h-4 text-red-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.before.1")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.XCircle,{className:"w-4 h-4 text-red-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.before.2")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.XCircle,{className:"w-4 h-4 text-red-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.before.3")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.XCircle,{className:"w-4 h-4 text-red-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.before.4")})]})]})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-green-500/5 border border-green-500/20",children:[e.jsxs("h3",{className:"font-semibold mb-4 flex items-center gap-2 text-green-600",children:[e.jsx(r.CheckCircle,{className:"w-5 h-5"}),s("settings.sections.beforeAfter.afterTitle")]}),e.jsxs("ul",{className:"space-y-2",children:[e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.after.1")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.after.2")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.after.3")})]}),e.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-green-500 mt-0.5 flex-shrink-0"}),e.jsx("span",{children:s("settings.sections.beforeAfter.after.4")})]})]})]})]})})]}),e.jsxs("section",{id:"fonctionnalites",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"5"}),s("settings.sections.features.title")]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-blue-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Settings,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("settings.sections.features.general.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("settings.sections.features.general.description")}),e.jsxs("div",{className:"p-3 rounded-lg bg-[var(--bg-secondary)] text-sm",children:[e.jsxs("span",{className:"font-medium text-[var(--color-primary-600)]",children:[s("settings.sections.features.exampleLabel")," "]}),s("settings.sections.features.general.example")]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-green-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Upload,{className:"w-6 h-6 text-green-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("settings.sections.features.fileUpload.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("settings.sections.features.fileUpload.description")}),e.jsxs("div",{className:"p-3 rounded-lg bg-[var(--bg-secondary)] text-sm",children:[e.jsxs("span",{className:"font-medium text-[var(--color-primary-600)]",children:[s("settings.sections.features.exampleLabel")," "]}),s("settings.sections.features.fileUpload.example")]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.FileText,{className:"w-6 h-6 text-amber-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("settings.sections.features.legalFile.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("settings.sections.features.legalFile.description")}),e.jsxs("div",{className:"p-3 rounded-lg bg-amber-500/10 border border-amber-500/20 text-sm",children:[e.jsxs("span",{className:"font-medium text-amber-600",children:[s("settings.sections.features.legalWarning")," "]}),s("settings.sections.features.legalFile.warning")]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-purple-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Database,{className:"w-6 h-6 text-purple-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("settings.sections.features.storageInfo.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("settings.sections.features.storageInfo.description")}),e.jsxs("div",{className:"flex flex-wrap gap-2 mt-3",children:[e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-purple-500/10 text-purple-600 border border-purple-500/20",children:"AppSettings"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-green-500/10 text-green-600 border border-green-500/20",children:"Computed"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-orange-500/10 text-orange-600 border border-orange-500/20",children:"Environment"})]})]})]})})]})]}),e.jsxs("section",{id:"guide",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"6"}),s("settings.sections.guide.title")]}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"1"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("settings.sections.guide.step1.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mb-3",children:s("settings.sections.guide.step1.description")}),e.jsxs("div",{className:"flex items-center gap-2 p-3 bg-[var(--bg-secondary)] rounded-lg font-mono text-sm",children:[e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Platform"}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Administration"}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-[var(--color-primary-600)] font-semibold",children:"Settings"})]})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"2"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("settings.sections.guide.step2.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.guide.step2.description")})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"3"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("settings.sections.guide.step3.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.guide.step3.description")})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex flex-col items-center",children:e.jsx("div",{className:"w-10 h-10 rounded-full bg-green-500 text-white flex items-center justify-center font-bold",children:e.jsx(r.CheckCircle,{className:"w-5 h-5"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("settings.sections.guide.step4.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.guide.step4.description")})]})]})]})})]}),e.jsxs("section",{id:"faq",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"7"}),s("settings.sections.faq.title")]}),e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"card p-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:s("settings.sections.faq.q1.question")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.faq.q1.answer")})]}),e.jsxs("div",{className:"card p-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:s("settings.sections.faq.q2.question")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.faq.q2.answer")})]}),e.jsxs("div",{className:"card p-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:s("settings.sections.faq.q3.question")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.faq.q3.answer")})]}),e.jsxs("div",{className:"card p-4",children:[e.jsx("h3",{className:"font-medium mb-2",children:s("settings.sections.faq.q4.question")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("settings.sections.faq.q4.answer")})]})]})]}),e.jsxs("section",{id:"reference",className:"scroll-mt-4 space-y-6",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"8"}),s("settings.sections.reference.title")]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.architecture.title")}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[e.jsxs("div",{className:"text-center p-4 bg-[var(--bg-secondary)] rounded-lg",children:[e.jsx(r.Settings,{className:"w-8 h-8 mx-auto text-blue-600 mb-2"}),e.jsx("div",{className:"font-medium",children:"General"}),e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:s("settings.sections.reference.architecture.general")})]}),e.jsxs("div",{className:"text-center p-4 bg-[var(--bg-secondary)] rounded-lg",children:[e.jsx(r.Upload,{className:"w-8 h-8 mx-auto text-green-600 mb-2"}),e.jsx("div",{className:"font-medium",children:"File Upload"}),e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:s("settings.sections.reference.architecture.fileUpload")})]}),e.jsxs("div",{className:"text-center p-4 bg-[var(--bg-secondary)] rounded-lg",children:[e.jsx(r.FileText,{className:"w-8 h-8 mx-auto text-amber-600 mb-2"}),e.jsx("div",{className:"font-medium",children:"Legal File"}),e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:s("settings.sections.reference.architecture.legalFile")})]}),e.jsxs("div",{className:"text-center p-4 bg-[var(--bg-secondary)] rounded-lg",children:[e.jsx(r.Database,{className:"w-8 h-8 mx-auto text-purple-600 mb-2"}),e.jsx("div",{className:"font-medium",children:"Storage Info"}),e.jsx("p",{className:"text-xs text-[var(--text-tertiary)]",children:s("settings.sections.reference.architecture.storageInfo")})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.sources.title")}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-[var(--bg-secondary)]",children:[e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.sources.source")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.sources.description")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.sources.editable")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-1 text-xs rounded bg-[var(--color-accent-500)]/10 text-[var(--color-accent-600)]",children:"Database"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:s("settings.sections.reference.sources.database")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(r.CheckCircle,{className:"w-5 h-5 text-green-500"})})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-1 text-xs rounded bg-purple-500/10 text-purple-600",children:"AppSettings"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:s("settings.sections.reference.sources.appSettings")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(r.Lock,{className:"w-5 h-5 text-[var(--text-tertiary)]"})})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-1 text-xs rounded bg-green-500/10 text-green-600",children:"Computed"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:s("settings.sections.reference.sources.computed")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(r.Lock,{className:"w-5 h-5 text-[var(--text-tertiary)]"})})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-1 text-xs rounded bg-orange-500/10 text-orange-600",children:"Environment"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:s("settings.sections.reference.sources.environment")}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(r.Lock,{className:"w-5 h-5 text-[var(--text-tertiary)]"})})]})]})]})})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.categories.title")}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"bg-[var(--bg-secondary)]",children:[e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.categories.category")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.categories.key")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.categories.type")}),e.jsx("th",{className:"text-left py-3 px-4",children:s("settings.sections.reference.categories.default")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"Session"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"IdleTimeoutMinutes"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-500/10 text-blue-600",children:"Int"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"20"})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"Session"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"MaxConcurrentSessions"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-500/10 text-blue-600",children:"Int"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"5"})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"FileUpload"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"MaxFileSizeMB"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-500/10 text-blue-600",children:"Int"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"10"})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"FileUpload"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"AllowedExtensions"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-purple-500/10 text-purple-600",children:"Json"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)] font-mono text-xs",children:'[".jpg", ".png", ...]'})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"LegalFile"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"RetentionDays"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-500/10 text-blue-600",children:"Int"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"3653 (10 ans)"})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-3 px-4 font-medium",children:"LegalFile"}),e.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:"EnableWorm"}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-green-500/10 text-green-600",children:"Bool"})}),e.jsx("td",{className:"py-3 px-4 text-[var(--text-secondary)]",children:"true"})]})]})]})})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.permissions.title")}),e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("settings.sections.reference.permissions.permission")}),e.jsx("th",{className:"text-left py-2",children:s("settings.sections.reference.permissions.description")})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.settings.*"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("settings.sections.reference.permissions.all")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.settings.read"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("settings.sections.reference.permissions.read")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2",children:e.jsx("code",{className:"px-2 py-0.5 bg-[var(--bg-secondary)] rounded text-xs",children:"platform.administration.settings.update"})}),e.jsx("td",{className:"py-2 text-[var(--text-secondary)]",children:s("settings.sections.reference.permissions.update")})]})]})]})]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("h3",{className:"font-semibold mb-4",children:s("settings.sections.reference.api.title")}),e.jsx("div",{className:"overflow-x-auto",children:e.jsxs("table",{className:"w-full text-sm font-mono",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("th",{className:"text-left py-2",children:s("settings.sections.reference.api.method")}),e.jsx("th",{className:"text-left py-2",children:s("settings.sections.reference.api.endpoint")}),e.jsx("th",{className:"text-left py-2 font-sans",children:s("settings.sections.reference.api.description")})]})}),e.jsxs("tbody",{className:"text-xs",children:[e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsx("td",{className:"py-2",children:"/api/platform/administration/settings"}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.getAll")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/settings/","{category}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.getByCategory")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-blue-500/10 text-blue-600",children:"PUT"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/settings/","{category}","/","{key}"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.update")})]}),e.jsxs("tr",{className:"border-b border-[var(--border-color)]",children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-yellow-500/10 text-yellow-600",children:"POST"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/settings/","{category}","/","{key}","/reset"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.reset")})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"py-2",children:e.jsx("span",{className:"px-2 py-0.5 rounded bg-green-500/10 text-green-600",children:"GET"})}),e.jsxs("td",{className:"py-2",children:["/api/platform/administration/settings/","{category}","/","{key}","/history"]}),e.jsx("td",{className:"py-2 font-sans text-[var(--text-secondary)]",children:s("settings.sections.reference.api.history")})]})]})]})})]})]}),e.jsxs("div",{className:"flex justify-between pt-6 border-t border-[var(--border-color)]",children:[e.jsxs(W.Link,{to:"/system/docs/user",className:"flex items-center gap-2 text-[var(--text-secondary)] hover:text-[var(--color-primary-600)]",children:[e.jsx(r.ArrowRight,{className:"w-4 h-4 rotate-180"}),s("settings.nav.back")]}),e.jsxs(W.Link,{to:"/system/docs/user/ai",className:"flex items-center gap-2 text-[var(--color-primary-600)] hover:underline",children:[s("settings.nav.next"),e.jsx(r.ArrowRight,{className:"w-4 h-4"})]})]})]})}function Ig(){const{t:s}=ae.useTranslation("docs");return e.jsxs("div",{className:"space-y-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(W.Link,{to:"/system/docs",className:"hover:text-[var(--color-primary-600)]",children:s("breadcrumb.documentation")}),e.jsx("span",{children:"/"}),e.jsx(W.Link,{to:"/system/docs/user",className:"hover:text-[var(--color-primary-600)]",children:s("breadcrumb.user")}),e.jsx("span",{children:"/"}),e.jsx("span",{children:s("theme.title")})]}),e.jsxs("div",{children:[e.jsxs("h1",{className:"text-3xl font-bold mb-4 flex items-center gap-3",children:[e.jsx(r.Palette,{className:"w-8 h-8 text-[var(--color-primary-600)]"}),s("theme.title")]}),e.jsx("p",{className:"text-xl text-[var(--color-primary-600)] font-medium mb-2",children:s("theme.valueProposition")}),e.jsx("p",{className:"text-lg text-[var(--text-secondary)]",children:s("theme.subtitle")}),e.jsxs("div",{className:"mt-4 flex items-center gap-2",children:[e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-violet-500/10 text-violet-600 border border-violet-500/20",children:"Personal"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-indigo-500/10 text-indigo-600 border border-indigo-500/20",children:"My Space"}),e.jsx("span",{className:"px-3 py-1 text-xs rounded-full bg-pink-500/10 text-pink-600 border border-pink-500/20",children:"Preferences"})]})]}),e.jsxs("div",{className:"card p-4 bg-[var(--bg-secondary)]",children:[e.jsx("h3",{className:"font-semibold mb-3",children:s("theme.toc.title")}),e.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-2 text-sm",children:[e.jsxs("a",{href:"#valeur",className:"text-[var(--color-primary-600)] hover:underline",children:["1. ",s("theme.toc.value")]}),e.jsxs("a",{href:"#scope",className:"text-[var(--color-primary-600)] hover:underline",children:["2. ",s("theme.toc.scope")]}),e.jsxs("a",{href:"#fonctionnalites",className:"text-[var(--color-primary-600)] hover:underline",children:["3. ",s("theme.toc.features")]}),e.jsxs("a",{href:"#guide",className:"text-[var(--color-primary-600)] hover:underline",children:["4. ",s("theme.toc.guide")]})]})]}),e.jsxs("section",{id:"valeur",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"1"}),s("theme.sections.value.title")]}),e.jsxs("div",{className:"card p-6",children:[e.jsxs("div",{className:"mb-6",children:[e.jsxs("h3",{className:"font-semibold mb-3 flex items-center gap-2",children:[e.jsx(r.Target,{className:"w-5 h-5 text-red-500"}),s("theme.sections.value.problemTitle")]}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s("theme.sections.value.problem")})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-green-500/10 border border-green-500/20",children:[e.jsxs("h3",{className:"font-semibold mb-2 flex items-center gap-2 text-green-700 dark:text-green-400",children:[e.jsx(r.Lightbulb,{className:"w-5 h-5"}),s("theme.sections.value.solutionTitle")]}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s("theme.sections.value.solution")})]})]})]}),e.jsxs("section",{id:"scope",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"2"}),s("theme.sections.scope.title")]}),e.jsxs("div",{className:"card p-6",children:[e.jsx("p",{className:"text-[var(--text-secondary)] mb-6",children:s("theme.sections.scope.description")}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[e.jsxs("div",{className:"p-4 rounded-lg bg-emerald-500/10 border border-emerald-500/20",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-emerald-500/20 flex items-center justify-center",children:e.jsx(r.Globe,{className:"w-5 h-5 text-emerald-600"})}),e.jsx("div",{children:e.jsx("h4",{className:"font-semibold text-emerald-700 dark:text-emerald-400",children:s("theme.sections.scope.global.title")})})]}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.scope.global.description")}),e.jsxs("ul",{className:"mt-3 space-y-1.5",children:[e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-500"}),e.jsx("span",{children:s("theme.sections.scope.global.benefit1")})]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-500"}),e.jsx("span",{children:s("theme.sections.scope.global.benefit2")})]})]})]}),e.jsxs("div",{className:"p-4 rounded-lg bg-blue-500/10 border border-blue-500/20",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-blue-500/20 flex items-center justify-center",children:e.jsx(r.Building2,{className:"w-5 h-5 text-blue-600"})}),e.jsx("div",{children:e.jsx("h4",{className:"font-semibold text-blue-700 dark:text-blue-400",children:s("theme.sections.scope.tenant.title")})})]}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.scope.tenant.description")}),e.jsxs("ul",{className:"mt-3 space-y-1.5",children:[e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-blue-500"}),e.jsx("span",{children:s("theme.sections.scope.tenant.benefit1")})]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-blue-500"}),e.jsx("span",{children:s("theme.sections.scope.tenant.benefit2")})]})]})]})]}),e.jsx("div",{className:"mt-4 p-3 rounded-lg bg-amber-500/10 border border-amber-500/20",children:e.jsxs("p",{className:"text-sm text-amber-700 dark:text-amber-400",children:[e.jsx("strong",{children:s("theme.sections.scope.note.label")})," ",s("theme.sections.scope.note.content")]})})]})]}),e.jsxs("section",{id:"fonctionnalites",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"3"}),s("theme.sections.features.title")]}),e.jsxs("div",{className:"space-y-4",children:[e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Sun,{className:"w-6 h-6 text-amber-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("theme.sections.features.mode.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("theme.sections.features.mode.description")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsxs("span",{className:"px-3 py-1.5 text-sm rounded-lg bg-amber-500/10 text-amber-600 border border-amber-500/20 flex items-center gap-2",children:[e.jsx(r.Sun,{className:"w-4 h-4"})," ",s("theme.sections.features.mode.light")]}),e.jsxs("span",{className:"px-3 py-1.5 text-sm rounded-lg bg-indigo-500/10 text-indigo-600 border border-indigo-500/20 flex items-center gap-2",children:[e.jsx(r.Moon,{className:"w-4 h-4"})," ",s("theme.sections.features.mode.dark")]})]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-violet-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Palette,{className:"w-6 h-6 text-violet-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("theme.sections.features.accent.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("theme.sections.features.accent.description")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-indigo-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-violet-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-emerald-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-amber-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-rose-500"}),e.jsx("span",{className:"w-8 h-8 rounded-full bg-cyan-500"})]})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-blue-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Layers,{className:"w-6 h-6 text-blue-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("theme.sections.features.palette.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("theme.sections.features.palette.description")})]})]})}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-lg bg-slate-500/10 flex items-center justify-center flex-shrink-0",children:e.jsx(r.Square,{className:"w-6 h-6 text-slate-600"})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h3",{className:"font-semibold mb-2",children:s("theme.sections.features.corners.title")}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-3",children:s("theme.sections.features.corners.description")}),e.jsxs("div",{className:"flex gap-2",children:[e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"0"},children:s("theme.sections.features.corners.none")}),e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"4px"},children:s("theme.sections.features.corners.small")}),e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"8px"},children:s("theme.sections.features.corners.medium")}),e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"12px"},children:s("theme.sections.features.corners.large")}),e.jsx("span",{className:"px-3 py-1.5 text-xs bg-[var(--bg-tertiary)]",style:{borderRadius:"9999px"},children:s("theme.sections.features.corners.full")})]})]})]})})]})]}),e.jsxs("section",{id:"guide",className:"scroll-mt-4",children:[e.jsxs("h2",{className:"text-2xl font-bold mb-4 flex items-center gap-2",children:[e.jsx("span",{className:"w-8 h-8 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-sm",children:"4"}),s("theme.sections.guide.title")]}),e.jsx("div",{className:"card p-6",children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"1"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("theme.sections.guide.step1.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mb-3",children:s("theme.sections.guide.step1.description")}),e.jsxs("div",{className:"flex items-center gap-2 p-3 bg-[var(--bg-secondary)] rounded-lg font-mono text-sm",children:[e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"Personal"}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-[var(--text-tertiary)]",children:"My Space"}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-[var(--color-primary-600)] font-semibold",children:"Preferences"})]})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"2"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("theme.sections.guide.step2.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.guide.step2.description")})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center font-bold",children:"3"}),e.jsx("div",{className:"w-0.5 h-full bg-[var(--border-color)] mt-2"})]}),e.jsxs("div",{className:"flex-1 pb-6",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("theme.sections.guide.step3.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.guide.step3.description")})]})]}),e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"flex flex-col items-center",children:e.jsx("div",{className:"w-10 h-10 rounded-full bg-green-500 text-white flex items-center justify-center font-bold",children:e.jsx(r.CheckCircle,{className:"w-5 h-5"})})}),e.jsxs("div",{className:"flex-1",children:[e.jsx("h4",{className:"font-semibold mb-2",children:s("theme.sections.guide.step4.title")}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)]",children:s("theme.sections.guide.step4.description")})]})]})]})})]}),e.jsxs("div",{className:"flex justify-between pt-6 border-t border-[var(--border-color)]",children:[e.jsxs(W.Link,{to:"/system/docs/user",className:"flex items-center gap-2 text-[var(--text-secondary)] hover:text-[var(--color-primary-600)]",children:[e.jsx(r.ArrowRight,{className:"w-4 h-4 rotate-180"}),s("theme.nav.back")]}),e.jsxs(W.Link,{to:"/system/docs/user/modules",className:"flex items-center gap-2 text-[var(--color-primary-600)] hover:underline",children:[s("theme.nav.next"),e.jsx(r.ArrowRight,{className:"w-4 h-4"})]})]})]})}function Eg(){const{t:s}=ae.useTranslation("docs"),[t,a]=l.useState(0),[n,i]=l.useState(!1),o=[{id:"architecture-flow",title:s("presentation.slides.architecture.title"),background:"from-[#0a0a12] via-[#0f1029] to-[#0a0a12]",content:e.jsxs("div",{className:"h-full flex flex-col text-white px-4 py-4 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[600px] h-[300px] bg-blue-500/10 rounded-full blur-[100px]"}),e.jsx("div",{className:"absolute bottom-0 left-1/4 w-[400px] h-[400px] bg-red-500/5 rounded-full blur-[120px]"}),e.jsx("div",{className:"absolute bottom-0 right-1/4 w-[400px] h-[400px] bg-emerald-500/5 rounded-full blur-[120px]"}),e.jsxs("div",{className:"relative z-10 flex justify-center gap-8 mb-6",children:[e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-blue-500/30 to-indigo-500/30 rounded-2xl blur opacity-0 group-hover:opacity-100 transition-all"}),e.jsxs("div",{className:"relative flex items-center gap-4 px-8 py-4 rounded-xl bg-gradient-to-br from-blue-600/90 to-blue-800/90 border border-blue-400/30 shadow-2xl shadow-blue-500/20",children:[e.jsx("div",{className:"w-14 h-14 rounded-xl bg-white/10 flex items-center justify-center",children:e.jsx(r.Server,{className:"w-8 h-8 text-blue-200"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xl font-bold",children:"ERP"}),e.jsx("div",{className:"text-blue-200/70 text-sm",children:s("common:examples")})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-r from-indigo-500/30 to-purple-500/30 rounded-2xl blur opacity-0 group-hover:opacity-100 transition-all"}),e.jsxs("div",{className:"relative flex items-center gap-4 px-8 py-4 rounded-xl bg-gradient-to-br from-indigo-600/90 to-indigo-800/90 border border-indigo-400/30 shadow-2xl shadow-indigo-500/20",children:[e.jsx("div",{className:"w-14 h-14 rounded-xl bg-white/10 flex items-center justify-center",children:e.jsx(r.Database,{className:"w-8 h-8 text-indigo-200"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xl font-bold",children:s("presentation.slides.architecture.title")}),e.jsxs("div",{className:"text-indigo-200/70 text-sm",children:["CRM, ",s("common:examples")]})]})]})]})]}),e.jsxs("div",{className:"relative z-10 flex justify-center items-start gap-32 mb-4",children:[e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"px-4 py-1.5 rounded-full bg-red-500/20 border border-red-500/30 mb-2",children:e.jsx("span",{className:"text-red-400 text-sm font-medium",children:s("presentation.slides.problem.title")})}),e.jsx("div",{className:"w-1 h-12 bg-gradient-to-b from-blue-500/50 via-red-500/50 to-red-500/80 rounded-full"}),e.jsx(r.ArrowDown,{className:"w-6 h-6 text-red-400 -mt-1"})]}),e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"px-4 py-1.5 rounded-full bg-emerald-500/20 border border-emerald-500/30 mb-2",children:e.jsx("span",{className:"text-emerald-400 text-sm font-medium",children:s("common:automation")})}),e.jsx("div",{className:"w-1 h-12 bg-gradient-to-b from-blue-500/50 via-emerald-500/50 to-emerald-500/80 rounded-full"}),e.jsx(r.ArrowDown,{className:"w-6 h-6 text-emerald-400 -mt-1"})]})]}),e.jsxs("div",{className:"relative z-10 flex-1 grid grid-cols-2 gap-8 max-w-6xl mx-auto w-full",children:[e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-br from-red-500/20 to-orange-500/10 rounded-3xl blur-xl"}),e.jsxs("div",{className:"relative h-full rounded-2xl bg-gradient-to-br from-slate-900/95 to-slate-950/95 border border-red-500/20 p-6 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-red-500 to-orange-500 flex items-center justify-center shadow-lg shadow-red-500/30",children:e.jsx(r.XCircle,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-red-400",children:s("presentation.slides.problem.title")}),e.jsx("p",{className:"text-slate-500 text-sm",children:s("presentation.slides.problem.excel.item1")})]})]}),e.jsxs("div",{className:"flex-1 flex flex-col justify-center space-y-4",children:[e.jsxs("div",{className:"flex items-center gap-3 p-3 rounded-xl bg-slate-800/50 border border-slate-700/50",children:[e.jsx(r.Wrench,{className:"w-5 h-5 text-amber-400"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"text-sm font-medium text-slate-300",children:"Actions manuelles"}),e.jsx("div",{className:"text-xs text-slate-500",children:"Copier-coller, ressaisie, VBA fragile"})]})]}),e.jsxs("div",{className:"flex items-center justify-center gap-3 py-4",children:[["v1","v2","v3"].map((d,m)=>e.jsxs("div",{className:"relative group/file",children:[e.jsxs("div",{className:"w-16 h-20 rounded-lg bg-gradient-to-br from-green-800/40 to-green-900/60 border border-green-500/30 flex flex-col items-center justify-center shadow-lg hover:scale-105 transition-transform",children:[e.jsx(r.FileSpreadsheet,{className:"w-6 h-6 text-green-400 mb-1"}),e.jsxs("span",{className:"text-[10px] text-green-300/70",children:[d,"_final.xlsx"]})]}),m<2&&e.jsx("div",{className:"absolute -right-2 top-1/2 w-2 h-px bg-slate-600"})]},d)),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-slate-600 mx-2"}),e.jsx("div",{className:"px-3 py-2 rounded-lg bg-amber-900/30 border border-amber-500/30",children:e.jsxs("span",{className:"text-xs text-amber-300",children:["Reconciliation",e.jsx("br",{}),"manuelle"]})})]}),e.jsx("div",{className:"flex justify-center gap-6",children:["Marie","Paul","Julie"].map(d=>e.jsxs("div",{className:"flex flex-col items-center opacity-60",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-slate-700/50 border-2 border-dashed border-slate-600 flex items-center justify-center",children:e.jsx(r.Users,{className:"w-5 h-5 text-slate-500"})}),e.jsx("span",{className:"text-xs text-slate-500 mt-1",children:d}),e.jsx("span",{className:"text-[10px] text-red-400/70",children:"Isole"})]},d))})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3 mt-4 pt-4 border-t border-slate-700/50",children:[e.jsxs("div",{className:"text-center p-3 rounded-xl bg-red-950/30 border border-red-500/20",children:[e.jsx(r.Clock,{className:"w-5 h-5 text-red-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-red-400",children:"5j / mois"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"perdus"})]}),e.jsxs("div",{className:"text-center p-3 rounded-xl bg-red-950/30 border border-red-500/20",children:[e.jsx(r.AlertTriangle,{className:"w-5 h-5 text-red-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-red-400",children:"Erreurs"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"inevitables"})]}),e.jsxs("div",{className:"text-center p-3 rounded-xl bg-red-950/30 border border-red-500/20",children:[e.jsx(r.Ban,{className:"w-5 h-5 text-red-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-red-400",children:"0 securite"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"ni audit"})]})]})]})]}),e.jsxs("div",{className:"relative group",children:[e.jsx("div",{className:"absolute -inset-1 bg-gradient-to-br from-emerald-500/20 to-cyan-500/10 rounded-3xl blur-xl"}),e.jsxs("div",{className:"relative h-full rounded-2xl bg-gradient-to-br from-slate-900/95 to-slate-950/95 border border-emerald-500/30 p-6 flex flex-col",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-emerald-500 to-cyan-500 flex items-center justify-center shadow-lg shadow-emerald-500/30",children:e.jsx(r.Layers,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-2xl font-bold text-emerald-400",children:s("presentation.slides.solution.title")}),e.jsx("p",{className:"text-slate-500 text-sm",children:s("presentation.slides.solution.unified.desc")})]})]}),e.jsxs("div",{className:"flex-1 flex flex-col justify-center space-y-4",children:[e.jsx("div",{className:"flex justify-center gap-4",children:["Marie","Paul","Julie"].map(d=>e.jsxs("div",{className:"flex flex-col items-center",children:[e.jsx("div",{className:"w-10 h-10 rounded-full bg-gradient-to-br from-emerald-500/30 to-cyan-500/30 border-2 border-emerald-500/50 flex items-center justify-center shadow-lg shadow-emerald-500/20",children:e.jsx(r.Users,{className:"w-5 h-5 text-emerald-300"})}),e.jsx("span",{className:"text-xs text-emerald-300 mt-1",children:d})]},d))}),e.jsx("div",{className:"flex justify-center",children:e.jsx(r.ArrowDown,{className:"w-5 h-5 text-emerald-500/50"})}),e.jsxs("div",{className:"flex items-center justify-center gap-3 p-3 rounded-xl bg-blue-950/40 border border-blue-500/30 mx-4",children:[e.jsx(r.Shield,{className:"w-5 h-5 text-blue-400"}),e.jsx("span",{className:"text-sm font-medium text-blue-300",children:"Entra ID"}),e.jsx("span",{className:"text-slate-500",children:"+"}),e.jsx(r.Globe,{className:"w-5 h-5 text-cyan-400"}),e.jsx("span",{className:"text-sm font-medium text-cyan-300",children:"API REST"})]}),e.jsx("div",{className:"flex justify-center",children:e.jsx(r.ArrowDown,{className:"w-5 h-5 text-emerald-500/50"})}),e.jsx("div",{className:"flex justify-center gap-4",children:[{icon:r.ClipboardList,name:"Suivi Projets",color:"emerald"},{icon:r.Calculator,name:"Budget",color:"purple"},{icon:r.TrendingUp,name:"Reporting",color:"cyan"}].map(d=>e.jsxs("div",{className:`w-24 h-24 rounded-xl bg-gradient-to-br from-${d.color}-900/50 to-${d.color}-950/70 border border-${d.color}-500/40 flex flex-col items-center justify-center p-2 hover:scale-105 transition-transform cursor-pointer shadow-lg`,children:[e.jsx(d.icon,{className:`w-7 h-7 text-${d.color}-400 mb-2`}),e.jsx("span",{className:`text-xs text-${d.color}-300 text-center leading-tight`,children:d.name})]},d.name))})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-3 mt-4 pt-4 border-t border-emerald-500/20",children:[e.jsxs("div",{className:"text-center p-3 rounded-xl bg-emerald-950/40 border border-emerald-500/30",children:[e.jsx(r.RefreshCw,{className:"w-5 h-5 text-emerald-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-emerald-400",children:"Automatise"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"temps reel"})]}),e.jsxs("div",{className:"text-center p-3 rounded-xl bg-blue-950/40 border border-blue-500/30",children:[e.jsx(r.Eye,{className:"w-5 h-5 text-blue-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-blue-400",children:"Tracable"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"audit complet"})]}),e.jsxs("div",{className:"text-center p-3 rounded-xl bg-purple-950/40 border border-purple-500/30",children:[e.jsx(r.Shield,{className:"w-5 h-5 text-purple-400 mx-auto mb-1"}),e.jsx("div",{className:"text-sm font-bold text-purple-400",children:"Securise"}),e.jsx("div",{className:"text-[10px] text-slate-500",children:"enterprise"})]})]})]})]})]})]})},{id:"transformation",title:s("presentation.slides.problem.title"),content:e.jsxs("div",{className:"h-full flex flex-col justify-center",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-emerald-100 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 text-sm font-medium mb-4",children:[e.jsx(r.Calculator,{className:"w-4 h-4"}),"Cas d'usage : Direction Financiere"]}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[var(--text-primary)]",children:'"On a toujours fait comme ca..."'})]}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 max-w-6xl mx-auto",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-3 left-4 px-3 py-1 bg-red-500 text-white text-sm font-bold rounded-full z-10",children:"AVANT"}),e.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border-2 border-red-200 dark:border-red-800 rounded-2xl p-6 h-full",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-red-900/30 rounded-xl",children:[e.jsx(r.FileSpreadsheet,{className:"w-8 h-8 text-red-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Budget_2024_v12_FINAL_v2.xlsx"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"15 onglets, 200 formules, 3 versions en circulation"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-red-900/30 rounded-xl",children:[e.jsx(r.Clock,{className:"w-8 h-8 text-red-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Cloture mensuelle : 5 jours"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Consolidation manuelle de 12 fichiers departements"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-red-900/30 rounded-xl",children:[e.jsx(r.AlertTriangle,{className:"w-8 h-8 text-red-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Erreur decouverte en juin"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Une formule cassee depuis janvier, 50K d'ecart"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-red-900/30 rounded-xl",children:[e.jsx(r.UserX,{className:"w-8 h-8 text-red-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Marc est en vacances"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Lui seul comprend comment fonctionne le fichier"})]})]})]})})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-3 left-4 px-3 py-1 bg-emerald-500 text-white text-sm font-bold rounded-full z-10",children:"AVEC SMARTSTACK"}),e.jsx("div",{className:"bg-emerald-50 dark:bg-emerald-900/20 border-2 border-emerald-200 dark:border-emerald-800 rounded-2xl p-6 h-full",children:e.jsxs("div",{className:"space-y-4",children:[e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-emerald-900/30 rounded-xl",children:[e.jsx(r.Database,{className:"w-8 h-8 text-emerald-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Une seule source de verite"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Base de donnees centralisee, plus de versions multiples"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-emerald-900/30 rounded-xl",children:[e.jsx(r.Zap,{className:"w-8 h-8 text-emerald-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Cloture mensuelle : 4 heures"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Consolidation automatique en temps reel"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-emerald-900/30 rounded-xl",children:[e.jsx(r.CheckCheck,{className:"w-8 h-8 text-emerald-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Controles automatiques"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Alertes en temps reel si anomalie detectee"})]})]}),e.jsxs("div",{className:"flex items-start gap-3 p-3 bg-white dark:bg-emerald-900/30 rounded-xl",children:[e.jsx(r.Users,{className:"w-8 h-8 text-emerald-500 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold text-[var(--text-primary)]",children:"Autonomie complete"}),e.jsx("div",{className:"text-sm text-[var(--text-secondary)]",children:"Interface intuitive, documentation integree"})]})]})]})})]})]})]})},{id:"use-cases",title:s("presentation.slides.problem.powerApps.title"),background:"from-[#0f172a] via-[#1e1b4b] to-[#0f172a]",content:e.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-white px-4 relative overflow-hidden",children:[e.jsx("div",{className:"absolute top-0 left-1/4 w-[500px] h-[500px] bg-blue-500/10 rounded-full blur-[150px]"}),e.jsx("div",{className:"absolute bottom-0 right-1/4 w-[500px] h-[500px] bg-purple-500/10 rounded-full blur-[150px]"}),e.jsxs("div",{className:"relative z-10 text-center mb-8",children:[e.jsx("p",{className:"text-sm uppercase tracking-[0.3em] text-slate-500 mb-3",children:"Ils l'ont fait"}),e.jsx("h2",{className:"text-3xl md:text-4xl font-bold bg-gradient-to-r from-white via-slate-200 to-slate-400 bg-clip-text text-transparent",children:"Cas d'usage reels"})]}),e.jsxs("div",{className:"relative z-10 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 max-w-6xl w-full",children:[e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-amber-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-amber-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-amber-400 to-orange-500 flex items-center justify-center shadow-lg shadow-amber-500/20",children:e.jsx(r.HardHat,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Groupe DUVAL"}),e.jsx("p",{className:"text-xs text-amber-400/80",children:"BTP - 180 employes"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:"35 chefs de chantier envoyaient leurs rapports par email Excel chaque semaine..."}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Consolidation"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"2 jours"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"2 heures"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Heures recuperees"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"47 000€/an"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-rose-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-rose-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-rose-400 to-pink-500 flex items-center justify-center shadow-lg shadow-rose-500/20",children:e.jsx(r.Stethoscope,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Clinique Saint-Louis"}),e.jsx("p",{className:"text-xs text-rose-400/80",children:"Sante - 420 employes"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:`Demandes d'achats par email, papier, post-it... "On n'a plus d'electrodes !"`}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Delai commande"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"3 semaines"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"4 jours"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Ruptures stock"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"-78%"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-blue-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-blue-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-blue-400 to-indigo-500 flex items-center justify-center shadow-lg shadow-blue-500/20",children:e.jsx(r.Truck,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"TransLogistic"}),e.jsx("p",{className:"text-xs text-blue-400/80",children:"Transport - 85 chauffeurs"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:'Photos WhatsApp, Excel litiges... "On vous fait un avoir faute de preuves"'}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:'Avoirs "par defaut"'}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"180K€"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"23K€/an"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Litiges gagnes"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"34% → 67%"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-violet-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-violet-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-violet-400 to-purple-500 flex items-center justify-center shadow-lg shadow-violet-500/20",children:e.jsx(r.Scale,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Cabinet NEXIA"}),e.jsx("p",{className:"text-xs text-violet-400/80",children:"Expertise comptable - 45 collaborateurs"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:'Checklist Word, PJ eparpillees... "On en est ou sur le dossier Martin ?"'}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Temps revue"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"-45%"})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Heures recuperees"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"112K€/an"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-cyan-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-cyan-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-cyan-400 to-teal-500 flex items-center justify-center shadow-lg shadow-cyan-500/20",children:e.jsx(r.Landmark,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Mairie Villeneuve"}),e.jsx("p",{className:"text-xs text-cyan-400/80",children:"Secteur public - 25 000 habitants"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:'Signalements par email, tel, courrier... "Je ne retrouve pas votre demande"'}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Delai resolution"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"45 jours"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"8 jours"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Satisfaction"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"34% → 78%"})]})]})]})]}),e.jsxs("div",{className:"group relative",children:[e.jsx("div",{className:"absolute inset-0 bg-emerald-500/20 rounded-2xl blur-xl opacity-0 group-hover:opacity-100 transition-opacity"}),e.jsxs("div",{className:"relative bg-white/[0.03] backdrop-blur-xl border border-white/10 rounded-2xl p-5 hover:border-emerald-500/30 transition-all h-full",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-emerald-400 to-green-500 flex items-center justify-center shadow-lg shadow-emerald-500/20",children:e.jsx(r.Calculator,{className:"w-6 h-6 text-white"})}),e.jsxs("div",{children:[e.jsx("span",{className:"font-semibold text-white",children:"Direction Financiere"}),e.jsx("p",{className:"text-xs text-emerald-400/80",children:"Finance - 12 departements"})]})]}),e.jsx("div",{className:"text-sm text-slate-400 mb-4",children:'Budget_v12_FINAL_v3.xlsx... "Marc est en vacances, lui seul sait"'}),e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Cloture mensuelle"}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("span",{className:"text-red-400 line-through",children:"5 jours"}),e.jsx(r.ArrowRight,{className:"w-3 h-3 text-slate-600"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"4 heures"})]})]}),e.jsxs("div",{className:"flex items-center justify-between text-xs",children:[e.jsx("span",{className:"text-slate-500",children:"Erreurs"}),e.jsx("span",{className:"text-emerald-400 font-semibold",children:"0 / 50K€ evites"})]})]})]})]})]}),e.jsxs("div",{className:"relative z-10 mt-8 flex items-center gap-2 text-slate-500 text-sm",children:[e.jsx(r.BadgeCheck,{className:"w-4 h-4 text-emerald-500"}),e.jsx("span",{children:"Des resultats mesures, pas des promesses"})]})]})},{id:"promise",title:s("presentation.slides.cta.title"),background:"from-[var(--color-primary-700)] to-[var(--color-primary-900)]",content:e.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-white px-4",children:[e.jsx(r.Lightbulb,{className:"w-16 h-16 mb-8 text-amber-300"}),e.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-6",children:"Ce que SmartStack vous apporte"}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl mt-8",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left",children:[e.jsx("div",{className:"text-4xl font-bold text-amber-300 mb-2",children:"x10"}),e.jsx("div",{className:"text-xl font-semibold mb-2",children:"Plus rapide"}),e.jsxs("div",{className:"text-white/70 text-sm",children:["Des semaines au lieu de mois.",e.jsx("br",{}),"L'IA genere 80% du code."]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left",children:[e.jsx("div",{className:"text-4xl font-bold text-emerald-300 mb-2",children:"-70%"}),e.jsx("div",{className:"text-xl font-semibold mb-2",children:"Moins cher"}),e.jsxs("div",{className:"text-white/70 text-sm",children:["Pas de licence par utilisateur.",e.jsx("br",{}),"Infrastructure mutualisee."]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left",children:[e.jsx("div",{className:"text-4xl font-bold text-blue-300 mb-2",children:"100%"}),e.jsx("div",{className:"text-xl font-semibold mb-2",children:"Maitrise"}),e.jsxs("div",{className:"text-white/70 text-sm",children:["Votre code, vos donnees.",e.jsx("br",{}),"Pas de vendor lock-in."]})]})]}),e.jsx("div",{className:"mt-12 text-lg text-white/60",children:"Une plateforme. Une equipe. Des applications metier illimitees."})]})},{id:"how-it-works",title:s("presentation.slides.cta.subtitle"),content:e.jsxs("div",{className:"h-full flex flex-col justify-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[var(--text-primary)] text-center mb-12",children:"De l'idee a l'application en 3 etapes"}),e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-4 -left-4 w-12 h-12 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-xl font-bold",children:"1"}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] p-6 pt-8 h-full",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-blue-100 dark:bg-blue-900/30 flex items-center justify-center mb-4",children:e.jsx(r.Users,{className:"w-6 h-6 text-blue-600"})}),e.jsx("h3",{className:"text-xl font-semibold text-[var(--text-primary)] mb-2",children:"Vous decrivez"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:"Expliquez votre besoin en langage naturel. Pas de cahier des charges de 100 pages - juste vos processus actuels et ce que vous voulez ameliorer."})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-4 -left-4 w-12 h-12 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-xl font-bold",children:"2"}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] p-6 pt-8 h-full",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-purple-100 dark:bg-purple-900/30 flex items-center justify-center mb-4",children:e.jsx(r.Brain,{className:"w-6 h-6 text-purple-600"})}),e.jsx("h3",{className:"text-xl font-semibold text-[var(--text-primary)] mb-2",children:"L'IA construit"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:"Claude Code genere l'application : base de donnees, API, interface utilisateur, securite. Le tout en respectant les standards enterprise."})]})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute -top-4 -left-4 w-12 h-12 rounded-full bg-[var(--color-primary-600)] text-white flex items-center justify-center text-xl font-bold",children:"3"}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] p-6 pt-8 h-full",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-emerald-100 dark:bg-emerald-900/30 flex items-center justify-center mb-4",children:e.jsx(r.Rocket,{className:"w-6 h-6 text-emerald-600"})}),e.jsx("h3",{className:"text-xl font-semibold text-[var(--text-primary)] mb-2",children:"Vous utilisez"}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:"Deploiement instantane, formation integree, evolution continue. Vos equipes sont autonomes pour les modifications simples."})]})]})]}),e.jsxs("div",{className:"hidden md:flex items-center justify-center mt-8 gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(r.Clock,{className:"w-4 h-4"}),e.jsx("span",{children:"Jour 1-2"})]}),e.jsx("div",{className:"flex-1 h-1 bg-gradient-to-r from-blue-500 via-purple-500 to-emerald-500 rounded-full max-w-xs"}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(r.Clock,{className:"w-4 h-4"}),e.jsx("span",{children:"Jour 3-10"})]}),e.jsx("div",{className:"flex-1 h-1 bg-gradient-to-r from-purple-500 to-emerald-500 rounded-full max-w-xs"}),e.jsxs("div",{className:"flex items-center gap-2 text-sm text-[var(--text-secondary)]",children:[e.jsx(r.Clock,{className:"w-4 h-4"}),e.jsx("span",{children:"Jour 11+"})]})]})]})]})},{id:"vibecoding",title:s("presentation.slides.vibecoding.title"),background:"from-violet-900 via-purple-900 to-indigo-900",content:e.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-white px-4",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 text-white/90 text-sm font-medium mb-6",children:[e.jsx(r.Sparkles,{className:"w-4 h-4"}),"Le secret SmartStack"]}),e.jsx("h2",{className:"text-3xl md:text-5xl font-bold mb-4",children:"Vibecoding"}),e.jsx("p",{className:"text-xl text-white/70 max-w-2xl",children:"Quand l'IA et les standards se rencontrent"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl",children:[e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left border border-white/10 hover:border-white/30 transition-colors",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-blue-400 to-cyan-400 flex items-center justify-center mb-4",children:e.jsx(r.Code,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Meme logique de dev"}),e.jsxs("ul",{className:"space-y-2 text-white/70 text-sm",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Architecture CQRS / Clean Architecture"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Patterns de code identiques"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Conventions de nommage strictes"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Tests et validation automatiques"})]})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left border border-white/10 hover:border-white/30 transition-colors",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-amber-400 to-orange-400 flex items-center justify-center mb-4",children:e.jsx(r.FileText,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Meme documentation"}),e.jsxs("ul",{className:"space-y-2 text-white/70 text-sm",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Structure de doc standardisee"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"CLAUDE.md genere automatiquement"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"API documentee par defaut"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Guides utilisateur coherents"})]})]})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-sm rounded-2xl p-6 text-left border border-white/10 hover:border-white/30 transition-colors",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-gradient-to-br from-pink-400 to-rose-400 flex items-center justify-center mb-4",children:e.jsx(r.LayoutGrid,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-semibold mb-3",children:"Meme UI / UX"}),e.jsxs("ul",{className:"space-y-2 text-white/70 text-sm",children:[e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Design system unifie"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Composants reutilisables"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Experience utilisateur coherente"})]}),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-400 flex-shrink-0 mt-0.5"}),e.jsx("span",{children:"Responsive & accessible"})]})]})]})]}),e.jsxs("div",{className:"mt-10 flex items-center gap-4",children:[e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 text-sm",children:[e.jsx(r.Brain,{className:"w-4 h-4 text-purple-300"}),e.jsx("span",{children:"Claude Code genere"})]}),e.jsx(r.ArrowRight,{className:"w-5 h-5 text-white/50"}),e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full bg-white/10 text-sm",children:[e.jsx(r.Terminal,{className:"w-4 h-4 text-cyan-300"}),e.jsx("span",{children:"MCP Server valide"})]}),e.jsx(r.ArrowRight,{className:"w-5 h-5 text-white/50"}),e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full bg-emerald-500/30 text-sm font-medium",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4 text-emerald-300"}),e.jsx("span",{children:"100% conforme"})]})]})]})},{id:"tech-stack",title:s("presentation.slides.architecture.title"),content:e.jsxs("div",{className:"h-full flex flex-col justify-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[var(--text-primary)] text-center mb-4",children:"Une architecture enterprise"}),e.jsx("p",{className:"text-center text-[var(--text-secondary)] mb-10 max-w-2xl mx-auto",children:"Technologies modernes, standards ouverts, pas de vendor lock-in"}),e.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-3 gap-6",children:[e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] overflow-hidden",children:[e.jsx("div",{className:"bg-gradient-to-r from-purple-600 to-indigo-600 px-5 py-4",children:e.jsxs("div",{className:"flex items-center gap-3 text-white",children:[e.jsx(r.Server,{className:"w-6 h-6"}),e.jsx("span",{className:"font-semibold text-lg",children:"Backend"})]})}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Runtime"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:".NET 10"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"ORM"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"Entity Framework Core"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Pattern"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"CQRS / Clean Arch"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Auth"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"Entra ID / JWT"})]})]})]}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] overflow-hidden",children:[e.jsx("div",{className:"bg-gradient-to-r from-cyan-600 to-blue-600 px-5 py-4",children:e.jsxs("div",{className:"flex items-center gap-3 text-white",children:[e.jsx(r.Globe,{className:"w-6 h-6"}),e.jsx("span",{className:"font-semibold text-lg",children:"Frontend"})]})}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Framework"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"React 19"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Langage"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"TypeScript 5"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Style"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"Tailwind CSS"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"i18n"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"4 langues (FR/EN/DE/IT)"})]})]})]}),e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] overflow-hidden",children:[e.jsx("div",{className:"bg-gradient-to-r from-pink-600 to-rose-600 px-5 py-4",children:e.jsxs("div",{className:"flex items-center gap-3 text-white",children:[e.jsx(r.Brain,{className:"w-6 h-6"}),e.jsx("span",{className:"font-semibold text-lg",children:"IA & DevOps"})]})}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Assistant"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"Claude Code"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Protocole"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"MCP Server"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"Workflow"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"GitFlow integre"})]}),e.jsxs("div",{className:"flex items-center justify-between py-2",children:[e.jsx("span",{className:"text-[var(--text-secondary)]",children:"CI/CD"}),e.jsx("span",{className:"font-medium text-[var(--text-primary)]",children:"GitHub Actions"})]})]})]})]})]})},{id:"features",title:s("presentation.slides.features.title"),content:e.jsxs("div",{className:"h-full flex flex-col justify-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[var(--text-primary)] text-center mb-4",children:"Tout ce dont vous avez besoin"}),e.jsx("p",{className:"text-center text-[var(--text-secondary)] mb-10",children:"Pre-construit, teste, pret a l'emploi"}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 max-w-5xl mx-auto",children:[{icon:r.Users,label:"Gestion utilisateurs",desc:"Creation, roles, SSO",color:"text-blue-500 bg-blue-100 dark:bg-blue-900/30"},{icon:r.Shield,label:"Permissions",desc:"Granulaires, hierarchiques",color:"text-green-500 bg-green-100 dark:bg-green-900/30"},{icon:r.Building2,label:"Multi-tenant",desc:"Organisations, domaines",color:"text-purple-500 bg-purple-100 dark:bg-purple-900/30"},{icon:r.Workflow,label:"Workflows",desc:"Emails, notifications",color:"text-pink-500 bg-pink-100 dark:bg-pink-900/30"},{icon:r.Globe,label:"Multi-langues",desc:"FR, EN, DE, IT",color:"text-cyan-500 bg-cyan-100 dark:bg-cyan-900/30"},{icon:r.LayoutGrid,label:"Navigation",desc:"Dynamique, par role",color:"text-orange-500 bg-orange-100 dark:bg-orange-900/30"},{icon:r.Database,label:"Audit complet",desc:"Tracabilite, logs",color:"text-red-500 bg-red-100 dark:bg-red-900/30"},{icon:r.Sparkles,label:"Theming",desc:"Branding, dark mode",color:"text-amber-500 bg-amber-100 dark:bg-amber-900/30"}].map(d=>e.jsxs("div",{className:"bg-[var(--bg-secondary)] rounded-xl border border-[var(--border-color)] p-4 hover:shadow-lg transition-shadow",children:[e.jsx("div",{className:`w-10 h-10 rounded-lg ${d.color} flex items-center justify-center mb-3`,children:e.jsx(d.icon,{className:"w-5 h-5"})}),e.jsx("div",{className:"font-medium text-[var(--text-primary)] text-sm",children:d.label}),e.jsx("div",{className:"text-xs text-[var(--text-tertiary)] mt-1",children:d.desc})]},d.label))})]})},{id:"cta",title:s("presentation.slides.cta.title"),background:"from-slate-900 to-slate-800",content:e.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center text-white px-4",children:[e.jsx(r.Layers,{className:"w-20 h-20 mb-6 text-[var(--color-primary-400)]"}),e.jsx("h2",{className:"text-4xl md:text-5xl font-bold mb-4",children:"SmartStack"}),e.jsxs("p",{className:"text-xl md:text-2xl text-slate-300 mb-8 max-w-2xl",children:["Transformez vos idees en applications.",e.jsx("br",{}),"Sans attendre. Sans vous ruiner."]}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 mb-12",children:[e.jsxs(W.Link,{to:"/system/docs/developer/installation",className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-[var(--color-primary-600)] hover:bg-[var(--color-primary-500)] text-white rounded-xl font-semibold transition-colors",children:[e.jsx(r.Rocket,{className:"w-5 h-5"}),s("presentation.slides.cta.getStarted")]}),e.jsxs(W.Link,{to:"/system/docs/developer",className:"inline-flex items-center justify-center gap-2 px-8 py-4 bg-white/10 hover:bg-white/20 text-white rounded-xl font-semibold transition-colors",children:[e.jsx(r.Code,{className:"w-5 h-5"}),s("presentation.slides.cta.documentation")]})]}),e.jsx("div",{className:"text-slate-400 text-sm",children:"Des questions ? Contactez-nous : contact@smartstack.app"})]})}],c=l.useCallback(()=>{a(d=>(d+1)%o.length)},[o.length]),x=l.useCallback(()=>{a(d=>(d-1+o.length)%o.length)},[o.length]);l.useEffect(()=>{const d=m=>{m.key==="ArrowRight"||m.key===" "?(m.preventDefault(),c()):m.key==="ArrowLeft"?(m.preventDefault(),x()):m.key==="Escape"&&i(!1)};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[c,x]),l.useEffect(()=>{if(!n)return;const d=setInterval(c,1e4);return()=>clearInterval(d)},[n,c]);const u=o[t];return e.jsxs("div",{className:"min-h-screen flex flex-col",children:[e.jsxs("div",{className:`flex-1 relative overflow-hidden transition-all duration-500 ${u.background?`bg-gradient-to-br ${u.background}`:"bg-[var(--bg-primary)]"}`,children:[e.jsx("div",{className:"absolute top-4 left-4 z-20",children:e.jsxs(W.Link,{to:"/system/docs",className:`flex items-center gap-2 px-3 py-2 rounded-lg transition-colors ${u.background?"text-white/70 hover:text-white hover:bg-white/10":"text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)]"}`,children:[e.jsx(r.Home,{className:"w-4 h-4"}),e.jsx("span",{className:"text-sm",children:s("presentation.backToDocs")})]})}),e.jsx("div",{className:`absolute top-4 right-4 z-20 px-3 py-1 rounded-lg ${u.background?"bg-white/10 text-white":"bg-[var(--bg-secondary)] text-[var(--text-secondary)]"}`,children:e.jsxs("span",{className:"text-sm font-mono",children:[t+1," / ",o.length]})}),e.jsx("div",{className:"container mx-auto px-4 py-16 h-full flex items-center",children:e.jsx("div",{className:"w-full",children:u.content})})]}),e.jsx("div",{className:"bg-[var(--bg-secondary)] border-t border-[var(--border-color)] px-4 py-3",children:e.jsxs("div",{className:"container mx-auto flex items-center justify-between",children:[e.jsx("div",{className:"flex items-center gap-2",children:o.map((d,m)=>e.jsx("button",{onClick:()=>a(m),className:`h-2 rounded-full transition-all ${m===t?"w-8 bg-[var(--color-primary-600)]":"w-2 bg-[var(--border-color)] hover:bg-[var(--color-primary-400)]"}`,title:d.title},d.id))}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>i(!n),className:"p-2 rounded-lg hover:bg-[var(--bg-hover)] text-[var(--text-secondary)]",title:n?"Pause":"Auto-play (10s)",children:n?e.jsx(r.Pause,{className:"w-5 h-5"}):e.jsx(r.Play,{className:"w-5 h-5"})}),e.jsx("button",{onClick:x,className:"p-2 rounded-lg hover:bg-[var(--bg-hover)] text-[var(--text-secondary)]",children:e.jsx(r.ChevronLeft,{className:"w-5 h-5"})}),e.jsx("button",{onClick:c,className:"p-2 rounded-lg hover:bg-[var(--bg-hover)] text-[var(--text-secondary)]",children:e.jsx(r.ChevronRight,{className:"w-5 h-5"})})]})]})})]})}const Dg=[{icon:r.Users,title:"Gestion des Utilisateurs",description:"Créez, modifiez et gérez vos utilisateurs avec une interface intuitive. Profils complets, avatars et informations personnalisables.",color:"from-blue-500 to-cyan-500"},{icon:r.Bell,title:"Gestion des Notifications",description:"Système de notifications en temps réel. Email, push, in-app. Templates personnalisables et historique complet.",color:"from-amber-500 to-orange-500"},{icon:r.HeadphonesIcon,title:"Gestion du Support",description:"Système de tickets intégré pour le support client. Suivi, priorités, assignation et statistiques.",color:"from-emerald-500 to-teal-500"},{icon:r.Shield,title:"Panneau Administrateur",description:"Dashboard complet pour administrer votre plateforme. Métriques, logs, configuration et monitoring.",color:"from-purple-500 to-pink-500"},{icon:r.Key,title:"Gestion des Rôles",description:"RBAC avancé avec permissions granulaires. Hiérarchie de rôles, wildcards et héritage des droits.",color:"from-red-500 to-rose-500"},{icon:r.Layers,title:"Architecture Modulaire",description:"Structure en 5 niveaux : Contexte, Application, Module, Section, Resource. Extensible et maintenable.",color:"from-indigo-500 to-violet-500"}],Lg=[{icon:r.Zap,text:"Démarrage rapide"},{icon:r.Lock,text:"Sécurité intégrée"},{icon:r.Rocket,text:"Performance optimale"}],Pg=[".NET 10","React 19","TypeScript","EF Core","SQL Server","Tailwind CSS"];function $g(){return e.jsxs("div",{className:"flex flex-col",children:[e.jsxs("section",{className:"relative pt-32 pb-20 md:pt-40 md:pb-32 overflow-hidden",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute -top-40 -right-40 w-80 h-80 rounded-full bg-primary-500/10 blur-3xl"}),e.jsx("div",{className:"absolute -bottom-40 -left-40 w-80 h-80 rounded-full bg-accent-500/10 blur-3xl"}),e.jsx("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] rounded-full bg-gradient-to-r from-primary-500/5 to-accent-500/5 blur-3xl"})]}),e.jsx("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary-500/10 border border-primary-500/20 mb-8",children:[e.jsx(r.Zap,{className:"w-4 h-4 text-primary-500"}),e.jsx("span",{className:"text-sm font-medium text-primary-500",children:"Version 1.0 disponible"})]}),e.jsxs("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-bold tracking-tight mb-6",children:["Le socle moderne pour",e.jsx("br",{}),e.jsx("span",{className:"gradient-text",children:"vos applications"})]}),e.jsx("p",{className:"max-w-2xl mx-auto text-lg md:text-xl text-[var(--text-secondary)] mb-10",children:"SmartStack est une plateforme complète pour créer des applications d'entreprise. Authentification, rôles, notifications et support intégrés."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 mb-16",children:[e.jsxs("a",{href:"/register",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-primary-600 hover:bg-primary-700 text-white font-semibold transition-all shadow-lg shadow-primary-500/25 hover:shadow-primary-500/40",children:["Commencer gratuitement",e.jsx(r.ArrowRight,{className:"w-5 h-5"})]}),e.jsx("a",{href:"#features",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-[var(--bg-tertiary)] hover:bg-[var(--bg-secondary)] border border-[var(--border-color)] font-semibold transition-all",children:"Découvrir les fonctionnalités"})]}),e.jsx("div",{className:"flex flex-wrap items-center justify-center gap-6",children:Lg.map(s=>e.jsxs("div",{className:"flex items-center gap-2 text-[var(--text-secondary)]",children:[e.jsx(s.icon,{className:"w-5 h-5 text-primary-500"}),e.jsx("span",{children:s.text})]},s.text))})]})})]}),e.jsx("section",{className:"py-8 bg-[var(--bg-secondary)] border-y border-[var(--border-color)]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-8 md:gap-12",children:[e.jsx("span",{className:"text-[var(--text-tertiary)] text-sm uppercase tracking-wider",children:"Construit avec"}),Pg.map(s=>e.jsx("span",{className:"text-[var(--text-secondary)] font-medium",children:s},s))]})})}),e.jsx("section",{id:"features",className:"py-20 md:py-32",children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsxs("div",{className:"text-center mb-16",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Tout ce dont vous avez besoin"}),e.jsx("p",{className:"max-w-2xl mx-auto text-[var(--text-secondary)]",children:"SmartStack inclut toutes les fonctionnalités essentielles pour démarrer votre projet d'entreprise."})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:Dg.map(s=>e.jsxs("div",{className:"group p-6 rounded-2xl bg-[var(--bg-card)] border border-[var(--border-color)] hover-card",children:[e.jsx("div",{className:`w-12 h-12 rounded-xl bg-gradient-to-br ${s.color} flex items-center justify-center mb-4`,children:e.jsx(s.icon,{className:"w-6 h-6 text-white"})}),e.jsx("h3",{className:"text-xl font-semibold mb-2",children:s.title}),e.jsx("p",{className:"text-[var(--text-secondary)]",children:s.description})]},s.title))})]})}),e.jsx("section",{id:"modules",className:"py-20 md:py-32 bg-[var(--bg-secondary)]",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-3xl md:text-4xl font-bold mb-6",children:["Architecture modulaire",e.jsx("br",{}),e.jsx("span",{className:"gradient-text",children:"prête pour la production"})]}),e.jsx("p",{className:"text-[var(--text-secondary)] mb-8",children:"SmartStack utilise une architecture en 5 niveaux qui permet une organisation claire et une extensibilité maximale. Chaque niveau correspond à un scope de permissions."}),e.jsx("ul",{className:"space-y-4 mb-8",children:["Contexte - Environnements séparés (Platform, Business, Personal)","Application - Apps au sein d'un contexte (Admin, MySpace)","Module - Fonctionnalités (Users, Roles, Profile)","Section - Sous-divisions des modules","Resource - Éléments individuels"].map(s=>e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex-shrink-0 w-6 h-6 rounded-full bg-primary-500/10 flex items-center justify-center mt-0.5",children:e.jsx(r.Check,{className:"w-4 h-4 text-primary-500"})}),e.jsx("span",{className:"text-[var(--text-secondary)]",children:s})]},s))})]}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-primary-500/20 to-accent-500/20 rounded-3xl blur-2xl"}),e.jsx("div",{className:"relative p-8 rounded-3xl bg-[var(--bg-card)] border border-[var(--border-color)]",children:e.jsx("div",{className:"space-y-4",children:e.jsxs("div",{className:"p-4 rounded-xl bg-gradient-to-r from-primary-500/10 to-primary-500/5 border border-primary-500/20",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-3 h-3 rounded-full bg-primary-500"}),e.jsx("span",{className:"font-semibold text-primary-500",children:"Contexte: Platform"})]}),e.jsxs("div",{className:"ml-4 mt-3 p-3 rounded-lg bg-accent-500/10 border border-accent-500/20",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[e.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-accent-500"}),e.jsx("span",{className:"font-medium text-accent-500",children:"Application: Admin"})]}),e.jsxs("div",{className:"ml-4 mt-2 space-y-2",children:[e.jsx("div",{className:"p-2 rounded bg-[var(--bg-tertiary)] border border-[var(--border-color)]",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r.Users,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-sm",children:"Module: Users"})]})}),e.jsx("div",{className:"p-2 rounded bg-[var(--bg-tertiary)] border border-[var(--border-color)]",children:e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r.Key,{className:"w-4 h-4 text-[var(--text-tertiary)]"}),e.jsx("span",{className:"text-sm",children:"Module: Roles"})]})})]})]})]})})})]})]})})}),e.jsx("section",{id:"contact",className:"py-20 md:py-32",children:e.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsx("div",{className:"relative overflow-hidden rounded-3xl animated-gradient p-px",children:e.jsxs("div",{className:"relative rounded-3xl bg-[var(--bg-primary)] p-8 md:p-16 text-center",children:[e.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-4",children:"Prêt à commencer ?"}),e.jsx("p",{className:"max-w-2xl mx-auto text-[var(--text-secondary)] mb-8",children:"Lancez votre projet d'entreprise avec SmartStack. Tout est déjà configuré pour vous permettre de vous concentrer sur votre métier."}),e.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[e.jsxs("a",{href:"/register",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-primary-600 hover:bg-primary-700 text-white font-semibold transition-all shadow-lg shadow-primary-500/25 hover:shadow-primary-500/40",children:["Créer un compte",e.jsx(r.ArrowRight,{className:"w-5 h-5"})]}),e.jsx("a",{href:"/contact",className:"w-full sm:w-auto inline-flex items-center justify-center gap-2 px-8 py-4 rounded-xl bg-[var(--bg-tertiary)] hover:bg-[var(--bg-secondary)] border border-[var(--border-color)] font-semibold transition-all",children:"Nous contacter"})]})]})})})})]})}const Zi=["/platform","/personal","/business","/auth","/login","/register","/confirm-email","/forgot-password","/reset-password","/force-change-password","/notifications","/system/docs"];function Mg(s){return Zi.some(t=>s===t||s.startsWith(`${t}/`))}const yl=[{index:!0,element:e.jsx(nd,{})},{path:"administration",element:e.jsx(Ka,{})},{path:"administration/users",element:e.jsx(Wa,{})},{path:"administration/users/list",element:e.jsx(Wa,{})},{path:"administration/users/dashboard",element:e.jsx(Ka,{})},{path:"administration/users/groups",element:e.jsx(wm,{})},{path:"administration/users/groups/:groupId",element:e.jsx(Mm,{})},{path:"administration/users/:userId",element:e.jsx(Nm,{})},{path:"administration/users/references",element:e.jsx(Um,{})},{path:"administration/permissions",element:e.jsx(W.Navigate,{to:"roles",replace:!0})},{path:"administration/permissions/roles",element:e.jsx(Bm,{})},{path:"administration/permissions/roles/:roleId",element:e.jsx(zm,{})},{path:"administration/permissions/permissions",element:e.jsx(_m,{})},{path:"administration/permissions/permissions/:permissionId",element:e.jsx(Xm,{})},{path:"administration/permissions/assignments",element:e.jsx(ex,{})},{path:"administration/applications",element:e.jsx(sx,{})},{path:"administration/applications/dashboard",element:e.jsx(cx,{})},{path:"administration/applications/list",element:e.jsx(mx,{})},{path:"administration/applications/:appId",element:e.jsx(Ox,{})},{path:"administration/ai",element:e.jsx(W.Navigate,{to:"dashboard",replace:!0})},{path:"administration/ai/dashboard",element:e.jsx(qx,{})},{path:"administration/ai/settings",element:e.jsx(tu,{})},{path:"administration/ai/prompts",element:e.jsx(ru,{})},{path:"administration/ai/prompts/create",element:e.jsx(fn,{})},{path:"administration/ai/prompts/:promptId",element:e.jsx(nu,{})},{path:"administration/ai/prompts/:promptId/edit",element:e.jsx(fn,{})},{path:"administration/ai/prompts/blocks",element:e.jsx(du,{})},{path:"administration/ai/prompts/blocks/create",element:e.jsx(Nn,{})},{path:"administration/ai/prompts/blocks/:definitionId",element:e.jsx(xu,{})},{path:"administration/ai/prompts/blocks/:definitionId/edit",element:e.jsx(Nn,{})},{path:"administration/workflows",element:e.jsx(W.Navigate,{to:"list",replace:!0})},{path:"administration/workflows/email-templates",element:e.jsx(wn,{})},{path:"administration/workflows/email-templates/email",element:e.jsx(wn,{})},{path:"administration/workflows/email-templates/sms",element:e.jsx(Au,{})},{path:"administration/workflows/email-templates/create",element:e.jsx(hu,{})},{path:"administration/workflows/email-templates/:templateId",element:e.jsx(gu,{})},{path:"administration/workflows/email-templates/:templateId/edit",element:e.jsx(Su,{})},{path:"administration/workflows/templates",element:e.jsx(W.Navigate,{to:"../email-templates",relative:"path",replace:!0})},{path:"administration/workflows/templates/*",element:e.jsx(dr,{to:"/platform/administration/workflows/email-templates"})},{path:"administration/workflows/list",element:e.jsx(Ru,{})},{path:"administration/workflows/triggers",element:e.jsx(Iu,{})},{path:"administration/workflows/history",element:e.jsx(Vu,{})},{path:"administration/workflows/create",element:e.jsx(Eu,{})},{path:"administration/workflows/:workflowId",element:e.jsx(Pu,{})},{path:"administration/workflows/:workflowId/edit",element:e.jsx(qu,{})},{path:"administration/entra",element:e.jsx(W.Navigate,{to:"dashboard",replace:!0})},{path:"administration/entra/dashboard",element:e.jsx(ph,{})},{path:"administration/entra/groups",element:e.jsx(Un,{})},{path:"administration/entra/groups/:groupId",element:e.jsx(Un,{})},{path:"administration/entra/users",element:e.jsx(vh,{})},{path:"administration/entra/conflicts",element:e.jsx(bh,{})},{path:"administration/entra/settings",element:e.jsx(Nh,{})},{path:"administration/configuration",element:e.jsx(W.Navigate,{to:"settings",replace:!0})},{path:"administration/configuration/settings",element:e.jsx(wh,{}),children:[{index:!0,element:e.jsx(W.Navigate,{to:"general",replace:!0})},{path:"general",element:e.jsx(kh,{})},{path:"file-upload",element:e.jsx(Ch,{})},{path:"legal-file",element:e.jsx(Sh,{})}]},{path:"administration/configuration/appsettings",element:e.jsx(Th,{}),children:[{index:!0,element:e.jsx(W.Navigate,{to:"infrastructure",replace:!0})},{path:"infrastructure",element:e.jsx(Ah,{})},{path:"authentication",element:e.jsx(Eh,{})},{path:"logging",element:e.jsx(Dh,{})},{path:"email",element:e.jsx(Lh,{})},{path:"entra",element:e.jsx(Ph,{})}]},{path:"administration/settings",element:e.jsx(W.Navigate,{to:"../configuration/settings",relative:"path",replace:!0})},{path:"administration/settings/*",element:e.jsx(dr,{to:"/platform/administration/configuration/settings"})},{path:"administration/appsettings",element:e.jsx(W.Navigate,{to:"../configuration/appsettings",relative:"path",replace:!0})},{path:"administration/appsettings/*",element:e.jsx(dr,{to:"/platform/administration/configuration/appsettings"})},{path:"administration/tenants",element:e.jsx(W.Navigate,{to:"dashboard",replace:!0})},{path:"administration/tenants/dashboard",element:e.jsx(Zp,{})},{path:"administration/tenants/system",element:e.jsx(oh,{})},{path:"administration/tenants/business",element:e.jsx(dh,{})},{path:"administration/tenants/personal",element:e.jsx(mh,{})},{path:"administration/tenants/list",element:e.jsx(wa,{})},{path:"administration/tenants/create",element:e.jsx(_p,{})},{path:"administration/tenants/templates",element:e.jsx(eh,{})},{path:"administration/tenants/templates/:templateId",element:e.jsx(rh,{})},{path:"administration/tenants/:tenantId",element:e.jsx(Tr,{})},{path:"administration/tenants/:tenantId/members",element:e.jsx(Tr,{})},{path:"administration/tenants/:tenantId/applications",element:e.jsx(Tr,{})},{path:"administration/email-templates",element:e.jsx(W.Navigate,{to:"../workflows/email-templates",relative:"path",replace:!0})},{path:"administration/email-templates/list",element:e.jsx(W.Navigate,{to:"../../workflows/email-templates",relative:"path",replace:!0})},{path:"administration/email-templates/create",element:e.jsx(W.Navigate,{to:"../../workflows/email-templates/create",relative:"path",replace:!0})},{path:"support",element:e.jsx(W.Navigate,{to:"dashboard",replace:!0})},{path:"support/dashboard",element:e.jsx(Av,{})},{path:"support/tickets",element:e.jsx($h,{})},{path:"support/tickets/new",element:e.jsx(Vv,{})},{path:"support/tickets/TestBug",element:e.jsx(Gv,{})},{path:"support/tickets/:ticketId",element:e.jsx(Cv,{})},{path:"support/my-tickets",element:e.jsx(Iv,{})},{path:"support/admin",element:e.jsx(W.Navigate,{to:"sla",replace:!0})},{path:"support/admin/sla",element:e.jsx(Ev,{})},{path:"support/admin/templates",element:e.jsx($v,{})},{path:"support/admin/escalation",element:e.jsx(Uv,{})},{path:"support/admin/permissions",element:e.jsx(Bv,{})},{path:"support/sla",element:e.jsx(W.Navigate,{to:"../admin/sla",relative:"path",replace:!0})},{path:"support/templates",element:e.jsx(W.Navigate,{to:"../admin/templates",relative:"path",replace:!0})}],Nl=[{index:!0,element:e.jsx(sb,{})},{path:"profile",element:e.jsx(tb,{})},{path:"preferences",element:e.jsx(lb,{})},{path:"tenants",element:e.jsx(W.Navigate,{to:"workspaces",replace:!0})},{path:"tenants/workspaces",element:e.jsx(ib,{})},{path:"tenants/access-requests",element:e.jsx(ob,{})},{path:"portal",element:e.jsx(cb,{})}],wl=[{index:!0,element:e.jsx(xb,{})},{path:"support-client",element:e.jsx(W.Navigate,{to:"my-tickets",replace:!0})},{path:"support-client/my-tickets",element:e.jsx(ub,{})},{path:"support-client/my-tickets/:ticketId",element:e.jsx(pb,{})},{path:"support-client/create-ticket",element:e.jsx(fb,{})}],kl=[{index:!0,element:e.jsx(Hv,{})}],eo=[{element:e.jsx(ui,{}),children:[{path:"/",element:e.jsx($g,{})}]},{path:"/system/docs",element:e.jsx(ki,{}),children:[{index:!0,element:e.jsx(jb,{})},{path:"developer",element:e.jsx(Db,{})},{path:"developer/infrastructure",element:e.jsx(Lb,{})},{path:"developer/installation",element:e.jsx($b,{})},{path:"developer/database",element:e.jsx(qb,{})},{path:"developer/dual-dbcontext",element:e.jsx(Vb,{})},{path:"developer/cross-schema-fk",element:e.jsx(zb,{})},{path:"developer/tenants",element:e.jsx(Hb,{})},{path:"developer/tenants/multi-tenant-mode",element:e.jsx(Kb,{})},{path:"developer/tenants/b2c",element:e.jsx(_b,{})},{path:"developer/multi-tenant-mode",element:e.jsx(W.Navigate,{to:"/system/docs/developer/tenants/multi-tenant-mode",replace:!0})},{path:"developer/teams-integration",element:e.jsx(Xb,{})},{path:"developer/testing/security",element:e.jsx(Qb,{})},{path:"user",element:e.jsx(Jb,{})},{path:"user/architecture",element:e.jsx(Zb,{})},{path:"user/modules",element:e.jsx(sg,{})},{path:"user/support",element:e.jsx(ng,{})},{path:"user/support-dashboard",element:e.jsx(ig,{})},{path:"user/support-tickets",element:e.jsx(xg,{})},{path:"user/support-my-tickets",element:e.jsx(bg,{})},{path:"user/support-sla",element:e.jsx(ag,{})},{path:"user/support-templates",element:e.jsx(yg,{})},{path:"user/support-escalation",element:e.jsx(Tg,{})},{path:"user/ai",element:e.jsx(Ag,{})},{path:"user/settings",element:e.jsx(Rg,{})},{path:"user/theme",element:e.jsx(Ig,{})},{path:"ba",element:e.jsx(yb,{})},{path:"ba/:appCode",element:e.jsx(ml,{})},{path:"ba/:appCode/:moduleCode",element:e.jsx(ml,{})}]},{path:"/system/docs/presentation",element:e.jsx(Eg,{})},{path:"/docs/*",element:e.jsx(W.Navigate,{to:"/system/docs",replace:!0})},{path:"/docs",element:e.jsx(W.Navigate,{to:"/system/docs",replace:!0})},{path:"/login",element:e.jsx(Wc,{})},{path:"/register",element:e.jsx(Xc,{})},{path:"/confirm-email",element:e.jsx(Qc,{})},{path:"/forgot-password",element:e.jsx(Jc,{})},{path:"/reset-password",element:e.jsx(Yc,{})},{path:"/force-change-password",element:e.jsx(Zc,{})},{path:"/auth/callback",element:e.jsx(sd,{})},{path:"/auth/onboarding",element:e.jsx(td,{})},{path:"/t/:slug",element:e.jsx(Ba,{}),children:[{path:"platform",element:e.jsx(ut,{}),children:yl},{path:"personal/myspace",element:e.jsx(Jr,{}),children:Nl},{path:"business",element:e.jsx(Qr,{}),children:wl},{path:"notifications",element:e.jsx(ut,{}),children:kl}]},{element:e.jsx(Ba,{}),children:[{path:"/platform",element:e.jsx(ut,{}),children:yl},{path:"/notifications",element:e.jsx(ut,{}),children:kl},{path:"/personal/myspace",element:e.jsx(Jr,{}),children:Nl},{path:"/business",element:e.jsx(Qr,{}),children:wl}]},{path:"/admin",element:e.jsx(W.Navigate,{to:"/platform",replace:!0})},{path:"/platform/admin/*",element:e.jsx(W.Navigate,{to:"/platform/administration",replace:!0})},{path:"/dashboard",element:e.jsx(W.Navigate,{to:"/personal/myspace",replace:!0})},{path:"/personal",element:e.jsx(W.Navigate,{to:"/personal/myspace",replace:!0})},{path:"*",element:e.jsx(W.Navigate,{to:"/",replace:!0})}],Fg={business:{standard:"/business",tenant:"business"},platform:{standard:"/platform",tenant:"platform"},personal:{standard:"/personal/myspace",tenant:"personal/myspace"}};function Ug(s){const t=new Set,a=new Map;for(const i of s){if(!i.path)continue;t.add(i.path);const o=i.path.split("/");for(let c=1;c<o.length;c++){const x=o.slice(0,c).join("/"),u=o.slice(c).join("/");a.has(x)||a.set(x,[]),a.get(x).push(u)}}const n=[];for(const[i,o]of a){if(t.has(i))continue;const c=o.filter(x=>!x.startsWith(":"));n.push({prefix:i,redirectTo:c[0]??o[0]})}return n}function Bg(s){return Ug(s).map(({prefix:t,redirectTo:a})=>({path:t,element:e.jsx(W.Navigate,{to:a,replace:!0})}))}function so(s,t){return s.map(a=>{const n={...a};for(const[i,o]of Object.entries(Fg)){const c=t[i];if(!c?.length)continue;const x=n.path;if(x===o.standard||x===o.tenant){const u=[...n.children||[],...c],d=Bg(u);n.children=[...u,...d]}}return n.children&&(n.children=so(n.children,t)),n})}function Og(s,t,a=eo){const n=[],i=new Set;for(const c of s){if(Mg(c.path)){console.warn(`[SmartStack] Route "${c.path}" is locked and cannot be overridden. Use contextRoutes parameter to inject routes into locked contexts. Locked prefixes: ${Zi.join(", ")}`);continue}i.add(c.path),n.push(c)}const o=t?so(a,t):a;for(const c of o)c.path&&i.has(c.path)||n.push(c);return n}function qg(){return{captureContext:l.useCallback(()=>{const t=Qs.captureBrowserInfo(),a=qe.getRecentErrors().slice(0,5);return{sourceUrl:window.location.href,browser:{name:t.browser,version:t.browserVersion,language:t.language},os:{name:t.os,version:t.osVersion},device:{type:t.deviceType,screenResolution:t.screenResolution},recentErrors:a.map(n=>({message:n.message,stack:n.stack,component:n.component,timestamp:n.timestamp.toISOString()}))}},[])}}function to(s={}){const t=l.useRef(null),[a,n]=l.useState(Me.HubConnectionState.Disconnected),i=l.useRef(s);i.current=s;const o=l.useCallback(()=>localStorage.getItem("token"),[]),c=l.useCallback(async()=>{const u=o();if(!u){console.warn("SignalR: No token available, skipping connection");return}if(t.current?.state!==Me.HubConnectionState.Connected)try{const d=new Me.HubConnectionBuilder().withUrl("/hubs/notifications",{accessTokenFactory:()=>u}).withAutomaticReconnect({nextRetryDelayInMilliseconds:m=>m.previousRetryCount===0?0:m.previousRetryCount===1?2e3:m.previousRetryCount===2?1e4:m.previousRetryCount<5?3e4:null}).configureLogging(Me.LogLevel.Warning).build();d.on("ReceiveNotification",m=>{i.current.onNotification?.(m)}),d.on("UnreadCountUpdate",m=>{i.current.onUnreadCountUpdate?.(m)}),d.on("PermissionsChanged",()=>{i.current.onPermissionsChanged?.()}),d.onreconnecting(()=>{n(Me.HubConnectionState.Reconnecting),i.current.onConnectionStateChange?.(Me.HubConnectionState.Reconnecting)}),d.onreconnected(()=>{n(Me.HubConnectionState.Connected),i.current.onConnectionStateChange?.(Me.HubConnectionState.Connected)}),d.onclose(()=>{n(Me.HubConnectionState.Disconnected),i.current.onConnectionStateChange?.(Me.HubConnectionState.Disconnected)}),await d.start(),t.current=d,n(Me.HubConnectionState.Connected),i.current.onConnectionStateChange?.(Me.HubConnectionState.Connected),console.log("SignalR: Connected to notification hub")}catch(d){console.error("SignalR: Failed to connect",d),n(Me.HubConnectionState.Disconnected)}},[o]),x=l.useCallback(async()=>{if(t.current)try{await t.current.stop(),t.current=null,n(Me.HubConnectionState.Disconnected),console.log("SignalR: Disconnected from notification hub")}catch(u){console.error("SignalR: Failed to disconnect",u)}},[]);return l.useEffect(()=>(c(),()=>{x()}),[c,x]),l.useEffect(()=>{const u=d=>{d.key==="token"&&(d.newValue?c():x())};return window.addEventListener("storage",u),()=>window.removeEventListener("storage",u)},[c,x]),{connectionState:a,isConnected:a===Me.HubConnectionState.Connected,connect:c,disconnect:x}}function Vg(){const{refreshPermissions:s,user:t}=Ke(),{refreshMenu:a}=Ze(),n=l.useRef(!1),i=l.useCallback(async()=>{if(!n.current){n.current=!0;try{await Promise.all([s(),a()]),console.log("[PermissionSync] Permissions and menu refreshed")}catch(x){console.error("[PermissionSync] Failed to refresh permissions:",x)}finally{n.current=!1}}},[s,a]),{isConnected:o,connectionState:c}=to({onPermissionsChanged:i});return{isConnected:o,connectionState:c,isAuthenticated:!!t}}function zg(){return e.jsx("div",{className:"min-h-screen bg-[var(--bg-primary)] flex items-center justify-center p-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsx("div",{className:"text-center mb-8",children:e.jsxs("a",{href:"/",className:"inline-flex items-center gap-3",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl animated-gradient flex items-center justify-center",children:e.jsx(r.Layers,{className:"w-6 h-6 text-white"})}),e.jsx("span",{className:"text-2xl font-bold gradient-text",children:"SmartStack"})]})}),e.jsx("div",{className:"bg-[var(--bg-secondary)] rounded-2xl border border-[var(--border-color)] p-8",children:e.jsx(W.Outlet,{})})]})})}const Gr={granted:{icon:r.Check,color:"var(--success-text)",bg:"var(--success-bg)",label:"Accordé"},denied:{icon:r.X,color:"var(--error-text)",bg:"var(--error-bg)",label:"Refusé"},partial:{icon:r.Minus,color:"var(--warning-text)",bg:"var(--warning-bg)",label:"Partiel"},inherited:{icon:r.Check,color:"var(--info-text)",bg:"var(--info-bg)",label:"Hérité"},none:{icon:r.Minus,color:"var(--text-tertiary)",bg:"transparent",label:"Non défini"}};function Gg({rows:s,columns:t,getRowId:a,getRowLabel:n,getRowGroup:i,getRowSubGroup:o,getRowIcon:c,isRowLocked:x,getRowChildCount:u,getColumnId:d,getColumnLabel:m,getColumnShortLabel:p,isColumnLocked:h,getColumnColor:b,getCellState:v,onCellClick:g,loading:N=!1,showLegend:w=!0,searchable:k=!1,rowColumnWidth:f="250px",cellWidth:j="44px",className:S="",emptyMessage:y="Aucune donnée",canEditLocked:A=!1}){const[L,R]=l.useState(new Set),[D,C]=l.useState(""),T=l.useMemo(()=>{const H=new Map;return s.forEach($=>{const E=i?.($)||"_default",F=o?.($);H.has(E)||H.set(E,{rows:[],subGroups:new Map});const B=H.get(E);F?(B.subGroups.has(F)||B.subGroups.set(F,[]),B.subGroups.get(F).push($)):B.rows.push($)}),H},[s,i,o]),I=l.useCallback((H,$)=>{const E=new Map;return H.forEach((F,B)=>{const J=F.filter(P=>n(P).toLowerCase().includes($));J.length>0&&E.set(B,J)}),E},[n]),M=l.useMemo(()=>{if(!D)return T;const H=D.toLowerCase(),$=new Map;return T.forEach((E,F)=>{const B=E.rows.filter(P=>n(P).toLowerCase().includes(H)),J=I(E.subGroups,H);(B.length>0||J.size>0)&&$.set(F,{rows:B,subGroups:J})}),$},[T,D,n,I]),X=H=>{R($=>{const E=new Set($);return E.has(H)?E.delete(H):E.add(H),E})},O=l.useCallback((H,$,E,F)=>{g&&(E&&!A||F&&!A||g(H,$))},[g,A]),U=l.useCallback((H,$,E,F,B,J,P,q)=>{const K=F.icon,se=g&&(!B||A)&&(!J||A);return e.jsx("td",{className:"px-0 py-1 text-center",style:{width:j},children:e.jsx("button",{type:"button",onClick:()=>O(H,$,B,J),disabled:!se,className:`
|
|
502
502
|
w-full h-full min-h-[32px] flex items-center justify-center rounded transition-colors
|
|
503
503
|
${se?"hover:opacity-80 cursor-pointer":"cursor-default"}
|
|
504
504
|
${E!=="none"?"":"opacity-30"}
|
|
505
|
-
`,style:{backgroundColor:F.bg},title:`${n(P)} × ${m(q)}: ${F.label}`,children:E!=="none"&&e.jsx(K,{className:"w-4 h-4",style:{color:F.color}})})},`${H}-${$}`)},[g,A,O,j,n,m]);return N?e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(r.Loader2,{className:"w-8 h-8 animate-spin text-[var(--color-primary-500)]"})}):s.length===0||t.length===0?e.jsx("div",{className:"text-center py-12 text-[var(--text-secondary)]",children:y}):e.jsxs("div",{className:`space-y-4 ${S}`,children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[k&&e.jsxs("div",{className:"relative max-w-xs",children:[e.jsx(r.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[var(--text-secondary)]"}),e.jsx("input",{type:"text",value:D,onChange:H=>C(H.target.value),placeholder:"Rechercher...",className:"input pl-10 w-full"})]}),w&&e.jsx("div",{className:"flex items-center gap-4 text-xs",children:Object.entries(Gr).map(([H,$])=>{if(H==="none")return null;const E=$.icon;return e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-5 h-5 rounded flex items-center justify-center",style:{backgroundColor:$.bg},children:e.jsx(E,{className:"w-3 h-3",style:{color:$.color}})}),e.jsx("span",{className:"text-[var(--text-secondary)]",children:$.label})]},H)})})]}),e.jsx("div",{className:"overflow-x-auto border border-[var(--border-color)] rounded-lg",children:e.jsxs("table",{className:"border-collapse",style:{width:"auto"},children:[e.jsx("thead",{className:"bg-[var(--bg-secondary)]",children:e.jsxs("tr",{children:[e.jsx("th",{className:"sticky left-0 z-20 bg-[var(--bg-secondary)] px-3 text-left text-xs font-medium text-[var(--text-secondary)] uppercase tracking-wider border-b border-[var(--border-color)]",style:{width:f,minWidth:f,height:"120px",verticalAlign:"bottom",paddingBottom:"12px"},children:"Ressource"}),t.map(H=>{const $=d(H),E=p?.(H)||m(H),F=h?.(H),B=b?.(H);return e.jsx("th",{className:"relative overflow-visible border-b border-[var(--border-color)]",style:{width:j,minWidth:j,maxWidth:j,height:"120px",padding:0,verticalAlign:"bottom"},children:e.jsx("div",{className:"absolute bottom-2 left-1/2",style:{transform:"translateX(-6px) rotate(-55deg)",transformOrigin:"bottom left",width:"100px"},children:e.jsxs("div",{className:"flex items-center gap-1",children:[F&&e.jsx(r.Lock,{className:"w-3 h-3 flex-shrink-0 text-[var(--warning-text)]"}),e.jsx("span",{className:"text-[10px] font-medium text-[var(--text-primary)] whitespace-nowrap",style:{color:B},title:m(H),children:E})]})})},$)})]})}),e.jsx("tbody",{children:Array.from(M.entries()).map(([H,$])=>{const E=L.has(H),F=H==="_default",B=$.rows.length+Array.from($.subGroups.values()).reduce((J,P)=>J+P.length,0);return e.jsxs("tbody",{children:[!F&&e.jsxs("tr",{className:"bg-[var(--color-accent-900)]/30",children:[e.jsx("td",{className:"sticky left-0 z-10 px-3 py-2 bg-[var(--color-accent-900)]/30",style:{width:f},children:e.jsxs("button",{onClick:()=>X(H),className:"flex items-center gap-2 w-full text-left hover:opacity-80",children:[E?e.jsx(r.ChevronRight,{className:"w-4 h-4 text-[var(--color-accent-400)]"}):e.jsx(r.ChevronDown,{className:"w-4 h-4 text-[var(--color-accent-400)]"}),e.jsx("span",{className:"text-sm font-bold text-[var(--color-accent-300)] uppercase",children:H}),e.jsxs("span",{className:"text-xs text-[var(--color-accent-400)]",children:["(",B,")"]})]})}),e.jsx("td",{colSpan:t.length})]}),!E&&e.jsxs(e.Fragment,{children:[$.rows.map((J,P)=>{const q=a(J),K=x?.(J)||!1,se=c?.(J),Z=u?.(J),te=P%2===0?"bg-[var(--bg-primary)]":"bg-[var(--bg-secondary)]/50",oe=P%2===0?"":"bg-[var(--bg-secondary)]/50";return e.jsxs("tr",{className:`hover:bg-[var(--bg-tertiary)] ${oe}`,children:[e.jsx("td",{className:`sticky left-0 z-10 px-3 py-2 ${te}`,style:{width:f},children:e.jsxs("div",{className:"flex items-center gap-2",children:[se,K&&e.jsx(r.Lock,{className:"w-3 h-3 text-[var(--warning-text)]"}),e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:n(J)}),Z!==void 0&&e.jsxs("span",{className:"text-xs text-[var(--text-secondary)]",children:["(",Z,")"]})]})}),t.map(ke=>{const z=d(ke),G=h?.(ke)||!1,je=v(q,z),me=Gr[je];return U(q,z,je,me,K,G,J,ke)})]},q)}),Array.from($.subGroups.entries()).map(([J,P])=>e.jsxs("tbody",{children:[e.jsxs("tr",{className:"bg-[var(--bg-tertiary)]",children:[e.jsx("td",{className:"sticky left-0 z-10 px-3 py-1 pl-8 bg-[var(--bg-tertiary)]",style:{width:f},children:e.jsxs("span",{className:"text-xs font-semibold text-[var(--text-secondary)] uppercase",children:[J," (",P.length,")"]})}),e.jsx("td",{colSpan:t.length})]}),P.map((q,K)=>{const se=a(q),Z=x?.(q)||!1,te=c?.(q),oe=K%2===0?"bg-[var(--bg-primary)]":"bg-[var(--bg-secondary)]/50",ke=K%2===0?"":"bg-[var(--bg-secondary)]/50";return e.jsxs("tr",{className:`hover:bg-[var(--bg-tertiary)] ${ke}`,children:[e.jsx("td",{className:`sticky left-0 z-10 px-3 py-2 pl-12 ${oe}`,style:{width:f},children:e.jsxs("div",{className:"flex items-center gap-2",children:[te,Z&&e.jsx(r.Lock,{className:"w-3 h-3 text-[var(--warning-text)]"}),e.jsx("span",{className:"text-sm text-[var(--text-primary)]",children:n(q)})]})}),t.map(z=>{const G=d(z),je=h?.(z)||!1,me=v(se,G),we=Gr[me];return U(se,G,me,we,Z,je,q,z)})]},se)})]},J))]})]},H)})})]})})]})}function zg({name:s,className:t}){const n=es[s];return n?e.jsx(n,{className:t}):e.jsx(r.Star,{className:t})}const Gg=[{path:"/platform",icon:r.LayoutDashboard,labelKey:"sidebar.dashboard",exact:!0},{path:"/platform/administration/users",icon:r.Users,labelKey:"sidebar.users"},{path:"/platform/administration/roles",icon:r.Key,labelKey:"sidebar.roles"}];function Hg({isOpen:s=!0,onClose:t}){const{t:a}=ae.useTranslation(["navigation","common"]),n=W.useLocation(),{favorites:i,loading:o}=as(),{expandFavorites:c,clearExpand:x}=as(),[u,d]=l.useState(!1);l.useEffect(()=>{c&&(queueMicrotask(()=>{d(!1)}),x())},[c,x]);const m=(h,b)=>b?n.pathname===h:n.pathname.startsWith(h),p=e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"lg:hidden flex items-center justify-between p-4 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"font-semibold",children:"Menu"}),e.jsx("button",{onClick:t,className:"p-2 hover:bg-[var(--bg-tertiary)]",style:{borderRadius:"var(--radius-button)"},children:e.jsx(r.X,{className:"w-5 h-5"})})]}),e.jsxs("nav",{className:"flex-1 p-4 space-y-1 overflow-y-auto",children:[!o&&i.length>0&&e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsxs("button",{onClick:()=>d(!u),className:"flex items-center gap-2 text-xs font-semibold text-[var(--text-muted)] uppercase tracking-wider hover:text-[var(--text-primary)] transition-colors",children:[u?e.jsx(r.ChevronRight,{className:"w-3.5 h-3.5"}):e.jsx(r.ChevronDown,{className:"w-3.5 h-3.5"}),e.jsx(r.Star,{className:"w-3.5 h-3.5"}),a("common:favorites.quickAccess")]}),e.jsx(W.Link,{to:"/personal/myspace/preferences?tab=favorites",onClick:t,className:"p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] transition-colors",style:{borderRadius:"var(--radius-button)"},title:a("common:favorites.manage"),children:e.jsx(r.Settings,{className:"w-3.5 h-3.5"})})]}),!u&&e.jsx("div",{className:"space-y-0.5",children:i.map(h=>{const b=n.pathname===h.route;return e.jsxs(W.Link,{to:h.route,onClick:t,className:`flex items-center gap-3 px-3 py-2 transition-colors ${b?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},title:`${h.label} (${h.applicationLabel})`,children:[e.jsx(zg,{name:h.icon,className:"w-4 h-4"}),e.jsx("span",{className:"text-sm font-medium truncate",children:h.label})]},h.id)})}),e.jsx("div",{className:"my-3 border-b border-[var(--border-color)]"})]}),Gg.map(h=>{const b=h.icon,v=m(h.path,h.exact);return e.jsxs(W.Link,{to:h.path,onClick:t,className:`flex items-center gap-3 px-3 py-2.5 transition-colors ${v?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},children:[e.jsx(b,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:a(h.labelKey)})]},h.path)})]})]});return e.jsxs(e.Fragment,{children:[e.jsx("aside",{className:"hidden lg:block w-64 h-[calc(100vh-4rem)] fixed top-16 left-0 bg-[var(--bg-secondary)] border-r border-[var(--border-color)]",children:p}),s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lg:hidden fixed inset-0 bg-black/50 z-40",onClick:t}),e.jsx("aside",{className:"lg:hidden fixed top-0 left-0 h-full w-64 bg-[var(--bg-secondary)] border-r border-[var(--border-color)] z-50",children:p})]})]})}function Cl({name:s,className:t}){const n=es[s];return n?e.jsx(n,{className:t}):e.jsx(r.Star,{className:t})}function Kg({isOpen:s=!0,onClose:t}){const{t:a}=ae.useTranslation(["navigation","common"]),n=W.useLocation(),{favorites:i,loading:o}=as(),{expandFavorites:c,clearExpand:x}=as(),{isCollapsed:u,toggleCollapsed:d}=st(),{getApplicationsForContext:m}=Ze(),[p,h]=l.useState(!1),g=m("personal").find(k=>k.code==="myspace"||k.code==="core_myspace")?.modules||[];l.useEffect(()=>{c&&(queueMicrotask(()=>{h(!1)}),x())},[c,x]);const N=(k,f)=>f?n.pathname===k:n.pathname.startsWith(k),w=e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"lg:hidden flex items-center justify-between p-4 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"font-semibold",children:"Menu"}),e.jsx("button",{onClick:t,className:"p-2 hover:bg-[var(--bg-tertiary)]",style:{borderRadius:"var(--radius-button)"},children:e.jsx(r.X,{className:"w-5 h-5"})})]}),e.jsxs("nav",{className:`flex-1 overflow-y-auto space-y-1 ${u?"p-2":"p-4"}`,children:[!o&&i.length>0&&e.jsxs("div",{className:"mb-4",children:[!u&&e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsxs("button",{onClick:()=>h(!p),className:"flex items-center gap-2 text-xs font-semibold text-[var(--text-muted)] uppercase tracking-wider hover:text-[var(--text-primary)] transition-colors",children:[p?e.jsx(r.ChevronRight,{className:"w-3.5 h-3.5"}):e.jsx(r.ChevronDown,{className:"w-3.5 h-3.5"}),e.jsx(r.Star,{className:"w-3.5 h-3.5"}),a("common:favorites.quickAccess")]}),e.jsx(W.Link,{to:"/personal/myspace/preferences?tab=favorites",onClick:t,className:"p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] transition-colors",style:{borderRadius:"var(--radius-button)"},title:a("common:favorites.manage"),children:e.jsx(r.Settings,{className:"w-3.5 h-3.5"})})]}),(u||!p)&&e.jsx("div",{className:"space-y-0.5",children:i.map(k=>{const f=n.pathname===k.route;return e.jsxs(W.Link,{to:k.route,onClick:t,className:`relative group flex items-center transition-colors ${u?"justify-center px-2 py-2":"gap-3 px-3 py-2"} ${f?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},title:u?`${k.label} (${k.applicationLabel})`:void 0,children:[e.jsx(Cl,{name:k.icon,className:"w-4 h-4 flex-shrink-0"}),!u&&e.jsx("span",{className:"text-sm font-medium truncate",children:k.label}),u&&e.jsx("div",{className:"absolute left-full top-0 ml-2 px-3 py-2 bg-[var(--bg-secondary)] border border-[var(--border-color)] shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 whitespace-nowrap z-50",style:{borderRadius:"var(--radius-menu-item)"},children:e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:k.label})})]},k.id)})}),!u&&e.jsx("div",{className:"my-3 border-b border-[var(--border-color)]"})]}),e.jsxs(W.Link,{to:"/personal/myspace",onClick:t,className:`relative group flex items-center transition-colors ${u?"justify-center px-2 py-2.5":"gap-3 px-3 py-2.5"} ${N("/personal/myspace",!0)?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},title:u?a("sidebar.dashboard"):void 0,children:[e.jsx(r.LayoutDashboard,{className:"w-5 h-5 flex-shrink-0"}),!u&&e.jsx("span",{className:"font-medium",children:a("sidebar.dashboard")}),u&&e.jsx("div",{className:"absolute left-full top-0 ml-2 px-3 py-2 bg-[var(--bg-secondary)] border border-[var(--border-color)] shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 whitespace-nowrap z-50",style:{borderRadius:"var(--radius-menu-item)"},children:e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:a("sidebar.dashboard")})})]}),g.map(k=>{const f=k.route||`/personal/myspace/${k.code}`,j=N(f);return e.jsxs(W.Link,{to:f,onClick:t,className:`relative group flex items-center transition-colors ${u?"justify-center px-2 py-2.5":"gap-3 px-3 py-2.5"} ${j?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},title:u?k.label:void 0,children:[e.jsx(Cl,{name:k.icon||"Star",className:"w-5 h-5 flex-shrink-0"}),!u&&e.jsx("span",{className:"font-medium",children:k.label}),u&&e.jsx("div",{className:"absolute left-full top-0 ml-2 px-3 py-2 bg-[var(--bg-secondary)] border border-[var(--border-color)] shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 whitespace-nowrap z-50",style:{borderRadius:"var(--radius-menu-item)"},children:e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:k.label})})]},k.id)})]}),e.jsx("div",{className:`border-t border-[var(--border-color)] ${u?"p-2":"p-3"}`,children:e.jsx("button",{onClick:d,className:`hidden lg:flex w-full items-center transition-all text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] ${u?"justify-center px-2 py-2":"gap-2 px-3 py-2"}`,style:{borderRadius:"var(--radius-menu-item)"},title:u?a("sidebar.expand","Agrandir le menu"):a("sidebar.collapse","Réduire le menu"),children:u?e.jsx(r.PanelLeft,{className:"w-5 h-5"}):e.jsxs(e.Fragment,{children:[e.jsx(r.PanelLeftClose,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm",children:a("sidebar.collapse","Réduire")})]})})})]});return e.jsxs(e.Fragment,{children:[e.jsx("aside",{className:`hidden lg:block h-[calc(100vh-4rem)] fixed top-16 left-0 bg-[var(--bg-secondary)] border-r border-[var(--border-color)] transition-all duration-300 ${u?"w-16":"w-64"}`,children:w}),s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lg:hidden fixed inset-0 bg-black/50 z-40",onClick:t}),e.jsx("aside",{className:"lg:hidden fixed top-0 left-0 h-full w-64 bg-[var(--bg-secondary)] border-r border-[var(--border-color)] z-50",children:w})]})]})}function _g(s){const t=s.message.toLowerCase(),a=s.name.toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("failed to fetch")||t.includes("econnrefused")||t.includes("timeout")?"network":t.includes("401")||t.includes("403")||t.includes("unauthorized")||t.includes("forbidden")||t.includes("permission")?"permission":t.includes("404")||t.includes("not found")?"notFound":a.includes("validation")||t.includes("validation")||t.includes("invalid")?"validation":"technical"}function Wg(){const s=Date.now().toString(36),t=Math.random().toString(36).substring(2,6);return`ERR-${s}-${t}`.toUpperCase()}const Xg={network:{icon:r.WifiOff,color:"text-orange-500",bgColor:"bg-orange-500/10"},permission:{icon:r.ShieldX,color:"text-red-500",bgColor:"bg-red-500/10"},notFound:{icon:r.FileWarning,color:"text-yellow-500",bgColor:"bg-yellow-500/10"},validation:{icon:r.AlertTriangle,color:"text-amber-500",bgColor:"bg-amber-500/10"},technical:{icon:r.Bug,color:"text-red-500",bgColor:"bg-red-500/10"}};function Qg({error:s,resetErrorBoundary:t}){const{t:a}=ae.useTranslation("common"),[n,i]=l.useState(!1),[o]=l.useState(()=>Wg()),c=_g(s),x=Xg[c],u=x.icon,d=()=>{window.history.length>2&&document.referrer?window.location.href=document.referrer:window.history.length>2?(window.history.back(),setTimeout(()=>window.location.reload(),50)):window.location.href="/"};return e.jsx("div",{className:"flex items-center justify-center min-h-[400px] p-6",children:e.jsx("div",{className:"max-w-md w-full p-6 bg-[var(--bg-card)] border border-[var(--border-color)] rounded-xl shadow-lg",children:e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("div",{className:`w-14 h-14 rounded-full ${x.bgColor} flex items-center justify-center mb-4`,children:e.jsx(u,{className:`w-7 h-7 ${x.color}`})}),e.jsx("h2",{className:"text-xl font-bold text-[var(--text-primary)] mb-2",children:a(`errors.${c}.title`,a("errors.technical.title"))}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mb-3",children:a(`errors.${c}.description`,a("errors.technical.description"))}),e.jsxs("div",{className:"mb-4 px-2 py-1 bg-[var(--bg-tertiary)] rounded border border-[var(--border-color)]",children:[e.jsxs("span",{className:"text-xs text-[var(--text-tertiary)]",children:[a("errors.errorId"),": "]}),e.jsx("span",{className:"text-xs font-mono text-[var(--text-secondary)]",children:o})]}),!1,e.jsxs("div",{className:"flex gap-2 w-full",children:[e.jsxs("button",{onClick:t,className:"flex-1 flex items-center justify-center gap-2 py-2.5 px-3 rounded-lg bg-[var(--color-accent-600)] hover:bg-[var(--color-accent-700)] text-white text-sm font-medium transition-all",children:[e.jsx(r.RefreshCw,{className:"w-4 h-4"}),a("errors.retry")]}),e.jsxs("button",{onClick:d,className:"flex-1 flex items-center justify-center gap-2 py-2.5 px-3 rounded-lg bg-[var(--bg-tertiary)] hover:bg-[var(--bg-hover)] border border-[var(--border-color)] text-[var(--text-primary)] text-sm font-medium transition-all",children:[e.jsx(r.ArrowLeft,{className:"w-4 h-4"}),a("errors.goBack")]})]})]})})})}function Jg(s,t){qe.logError(s,"RouteErrorBoundary",{componentStack:t.componentStack})}function Yg({children:s}){return e.jsx(Rl.ErrorBoundary,{FallbackComponent:Qg,onError:Jg,onReset:()=>{window.location.reload()},children:s})}function Zg({feature:s,children:t,fallback:a,minimal:n=!1}){const{t:i}=ae.useTranslation("admin"),{isFeatureEnabled:o,license:c,isLoading:x}=_t();return x?e.jsx(e.Fragment,{children:t}):o(s)?e.jsx(e.Fragment,{children:t}):a?e.jsx(e.Fragment,{children:a}):n?e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2 py-1 bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded text-sm",children:[e.jsx(r.Lock,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:i("license.featureLocked","Locked")})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center p-8 bg-gray-50 dark:bg-gray-800/50 rounded-xl border-2 border-dashed border-gray-200 dark:border-gray-700",children:[e.jsx("div",{className:"p-4 bg-gray-100 dark:bg-gray-700 rounded-full mb-4",children:e.jsx(r.Lock,{className:"w-8 h-8 text-gray-400 dark:text-gray-500"})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:i("license.featureNotAvailable","Feature Not Available")}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center max-w-sm mb-4",children:i("license.upgradeToAccess","Upgrade your license to access the {{feature}} feature.",{feature:s})}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400 dark:text-gray-500",children:[e.jsx(r.Sparkles,{className:"w-4 h-4"}),e.jsx("span",{children:i("license.currentEdition","Current: {{edition}}",{edition:c?.edition||"Unknown"})})]})]})}function ef({open:s,onOpenChange:t}){const{t:a}=ae.useTranslation("admin"),{activateLicense:n}=_t(),[i,o]=l.useState(""),[c,x]=l.useState(!1),[u,d]=l.useState(null),[m,p]=l.useState(!1),h=async()=>{if(!i.trim()){d(a("license.errors.keyRequired","License key is required"));return}x(!0),d(null),p(!1);const v=await n(i.trim());x(!1),v.success?(p(!0),setTimeout(()=>{o(""),p(!1),t(!1)},1500)):d(v.error||a("license.errors.activationFailed","Activation failed"))},b=()=>{c||(o(""),d(null),p(!1),t(!1))};return s?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:b}),e.jsxs("div",{className:"relative bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full max-w-lg mx-4 overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 dark:border-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg",children:e.jsx(r.Key,{className:"w-5 h-5 text-blue-600 dark:text-blue-400"})}),e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:a("license.activateTitle","Activate License")})]}),e.jsx("button",{onClick:b,disabled:c,className:"p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 disabled:opacity-50",children:e.jsx(r.X,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"px-6 py-4 space-y-4",children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:a("license.activateDescription","Enter your license key to activate the product. The key is a JWT token provided by AtlasHub.")}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:a("license.keyLabel","License Key")}),e.jsx("textarea",{value:i,onChange:v=>{o(v.target.value),d(null)},placeholder:a("license.keyPlaceholder","eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."),rows:6,disabled:c||m,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg font-mono text-xs bg-white dark:bg-gray-900 text-gray-900 dark:text-white placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed resize-none"})]}),u&&e.jsxs("div",{className:"flex items-start gap-2 p-3 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg",children:[e.jsx(r.AlertCircle,{className:"w-5 h-5 text-red-600 dark:text-red-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:u})]}),m&&e.jsxs("div",{className:"flex items-start gap-2 p-3 bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg",children:[e.jsx(r.CheckCircle,{className:"w-5 h-5 text-green-600 dark:text-green-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm text-green-700 dark:text-green-300",children:a("license.activationSuccess","License activated successfully!")})]})]}),e.jsxs("div",{className:"flex justify-end gap-3 px-6 py-4 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50",children:[e.jsx("button",{onClick:b,disabled:c,className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:a("common:cancel","Cancel")}),e.jsxs("button",{onClick:h,disabled:c||m||!i.trim(),className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center gap-2",children:[c&&e.jsx(r.Loader2,{className:"w-4 h-4 animate-spin"}),m&&e.jsx(r.CheckCircle,{className:"w-4 h-4"}),c?a("license.activating","Activating..."):m?a("license.activated","Activated!"):a("license.activate","Activate")]})]})]})]}):null}function sf({showDetails:s=!1}){const{t}=ae.useTranslation("admin"),{license:a,isLoading:n}=_t();if(n||!a)return null;const{status:i,edition:o,isInTrial:c,trialDaysRemaining:x,isReadOnlyMode:u,daysUntilExpiration:d}=a;if(u)return e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-200 rounded-full text-sm font-medium",children:[e.jsx(r.XCircle,{className:"w-4 h-4"}),e.jsx("span",{children:t("license.readOnlyMode","Read-only mode")})]});if(c){const m=x<=7?"text-amber-800 dark:text-amber-200 bg-amber-100 dark:bg-amber-900/30":"text-blue-800 dark:text-blue-200 bg-blue-100 dark:bg-blue-900/30";return e.jsxs("div",{className:`flex items-center gap-2 px-3 py-1.5 rounded-full text-sm font-medium ${m}`,children:[e.jsx(r.Clock,{className:"w-4 h-4"}),e.jsx("span",{children:t("license.trialDaysRemaining","{{days}} trial days left",{days:x})})]})}return d<=30&&i==="Active"?e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-amber-100 dark:bg-amber-900/30 text-amber-800 dark:text-amber-200 rounded-full text-sm font-medium",children:[e.jsx(r.AlertTriangle,{className:"w-4 h-4"}),e.jsx("span",{children:t("license.expiresIn","Expires in {{days}} days",{days:d})})]}):i==="Active"?e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-200 rounded-full text-sm font-medium",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4"}),e.jsx("span",{children:t(`license.edition.${o.toLowerCase()}`,o)}),s&&e.jsxs("span",{className:"text-xs opacity-75",children:["(",d," ",t("license.daysLeft","days left"),")"]})]}):e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-200 rounded-full text-sm font-medium",children:[e.jsx(r.Shield,{className:"w-4 h-4"}),e.jsx("span",{children:t(`license.status.${i.toLowerCase()}`,i)})]})}function Sl({name:s,className:t}){const n=es[s];return n?e.jsx(n,{className:t}):e.jsx(r.Star,{className:t})}function ro({isOpen:s,onClose:t}){const{t:a}=ae.useTranslation(["common","navigation"]),{menu:n}=Ze(),{favorites:i,toggleFavorite:o,isFavorite:c,canAddMore:x,maxFavorites:u}=as();if(!s)return null;const d=[];n?.contexts.forEach(p=>{p.applications.forEach(h=>{h.modules&&h.modules.length>0&&d.push({context:p.code,contextLabel:p.label,app:h,modules:h.modules})})});const m=(p,h,b)=>{const v={id:p.id,code:p.code,label:p.label,icon:p.icon||"Star",route:`/${b}/${h.code}/${p.code}`,applicationCode:h.code,applicationLabel:h.label};o(v)};return e.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:e.jsxs("div",{className:"bg-[var(--bg-primary)] rounded-[var(--radius-modal)] shadow-xl w-full max-w-lg max-h-[80vh] flex flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-[var(--border-color)]",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[e.jsx(r.Star,{className:"w-5 h-5 text-[var(--color-accent-500)]"}),a("common:favorites.manageTitle")]}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mt-1",children:a("common:favorites.selectModules",{count:i.length,max:u})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>{const p={component:"FavoritesModal",url:window.location.href},h=`https://github.com/anthropics/claude-code/issues/new?title=${encodeURIComponent("[Bug] Favorites Modal")}&body=${encodeURIComponent(`## Context
|
|
505
|
+
`,style:{backgroundColor:F.bg},title:`${n(P)} × ${m(q)}: ${F.label}`,children:E!=="none"&&e.jsx(K,{className:"w-4 h-4",style:{color:F.color}})})},`${H}-${$}`)},[g,A,O,j,n,m]);return N?e.jsx("div",{className:"flex items-center justify-center py-12",children:e.jsx(r.Loader2,{className:"w-8 h-8 animate-spin text-[var(--color-primary-500)]"})}):s.length===0||t.length===0?e.jsx("div",{className:"text-center py-12 text-[var(--text-secondary)]",children:y}):e.jsxs("div",{className:`space-y-4 ${S}`,children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[k&&e.jsxs("div",{className:"relative max-w-xs",children:[e.jsx(r.Search,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-[var(--text-secondary)]"}),e.jsx("input",{type:"text",value:D,onChange:H=>C(H.target.value),placeholder:"Rechercher...",className:"input pl-10 w-full"})]}),w&&e.jsx("div",{className:"flex items-center gap-4 text-xs",children:Object.entries(Gr).map(([H,$])=>{if(H==="none")return null;const E=$.icon;return e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-5 h-5 rounded flex items-center justify-center",style:{backgroundColor:$.bg},children:e.jsx(E,{className:"w-3 h-3",style:{color:$.color}})}),e.jsx("span",{className:"text-[var(--text-secondary)]",children:$.label})]},H)})})]}),e.jsx("div",{className:"overflow-x-auto border border-[var(--border-color)] rounded-lg",children:e.jsxs("table",{className:"border-collapse",style:{width:"auto"},children:[e.jsx("thead",{className:"bg-[var(--bg-secondary)]",children:e.jsxs("tr",{children:[e.jsx("th",{className:"sticky left-0 z-20 bg-[var(--bg-secondary)] px-3 text-left text-xs font-medium text-[var(--text-secondary)] uppercase tracking-wider border-b border-[var(--border-color)]",style:{width:f,minWidth:f,height:"120px",verticalAlign:"bottom",paddingBottom:"12px"},children:"Ressource"}),t.map(H=>{const $=d(H),E=p?.(H)||m(H),F=h?.(H),B=b?.(H);return e.jsx("th",{className:"relative overflow-visible border-b border-[var(--border-color)]",style:{width:j,minWidth:j,maxWidth:j,height:"120px",padding:0,verticalAlign:"bottom"},children:e.jsx("div",{className:"absolute bottom-2 left-1/2",style:{transform:"translateX(-6px) rotate(-55deg)",transformOrigin:"bottom left",width:"100px"},children:e.jsxs("div",{className:"flex items-center gap-1",children:[F&&e.jsx(r.Lock,{className:"w-3 h-3 flex-shrink-0 text-[var(--warning-text)]"}),e.jsx("span",{className:"text-[10px] font-medium text-[var(--text-primary)] whitespace-nowrap",style:{color:B},title:m(H),children:E})]})})},$)})]})}),e.jsx("tbody",{children:Array.from(M.entries()).map(([H,$])=>{const E=L.has(H),F=H==="_default",B=$.rows.length+Array.from($.subGroups.values()).reduce((J,P)=>J+P.length,0);return e.jsxs("tbody",{children:[!F&&e.jsxs("tr",{className:"bg-[var(--color-accent-900)]/30",children:[e.jsx("td",{className:"sticky left-0 z-10 px-3 py-2 bg-[var(--color-accent-900)]/30",style:{width:f},children:e.jsxs("button",{onClick:()=>X(H),className:"flex items-center gap-2 w-full text-left hover:opacity-80",children:[E?e.jsx(r.ChevronRight,{className:"w-4 h-4 text-[var(--color-accent-400)]"}):e.jsx(r.ChevronDown,{className:"w-4 h-4 text-[var(--color-accent-400)]"}),e.jsx("span",{className:"text-sm font-bold text-[var(--color-accent-300)] uppercase",children:H}),e.jsxs("span",{className:"text-xs text-[var(--color-accent-400)]",children:["(",B,")"]})]})}),e.jsx("td",{colSpan:t.length})]}),!E&&e.jsxs(e.Fragment,{children:[$.rows.map((J,P)=>{const q=a(J),K=x?.(J)||!1,se=c?.(J),Z=u?.(J),te=P%2===0?"bg-[var(--bg-primary)]":"bg-[var(--bg-secondary)]/50",oe=P%2===0?"":"bg-[var(--bg-secondary)]/50";return e.jsxs("tr",{className:`hover:bg-[var(--bg-tertiary)] ${oe}`,children:[e.jsx("td",{className:`sticky left-0 z-10 px-3 py-2 ${te}`,style:{width:f},children:e.jsxs("div",{className:"flex items-center gap-2",children:[se,K&&e.jsx(r.Lock,{className:"w-3 h-3 text-[var(--warning-text)]"}),e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:n(J)}),Z!==void 0&&e.jsxs("span",{className:"text-xs text-[var(--text-secondary)]",children:["(",Z,")"]})]})}),t.map(ke=>{const z=d(ke),G=h?.(ke)||!1,je=v(q,z),me=Gr[je];return U(q,z,je,me,K,G,J,ke)})]},q)}),Array.from($.subGroups.entries()).map(([J,P])=>e.jsxs("tbody",{children:[e.jsxs("tr",{className:"bg-[var(--bg-tertiary)]",children:[e.jsx("td",{className:"sticky left-0 z-10 px-3 py-1 pl-8 bg-[var(--bg-tertiary)]",style:{width:f},children:e.jsxs("span",{className:"text-xs font-semibold text-[var(--text-secondary)] uppercase",children:[J," (",P.length,")"]})}),e.jsx("td",{colSpan:t.length})]}),P.map((q,K)=>{const se=a(q),Z=x?.(q)||!1,te=c?.(q),oe=K%2===0?"bg-[var(--bg-primary)]":"bg-[var(--bg-secondary)]/50",ke=K%2===0?"":"bg-[var(--bg-secondary)]/50";return e.jsxs("tr",{className:`hover:bg-[var(--bg-tertiary)] ${ke}`,children:[e.jsx("td",{className:`sticky left-0 z-10 px-3 py-2 pl-12 ${oe}`,style:{width:f},children:e.jsxs("div",{className:"flex items-center gap-2",children:[te,Z&&e.jsx(r.Lock,{className:"w-3 h-3 text-[var(--warning-text)]"}),e.jsx("span",{className:"text-sm text-[var(--text-primary)]",children:n(q)})]})}),t.map(z=>{const G=d(z),je=h?.(z)||!1,me=v(se,G),we=Gr[me];return U(se,G,me,we,Z,je,q,z)})]},se)})]},J))]})]},H)})})]})})]})}function Hg({name:s,className:t}){const n=es[s];return n?e.jsx(n,{className:t}):e.jsx(r.Star,{className:t})}const Kg=[{path:"/platform",icon:r.LayoutDashboard,labelKey:"sidebar.dashboard",exact:!0},{path:"/platform/administration/users",icon:r.Users,labelKey:"sidebar.users"},{path:"/platform/administration/roles",icon:r.Key,labelKey:"sidebar.roles"}];function _g({isOpen:s=!0,onClose:t}){const{t:a}=ae.useTranslation(["navigation","common"]),n=W.useLocation(),{favorites:i,loading:o}=as(),{expandFavorites:c,clearExpand:x}=as(),[u,d]=l.useState(!1);l.useEffect(()=>{c&&(queueMicrotask(()=>{d(!1)}),x())},[c,x]);const m=(h,b)=>b?n.pathname===h:n.pathname.startsWith(h),p=e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"lg:hidden flex items-center justify-between p-4 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"font-semibold",children:"Menu"}),e.jsx("button",{onClick:t,className:"p-2 hover:bg-[var(--bg-tertiary)]",style:{borderRadius:"var(--radius-button)"},children:e.jsx(r.X,{className:"w-5 h-5"})})]}),e.jsxs("nav",{className:"flex-1 p-4 space-y-1 overflow-y-auto",children:[!o&&i.length>0&&e.jsxs("div",{className:"mb-4",children:[e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsxs("button",{onClick:()=>d(!u),className:"flex items-center gap-2 text-xs font-semibold text-[var(--text-muted)] uppercase tracking-wider hover:text-[var(--text-primary)] transition-colors",children:[u?e.jsx(r.ChevronRight,{className:"w-3.5 h-3.5"}):e.jsx(r.ChevronDown,{className:"w-3.5 h-3.5"}),e.jsx(r.Star,{className:"w-3.5 h-3.5"}),a("common:favorites.quickAccess")]}),e.jsx(W.Link,{to:"/personal/myspace/preferences?tab=favorites",onClick:t,className:"p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] transition-colors",style:{borderRadius:"var(--radius-button)"},title:a("common:favorites.manage"),children:e.jsx(r.Settings,{className:"w-3.5 h-3.5"})})]}),!u&&e.jsx("div",{className:"space-y-0.5",children:i.map(h=>{const b=n.pathname===h.route;return e.jsxs(W.Link,{to:h.route,onClick:t,className:`flex items-center gap-3 px-3 py-2 transition-colors ${b?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},title:`${h.label} (${h.applicationLabel})`,children:[e.jsx(Hg,{name:h.icon,className:"w-4 h-4"}),e.jsx("span",{className:"text-sm font-medium truncate",children:h.label})]},h.id)})}),e.jsx("div",{className:"my-3 border-b border-[var(--border-color)]"})]}),Kg.map(h=>{const b=h.icon,v=m(h.path,h.exact);return e.jsxs(W.Link,{to:h.path,onClick:t,className:`flex items-center gap-3 px-3 py-2.5 transition-colors ${v?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},children:[e.jsx(b,{className:"w-5 h-5"}),e.jsx("span",{className:"font-medium",children:a(h.labelKey)})]},h.path)})]})]});return e.jsxs(e.Fragment,{children:[e.jsx("aside",{className:"hidden lg:block w-64 h-[calc(100vh-4rem)] fixed top-16 left-0 bg-[var(--bg-secondary)] border-r border-[var(--border-color)]",children:p}),s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lg:hidden fixed inset-0 bg-black/50 z-40",onClick:t}),e.jsx("aside",{className:"lg:hidden fixed top-0 left-0 h-full w-64 bg-[var(--bg-secondary)] border-r border-[var(--border-color)] z-50",children:p})]})]})}function Cl({name:s,className:t}){const n=es[s];return n?e.jsx(n,{className:t}):e.jsx(r.Star,{className:t})}function Wg({isOpen:s=!0,onClose:t}){const{t:a}=ae.useTranslation(["navigation","common"]),n=W.useLocation(),{favorites:i,loading:o}=as(),{expandFavorites:c,clearExpand:x}=as(),{isCollapsed:u,toggleCollapsed:d}=st(),{getApplicationsForContext:m}=Ze(),[p,h]=l.useState(!1),g=m("personal").find(k=>k.code==="myspace"||k.code==="core_myspace")?.modules||[];l.useEffect(()=>{c&&(queueMicrotask(()=>{h(!1)}),x())},[c,x]);const N=(k,f)=>f?n.pathname===k:n.pathname.startsWith(k),w=e.jsxs("div",{className:"flex flex-col h-full",children:[e.jsxs("div",{className:"lg:hidden flex items-center justify-between p-4 border-b border-[var(--border-color)]",children:[e.jsx("span",{className:"font-semibold",children:"Menu"}),e.jsx("button",{onClick:t,className:"p-2 hover:bg-[var(--bg-tertiary)]",style:{borderRadius:"var(--radius-button)"},children:e.jsx(r.X,{className:"w-5 h-5"})})]}),e.jsxs("nav",{className:`flex-1 overflow-y-auto space-y-1 ${u?"p-2":"p-4"}`,children:[!o&&i.length>0&&e.jsxs("div",{className:"mb-4",children:[!u&&e.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[e.jsxs("button",{onClick:()=>h(!p),className:"flex items-center gap-2 text-xs font-semibold text-[var(--text-muted)] uppercase tracking-wider hover:text-[var(--text-primary)] transition-colors",children:[p?e.jsx(r.ChevronRight,{className:"w-3.5 h-3.5"}):e.jsx(r.ChevronDown,{className:"w-3.5 h-3.5"}),e.jsx(r.Star,{className:"w-3.5 h-3.5"}),a("common:favorites.quickAccess")]}),e.jsx(W.Link,{to:"/personal/myspace/preferences?tab=favorites",onClick:t,className:"p-1 text-[var(--text-muted)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] transition-colors",style:{borderRadius:"var(--radius-button)"},title:a("common:favorites.manage"),children:e.jsx(r.Settings,{className:"w-3.5 h-3.5"})})]}),(u||!p)&&e.jsx("div",{className:"space-y-0.5",children:i.map(k=>{const f=n.pathname===k.route;return e.jsxs(W.Link,{to:k.route,onClick:t,className:`relative group flex items-center transition-colors ${u?"justify-center px-2 py-2":"gap-3 px-3 py-2"} ${f?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},title:u?`${k.label} (${k.applicationLabel})`:void 0,children:[e.jsx(Cl,{name:k.icon,className:"w-4 h-4 flex-shrink-0"}),!u&&e.jsx("span",{className:"text-sm font-medium truncate",children:k.label}),u&&e.jsx("div",{className:"absolute left-full top-0 ml-2 px-3 py-2 bg-[var(--bg-secondary)] border border-[var(--border-color)] shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 whitespace-nowrap z-50",style:{borderRadius:"var(--radius-menu-item)"},children:e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:k.label})})]},k.id)})}),!u&&e.jsx("div",{className:"my-3 border-b border-[var(--border-color)]"})]}),e.jsxs(W.Link,{to:"/personal/myspace",onClick:t,className:`relative group flex items-center transition-colors ${u?"justify-center px-2 py-2.5":"gap-3 px-3 py-2.5"} ${N("/personal/myspace",!0)?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},title:u?a("sidebar.dashboard"):void 0,children:[e.jsx(r.LayoutDashboard,{className:"w-5 h-5 flex-shrink-0"}),!u&&e.jsx("span",{className:"font-medium",children:a("sidebar.dashboard")}),u&&e.jsx("div",{className:"absolute left-full top-0 ml-2 px-3 py-2 bg-[var(--bg-secondary)] border border-[var(--border-color)] shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 whitespace-nowrap z-50",style:{borderRadius:"var(--radius-menu-item)"},children:e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:a("sidebar.dashboard")})})]}),g.map(k=>{const f=k.route||`/personal/myspace/${k.code}`,j=N(f);return e.jsxs(W.Link,{to:f,onClick:t,className:`relative group flex items-center transition-colors ${u?"justify-center px-2 py-2.5":"gap-3 px-3 py-2.5"} ${j?"bg-[var(--accent-bg)] text-[var(--color-accent-500)]":"text-[var(--text-secondary)] hover:bg-[var(--bg-tertiary)] hover:text-[var(--text-primary)]"}`,style:{borderRadius:"var(--radius-menu-item)"},title:u?k.label:void 0,children:[e.jsx(Cl,{name:k.icon||"Star",className:"w-5 h-5 flex-shrink-0"}),!u&&e.jsx("span",{className:"font-medium",children:k.label}),u&&e.jsx("div",{className:"absolute left-full top-0 ml-2 px-3 py-2 bg-[var(--bg-secondary)] border border-[var(--border-color)] shadow-lg opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-200 whitespace-nowrap z-50",style:{borderRadius:"var(--radius-menu-item)"},children:e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:k.label})})]},k.id)})]}),e.jsx("div",{className:`border-t border-[var(--border-color)] ${u?"p-2":"p-3"}`,children:e.jsx("button",{onClick:d,className:`hidden lg:flex w-full items-center transition-all text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-tertiary)] ${u?"justify-center px-2 py-2":"gap-2 px-3 py-2"}`,style:{borderRadius:"var(--radius-menu-item)"},title:u?a("sidebar.expand","Agrandir le menu"):a("sidebar.collapse","Réduire le menu"),children:u?e.jsx(r.PanelLeft,{className:"w-5 h-5"}):e.jsxs(e.Fragment,{children:[e.jsx(r.PanelLeftClose,{className:"w-5 h-5"}),e.jsx("span",{className:"text-sm",children:a("sidebar.collapse","Réduire")})]})})})]});return e.jsxs(e.Fragment,{children:[e.jsx("aside",{className:`hidden lg:block h-[calc(100vh-4rem)] fixed top-16 left-0 bg-[var(--bg-secondary)] border-r border-[var(--border-color)] transition-all duration-300 ${u?"w-16":"w-64"}`,children:w}),s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"lg:hidden fixed inset-0 bg-black/50 z-40",onClick:t}),e.jsx("aside",{className:"lg:hidden fixed top-0 left-0 h-full w-64 bg-[var(--bg-secondary)] border-r border-[var(--border-color)] z-50",children:w})]})]})}function Xg(s){const t=s.message.toLowerCase(),a=s.name.toLowerCase();return t.includes("network")||t.includes("fetch")||t.includes("failed to fetch")||t.includes("econnrefused")||t.includes("timeout")?"network":t.includes("401")||t.includes("403")||t.includes("unauthorized")||t.includes("forbidden")||t.includes("permission")?"permission":t.includes("404")||t.includes("not found")?"notFound":a.includes("validation")||t.includes("validation")||t.includes("invalid")?"validation":"technical"}function Qg(){const s=Date.now().toString(36),t=Math.random().toString(36).substring(2,6);return`ERR-${s}-${t}`.toUpperCase()}const Jg={network:{icon:r.WifiOff,color:"text-orange-500",bgColor:"bg-orange-500/10"},permission:{icon:r.ShieldX,color:"text-red-500",bgColor:"bg-red-500/10"},notFound:{icon:r.FileWarning,color:"text-yellow-500",bgColor:"bg-yellow-500/10"},validation:{icon:r.AlertTriangle,color:"text-amber-500",bgColor:"bg-amber-500/10"},technical:{icon:r.Bug,color:"text-red-500",bgColor:"bg-red-500/10"}};function Yg({error:s,resetErrorBoundary:t}){const{t:a}=ae.useTranslation("common"),[n,i]=l.useState(!1),[o]=l.useState(()=>Qg()),c=Xg(s),x=Jg[c],u=x.icon,d=()=>{window.history.length>2&&document.referrer?window.location.href=document.referrer:window.history.length>2?(window.history.back(),setTimeout(()=>window.location.reload(),50)):window.location.href="/"};return e.jsx("div",{className:"flex items-center justify-center min-h-[400px] p-6",children:e.jsx("div",{className:"max-w-md w-full p-6 bg-[var(--bg-card)] border border-[var(--border-color)] rounded-xl shadow-lg",children:e.jsxs("div",{className:"flex flex-col items-center text-center",children:[e.jsx("div",{className:`w-14 h-14 rounded-full ${x.bgColor} flex items-center justify-center mb-4`,children:e.jsx(u,{className:`w-7 h-7 ${x.color}`})}),e.jsx("h2",{className:"text-xl font-bold text-[var(--text-primary)] mb-2",children:a(`errors.${c}.title`,a("errors.technical.title"))}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mb-3",children:a(`errors.${c}.description`,a("errors.technical.description"))}),e.jsxs("div",{className:"mb-4 px-2 py-1 bg-[var(--bg-tertiary)] rounded border border-[var(--border-color)]",children:[e.jsxs("span",{className:"text-xs text-[var(--text-tertiary)]",children:[a("errors.errorId"),": "]}),e.jsx("span",{className:"text-xs font-mono text-[var(--text-secondary)]",children:o})]}),!1,e.jsxs("div",{className:"flex gap-2 w-full",children:[e.jsxs("button",{onClick:t,className:"flex-1 flex items-center justify-center gap-2 py-2.5 px-3 rounded-lg bg-[var(--color-accent-600)] hover:bg-[var(--color-accent-700)] text-white text-sm font-medium transition-all",children:[e.jsx(r.RefreshCw,{className:"w-4 h-4"}),a("errors.retry")]}),e.jsxs("button",{onClick:d,className:"flex-1 flex items-center justify-center gap-2 py-2.5 px-3 rounded-lg bg-[var(--bg-tertiary)] hover:bg-[var(--bg-hover)] border border-[var(--border-color)] text-[var(--text-primary)] text-sm font-medium transition-all",children:[e.jsx(r.ArrowLeft,{className:"w-4 h-4"}),a("errors.goBack")]})]})]})})})}function Zg(s,t){qe.logError(s,"RouteErrorBoundary",{componentStack:t.componentStack})}function ef({children:s}){return e.jsx(Rl.ErrorBoundary,{FallbackComponent:Yg,onError:Zg,onReset:()=>{window.location.reload()},children:s})}function sf({feature:s,children:t,fallback:a,minimal:n=!1}){const{t:i}=ae.useTranslation("admin"),{isFeatureEnabled:o,license:c,isLoading:x}=_t();return x?e.jsx(e.Fragment,{children:t}):o(s)?e.jsx(e.Fragment,{children:t}):a?e.jsx(e.Fragment,{children:a}):n?e.jsxs("div",{className:"inline-flex items-center gap-1.5 px-2 py-1 bg-gray-100 dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded text-sm",children:[e.jsx(r.Lock,{className:"w-3.5 h-3.5"}),e.jsx("span",{children:i("license.featureLocked","Locked")})]}):e.jsxs("div",{className:"flex flex-col items-center justify-center p-8 bg-gray-50 dark:bg-gray-800/50 rounded-xl border-2 border-dashed border-gray-200 dark:border-gray-700",children:[e.jsx("div",{className:"p-4 bg-gray-100 dark:bg-gray-700 rounded-full mb-4",children:e.jsx(r.Lock,{className:"w-8 h-8 text-gray-400 dark:text-gray-500"})}),e.jsx("h3",{className:"text-lg font-semibold text-gray-900 dark:text-white mb-2",children:i("license.featureNotAvailable","Feature Not Available")}),e.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center max-w-sm mb-4",children:i("license.upgradeToAccess","Upgrade your license to access the {{feature}} feature.",{feature:s})}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-400 dark:text-gray-500",children:[e.jsx(r.Sparkles,{className:"w-4 h-4"}),e.jsx("span",{children:i("license.currentEdition","Current: {{edition}}",{edition:c?.edition||"Unknown"})})]})]})}function tf({open:s,onOpenChange:t}){const{t:a}=ae.useTranslation("admin"),{activateLicense:n}=_t(),[i,o]=l.useState(""),[c,x]=l.useState(!1),[u,d]=l.useState(null),[m,p]=l.useState(!1),h=async()=>{if(!i.trim()){d(a("license.errors.keyRequired","License key is required"));return}x(!0),d(null),p(!1);const v=await n(i.trim());x(!1),v.success?(p(!0),setTimeout(()=>{o(""),p(!1),t(!1)},1500)):d(v.error||a("license.errors.activationFailed","Activation failed"))},b=()=>{c||(o(""),d(null),p(!1),t(!1))};return s?e.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[e.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm",onClick:b}),e.jsxs("div",{className:"relative bg-white dark:bg-gray-800 rounded-lg shadow-xl w-full max-w-lg mx-4 overflow-hidden",children:[e.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-gray-200 dark:border-gray-700",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"p-2 bg-blue-100 dark:bg-blue-900/30 rounded-lg",children:e.jsx(r.Key,{className:"w-5 h-5 text-blue-600 dark:text-blue-400"})}),e.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:a("license.activateTitle","Activate License")})]}),e.jsx("button",{onClick:b,disabled:c,className:"p-1 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-700 disabled:opacity-50",children:e.jsx(r.X,{className:"w-5 h-5"})})]}),e.jsxs("div",{className:"px-6 py-4 space-y-4",children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:a("license.activateDescription","Enter your license key to activate the product. The key is a JWT token provided by AtlasHub.")}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2",children:a("license.keyLabel","License Key")}),e.jsx("textarea",{value:i,onChange:v=>{o(v.target.value),d(null)},placeholder:a("license.keyPlaceholder","eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."),rows:6,disabled:c||m,className:"w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-lg font-mono text-xs bg-white dark:bg-gray-900 text-gray-900 dark:text-white placeholder-gray-400 focus:ring-2 focus:ring-blue-500 focus:border-transparent disabled:opacity-50 disabled:cursor-not-allowed resize-none"})]}),u&&e.jsxs("div",{className:"flex items-start gap-2 p-3 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg",children:[e.jsx(r.AlertCircle,{className:"w-5 h-5 text-red-600 dark:text-red-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm text-red-700 dark:text-red-300",children:u})]}),m&&e.jsxs("div",{className:"flex items-start gap-2 p-3 bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg",children:[e.jsx(r.CheckCircle,{className:"w-5 h-5 text-green-600 dark:text-green-400 flex-shrink-0 mt-0.5"}),e.jsx("p",{className:"text-sm text-green-700 dark:text-green-300",children:a("license.activationSuccess","License activated successfully!")})]})]}),e.jsxs("div",{className:"flex justify-end gap-3 px-6 py-4 border-t border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-800/50",children:[e.jsx("button",{onClick:b,disabled:c,className:"px-4 py-2 text-sm font-medium text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:a("common:cancel","Cancel")}),e.jsxs("button",{onClick:h,disabled:c||m||!i.trim(),className:"px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-lg hover:bg-blue-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors flex items-center gap-2",children:[c&&e.jsx(r.Loader2,{className:"w-4 h-4 animate-spin"}),m&&e.jsx(r.CheckCircle,{className:"w-4 h-4"}),c?a("license.activating","Activating..."):m?a("license.activated","Activated!"):a("license.activate","Activate")]})]})]})]}):null}function rf({showDetails:s=!1}){const{t}=ae.useTranslation("admin"),{license:a,isLoading:n}=_t();if(n||!a)return null;const{status:i,edition:o,isInTrial:c,trialDaysRemaining:x,isReadOnlyMode:u,daysUntilExpiration:d}=a;if(u)return e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-200 rounded-full text-sm font-medium",children:[e.jsx(r.XCircle,{className:"w-4 h-4"}),e.jsx("span",{children:t("license.readOnlyMode","Read-only mode")})]});if(c){const m=x<=7?"text-amber-800 dark:text-amber-200 bg-amber-100 dark:bg-amber-900/30":"text-blue-800 dark:text-blue-200 bg-blue-100 dark:bg-blue-900/30";return e.jsxs("div",{className:`flex items-center gap-2 px-3 py-1.5 rounded-full text-sm font-medium ${m}`,children:[e.jsx(r.Clock,{className:"w-4 h-4"}),e.jsx("span",{children:t("license.trialDaysRemaining","{{days}} trial days left",{days:x})})]})}return d<=30&&i==="Active"?e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-amber-100 dark:bg-amber-900/30 text-amber-800 dark:text-amber-200 rounded-full text-sm font-medium",children:[e.jsx(r.AlertTriangle,{className:"w-4 h-4"}),e.jsx("span",{children:t("license.expiresIn","Expires in {{days}} days",{days:d})})]}):i==="Active"?e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-green-100 dark:bg-green-900/30 text-green-800 dark:text-green-200 rounded-full text-sm font-medium",children:[e.jsx(r.CheckCircle,{className:"w-4 h-4"}),e.jsx("span",{children:t(`license.edition.${o.toLowerCase()}`,o)}),s&&e.jsxs("span",{className:"text-xs opacity-75",children:["(",d," ",t("license.daysLeft","days left"),")"]})]}):e.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 bg-red-100 dark:bg-red-900/30 text-red-800 dark:text-red-200 rounded-full text-sm font-medium",children:[e.jsx(r.Shield,{className:"w-4 h-4"}),e.jsx("span",{children:t(`license.status.${i.toLowerCase()}`,i)})]})}function Sl({name:s,className:t}){const n=es[s];return n?e.jsx(n,{className:t}):e.jsx(r.Star,{className:t})}function ro({isOpen:s,onClose:t}){const{t:a}=ae.useTranslation(["common","navigation"]),{menu:n}=Ze(),{favorites:i,toggleFavorite:o,isFavorite:c,canAddMore:x,maxFavorites:u}=as();if(!s)return null;const d=[];n?.contexts.forEach(p=>{p.applications.forEach(h=>{h.modules&&h.modules.length>0&&d.push({context:p.code,contextLabel:p.label,app:h,modules:h.modules})})});const m=(p,h,b)=>{const v={id:p.id,code:p.code,label:p.label,icon:p.icon||"Star",route:`/${b}/${h.code}/${p.code}`,applicationCode:h.code,applicationLabel:h.label};o(v)};return e.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",children:e.jsxs("div",{className:"bg-[var(--bg-primary)] rounded-[var(--radius-modal)] shadow-xl w-full max-w-lg max-h-[80vh] flex flex-col",children:[e.jsxs("div",{className:"flex items-center justify-between p-4 border-b border-[var(--border-color)]",children:[e.jsxs("div",{children:[e.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[e.jsx(r.Star,{className:"w-5 h-5 text-[var(--color-accent-500)]"}),a("common:favorites.manageTitle")]}),e.jsx("p",{className:"text-sm text-[var(--text-secondary)] mt-1",children:a("common:favorites.selectModules",{count:i.length,max:u})})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>{const p={component:"FavoritesModal",url:window.location.href},h=`https://github.com/anthropics/claude-code/issues/new?title=${encodeURIComponent("[Bug] Favorites Modal")}&body=${encodeURIComponent(`## Context
|
|
506
506
|
- Component: ${p.component}
|
|
507
507
|
- URL: ${p.url}
|
|
508
508
|
|
|
@@ -519,5 +519,5 @@ Votre demande necessite une expertise supplementaire...`,active:!1,order:4}],jl=
|
|
|
519
519
|
## Expected Behavior
|
|
520
520
|
|
|
521
521
|
## Actual Behavior
|
|
522
|
-
`)}`;window.open(h,"_blank")},className:"p-2 rounded-[var(--radius-button)] hover:bg-[var(--bg-hover)] transition-colors text-[var(--text-secondary)]",title:a("common:buttons.reportBug"),children:e.jsx(r.Bug,{className:"w-5 h-5"})}),e.jsx("button",{onClick:t,className:"p-2 rounded-[var(--radius-button)] hover:bg-[var(--bg-hover)] transition-colors",children:e.jsx(r.X,{className:"w-5 h-5"})})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[d.map(({context:p,app:h,modules:b})=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Sl,{name:h.icon||"Folder",className:"w-4 h-4 text-[var(--text-secondary)]"}),e.jsx("span",{className:"text-sm font-medium text-[var(--text-secondary)]",children:h.label})]}),e.jsx("div",{className:"space-y-1 ml-6",children:b.map(v=>{const g=c(v.id),N=!g&&!x;return e.jsxs("button",{onClick:()=>m(v,h,p),disabled:N,className:`w-full flex items-center gap-3 p-2.5 rounded-[var(--radius-button)] transition-all ${g?"bg-[var(--color-accent-100)] border border-[var(--color-accent-500)]":N?"opacity-50 cursor-not-allowed bg-[var(--bg-secondary)]":"bg-[var(--bg-secondary)] hover:bg-[var(--bg-hover)] border border-transparent hover:border-[var(--border-color)]"}`,children:[e.jsx("div",{className:`w-8 h-8 flex items-center justify-center rounded-[var(--radius-button)] ${g?"bg-[var(--color-accent-600)] text-white":"bg-[var(--bg-tertiary)] text-[var(--text-secondary)]"}`,children:e.jsx(Sl,{name:v.icon||"Star",className:"w-4 h-4"})}),e.jsx("span",{className:`flex-1 text-left text-sm ${g?"font-medium text-[var(--color-accent-700)]":"text-[var(--text-primary)]"}`,children:v.label}),g&&e.jsx(r.Check,{className:"w-4 h-4 text-[var(--color-accent-600)]"})]},v.id)})})]},h.id)),d.length===0&&e.jsx("div",{className:"text-center py-8 text-[var(--text-secondary)]",children:a("common:favorites.noModules")})]}),e.jsx("div",{className:"p-4 border-t border-[var(--border-color)]",children:e.jsx("button",{onClick:t,className:"w-full px-4 py-2 bg-[var(--color-accent-600)] text-white rounded-[var(--radius-button)] hover:bg-[var(--color-accent-700)] transition-colors font-medium",children:a("common:actions.done")})})]})})}function tf({name:s,className:t}){const n=es[s];return n?e.jsx(n,{className:t}):e.jsx(r.Star,{className:t})}function rf({className:s=""}){const{t}=ae.useTranslation(["common"]),a=W.useNavigate(),{favorites:n,maxFavorites:i}=as(),{triggerExpand:o}=as(),[c,x]=l.useState(!1),u=i-n.length,d=m=>{m.route&&(o(),a(m.route))};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`bg-[var(--bg-card)] border border-[var(--border-color)] rounded-[var(--radius-card)] p-4 ${s}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r.Star,{className:"w-4 h-4 text-[var(--color-accent-500)]"}),e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:t("common:favorites.quickAccess")})]}),e.jsxs("button",{onClick:()=>x(!0),className:"flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)] rounded-[var(--radius-button)] transition-colors",children:[e.jsx(r.Settings2,{className:"w-3.5 h-3.5"}),t("common:favorites.manage")]})]}),e.jsxs("div",{className:"flex gap-2 overflow-x-auto pb-1",children:[n.map(m=>e.jsxs("button",{onClick:()=>d(m),className:"flex flex-col items-center gap-1.5 min-w-[80px] p-3 bg-[var(--bg-secondary)] hover:bg-[var(--bg-hover)] border border-[var(--border-color)] hover:border-[var(--color-accent-500)] rounded-[var(--radius-card)] transition-all group",title:`${m.applicationLabel} - ${m.label}`,children:[e.jsx("div",{className:"w-8 h-8 flex items-center justify-center rounded-[var(--radius-button)] bg-[var(--color-accent-100)] text-[var(--color-accent-600)] group-hover:bg-[var(--color-accent-600)] group-hover:text-white transition-colors",children:e.jsx(tf,{name:m.icon||"Star",className:"w-4 h-4"})}),e.jsx("span",{className:"text-xs font-medium text-[var(--text-secondary)] group-hover:text-[var(--text-primary)] truncate max-w-[70px]",children:m.label})]},m.id)),Array.from({length:u}).map((m,p)=>e.jsxs("button",{onClick:()=>x(!0),className:"flex flex-col items-center justify-center gap-1.5 min-w-[80px] p-3 border-2 border-dashed border-[var(--border-color)] hover:border-[var(--color-accent-500)] rounded-[var(--radius-card)] transition-colors group",children:[e.jsx("div",{className:"w-8 h-8 flex items-center justify-center rounded-[var(--radius-button)] bg-[var(--bg-tertiary)] text-[var(--text-muted)] group-hover:bg-[var(--color-accent-100)] group-hover:text-[var(--color-accent-600)] transition-colors",children:e.jsx(r.Plus,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-xs text-[var(--text-muted)] group-hover:text-[var(--text-secondary)]",children:t("common:favorites.add")})]},`empty-slot-${p}`))]})]}),e.jsx(ro,{isOpen:c,onClose:()=>x(!1)})]})}function af({activities:s,loading:t=!1}){return t?e.jsx("div",{className:"animate-pulse space-y-4",children:[1,2,3].map(a=>e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[var(--bg-secondary)] rounded-full"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"h-4 bg-[var(--bg-secondary)] rounded w-3/4 mb-2"}),e.jsx("div",{className:"h-3 bg-[var(--bg-secondary)] rounded w-1/4"})]})]},a))}):s.length===0?e.jsxs("div",{className:"text-center py-8 text-[var(--text-secondary)]",children:[e.jsx(r.RefreshCcw,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),e.jsx("p",{children:"No activity recorded yet"})]}):e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-4 top-0 bottom-0 w-0.5 bg-[var(--border-color)]"}),e.jsx("div",{className:"space-y-4",children:s.map((a,n)=>e.jsx(nf,{activity:a,isLast:n===s.length-1},a.id))})]})}function nf({activity:s,isLast:t}){const{icon:a,color:n,bgColor:i}=cf(s.action),o=a;return e.jsxs("div",{className:"relative flex gap-4 pl-0",children:[e.jsx("div",{className:`relative z-10 w-8 h-8 rounded-full flex items-center justify-center ${i}`,children:e.jsx(o,{className:`w-4 h-4 ${n}`})}),e.jsx("div",{className:"flex-1 pb-4 ",children:e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"text-sm",children:[s.changedByUserName?e.jsx("span",{className:"font-medium",children:s.changedByUserName}):e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:"System"})," ",e.jsx("span",{className:"text-[var(--text-secondary)]",children:ff(s)})]}),s.fieldChanged&&s.oldValue&&s.newValue&&e.jsxs("div",{className:"mt-2 flex items-center gap-2 text-sm",children:[e.jsx("span",{className:"px-2 py-0.5 bg-[var(--error-bg)] text-[var(--error-text)] rounded line-through",children:s.oldValue}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-secondary)]"}),e.jsx("span",{className:"px-2 py-0.5 bg-[var(--success-bg)] text-[var(--success-text)] rounded",children:s.newValue})]})]}),e.jsx("span",{className:"text-xs text-[var(--text-secondary)] whitespace-nowrap",children:jf(s.createdAt)})]})})]})}const lf={Created:{icon:r.PlusCircle,color:"text-[var(--success-text)]",bgColor:"bg-[var(--success-bg)]"},StatusChanged:{icon:r.RefreshCcw,color:"text-[var(--info-text)]",bgColor:"bg-[var(--info-bg)]"},PriorityChanged:{icon:r.AlertTriangle,color:"text-[var(--warning-text)]",bgColor:"bg-[var(--warning-bg)]"},Assigned:{icon:r.UserPlus,color:"text-[var(--accent-text)]",bgColor:"bg-[var(--accent-bg)]"},Commented:{icon:r.MessageSquare,color:"text-[var(--info-text)]",bgColor:"bg-[var(--info-bg)]"},AttachmentAdded:{icon:r.Paperclip,color:"text-[var(--text-secondary)]",bgColor:"bg-[var(--bg-secondary)]"},Resolved:{icon:r.CheckCircle,color:"text-[var(--success-text)]",bgColor:"bg-[var(--success-bg)]"},Closed:{icon:r.XCircle,color:"text-[var(--text-secondary)]",bgColor:"bg-[var(--bg-secondary)]"},Reopened:{icon:r.RefreshCcw,color:"text-[var(--warning-text)]",bgColor:"bg-[var(--warning-bg)]"},SlaBreached:{icon:r.AlertTriangle,color:"text-[var(--error-text)]",bgColor:"bg-[var(--error-bg)]"},Escalated:{icon:r.TrendingUp,color:"text-[var(--error-text)]",bgColor:"bg-[var(--error-bg)]"},Updated:{icon:r.Edit,color:"text-[var(--info-text)]",bgColor:"bg-[var(--info-bg)]"},Deleted:{icon:r.Trash2,color:"text-[var(--error-text)]",bgColor:"bg-[var(--error-bg)]"},OnHold:{icon:r.Pause,color:"text-[var(--warning-text)]",bgColor:"bg-[var(--warning-bg)]"},InProgress:{icon:r.Play,color:"text-[var(--info-text)]",bgColor:"bg-[var(--info-bg)]"}},of={icon:r.RefreshCcw,color:"text-[var(--text-secondary)]",bgColor:"bg-[var(--bg-secondary)]"};function cf(s){return lf[s]||of}const df=s=>s.oldValue&&s.newValue?`changed status from ${s.oldValue} to ${s.newValue}`:"changed the status",mf=s=>s.oldValue&&s.newValue?`changed priority from ${s.oldValue} to ${s.newValue}`:"changed the priority",xf=s=>s.newValue?`assigned to ${s.newValue}`:"unassigned the ticket",uf=s=>s.newValue==="internal"?"added an internal note":"added a comment",pf=s=>s.newValue?`added attachment: ${s.newValue}`:"added an attachment",hf=s=>s.newValue==="response"?"Response SLA was breached":"Resolution SLA was breached",vf=s=>s.newValue?`escalated to ${s.newValue}`:"escalated this ticket",bf=s=>s.fieldChanged?`updated ${s.fieldChanged}`:"updated the ticket",gf={Created:()=>"created this ticket",StatusChanged:df,PriorityChanged:mf,Assigned:xf,Commented:uf,AttachmentAdded:pf,Resolved:()=>"resolved this ticket",Closed:()=>"closed this ticket",Reopened:()=>"reopened this ticket",SlaBreached:hf,Escalated:vf,Updated:bf,OnHold:()=>"put this ticket on hold",InProgress:()=>"started working on this ticket"};function ff(s){const t=gf[s.action];return t?t(s):s.action.toLowerCase()}function jf(s){const t=new Date(s),n=new Date().getTime()-t.getTime(),i=Math.floor(n/6e4),o=Math.floor(i/60),c=Math.floor(o/24);return i<1?"Just now":i<60?`${i}m ago`:o<24?`${o}h ago`:c<7?`${c}d ago`:t.toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function yf({responseDueAt:s,resolutionDueAt:t,responseBreached:a,resolutionBreached:n,firstResponseAt:i,isPaused:o,responseSlaPercentage:c=0,resolutionSlaPercentage:x=0,showDetails:u=!1}){const d=new Date,m=new Date(s),p=new Date(t),h=m.getTime()-d.getTime(),b=p.getTime()-d.getTime(),v=!!i;let g="ok",N="green",w=r.CheckCircle;o?(g="paused",N="gray",w=r.Pause):a||n?(g="breached",N="red",w=r.XCircle):(!v&&h<1800*1e3||b<3600*1e3)&&(g="warning",N="yellow",w=r.AlertTriangle);const k={green:"bg-[var(--success-bg)] text-[var(--success-text)] border-[var(--success-border)]",yellow:"bg-[var(--warning-bg)] text-[var(--warning-text)] border-[var(--warning-border)]",red:"bg-[var(--error-bg)] text-[var(--error-text)] border-[var(--error-border)]",gray:"bg-[var(--bg-secondary)] text-[var(--text-secondary)] border-[var(--border-color)]"};return u?e.jsxs("div",{className:`p-3 rounded-lg border ${k[N]}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(w,{className:"w-4 h-4"}),e.jsxs("span",{className:"font-medium",children:[g==="paused"&&"SLA Paused",g==="breached"&&"SLA Breached",g==="warning"&&"SLA Warning",g==="ok"&&"Within SLA"]})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"opacity-80",children:"Response"}),a?e.jsx("span",{className:"text-[var(--error-text)] font-medium",children:"Breached"}):v?e.jsx("span",{className:"text-[var(--success-text)] font-medium",children:"Completed"}):e.jsx("span",{children:Al(h)})]}),!v&&!a&&e.jsx(Tl,{percentage:c})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"opacity-80",children:"Resolution"}),n?e.jsx("span",{className:"text-[var(--error-text)] font-medium",children:"Breached"}):e.jsx("span",{children:Al(b)})]}),!n&&e.jsx(Tl,{percentage:x})]})]})]}):e.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-1 rounded text-xs font-medium border ${k[N]}`,children:[e.jsx(w,{className:"w-3 h-3"}),g==="paused"&&"SLA Paused",g==="breached"&&"SLA Breached",g==="warning"&&"SLA Warning",g==="ok"&&"Within SLA"]})}function Tl({percentage:s}){const t=()=>s>=90?"bg-[var(--error-text)]":s>=75?"bg-[var(--warning-text)]":"bg-[var(--success-text)]";return e.jsx("div",{className:"h-1.5 bg-white/50 rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full rounded-full transition-all duration-300 ${t()}`,style:{width:`${Math.min(s,100)}%`}})})}function Al(s){if(s<=0)return"Overdue";const t=Math.floor(s/(1e3*60)),a=Math.floor(t/60),n=Math.floor(a/24);if(n>0){const i=a%24;return i>0?`${n}d ${i}h`:`${n}d`}if(a>0){const i=t%60;return i>0?`${a}h ${i}m`:`${a}h`}return`${t}m`}exports.i18n=Ks;exports.ActivityTimeline=af;exports.AdminHeader=bi;exports.AdminLayout=ut;exports.AdminSidebar=Hg;exports.AppSwitcher=pa;exports.AuthLayout=qg;exports.AuthProvider=Bl;exports.Breadcrumb=De;exports.BusinessHeader=Ni;exports.BusinessLayout=Qr;exports.CreateTicketButton=Yt;exports.DataTable=Cs;exports.DataView=dd;exports.DocPanelProvider=va;exports.DocsLayout=ki;exports.EntityCard=Ns;exports.ErrorFallback=ei;exports.ExtendablePage=vd;exports.ExtensionProvider=mi;exports.FavoritesBar=rf;exports.FavoritesModal=ro;exports.FavoritesProvider=Gl;exports.FeatureGate=Zg;exports.Fill=ii;exports.Footer=ua;exports.GlobalErrorBoundary=si;exports.Header=xa;exports.KanbanBoard=ga;exports.LanguageSwitcher=tt;exports.LicenseActivationDialog=ef;exports.LicenseProvider=ql;exports.LicenseStatusBadge=sf;exports.ModuleSidebar=Zt;exports.NotificationBell=Jt;exports.PAGE_KEYS=bd;exports.PageHeader=rt;exports.PageRegistry=Ai;exports.PermissionMatrix=Vg;exports.PublicLayout=ui;exports.RouteErrorBoundary=Yg;exports.SessionProvider=Zl;exports.SessionWarningModal=Yl;exports.SidebarProvider=_l;exports.SignalRProvider=Ql;exports.SlaBadge=yf;exports.Slot=ls;exports.SlotFillProvider=li;exports.SmartStackProvider=ic;exports.ThemeCustomizer=Ji;exports.ThemeProvider=$l;exports.ThemeSwitcher=ms;exports.TicketConversation=_i;exports.TicketDetailView=ka;exports.TicketSidebar=Wi;exports.TicketsListView=cr;exports.Tooltip=Kt;exports.UnderDevelopment=or;exports.UserHeader=wi;exports.UserLayout=Jr;exports.UserSidebar=Kg;exports.api=le;exports.apiClient=Be;exports.createSlotFill=rc;exports.logService=qe;exports.mergeRoutes=Ug;exports.smartstackRoutes=eo;exports.useActivePage=hd;exports.useAuth=Ke;exports.useClientContext=Bg;exports.useCollapsibleState=sr;exports.useDocPanel=er;exports.useExtensions=gt;exports.useFavoriteModules=as;exports.useFavorites=as;exports.useFormFieldExtensions=ac;exports.useHasExtension=nc;exports.useLicense=_t;exports.usePageOverride=Xt;exports.usePageTracking=ai;exports.usePermissionMatrix=ja;exports.usePermissionSync=Og;exports.useSessionMonitor=Jl;exports.useSidebar=st;exports.useSignalR=to;exports.useSignalRContext=da;exports.useSlotFill=ni;exports.useSlotHasContent=tc;exports.useTableColumnExtensions=di;exports.useTheme=et;exports.useTicketSignalR=Xi;exports.useUserPermissions=Ii;exports.withPageOverride=pd;
|
|
522
|
+
`)}`;window.open(h,"_blank")},className:"p-2 rounded-[var(--radius-button)] hover:bg-[var(--bg-hover)] transition-colors text-[var(--text-secondary)]",title:a("common:buttons.reportBug"),children:e.jsx(r.Bug,{className:"w-5 h-5"})}),e.jsx("button",{onClick:t,className:"p-2 rounded-[var(--radius-button)] hover:bg-[var(--bg-hover)] transition-colors",children:e.jsx(r.X,{className:"w-5 h-5"})})]})]}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4 space-y-4",children:[d.map(({context:p,app:h,modules:b})=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(Sl,{name:h.icon||"Folder",className:"w-4 h-4 text-[var(--text-secondary)]"}),e.jsx("span",{className:"text-sm font-medium text-[var(--text-secondary)]",children:h.label})]}),e.jsx("div",{className:"space-y-1 ml-6",children:b.map(v=>{const g=c(v.id),N=!g&&!x;return e.jsxs("button",{onClick:()=>m(v,h,p),disabled:N,className:`w-full flex items-center gap-3 p-2.5 rounded-[var(--radius-button)] transition-all ${g?"bg-[var(--color-accent-100)] border border-[var(--color-accent-500)]":N?"opacity-50 cursor-not-allowed bg-[var(--bg-secondary)]":"bg-[var(--bg-secondary)] hover:bg-[var(--bg-hover)] border border-transparent hover:border-[var(--border-color)]"}`,children:[e.jsx("div",{className:`w-8 h-8 flex items-center justify-center rounded-[var(--radius-button)] ${g?"bg-[var(--color-accent-600)] text-white":"bg-[var(--bg-tertiary)] text-[var(--text-secondary)]"}`,children:e.jsx(Sl,{name:v.icon||"Star",className:"w-4 h-4"})}),e.jsx("span",{className:`flex-1 text-left text-sm ${g?"font-medium text-[var(--color-accent-700)]":"text-[var(--text-primary)]"}`,children:v.label}),g&&e.jsx(r.Check,{className:"w-4 h-4 text-[var(--color-accent-600)]"})]},v.id)})})]},h.id)),d.length===0&&e.jsx("div",{className:"text-center py-8 text-[var(--text-secondary)]",children:a("common:favorites.noModules")})]}),e.jsx("div",{className:"p-4 border-t border-[var(--border-color)]",children:e.jsx("button",{onClick:t,className:"w-full px-4 py-2 bg-[var(--color-accent-600)] text-white rounded-[var(--radius-button)] hover:bg-[var(--color-accent-700)] transition-colors font-medium",children:a("common:actions.done")})})]})})}function af({name:s,className:t}){const n=es[s];return n?e.jsx(n,{className:t}):e.jsx(r.Star,{className:t})}function nf({className:s=""}){const{t}=ae.useTranslation(["common"]),a=W.useNavigate(),{favorites:n,maxFavorites:i}=as(),{triggerExpand:o}=as(),[c,x]=l.useState(!1),u=i-n.length,d=m=>{m.route&&(o(),a(m.route))};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:`bg-[var(--bg-card)] border border-[var(--border-color)] rounded-[var(--radius-card)] p-4 ${s}`,children:[e.jsxs("div",{className:"flex items-center justify-between mb-3",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(r.Star,{className:"w-4 h-4 text-[var(--color-accent-500)]"}),e.jsx("span",{className:"text-sm font-medium text-[var(--text-primary)]",children:t("common:favorites.quickAccess")})]}),e.jsxs("button",{onClick:()=>x(!0),className:"flex items-center gap-1.5 px-2 py-1 text-xs font-medium text-[var(--text-secondary)] hover:text-[var(--text-primary)] hover:bg-[var(--bg-hover)] rounded-[var(--radius-button)] transition-colors",children:[e.jsx(r.Settings2,{className:"w-3.5 h-3.5"}),t("common:favorites.manage")]})]}),e.jsxs("div",{className:"flex gap-2 overflow-x-auto pb-1",children:[n.map(m=>e.jsxs("button",{onClick:()=>d(m),className:"flex flex-col items-center gap-1.5 min-w-[80px] p-3 bg-[var(--bg-secondary)] hover:bg-[var(--bg-hover)] border border-[var(--border-color)] hover:border-[var(--color-accent-500)] rounded-[var(--radius-card)] transition-all group",title:`${m.applicationLabel} - ${m.label}`,children:[e.jsx("div",{className:"w-8 h-8 flex items-center justify-center rounded-[var(--radius-button)] bg-[var(--color-accent-100)] text-[var(--color-accent-600)] group-hover:bg-[var(--color-accent-600)] group-hover:text-white transition-colors",children:e.jsx(af,{name:m.icon||"Star",className:"w-4 h-4"})}),e.jsx("span",{className:"text-xs font-medium text-[var(--text-secondary)] group-hover:text-[var(--text-primary)] truncate max-w-[70px]",children:m.label})]},m.id)),Array.from({length:u}).map((m,p)=>e.jsxs("button",{onClick:()=>x(!0),className:"flex flex-col items-center justify-center gap-1.5 min-w-[80px] p-3 border-2 border-dashed border-[var(--border-color)] hover:border-[var(--color-accent-500)] rounded-[var(--radius-card)] transition-colors group",children:[e.jsx("div",{className:"w-8 h-8 flex items-center justify-center rounded-[var(--radius-button)] bg-[var(--bg-tertiary)] text-[var(--text-muted)] group-hover:bg-[var(--color-accent-100)] group-hover:text-[var(--color-accent-600)] transition-colors",children:e.jsx(r.Plus,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-xs text-[var(--text-muted)] group-hover:text-[var(--text-secondary)]",children:t("common:favorites.add")})]},`empty-slot-${p}`))]})]}),e.jsx(ro,{isOpen:c,onClose:()=>x(!1)})]})}function lf({activities:s,loading:t=!1}){return t?e.jsx("div",{className:"animate-pulse space-y-4",children:[1,2,3].map(a=>e.jsxs("div",{className:"flex gap-4",children:[e.jsx("div",{className:"w-8 h-8 bg-[var(--bg-secondary)] rounded-full"}),e.jsxs("div",{className:"flex-1",children:[e.jsx("div",{className:"h-4 bg-[var(--bg-secondary)] rounded w-3/4 mb-2"}),e.jsx("div",{className:"h-3 bg-[var(--bg-secondary)] rounded w-1/4"})]})]},a))}):s.length===0?e.jsxs("div",{className:"text-center py-8 text-[var(--text-secondary)]",children:[e.jsx(r.RefreshCcw,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),e.jsx("p",{children:"No activity recorded yet"})]}):e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-4 top-0 bottom-0 w-0.5 bg-[var(--border-color)]"}),e.jsx("div",{className:"space-y-4",children:s.map((a,n)=>e.jsx(of,{activity:a,isLast:n===s.length-1},a.id))})]})}function of({activity:s,isLast:t}){const{icon:a,color:n,bgColor:i}=mf(s.action),o=a;return e.jsxs("div",{className:"relative flex gap-4 pl-0",children:[e.jsx("div",{className:`relative z-10 w-8 h-8 rounded-full flex items-center justify-center ${i}`,children:e.jsx(o,{className:`w-4 h-4 ${n}`})}),e.jsx("div",{className:"flex-1 pb-4 ",children:e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsxs("div",{children:[e.jsxs("p",{className:"text-sm",children:[s.changedByUserName?e.jsx("span",{className:"font-medium",children:s.changedByUserName}):e.jsx("span",{className:"font-medium text-[var(--text-secondary)]",children:"System"})," ",e.jsx("span",{className:"text-[var(--text-secondary)]",children:yf(s)})]}),s.fieldChanged&&s.oldValue&&s.newValue&&e.jsxs("div",{className:"mt-2 flex items-center gap-2 text-sm",children:[e.jsx("span",{className:"px-2 py-0.5 bg-[var(--error-bg)] text-[var(--error-text)] rounded line-through",children:s.oldValue}),e.jsx(r.ArrowRight,{className:"w-4 h-4 text-[var(--text-secondary)]"}),e.jsx("span",{className:"px-2 py-0.5 bg-[var(--success-bg)] text-[var(--success-text)] rounded",children:s.newValue})]})]}),e.jsx("span",{className:"text-xs text-[var(--text-secondary)] whitespace-nowrap",children:Nf(s.createdAt)})]})})]})}const cf={Created:{icon:r.PlusCircle,color:"text-[var(--success-text)]",bgColor:"bg-[var(--success-bg)]"},StatusChanged:{icon:r.RefreshCcw,color:"text-[var(--info-text)]",bgColor:"bg-[var(--info-bg)]"},PriorityChanged:{icon:r.AlertTriangle,color:"text-[var(--warning-text)]",bgColor:"bg-[var(--warning-bg)]"},Assigned:{icon:r.UserPlus,color:"text-[var(--accent-text)]",bgColor:"bg-[var(--accent-bg)]"},Commented:{icon:r.MessageSquare,color:"text-[var(--info-text)]",bgColor:"bg-[var(--info-bg)]"},AttachmentAdded:{icon:r.Paperclip,color:"text-[var(--text-secondary)]",bgColor:"bg-[var(--bg-secondary)]"},Resolved:{icon:r.CheckCircle,color:"text-[var(--success-text)]",bgColor:"bg-[var(--success-bg)]"},Closed:{icon:r.XCircle,color:"text-[var(--text-secondary)]",bgColor:"bg-[var(--bg-secondary)]"},Reopened:{icon:r.RefreshCcw,color:"text-[var(--warning-text)]",bgColor:"bg-[var(--warning-bg)]"},SlaBreached:{icon:r.AlertTriangle,color:"text-[var(--error-text)]",bgColor:"bg-[var(--error-bg)]"},Escalated:{icon:r.TrendingUp,color:"text-[var(--error-text)]",bgColor:"bg-[var(--error-bg)]"},Updated:{icon:r.Edit,color:"text-[var(--info-text)]",bgColor:"bg-[var(--info-bg)]"},Deleted:{icon:r.Trash2,color:"text-[var(--error-text)]",bgColor:"bg-[var(--error-bg)]"},OnHold:{icon:r.Pause,color:"text-[var(--warning-text)]",bgColor:"bg-[var(--warning-bg)]"},InProgress:{icon:r.Play,color:"text-[var(--info-text)]",bgColor:"bg-[var(--info-bg)]"}},df={icon:r.RefreshCcw,color:"text-[var(--text-secondary)]",bgColor:"bg-[var(--bg-secondary)]"};function mf(s){return cf[s]||df}const xf=s=>s.oldValue&&s.newValue?`changed status from ${s.oldValue} to ${s.newValue}`:"changed the status",uf=s=>s.oldValue&&s.newValue?`changed priority from ${s.oldValue} to ${s.newValue}`:"changed the priority",pf=s=>s.newValue?`assigned to ${s.newValue}`:"unassigned the ticket",hf=s=>s.newValue==="internal"?"added an internal note":"added a comment",vf=s=>s.newValue?`added attachment: ${s.newValue}`:"added an attachment",bf=s=>s.newValue==="response"?"Response SLA was breached":"Resolution SLA was breached",gf=s=>s.newValue?`escalated to ${s.newValue}`:"escalated this ticket",ff=s=>s.fieldChanged?`updated ${s.fieldChanged}`:"updated the ticket",jf={Created:()=>"created this ticket",StatusChanged:xf,PriorityChanged:uf,Assigned:pf,Commented:hf,AttachmentAdded:vf,Resolved:()=>"resolved this ticket",Closed:()=>"closed this ticket",Reopened:()=>"reopened this ticket",SlaBreached:bf,Escalated:gf,Updated:ff,OnHold:()=>"put this ticket on hold",InProgress:()=>"started working on this ticket"};function yf(s){const t=jf[s.action];return t?t(s):s.action.toLowerCase()}function Nf(s){const t=new Date(s),n=new Date().getTime()-t.getTime(),i=Math.floor(n/6e4),o=Math.floor(i/60),c=Math.floor(o/24);return i<1?"Just now":i<60?`${i}m ago`:o<24?`${o}h ago`:c<7?`${c}d ago`:t.toLocaleDateString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function wf({responseDueAt:s,resolutionDueAt:t,responseBreached:a,resolutionBreached:n,firstResponseAt:i,isPaused:o,responseSlaPercentage:c=0,resolutionSlaPercentage:x=0,showDetails:u=!1}){const d=new Date,m=new Date(s),p=new Date(t),h=m.getTime()-d.getTime(),b=p.getTime()-d.getTime(),v=!!i;let g="ok",N="green",w=r.CheckCircle;o?(g="paused",N="gray",w=r.Pause):a||n?(g="breached",N="red",w=r.XCircle):(!v&&h<1800*1e3||b<3600*1e3)&&(g="warning",N="yellow",w=r.AlertTriangle);const k={green:"bg-[var(--success-bg)] text-[var(--success-text)] border-[var(--success-border)]",yellow:"bg-[var(--warning-bg)] text-[var(--warning-text)] border-[var(--warning-border)]",red:"bg-[var(--error-bg)] text-[var(--error-text)] border-[var(--error-border)]",gray:"bg-[var(--bg-secondary)] text-[var(--text-secondary)] border-[var(--border-color)]"};return u?e.jsxs("div",{className:`p-3 rounded-lg border ${k[N]}`,children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx(w,{className:"w-4 h-4"}),e.jsxs("span",{className:"font-medium",children:[g==="paused"&&"SLA Paused",g==="breached"&&"SLA Breached",g==="warning"&&"SLA Warning",g==="ok"&&"Within SLA"]})]}),e.jsxs("div",{className:"space-y-2 text-sm",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"opacity-80",children:"Response"}),a?e.jsx("span",{className:"text-[var(--error-text)] font-medium",children:"Breached"}):v?e.jsx("span",{className:"text-[var(--success-text)] font-medium",children:"Completed"}):e.jsx("span",{children:Al(h)})]}),!v&&!a&&e.jsx(Tl,{percentage:c})]}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center justify-between mb-1",children:[e.jsx("span",{className:"opacity-80",children:"Resolution"}),n?e.jsx("span",{className:"text-[var(--error-text)] font-medium",children:"Breached"}):e.jsx("span",{children:Al(b)})]}),!n&&e.jsx(Tl,{percentage:x})]})]})]}):e.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-1 rounded text-xs font-medium border ${k[N]}`,children:[e.jsx(w,{className:"w-3 h-3"}),g==="paused"&&"SLA Paused",g==="breached"&&"SLA Breached",g==="warning"&&"SLA Warning",g==="ok"&&"Within SLA"]})}function Tl({percentage:s}){const t=()=>s>=90?"bg-[var(--error-text)]":s>=75?"bg-[var(--warning-text)]":"bg-[var(--success-text)]";return e.jsx("div",{className:"h-1.5 bg-white/50 rounded-full overflow-hidden",children:e.jsx("div",{className:`h-full rounded-full transition-all duration-300 ${t()}`,style:{width:`${Math.min(s,100)}%`}})})}function Al(s){if(s<=0)return"Overdue";const t=Math.floor(s/(1e3*60)),a=Math.floor(t/60),n=Math.floor(a/24);if(n>0){const i=a%24;return i>0?`${n}d ${i}h`:`${n}d`}if(a>0){const i=t%60;return i>0?`${a}h ${i}m`:`${a}h`}return`${t}m`}exports.i18n=Ks;exports.ActivityTimeline=lf;exports.AdminHeader=bi;exports.AdminLayout=ut;exports.AdminSidebar=_g;exports.AppSwitcher=pa;exports.AuthLayout=zg;exports.AuthProvider=Bl;exports.Breadcrumb=De;exports.BusinessHeader=Ni;exports.BusinessLayout=Qr;exports.CreateTicketButton=Yt;exports.DataTable=Cs;exports.DataView=dd;exports.DocPanelProvider=va;exports.DocsLayout=ki;exports.EntityCard=Ns;exports.ErrorFallback=ei;exports.ExtendablePage=vd;exports.ExtensionProvider=mi;exports.FavoritesBar=nf;exports.FavoritesModal=ro;exports.FavoritesProvider=Gl;exports.FeatureGate=sf;exports.Fill=ii;exports.Footer=ua;exports.GlobalErrorBoundary=si;exports.Header=xa;exports.KanbanBoard=ga;exports.LanguageSwitcher=tt;exports.LicenseActivationDialog=tf;exports.LicenseProvider=ql;exports.LicenseStatusBadge=rf;exports.ModuleSidebar=Zt;exports.NotificationBell=Jt;exports.PAGE_KEYS=bd;exports.PageHeader=rt;exports.PageRegistry=Ai;exports.PermissionMatrix=Gg;exports.PublicLayout=ui;exports.RouteErrorBoundary=ef;exports.SessionProvider=Zl;exports.SessionWarningModal=Yl;exports.SidebarProvider=_l;exports.SignalRProvider=Ql;exports.SlaBadge=wf;exports.Slot=ls;exports.SlotFillProvider=li;exports.SmartStackProvider=ic;exports.ThemeCustomizer=Ji;exports.ThemeProvider=$l;exports.ThemeSwitcher=ms;exports.TicketConversation=_i;exports.TicketDetailView=ka;exports.TicketSidebar=Wi;exports.TicketsListView=cr;exports.Tooltip=Kt;exports.UnderDevelopment=or;exports.UserHeader=wi;exports.UserLayout=Jr;exports.UserSidebar=Wg;exports.api=le;exports.apiClient=Be;exports.createSlotFill=rc;exports.logService=qe;exports.mergeRoutes=Og;exports.smartstackRoutes=eo;exports.useActivePage=hd;exports.useAuth=Ke;exports.useClientContext=qg;exports.useCollapsibleState=sr;exports.useDocPanel=er;exports.useExtensions=gt;exports.useFavoriteModules=as;exports.useFavorites=as;exports.useFormFieldExtensions=ac;exports.useHasExtension=nc;exports.useLicense=_t;exports.usePageOverride=Xt;exports.usePageTracking=ai;exports.usePermissionMatrix=ja;exports.usePermissionSync=Vg;exports.useSessionMonitor=Jl;exports.useSidebar=st;exports.useSignalR=to;exports.useSignalRContext=da;exports.useSlotFill=ni;exports.useSlotHasContent=tc;exports.useTableColumnExtensions=di;exports.useTheme=et;exports.useTicketSignalR=Xi;exports.useUserPermissions=Ii;exports.withPageOverride=pd;
|
|
523
523
|
//# sourceMappingURL=smartstack.cjs.map
|