{"version":3,"file":"UtilizationBackground.Dd2RdizG.mjs","names":["React.useState","React.useRef","React.useLayoutEffect","React.useEffect","__esmMin","le","init_ssg_sandbox_shims","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","window","init_framer_BisrWwwE","ControlType","addPropertyControls","KlyroAuthProvider","init_KlyroSupabase_1_3OjW6g","readExact","raw","EXACT_KEY","writeExact","profile","migrateLegacy","exact","section","sources","LEGACY_SOURCE_KEY","selections","LEGACY_SELECTION_KEY","source","rawSelection","selection","choice","readChoice","hydrateFromCloud","KlyroAuth","accessToken","data","userId","response","BACKGROUND_PUBLISHABLE_KEY","rows","value","preload","image","readGlobalParallaxEnabled","GLOBAL_PARALLAX_KEY","makeRenderer","props","setChoice","isNativeIOS","setIsNativeIOS","globalParallaxEnabled","setGlobalParallaxEnabled","imageRef","sync","changed","detect","nativeAttribute","capacitorIOS","local","alive","receive","custom","event","incoming","next","storage","refreshCloud","cloud","src","srcSet","alt","edgeToEdge","fullViewportIOS","motionAmount","parallaxStrength","useParallax","parallaxEnabled","reducedMotion","scheduled","active","currentScroll","currentShift","targetShift","animate","requestTick","onScroll","target","element","onMotionChange","html","head","sheet","enforceViewport","meta","current","observer","componentName","radius","fallbackColor","positionX","positionY","overlayColor","overlayOpacity","UtilizationBackground","UtilizationBackgroundRenderer","commonDefaults","commonControls","init_UtilizationBackground"],"sources":["https:/framerusercontent.com/modules/N1iwyydxdGHTW3qyXEhQ/7uRd0ZYfbxJpBLbz3swU/UtilizationBackground.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// @ts-ignore Framer resolves this versioned project module during build\nimport KlyroAuthProvider from\"https://framer.com/m/KlyroSupabase-1-3OjW6g.js@k91yqY1apNU4tENaBCZa\";const KlyroAuth=KlyroAuthProvider;const EXACT_KEY=\"klyro-background-exact-v1\";const LEGACY_SOURCE_KEY=\"klyro-background-source-cache-v2\";const LEGACY_SELECTION_KEY=\"klyro-background-images\";const BACKGROUND_SUPABASE_URL=\"https://zsqioztrkxzxqckwzjac.supabase.co\";const BACKGROUND_PUBLISHABLE_KEY=\"sb_publishable_7PweHqQ-lVGesYTBpoTLpw_MGhdtQL8\";function readExact(){if(typeof window===\"undefined\")return{};try{const raw=JSON.parse(localStorage.getItem(EXACT_KEY)||\"{}\");return raw&&typeof raw===\"object\"?raw:{};}catch{return{};}}function writeExact(profile){try{localStorage.setItem(EXACT_KEY,JSON.stringify(profile));}catch{}}function migrateLegacy(section){if(typeof window===\"undefined\")return null;try{const exact=readExact();if(exact[section]?.src)return exact[section];const sources=JSON.parse(localStorage.getItem(LEGACY_SOURCE_KEY)||\"{}\");const selections=JSON.parse(localStorage.getItem(LEGACY_SELECTION_KEY)||\"{}\");const source=sources?.[section];const rawSelection=selections?.[section];const selection=typeof rawSelection===\"object\"?Number(rawSelection?.image)||1:Number(rawSelection)||Number(source?.image)||1;if(!source?.src)return null;const choice={image:Math.max(1,Math.min(15,selection)),src:String(source.src),srcSet:source.srcSet||undefined,alt:source.alt||\"\",updatedAt:Number(source.updatedAt)||Date.now()};const next={...exact,[section]:choice};writeExact(next);return choice;}catch{return null;}}function readChoice(section){const exact=readExact();if(exact[section]?.src)return exact[section];return migrateLegacy(section);}async function hydrateFromCloud(section){try{const{data}=await KlyroAuth.getSession();const accessToken=data.session?.access_token??\"\";const userId=data.session?.user?.id??\"\";if(!accessToken||!userId)return null;const response=await fetch(BACKGROUND_SUPABASE_URL+\"/rest/v1/user_settings?select=background_selection&user_id=eq.\"+encodeURIComponent(userId)+\"&limit=1\",{headers:{apikey:BACKGROUND_PUBLISHABLE_KEY,Authorization:\"Bearer \"+accessToken},cache:\"no-store\"});if(!response.ok)return null;const rows=await response.json();const value=Array.isArray(rows)?rows[0]?.background_selection?.[section]:null;if(!value||typeof value!==\"object\"||!value.src)return null;const choice={image:Math.max(1,Math.min(15,Number(value.image)||1)),src:String(value.src),srcSet:value.srcSet||undefined,alt:value.alt||\"\",updatedAt:Date.now()};const exact=readExact();writeExact({...exact,[section]:choice});return choice;}catch{return null;}}function preload(choice){if(!choice?.src||typeof window===\"undefined\")return;try{const image=new Image;image.decoding=\"async\";image.fetchPriority=\"high\";if(choice.srcSet)image.srcset=choice.srcSet;image.src=choice.src;}catch{}}const GLOBAL_PARALLAX_KEY=\"klyro-parallax-enabled-v1\";function readGlobalParallaxEnabled(){if(typeof window===\"undefined\")return true;try{const raw=window.localStorage.getItem(GLOBAL_PARALLAX_KEY);return raw==null?true:raw!==\"0\";}catch{return true;}}function makeRenderer(section,componentName){return function KlyroExactBackground(props){const{fallbackColor,overlayColor,overlayOpacity,radius,positionX,positionY,fullViewportIOS,parallaxEnabled,parallaxStrength}=props;/*\n         Hydration-safe:\n         Server rendering cannot access localStorage, so the server and the\n         browser's first render must both begin with the same empty choice.\n         The saved exact background is restored immediately in the layout\n         effect below, before normal user interaction.\n        */const[choice,setChoice]=React.useState(null);const[isNativeIOS,setIsNativeIOS]=React.useState(false);const[globalParallaxEnabled,setGlobalParallaxEnabled]=React.useState(true);const imageRef=React.useRef(null);React.useEffect(()=>{const sync=()=>setGlobalParallaxEnabled(readGlobalParallaxEnabled());const changed=()=>sync();sync();window.addEventListener(\"klyroParallaxPreferenceChanged\",changed);window.addEventListener(\"storage\",changed);return()=>{window.removeEventListener(\"klyroParallaxPreferenceChanged\",changed);window.removeEventListener(\"storage\",changed);};},[]);// Native-only layout: leave Framer's editor and normal website intact.\nReact.useEffect(()=>{const detect=()=>{const nativeAttribute=document.documentElement.getAttribute(\"data-klyro-native\")===\"ios\";const capacitorIOS=window.Capacitor?.getPlatform?.()===\"ios\";setIsNativeIOS(Boolean(nativeAttribute||capacitorIOS));};detect();window.addEventListener(\"klyro:native-environment-ready\",detect);return()=>window.removeEventListener(\"klyro:native-environment-ready\",detect);},[]);const useClientLayoutEffect=typeof window!==\"undefined\"?React.useLayoutEffect:React.useEffect;useClientLayoutEffect(()=>{const local=readChoice(section);if(local?.src){preload(local);setChoice(local);}},[]);React.useEffect(()=>{let alive=true;const receive=event=>{const custom=event;if(custom.detail?.section!==section)return;const incoming=custom.detail?.choice;if(!incoming?.src)return;const next={image:Math.max(1,Math.min(15,Number(incoming.image)||1)),src:String(incoming.src),srcSet:incoming.srcSet||undefined,alt:incoming.alt||\"\",updatedAt:Date.now()};setChoice(next);preload(next);};const storage=event=>{if(event.key!==EXACT_KEY)return;const next=readChoice(section);if(next?.src){setChoice(next);preload(next);}};const refreshCloud=async()=>{const cloud=await hydrateFromCloud(section);if(!alive||!cloud?.src)return;setChoice(cloud);preload(cloud);};window.addEventListener(\"klyroExactBackgroundChanged\",receive);window.addEventListener(\"storage\",storage);window.addEventListener(\"klyroAuthChanged\",refreshCloud);// Cloud is recovery only. Local exact URL renders first.\nvoid refreshCloud();return()=>{alive=false;window.removeEventListener(\"klyroExactBackgroundChanged\",receive);window.removeEventListener(\"storage\",storage);window.removeEventListener(\"klyroAuthChanged\",refreshCloud);};},[]);const src=choice?.src||\"\";const srcSet=choice?.srcSet;const alt=choice?.alt||\"\";const edgeToEdge=Boolean(fullViewportIOS&&isNativeIOS);// Scroll parallax uses the same proven implementation as the Wealth test.\n// It moves ONLY the image within the fixed wallpaper container.\n// The native iOS safe area, navbar, other backgrounds and picker\n// are untouched. This uses no motion-sensor permission or plugin.\nconst motionAmount=Math.max(0,Math.min(35,Number(parallaxStrength)||0));const useParallax=Boolean(edgeToEdge&&parallaxEnabled&&globalParallaxEnabled&&motionAmount>0);React.useEffect(()=>{const image=imageRef.current;if(!image||!useParallax||typeof window===\"undefined\")return;const reducedMotion=window.matchMedia(\"(prefers-reduced-motion: reduce)\");if(reducedMotion.matches)return;let scheduled=0;let active=true;let currentScroll=0;let currentShift=0;let targetShift=0;const animate=()=>{scheduled=0;if(!active)return;currentShift+=(targetShift-currentShift)*.23;if(Math.abs(targetShift-currentShift)<.12){currentShift=targetShift;}image.style.transform=`translate3d(0, ${currentShift.toFixed(2)}px, 0)`;image.style.webkitTransform=image.style.transform;if(Math.abs(targetShift-currentShift)>=.12){scheduled=window.requestAnimationFrame(animate);}};const requestTick=()=>{if(!scheduled)scheduled=window.requestAnimationFrame(animate);};const onScroll=event=>{if(reducedMotion.matches)return;// Some Framer pages scroll the document; others use a nested\n// scrolling container. Support either without changing scroll.\nconst target=event?.target;const element=target instanceof HTMLElement&&target.scrollHeight>target.clientHeight+8?target:null;currentScroll=Math.max(window.scrollY||0,document.documentElement.scrollTop||0,element?.scrollTop||0);targetShift=-Math.min(motionAmount,currentScroll*.11);requestTick();};onScroll();window.addEventListener(\"scroll\",onScroll,{passive:true,capture:true});const onMotionChange=()=>{if(!reducedMotion.matches){onScroll();}else{if(scheduled)window.cancelAnimationFrame(scheduled);scheduled=0;image.style.transform=\"translate3d(0, 0, 0)\";image.style.webkitTransform=image.style.transform;}};reducedMotion.addEventListener?.(\"change\",onMotionChange);return()=>{active=false;window.removeEventListener(\"scroll\",onScroll,true);reducedMotion.removeEventListener?.(\"change\",onMotionChange);if(scheduled)window.cancelAnimationFrame(scheduled);image.style.transform=\"translate3d(0, 0, 0)\";image.style.webkitTransform=image.style.transform;};},[src,useParallax,motionAmount]);// Only Klyro's native iOS WebView gets edge-to-edge layout.\n// Framer/editor and mobile Safari retain their existing page design.\nReact.useEffect(()=>{if(!edgeToEdge||typeof document===\"undefined\")return;const html=document.documentElement;html.setAttribute(\"data-klyro-utilization-edge\",\"1\");const head=document.head;const sheet=document.createElement(\"style\");sheet.id=\"klyro-utilization-ios-safearea\";sheet.textContent=\"html[data-klyro-utilization-edge='1'] body{\"+\"padding-top:env(safe-area-inset-top, 0px) !important;\"+\"box-sizing:border-box;}\";head.appendChild(sheet);// Framer can reset its viewport declaration after Swift's\n// document-start script runs. Preserve the existing settings and\n// add viewport-fit=cover, instead of replacing the whole meta.\nconst enforceViewport=()=>{const meta=head.querySelector('meta[name=\"viewport\"]');if(!meta)return;const current=meta.content||\"width=device-width\";if(/viewport-fit\\s*=/.test(current)){if(!/viewport-fit\\s*=\\s*cover/.test(current)){meta.content=current.replace(/viewport-fit\\s*=\\s*[^,]+/,\"viewport-fit=cover\");}}else{meta.content=current+\", viewport-fit=cover\";}};enforceViewport();const observer=new MutationObserver(enforceViewport);observer.observe(head,{childList:true,subtree:true,attributes:true,attributeFilter:[\"content\"]});return()=>{observer.disconnect();sheet.remove();html.removeAttribute(\"data-klyro-utilization-edge\");};},[edgeToEdge]);return /*#__PURE__*/_jsxs(\"div\",{\"data-klyro-background\":componentName,\"data-klyro-image\":choice?.image||0,style:{width:edgeToEdge?\"100vw\":\"100%\",height:edgeToEdge?\"100dvh\":\"100%\",// Viewport-anchored wallpaper independent of dashboard\n// content; the body safe-area padding keeps controls down.\nposition:edgeToEdge?\"fixed\":\"relative\",top:edgeToEdge?0:undefined,left:edgeToEdge?0:undefined,overflow:\"hidden\",borderRadius:edgeToEdge?0:radius,backgroundColor:fallbackColor,// The <img> below is the only image layer. Duplicating it\n// via backgroundImage can make srcSet variants diverge.\nbackgroundImage:\"none\",pointerEvents:edgeToEdge?\"none\":undefined,transform:edgeToEdge?\"none\":\"translateZ(0)\",WebkitTransform:edgeToEdge?\"none\":\"translateZ(0)\",contain:edgeToEdge?\"none\":\"paint\"},children:[src&&/*#__PURE__*/_jsx(\"img\",{ref:imageRef,src:src,srcSet:srcSet,alt:alt,draggable:false,loading:\"eager\",decoding:\"async\",fetchPriority:\"high\",style:{position:\"absolute\",inset:useParallax?-motionAmount:0,width:useParallax?`calc(100% + ${motionAmount*2}px)`:\"100%\",height:useParallax?`calc(100% + ${motionAmount*2}px)`:\"100%\",objectFit:\"cover\",objectPosition:`${positionX}% ${positionY}%`,display:\"block\",pointerEvents:\"none\",userSelect:\"none\",transform:\"translateZ(0)\",WebkitTransform:\"translateZ(0)\"}},src),/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,background:overlayColor,opacity:overlayOpacity,pointerEvents:\"none\"}})]});};}const commonDefaults={fallbackColor:\"#0D0D0D\",overlayColor:\"#000000\",overlayOpacity:.25,radius:24,positionX:50,positionY:50,fullViewportIOS:true,parallaxEnabled:true,parallaxStrength:20};const commonControls={parallaxEnabled:{type:ControlType.Boolean,title:\"Parallax Test\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},parallaxStrength:{type:ControlType.Number,title:\"Parallax px\",defaultValue:20,min:0,max:35,step:1,unit:\"px\",hidden:props=>!props.parallaxEnabled},fullViewportIOS:{type:ControlType.Boolean,title:\"iOS Fullscreen\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},fallbackColor:{type:ControlType.Color,title:\"Fallback\"},overlayColor:{type:ControlType.Color,title:\"Overlay\"},overlayOpacity:{type:ControlType.Number,title:\"Overlay\",min:0,max:1,step:.05},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:100},positionX:{type:ControlType.Number,title:\"Position X\",min:0,max:100,unit:\"%\"},positionY:{type:ControlType.Number,title:\"Position Y\",min:0,max:100,unit:\"%\"}};/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 390\n * @framerIntrinsicHeight 844\n */// Wealth / Subs uses its own saved wallpaper selection from the Wealth picker.\n// Scroll parallax test is native iOS only and may be disabled in Framer.\nconst UtilizationBackgroundRenderer=makeRenderer(\"utilization\",\"UtilizationBackground\");export default function UtilizationBackground(props){return /*#__PURE__*/_jsx(UtilizationBackgroundRenderer,{...props});}UtilizationBackground.defaultProps={...commonDefaults,radius:24};addPropertyControls(UtilizationBackground,commonControls);\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"UtilizationBackground\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UtilizationBackground.map"],"mappings":"A,qRAC4b,SAASoB,GAAW,CAAC,GAAUN,IAAS,OAAY,MAAM,CAAC,EAAE,GAAG,CAA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