PageSourceSearch

https://bonjouravis.ai/_next/static/chunks/9253-8df7384bb257f940.js

js bonjouravis.ai collected 2026-10-05 15:10:54 UTC 7,188 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9253],{16735:(e,l,t)=>{t.d(l,{InitialPricingProvider:()=>r,W:()=>i});var n=t(95155),s=t(12115);let a=(0,s.createContext)(null);function r(e){let{value:l,children:t}=e;return(0,n.jsx)(a.Provider,{value:l,children:t})}function i(){return(0,s.useContext)(a)}},19253:(e,l,t)=>{t.d(l,{A:()=>x});var n=t(95155),s=t(12115),a=t(52619),r=t.n(a),i=t(10526),c=t(83736),d=t(94978),o=t(16735);function x(e){var l,t;let{showCTA:a=!0,freeCtaLabel:x,planCtaLabel:m,ctaLink:u="/login"}=e,{t:f,locale:p}=(0,i.Bd)(),g=(0,o.W)(),[h,b]=(0,s.useState)(null!=(l=null==g?void 0:g.plans)?l:[]),[j,v]=(0,s.useState)(!g),[N,w]=(0,s.useState)(null!=(t=null==g?void 0:g.freeConfig)?t:null);return((0,s.useEffect)(()=>{if(g&&p.startsWith("fr")){b(g.plans),w(g.freeConfig),v(!1);return}let e=!1;return async function(){g||v(!0);let[l,t]=await Promise.all([(0,c.c)(void 0,p),(0,d.g)()]);e||(l&&b(l),t&&w(t),v(!1))}(),()=>{e=!0}},[p,g]),j)?(0,n.jsxs)("div",{className:"py-20 flex flex-col items-center justify-center gap-4",children:[(0,n.jsx)("div",{className:"w-12 h-12 border-4 border-red-500 border-t-transparent rounded-full animate-spin"}),(0,n.jsx)("p",{className:"animate-pulse text-slate-500 font-medium",children:f("login.loading")})]}):(0,n.jsxs)("div",{className:"flex flex-col gap-12 w-full",children:[(0,n.jsxs)("p",{className:"self-center -mb-4 inline-flex items-center gap-2 px-4 py-2 rounded-full bg-emerald-950 border border-emerald-700/50 text-emerald-300 text-sm font-bold text-center",children:[(0,n.jsx)("span",{"aria-hidden":"true",children:"\uD83C\uDF81"})," ",f("pricing.business_trial_note")]}),(0,n.jsxs)("div",{className:"flex flex-wrap justify-center gap-8 max-w-6xl mx-auto",children:[(null==N?void 0:N.isActive)&&(0,n.jsxs)("div",{className:"w-full md:w-[320px] p-8 rounded-3xl border transition-all flex flex-col group text-left bg-slate-800 border-slate-700 hover:border-green-500/50",children:[(0,n.jsx)("div",{className:"text-green-500 text-sm font-bold uppercase tracking-wider mb-2",children:N.name||f("common.free")}),(0,n.jsx)("h3",{className:"font-bold text-2xl mb-4",children:N.cardTitle||f("landing.free_plan_title")}),(0,n.jsxs)("div",{className:"text-5xl font-black mb-2",children:["0€",(0,n.jsxs)("span",{className:"text-lg text-slate-400 font-normal",children:[" / ",f("common.month")]})]}),(0,n.jsxs)("ul",{className:"text-left space-y-3 mb-8 flex-1 mt-6",children:[N.features&&N.features.length>0?N.features.map((e,l)=>(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-green-500",children:"✓"})," ",(0,n.jsx)("span",{children:e})]},l)):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-green-500",children:"✓"})," ",(0,n.jsx)("span",{children:f("landing.free_feature1")})]}),(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-green-500",children:"✓"})," ",(0,n.jsx)("span",{children:f("landing.free_feature2")})]})]}),(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-green-500",children:"✓"})," ",(0,n.jsx)("span",{children:f("landing.all_personas")})]})]}),a&&(0,n.jsx)(r(),{href:u,title:"Voir les offres BonjourAvis",className:"block w-full py-3 px-6 rounded-xl font-bold transition-all text-center mt-auto bg-slate-700 hover:bg-slate-600 text-white",children:x||f("landing.cta_button")})]}),h.map(e=>{var l,t;let s=e.isPopular;return(0,n.jsxs)("div",{className:"w-full md:w-[320px] p-8 rounded-3xl border transition-all flex flex-col relative overflow-hidden group text-left\n                            ".concat(s?"bg-[#2a1515] border-2 border-red-500/50 hover:border-red-400":"bg-slate-800 border border-slate-700 hover:border-blue-500/50","\n                        "),children:[s&&(0,n.jsx)("div",{className:"absolute top-4 right-4 px-3 py-1 bg-red-500 text-[10px] font-black text-white rounded-full shadow-lg",children:f("landing.pricing.popular")}),(0,n.jsx)("div",{className:"".concat(s?"text-red-500":"text-blue-400"," text-sm font-bold uppercase tracking-wider mb-2"),children:e.name}),(0,n.jsx)("h3",{className:"font-bold text-2xl mb-4",children:((null==(l=e.cardTitle)?void 0:l.includes("."))?f(e.cardTitle):e.cardTitle)||("∞"===e.quota||e.name.toLowerCase().includes("business")?f("landing.unlimited_replies"):f("landing.standard_plan_title"))}),(0,n.jsxs)("div",{className:"text-5xl font-black mb-2",children:[Math.round(e.priceEur),"€",(0,n.jsxs)("span",{className:"text-lg text-slate-400 font-normal",children:[" / ",f("common.month")]})]}),(0,n.jsx)("p",{className:"text-sm mb-6 text-slate-400",children:((null==(t=e.cardSubtitle)?void 0:t.includes("."))?f(e.cardSubtitle):e.cardSubtitle)||("∞"===e.quota?f("landing.unlimited_desc"):"".concat(e.quota," ").concat(f("landing.pricing.credits")," • ").concat(f("landing.perf_desc")))}),(0,n.jsx)("ul",{className:"text-left space-y-3 mb-8 flex-1",children:e.features&&e.features.length>0?e.features.map((e,l)=>{let t=e;if(e.includes("."))t=f(e);else{let l="feature.".concat(e),n=f(l);t=n!==l?n:e}return(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-green-500",children:"✓"})," ",(0,n.jsx)("span",{children:t})]},l)}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-green-500",children:"✓"})," ",(0,n.jsx)("span",{children:"∞"===e.quota?f("landing.unlimited_replies"):"".concat(e.quota," ").concat(f("landing.pricing.credits")," / ").concat(f("common.month"))})]}),(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-green-500",children:"✓"})," ",(0,n.jsx)("span",{children:f("landing.multi_establishments")||"Multi-\xe9tablissements"})]}),(0,n.jsxs)("li",{className:"flex items-center gap-2",children:[(0,n.jsx)("span",{className:"text-green-500",children:"✓"})," ",(0,n.jsx)("span",{children:s?f("landing.all_personas")||"Tous les personas IA":f("landing.custom_tone")||"Ton des r\xe9ponses personnalisable"})]})]})}),a&&(0,n.jsx)(r(),{href:u,className:"block w-full py-3 px-6 rounded-xl font-bold transition-all text-center mt-auto text-white\n                                    ".concat(s?"bg-gradient-to-r from-red-600 to-orange-500 hover:from-red-500 hover:to-orange-400 shadow-lg shadow-red-900/30":"bg-slate-700 hover:bg-slate-600","\n                                "),children:m||f("landing.cta_button")})]},e.id)})]}),(0,n.jsx)("p",{className:"text-center text-[10px] text-slate-500 leading-relaxed uppercase tracking-widest font-bold max-w-2xl mx-auto px-4",children:f("landing.pricing_disclaimer")})]})}},83736:(e,l,t)=>{t.d(l,{c:()=>s});var n=t(30926);let s=(0,n.createServerReference)("6058a952095b5cbed8978ffbe0e95aebd1725625e9",n.callServer,void 0,n.findSourceMapURL,"getSubscriptionPlansAction")},94978:(e,l,t)=>{t.d(l,{g:()=>s});var n=t(30926);let s=(0,n.createServerReference)("009df33270fc7215f499c9e59d92acbf4bc8bbeab0",n.callServer,void 0,n.findSourceMapURL,"getFreePlanConfigAction")}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.