PageSourceSearch

https://brainhi.com/assets/IndustryHomepage-CVVisjPa.js

js brainhi.com collected 2026-10-03 21:19:05 UTC 12,366 bytes, 9 lines download raw bytes

1import{b as A,r as c,j as e,m as h,L as D,A as z}from"./index-DM27Y-qo.js";import{h as H,a as L,L as W,l as _,S as O,P as V,A as q,R as G}from"./StackedReveal-CwifIeqG.js";import{u as I,a as K,S as R,h as U,s as Y,b as J,T as Q}from"./TestimonialsSection-VoRVCF8t.js";import{H as X,P as Z}from"./phone-call-D8S9PRoM.js";import{M as ee,S as se,P as te}from"./sliders-horizontal-QoZTAcWe.js";import{M as $}from"./message-square-BzcJIbti.js";import{C as ae}from"./clock-DKoMRnN0.js";import{C as le}from"./calendar-BVUJIRqg.js";import{S as ne}from"./search-Dc5gDSWP.js";import{C as ie}from"./maricelly-vazquez-Dl6_eF6d.js";import{I as re}from"./image-tRuXS4IF.js";import{S as oe}from"./send-Bs4IL1oE.js";function ce({industry:i}){const{t:g,getTranslations:u}=A(),r=u().home.hero[i],n=r.rotatingPhrases??[],v=I(),m=n[0]??"",E=n.reduce((o,s)=>s.length>o.length?s:o,m),[x,j]=c.useState(0),[N,b]=c.useState(m),[k,y]=c.useState(!1);c.useEffect(()=>{j(0),b(m)},[m]),c.useEffect(()=>{if(v||n.length<2)return;y(!0);let o,s=!1,l=0,t=n[0].length,f=!0;const B=()=>{if(s)return;const T=n[l];let w=55;f?(t-=1,w=25,t<=0&&(t=0,f=!1,l=(l+1)%n.length,w=300)):(t+=1,t>=T.length&&(t=T.length,f=!0,w=2200)),j(l),b(n[l].slice(0,t)),o=setTimeout(B,w)};return o=setTimeout(B,2200),()=>{s=!0,clearTimeout(o),y(!1)}},[v,n]);const C=n[x]??m;return e.jsxs("section",{className:"relative overflow-hidden pt-28 sm:pt-32 pb-12 sm:pb-16",style:{backgroundColor:"#3D5D98"},children:[e.jsx("style",{children:`
2        @keyframes cursor-blink {
3          0%, 100% { opacity: 1; }
4          50% { opacity: 0; }
5        }
6        .cursor-blink {
7          animation: cursor-blink 1s steps(1) infinite;
8        }
9      `}),e.jsx("video",{src:H.url,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata","aria-hidden":"true",className:"absolute inset-0 w-full h-full object-cover object-center sm:hidden"},"hero-reel-mobile"),e.jsx("video",{src:L.url,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata","aria-hidden":"true",className:"absolute inset-0 w-full h-full object-cover object-center hidden sm:block"},"hero-desktop"),e.jsx("div",{className:"absolute inset-0","aria-hidden":"true",style:{background:"linear-gradient(90deg, rgba(61,93,152,0.62) 0%, rgba(61,93,152,0.38) 55%, rgba(61,93,152,0.12) 100%)"}}),e.jsx("div",{className:"relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:e.jsxs("div",{className:"grid lg:grid-cols-2 gap-4 lg:gap-12 items-center",children:[e.jsxs(h.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{duration:.6},className:"order-first lg:order-first min-w-0",children:[e.jsxs("h1",{className:"text-[clamp(1.55rem,7vw,2rem)] sm:text-4xl md:text-4xl lg:text-[2rem] xl:text-5xl text-white font-bold tracking-tight leading-tight",style:{fontFamily:"Montserrat, -apple-system, sans-serif"},children:[e.jsxs("span",{className:"block whitespace-nowrap",children:[r.rotatingPrefix," ",e.jsx("span",{className:"hidden md:inline",children:r.rotatingConnector})]}),e.jsxs("span",{className:"relative grid min-h-[1.2em]",children:[e.jsxs("span",{className:"invisible col-start-1 row-start-1","aria-hidden":"true",children:[e.jsxs("span",{className:"md:hidden",children:[r.rotatingConnector," "]}),e.jsxs("span",{className:"hidden md:inline",children:[r.rotatingConnector," "]}),E]}),e.jsxs("span",{className:"col-start-1 row-start-1","aria-hidden":"true",children:[e.jsxs("span",{className:"md:hidden",children:[r.rotatingConnector," "]}),N,k&&e.jsx("span",{className:"inline-block font-normal cursor-blink",children:"|"})]}),e.jsx("span",{className:"sr-only",children:`${r.rotatingConnector} ${C}`})]})]}),e.jsx("p",{className:"mt-5 text-base sm:text-lg lg:text-xl text-white/90 max-w-xl leading-relaxed",children:r.description}),e.jsx("div",{className:"mt-5 lg:mt-7 flex flex-col sm:flex-row gap-3",children:e.jsx(D,{to:"/demorequest",className:"inline-flex items-center justify-center px-7 py-3.5 rounded-lg text-base sm:text-lg font-medium text-white shadow-lg transition-opacity hover:opacity-90 min-h-[48px]",style:{backgroundColor:"#14DF89"},children:g("common.cta.requestDemo")})})]}),e.jsx(h.div,{initial:{opacity:0,x:20}
9,animate:{opacity:1,x:0},transition:{duration:.6,delay:.15},className:"order-last lg:order-last min-w-0",children:e.jsx(W,{industry:i})})]})})]})}const de="/__l5e/assets-v1/803111fc-08b3-42ec-b3c0-9e01d4353f35/brainhi-logo-white-green.png",xe={url:de},me="#20304F",p="#3D5D98",M="#F1F4F9",d="#E3E8F4",pe="#F7F9FC",he="#D3DBEA",S="#1F2A4A",P=1100,F=712,ue=4500;function fe({industry:i,className:g=""}){const{getTranslations:u}=A(),a=u().home.conversationsInbox,r=a[i],n=r.conversations,v=[{icon:X,label:a.nav.home},{icon:ee,label:a.nav.requests},{icon:$,label:a.nav.conversations,active:!0},{icon:Z,label:a.nav.calls},{icon:ae,label:a.nav.queue},{icon:le,label:a.nav.appointments}],m=[{label:a.tabs.pending,count:"24",active:!0},{label:a.tabs.all,count:"1,179"},{label:a.tabs.closed,count:"1,108"}],x=!!I(),[j,N]=c.useState(0);c.useEffect(()=>{if(x)return;const s=window.setInterval(()=>{N(l=>(l+1)%n.length)},ue);return()=>window.clearInterval(s)},[x,n.length]),c.useEffect(()=>{N(0)},[i,n.length]);const b=c.useRef(null),k=c.useRef(null),[y,C]=c.useState(1);c.useEffect(()=>{const s=b.current;if(!s)return;const l=()=>{const f=s.clientWidth;f>0&&C(Math.min(1,f/P))};l();const t=new ResizeObserver(l);return t.observe(s),()=>t.disconnect()},[]);const o=n[Math.min(j,n.length-1)];return e.jsx("div",{ref:b,className:`w-full min-w-0 flex justify-center items-start ${g}`,style:{height:F*y},"aria-hidden":"true",children:e.jsxs("div",{ref:k,className:"flex overflow-hidden rounded-2xl bg-white",style:{width:P,height:F,flexShrink:0,maxWidth:"none",transform:`scale(${y})`,transformOrigin:"top center",border:`1px solid ${d}`,boxShadow:"0 34px 80px -24px rgba(6, 14, 34, 0.55)",textAlign:"left"},children:[e.jsxs("div",{className:"w-[248px] shrink-0 px-5 py-6",style:{backgroundColor:me},children:[e.jsx("img",{src:xe.url,alt:a.brand,className:"h-[30px] w-auto object-contain"}),e.jsx("div",{className:"mt-5 rounded-full px-4 py-2 text-[17px] font-medium text-white truncate",style:{backgroundColor:"rgba(255,255,255,0.12)"},children:r.account}),e.jsx("div",{className:"mt-6 flex flex-col gap-1.5",children:v.map(({icon:s,label:l,active:t})=>e.jsxs("div",{className:"flex items-center gap-3 rounded-lg px-3.5 py-2.5 text-[18px]",style:t?{backgroundColor:p,color:"#fff",fontWeight:600}:{color:"rgba(255,255,255,0.7)"},children:[e.jsx(s,{size:23,strokeWidth:2}),e.jsx("span",{className:"truncate",children:l})]},l))})]}),e.jsxs("div",{className:"w-[352px] shrink-0",style:{backgroundColor:pe,borderRight:`2px solid ${he}`},children:[e.jsx("div",{className:"flex h-[44px] items-end gap-4 px-4",style:{borderBottom:`1px solid ${d}`},children:m.map(s=>e.jsxs("div",{className:"flex items-center gap-1.5 pb-2 text-[15px]",style:s.active?{color:p,fontWeight:600,borderBottom:`2px solid ${p}`,marginBottom:"-1px"}:{color:"#7B879C"},children:[e.jsx("span",{className:"whitespace-nowrap",children:s.label}),e.jsx("span",{className:"rounded-full px-1.5 py-[1px] text-[13px] font-semibold",style:{backgroundColor:"#E7ECF5",color:"#6B7789"},children:s.count})]},s.label))}),e.jsxs("div",{className:"flex h-[42px] items-center gap-2 px-4",style:{borderBottom:`1px solid ${d}`},children:[e.jsxs("div",{className:"flex flex-1 items-center gap-2 rounded-lg bg-white px-3 py-1.5",style:{border:`1px solid ${d}`},children:[e.jsx(ne,{size:18,color:"#9AA3B2"}),e.jsx("span",{className:"text-[17px] text-gray-400",children:a.searchPlaceholder})]}),e.jsx("div",{className:"flex h-[32px] w-[32px] items-center justify-center rounded-lg bg-white",style:{border:`1px solid ${d}`},children:e.jsx(se,{size:18,color:"#9AA3B2"})})]}),e.jsx("div",{children:n.map((s,l)=>{const t=l===j;return e.jsxs("div",{className:"px-4 py-5 transition-colors",style:{backgroundColor:t?"#fff":"transparent",borderBottom:`1px solid ${d}`,borderLeft:`3px solid ${t?p:"transparent"}`},children:[e.jsxs("div",{className:"flex items-baseline justify-between gap-2",children:[e.jsx("span",{className:"text-[19px] font-semibold truncate",style:{color:S},children:s.name}),e.jsx("span",{className:"shrink-0 text-[16px] italic text-gray-400",children:s.time})]}),e.jsxs("div",{className:"mt-1 flex items-center gap-2",children:[e.jsx("span",{className:"min-w-0 flex-1 truncate text-[17px] text-gray-500",children:s.preview}),s.unread&&e.jsx("span",{className:"shrink-0 rounded-full px-2 py-0.5 text-[14px] font-bold tracking-wide text-white",style:{backgroundColor:p},children:a.newBadge})]})]},s.name)})})]}),e.jsxs("div",{className:"flex min-w-0 flex-1 flex-col bg-white",children:[e.jsxs("div",{className:"flex h-[86px] shrink-0 flex-col justify-center px-6",style:{borderBottom:`1px solid ${d}`},children:[e.jsx("div",{className:"text-[24px] font-semibold truncate",style:{color:S},children:o.name}),e.jsx("div",{className:"mt-0.5 text-[17px] text-gray-500",children:o.phone})]}),e.jsx("div",{className:"flex min-h-0 flex-1 flex-col justify-end overflow-hidden px-6 py-5",children:e.jsx(z,{mode:"wait",initial:!1,children:e.jsx(h.div,{initial:x?!1:{opacity:0}
9,animate:{opacity:1},exit:x?void 0:{opacity:0},transition:{duration:.3},className:"flex flex-col gap-4",children:o.messages.map((s,l)=>{const t=s.from==="lara";return e.jsxs(h.div,{initial:x?!1:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.35,delay:x?0:.12+l*.14},className:`flex items-end gap-2.5 ${t?"justify-end":"justify-start"}`,children:[!t&&e.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-full text-[16px] font-semibold",style:{backgroundColor:M,color:p},children:o.initials}),e.jsxs("div",{className:`max-w-[78%] ${t?"text-right":"text-left"}`,children:[e.jsx("div",{className:"rounded-2xl px-4 py-3 text-[18px] leading-snug",style:t?{backgroundColor:p,color:"#fff"}:{backgroundColor:M,color:S},children:s.text}),e.jsxs("div",{className:`mt-1 flex items-center gap-1 text-[16px] text-gray-400 ${t?"justify-end":"justify-start"}`,children:[e.jsx("span",{children:s.time}),e.jsx(ie,{size:16})]})]}),t&&e.jsx("img",{src:_,alt:"","aria-hidden":"true",className:"h-11 w-11 shrink-0 rounded-full object-contain"})]},l)})},o.name)})}),e.jsxs("div",{className:"shrink-0 px-6 py-5 text-left",style:{borderTop:`1px solid ${d}`},children:[e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsxs("div",{className:"flex items-center gap-5",style:{color:"#9AA3B2"},children:[e.jsx($,{size:22}),e.jsx(re,{size:22}),e.jsx(te,{size:22})]}),e.jsxs("div",{className:"flex items-center gap-2.5",children:[e.jsx("span",{className:"text-[16px] text-gray-500",children:a.internalNote}),e.jsx("div",{className:"flex h-[24px] w-[44px] items-center rounded-full px-[3px]",style:{backgroundColor:"#D4DAE8"},children:e.jsx("div",{className:"h-[18px] w-[18px] rounded-full bg-white"})})]})]}),e.jsx("div",{className:"mt-4 h-[96px] rounded-lg px-4 py-3 text-left text-[17px] text-gray-400",style:{border:`1px solid ${d}`},children:a.composerPlaceholder}),e.jsxs("div",{className:"mt-3 flex items-center justify-end gap-4",children:[e.jsx("span",{className:"text-[16px] text-gray-400",children:"0"}),e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-lg px-5 py-2.5 text-[17px] font-medium",style:{backgroundColor:d,color:"#9AA3B2"},children:[e.jsx(oe,{size:18}),e.jsx("span",{children:a.send})]})]})]})]})]})})}function ge({industry:i}){const{getTranslations:g}=A(),u=g().home.conversationsShowcase,a=I(),r=K();return e.jsx("section",{className:"py-16 sm:py-20 lg:py-24 bg-white","aria-label":u.title,children:e.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[e.jsx(h.h2,{...U(a),viewport:R,className:"text-2xl sm:text-3xl lg:text-4xl font-bold text-center",style:{color:"#1F2A4A",fontFamily:"Montserrat, -apple-system, sans-serif"},children:u.title}),e.jsx(h.div,{variants:J(a),initial:r?"hidden":!1,whileInView:"visible",viewport:R,className:"mt-10 sm:mt-12",children:e.jsx(h.div,{variants:Y(a),className:"mx-auto w-full max-w-[900px]",children:e.jsx(fe,{industry:i})})})]})})}function Be({industry:i}){return e.jsxs(e.Fragment,{children:[e.jsx(ce,{industry:i}),e.jsx(ge,{industry:i}),e.jsx(O,{base:e.jsx(Q,{industry:i}),overlay:e.jsx(V,{industry:i})}),e.jsx(q,{}),e.jsx(G,{industry:i})]})}export{Be as I};

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.