{"version":3,"file":"LatestDownload.CXeYuRo5.mjs","names":["forwardRef","_jsx","React.forwardRef","useState","useEffect","_jsx","__esmMin","init_npm_react_18_3_1","c","J","init_jsx_runtime","ce","_e","init_framer_ChujFWHC","useSVGTemplate","cx","addPropertyControls","withCSS","ControlType","motion","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_YjKCOobRT","props","ref","animated","layoutId","children","rest","alpha","color","height","id","width","width1","style","className","variant","ezTt3ayMo","lschgej4H","qxTvv_EBh","restProps","href","resolveArtifactUrl","data","artifacts","list","pref","PREFERRED","hit","a","key","value","withLatestDownloadHref","Component","Target","setHref","controller","LATEST_JSON_URL","r","url","init_LatestDownload"],"sources":["https:/framerusercontent.com/modules/Ff2rtPDa6zRgD2KzG8F5/W5yrhc1T4CDFAVzw8tWU/YjKCOobRT.js","https:/framerusercontent.com/modules/Y78SflA8v8H13kRWFjUc/AwUcasm8WBiPxtY65yxI/LatestDownload.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,useSVGTemplate,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask=\"var(--framer-icon-mask)\";const Base=/*#__PURE__*/forwardRef(function(props,ref){return /*#__PURE__*/_jsx(\"svg\",{...props,ref:ref,children:props.children});});const MotionSVG=motion.create(Base);const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(MotionSVG,{...rest,layoutId:layoutId,ref:ref,children:children}):/*#__PURE__*/_jsx(\"svg\",{...rest,ref:ref,children:children});});const svg='<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 9 C 0 4.029 4.029 0 9 0 C 13.971 0 18 4.029 18 9 C 18 13.971 13.971 18 9 18 C 4.029 18 0 13.971 0 9 Z\" fill-opacity=\"var(--1m6trwb, 0)\" fill=\"var(--21h8s6, rgb(0, 0, 0))\" height=\"18px\" id=\"WdmNOfaAH\" transform=\"translate(3 3)\" width=\"18px\"/><path d=\"M 0 9 C 0 4.029 4.029 0 9 0 C 13.971 0 18 4.029 18 9 C 18 13.971 13.971 18 9 18 C 4.029 18 0 13.971 0 9 Z\" fill=\"transparent\" height=\"18px\" id=\"diHj0gu8G\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(3 3)\" width=\"18px\"/><path d=\"M 0 0 L 3 3 L 6 0\" fill=\"transparent\" height=\"3px\" id=\"Cg1llWNV_\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(9 12.75)\" width=\"6px\"/><path d=\"M 0 0 L 0 7.5\" fill=\"transparent\" height=\"7.5px\" id=\"lrRzwZUUA\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"var(--pgex8v, 1.5)\" stroke=\"var(--21h8s6, rgb(0, 0, 0))\" transform=\"translate(12 8.25)\" width=\"1px\"/></svg>';const getProps=({alpha,color,height,id,width,width1,...props})=>{return{...props,ezTt3ayMo:color??props.ezTt3ayMo??\"rgb(0, 0, 0)\",lschgej4H:width1??props.lschgej4H??1.5,qxTvv_EBh:alpha??props.qxTvv_EBh};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,ezTt3ayMo,lschgej4H,qxTvv_EBh,...restProps}=getProps(props);const href=useSVGTemplate(\"2442012495\",svg);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-jlM3H\",className),layoutId:layoutId,ref:ref,role:\"presentation\",style:{\"--1m6trwb\":qxTvv_EBh,\"--21h8s6\":ezTt3ayMo,\"--pgex8v\":lschgej4H,...style},viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"use\",{href:href})});});const css=[`.framer-jlM3H { -webkit-mask: ${mask}; aspect-ratio: 1; display: block; mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"ezTt3ayMo\":\"color\",\"lschgej4H\":\"width1\",\"qxTvv_EBh\":\"alpha\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"Arrow Circle Down\",\"color\":{\"type\":\"variable\",\"value\":\"21h8s6\"},\"set\":{\"localId\":\"vectorSet/NGVKdicsm\",\"id\":\"NGVKdicsm\",\"moduleId\":\"omX0gWFPqDwhaiWwf6ab\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-jlM3H\");Icon.displayName=\"Arrow Circle Down\";export default Icon;addPropertyControls(Icon,{ezTt3ayMo:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Color\",type:ControlType.Color},lschgej4H:{defaultValue:1.5,displayStepper:true,hidden:false,max:6,min:0,step:.5,title:\"Width\",type:ControlType.Number},qxTvv_EBh:{defaultValue:0,displayStepper:true,hidden:false,max:1,min:0,step:.1,title:\"Alpha\",type:ControlType.Number}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"24\",\"framerImmutableVariables\":\"true\",\"framerDisableUnlink\":\"true\",\"framerVariables\":\"{\\\"ezTt3ayMo\\\":\\\"color\\\",\\\"lschgej4H\\\":\\\"width1\\\",\\\"qxTvv_EBh\\\":\\\"alpha\\\"}\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"24\",\"framerVector\":\"{\\\"name\\\":\\\"Arrow Circle Down\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"21h8s6\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/NGVKdicsm\\\",\\\"id\\\":\\\"NGVKdicsm\\\",\\\"moduleId\\\":\\\"omX0gWFPqDwhaiWwf6ab\\\"}}\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Code override that points a link layer's `href` at the latest EverMe\n// desktop download, resolved from the app team's stable JSON manifest.\n//\n// Apply `withLatestDownloadHref` to the `<a>` layer (or any code component\n// with an `href` prop) that should trigger the download. On mount it fetches\n// https://updates.evermind.ai/everme/stable/latest.json and sets `href` to the\n// newest artifact URL. Until that resolves — or if it fails — the layer stays\n// disabled (no `href`, no pointer events) rather than pointing at a stale\n// download.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";// The app team publishes the latest version info here.\nconst LATEST_JSON_URL=\"https://updates.evermind.ai/everme/stable/latest.json\";// Preferred artifacts, in priority order. Only `darwin`/`arm64` exists today;\n// add more entries as the app team ships more platforms.\nconst PREFERRED=[{platform:\"darwin\",arch:\"arm64\"},{platform:\"darwin\"}];// Pick the download URL from the manifest: first artifact matching a\n// PREFERRED entry, else the first artifact with a url.\nfunction resolveArtifactUrl(data){if(typeof data!==\"object\"||data===null)return null;const artifacts=data.artifacts;if(!Array.isArray(artifacts))return null;const list=artifacts;for(const pref of PREFERRED){const hit=list.find(a=>Object.entries(pref).every(([key,value])=>!value||a?.[key]===value));if(hit?.url)return hit.url;}return list.find(a=>a?.url)?.url??null;}// Keep the literal `ComponentType` parameter/return annotations: Framer only\n// classifies an export as an override when the signature names\n// `ComponentType` directly — an alias makes it show up as a component.\nexport function withLatestDownloadHref(Component){// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst Target=Component;return props=>{const[href,setHref]=useState(null);useEffect(()=>{const controller=new AbortController;fetch(LATEST_JSON_URL,{signal:controller.signal}).then(async r=>{if(!r.ok)throw new Error(`HTTP ${r.status}`);return r.json();}).then(data=>{const url=resolveArtifactUrl(data);if(url)setHref(url);}).catch(()=>{// Leave the layer disabled — better than sending people to a\n// stale build.\n});return()=>controller.abort();},[]);if(!href){return /*#__PURE__*/_jsx(Target,{...props,href:undefined,onClick:e=>e.preventDefault(),\"aria-disabled\":\"true\",tabIndex:-1,style:{...props.style,pointerEvents:\"none\",opacity:.5,cursor:\"default\"}});}return /*#__PURE__*/_jsx(Target,{...props,href:href});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withLatestDownloadHref\":{\"type\":\"reactHoc\",\"name\":\"withLatestDownloadHref\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LatestDownload.map"],"mappings":"A,qTACgMoB,EAAK,0BAAgCC,EAAkBrB,gBAAW,SAAS4B,EAAMC,EAAI,CAAC,MAAoB5B,gBAAK,MAAM,CAAC,GAAG2B,EAAUC,MAAI,SAASD,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQN,EAAUH,EAAO,OAAOE,CAAI,EAAQE,EAAiBvB,iBAAY4B,EAAMC,IAAM,CAAC,GAAK,CAACC,WAASC,WAASC,WAAS,GAAGC,GAAML,EAAM,OAAOE,EAAsB7B,gBAAKqB,EAAU,CAAC,GAAGW,EAAcF,WAAaF,MAAaG,UAAQ,CAAC,EAAe/B,gBAAK,MAAM,CAAC,GAAGgC,EAASJ,MAAaG,UAAQ,CAAC,CAAE,CAAC,EAAQR,EAAI,8rCAAosCC,GAAU,CAACS,QAAMC,QAAMC,SAAOC,KAAGC,QAAMC,SAAO,GAAGX,MAAgB,CAAC,GAAGA,EAAM,UAAUO,GAAOP,EAAM,WAAW,eAAe,UAAUW,GAAQX,EAAM,WAAW,IAAI,UAAUM,GAAON,EAAM,SAAS,GAUnhEF,EAAKT,EAV+iEf,kBAAiB,SAAS0B,EAAMC,EAAI,CAAC,GAAK,CAACW,QAAMC,YAA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