Files
cirux/.next/static/chunks/app/dashboard/notifications/page-d68ff84f023b6875.js
T
2026-06-03 15:08:40 -05:00

1 line
21 KiB
JavaScript

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1654],{3998:(e,t,a)=>{"use strict";a.d(t,{$:()=>d});var r=a(95155),n=a(49574),s=a(83101),i=a(64269);let o=(0,s.F)("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function d(e){let{className:t,variant:a="default",size:s="default",...d}=e;return(0,r.jsx)(n.Button,{"data-slot":"button",className:(0,i.cn)(o({variant:a,size:s,className:t})),...d})}},11647:(e,t,a)=>{"use strict";a.d(t,{E:()=>d});var r=a(21083),n=a(22027),s=a(83101),i=a(64269);let o=(0,s.F)("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",secondary:"bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80",destructive:"bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20",outline:"border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground",ghost:"hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function d(e){let{className:t,variant:a="default",render:s,...d}=e;return(0,n.C)({defaultTagName:"span",props:(0,r.v6)({className:(0,i.cn)(o({variant:a}),t)},d),render:s,state:{slot:"badge",variant:a}})}},13406:(e,t,a)=>{"use strict";a.d(t,{Tabs:()=>c,TabsContent:()=>m,TabsList:()=>g,TabsTrigger:()=>p});var r=a(95155),n=a(15499),s=a(11506),i=a(78598),o=a(92272),d=a(83101),l=a(64269);function c(e){let{className:t,orientation:a="horizontal",...s}=e;return(0,r.jsx)(n.p,{"data-slot":"tabs","data-orientation":a,className:(0,l.cn)("group/tabs flex gap-2 data-horizontal:flex-col",t),...s})}let u=(0,d.F)("group/tabs-list inline-flex w-fit items-center justify-center rounded-lg p-[3px] text-muted-foreground group-data-horizontal/tabs:h-8 group-data-vertical/tabs:h-fit group-data-vertical/tabs:flex-col data-[variant=line]:rounded-none",{variants:{variant:{default:"bg-muted",line:"gap-1 bg-transparent"}},defaultVariants:{variant:"default"}});function g(e){let{className:t,variant:a="default",...n}=e;return(0,r.jsx)(s.j,{"data-slot":"tabs-list","data-variant":a,className:(0,l.cn)(u({variant:a}),t),...n})}function p(e){let{className:t,...a}=e;return(0,r.jsx)(i.M,{"data-slot":"tabs-trigger",className:(0,l.cn)("relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium whitespace-nowrap text-foreground/60 transition-all group-data-vertical/tabs:w-full group-data-vertical/tabs:justify-start hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring disabled:pointer-events-none disabled:opacity-50 has-data-[icon=inline-end]:pr-1 has-data-[icon=inline-start]:pl-1 aria-disabled:pointer-events-none aria-disabled:opacity-50 dark:text-muted-foreground dark:hover:text-foreground group-data-[variant=default]/tabs-list:data-active:shadow-sm group-data-[variant=line]/tabs-list:data-active:shadow-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4","group-data-[variant=line]/tabs-list:bg-transparent group-data-[variant=line]/tabs-list:data-active:bg-transparent dark:group-data-[variant=line]/tabs-list:data-active:border-transparent dark:group-data-[variant=line]/tabs-list:data-active:bg-transparent","data-active:bg-background data-active:text-foreground dark:data-active:border-input dark:data-active:bg-input/30 dark:data-active:text-foreground","after:absolute after:bg-foreground after:opacity-0 after:transition-opacity group-data-horizontal/tabs:after:inset-x-0 group-data-horizontal/tabs:after:bottom-[-5px] group-data-horizontal/tabs:after:h-0.5 group-data-vertical/tabs:after:inset-y-0 group-data-vertical/tabs:after:-right-1 group-data-vertical/tabs:after:w-0.5 group-data-[variant=line]/tabs-list:data-active:after:opacity-100",t),...a})}function m(e){let{className:t,...a}=e;return(0,r.jsx)(o.R,{"data-slot":"tabs-content",className:(0,l.cn)("flex-1 text-sm outline-none",t),...a})}},20243:(e,t,a)=>{"use strict";a.d(t,{E:()=>s});var r=a(95155),n=a(64269);function s(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"skeleton",className:(0,n.cn)("animate-pulse rounded-md bg-muted",t),...a})}},47983:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>z});var r=a(95155),n=a(12115),s=a(77650),i=a(64309),o=a(86948),d=a(11647),l=a(3998),c=a(20243),u=a(13406),g=a(34788),p=a(69746),m=a(89840),v=a(71163),x=a(35056),b=a(65142),f=a(18720);function h(e){let{conversation:t,patient:a,open:i,onClose:o}=e,d=(0,n.useMemo)(()=>(0,s.U)(),[]),[u,h]=(0,n.useState)([]),[y,j]=(0,n.useState)(!0),[N,k]=(0,n.useState)(""),[w,C]=(0,n.useState)(!1),z=(0,n.useRef)(null),_=(0,n.useRef)(null),T=(0,n.useCallback)(async()=>{let{data:e}=await d.from("messages").select("id, patient_id, conversation_id, channel, direction, type, content, transcript, created_at").eq("patient_id",a.id).order("created_at",{ascending:!0}).limit(100);e&&h(e),j(!1)},[a.id,d]);(0,n.useEffect)(()=>{if(i){j(!0),T();let e=d.channel("chat-".concat(t.id)).on("postgres_changes",{event:"INSERT",schema:"public",table:"messages",filter:"patient_id=eq.".concat(a.id)},()=>void T()).subscribe();return()=>{var t;d.removeChannel(e),null==(t=_.current)||t.abort()}}},[i,t.id,T,a.id,d]),(0,n.useEffect)(()=>{var e;null==(e=z.current)||e.scrollIntoView({behavior:"smooth"})},[u]);let A=(0,n.useCallback)(async()=>{let e=N.trim();if(!e||w)return;C(!0);let r=a.phone.replace(/^\+/,""),n={id:"opt-".concat(Date.now()),patient_id:a.id,conversation_id:t.id,channel:t.channel,direction:"out",type:"text",content:e,audio_url:null,transcript:null,created_at:new Date().toISOString()};h(e=>[...e,n]),k("");try{var s;null==(s=_.current)||s.abort(),_.current=new AbortController;let i=await fetch("/api/v1/send-message",{method:"POST",headers:{"Content-Type":"application/json"},signal:_.current.signal,body:JSON.stringify({number:r,text:e,patientId:a.id,conversationId:t.id})}),o=await i.json();i.ok||(f.o.error(o.error||"Error al enviar mensaje"),h(e=>e.filter(e=>e.id!==n.id)),k(e))}catch(t){f.o.error("Error de conexi\xf3n al enviar mensaje"),h(e=>e.filter(e=>e.id!==n.id)),k(e)}finally{C(!1)}},[t.channel,t.id,a.id,a.phone,N]),E=(0,n.useCallback)(e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),A())},[A]);return i?(0,r.jsxs)("div",{className:"fixed inset-y-0 right-0 w-96 bg-card border-l border-border shadow-2xl z-50 flex flex-col animate-in slide-in-from-right duration-200",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border shrink-0",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("p",{className:"font-heading font-semibold text-sm text-foreground",children:a.name}),(0,r.jsxs)("p",{className:"text-[10px] text-muted-foreground",children:[a.phone," \xb7 ",t.channel]})]}),(0,r.jsx)(l.$,{variant:"ghost",size:"icon",onClick:o,className:"rounded-[10px]","aria-label":"Cerrar chat",children:(0,r.jsx)(g.A,{className:"size-4"})})]}),(0,r.jsxs)("div",{className:"flex-1 overflow-y-auto px-4 py-3 space-y-2",children:[y?(0,r.jsx)("div",{className:"space-y-3 pt-2",children:Array.from({length:5}).map((e,t)=>(0,r.jsx)(c.E,{className:"h-12 rounded-[12px] ".concat(t%2==0?"w-3/4":"w-2/3 ml-auto")},t))}):0===u.length?(0,r.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,r.jsxs)("p",{className:"text-xs text-muted-foreground text-center",children:["Sin mensajes a\xfan. ",(0,r.jsx)("br",{})," Env\xeda el primer mensaje."]})}):u.map(e=>(0,r.jsx)("div",{className:"flex ".concat("out"===e.direction?"justify-end":"justify-start"),children:(0,r.jsxs)("div",{className:"max-w-[80%] rounded-[12px] px-3 py-2 text-sm ".concat("out"===e.direction?"bg-primary/15 text-foreground rounded-br-sm":"bg-muted text-foreground rounded-bl-sm"),children:[(0,r.jsx)("p",{className:"leading-relaxed whitespace-pre-wrap break-words",children:e.content}),(0,r.jsx)("p",{className:"text-[9px] text-muted-foreground mt-1 text-right",children:(0,v.GP)(new Date(e.created_at),"HH:mm",{locale:x.es})})]})},e.id)),(0,r.jsx)("div",{ref:z})]}),(0,r.jsx)("div",{className:"px-4 py-3 border-t border-border shrink-0",children:(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(b.p,{value:N,onChange:e=>k(e.target.value),onKeyDown:E,placeholder:"Escribe un mensaje...",className:"rounded-[12px] text-sm flex-1",disabled:w}),(0,r.jsx)(l.$,{size:"icon",onClick:()=>void A(),disabled:!N.trim()||w,className:"rounded-[12px] bg-primary text-[#0D141D] hover:bg-primary/80 shrink-0",children:w?(0,r.jsx)(p.A,{className:"size-4 animate-spin"}):(0,r.jsx)(m.A,{className:"size-4"})})]})})]}):null}var y=a(9453),j=a(84107),N=a(54796),k=a(83410);let w={whatsapp:{label:"WhatsApp",color:"text-emerald-600"},messenger:{label:"Messenger",color:"text-blue-600"},instagram:{label:"Instagram",color:"text-pink-600"},tiktok:{label:"TikTok",color:"text-black"},web:{label:"Web Chat",color:"text-primary"}},C={active:{label:"Activa",icon:y.A,className:"bg-blue-50 text-blue-700 border-blue-200"},pending_human:{label:"Pendiente",icon:j.A,className:"bg-yellow-50 text-yellow-700 border-yellow-200"},resolved:{label:"Resuelta",icon:N.A,className:"bg-emerald-50 text-emerald-700 border-emerald-200"}};function z(){var e,t;let a=(0,n.useMemo)(()=>(0,s.U)(),[]),g=(0,i.i)(e=>e.setPendingConversations),p=(0,i.i)(e=>e.removePendingConversation),[m,b]=(0,n.useState)([]),[j,z]=(0,n.useState)(!0),[_,T]=(0,n.useState)("all"),[A,E]=(0,n.useState)(null);(0,n.useEffect)(()=>{let e=async()=>{try{let{data:e,error:t}=await a.from("conversations").select("*, patient:patients(id, name, phone)").order("last_message_at",{ascending:!1}).limit(100);if(t&&console.error("Conversations query error:",t.message),e){b(e);let t=e.filter(e=>"pending_human"===e.status);g(t)}}finally{z(!1)}};e();let t=a.channel("notifications-page").on("postgres_changes",{event:"*",schema:"public",table:"conversations",filter:"status=eq.pending_human"},()=>void e()).subscribe();return()=>{a.removeChannel(t)}},[a,g]);let I=(0,n.useCallback)(async e=>{let{error:t}=await a.from("conversations").update({status:"resolved"}).eq("id",e);if(t)return void f.o.error("Error al marcar como resuelto.");p(e),f.o.success("Conversaci\xf3n marcada como resuelta.")},[a,p]),S=(0,n.useMemo)(()=>"all"===_?m:m.filter(e=>e.status===_),[_,m]),P=(0,n.useMemo)(()=>({all:m.length,active:m.filter(e=>"active"===e.status).length,pending_human:m.filter(e=>"pending_human"===e.status).length,resolved:m.filter(e=>"resolved"===e.status).length}),[m]);return(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h2",{className:"font-heading font-bold text-2xl text-foreground",children:"Conversaciones"}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm mt-1",children:"Todas las conversaciones del consultorio por canal"})]}),(0,r.jsxs)(u.Tabs,{value:_,onValueChange:T,children:[(0,r.jsxs)(u.TabsList,{className:"bg-muted/50 rounded-[12px] w-full sm:w-auto",children:[(0,r.jsxs)(u.TabsTrigger,{value:"all",className:"text-xs",children:["Todas (",P.all,")"]}),(0,r.jsxs)(u.TabsTrigger,{value:"active",className:"text-xs",children:["Activas (",P.active,")"]}),(0,r.jsxs)(u.TabsTrigger,{value:"pending_human",className:"text-xs",children:["Pendientes (",P.pending_human,")"]}),(0,r.jsxs)(u.TabsTrigger,{value:"resolved",className:"text-xs",children:["Resueltas (",P.resolved,")"]})]}),(0,r.jsx)(u.TabsContent,{value:_,className:"mt-4",children:j?(0,r.jsx)("div",{className:"space-y-3",children:Array.from({length:4}).map((e,t)=>(0,r.jsx)(c.E,{className:"h-24 rounded-[18px]"},t))}):0===S.length?(0,r.jsx)(o.Zp,{className:"border-border",children:(0,r.jsxs)(o.Wu,{className:"flex flex-col items-center justify-center h-48 gap-3",children:[(0,r.jsx)(N.A,{className:"size-10 text-muted-foreground"}),(0,r.jsx)("p",{className:"font-medium text-foreground",children:"all"===_?"Sin conversaciones":"pending_human"===_?"Sin conversaciones pendientes":"Sin conversaciones ".concat(null!=(t=null==(e=C[_])?void 0:e.label.toLowerCase())?t:"")}),(0,r.jsx)("p",{className:"text-muted-foreground text-sm text-center max-w-xs",children:"pending_human"===_?"Todas las conversaciones est\xe1n resueltas o siendo atendidas por el agente IA.":"No hay conversaciones en esta categor\xeda a\xfan."})]})}):(0,r.jsx)("div",{className:"space-y-3",children:S.map(e=>{var t,a,n,s;let i=null!=(t=w[e.channel])?t:{label:e.channel,color:"text-muted"},c=null!=(a=C[e.status])?a:C.active,u=c.icon,g=e.patient;return(0,r.jsx)("div",{role:"button",tabIndex:0,onClick:()=>{g&&E({conversation:e,patient:g})},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),g&&E({conversation:e,patient:g}))},className:"w-full text-left cursor-pointer",children:(0,r.jsx)(o.Zp,{className:"rounded-[18px] transition-colors hover:bg-muted/40 cursor-pointer ".concat("pending_human"===e.status?"border-secondary/30 bg-secondary/5":"border-border"),children:(0,r.jsx)(o.Wu,{className:"pt-4 pb-4",children:(0,r.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsx)("div",{className:"size-10 rounded-full bg-secondary/20 flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,r.jsx)(y.A,{className:"size-4 text-foreground"})}),(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,r.jsx)("p",{className:"font-semibold text-sm text-foreground",children:null!=(n=null==g?void 0:g.name)?n:"Paciente desconocido"}),(0,r.jsx)(d.E,{variant:"outline",className:"text-[10px] ".concat(i.color," border-current/30"),children:i.label}),(0,r.jsxs)(d.E,{variant:"outline",className:"text-[10px] ".concat(c.className),children:[(0,r.jsx)(u,{className:"size-3 mr-0.5"}),c.label]})]}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:null!=(s=null==g?void 0:g.phone)?s:"—"}),(0,r.jsxs)("div",{className:"flex items-center gap-1 mt-1",children:[(0,r.jsx)(k.A,{className:"size-3 text-muted-foreground"}),(0,r.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,v.GP)(new Date(e.last_message_at),"dd MMM \xb7 HH:mm",{locale:x.es})})]})]})]}),"pending_human"===e.status&&(0,r.jsxs)(l.$,{size:"sm",variant:"outline",onClick:t=>{t.stopPropagation(),I(e.id)},className:"rounded-[12px] text-xs flex-shrink-0",children:[(0,r.jsx)(N.A,{className:"size-3 mr-1"}),"Resolver"]})]})})})},e.id)})})})]}),A&&(0,r.jsx)(h,{conversation:A.conversation,patient:A.patient,open:!0,onClose:()=>E(null)})]})}},64269:(e,t,a)=>{"use strict";a.d(t,{cn:()=>s});var r=a(2821),n=a(75889);function s(){for(var e=arguments.length,t=Array(e),a=0;a<e;a++)t[a]=arguments[a];return(0,n.QP)((0,r.$)(t))}},64309:(e,t,a)=>{"use strict";a.d(t,{i:()=>s});var r=a(25959),n=a(89863);let s=(0,r.v)()((0,n.lt)((e,t)=>({pendingConversations:[],systemNotifications:[],unreadCount:0,setPendingConversations:t=>e({pendingConversations:t,unreadCount:t.length},!1,"notifications/setPendingConversations"),addPendingConversation:a=>{t().pendingConversations.some(e=>e.id===a.id)||e(e=>({pendingConversations:[a,...e.pendingConversations],unreadCount:e.unreadCount+1}),!1,"notifications/addPendingConversation")},removePendingConversation:t=>e(e=>({pendingConversations:e.pendingConversations.filter(e=>e.id!==t),unreadCount:Math.max(0,e.unreadCount-1)}),!1,"notifications/removePendingConversation"),setSystemNotifications:t=>e({systemNotifications:t},!1,"notifications/setSystemNotifications"),markAllRead:()=>e({unreadCount:0},!1,"notifications/markAllRead")}),{name:"NotificationStore",enabled:!1}))},65142:(e,t,a)=>{"use strict";a.d(t,{p:()=>i});var r=a(95155);a(12115);var n=a(50092),s=a(64269);function i(e){let{className:t,type:a,...i}=e;return(0,r.jsx)(n.p,{type:a,"data-slot":"input",className:(0,s.cn)("h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",t),...i})}},77650:(e,t,a)=>{"use strict";a.d(t,{U:()=>n});var r=a(79786);function n(){return(0,r.createBrowserClient)("https://supabase.silvioalzate.shop","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlzcyI6InN1cGFiYXNlIiwiaWF0IjoxNzc5MTYzNDQ1LCJleHAiOjE5MzY4NDM0NDV9.RGVwyQdA7oigXmMylP2Df7DKpNno_8_rSTwd0471zLk")}},80032:(e,t,a)=>{Promise.resolve().then(a.bind(a,47983))},86948:(e,t,a)=>{"use strict";a.d(t,{BT:()=>d,Wu:()=>l,ZB:()=>o,Zp:()=>s,aR:()=>i});var r=a(95155);a(12115);var n=a(64269);function s(e){let{className:t,size:a="default",...s}=e;return(0,r.jsx)("div",{"data-slot":"card","data-size":a,className:(0,n.cn)("group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",t),...s})}function i(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-header",className:(0,n.cn)("group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",t),...a})}function o(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-title",className:(0,n.cn)("font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",t),...a})}function d(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-description",className:(0,n.cn)("text-sm text-muted-foreground",t),...a})}function l(e){let{className:t,...a}=e;return(0,r.jsx)("div",{"data-slot":"card-content",className:(0,n.cn)("px-4 group-data-[size=sm]/card:px-3",t),...a})}}},e=>{e.O(0,[5730,7711,7349,9574,3540,8720,7958,8814,5922,8548,8539,8441,1255,7358],()=>e(e.s=80032)),_N_E=e.O()}]);