Files
plume/.next/server/chunks/ssr/[root-of-the-server]__1b51e774._.js
2026-02-28 08:42:15 +01:00

3 lines
4.9 KiB
JavaScript

module.exports=[56704,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-async-storage.external.js",()=>require("next/dist/server/app-render/work-async-storage.external.js"))},32319,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/work-unit-async-storage.external.js",()=>require("next/dist/server/app-render/work-unit-async-storage.external.js"))},20635,(a,b,c)=>{b.exports=a.x("next/dist/server/app-render/action-async-storage.external.js",()=>require("next/dist/server/app-render/action-async-storage.external.js"))},97442,(a,b,c)=>{"use strict";b.exports=a.r(23642).vendored.contexts.AppRouterContext},42481,(a,b,c)=>{"use strict";b.exports=a.r(23642).vendored.contexts.HooksClientContext},70676,(a,b,c)=>{"use strict";b.exports=a.r(23642).vendored.contexts.ServerInsertedHtml},29892,a=>{"use strict";var b=a.i(28091);let c=(...a)=>a.filter((a,b,c)=>!!a&&""!==a.trim()&&c.indexOf(a)===b).join(" ").trim(),d=a=>{let b=a.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,b,c)=>c?c.toUpperCase():b.toLowerCase());return b.charAt(0).toUpperCase()+b.slice(1)};var e={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let f=(0,b.forwardRef)(({color:a="currentColor",size:d=24,strokeWidth:f=2,absoluteStrokeWidth:g,className:h="",children:i,iconNode:j,...k},l)=>(0,b.createElement)("svg",{ref:l,...e,width:d,height:d,stroke:a,strokeWidth:g?24*Number(f)/Number(d):f,className:c("lucide",h),...!i&&!(a=>{for(let b in a)if(b.startsWith("aria-")||"role"===b||"title"===b)return!0;return!1})(k)&&{"aria-hidden":"true"},...k},[...j.map(([a,c])=>(0,b.createElement)(a,c)),...Array.isArray(i)?i:[i]])),g=(a,e)=>{let g=(0,b.forwardRef)(({className:g,...h},i)=>(0,b.createElement)(f,{ref:i,iconNode:e,className:c(`lucide-${d(a).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${a}`,g),...h}));return g.displayName=d(a),g};a.s(["default",()=>g],29892)},20896,a=>{"use strict";let b=(0,a.i(29892).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);a.s(["Check",()=>b],20896)},84104,a=>{"use strict";let b=(0,a.i(29892).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);a.s(["ArrowLeft",()=>b],84104)},18091,a=>{"use strict";var b=a.i(78352),c=a.i(28091),d=a.i(20896),e=a.i(84104);let f=({plans:a,currentPlan:c,onBack:f,onSelectPlan:g,isLoading:h})=>(0,b.jsx)("div",{className:"min-h-screen bg-[#eef2ff] py-20 px-8",children:(0,b.jsxs)("div",{className:"max-w-6xl mx-auto",children:[(0,b.jsxs)("button",{onClick:f,className:"flex items-center gap-2 text-slate-500 hover:text-blue-600 mb-12 font-bold transition-colors",children:[(0,b.jsx)(e.ArrowLeft,{size:20})," Retour"]}),(0,b.jsxs)("div",{className:"text-center mb-16",children:[(0,b.jsx)("h2",{className:"text-4xl font-black text-slate-900 mb-4",children:"Choisissez votre destin d'écrivain."}),(0,b.jsx)("p",{className:"text-slate-500",children:"Passez au plan supérieur pour libérer toute la puissance de l'IA."})]}),(0,b.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[h&&(0,b.jsx)("p",{className:"text-center col-span-3 py-10",children:"Chargement des offres..."}),!h&&a.map(a=>(0,b.jsxs)("div",{className:`bg-white rounded-3xl p-8 border transition-all ${a.isPopular?"border-blue-500 shadow-2xl scale-105 z-10":"border-indigo-100 shadow-xl"}`,children:[(0,b.jsxs)("div",{className:"mb-8",children:[(0,b.jsx)("h4",{className:"text-xl font-bold text-slate-900 mb-2",children:a.displayName}),(0,b.jsxs)("div",{className:"text-4xl font-black text-slate-900 mb-2",children:[a.price,"€",(0,b.jsx)("span",{className:"text-sm font-normal text-slate-400",children:"/mois"})]}),(0,b.jsx)("p",{className:"text-sm text-slate-500",children:a.description})]}),(0,b.jsx)("ul",{className:"space-y-4 mb-10",children:a.features.map((a,c)=>(0,b.jsxs)("li",{className:"flex items-center gap-3 text-sm text-slate-700",children:[(0,b.jsx)("div",{className:"text-blue-500 bg-blue-50 p-0.5 rounded-full",children:(0,b.jsx)(d.Check,{size:14})}),a]},c))}),(0,b.jsx)("button",{onClick:()=>g(a.id),className:`w-full py-4 rounded-2xl font-black transition-all ${a.id===c?"bg-slate-100 text-slate-400 cursor-default":a.isPopular?"bg-blue-600 text-white hover:bg-blue-700":"bg-slate-900 text-white hover:bg-slate-800"}`,children:a.id===c?"Plan Actuel":"Sélectionner"})]},a.id))]})]})});var g=a.i(34896),h=a.i(95121);function i(){let a=(0,g.useRouter)(),{user:d}=(0,h.useAuthContext)(),[e,i]=(0,c.useState)([]),[j,k]=(0,c.useState)(!0);return(0,c.useEffect)(()=>{fetch("/api/plans",{cache:"no-store"}).then(a=>a.json()).then(a=>{i(a),k(!1)}).catch(a=>{console.error(a),k(!1)})},[]),(0,b.jsx)(f,{plans:e,isLoading:j,currentPlan:d?.subscription.plan||"free",onBack:()=>a.push(d?"/dashboard":"/"),onSelectPlan:()=>a.push(d?"/checkout":"/login")})}a.s(["default",()=>i],18091)}];
//# sourceMappingURL=%5Broot-of-the-server%5D__1b51e774._.js.map