3 lines
10 KiB
JavaScript
3 lines
10 KiB
JavaScript
module.exports=[45285,a=>{"use strict";let b=(0,a.i(29892).default)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);a.s(["Target",()=>b],45285)},49089,a=>{"use strict";let b=(0,a.i(29892).default)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);a.s(["Clock",()=>b],49089)},10704,a=>{"use strict";let b=(0,a.i(29892).default)("feather",[["path",{d:"M12.67 19a2 2 0 0 0 1.416-.588l6.154-6.172a6 6 0 0 0-8.49-8.49L5.586 9.914A2 2 0 0 0 5 11.328V18a1 1 0 0 0 1 1z",key:"18jl4k"}],["path",{d:"M16 8 2 22",key:"vp34q"}],["path",{d:"M17.5 15H9",key:"1oz8nu"}]]);a.s(["Feather",()=>b],10704)},27131,a=>{"use strict";var b=a.i(78352),c=a.i(28091),d=a.i(68239),e=a.i(20769),f=a.i(14294),g=a.i(10704),h=a.i(29892);let i=(0,h.default)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]);var j=a.i(49089),k=a.i(45285);let l=(0,h.default)("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]),m={genre:"",subGenre:"",targetAudience:"",tone:"",pov:"",tense:"",synopsis:"",themes:""},n=({project:a,onUpdate:h,onDeleteProject:n})=>{let[o,p]=(0,c.useState)(a.settings||m),[q,r]=(0,c.useState)(!1);(0,c.useEffect)(()=>{a.settings&&p(a.settings)},[a.settings]);let s=(b,c)=>{let d={...o,[b]:c};p(d),h({...a,settings:d})};return(0,b.jsx)("div",{className:"h-full bg-[#eef2ff] p-8 overflow-y-auto",children:(0,b.jsxs)("div",{className:"max-w-4xl mx-auto bg-white rounded-xl shadow-lg border border-slate-200 overflow-hidden",children:[(0,b.jsxs)("div",{className:"bg-slate-900 text-white p-6 border-b border-slate-800 flex items-center gap-4",children:[(0,b.jsx)("div",{className:"bg-blue-600 p-3 rounded-lg",children:(0,b.jsx)(e.Settings,{size:24})}),(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"text-2xl font-bold",children:"Paramètres Généraux du Roman"}),(0,b.jsx)("p",{className:"text-slate-400 text-sm",children:"Définissez l'identité, le ton et les règles de votre œuvre pour guider l'IA."})]})]}),(0,b.jsxs)("div",{className:"p-8 space-y-8",children:[(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("h3",{className:"text-lg font-bold text-slate-800 flex items-center gap-2 border-b border-slate-100 pb-2",children:[(0,b.jsx)(f.Book,{size:18,className:"text-blue-600"})," Informations de Base"]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Titre du Roman"}),(0,b.jsx)("input",{type:"text",value:a.title,onChange:b=>h({...a,title:b.target.value}),className:"w-full p-2.5 bg-[#eef2ff] border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none font-serif font-bold text-lg"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Nom d'Auteur"}),(0,b.jsx)("input",{type:"text",value:a.author,onChange:b=>h({...a,author:b.target.value}),className:"w-full p-2.5 bg-[#eef2ff] border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none"})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Synopsis Global"}),(0,b.jsx)("textarea",{value:o.synopsis,onChange:a=>s("synopsis",a.target.value),className:"w-full p-3 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none h-24 text-sm bg-[#eef2ff]",placeholder:"De quoi parle votre histoire dans les grandes lignes ?"})]})]}),(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("h3",{className:"text-lg font-bold text-slate-800 flex items-center gap-2 border-b border-slate-100 pb-2",children:[(0,b.jsx)(k.Target,{size:18,className:"text-red-500"})," Genre & Public"]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Genre Principal"}),(0,b.jsx)("input",{type:"text",list:"genre-suggestions",value:o.genre,onChange:a=>s("genre",a.target.value),className:"w-full p-2.5 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none bg-[#eef2ff]",placeholder:"Ex: Fantasy"}),(0,b.jsx)("datalist",{id:"genre-suggestions",children:d.GENRES.map(a=>(0,b.jsx)("option",{value:a},a))})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Sous-Genre"}),(0,b.jsx)("input",{type:"text",value:o.subGenre||"",onChange:a=>s("subGenre",a.target.value),className:"w-full p-2.5 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none bg-[#eef2ff]",placeholder:"Ex: Dark Fantasy"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Public Cible"}),(0,b.jsx)("input",{type:"text",value:o.targetAudience,onChange:a=>s("targetAudience",a.target.value),className:"w-full p-2.5 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none bg-[#eef2ff]",placeholder:"Ex: Jeune Adulte, Adulte..."})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Thèmes Clés"}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(l,{size:14,className:"absolute left-3 top-3 text-slate-400"}),(0,b.jsx)("input",{type:"text",value:o.themes,onChange:a=>s("themes",a.target.value),className:"w-full pl-9 p-2.5 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none bg-[#eef2ff]",placeholder:"Ex: Vengeance, Rédemption, Voyage initiatique..."})]})]})]}),(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("h3",{className:"text-lg font-bold text-slate-800 flex items-center gap-2 border-b border-slate-100 pb-2",children:[(0,b.jsx)(g.Feather,{size:18,className:"text-purple-600"})," Narration & Style"]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{className:"block text-sm font-semibold text-slate-600 mb-1 flex items-center gap-1",children:[(0,b.jsx)(i,{size:14})," Point de Vue (POV)"]}),(0,b.jsxs)("select",{value:o.pov,onChange:a=>s("pov",a.target.value),className:"w-full p-2.5 bg-[#eef2ff] border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none",children:[(0,b.jsx)("option",{value:"",children:"Sélectionner..."}),d.POV_OPTIONS.map(a=>(0,b.jsx)("option",{value:a,children:a},a))]})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{className:"block text-sm font-semibold text-slate-600 mb-1 flex items-center gap-1",children:[(0,b.jsx)(j.Clock,{size:14})," Temps du récit"]}),(0,b.jsxs)("select",{value:o.tense,onChange:a=>s("tense",a.target.value),className:"w-full p-2.5 bg-[#eef2ff] border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none",children:[(0,b.jsx)("option",{value:"",children:"Sélectionner..."}),d.TENSE_OPTIONS.map(a=>(0,b.jsx)("option",{value:a,children:a},a))]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Ton Général"}),(0,b.jsx)("input",{type:"text",list:"tone-suggestions",value:o.tone,onChange:a=>s("tone",a.target.value),className:"w-full p-2.5 border border-slate-300 rounded-lg focus:ring-2 focus:ring-blue-500 outline-none bg-[#eef2ff]",placeholder:"Ex: Sombre, Ironique..."}),(0,b.jsx)("datalist",{id:"tone-suggestions",children:d.TONES.map(a=>(0,b.jsx)("option",{value:a},a))})]})]}),(0,b.jsxs)("div",{className:"mt-4",children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-slate-600 mb-1",children:"Guide de Style & Instructions IA (Prompt Système)"}),(0,b.jsx)("p",{className:"text-xs text-slate-400 mb-2",children:'Ces instructions seront envoyées à l\'IA à chaque génération. Décrivez ici le style d\'écriture désiré (ex: "phrases courtes", "vocabulaire soutenu", "beaucoup de métaphores").'}),(0,b.jsx)("textarea",{value:a.styleGuide||"",onChange:b=>{var c;return c=b.target.value,void h({...a,styleGuide:c})},className:"w-full p-3 border border-indigo-100 bg-[#eef2ff] rounded-lg focus:ring-2 focus:ring-indigo-500 outline-none h-32 text-sm font-mono text-slate-700",placeholder:"Ex: Utilise un style descriptif et sensoriel. Évite les adverbes. Le narrateur est cynique."})]})]}),(0,b.jsxs)("section",{className:"space-y-4 pt-8 border-t border-red-200",children:[(0,b.jsxs)("h3",{className:"text-lg font-bold text-red-600 flex items-center gap-2 pb-2",children:[(0,b.jsx)("span",{className:"bg-red-100 p-1 rounded",children:"⚠️"})," Zone de Danger"]}),(0,b.jsxs)("div",{className:"bg-red-50 border border-red-200 rounded-lg p-6",children:[(0,b.jsx)("h4",{className:"font-bold text-red-900 mb-2",children:"Supprimer le projet"}),(0,b.jsx)("p",{className:"text-sm text-red-700 mb-4",children:"Cette action est irréversible. Toutes les données associées à ce projet (chapitres, entités, idées) seront définitivement effacées."}),q?(0,b.jsxs)("div",{className:"flex items-center gap-4 bg-white p-4 rounded border border-red-200",children:[(0,b.jsx)("span",{className:"text-sm font-bold text-slate-700",children:"Êtes-vous sûr ?"}),(0,b.jsx)("button",{onClick:n,className:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 text-sm font-bold",children:"Oui, supprimer définitivement"}),(0,b.jsx)("button",{onClick:()=>r(!1),className:"px-4 py-2 bg-slate-200 text-slate-700 rounded hover:bg-slate-300 text-sm",children:"Annuler"})]}):(0,b.jsx)("button",{onClick:()=>r(!0),className:"px-4 py-2 bg-white border border-red-300 text-red-600 rounded hover:bg-red-50 text-sm font-bold",children:"Supprimer ce projet"})]})]})]})]})})};var o=a.i(34896),p=a.i(95121),q=a.i(3622);function r(a){let{project:c,updateProject:d}=a,e=(0,o.useParams)(),f=(0,o.useRouter)(),g=e.id,{user:h}=(0,p.useAuthContext)(),{deleteProject:i}=(0,q.useProjects)(h);return c?(0,b.jsx)(n,{project:c,onUpdate:a=>d?.(a),onDeleteProject:async()=>{await i(g),f.push("/dashboard")}}):null}a.s(["default",()=>r],27131)}];
|
|
|
|
//# sourceMappingURL=Documents_00%20-%20projet_plumeia_0e608513._.js.map
|