{"version":3,"file":"shared-lib.DAXWl9yP.mjs","names":["useRef","useState","variationAxes","fonts","css","className"],"sources":["https:/framerusercontent.com/modules/9Z015kbRwhEjJFC2FHz9/LuGTmWUwJB2jlDJ4dB40/SectionReveal.js","https:/framerusercontent.com/modules/pwa80fRWWHLhroUNkAQq/h1x8gRDDpGuP1WNynWZD/gVYlgTLg_.js","https:/framerusercontent.com/modules/2KvNmDNziSfpDqa89Nef/uMUiSaOue6IV3PbskpTd/Pma0wirnj.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{useInView,useReducedMotion}from\"framer-motion\";import{useIsStaticRenderer}from\"framer\";/**\n * Scroll reveal for the /v2 section content, built on Motion.\n *\n * Replaces the per-section appear effects, which nested a container rise, a\n * grid rise and a word reveal inside one another with a bouncy spring — the\n * offsets compounded and overshot. Each revealed element now rises once, on\n * an overdamped spring, and elements entering view together are staggered\n * as one batch. Every timing lives here, so all pages change together.\n *//** Distance each element rises, in px. */const RISE=24;/** Overdamped (ratio ≈ 1.2), so the rise settles without overshoot. */const RISE_SPRING={type:\"spring\",stiffness:80,damping:22,mass:1};/** Opacity finishes ahead of the rise so the motion reads as a glide. */const FADE={duration:.7,ease:[.22,1,.36,1]};/** Delay between elements that enter view in the same batch, in seconds. */const STAGGER=.08;/** Caps the stagger so the last card in a long grid is not left waiting. */const MAX_STAGGER_STEPS=5;/** Elements entering view within this window share one batch, in ms. */const BATCH_WINDOW=150;/** How much of the element must be visible, and how early to trigger. */const VIEWPORT={once:true,amount:.2,margin:\"0px 0px -8% 0px\"};let batchStartedAt=-Infinity;let batchSize=0;function nextDelay(){const now=performance.now();if(now-batchStartedAt>BATCH_WINDOW){batchStartedAt=now;batchSize=0;}const step=Math.min(batchSize,MAX_STAGGER_STEPS);batchSize+=1;return step*STAGGER;}export function withReveal(Component){return function WithReveal(props){const ref=useRef(null);const isStatic=useIsStaticRenderer();const reduceMotion=useReducedMotion();const inView=useInView(ref,VIEWPORT);const[delay,setDelay]=useState(null);useEffect(()=>{if(inView&&delay===null)setDelay(nextDelay());},[inView,delay]);// The canvas and static exports should show the content at rest.\nif(isStatic)return /*#__PURE__*/_jsx(Component,{...props});const rise=reduceMotion?0:RISE;const shown=delay!==null;return /*#__PURE__*/_jsx(Component,{...props,ref:ref,initial:{opacity:0,y:rise},animate:shown?{opacity:1,y:0}:{opacity:0,y:rise},transition:{y:{...RISE_SPRING,delay:delay??0},opacity:{...FADE,delay:delay??0}}});};}/**\n * For buttons that also use `withLightLabelOnHover` — a node takes a single\n * override, so this applies both. The label part mirrors HoverLabel.tsx and\n * shares its class and style tag (code files can't import one another here);\n * keep the two in sync.\n */const LABEL_CLASS_NAME=\"kc-light-label-on-hover\";const LABEL_STYLE_ID=\"kc-light-label-on-hover-style\";const LABEL=\"var(--token-bf40f8e0-77f6-4f0f-9e89-4b938af76dee, rgb(241, 239, 235))\";const LABEL_CSS=\".\"+LABEL_CLASS_NAME+\" .framer-text { transition: color 0.2s cubic-bezier(0.44, 0, 0.56, 1); } \"+\".\"+LABEL_CLASS_NAME+\":hover *, .\"+LABEL_CLASS_NAME+\":focus-visible * { --framer-text-color: \"+LABEL+\" !important; color: \"+LABEL+\" !important; }\";export function withRevealLightLabel(Component){const Revealed=withReveal(Component);return function WithRevealLightLabel(props){useEffect(()=>{if(document.getElementById(LABEL_STYLE_ID))return;const tag=document.createElement(\"style\");tag.id=LABEL_STYLE_ID;tag.textContent=LABEL_CSS;document.head.appendChild(tag);},[]);const className=props.className?props.className+\" \"+LABEL_CLASS_NAME:LABEL_CLASS_NAME;return /*#__PURE__*/_jsx(Revealed,{...props,className:className});};}/**\n * One download button instead of two. The canvas link stays as the App Store\n * URL (so it works without JS); on mount the href is rewritten to the store\n * that matches the visitor's device. Android and desktop both get Play.\n *\n * Bundled here because a node takes a single override, and these buttons also\n * need the reveal and the hover label.\n */const IOS_URL=\"https://kurrentcharge.com/app/ios\";const ANDROID_URL=\"https://kurrentcharge.com/app/android\";function isAppleMobile(){if(typeof navigator===\"undefined\")return false;const ua=navigator.userAgent||\"\";if(/iPad|iPhone|iPod/.test(ua))return true;// iPadOS reports itself as a Mac; touch points tell the two apart.\nreturn navigator.platform===\"MacIntel\"&&navigator.maxTouchPoints>1;}export function withRevealStoreButton(Component){const Revealed=withReveal(Component);return function WithRevealStoreButton(props){const hostRef=useRef(null);useEffect(()=>{if(document.getElementById(LABEL_STYLE_ID)==null){const tag=document.createElement(\"style\");tag.id=LABEL_STYLE_ID;tag.textContent=LABEL_CSS;document.head.appendChild(tag);}const host=hostRef.current;if(!host)return;const anchor=host.tagName===\"A\"?host:host.closest(\"a\")||host.querySelector(\"a\");if(!anchor)return;anchor.href=isAppleMobile()?IOS_URL:ANDROID_URL;},[]);const className=props.className?props.className+\" \"+LABEL_CLASS_NAME:LABEL_CLASS_NAME;return /*#__PURE__*/_jsx(\"div\",{ref:hostRef,style:{display:\"contents\"},\"data-kc-store-button\":\"\",children:/*#__PURE__*/_jsx(Revealed,{...props,className:className})});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withRevealStoreButton\":{\"type\":\"reactHoc\",\"name\":\"withRevealStoreButton\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRevealLightLabel\":{\"type\":\"reactHoc\",\"name\":\"withRevealLightLabel\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withReveal\":{\"type\":\"reactHoc\",\"name\":\"withReveal\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SectionReveal.map","// Generated by Framer (7f863c8)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Nunito Sans-variable-regular\"]);const variationAxes=[{defaultValue:200,maxValue:1e3,minValue:200,name:\"Weight\",tag:\"wght\"},{defaultValue:100,maxValue:125,minValue:75,name:\"Width\",tag:\"wdth\"},{defaultValue:12,maxValue:12,minValue:6,name:\"Optical size\",tag:\"opsz\"},{defaultValue:500,maxValue:540,minValue:440,name:\"YTLC\",tag:\"YTLC\"}];export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Nunito Sans Variable\",source:\"google\",style:\"normal\",uiFamilyName:\"Nunito Sans\",url:\"https://fonts.gstatic.com/s/nunitosans/v19/pe0qMImSLYBIv1o4X1M8cfe_Kdpickwp.woff2\",variationAxes,weight:\"400\"}]}];export const css=['.framer-9F5Px .framer-styles-preset-10gaqt6:not(.rich-text-wrapper), .framer-9F5Px .framer-styles-preset-10gaqt6.rich-text-wrapper h2 { --framer-font-family: \"Nunito Sans Variable\", \"Nunito Sans Variable Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 60px; --framer-font-style: normal; --framer-font-variation-axes: \"wght\" 700; --framer-font-weight: 400; --framer-letter-spacing: -0.025em; --framer-line-height: 1.1em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-5e665805-5204-464e-9d29-6d59cc52f016); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; --framer-text-wrap: balance; }','@media (max-width: 1439px) and (min-width: 810px) { .framer-9F5Px .framer-styles-preset-10gaqt6:not(.rich-text-wrapper), .framer-9F5Px .framer-styles-preset-10gaqt6.rich-text-wrapper h2 { --framer-font-family: \"Nunito Sans Variable\", \"Nunito Sans Variable Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 48px; --framer-font-style: normal; --framer-font-variation-axes: \"wght\" 700; --framer-font-weight: 400; --framer-letter-spacing: -0.025em; --framer-line-height: 1.1em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-5e665805-5204-464e-9d29-6d59cc52f016); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; --framer-text-wrap: balance; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-9F5Px .framer-styles-preset-10gaqt6:not(.rich-text-wrapper), .framer-9F5Px .framer-styles-preset-10gaqt6.rich-text-wrapper h2 { --framer-font-family: \"Nunito Sans Variable\", \"Nunito Sans Variable Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 34px; --framer-font-style: normal; --framer-font-variation-axes: \"wght\" 700; --framer-font-weight: 400; --framer-letter-spacing: -0.025em; --framer-line-height: 1.1em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-5e665805-5204-464e-9d29-6d59cc52f016); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; --framer-text-wrap: balance; } }'];export const className=\"framer-9F5Px\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (7f863c8)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Nunito Sans-variable-regular\"]);const variationAxes=[{defaultValue:200,maxValue:1e3,minValue:200,name:\"Weight\",tag:\"wght\"},{defaultValue:100,maxValue:125,minValue:75,name:\"Width\",tag:\"wdth\"},{defaultValue:12,maxValue:12,minValue:6,name:\"Optical size\",tag:\"opsz\"},{defaultValue:500,maxValue:540,minValue:440,name:\"YTLC\",tag:\"YTLC\"}];export const fonts=[{explicitInter:true,fonts:[{cssFamilyName:\"Nunito Sans Variable\",source:\"google\",style:\"normal\",uiFamilyName:\"Nunito Sans\",url:\"https://fonts.gstatic.com/s/nunitosans/v19/pe0qMImSLYBIv1o4X1M8cfe_Kdpickwp.woff2\",variationAxes,weight:\"400\"}]}];export const css=['.framer-YmKu6 .framer-styles-preset-cnuc6v:not(.rich-text-wrapper), .framer-YmKu6 .framer-styles-preset-cnuc6v.rich-text-wrapper h6 { --framer-font-family: \"Nunito Sans Variable\", \"Nunito Sans Variable Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 24px; --framer-font-style: normal; --framer-font-variation-axes: \"wght\" 600; --framer-font-weight: 400; --framer-letter-spacing: -0.005em; --framer-line-height: 1.32em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-5e665805-5204-464e-9d29-6d59cc52f016); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 1439px) and (min-width: 810px) { .framer-YmKu6 .framer-styles-preset-cnuc6v:not(.rich-text-wrapper), .framer-YmKu6 .framer-styles-preset-cnuc6v.rich-text-wrapper h6 { --framer-font-family: \"Nunito Sans Variable\", \"Nunito Sans Variable Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 22px; --framer-font-style: normal; --framer-font-variation-axes: \"wght\" 600; --framer-font-weight: 400; --framer-letter-spacing: -0.005em; --framer-line-height: 1.32em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-5e665805-5204-464e-9d29-6d59cc52f016); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 809px) and (min-width: 0px) { .framer-YmKu6 .framer-styles-preset-cnuc6v:not(.rich-text-wrapper), .framer-YmKu6 .framer-styles-preset-cnuc6v.rich-text-wrapper h6 { --framer-font-family: \"Nunito Sans Variable\", \"Nunito Sans Variable Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 20px; --framer-font-style: normal; --framer-font-variation-axes: \"wght\" 600; --framer-font-weight: 400; --framer-letter-spacing: -0.005em; --framer-line-height: 1.32em; --framer-paragraph-spacing: 0px; --framer-text-alignment: start; --framer-text-color: var(--token-5e665805-5204-464e-9d29-6d59cc52f016); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-YmKu6\";\nexport const __FramerMetadata__ = {\"exports\":{\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"+PAQ+wB,SAAS,GAAW,CAAC,IAAM,EAAI,YAAY,IAAI,EAAK,EAAI,EAAe,IAAc,EAAe,EAAI,EAAU,GAAG,IAAM,EAAK,KAAK,IAAI,EAAU,CAAiB,EAAe,MAAb,IAAW,EAAS,EAAK,CAAQ,CAAC,SAAgB,EAAW,EAAU,CAAC,OAAO,SAAoB,EAAM,CAAC,IAAM,EAAIA,EAAO,IAAI,EAAQ,EAAS,EAAoB,EAAQ,EAAa,EAAiB,EAAQ,EAAO,EAAU,EAAI,CAAQ,EAAO,CAAC,EAAM,GAAUC,EAAS,IAAI,EACzsC,GAD2sC,MAAc,CAAI,GAAQ,IAAQ,MAAK,EAAS,EAAU,CAAC,CAAE,EAAE,CAAC,EAAO,CAAK,CAAC,EACrxC,EAAS,OAAoB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAE,IAAM,EAAK,EAAa,EAAE,EAAW,EAAM,IAAQ,KAAK,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,QAAQ,CAAC,QAAQ,EAAE,EAAE,CAAI,EAAE,QAAQ,EAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAI,EAAE,WAAW,CAAC,EAAE,CAAC,GAAG,EAAY,MAAM,GAAO,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAK,MAAM,GAAO,CAAC,CAAC,CAAC,CAAC,CAAE,CAAE,CAKyH,SAAgB,EAAqB,EAAU,CAAC,IAAM,EAAS,EAAW,CAAS,EAAE,OAAO,SAA8B,EAAM,CAAC,MAAc,CAAC,GAAG,SAAS,eAAe,CAAc,EAAE,OA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