PageSourceSearch

https://app.gmb-club.com/assets/SocialHub-QHjdWzhu.js

js gmb-club.com collected 2026-09-24 09:07:29 UTC 22,017 bytes, 1 lines download raw bytes

1import{j as e,u as P,g as C,r as v}from"./vendor-LNsQq_cZ.js";import{D}from"./DashboardLayout-BIjoE7W7.js";import{c as F,d as I,e as R,j as V,b_ as g,n as W}from"./index-BlfuXllL.js";import{N as O}from"./Footer-DYW6H5XG.js";import{P as q}from"./PageHeader-B0op3_k6.js";import{u as E,P as G}from"./usePresencePillar-CU8JGrrF.js";import{U}from"./UnifiedChart-CiLIBTLI.js";import{P as $}from"./PlatformLogo-DROlplKJ.js";import{P as K,L as t}from"./primitives-DVeGIww6.js";import"./ConsentLink-eGsqgkwE.js";import"./HelpDocLink-CGO7_a1i.js";import"./index-Dh4i1-J3.js";function x(){return e.jsxs("div",{children:[e.jsx(t,{w:"w-24",h:"h-3",className:"mb-2"}),e.jsx(t,{w:"w-20",h:"h-8",tone:"bg-gray-200",className:"mb-1"}),e.jsx(t,{w:"w-24",h:"h-3"})]})}function y(){return e.jsxs("div",{className:"flex items-center gap-3 py-3 first:pt-0 last:pb-0",children:[e.jsx("div",{className:"w-[26px] h-[26px] rounded-lg bg-gray-100 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1.5",children:[e.jsx(t,{w:"w-24",h:"h-4",tone:"bg-gray-200"}),e.jsx(t,{w:"w-20",h:"h-3"})]}),e.jsx(t,{w:"w-14",h:"h-4",tone:"bg-gray-200"})]})}function N(){return e.jsxs("div",{className:"flex items-center gap-3.5 py-3 first:pt-0 last:pb-0",children:[e.jsx("div",{className:"w-11 h-11 rounded-[10px] bg-gray-100 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1.5",children:[e.jsx(t,{w:"w-4/5",h:"h-4"}),e.jsx(t,{w:"w-20",h:"h-3"})]}),e.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[e.jsx("div",{className:"w-[26px] h-[26px] rounded-lg bg-gray-100"}),e.jsx("div",{className:"w-[26px] h-[26px] rounded-lg bg-gray-100"})]})]})}function k(){return e.jsxs("div",{className:"flex items-center gap-3 py-2.5 first:pt-0 last:pb-0",children:[e.jsx("div",{className:"w-[26px] h-[26px] rounded-lg bg-gray-100 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0 space-y-1.5",children:[e.jsx(t,{w:"w-32",h:"h-4",tone:"bg-gray-200"}),e.jsx(t,{w:"w-24",h:"h-3"})]})]})}function Y(){return e.jsxs("main",{className:"max-w-7xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8","aria-hidden":"true",role:"status","aria-label":"Chargement",children:[e.jsx(K,{subtitle:!0}),e.jsx("div",{className:"bg-white/70 border border-gray-200/60 rounded-2xl p-5 sm:p-6 mb-5 shadow-sm animate-pulse",children:e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6 lg:divide-x lg:divide-gray-100",children:[e.jsx("div",{className:"lg:pl-0",children:e.jsx(x,{})}),e.jsx("div",{className:"lg:pl-6",children:e.jsx(x,{})}),e.jsx("div",{className:"lg:pl-6",children:e.jsx(x,{})}),e.jsx("div",{className:"lg:pl-6",children:e.jsx(x,{})})]})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5 items-start",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-5 min-w-0",children:[e.jsxs("div",{className:"bg-white/70 border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm animate-pulse",children:[e.jsxs("div",{className:"space-y-2 mb-5",children:[e.jsx(t,{w:"w-52",h:"h-5",tone:"bg-gray-200"}),e.jsx(t,{w:"w-40",h:"h-3"})]}),e.jsx("div",{className:"w-full h-[280px] bg-gray-100 rounded-xl"})]}),e.jsxs("div",{className:"bg-white/70 border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm animate-pulse",children:[e.jsx(t,{w:"w-32",h:"h-5",tone:"bg-gray-200",className:"mb-4"}),e.jsxs("div",{className:"divide-y divide-gray-100",children:[e.jsx(y,{}),e.jsx(y,{}),e.jsx(y,{})]})]}),e.jsxs("div",{className:"bg-white/70 border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm animate-pulse",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx(t,{w:"w-44",h:"h-5",tone:"bg-gray-200"}),e.jsx(t,{w:"w-28",h:"h-4"})]}),e.jsxs("div",{className:"divide-y divide-gray-100",children:[e.jsx(N,{}),e.jsx(N,{}),e.jsx(N,{})]})]})]}),e.jsxs("div",{className:"space-y-5 min-w-0",children:[e.jsxs("div",{className:"bg-white/70 border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm animate-pulse",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-14 h-14 rounded-full bg-gray-100 flex-shrink-0"}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx(t,{w:"w-40",h:"h-4",tone:"bg-gray-200"}),e.jsx(t,{w:"w-48",h:"h-3"})]})]}),e.jsx("div",{className:"mt-4 space-y-3",children:[0,1,2].map(s=>e.jsxs("div",{children:[e.jsxs("div",{className:"flex justify-between mb-1.5",children:[e.jsx(t,{w:"w-36",h:"h-4"}),e.jsx(t,{w:"w-10",h:"h-4"})]}),e.jsx("div",{className:"h-1.5 rounded-full bg-gray-100"})]},s))})]}),e.jsxs("div",{className:"bg-white/70 border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm animate-pulse",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx(t,{w:"w-40",h:"h-5",tone:"bg-gray-200"}),e.jsx(t,{w:"w-12",h:"h-4"})]}),e.jsxs("div",{className:"divide-y divide-gray-100",children:[e.jsx(k,{}),e.jsx(k,{}),e.jsx(k,{})]})]}),e.jsxs("div",{className:"bg-white/70 border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm animate-pulse",children:[e.jsx(t,{w:"w-32",h:"h-5",tone:"bg-gray-200",className:"mb-4"}),e.jsx("div",{className:"space-y-1",children:[0,1,2,3].map(s=>e.jsxs("div",{className:"flex items-center justify-between py-2.5",children:[e.jsx(t,{w:"w-36",h:"h-4"}),e.jsx("div",{className:"w-3.5 h-3.5 bg-gray-100 rounded"})]},s))})]}),e.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 sm:p-6 shadow-sm animate-pulse",children:[e.jsx(t,{w:"w-44",h:"h-5",tone:"bg-gray-200",className:"mb-2"}),e.jsx(t,{w:"w-full",h:"h-4",className:"mb-1.5"}),e.jsx(t,{w:"w-2/3",h:"h-4",className:"mb-3"}),e.jsx(t,{w:"w-28",h:"h-4",tone:"bg-gray-200"})]})]})]})]})}function X(){const{t:s}=P(),r=C();return e.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 sm:p-6 shadow-sm",children:[e.jsx("h2",{className:"text-base font-semibold text-gray-900",children:s("socialHub.embedPromo.title","Vos publications sur votre site")}),e.jsx("p",{className:"mt-1.5 text-sm text-gray-600",children:s("socialHub.embedPromo.description","Une ligne à coller sur votre site : vos dernières publications s'affichent et se mettent à jour toutes seules.")}),e.jsxs("button",{type:"button",onClick:()=>r("/dashboard/publications?action=embed"),className:"mt-3 inline-flex items-center gap-1.5 text-sm font-semibold text-orange-500 hover:text-orange-600 transition-colors",children:[s("socialHub.embedPromo.cta","Obtenir mon code"),e.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2.5,"aria-hidden":"true",children:e.jsx("path",{d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})]})]})}const J=new Set(["instagram","facebook","gmb","linkedin","tiktok","web","pinterest","snapchat","youtube","x"]),Q={facebook:"Facebook",instagram:"Instagram",linkedin:"LinkedIn",pinterest:"Pinterest",tiktok:"TikTok",
1snapchat:"Snapchat",youtube:"YouTube",x:"X",gmb:"Google Business"},b=s=>Q[s]??s.charAt(0).toUpperCase()+s.slice(1),h=({platform:s,title:r})=>J.has(s)?e.jsx($,{platform:s,title:r??b(s)}):e.jsx("span",{title:r??b(s),className:"inline-flex items-center justify-center w-[26px] h-[26px] rounded-lg bg-gray-50 border border-gray-100 text-[11px] font-bold text-gray-500",children:b(s).charAt(0)}),u=s=>s==null?"—":W(s),Z=s=>{const r=new Date(s.replace(" ","T"));if(isNaN(r.getTime()))return"";const m=Date.now()-r.getTime(),o=Math.max(0,Math.floor(m/1e3)),l=new Intl.RelativeTimeFormat(g(),{numeric:"auto"});return o<60?l.format(-o,"second"):o<3600?l.format(-Math.floor(o/60),"minute"):o<86400?l.format(-Math.floor(o/3600),"hour"):o<86400*30?l.format(-Math.floor(o/86400),"day"):l.format(-Math.floor(o/86400/30),"month")},ee=s=>{const r=new Date(s.replace(" ","T"));return isNaN(r.getTime())?"":new Intl.DateTimeFormat(g(),{day:"numeric",month:"short",hour:"2-digit",minute:"2-digit"}).format(r)},p=({children:s})=>e.jsx(D,{children:s}),he=()=>{const{t:s}=P(),r=C(),{currentUser:m,loading:o}=F(),{selectedSphere:l,loading:M}=I(),{selectedBulle:c,loading:_}=R(),[n,j]=v.useState(null),[A,f]=v.useState(!0),{pillar:S,loading:T}=E("social");if(v.useEffect(()=>{if(!m||!(l!=null&&l.id)){j(null),f(!1);return}let a=!1;return f(!0),V.get("/dashboard/social-hub",{params:{sphere_id:l.id,...c!=null&&c.id?{bulle_id:c.id}:{}}}).then(i=>{a||j(i.data)}).catch(()=>{a||j(null)}).finally(()=>{a||f(!1)}),()=>{a=!0}},[m,l==null?void 0:l.id,c==null?void 0:c.id]),M||o||_||A)return e.jsx(p,{children:e.jsx(Y,{})});if(!l)return e.jsx(p,{children:e.jsx("main",{className:"max-w-7xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8",children:e.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:e.jsx(O,{})})})});if(!(n!=null&&n.connected))return e.jsx(p,{children:e.jsx("main",{className:"max-w-7xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8",children:e.jsx("div",{className:"flex items-center justify-center min-h-[60vh]",children:e.jsxs("div",{className:"bg-white/70 backdrop-blur-xl rounded-2xl p-8 shadow-lg border border-gray-200/50 text-center max-w-md",children:[e.jsx("div",{className:"w-12 h-12 bg-orange-50 rounded-xl flex items-center justify-center mx-auto mb-4",children:e.jsx("svg",{className:"w-6 h-6 text-orange-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.9
107a2.25 2.25 0 100 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186l9.566-5.314m-9.566 7.5l9.566 5.314m0 0a2.25 2.25 0 103.935 2.186 2.25 2.25 0 00-3.935-2.186zm0-12.814a2.25 2.25 0 103.933-2.185 2.25 2.25 0 00-3.933 2.185z"})})}),e.jsx("h2",{className:"text-lg font-semibold text-gray-900 mb-2",children:s("socialHub.empty.title","Connectez vos comptes")}),e.jsx("p",{className:"text-sm text-gray-500 mb-6",children:s("socialHub.empty.description","Reliez votre fiche Google Business ou vos réseaux sociaux (Instagram, Facebook, LinkedIn, TikTok, Pinterest, Snapchat, YouTube) pour publier et suivre votre audience depuis GMB Club.")}),e.jsx("button",{onClick:()=>r("/dashboard/parametres#connexions"),className:"inline-flex items-center gap-2 px-5 py-2.5 bg-orange-500 hover:bg-orange-600 text-white font-medium rounded-full text-sm transition-colors",children:s("socialHub.empty.cta","Connecter un compte")})]})})})});const{kpis:d}=n,z=n.connections.some(a=>a.platform!=="gmb"),B=n.followers_series.map(a=>({label:a.date,followers:a.followers})),w=n.next_publications[0]??null,H=a=>{if(a===null)return null;const i=a>=0;return e.jsxs("span",{className:`text-xs font-semibold inline-flex items-center gap-0.5 ${i?"text-green-600":"text-gray-500"}`,children:[e.jsx("svg",{className:"w-3 h-3",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{d:i?"M12 4l8 10h-5v6h-6v-6H4z":"M12 20l-8-10h5V4h6v6h5z"})}),i?"+":"−",u(Math.abs(a))]})};return e.jsx(p,{children:e.jsxs("main",{className:"max-w-7xl mx-auto w-full px-4 sm:px-6 py-6 sm:py-8 stagger-rise",children:[e.jsx(q,{icon:e.jsx("svg",{className:"w-5 h-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.217 10.9
107a2.25 2.25 0 100 2.186m0-2.186c.18.324.283.696.283 1.093s-.103.77-.283 1.093m0-2.186l9.566-5.314m-9.566 7.5l9.566 5.314m0 0a2.25 2.25 0 103.935 2.186 2.25 2.25 0 00-3.935-2.186zm0-12.814a2.25 2.25 0 103.933-2.185 2.25 2.25 0 00-3.933 2.185z"})}),title:s("socialHub.title","Réseaux sociaux"),subtitle:s("socialHub.subtitle",{defaultValue:"{{count}} comptes connectés",count:n.connections.length})}),e.jsx("div",{className:"bg-white/70 backdrop-blur-xl border border-gray-200/60 rounded-2xl p-5 sm:p-6 mb-5 shadow-sm",children:e.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-6 lg:divide-x lg:divide-gray-100",children:[e.jsxs("div",{className:"lg:pl-0 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 font-medium uppercase tracking-wide mb-2",children:[e.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z"})}),s("socialHub.kpis.followers","Abonnés")]}),e.jsxs("div",{className:"flex items-baseline gap-2",children:[e.jsx("div",{className:"text-2xl sm:text-3xl font-bold text-gray-900",children:u(d.followers_total)}),H(d.followers_delta_30d)]}),e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:s("socialHub.kpis.last30days","30 derniers jours")})]}),e.jsxs("div",{className:"lg:pl-6 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 font-medium uppercase tracking-wide mb-2",children:[e.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10"})}),s("socialHub.kpis.posts","Publications")]}),e.jsxs("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-0.5",children:[e.jsx("div",{className:"text-2xl sm:text-3xl font-bold text-gray-900",children:u(d.posts_30d)}),e.jsx("span",{className:"text-xs text-gray-400",children:s("socialHub.kpis.vsPrevious",{defaultValue:"vs {{count}} le mois précédent",count:d.posts_previous_30d})})]}),e.jsx("div",{className:"text-xs text-gray-400 mt-1",children:s("socialHub.kpis.last30days","30 derniers jours")})]}),e.jsxs("div",{className:"lg:pl-6 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 font-medium uppercase tracking-wide mb-2",children:[e.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m13.35-.622l1.757-1.757a4.5 4.5 0 00-6.364-6.364l-4.5 4.5a4.5 4.5 0 001.242 7.244"})}),s("socialHub.kpis.platforms","Plateformes")]}),e.jsx("div",{className:"flex items-center gap-1.5 mt-1",children:d.platforms.map(a=>e.jsx(h,{platform:a},a))}),e.jsx("div",{className:"text-xs text-gray-400 mt-2",children:s("socialHub.kpis.connectedCount",{defaultValue:"{{count}} connectées",count:d.platforms.length})})]}),e.jsxs("div",{className:"lg:pl-6 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs text-gray-500 font-medium uppercase tracking-wide mb-2",children:[e.jsx("svg",{className:"w-4 h-4 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 7.5v11.25m-18 0A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75m-18 0v-7.5A2.25 2.25 0 015.25 9h13.5A2.25 2.25 0 0121 11.25v7.5"})}),s("socialHub.kpis.nextPublication","Prochaine publication")]}),w?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"text-base font-semibold text-gray-900",children:ee(w.scheduled_at)}),e.jsx("div",{className:"text-xs text-gray-400 mt-1 truncate",children:w.title})]}):e.jsx("button",{onClick:()=>r("/dashboard/publications?action=compose"),className:"text-sm font-semibold text-orange-500 hover:text-orange-600 transition-colors",children:s("socialHub.kpis.scheduleOne","Planifier un post")})]})]})}),e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5 items-start",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-5 min-w-0",children:[e.jsx(U,{title:s("socialHub.followersChart.title","Évolution de votre audience"),subtitle:s("socialHub.followersChart.subtitle","Abonnés cumulés, 90 derniers jours"),data:B,series:[{type:"area",dataKey:"followers",name:s("socialHub.followersChart.series","Abonnés"),color:"#fdba74",gradientColor:"#fb923c"}],xTickFormatter:a=>{const i=new Date(`${a}T00:00:00`);return new Intl.DateTimeFormat(g(),{day:"numeric",month:"short"}).format(i).replace(".","")},tooltipLabelFormatter:a=>{const i=new Date(`${a}T00:00:00`);return new Intl.DateTimeFormat(g(),{day:"numeric",month:"long"}).format(i)},height:280,emptyMessage:z?s("socialHub.followersChart.empty","L'historique d'abonnés se construit automatiquement chaque nuit — revenez dans quelques jours."):s("socialHub.followersChart.emptyNoSocial","Connectez un réseau social (Instagram, Facebook, LinkedIn…) pour suivre l'évolution de votre audience.")}),e.jsxs("div",{className:"bg-white/70 backdrop-blur-xl border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm",children:[e.jsx("h2",{className:"text-base font-semibold text-gray-900 mb-4",children:s("socialHub.platformStats.title","Par plateforme")}),e.jsx("div",{className:"divide-y divide-gray-100",children:n.platform_stats.map(a=>e.jsxs("div",{className:"flex items-center gap-3 py-3 first:pt-0 last:pb-0",children:[e.jsx(h,{platform:a.platform}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-semibold text-gray-900 truncate",children:b(
1a.platform)}),e.jsx("p",{className:"text-xs text-gray-400 tabular-nums",children:s("socialHub.platformStats.posts",{defaultValue:"{{count}} posts / 30 j",count:a.posts_30d})})]}),e.jsx("span",{className:"flex-shrink-0 text-right",children:a.followers!==null?e.jsxs("span",{className:"inline-flex items-baseline gap-1.5",children:[e.jsx("b",{className:"text-sm font-bold text-gray-900 tabular-nums",children:u(a.followers)}),H(a.delta_30d)]}):e.jsx("span",{className:"text-sm text-gray-400",children:"—"})})]},a.platform))})]}),e.jsxs("div",{className:"bg-white/70 backdrop-blur-xl border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-base font-semibold text-gray-900",children:s("socialHub.recentPosts.title","Derniers posts publiés")}),e.jsx("button",{onClick:()=>r("/dashboard/publications?action=calendar"),className:"text-sm font-semibold text-orange-500 hover:text-orange-600 transition-colors",children:s("socialHub.recentPosts.seeAll","Voir le calendrier")})]}),n.recent_posts.length===0?e.jsx("p",{className:"text-sm text-gray-500 py-2",children:s("socialHub.recentPosts.empty","Aucun post publié sur les 90 derniers jours.")}):e.jsx("div",{className:"divide-y divide-gray-100",children:n.recent_posts.map((a,i)=>e.jsxs("div",{className:"flex items-center gap-3.5 py-3 first:pt-0 last:pb-0",children:[a.image_url?e.jsx("img",{src:a.image_url,alt:"",loading:"lazy",className:"w-11 h-11 rounded-[10px] object-cover flex-shrink-0 bg-gray-100"}):e.jsx("span",{className:"w-11 h-11 rounded-[10px] bg-gray-100 flex-shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm text-gray-700 truncate",children:a.title}),e.jsx("p",{className:"text-xs text-gray-400 mt-0.5",children:Z(a.published_at)})]}),e.jsx("div",{className:"flex items-center gap-1 flex-shrink-0",children:a.platforms.map(L=>e.jsx(h,{platform:L},L))})]},i))})]})]}),e.jsxs("div",{className:"space-y-5 min-w-0",children:[e.jsx(G,{pillar:"social",data:S,loading:T,cta:{label:s("presenceCard.social.detailCta","Publier plus régulièrement"),onClick:()=>r("/dashboard/publications?action=compose")}}),e.jsxs("div",{className:"bg-white/70 backdrop-blur-xl border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsx("h2",{className:"text-base font-semibold text-gray-900",children:s("socialHub.connections.title","Comptes connectés")}),e.jsx("button",{onClick:()=>r("/dashboard/parametres#connexions"),className:"text-sm font-semibold text-orange-500 hover:text-orange-600 transition-colors",children:s("socialHub.connections.manage","Gérer")})]}),e.jsx("div",{className:"divide-y divide-gray-100",children:n.connections.map((a,i)=>e.jsxs("div",{className:"flex items-center gap-3 py-2.5 first:pt-0 last:pb-0",children:[e.jsx(h,{platform:a.platform}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-gray-900 truncate",children:a.name}),a.bulle_name&&e.jsx("p",{className:"text-xs text-gray-400 truncate",children:a.bulle_name})]})]},i))})]}),e.jsxs("div",{className:"bg-white/70 backdrop-blur-xl border border-gray-200/60 rounded-2xl p-5 sm:p-6 shadow-sm",children:[e.jsx("h2",{className:"text-base font-semibold text-gray-900 mb-4",children:s("socialHub.shortcuts.title","Actions rapides")}),e.jsx("div",{className:"space-y-1",children:[{label:s("socialHub.shortcuts.compose","Publier un post"),path:"/dashboard/publications?action=compose"},{label:s("socialHub.shortcuts.calendar","Ouvrir le calendrier"),path:"/dashboard/publications?action=calendar"},{label:s("socialHub.shortcuts.autopilot","Lancer l'Auto-Pilot"),path:"/dashboard/publications?action=autopilot"},{label:s("socialHub.shortcuts.reports","Rapports détaillés"),path:"/dashboard/rapports-sociaux"}].map(a=>e.jsxs("button",{onClick:()=>r(a.path),className:"w-full flex items-center justify-between text-left py-2.5 px-2 -mx-2 rounded-lg hover:bg-orange-50/40 transition-colors",children:[e.jsx("span",{className:"text-sm font-medium text-gray-700",children:a.label}),e.jsx("svg",{className:"w-3.5 h-3.5 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})]},a.path))})]}),e.jsx(X,{})]})]})]})})};export{he as default};

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.