PageSourceSearch

https://sistema.yacamba.com/assets/MainLeadMob-44LPNfQv.js

js yacamba.com collected 2026-09-24 11:06:08 UTC 20,454 bytes, 1 lines download raw bytes

1import{jc as j,i_ as k,hH as d,gT as e,b6 as h,eG as Y,aQ as K,y as w,iC as X,eY as Z,fc as q,hJ as P,iU as ee,c$ as v,br as te,f as M,i as V,h as R,cL as se,hl as ie,c3 as re,$ as ae}from"./index-DfEzlclk.js";import{M as ne}from"./MainContainer-CSNJwK3K.js";import{M as le}from"./MainHeader-ZuQBHa_l.js";import{S as oe}from"./ShowOpportunity-DNPVCpSH.js";import{L as ce}from"./LeadAppointments-BK-mTPSX.js";import{D as S,g as _,b as C,e as T,f as B,c as D,d as de}from"./drawer-Ch_49rYl.js";import{I as x}from"./input-0j3k2iPG.js";import{saveLeadComments as G,modalConvertClient as xe,saveLeadActivity as me,functionDestroySaleProcessStage as fe,functionEditSaleProcessStage as pe,functionCreateSaleProcessStage as ge,editLead as W}from"./utils-CRdGQaGq.js";import{P as ue}from"./phone-HLZBjlwj.js";import{R as be}from"./radio-B6G4RKa6.js";import{B as he}from"./briefcase-C8m8Nsv3.js";import{S as je}from"./star-D_xjUgU9.js";import"./tabs-CL_7EPhy.js";import"./index-zuvzRqwN.js";import"./circle-dollar-sign-ClnjeNzm.js";import"./square-user-round-D2NIAuUA.js";import"./contact-round-DDhjQpVz.js";import"./trophy-BA_LG1qX.js";import"./circle-x-BVT64Xj0.js";import"./index-B38Q2-8f.js";import"./textarea-UjDE3c36.js";import"./send-Bog3duog.js";import"./paperclip-DyXP4woz.js";import"./select-QRAH_8I2.js";import"./index-DzrlfVn7.js";import"./chevron-up-DJ8waXw6.js";import"./calendar-CYaAk85-.js";import"./endOfMonth-CltHSOWp.js";import"./subDays-qKYcXrMN.js";import"./addDays-Bo6lmrjB.js";import"./bell-ring-CmvMunbZ.js";import"./parse-BT-pUSEB.js";import"./select-uA-DvxRP.js";import"./react-select.esm-fz8TYlud.js";import"./defineProperty-DRmM3rRU.js";import"./typeof-QjJsDpFa.js";import"./DropZoneMultiFile-3ZbBdsLb.js";import"./ButtonConfirm-DdSvZARC.js";import"./move-right-r-zivXQS.js";import"./ButtonCancel-CJVRrkKo.js";import"./square-check-big-Btm_yzSF.js";import"./square-DlRy7wAy.js";import"./video-CCpANfAa.js";import"./ModalDeleteActivity-BGt7Bgee.js";import"./Trans-DPh4ufeu.js";import"./list-checks-4-5tKMrj.js";import"./history-iUblDaBA.js";import"./calendar-range-K6ZLv2A0.js";import"./images-show-DAbaAIj2.js";import"./modal-images-B_GA3gG7.js";import"./external-link-qlPN7V6x.js";import"./download-CK3H0rYh.js";import"./zoom-out-BHoxb6Cg.js";import"./rotate-ccw-ZQ9PLrLQ.js";import"./file-text-D1mCkImR.js";import"./file-spreadsheet-DWeiMmGx.js";import"./image-iB7Tob6A.js";import"./file-DgXTEVq8.js";import"./chat-utils-n1tCsDH3.js";import"./pause-GBG4t-oD.js";import"./play-DzQoXup5.js";import"./formatDistanceToNow-KeDhcCnt.js";import"./getRoundingMethod-BGyHxZMu.js";import"./checkbox-ca87RBHe.js";import"./table-KbZzamB6.js";import"./Loading-1nZ8Zm-A.js";import"./useSalesCatalogSearch-D37N9fk0.js";import"./utils-CftkfFQ3.js";import"./utils-C_oFoqTa.js";import"./utils-q1U2wIj4.js";import"./user-plus-CJXy9KHM.js";function Ne({lead:t}){const{t:s}=j(),r=k(),[n,o]=d.useState(!1);d.useEffect(()=>{r.state==="idle"&&o(!1)},[r.state]);const l=[s("Nombre del Negocio"),s("Telefono del Negocio"),s("Nombre del Contacto"),s("Apellido Paterno Contacto"),s("Apellido Materno Contacto"),s("Telefono del Contacto"),s("Email del Contacto")];return e.jsxs(S,{open:n,onOpenChange:o,children:[e.jsx(_,{children:e.jsxs("span",{className:"flex items-center justify-start gap-5",children:[e.jsx(h,{icon:Y,className:"size-[18px] text-grisHeading"}),e.jsx("div",{children:s("Editar")})]})}),e.jsx(C,{className:"h-[90%] p-0",children:e.jsxs(K,{id:"lead-form-edit",className:"flex h-full flex-col overflow-hidden",action:`/crm-mobile/leads/${t==null?void 0:t.id}`,method:"post",onKeyDown:c=>{c.key==="Enter"&&c.preventDefault()},children:[e.jsx(T,{className:"border-b p-0",children:e.jsxs("div",{className:"grid w-full grid-cols-3 items-center p-0",children:[e.jsx("div",{}),e.jsx(B,{className:"flex justify-center",children:e.jsx("span",{className:"font-poppins text-[14px] font-semibold text-grisHeading",children:s("Editar Prospecto")})}),e.jsx("div",{className:"flex justify-end",children:e.jsx(w,{form:"lead-form-edit",disabled:r.state==="submitting",className:"bg-transparent font-roboto text-[13px] font-medium text-brandBlue hover:bg-transparent",children:r.state==="submitting"?s("Guardando..."):s("Guardar")})})]})}),e.jsx(D,{className:"hidden"}),e.jsxs("div",{className:"flex-1 overflow-y-auto p-4",children:[e.jsx("input",{type:"hidden",hidden:!0,readOnly:!0,name:"lead_id",value:t==null?void 0:t.id}),e.jsx("input",{type:"hidden",hidden:!0,readOnly:!0,name:"action",value:"edit-lead"}
1),e.jsxs("div",{className:"flex flex-col gap-4 rounded-lg font-roboto",children:[e.jsx("div",{className:"text-lg font-normal text-grisText",children:s("Informacion del Negocio")}),e.jsxs("div",{className:"flex flex-col gap-4 font-light",children:[e.jsx(x,{name:"bussines_name",type:"text",placeholder:l[0],defaultVal:t==null?void 0:t.business_name}),e.jsx(x,{name:"bussines_phone",type:"text",placeholder:l[1],defaultVal:t==null?void 0:t.business_phone})]})]}),e.jsxs("div",{className:"mt-4 flex flex-col gap-4 rounded-lg font-roboto",children:[e.jsx("div",{className:"text-lg font-normal text-grisText",children:s("Información de Contacto")}),e.jsxs("div",{className:"flex flex-col gap-4 font-light",children:[e.jsx(x,{name:"contact_name",type:"text",placeholder:l[2],defaultVal:t==null?void 0:t.contact_name}),e.jsx(x,{name:"contact_middle_name",type:"text",placeholder:l[3],defaultVal:t==null?void 0:t.contact_middle_name}),e.jsx(x,{name:"contact_last_name",type:"text",placeholder:l[4],defaultVal:t==null?void 0:t.contact_last_name}),e.jsx(x,{name:"contact_phone",type:"text",placeholder:l[5],defaultVal:t==null?void 0:t.contact_phone}),e.jsx(x,{name:"contact_email",type:"email",placeholder:l[6],defaultVal:t==null?void 0:t.contact_email})]})]})]}),e.jsx(de,{className:"px-8 py-4"})]})})]})}function ve({lead_id:t,lead_name:s}){const{t:r}=j(),n=k(),[o,l]=d.useState(!1);return d.useEffect(()=>{n.state==="idle"&&l(!1)},[n.state]),e.jsxs(S,{open:o,onOpenChange:l,children:[e.jsx(_,{children:e.jsxs("span",{className:"flex items-center justify-start gap-5",children:[e.jsx(h,{icon:X,className:"size-[18px] text-grisHeading"}),e.jsx("div",{children:r("Borrar")})]})}),e.jsxs(C,{className:"flex h-[40%] flex-col gap-4 border-0 bg-[#242424]",children:[e.jsxs("div",{className:"grid w-full grid-cols-3 items-center p-0",children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(w,{type:"button",className:"h-fit w-fit bg-inherit px-0 font-roboto text-xs font-light text-grisSubText hover:bg-inherit",onClick:()=>l(!1),children:r("Cancelar")})}),e.jsx("div",{})," ",e.jsx("div",{className:"flex justify-end",children:e.jsx(w,{type:"submit",className:"h-8 w-24 bg-inherit font-roboto text-xs font-normal text-[#DC1C3B] hover:bg-inherit dark:text-[#e28d9b]",children:r("Borrar")})})]}),e.jsxs(T,{children:[e.jsx(B,{className:"px-2",children:e.jsxs("div",{className:"flex w-full flex-row gap-x-2",children:[e.jsx("div",{className:"flex items-center justify-center",children:e.jsx(h,{icon:Z,className:"h-8 w-8 text-white"})}),e.jsxs("div",{className:"flex flex-col gap-y-1",children:[e.jsx("h2",{className:"font-poppins text-[13px] font-medium text-grisHeading text-white",children:r("Eliminar Prospecto")}),e.jsxs("h3",{className:"text-left font-poppins text-[13px] font-light text-grisHeading text-white",children:['"',s,'"']})]})]})}),e.jsx(D,{children:e.jsx("span",{className:"my-4 font-roboto text-xs font-light text-grisDisabled",children:r('Estas intentando borrar el prospecto: "{{leadname}}", ¿Estás seguro?',{leadname:s})})})]}),e.jsxs(K,{id:"form-destroy-task",className:"flex flex-col gap-4 p-4",action:"/crm-mobile",method:"post",children:[e.jsx("input",{type:"hidden",value:t,name:"lead_id"}),e.jsx("input",{type:"hidden",name:"action",value:"delete-lead"})]})]})]})}function ye({info:t}){const{t:s}=j(),[r,n]=d.useState(!1),o=k();return d.useEffect(()=>{o.state==="idle"&&n(!1)},[o.state]),e.jsxs(S,{open:r,onOpenChange:n,children:[e.jsx(_,{children:e.jsx(h,{icon:q,className:"size-5 text-[#CCCCCCCC] dark:text-[#ccccccCC]"})}),e.jsxs(C,{className:"h-[30%]",children:[e.jsxs(T,{className:"w-full border-b border-blancoBox p-4",children:[e.jsx(B,{className:"flex items-start justify-center gap-3 font-poppins text-[16px] font-medium text-grisHeading",children:e.jsx("div",{onClick:()=>n(!1),className:"flex items-center justify-center gap-8",children:e.jsx("div",{className:"mb-[-5px] mt-[-15px] flex items-center justify-end",children:e.jsx("span",{className:"text-center font-poppins text-[14px] font-semibold text-grisHeading",children:s("Acciones")})})})}),e.jsx(D,{className:"hidden"})]}),e.jsxs("div",{className:"flex flex-col gap-8 overflow-auto p-8",children:[e.jsx(Ne,{lead:t}),e.jsx(ve,{lead_id:t==null?void 0:t.id,lead_name:t==null?void 0:t.business_name})]})]})]})}const we=t=>({1:{label:t("Activo"),cls:"bg-[#E8F5FF] dark:bg-[#1f3341] text-brandBlue ring-brandBlue/25",dot:"bg-brandBlue/60"},2:{label:t("Suspendido"),cls:"bg-amber-50 dark:bg-amber-500/10 text-amber-700 dark:text-amber-300 ring-amber-200 dark:ring-amber-500/30",dot:"bg-
1amber-400"},3:{label:t("Cancelado"),cls:"bg-red-50 dark:bg-red-500/10 text-red-700 dark:text-red-300 ring-red-200 dark:ring-red-500/30",dot:"bg-red-400"},4:{label:t("Completado"),cls:"bg-emerald-50 dark:bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 ring-emerald-200 dark:ring-emerald-500/30",dot:"bg-emerald-400"}}),U=t=>({1:{label:t("En Proceso"),cls:"bg-[#E8F5FF] dark:bg-[#1f3341] text-brandBlue ring-brandBlue/25",dot:"bg-brandBlue/60",bar:"bg-violetBlue"},2:{label:t("Suspendido"),cls:"bg-amber-50 dark:bg-amber-500/10 text-amber-700 dark:text-amber-300 ring-amber-200 dark:ring-amber-500/30",dot:"bg-amber-400",bar:"bg-amber-400"},3:{label:t("Perdido"),cls:"bg-red-50 dark:bg-red-500/10 text-red-700 dark:text-red-300 ring-red-200 dark:ring-red-500/30",dot:"bg-red-400",bar:"bg-red-400"},4:{label:t("Ganado"),cls:"bg-emerald-50 dark:bg-emerald-500/10 text-emerald-700 dark:text-emerald-300 ring-emerald-200 dark:ring-emerald-500/30",dot:"bg-emerald-400",bar:"bg-emerald-500"}});function J({meta:t}){return t?e.jsxs("span",{className:`inline-flex shrink-0 items-center gap-1.5 rounded-full px-2.5 py-0.5 font-dm text-[11px] font-medium ring-1 ring-inset ${t.cls}`,children:[e.jsx("span",{className:`size-1.5 shrink-0 rounded-full ${t.dot}`}),t.label]}):null}function ke(t){var p;const s=Array.isArray(t==null?void 0:t.sale_process_steps)?t.sale_process_steps:[],r=Math.max(s.length-1,0),n=s.findIndex(m=>m.id==(t==null?void 0:t.step_id)),o=n<0?0:n,l=((p=s[o])==null?void 0:p.name)||"Inicio";return{progress:(t==null?void 0:t.status)==4?100:r>0?Math.round(o/r*100):0,stepName:l,stepIndex:o,stepTotal:r}}function Se(t){return t!=null&&t.title?t.title:t!=null&&t.comment?t.comment:{1:"Se dimensionó el lead",2:"Se envió un correo"}[t==null?void 0:t.type]||"Actividad registrada"}function _e(t){return(t||"").trim().split(/\s+/).filter(Boolean).slice(0,2).map(n=>n[0]).join("").toUpperCase()||"L"}function y({icon:t,title:s,badge:r}){return e.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[t&&e.jsx(t,{className:"size-4 text-grisSubText",strokeWidth:2}),e.jsx("h3",{className:"font-dm text-sm font-semibold text-grisHeading",children:s}),r!=null&&e.jsx("span",{className:"ml-auto rounded-md bg-violet-50 px-1.5 py-0.5 font-jetbrains text-[11px] font-medium text-violetBlue dark:bg-violet-500/10",children:r})]})}function Gt(){var I,E,z,$;const{t}=j(),{data:s}=ee(),[r,n]=d.useState(!1),[o,l]=d.useState(null),c=Array.isArray(s==null?void 0:s.oportunity)?s.oportunity:[],p=Array.isArray(s==null?void 0:s.actions)?s.actions:[],m=Array.isArray(s==null?void 0:s.quotes)?s.quotes:[],H=`${(s==null?void 0:s.contact_name)||""} ${(s==null?void 0:s.contact_middle_name)||""} ${(s==null?void 0:s.contact_last_name)||""}`.replace(/\s+/g," ").trim(),A=((I=s==null?void 0:s.business_name)==null?void 0:I.trim())||H||"Lead",N=(z=(E=s==null?void 0:s.assigned)==null?void 0:E.name)==null?void 0:z.trim(),Q=i=>{l(i),n(!0)},O=[{icon:v,value:H},{icon:te,value:s==null?void 0:s.contact_email},{icon:ue,value:s==null?void 0:s.contact_phone,mono:!0},{icon:be,value:s==null?void 0:s.channel}].filter(i=>i.value);return e.jsxs(ne,{className:"gap-y-4",children:[e.jsx(le,{title:t("Información de lead"),showBar:!0,children:e.jsx(ye,{info:s})}),e.jsx(oe,{modal:r,setModal:n,id:o,setId:l,leadId:s==null?void 0:s.id}),e.jsxs("div",{className:"flex flex-col gap-y-4 px-6 pb-28",children:[e.jsxs("div",{className:"rounded-xl border border-blancoBox bg-surface p-4",children:[e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx("div",{className:"flex size-12 shrink-0 items-center justify-center rounded-xl bg-violet-50 font-dm text-base font-semibold text-violet-600 dark:bg-violet-500/10 dark:text-violet-300",children:_e(A)}),e.jsxs("div",{className:"min-w-0 flex-1",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("h2",{className:"line-clamp-2 font-dm text-base font-semibold text-grisHeading",children:A}),e.jsx(J,{meta:we(t)[s==null?void 0:s.status]})]}),e.jsx("span",{className:"mt-1 inline-flex items-center rounded-full bg-blancoForms px-2 py-0.5 font-dm text-[11px] font-medium text-grisText",children:(s==null?void 0:s.type)=="1"?t("Persona"):t("Empresa")})]})]}),O.length>0&&e.jsx("div",{className:"mt-4 flex flex-col gap-2.5 border-t border-blancoBox pt-4",children:O.map((i,f)=>{const a=i.icon;return e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx(a,{className:"size-4 shrink-0 text-grisSubText",strokeWidth:2}),e.jsx("span",{className:`line-clamp-1 ${i.mono?"font-jetbrains text-[12px]":"font-dm text-[13px]"} text-grisText`,children:i.value})]},f)})})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[e.jsxs("div",{className:"flex flex-col gap-0.5 rounded-xl border border-blancoBox bg-surface p-3",children:[e.jsx("span",{className:"font-dm text-lg font-bold text-grisHeading",children:c.length}),e.jsx("span",{className:"font-dm text-[11px] text-grisSubText",children:t("Oportunidades")})]}),e.jsxs("div",{className:"flex flex-col gap-0.5 rounded-xl border border-blancoBox bg-surface p-3",children:[e.jsxs("span",{className:"font-jetbrains text-base font-bold text-grisHeading",children:["$",(s==null?void 0:s.oportunity_total)||"0.00"]}),e.jsx("span",{className:"font-dm text-[11px] text-grisSubText",children:t("Valor total")})]}),e.jsxs("div",{className:"flex flex-col gap-0.5 rounded-xl border border-blancoBox bg-surface p-3",children:[e.jsx("span",{className:"font-dm text-lg font-bold text-grisHeading",children:m.length}),e.jsx("span",{className:"font-dm text-[11px] text-grisSubText",children:t("Cotizaciones")})]})]}),N&&e.jsxs("div",{className:"flex items-center justify-between rounded-xl border border-blancoBox bg-surface p-4",children:[e.jsx("span",{className:"font-dm text-xs font-semibold uppercase tracking-wider text-grisSubText",children:t("Agente")}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs(M,{className:"size-8",children:[e.jsx(V,{src:($=s==null?void 0:s.assigned)==null?void 0:$.img,title:N}),e.jsx(R,{className:"bg-blancoForms",children:e.jsx(v,{size:14,className:"text-grisSubText"})})]}),e.jsx("span",{className:"font-dm text-sm text-grisHeading",children:N})]})]}),e.jsxs("div",{children:[e.jsx(y,{icon:se,title:t("Oportunidades"),badge:c.length}),c.length>0?e.jsx("div",{className:"flex flex-col gap-2",children:c.map(i=>{var F,L;const f=U(t)[i==null?void 0:i.status]||U(t)[1],{progress:a,stepName:u,stepIndex:b,stepTotal:g}=ke(i);return e.jsxs("button",{type:"button",onClick:()=>
1Q(i.id),className:"flex w-full flex-col gap-2 rounded-xl border border-blancoBox bg-surface p-3 text-left transition-colors active:bg-blancoForms",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("span",{className:"line-clamp-1 font-dm text-sm font-semibold text-grisHeading",children:(i==null?void 0:i.description)||"—"}),e.jsx(J,{meta:f})]}),(i==null?void 0:i.sale_process)&&e.jsxs("span",{className:"inline-flex w-fit items-center gap-1 font-dm text-[12px] text-grisSubText",children:[e.jsx(he,{size:11,strokeWidth:2}),i.sale_process]}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsxs("div",{className:"flex items-center justify-between gap-2",children:[e.jsxs("span",{className:"line-clamp-1 font-dm text-[11px] font-medium text-grisHeading",children:[u,g>0&&e.jsx("span",{className:"ml-1 font-normal text-grisSubText",children:t("· Paso {{stepIndex}} de {{stepTotal}}",{stepIndex:b,stepTotal:g})})]}),e.jsxs("span",{className:"shrink-0 font-jetbrains text-[11px] font-medium text-grisText",children:[a,"%"]})]}),e.jsx("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-blancoForms",children:e.jsx("div",{className:`h-full rounded-full transition-all ${f.bar}`,style:{width:`${a}%`}})})]}),e.jsxs("div",{className:"flex items-center justify-between gap-2 pt-0.5",children:[e.jsx("span",{className:"font-dm text-[11px] text-grisSubText",children:((L=(F=i==null?void 0:i.assigned)==null?void 0:F.name)==null?void 0:L.trim())||t("Sin asignar")}),e.jsxs("span",{className:"font-jetbrains text-[12px] font-medium text-grisHeading",children:["$",ie(i==null?void 0:i.ammount)]})]})]},i.id)})}):e.jsx("p",{className:"rounded-xl border border-dashed border-blancoBox py-6 text-center font-dm text-[13px] text-grisDisabled",children:t("Sin oportunidades registradas")})]}),m.length>0&&e.jsxs("div",{children:[e.jsx(y,{icon:re,title:t("Cotizaciones"),badge:m.length}),e.jsx("div",{className:"flex flex-col gap-2",children:m.map(i=>e.jsxs("div",{className:"flex items-center justify-between gap-2 rounded-xl border border-blancoBox bg-surface p-3",children:[e.jsxs("div",{className:"flex min-w-0 flex-col",children:[e.jsx("span",{className:"font-jetbrains text-[13px] font-medium text-grisHeading",children:i==null?void 0:i.code}),e.jsx("span",{className:"font-dm text-[11px] text-grisSubText",children:i==null?void 0:i.created})]}),e.jsxs("span",{className:"shrink-0 font-jetbrains text-[13px] font-medium text-grisHeading",children:["$",i==null?void 0:i.total]})]},i.id))})]}),e.jsx(ce,{leadId:s==null?void 0:s.id}),e.jsxs("div",{children:[e.jsx(y,{icon:ae,title:t("Actividad reciente")}),p.length>0?e.jsx("div",{className:"flex flex-col gap-4",children:p.slice(0,3).map((i,f)=>e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx("span",{className:"font-dm text-[11px] font-medium uppercase tracking-wider text-grisSubText",children:i==null?void 0:i.date}),((i==null?void 0:i.actions)||[]).slice(0,5).map(a=>{var u,b;return e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsxs(M,{className:"size-9 shrink-0",children:[e.jsx(V,{src:(u=a==null?void 0:a.creator)==null?void 0:u.img,title:(b=a==null?void 0:a.creator)==null?void 0:b.name}),e.jsx(R,{className:"bg-blancoForms",children:e.jsx(v,{size:14,className:"text-grisSubText"})})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[e.jsxs("div",{className:"flex items-start justify-between gap-2",children:[e.jsx("span",{className:"font-dm text-[13px] font-semibold text-grisHeading",children:(a==null?void 0:a.stage)||t("Inicio")}),e.jsx("span",{className:"shrink-0 font-dm text-[10px] text-grisDisabled",children:a==null?void 0:a.created})]}),e.jsx("span",{className:"line-clamp-3 font-dm text-[12px] text-grisText",children:Se(a)}),(a==null?void 0:a.type)==1&&(a==null?void 0:a.size)>0&&e.jsx("div",{className:"mt-1 flex items-center gap-0.5",children:[1,2,3,4,5].map(g=>e.jsx(je,{size:12,strokeWidth:2,className:a.size>=g?"fill-amber-400 text-amber-400":"text-grisDisabled"},g))})]})]},a.id)})]},f))}):e.jsx("p",{className:"rounded-xl border border-dashed border-blancoBox py-6 text-center font-dm text-[13px] text-grisDisabled",children:t("No hay actividad registrada")})]})]})]})}async function Wt({params:t,request:s}){const r=await s.formData();switch(r.get("action")){case"edit-lead":return await W(r),P(`/crm-mobile/leads/${t.id}`);case"edit-status":return await W(r),P(`/crm-mobile/leads/${t.id}`);case"create-process-stage":return await ge(r),"201";case"edit-stage":return await pe(r),"201";case"destroy-stage":return await fe(r),"201";case"add-comment-lead":return await G(r),"201";case"action-lead":return await me(r),"201";case"convert-client":return await xe(r),"201";case"create-comment":return await G(r),"201"}}export{Wt as Action,Gt 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.