PageSourceSearch

https://yacrm.pro/assets/docs-shell-1ORg-jl-.js

js yacrm.pro collected 2026-10-02 02:07:05 UTC 11,634 bytes, 1 lines download raw bytes

1import{a as e}from"./chunk-Cyuzqnbw.js";import{t}from"./react-hOUQDXBo.js";import{t as n}from"./link-BTkVOA4a.js";import{t as r}from"./jsx-runtime-CXk3X59i.js";import{t as i}from"./arrow-left-LqpDJz-V.js";import{t as a}from"./chevron-down-DQfTy6Bs.js";import{t as o}from"./chevron-right-Jhkay5gx.js";import{t as s}from"./menu-ByltF1Lt.js";import{t as c}from"./search-ByWvdVk5.js";import{t as l}from"./x-2iFdWOTW.js";import{C as u,S as d,b as f,f as p,g as m,m as h,p as g,w as _,x as v,y}from"./index-BYCWBBLg.js";var b=e(t(),1),x=r();function S({activeSlug:e,isDark:t,isMobileOpen:r,onCloseMobile:i}){let[o,s]=(0,b.useState)(()=>{let t=p.find(t=>t.slug===e),n={};for(let e of m())n[e.id]=t?.category===e.id;return t||(n[m()[0].id]=!0),n}),[u,d]=(0,b.useState)(``),f=(0,b.useMemo)(()=>{if(!u.trim())return m();let e=u.toLowerCase();return m().filter(t=>{let n=h(t.id);return t.label.toLowerCase().includes(e)||n.some(t=>t.title.toLowerCase().includes(e)||t.description.toLowerCase().includes(e))})},[u]),g=`border-border`,_=t?`bg-[#151515]`:`bg-card`,v=(0,x.jsxs)(`div`,{className:`flex flex-col h-full min-h-0`,children:[(0,x.jsx)(`div`,{className:`p-4`,children:(0,x.jsxs)(`div`,{className:`flex items-center gap-2 rounded-xl border ${g} px-3 py-2 ${_} shadow-sm`,children:[(0,x.jsx)(c,{className:`w-4 h-4 flex-shrink-0`,"aria-hidden":`true`}),(0,x.jsx)(`input`,{type:`text`,placeholder:`Buscar…`,value:u,onChange:e=>d(e.target.value),className:`bg-transparent outline-none flex-1 text-sm font-medium placeholder:text-muted-foreground`,"aria-label":`Buscar en la documentación`}),u&&(0,x.jsx)(`button`,{type:`button`,onClick:()=>d(``),className:`hover:opacity-70`,"aria-label":`Limpiar búsqueda`,children:(0,x.jsx)(l,{className:`w-3.5 h-3.5`})})]})}),(0,x.jsx)(`nav`,{className:`flex-1 overflow-y-auto px-3 pb-6 space-y-2`,children:f.map(t=>{let r=h(t.id).filter(e=>{if(!u.trim())return!0;let t=u.toLowerCase();return e.title.toLowerCase().includes(t)||e.description.toLowerCase().includes(t)}),c=o[t.id]||!!u.trim();return(0,x.jsxs)(`div`,{children:[(0,x.jsxs)(`button`,{type:`button`,onClick:()=>s(e=>({...e,[t.id]:!e[t.id]})),className:`w-full flex items-center gap-2 rounded-xl border ${g} px-3 py-2 font-bold uppercase tracking-widest text-[11px] transition-all ${r.some(t=>t.slug===e)?`bg-primary text-primary-foreground shadow-sm`:`${_} hover:-translate-y-0.5 hover:shadow-md`}`,children:[(0,x.jsx)(`span`,{className:`text-base leading-none`,"aria-hidden":`true`,children:t.icon}),(0,x.jsx)(`span`,{className:`flex-1 text-left`,children:t.label}),(0,x.jsx)(a,{className:`w-4 h-4 transition-transform duration-200 ${c?`rotate-180`:``}`,"aria-hidden":`true`})]}),c&&r.length>0&&(0,x.jsx)(`ul`,{className:`mt-1 ml-3 border-l-2 ${g} pl-2 space-y-0.5`,children:r.map(t=>{let r=t.slug===e;return(0,x.jsx)(`li`,{children:(0,x.jsxs)(n,{to:`/docs/$slug`,params:{slug:t.slug},onClick:i,"aria-current":r?`page`:void 0,className:`block rounded-r-lg px-2.5 py-1.5 text-[13px] font-semibold leading-snug transition-colors ${r?`bg-primary text-primary-foreground border-l-2 border-primary -ml-[10px] pl-[14px]`:`hover:bg-primary/20`}`,children:[(0,x.jsx)(`span`,{className:`mr-1.5`,"aria-hidden":`true`,children:t.icon}),t.title]})},t.slug)})})]},t.id)})})]});return(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(`aside`,{className:`hidden lg:flex flex-col w-[280px] flex-shrink-0 sticky top-24 h-[calc(100vh-6rem)] rounded-2xl border ${g} ${_} shadow-sm`,children:v}),r&&(0,x.jsxs)(`div`,{className:`fixed inset-0 z-[70] lg:hidden`,children:[(0,x.jsx)(`div`,{className:`absolute inset-0 bg-black/60`,onClick:i,"aria-hidden":`true`}),(0,x.jsxs)(`aside`,{id:`docs-mobile-drawer`,role:`dialog`,"aria-modal":`true`,"aria-label":`Índice de documentación`,className:`absolute left-0 top-0 bottom-0 w-[300px] flex flex-col border-r ${g} ${_}`,children:[(0,x.jsxs)(`div`,{className:`flex items-center justify-between border-b ${g} px-4 py-3`,children:[(0,x.jsx)(`p`,{className:`font-display text-base font-extrabold tracking-tight`,children:`Documentación`}),(0,x.jsx)(`button`,{type:`button`,onClick:i,className:`rounded-lg bg-primary p-1.5 text-primary-foreground shadow-sm`,"aria-label":`Cerrar`,children:(0,x.jsx)(l,{className:`w-4 h-4`})})]}),v]})]})]})}function C({sections:e,activeSection:t,onSelect:n,isDark:r}){if(e.length<=1)return null;let i=`border-border`;return(0,x.jsx)(`aside`,{className:`hidden xl:block w-[220px] flex-shrink-0 pt-8 pr-4`,children:(0,x.jsxs)(`div`,{className:`sticky top-[6.5rem]`,children:[(0,x.jsx)(`p`,{className:`text-[11px] font-black uppercase tracking-[0.25em] text-muted-foreground mb-3`,children:`En esta página`}),(0,x.jsx)(`nav`,{className:`overflow-hidden rounded-xl border ${i} ${r?`bg-[#151515] shadow-lg`:`bg-card shadow-sm`} divide-y ${i}`,children:e.map(e=>{let r=e.id===t;return(0,x.jsxs)(`button`,{type:`button`,onClick:()=>n(e.id),"aria-current":r?`location`:void 0,className:`group relative w-full text-left px-3 py-2 text-[13px] font-bold leading-snug transition-colors ${r?`bg-primary text-primary-foreground`:`hover:bg-primary/20`}`,children:[r&&(0,x.jsx)(`span`,{"aria-hidden":`true`,className:`absolute left-0 top-0 bottom-0 w-1 bg-[hsl(var(--landing-ink))]`}),(0,x.jsx)(`span`,{className:`pl-1.5`,children:e.title})]},e.id)})})]})})}function w({article:e,isDark:t}){let[r,i]=(0,b.useState)(e.sections[0]?.id??``),a=g.find(t=>
1t.id===e.category);(0,b.useEffect)(()=>{i(e.sections[0]?.id??``),window.scrollTo({top:0,behavior:`instant`})},[e.slug,e.sections]),(0,b.useEffect)(()=>{let t=e.sections.map(e=>document.getElementById(`doc-section-${e.id}`)).filter(e=>e!==null);if(t.length===0)return;let n=new Map,a=new IntersectionObserver(e=>{for(let t of e){let e=t.target.id.replace(/^doc-section-/,``);n.set(e,t.isIntersecting?t.intersectionRatio:0)}let t=r,a=0;n.forEach((e,n)=>{e>a&&(a=e,t=n)}),a>0&&i(t)},{rootMargin:`-25% 0px -60% 0px`,threshold:[0,.25,.5,.75,1]});return t.forEach(e=>a.observe(e)),()=>a.disconnect()},[e.slug]);let s=(0,b.useCallback)(e=>{let t=document.getElementById(`doc-section-${e}`);t&&(t.scrollIntoView({behavior:`smooth`,block:`start`}),i(e))},[]),c=`border-border`,l=t?`bg-[#151515]`:`bg-card`;return(0,x.jsxs)(`div`,{className:`flex flex-1 min-w-0`,children:[(0,x.jsxs)(`article`,{className:`flex-1 min-w-0 max-w-[820px] px-4 sm:px-6 lg:px-10 py-8 lg:py-10`,children:[(0,x.jsxs)(`nav`,{"aria-label":`Breadcrumb`,className:`flex items-center gap-1.5 text-[11px] font-bold uppercase tracking-[0.2em] text-muted-foreground mb-6`,children:[(0,x.jsx)(n,{to:`/docs`,className:`hover:text-foreground`,children:`Docs`}),(0,x.jsx)(o,{className:`w-3 h-3`,"aria-hidden":`true`}),(0,x.jsxs)(`span`,{children:[(0,x.jsxs)(`span`,{"aria-hidden":`true`,children:[a?.icon,` `]}),a?.label]}),(0,x.jsx)(o,{className:`w-3 h-3`,"aria-hidden":`true`}),(0,x.jsx)(`span`,{className:`text-foreground`,children:e.title})]}),(0,x.jsxs)(`header`,{className:`mb-8`,children:[(0,x.jsxs)(`h1`,{className:`font-display font-extrabold uppercase leading-[0.95] tracking-tight text-3xl sm:text-4xl md:text-5xl`,children:[(0,x.jsx)(`span`,{className:`mr-3`,"aria-hidden":`true`,children:e.icon}),e.title]}),(0,x.jsx)(`p`,{className:`mt-4 text-base font-medium text-muted-foreground max-w-2xl leading-relaxed`,children:e.description})]}),(0,x.jsx)(`div`,{className:`space-y-8`,children:e.sections.map((e,t)=>(0,x.jsxs)(`section`,{id:`doc-section-${e.id}`,className:`scroll-mt-32`,children:[(0,x.jsxs)(`h2`,{className:`font-display font-extrabold uppercase leading-tight text-xl sm:text-2xl mb-4 flex items-start gap-3`,children:[(0,x.jsx)(`span`,{"aria-hidden":`true`,className:`mt-1 grid w-7 h-7 shrink-0 place-items-center rounded-lg bg-primary text-xs font-bold text-primary-foreground`,children:String(t+1).padStart(2,`0`)}),(0,x.jsx)(`span`,{children:e.title})]}),(0,x.jsx)(`div`,{className:`rounded-2xl border ${c} ${l} p-5 shadow-sm md:p-6`,children:(0,x.jsx)(`div`,{className:`docs-prose`,dangerouslySetInnerHTML:{__html:e.content}})})]},e.id))}),(0,x.jsx)(`div`,{className:`mt-12 pt-6 border-t-2 ${c}`,children:(0,x.jsx)(`p`,{className:`text-xs font-black uppercase tracking-widest text-muted-foreground`,children:`¿Necesitás más ayuda? Escribinos por WhatsApp y te asistimos.`})})]}),(0,x.jsx)(C,{sections:e.sections,activeSection:r,onSelect:s,isDark:t})]})}function T({article:e}){let{isDark:t,toggleTheme:r}=y(),[a,o]=(0,b.useState)(!1),c=t?`bg-background`:`bg-[#fbfaf4]`,l=t?`text-white`:`text-foreground`,p=`border-border`;return(0,x.jsxs)(`div`,{className:`min-h-screen overflow-x-clip transition-colors duration-300 ${c} ${l}`,children:[(0,x.jsx)(_,{isDark:t,onToggleTheme:r}),!a&&(0,x.jsx)(`button`,{type:`button`,onClick:()=>o(!0),className:`lg:hidden fixed top-24 left-4 z-40 rounded-xl border ${p} bg-primary p-2.5 text-primary-foreground shadow-md`,"aria-label":`Abrir índice de documentación`,"aria-expanded":a,"aria-controls":`docs-mobile-drawer`,children:(0,x.jsx)(s,{className:`w-5 h-5`})}),(0,x.jsx)(`div`,{className:`relative z-10 pt-28 md:pt-32 pb-16 px-4 md:px-8`,children:(0,x.jsxs)(`div`,{className:`mx-auto w-full max-w-[1400px] flex gap-6 lg:gap-10 items-start`,children:[(0,x.jsx)(S,{activeSlug:e.slug,isDark:t,isMobileOpen:a,onCloseMobile:()=>o(!1)}),(0,x.jsxs)(`main`,{className:`flex-1 min-w-0`,children:[(0,x.jsxs)(n,{to:`/`,className:`inline-flex items-center gap-2 mb-6 rounded-xl border ${p} bg-card px-3 py-2 text-xs font-bold uppercase tracking-widest text-foreground shadow-sm transition-all hover:-translate-y-0.5 hover:border-primary/60`,children:[(0,x.jsx)(i,{className:`size-4`,"aria-hidden":`true`}
1),` Volver al inicio`]}),(0,x.jsx)(w,{article:e,isDark:t})]})]})}),(0,x.jsxs)(`footer`,{role:`contentinfo`,className:`relative z-10 bg-[hsl(var(--landing-ink))] text-foreground pt-10 pb-8 px-5 border-t border-primary/40`,children:[(0,x.jsxs)(`div`,{className:`max-w-[1400px] mx-auto flex flex-col md:flex-row justify-between gap-8 border-b border-gray-800 pb-8`,children:[(0,x.jsxs)(`div`,{className:`flex flex-col gap-4 md:max-w-[320px]`,children:[(0,x.jsx)(n,{to:`/`,"aria-label":`Ya!CRM, inicio`,className:`hover:opacity-80 transition-opacity`,children:(0,x.jsx)(v,{size:`md`,variant:`dark`})}),(0,x.jsx)(`p`,{className:`text-[13px] text-gray-400 leading-relaxed`,children:`CRM omnicanal para vendedores de Mercado Libre y WhatsApp. Multi-tenant, con IA que nunca alucina.`}),(0,x.jsx)(f,{variant:`footer`})]}),(0,x.jsxs)(`div`,{className:`flex flex-col gap-3 text-sm`,children:[(0,x.jsx)(`p`,{className:`font-bold text-white uppercase tracking-wider text-xs`,children:`Producto`}),(0,x.jsx)(n,{to:`/`,className:`text-gray-400 hover:text-white transition-colors`,children:`Inicio`}),(0,x.jsx)(n,{to:`/blog`,className:`text-gray-400 hover:text-white transition-colors`,children:`Blog`}),(0,x.jsx)(n,{to:`/docs`,className:`text-gray-400 hover:text-white transition-colors`,children:`Docs`})]}),(0,x.jsxs)(`div`,{className:`flex flex-col gap-3 text-sm`,children:[(0,x.jsx)(`p`,{className:`font-bold text-white uppercase tracking-wider text-xs`,children:`Legal`}),(0,x.jsx)(n,{to:`/privacidad`,className:`text-gray-400 hover:text-white transition-colors`,children:`Privacidad`}),(0,x.jsx)(n,{to:`/eliminacion-datos`,className:`text-gray-400 hover:text-white transition-colors`,children:`Eliminación de datos`}),(0,x.jsx)(n,{to:`/auth`,className:`text-gray-400 hover:text-white transition-colors`,children:`Iniciar sesión`})]})]}),(0,x.jsxs)(`div`,{className:`max-w-[1400px] mx-auto pt-6 text-center text-xs text-gray-500`,children:[`© `,new Date().getFullYear(),` Ya!CRM · Docs`]})]}),(0,x.jsx)(u,{}),(0,x.jsx)(d,{})]})}export{T as t};

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.