PageSourceSearch

https://viar.si/assets/index-BU-0yoFR.js

js viar.si collected 2026-10-05 11:04:46 UTC 11,455 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/NeuralNetworkCanvas-0mTIhmya.js","assets/index-DLLZWH4o.js","assets/HeroAtmosphere-HC_z7MRs.js"])))=>i.map(i=>d[i]);
2import{c as h,r as l,j as e,C as $,u as j,a as _,_ as w}from"./index-DLLZWH4o.js";import{P as A}from"./PrimaryButton-De8NVB_E.js";import{R as c}from"./Reveal-DnkWPa8E.js";const z=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],F=h("building-2",z);const I=[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M16 16h.01",key:"1f9h7w"}],["path",{d:"M3 19a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a.5.5 0 0 0-.769-.422l-4.462 2.844A.5.5 0 0 1 15 10.5v-2a.5.5 0 0 0-.769-.422L9.77 10.922A.5.5 0 0 1 9 10.5V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z",key:"1iv0i2"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],H=h("factory",I);const R=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],S=h("rocket",R);const V=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],L=h("shield-check",V);function P({words:t,intervalMs:a=2600,className:s=""}){const[r,n]=l.useState(0),[i,o]=l.useState("in");return l.useEffect(()=>{if(t.length<=1)return;let d;const x=setInterval(()=>{o("out"),d=setTimeout(()=>{n(m=>(m+1)%t.length),o("in")},380)},a);return()=>{clearInterval(x),clearTimeout(d)}},[t.length,a]),e.jsx("span",{className:`inline-block ${i==="in"?"viar-rotate-in":"viar-rotate-out"} ${s}`,children:t[r]},`${r}-${i}`)}function T({label:t}){return e.jsxs("div",{className:"pointer-events-none absolute inset-x-0 bottom-8 z-20 flex flex-col items-center gap-1 text-muted-foreground",children:[e.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.3em]",children:t}),e.jsx($,{size:18,className:"viar-scroll-cue text-primary"})]})}function D(){const{t}=j(),a=[{icon:H,title:t("why_1_title"),body:t("why_1_body")},{icon:S,title:t("why_2_title"),body:t("why_2_body")},{icon:F,title:t("why_3_title"),body:t("why_3_body")},{icon:L,title:t("why_4_title"),body:t("why_4_body")}];return e.jsxs("section",{className:"mx-auto max-w-[1200px] px-6 py-24 md:py-28",children:[e.jsxs(c,{children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-primary",children:t("why_kicker")}),e.jsx("h2",{className:"mt-3 text-3xl font-bold text-foreground sm:text-4xl md:text-5xl",children:t("why_heading")}),e.jsx("div",{className:"mt-4 h-1 w-20 bg-primary"})]}),e.jsx("div",{className:"mt-12 grid gap-5 sm:grid-cols-2 lg:grid-cols-4",children:a.map((s,r)=>e.jsx(c,{children:e.jsx(q,{...s,delay:r*60})},s.title))})]})}function q({icon:t,title:a,body:s,delay:r=0}){const{ref:n,onMouseMove:i,onMouseLeave:o}=_();return e.jsxs("div",{ref:n,onMouseMove:i,onMouseLeave:o,className:"group relative h-full overflow-hidden rounded-2xl border border-border bg-card/70 p-6 backdrop-blur transition-[transform,border-color,box-shadow] duration-300 ease-out hover:border-primary/40 hover:shadow-[0_20px_60px_-25px_rgba(209,206,39,0.45)] will-change-transform",style:{animationDelay:`${r}ms`},children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -right-12 -top-12 h-40 w-40 rounded-full bg-primary/10 opacity-0 blur-3xl transition-opacity duration-500 group-hover:opacity-100"}),e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"inline-flex h-11 w-11 items-center justify-center rounded-xl border border-primary/30 bg-primary/10 text-primary",children:e.jsx(t,{size:20})}),e.jsx("h3",{className:"mt-5 text-lg font-bold text-foreground",children:a}),e.jsx("p",{className:"mt-2 text-sm leading-relaxed text-muted-foreground",children:s})]})]})}function O(){const[t,a]=l.useState(0);l.useEffect(()=>{if(typeof window>"u"||window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;let n=0;const i=()=>{n||(n=requestAnimationFrame(()=>{a(window.scrollY),n=0}))};return window.addEventListener("scroll",i,{passive:!0}),i(),()=>{window.removeEventListener("scroll",i),n&&cancelAnimationFrame(n)}},[]);const s=Math.min(1,t/600);return{opacity:1-s*.9,transform:`translate3d(0, ${-s*60}
2px, 0)`,willChange:"opacity, transform"}}function B(t){const a=t.match(/^(\D*)([\d.,]+)(.*)$/);if(!a)return null;const[,s,r,n]=a,i=r.includes(","),o=r.replace(/,/g,""),d=Number(o);if(!Number.isFinite(d))return null;const x=o.includes(".")?o.split(".")[1].length:0;return{prefix:s,num:d,suffix:n,hasComma:i,decimals:x}}function g(t,a,s){const r=t.toFixed(s);if(!a)return r;const[n,i]=r.split("."),o=n.replace(/\B(?=(\d{3})+(?!\d))/g,",");return i?`${o}.${i}`:o}function W({value:t,className:a,duration:s=1200}){const r=B(t),n=l.useRef(null),[i,o]=l.useState(r?`${r.prefix}${g(0,r.hasComma,r.decimals)}${r.suffix}`:t);return l.useEffect(()=>{if(!r)return;const d=n.current;if(!d)return;if(typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches){o(t);return}let m=0,f=!1;const u=new IntersectionObserver(([N])=>{if(!N.isIntersecting||f)return;f=!0;const k=performance.now(),y=M=>{const b=Math.min(1,(M-k)/s),C=1-Math.pow(1-b,3),E=r.num*C;o(`${r.prefix}${g(E,r.hasComma,r.decimals)}${r.suffix}`),b<1&&(m=requestAnimationFrame(y))};m=requestAnimationFrame(y),u.disconnect()},{threshold:.4});return u.observe(d),()=>{u.disconnect(),cancelAnimationFrame(m)}},[t,s]),r?e.jsx("span",{ref:n,className:a,children:i}):e.jsx("span",{className:a,children:t})}const Y=l.lazy(()=>w(()=>import("./NeuralNetworkCanvas-0mTIhmya.js"),__vite__mapDeps([0,1])).then(t=>({default:t.NeuralNetworkCanvas}))),U=l.lazy(()=>w(()=>import("./HeroAtmosphere-HC_z7MRs.js"),__vite__mapDeps([2,1])).then(t=>({default:t.HeroAtmosphere})));function G(){const[t,a]=l.useState(!1);return l.useEffect(()=>{if(typeof window>"u")return;const s=window.matchMedia("(prefers-reduced-motion: reduce)").matches,r=window.matchMedia("(max-width: 767px)").matches;if(s||r)return;const i=(window.requestIdleCallback||(o=>window.setTimeout(o,200)))(()=>a(!0));return()=>{(window.cancelIdleCallback||window.clearTimeout)(i)}},[]),t}function v(){return e.jsx("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-0",style:{background:"radial-gradient(ellipse at 30% 40%, rgba(209,206,39,0.10), transparent 55%), radial-gradient(ellipse at 75% 65%, rgba(209,206,39,0.08), transparent 60%), linear-gradient(180deg, #0A0F1E 0%, #0A0F1E 100%)"}})}function X(){const{t,lang:a}=j(),s=O(),r=G(),n=[t("home_rotate_1"),t("home_rotate_2"),t("home_rotate_3"),t("home_rotate_4")],i=()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("viar:energize"))};return e.jsxs(e.Fragment,{children:[e.jsxs("section",{className:"relative flex min-h-[80vh] items-start justify-center overflow-hidden pt-24 pb-16 md:min-h-[88vh] md:items-center md:py-20",children:[e.jsx("div",{className:"absolute inset-0 bg-[#0A0F1E]/60"}),r?e.jsxs(l.Suspense,{fallback:e.jsx(v,{}),children:[e.jsx(Y,{}),e.jsx(U,{})]}):e.jsx(v,{}),e.jsxs("div",{className:"relative z-10 mx-auto max-w-3xl px-6 text-center",style:s,onMouseEnter:i,children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-muted-foreground",children:t("home_eyebrow")}),e.jsxs("p",{className:"mt-3 text-sm font-medium",children:[e.jsx("span",{className:"text-muted-foreground",children:t("home_rotate_prefix")})," ",e.jsx(P,{words:n,className:"font-semibold text-primary"})]}),e.jsx("h1",{className:"mt-4 text-3xl font-bold leading-tight text-foreground sm:text-4xl md:text-5xl lg:text-6xl",children:t("home_headline")}),e.jsx("div",{className:"mt-8 inline-block",children:e.jsxs("div",{className:"viar-ring-pulse",children:[e.jsx(A,{href:"https://rewo.io/",target:"_blank",rel:"noopener noreferrer",children:t("home_cta")}),e.jsx("span",{"aria-hidden":"true",className:"viar-ring-pulse-ring"})]})})]}),e.jsx(T,{label:t("home_scroll_hint")})]}),e.jsx("div",{"aria-hidden":"true",className:"viar-divider"}),e.jsxs("section",{className:"mx-auto max-w-[1200px] px-6 py-24 md:py-32",children:[e.jsxs(c,{children:[e.jsx("p",{className:"text-xs font-semibold uppercase tracking-[0.3em] text-primary",children:t("home_about_kicker")}),e.jsx("h2",{className:"mt-3 text-3xl font-bold text-foreground sm:text-4xl md:text-5xl",children:a==="sl"?e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-primary",children:"V"}),"izualna"," ",e.jsx("span",{className:"text-primary",children:"I"}),"nteligenca za"," ",e.jsx("span",{className:"text-primary",children:"A"}),"sistenco in"," ",e.jsx("span",{className:"text-primary",children:"R"}),"azumevanje."]}):e.jsxs(e.Fragment,{children:[e.jsx("span",{className:"text-primary",children:"V"}),"isual"," ",e.jsx("span",{className:"text-primary",children:"I"}),"ntelligence for"," ",e.jsx("span",{className:"text-primary",children:"A"}),"ssistance and"," ",e.jsx("span",{className:"text-primary",children:"R"}),"eliability."]})}),e.jsx("div",{className:"mt-4 h-1 w-20 bg-primary"})]}),e.jsxs("div",{className:"mt-14 grid gap-12 md:grid-cols-2 md:gap-16",children:[e.jsx(c,{children:e.jsx("p",{className:"text-base leading-[1.8] text-foreground
2/85 sm:text-lg",children:t("home_about_body")})}),e.jsx(c,{children:e.jsxs("div",{className:"grid gap-4",children:[e.jsx(c,{delay:0,children:e.jsx(p,{value:"2015",label:t("home_stat1_label")})}),e.jsx(c,{delay:80,children:e.jsx(p,{value:"5,000+",label:t("home_stat2_label")})}),e.jsx(c,{delay:160,children:e.jsx(p,{value:t("home_stat3_value"),label:t("home_stat3_label")})})]})})]}),e.jsx(c,{children:e.jsxs("div",{className:"mt-16 rounded-2xl border border-border border-l-4 border-l-primary bg-card/70 p-8 backdrop-blur sm:p-10",children:[e.jsx("p",{className:"text-lg text-foreground/90 sm:text-xl",children:t("home_callout")}),e.jsx("a",{href:"https://rewo.io/",target:"_blank",rel:"noopener noreferrer",className:"mt-4 inline-block text-base font-semibold text-primary transition-opacity hover:opacity-80",children:t("home_callout_link")})]})})]}),e.jsx("div",{"aria-hidden":"true",className:"viar-divider"}),e.jsx(D,{})]})}function p({value:t,label:a}){const{ref:s,onMouseMove:r,onMouseLeave:n}=_();return e.jsxs("div",{ref:s,onMouseMove:r,onMouseLeave:n,className:"group relative h-full overflow-hidden rounded-2xl border border-border bg-card/70 p-6 backdrop-blur transition-[transform,border-color,box-shadow] duration-300 ease-out hover:border-primary/40 hover:shadow-[0_20px_60px_-25px_rgba(209,206,39,0.45)] will-change-transform",children:[e.jsx("div",{"aria-hidden":!0,className:"pointer-events-none absolute -right-12 -top-12 h-40 w-40 rounded-full bg-primary/10 opacity-0 blur-3xl transition-opacity duration-500 group-hover:opacity-100"}),e.jsx("div",{className:"relative font-mono text-3xl font-bold text-primary sm:text-4xl",children:e.jsx(W,{value:t})}),e.jsx("div",{className:"relative mt-2 text-sm text-muted-foreground",children:a})]})}export{X as component};

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.