3 lines
11 KiB
JavaScript
3 lines
11 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"}]]);var m=a.i(54607);let n={genre:"",subGenre:"",targetAudience:"",tone:"",pov:"",tense:"",synopsis:"",themes:""},o=({project:a,onUpdate:h,onDeleteProject:o})=>{let{t:p}=(0,m.useLanguage)(),[q,r]=(0,c.useState)(a.settings||n),[s,t]=(0,c.useState)(!1);(0,c.useEffect)(()=>{a.settings&&r(a.settings)},[a.settings]);let u=(b,c)=>{let d={...q,[b]:c};r(d),h({...a,settings:d})};return(0,b.jsx)("div",{className:"h-full bg-theme-bg p-8 overflow-y-auto transition-colors duration-300",children:(0,b.jsxs)("div",{className:"max-w-4xl mx-auto bg-theme-panel rounded-xl shadow-lg border border-theme-border overflow-hidden transition-colors duration-300",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:p("book_settings.title")}),(0,b.jsx)("p",{className:"text-slate-400 text-sm",children:p("book_settings.subtitle")})]})]}),(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-theme-text flex items-center gap-2 border-b border-theme-border pb-2",children:[(0,b.jsx)(f.Book,{size:18,className:"text-blue-600"})," ",p("book_settings.basic_info")]}),(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-theme-muted mb-1",children:p("book_settings.novel_title")}),(0,b.jsx)("input",{type:"text",value:a.title,onChange:b=>h({...a,title:b.target.value}),className:"w-full p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none font-serif font-bold text-lg transition-colors duration-300"})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-theme-muted mb-1",children:p("book_settings.author_name")}),(0,b.jsx)("input",{type:"text",value:a.author,onChange:b=>h({...a,author:b.target.value}),className:"w-full p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none transition-colors duration-300"})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-theme-muted mb-1",children:p("book_settings.global_synopsis")}),(0,b.jsx)("textarea",{value:q.synopsis,onChange:a=>u("synopsis",a.target.value),className:"w-full p-3 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none h-24 text-sm transition-colors duration-300",placeholder:p("book_settings.synopsis_placeholder")})]})]}),(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("h3",{className:"text-lg font-bold text-theme-text flex items-center gap-2 border-b border-theme-border pb-2",children:[(0,b.jsx)(k.Target,{size:18,className:"text-red-500"})," ",p("book_settings.genre_audience")]}),(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-theme-muted mb-1",children:p("book_settings.main_genre")}),(0,b.jsx)("input",{type:"text",list:"genre-suggestions",value:q.genre,onChange:a=>u("genre",a.target.value),className:"w-full p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none transition-colors duration-300",placeholder:p("book_settings.genre_placeholder")}),(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-theme-muted mb-1",children:p("book_settings.sub_genre")}),(0,b.jsx)("input",{type:"text",value:q.subGenre||"",onChange:a=>u("subGenre",a.target.value),className:"w-full p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none transition-colors duration-300",placeholder:p("book_settings.subgenre_placeholder")})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-theme-muted mb-1",children:p("book_settings.target_audience")}),(0,b.jsx)("input",{type:"text",value:q.targetAudience,onChange:a=>u("targetAudience",a.target.value),className:"w-full p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none transition-colors duration-300",placeholder:p("book_settings.audience_placeholder")})]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-theme-muted mb-1",children:p("book_settings.key_themes")}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)(l,{size:14,className:"absolute left-3 top-3 text-theme-muted"}),(0,b.jsx)("input",{type:"text",value:q.themes,onChange:a=>u("themes",a.target.value),className:"w-full pl-9 p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none transition-colors duration-300",placeholder:p("book_settings.themes_placeholder")})]})]})]}),(0,b.jsxs)("section",{className:"space-y-4",children:[(0,b.jsxs)("h3",{className:"text-lg font-bold text-theme-text flex items-center gap-2 border-b border-theme-border pb-2",children:[(0,b.jsx)(g.Feather,{size:18,className:"text-purple-600"})," ",p("book_settings.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-theme-muted mb-1 flex items-center gap-1",children:[(0,b.jsx)(i,{size:14})," ",p("book_settings.pov")]}),(0,b.jsxs)("select",{value:q.pov,onChange:a=>u("pov",a.target.value),className:"w-full p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none transition-colors duration-300",children:[(0,b.jsx)("option",{value:"",children:p("book_settings.select")}),d.POV_OPTIONS.map(a=>(0,b.jsx)("option",{value:a,children:p(`pov_options.${a.toLowerCase().replace(/\s+/g,"_")}`)||a},a))]})]}),(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{className:"block text-sm font-semibold text-theme-muted mb-1 flex items-center gap-1",children:[(0,b.jsx)(j.Clock,{size:14})," ",p("book_settings.tense")]}),(0,b.jsxs)("select",{value:q.tense,onChange:a=>u("tense",a.target.value),className:"w-full p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none transition-colors duration-300",children:[(0,b.jsx)("option",{value:"",children:p("book_settings.select")}),d.TENSE_OPTIONS.map(a=>(0,b.jsx)("option",{value:a,children:p(`tense_options.${a.toLowerCase().replace(/\s+/g,"_")}`)||a},a))]})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)("label",{className:"block text-sm font-semibold text-theme-muted mb-1",children:p("book_settings.general_tone")}),(0,b.jsx)("input",{type:"text",list:"tone-suggestions",value:q.tone,onChange:a=>u("tone",a.target.value),className:"w-full p-2.5 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-blue-500 outline-none transition-colors duration-300",placeholder:p("book_settings.tone_placeholder")}),(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-theme-muted mb-1",children:p("book_settings.style_guide")}),(0,b.jsx)("p",{className:"text-xs text-theme-muted mb-2",children:p("book_settings.style_guide_help")}),(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 bg-theme-bg text-theme-text border border-theme-border rounded-lg focus:ring-2 focus:ring-indigo-500 outline-none h-32 text-sm font-mono transition-colors duration-300",placeholder:p("book_settings.style_guide_placeholder")})]})]}),(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:"⚠️"})," ",p("book_settings.danger_zone")]}),(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:p("book_settings.delete_project")}),(0,b.jsx)("p",{className:"text-sm text-red-700 mb-4",children:p("book_settings.delete_warning")}),s?(0,b.jsxs)("div",{className:"flex items-center gap-4 bg-theme-panel p-4 rounded border border-red-200",children:[(0,b.jsx)("span",{className:"text-sm font-bold text-theme-text",children:p("book_settings.are_you_sure")}),(0,b.jsx)("button",{onClick:o,className:"px-4 py-2 bg-red-600 text-white rounded hover:bg-red-700 text-sm font-bold opacity-90 transition-opacity",children:p("book_settings.confirm_delete")}),(0,b.jsx)("button",{onClick:()=>t(!1),className:"px-4 py-2 bg-theme-bg text-theme-text border border-theme-border rounded hover:opacity-80 text-sm transition-opacity",children:p("book_settings.cancel")})]}):(0,b.jsx)("button",{onClick:()=>t(!0),className:"px-4 py-2 bg-theme-panel border border-red-300 text-red-600 rounded hover:bg-red-50 text-sm font-bold transition-colors duration-300",children:p("book_settings.delete_button")})]})]})]})]})})};var p=a.i(46344),q=a.i(34896);function r(){let{project:a,updateProject:c,deleteProject:d}=(0,p.useProjectContext)(),e=(0,q.useRouter)();return(0,b.jsx)(o,{project:a,onUpdate:a=>c(a),onDeleteProject:async()=>{await d(),e.push("/dashboard")}})}a.s(["default",()=>r],27131)}];
|
|
|
|
//# sourceMappingURL=Documents_00%20-%20projet_plumeia_0e608513._.js.map
|