{"version":3,"file":"NGHowItWorks.CIBaAkPC.mjs","names":["React.useState","React.useRef","_Fragment"],"sources":["https:/framerusercontent.com/modules/eTVEHjljNfXgcGwunezj/iJOWL56oKhfHxVSyszYJ/NGHowItWorks.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";function withDefaults(props,defs){const out={...defs};for(const k in props)if(props[k]!==undefined)out[k]=props[k];return out;}/**\n * NGHowItWorks — \"Four steps, one gate.\" Panel with 4 steps and the\n * packet animation: an accent packet travels the line, a prohibited\n * packet drops at the gateway. Static on canvas.\n *\n * @framerDisableUnlink\n * @framerSupportedLayoutWidth any\n */const T={panel:\"#0E1220\",line:\"rgba(154,170,220,.10)\",lineSoft:\"rgba(154,170,220,.06)\",text:\"#EEF1F8\",mut:\"#98A0B4\",dim:\"#767E96\",accent:\"#35BE70\",accentBright:\"#62D993\",stop:\"#D97C7C\",disp:\"'Gabarito', sans-serif\",body:\"'Hanken Grotesk', sans-serif\",mono:\"'JetBrains Mono', monospace\"};function useFonts(){React.useEffect(()=>{if(document.getElementById(\"ng-fonts\"))return;const l=document.createElement(\"link\");l.id=\"ng-fonts\";l.rel=\"stylesheet\";l.href=\"https://fonts.googleapis.com/css2?family=Gabarito:wght@500;600;700&family=Hanken+Grotesk:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap\";document.head.appendChild(l);},[]);}function useW(ref){const[w,setW]=React.useState(1200);React.useEffect(()=>{if(!ref.current)return;const ro=new ResizeObserver(es=>{for(const e of es)setW(e.contentRect.width);});ro.observe(ref.current);return()=>ro.disconnect();},[]);return w;}const css=`\n@keyframes nghiwPacket{0%{left:2%;opacity:0}8%{opacity:1}46%{left:47%;opacity:1}54%{left:53%;opacity:1}92%{opacity:1;left:97%}100%{left:97%;opacity:0}}\n@keyframes nghiwDrop{0%,44%{opacity:0;transform:translate(0,0) scale(.6)}52%{opacity:1;transform:translate(0,10px) scale(1)}86%{opacity:0;transform:translate(0,34px) scale(.7)}100%{opacity:0}}\n.nghiw-mlink{transition:color .2s,border-color .2s}\n.nghiw-mlink:hover{color:${T.text} !important;border-color:${T.accent} !important}\n@media (prefers-reduced-motion:reduce){.nghiw-anim{animation:none !important}}\n`;export default function NGHowItWorks(props){const{vlabel,headlinePlain,headlineAccent,sideNote,steps,footerNote,linkText,linkUrl,style}=withDefaults(props,DEFAULTS);useFonts();const ref=React.useRef(null);const w=useW(ref);const onCanvas=RenderTarget.current()===RenderTarget.canvas;const narrow=w<1100;const mobile=w<640;const list=steps||[];const cols=mobile?1:w<1100?2:Math.min(Math.max(list.length,4),5);return /*#__PURE__*/_jsxs(\"section\",{ref:ref,id:\"how\",style:{...style,height:\"auto\",width:\"100%\",borderTop:`1px solid ${T.lineSoft}`,padding:mobile?\"80px 0\":\"112px 0\",position:\"relative\",fontFamily:T.body,color:T.text},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:css}}),!narrow&&/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",top:112,left:40,fontFamily:T.mono,fontSize:10,letterSpacing:\"0.26em\",color:T.dim,textTransform:\"uppercase\",writingMode:\"vertical-rl\",transform:\"rotate(180deg)\"},children:vlabel}),/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:1216,margin:\"0 auto\",padding:mobile?\"0 20px\":narrow?\"0 40px\":\"0 40px 0 132px\"},children:[narrow&&!mobile&&/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:T.mono,fontSize:10,letterSpacing:\"0.26em\",color:T.dim,textTransform:\"uppercase\",marginBottom:20},children:vlabel}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"flex-end\",gap:40,marginBottom:50,flexWrap:\"wrap\"},children:[/*#__PURE__*/_jsxs(\"h2\",{style:{fontFamily:T.disp,fontWeight:600,fontSize:\"clamp(34px, 3.8vw, 46px)\",lineHeight:1.05,letterSpacing:\"-0.022em\",margin:0,maxWidth:\"16ch\"},children:[headlinePlain,\" \",/*#__PURE__*/_jsx(\"span\",{style:{color:T.accentBright},children:headlineAccent})]}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:15,color:T.mut,maxWidth:\"38ch\",margin:0},children:sideNote})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",border:`1px solid ${T.line}`,borderRadius:10,background:T.panel,padding:mobile?\"36px 22px 30px\":\"44px 32px 36px\",overflow:\"hidden\"},children:[!mobile&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",left:32,right:32,top:78,height:1,background:T.line}}),/*#__PURE__*/_jsx(\"span\",{className:\"nghiw-anim\",\"aria-hidden\":\"true\",style:{position:\"absolute\",top:74,width:9,height:9,borderRadius:\"50%\",background:T.accent,boxShadow:\"0 0 14px rgba(53,190,112,.9)\",animation:onCanvas?\"none\":\"nghiwPacket 7s cubic-bezier(.4,0,.6,1) infinite\",left:onCanvas?\"47%\":undefined}}),/*#__PURE__*/_jsx(\"span\",{className:\"nghiw-anim\",\"aria-hidden\":\"true\",style:{position:\"absolute\",top:74,left:\"47%\",width:7,height:7,borderRadius:\"50%\",background:T.stop,animation:onCanvas?\"none\":\"nghiwDrop 7s cubic-bezier(.4,0,.6,1) infinite\",opacity:onCanvas?0:undefined}})]}),/*#__PURE__*/_jsx(\"div\",{style:{display:\"grid\",gridTemplateColumns:`repeat(${cols}, 1fr)`,gap:24,position:\"relative\"},children:list.map((s2,i)=>/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"baseline\",gap:8,fontFamily:T.mono,fontSize:10,letterSpacing:\"0.16em\",color:T.dim,textTransform:\"uppercase\",marginBottom:mobile?12:38},children:[/*#__PURE__*/_jsx(\"span\",{children:String(i+1).padStart(2,\"0\")}),s2&&s2.eta?/*#__PURE__*/_jsx(\"span\",{style:{letterSpacing:\"0.06em\",color:T.faint,textTransform:\"none\",whiteSpace:\"nowrap\"},children:s2.eta}):null]}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:T.disp,fontWeight:600,fontSize:19,letterSpacing:\"-0.01em\",marginBottom:8},children:s2.title}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:14,color:T.mut,margin:0,maxWidth:\"26ch\"},children:s2.text})]},i))}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",alignItems:\"center\",marginTop:34,paddingTop:20,borderTop:`1px solid ${T.lineSoft}`,flexWrap:\"wrap\",gap:16},children:[/*#__PURE__*/_jsxs(\"span\",{style:{fontFamily:T.mono,fontSize:11.5,color:T.dim},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:T.stop},children:\"■\"}),\" \",footerNote]}),/*#__PURE__*/_jsx(\"a\",{className:\"nghiw-mlink\",href:linkUrl,style:{fontFamily:T.mono,fontSize:13,color:T.mut,borderBottom:\"1px solid rgba(154,170,220,.25)\",paddingBottom:2,textDecoration:\"none\"},children:linkText})]})]})]})]});}const DEFAULTS={vlabel:\"How it works — in short\",headlinePlain:\"Four steps, one\",headlineAccent:\"gate.\",sideNote:\"Prohibited destinations are dropped at our gateway, in the EU — not on the user's device, and not on trust.\",steps:[{title:\"Integrate the SDK\",text:\"Async, off the UI thread, inactive until consent exists.\"},{title:\"The user opts in\",text:\"One dialog, two equal buttons, a written record either way.\"},{title:\"Idle bandwidth is shared\",text:\"Wi-Fi only, charging only. Filtered and logged at the EU gateway.\"},{title:\"You get paid per device\",text:\"Per consenting active device, monthly, terms set in the agreement.\"}],footerNote:\"prohibited destinations dropped at the gateway\",linkText:\"read the full mechanics →\",linkUrl:\"/how-it-works\"};NGHowItWorks.defaultProps=DEFAULTS;addPropertyControls(NGHowItWorks,{vlabel:{type:ControlType.String,title:\"Side label\"},headlinePlain:{type:ControlType.String,title:\"H2 plain\"},headlineAccent:{type:ControlType.String,title:\"H2 accent\"},sideNote:{type:ControlType.String,title:\"Note\",displayTextArea:true},steps:{type:ControlType.Array,title:\"Steps\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String},text:{type:ControlType.String,displayTextArea:true},eta:{type:ControlType.String,title:\"ETA (mono)\"}}},maxCount:6},footerNote:{type:ControlType.String,title:\"Footer note\"},linkText:{type:ControlType.String,title:\"Link text\"},linkUrl:{type:ControlType.Link,title:\"Link URL\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NGHowItWorks\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NGHowItWorks.map"],"mappings":"6MAA4K,SAAS,EAAa,EAAM,EAAK,CAAC,IAAM,EAAI,CAAC,GAAG,CAAI,EAAE,IAAI,IAAM,KAAK,EAAS,EAAM,KAAK,IAAA,KAAU,EAAI,GAAG,EAAM,IAAG,OAAO,CAAI,CAOR,SAAS,GAAU,CAAC,MAAoB,CAAC,GAAG,SAAS,eAAe,UAAU,EAAE,OAAO,IAAM,EAAE,SAAS,cAAc,MAAM,EAAE,EAAE,GAAG,WAAW,EAAE,IAAI,aAAa,EAAE,KAAK,4JAA4J,SAAS,KAAK,YAAY,CAAC,CAAE,EAAE,CAAC,CAAC,CAAE,CAAC,SAAS,EAAK,EAAI,CAAC,GAAK,CAAC,EAAE,GAAMA,EAAe,IAAI,EAAsL,OAApL,MAAoB,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,EAAG,IAAI,eAAe,GAAI,CAAC,IAAI,IAAM,KAAK,EAAG,EAAK,EAAE,YAAY,KAAK,CAAE,CAAC,EAA0B,OAAxB,EAAG,QAAQ,EAAI,OAAO,MAAY,EAAG,WAAW,CAAE,EAAE,CAAC,CAAC,EAAS,CAAE,CAM33B,SAAwB,EAAa,EAAM,CAAC,GAAK,C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