{"version":3,"file":"UseIntegrity.Db4clpl6.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/GCJS9AXdLkJLMXFb9eIs/m5iSu6pqXRNn0RTPlJ2u/CorruptionMeter.js","https:/framerusercontent.com/modules/oizmpz2B2IK4hgMPpPPd/sAQufElogLNSmfLh2vgt/UseIntegrity.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";export function CorruptionMeter({label,progress}){const pct=Math.max(0,Math.min(progress,100));return /*#__PURE__*/_jsxs(\"div\",{style:{width:\"100%\",display:\"grid\",gap:8},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",justifyContent:\"space-between\",fontFamily:\"monospace\",color:\"#6C7280\",fontSize:12},children:[/*#__PURE__*/_jsx(\"span\",{children:label}),/*#__PURE__*/_jsxs(\"span\",{children:[pct,\"%\"]})]}),/*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:10,background:\"#E9ECF4\",borderRadius:6,overflow:\"hidden\",border:\"1px solid #E1E5F0\"},children:/*#__PURE__*/_jsx(\"div\",{style:{width:`${pct}%`,height:\"100%\",background:\"linear-gradient(90deg,#00F0FF 0%, #FF3CAC 100%)\",boxShadow:\"0 0 10px rgba(0,240,255,.35)\",transition:\"width .6s\"}})})]});}addPropertyControls(CorruptionMeter,{label:{type:ControlType.String,defaultValue:\"Signal Integrity\"},progress:{type:ControlType.Number,defaultValue:73,min:0,max:100}});\nexport const __FramerMetadata__ = {\"exports\":{\"CorruptionMeter\":{\"type\":\"reactComponent\",\"name\":\"CorruptionMeter\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CorruptionMeter.map","// UseIntegrity.tsx\nimport*as React from\"react\";const KEY=\"p404_integrity\";export function useIntegrity(defaultValue=73){const read=()=>{if(typeof window===\"undefined\")return defaultValue;const raw=window.localStorage.getItem(KEY);const n=raw!=null?Number(raw):NaN;return Number.isFinite(n)?n:defaultValue;};const[value,setValue]=React.useState(read);React.useEffect(()=>{const onStorage=e=>{if(e.key===KEY)setValue(read());};const onCustom=e=>{const any=e;if(typeof any.detail===\"number\")setValue(any.detail);};window.addEventListener(\"storage\",onStorage);window.addEventListener(\"p404:integrity\",onCustom);return()=>{window.removeEventListener(\"storage\",onStorage);window.removeEventListener(\"p404:integrity\",onCustom);};},[]);const publish=n=>{try{window.localStorage.setItem(KEY,String(n));window.dispatchEvent(new CustomEvent(\"p404:integrity\",{detail:n}));setValue(n);}catch{}};return{value,publish};}\nexport const __FramerMetadata__ = {\"exports\":{\"useIntegrity\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./UseIntegrity.map"],"mappings":"yTAA6G,SAAgB,EAAgB,CAAC,QAAM,YAAU,CAAC,IAAM,EAAI,KAAK,IAAI,EAAE,KAAK,IAAI,EAAS,IAAI,CAAC,CAAC,OAAoB,EAAM,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,QAAQ,OAAO,IAAI,EAAE,CAAC,SAAS,CAAc,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,eAAe,gBAAgB,WAAW,YAAY,MAAM,UAAU,SAAS,GAAG,CAAC,SAAS,CAAc,EAAK,OAAO,CAAC,SAAS,EAAM,CAAC,CAAc,EAAM,OAAO,CAAC,SAAS,CAAC,EAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAc,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,GAAG,WAAW,UAAU,aAAa,EAAE,SAAS,SAAS,OAAO,oBAAoB,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,EAAI,GAAG,OAAO,OAAO,WAAW,kDAAkD,UAAU,+BAA+B,WAAW,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,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