1import{r as n,w as M}from"./components-Cw6Jk3w1.js";import{a as q,u as F,L as S}from"./lib-JxrLqkKi.js";import{j as e}from"./jsx-runtime-u17CrQMm.js";import{N as V}from"./NavUtrinkiLink-DSVkS4GD.js";import{D as B,T as W,V as _,a as $}from"./ThemePicker-BlHSJylY.js";import{a as I,u as p,t as U}from"./lang-DMoBW7ns.js";import{L as K}from"./LangSwitcher-igOeV1Lt.js";import{r as G}from"./index-BlUAoJf4.js";import{u as H}from"./useEscape-C5QuhXvo.js";import{u as Q}from"./useDraggable-D-XtuyL7.js";import"./errorBoundaries-BeUwEidK.js";import"./theme-CTrIsDFK.js";const Y=["avanturi","podvigu","omrežju","razvoju","inovaciji","premiku","strukturi"],J=["adventure","venture","network","development","innovation","shift","structure"];function Z({turnstileSiteKey:s,signupStamp:a,drag:o}){const[r]=n.useState(a),d=I(),t=p(),l=d==="en"?J:Y,u=q(),i=u.data,h=n.useRef(null),[j]=F(),c=i?.success===!0,[g,k]=n.useState(null),b=!!s&&!g,[m,w]=n.useState(l[0]),[T,R]=n.useState(1),[v,x]=n.useState("pause"),{handleStyle:E,onMouseDown:z,reset:P,isDragged:A,distance:O}=o,D=Math.min(.08,O/100*.01),N=n.useRef(0);return n.useEffect(()=>{c||(N.current=0)},[c]),n.useEffect(()=>{let y;if(v==="pause"){if(c&&(N.current+=1,N.current>=2))return;y=setTimeout(()=>x("deleting"),1800)}else if(v==="deleting")m.length===0?x("typing"):y=setTimeout(()=>w(f=>f.slice(0,-1)),72);else if(v==="typing"){const f=l[T];m===f?(R(C=>(C+1)%l.length),x("pause")):y=setTimeout(()=>w(f.slice(0,m.length+1)),105)}return()=>clearTimeout(y)},[v,m,T,c]),n.useEffect(()=>{w(l[0]),R(1),x("pause")},[d]),n.useEffect(()=>{j.get("register")==="1"&&h.current?.focus()},[j]),e.jsxs("div",{className:"register-card",style:E,onMouseDown:z,children:[A&&e.jsx(B,{onReset:P}),e.jsx("img",{src:"/lorenz.png",alt:"",className:"register-lorenz",style:{opacity:D},"aria-hidden":"true"}),e.jsxs("h2",{className:"register-title",children:[t("Pridruži se","Join the")," ",e.jsxs("span",{className:"register-word",translate:"no",children:[m||"â",e.jsx("span",{className:`register-cursor-inline${c?" register-cursor-inline--slow":""}`})]})]}),e.jsx("p",{className:"register-queue",children:d==="en"?e.jsxs(e.Fragment,{children:["Some say the world simply is the way it is ⦠but that is a very narrow view.",e.jsx("br",{}),e.jsx("br",{}),"Life becomes endlessly wider the moment you grasp one simple truth: everything around you that you call life was made by people no smarter than you. ",e.jsx("i",{children:"Reality is yours to shape."}),e.jsx("br",{}),e.jsx("br",{}),"That may be the essence of it all â letting go of the illusion that the world is simply set in place and you merely get by inside it. ⦠once that lands, you are not the same person again."]}):e.jsxs(e.Fragment,{children:["Nekateri pravijo, da svet preprosto je, kakrÅ¡en je ⦠a to je zelo ozek pogled.",e.jsx("br",{}),e.jsx("br",{}),"Življenje postane neskonÄno Å¡irÅ¡e v trenutku, ko dojameÅ¡ eno preprosto resnico: vse okoli tebe, Äemur praviÅ¡ življenje, so ustvarili ljudje, ki niso bili niÄ pametnejÅ¡i od tebe. ",e.jsx("i",{children:"Realnost lahko oblikujeÅ¡."}),e.jsx("br",{}),e.jsx("br",{}),"To je morda bistvo vsega â znebiti se zmote, da je svet preprosto postavljen, ti pa v njem le životariÅ¡. ⦠ko to enkrat dojameÅ¡, nisi veÄ isti Älovek."]})}),!c&&e.jsxs(u.Form,{method:"post",className:"register-row",children:[e.jsx("input",{ref:h,type:"email",name:"email",className:"register-input",placeholder:t("[email protected]","[email protected]"),required:!0}),e.jsx("input",{type:"hidden",name:"stamp",value:r}),s&&e.jsx(W,{siteKey:s,onToken:k,resetKey:u.data}),e.jsx("button",{type:"submit",className:"register-submit",disabled:u.state!=="idle"||b,children:"â"})]}),e.jsx("p",{className:"register-queue register-word",children:t("Vstopi, ko se ti zazdi, da je Äas in ko si zaželiÅ¡ aktivne družbe.","Step in when it feels right, and when you intuitively understand.")}),i?.invalid&&e.jsx("p",{className:"register-already",children:t("Neveljaven e-poÅ¡tni naslov.","That email address is not valid.")}),i?.challenge&&e.jsx("p",{className:"register-already",children:t("Preverjanje ni uspelo â poskusi znova.","The check did not pass â please try again.")}),i?.restricted&&e.jsx("p",{className:"register-already",children:t("Dostop do BETA okolja je omejen na @uniqpath.com naslove.","Access to the BETA environment is limited to @uniqpath.com addresses.")}),c&&i?.adminConfirmed&&e.jsx("p",{className:"register-activated",children:t("RaÄun je pripravljen! V e-poÅ¡ti te Äaka vstopna povezava.","Your account is ready â an entry link is waiting in y
1our inbox.")}),c&&!i?.alreadySubscribed&&!i?.adminConfirmed&&e.jsx("p",{className:"register-confirm",children:t("Prijava sprejeta. Obvestili te bomo.","Registration received. We will be in touch.")}),i?.alreadySubscribed&&!i?.isActivated&&e.jsx("p",{className:"register-already",children:t("Tvoj email je del REALNOSTI in Äaka na naslednji sistemski pulz.","Your email is part of REALNOST and is waiting for the next system pulse.")}),i?.alreadySubscribed&&i?.isActivated&&e.jsxs("p",{className:"register-activated",children:[t("Uporabnik je aktiven, ","This account is active â "),e.jsx("a",{href:"/login",children:t("lahko se prijavite!","you can log in!")})]})]})}const L=[{text:"Primer l'amor, després la tècnica.",author:"AG"}];function X(){const s=L[L.length-1];return e.jsxs("div",{className:"quote-tag",children:[s.text," ",e.jsxs("span",{className:"quote-tag-author",children:["[",s.author,"]"]})]})}const ee=3;function te(s){const a=Math.round(s);return`${Math.floor(a/60)}:${String(a%60).padStart(2,"0")}`}function se({videos:s}){const a=p(),[o,r]=n.useState(null),d=n.useRef(null);return s.length===0?null:e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"home-videos",children:[s.map((t,l)=>e.jsxs("button",{type:"button",className:"home-video-thumb","aria-label":a(`Predvajaj video ${l+1}`,`Play video ${l+1}`),onClick:u=>{d.current=u.currentTarget,r(t)},children:[e.jsx("img",{src:t.poster,alt:"",loading:"lazy",decoding:"async"}),e.jsx("span",{className:"home-video-play","aria-hidden":"true",children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M8 5.5v13a1 1 0 0 0 1.5.86l11-6.5a1 1 0 0 0 0-1.72l-11-6.5A1 1 0 0 0 8 5.5z"})})}),t.duration!=null&&e.jsx("span",{className:"home-video-time",children:te(t.duration)})]},t.name)),Array.from({length:Math.max(ee-s.length,0)},(t,l)=>e.jsx("div",{className:"home-video-thumb home-video-thumb--soon",children:a("Kmalu","Coming soon")},`soon-${l}`))]}),o&&e.jsx(ae,{video:o,onClose:()=>{r(null),d.current?.focus()}})]})}function ae({video:s,onClose:a}){const o=p(),r=n.useRef(null);return H(a),n.useEffect(()=>{r.current?.focus();const d=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=d}},[]),G.createPortal(e.jsxs("div",{className:"video-overlay",role:"dialog","aria-modal":"true","aria-label":o("Video","Video"),children:[e.jsx("video",{className:"video-overlay-player",src:s.src,poster:s.poster,autoPlay:!0,controls:!0,playsInline:!0,preload:"auto",onEnded:a}),e.jsx("button",{ref:r,type:"button",className:"video-overlay-close",onClick:a,"aria-label":o("Zapri","Close"),children:e.jsx("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})})})]}),document.body)}function ve({loaderData:s}){const a=s?.lang??"sl",o=U(a,"Omrežje znanja za dovolj premaknjene.","A knowledge network for the sufficiently shifted.");return[{title:"REALNOST"},{name:"description",content:o},{property:"og:title",content:"REALNOST"},{property:"og:description",content:o},{property:"og:image",content:"https://realnost.si/banner.jpg"},{property:"og:image:width",content:"1200"},{property:"og:image:height",content:"630"},{property:"og:url",content:"https://realnost.si"},{property:"og:type",content:"website"},{property:"og:locale",content:a==="en"?"en_GB":"sl_SI"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:"REALNOST"},{name:"twitter:description",content:o},{name:"twitter:image",content:"https://realnost.si/banner.jpg"}]}function ne({name:s}){const a=p();return e.jsx("div",{className:"home-member",children:e.jsxs("p",{className:"home-member-who",children:[a("Prijavljen si kot","Logged in as")," ",e.jsx("strong",{children:s})]})})}const xe=M(function({loaderData:a}){const{reader:o,member:r,videos:d}=a,t=p(),l=Q("register-offset",{inFlow:!0}),[u,i]=n.useState(!1),[h,j]=n.useState(!1);return n.useEffect(()=>{const c=new URLSearchParams(window.location.search);if(c.get("deleted")!=="1")return;i(!0),c.delete("deleted");const g=c.toString();window.history.replaceState({},"",window.location.pathname+(g?`?${g}`:""));const k=setTimeout(()=>j(!0),5e3),b=setTimeout(()=>i(!1),5500);return()=>{clearTimeout(k),clearTimeout(b)}},[]),e.jsxs("div",{className:"hero",children:[u&&e.jsxs("div",{className:"app-toast app-toast--logout"+(h?" app-toast--out":""),role:"status",children:[e.jsx("span",{className:"app-toast-icon",children:e.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M20 6 9 17l-5-5"})})}),t("RaÄun je bil izbrisan","Account deleted")]}),e.jsxs("nav",{className:"nav",children:[e.jsx("span",{className:"nav-logo-link nav-logo-link--static",children:e.jsx("img",{src:"/logo.png",alt:"Logo",className:"nav-logo"})}),e.jsxs("div",{className:"nav-right",children:[e.jsx(K,{className:"lang-switch--under-options"}),e.jsxs("div",{className:"nav-row",children:[e.jsxs(S,{to:o||r?"/app/events":"/dogodki",className:"nav-dogodki",children:[e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[e.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),e.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),e.jsx("span",{className:"nav-dogodki-text",children:t("Dogodki","Events")})]}),e.jsx(V,{visitor:!o}),r?e.jsx(S,{to:"/app/home",className:"nav-login",children:t("V aplikacijo","To the app")}):e.jsx(S,{to:"/login",className:"nav-login",children:t("Prijava","Log in")})]})]})]}),e.jsxs("div",{className:"home-stack",ref:r?void 0:l.ref,style:r?void 0:l.style,children:[r?e.jsx(ne,{name:r.name}):e.jsx(Z,{turnstileSiteKey:a.turnstileSiteKey,signupStamp:a.signupStamp,drag:l}),e.jsx(se,{videos:d})]}),e.jsx(_,{}),e.jsx($,{}),e.jsx(X,{})]})});export{xe as default,ve as meta};
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.