{"version":3,"file":"shared-lib.Y4R3yUBy.mjs","names":["__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","init_jsx_runtime","ce","init_framer_Bf4_tcb2","RenderTarget","addPropertyControls","ControlType","insideScroller","el","node","overflow","SiteTheme","light","props","els","REVEAL","io","entries","root","target","current","raf","last","stop","frame","dt","now","onWheel","e","dy","max","CSS","DARK","init_SiteTheme","metadata","init_siteMetadata"],"sources":["https:/framerusercontent.com/modules/melIlEQpc8vbDFAgGJqj/su0DrbskE2lI7kcHNV09/SiteTheme.js","https:/framerusercontent.com/modules/A1Cjzs7S8ZZ8U6FL0vTD/Y9FkhN3O9tYkm7DOwoIu/siteMetadata.js"],"sourcesContent":["// Site-wide type, finish and motion for the ROANIX marketing pages. SiteNav renders this once per page.\n// Display face: Fraunces, light. Text face: Inter. The same pairing as app.roanix.co.\n// 1. Type rules restyle the inner-page components (PageIntro, SolutionsList, VisionContent,\n//    LegalDoc, SiteCta, SiteFooter) so every page shares one look. The home page sets the\n//    same values in HomeSection.\n// 2. Motion: pages cross-fade into each other, page headings rise in on load, inner-page\n//    sections fade up as they scroll into view, and the mouse wheel glides instead of stepping.\n// 3. The page never scrolls sideways: soft glows and rings that reach past the edge are cut there.\n// To switch the gliding wheel off, set SMOOTH_WHEEL to false.\n// Pages without SiteNav (the Aura pages) get this through their footer, set to \"Light pages\".\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useEffect}from\"react\";const SMOOTH_WHEEL=true;// Inner-page blocks that fade up when they scroll into view.\nconst REVEAL=\".rx-sol-in > section, .rx-vis-steps > li, .rx-vis-why, .rx-cta-in\";const CSS=`\n@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..500;1,9..144,300..500&family=Inter:wght@400;500;600&display=swap');\nhtml{overflow-x:hidden;overflow-x:clip}\n::selection{background:#D8B25A;color:#000}\n\n@view-transition{navigation:auto}\n::view-transition-old(root),::view-transition-new(root){animation-duration:.45s;animation-timing-function:cubic-bezier(.2,.7,.2,1)}\n\n.rx-pi,.rx-pi *,.rx-sol,.rx-sol *,.rx-vis,.rx-vis *,.rx-cta,.rx-cta *,.rx-foot,.rx-foot *,.rx-legal,.rx-legal *{font-family:\"Inter\",system-ui,-apple-system,sans-serif!important;-webkit-font-smoothing:antialiased}\n\n.rx-pi h1,.rx-legal h1,.rx-sol h2,.rx-vis h2,.rx-cta h2,.rx-sol h3,.rx-vis h3,.rx-vis-why li,.rx-legal h3{font-family:\"Fraunces\",Georgia,serif!important;font-optical-sizing:auto}\n.rx-pi h1{font-weight:300!important;font-size:clamp(40px,6.4cqw,76px)!important;line-height:1.03!important;letter-spacing:-.03em!important}\n.rx-legal h1{font-weight:300!important;font-size:clamp(36px,7cqw,58px)!important;line-height:1.05!important;letter-spacing:-.028em!important}\n.rx-sol h2,.rx-vis h2,.rx-cta h2{font-weight:300!important;font-size:clamp(30px,4.5cqw,54px)!important;line-height:1.07!important;letter-spacing:-.026em!important}\n.rx-sol h3,.rx-vis h3,.rx-vis-why li,.rx-legal h3{font-weight:300!important;font-size:23px!important;line-height:1.25!important;letter-spacing:-.014em!important}\n\n.rx-pi a,.rx-cta a.rx-cta-primary{background:#F3EDE0!important;color:#000!important;border-radius:999px!important;transition:background .3s ease,transform .3s ease}\n.rx-pi a:hover,.rx-cta a.rx-cta-primary:hover{background:#fff!important;transform:translateY(-1px)}\n.rx-cta a.rx-cta-secondary{border-radius:999px!important;border-color:rgba(243,237,224,.3)!important;transition:border-color .3s ease,color .3s ease}\n.rx-cta a.rx-cta-secondary:hover{border-color:#D8B25A!important;color:#D8B25A!important}\n.rx-foot a{transition:color .3s ease}\n.rx-foot a:hover{color:#D8B25A!important}\n\n.rx-sol li h3,.rx-vis-steps li h3{transition:transform .5s cubic-bezier(.2,.7,.2,1),color .4s ease}\n@media (hover:hover){\n.rx-sol li:hover h3,.rx-vis-steps li:hover h3{transform:translateX(8px);color:#fff}\n}\n\n@container (min-width:810px){\n.rx-sol section>div{position:sticky;top:48px;align-self:start}\n}\n\n@keyframes rx-rise{from{opacity:0;transform:translateY(20px)}}\n.rx-pi-in>*,.rx-legal-in>h1,.rx-legal-in>.rx-legal-updated{animation:rx-rise 1s cubic-bezier(.2,.7,.2,1) both}\n.rx-pi-in>:nth-child(2),.rx-legal-in>.rx-legal-updated{animation-delay:.12s}\n.rx-pi-in>:nth-child(3){animation-delay:.24s}\n.rx-pi-in>:nth-child(4){animation-delay:.36s}\n.rx-pi-in>:nth-child(5){animation-delay:.48s}\n\n.rx-rv{opacity:0;transform:translateY(16px)}\n.rx-rv.rx-rv-on{opacity:1;transform:none;transition:opacity 1s ease,transform 1s cubic-bezier(.2,.7,.2,1)}\n\n@media (prefers-reduced-motion:reduce){\n::view-transition-old(root),::view-transition-new(root){animation:none}\n.rx-pi-in>*,.rx-legal-in>h1,.rx-legal-in>.rx-legal-updated{animation:none}\n}\n`;// Black behind the page, so nothing light shows at the edges while a dark page loads or overscrolls.\nconst DARK=`\nhtml{background:#000}\n`;// Is the pointer over something that scrolls by itself (a menu, a text box)?\nfunction insideScroller(node){let el=node;while(el&&el!==document.body&&el!==document.documentElement){const overflow=getComputedStyle(el).overflowY;if((overflow===\"auto\"||overflow===\"scroll\")&&el.scrollHeight>el.clientHeight+1)return true;el=el.parentElement;}return false;}/**\n * Invisible. Carries the site's shared fonts, type rules and motion.\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function SiteTheme(props){const light=props&&props.tone===\"light\";// Inner-page sections below the fold fade up once when they scroll into view.\nuseEffect(()=>{if(typeof window===\"undefined\"||typeof IntersectionObserver===\"undefined\")return;if(RenderTarget.current()===RenderTarget.canvas)return;if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;const els=Array.from(document.querySelectorAll(REVEAL)).filter(el=>el.getBoundingClientRect().top>window.innerHeight*.92);if(!els.length)return;const io=new IntersectionObserver(entries=>{entries.forEach(e=>{if(e.isIntersecting){e.target.classList.add(\"rx-rv-on\");io.unobserve(e.target);}});},{threshold:.01});els.forEach(el=>{el.classList.add(\"rx-rv\");io.observe(el);});return()=>{io.disconnect();els.forEach(el=>el.classList.remove(\"rx-rv\",\"rx-rv-on\"));};},[]);// Mouse wheel and trackpad scrolling eases toward where it is going instead of stepping.\n// Keyboard, scrollbar, touch and anything that scrolls by itself are left alone, and take\n// over at once if they are used while the page is still gliding.\nuseEffect(()=>{if(!SMOOTH_WHEEL||typeof window===\"undefined\")return;if(RenderTarget.current()===RenderTarget.canvas)return;if(!window.matchMedia(\"(hover: hover) and (pointer: fine)\").matches)return;if(window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;const root=document.scrollingElement||document.documentElement;let target=window.scrollY;let current=target;let raf=0;let last=0;const stop=()=>{raf=0;last=0;};const frame=now=>{// Something else moved the page (keys, scrollbar, a jump link): let it.\nif(Math.abs(window.scrollY-current)>4){stop();return;}const dt=Math.min(64,now-(last||now-16.7));last=now;current+=(target-current)*(1-Math.pow(.88,dt/16.7));if(Math.abs(target-current)<.5)current=target;window.scrollTo({top:current,behavior:\"instant\"});if(current!==target){raf=requestAnimationFrame(frame);}else{stop();}};const onWheel=e=>{if(e.defaultPrevented||e.ctrlKey||e.metaKey||e.shiftKey)return;if(Math.abs(e.deltaX)>Math.abs(e.deltaY))return;if(insideScroller(e.target))return;const dy=e.deltaMode===1?e.deltaY*40:e.deltaMode===2?e.deltaY*window.innerHeight:e.deltaY;e.preventDefault();if(!raf){current=window.scrollY;target=current;}const max=root.scrollHeight-window.innerHeight;target=Math.max(0,Math.min(max,target+dy));if(!raf)raf=requestAnimationFrame(frame);};window.addEventListener(\"wheel\",onWheel,{passive:false});return()=>{window.removeEventListener(\"wheel\",onWheel);cancelAnimationFrame(raf);};},[]);return /*#__PURE__*/_jsx(\"style\",{children:light?CSS:CSS+DARK});}addPropertyControls(SiteTheme,{tone:{type:ControlType.Enum,title:\"Page\",options:[\"dark\",\"light\"],optionTitles:[\"Dark pages\",\"Light pages\"],defaultValue:\"dark\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SiteTheme\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SiteTheme.map","// Generated by Framer (c983679)\nexport default function metadata(params,contentLocale){return{description:\"ROANIX brings sales, bookings, operations and finance into one AI platform. Built for event venues first, in the Philippines and Indonesia.\",favicon:\"https://framerusercontent.com/assets/LdD6gb9RF8AO7a6RVETwCTcaFXA.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/t0JOtwGsYWQLWD4oAvB96nwkG4.jpg\",title:\"ROANIX | AI Business Operating System\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"A,+LA6DA,SAASW,EAAe,EAAK,CAAC,IAAIC,EAAGC,EAAK,KAAMD,GAAIA,IAAK,SAAS,MAAMA,IAAK,SAAS,iBAAgB,CAAC,IAAME,EAAS,iBAAiBF,CAAE,CAAC,CAAC,UAAU,IAAIE,IAAW,QAAQA,IAAW,WAAWF,EAAG,aAAaA,EAAG,aAAa,EAAE,MAAO,GAAK,EAAGA,EAAG,aAAc,CAAC,MAAO,EAAM,CAK/Q,SAAwBG,EAAU,EAAM,CAAC,IAAMC,EAAMC,GAAOA,EAAM,OAAO,QAKg1B,OAJ55BX,MAAc,CAAyI,GAA9HH,IAAS,QAAa,OAAO,qBAAuB,KAAsBK,EAAa,QAAQ,IAAIA,EAAa,QAAiBL,EAAO,WAAW,kCAAkC,CAAC,CAAC,QAAQ,OA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