{"version":3,"file":"LatestDownload.DuVhtHOb.mjs","names":["React.forwardRef","useState","__esmMin","init_npm_react_18_3_1","J","init_jsx_runtime","ce","_e","motion","init_framer_DxfB3JJo","useSVGTemplate","cx","addPropertyControls","withCSS","ControlType","mask","Base","MotionSVG","SVG","svg","getProps","Icon","init_YjKCOobRT","props","rest","animated","color","width1","alpha","restProps","href","className","qxTvv_EBh","ezTt3ayMo","lschgej4H","style","resolveArtifactUrl","data","artifacts","list","pref","PREFERRED","hit","key","value","a","withLatestDownloadHref","Target","Component","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,qTACgM,EAAK,0BAAgC,EAAkB,gBAAW,SAAS,EAAM,EAAI,CAAC,MAAoB,gBAAK,MAAM,CAAC,GAAGuB,EAAU,MAAI,SAASA,EAAM,QAAQ,CAAC,CAAE,CAAC,EAAQ,EAAUf,EAAO,OAAOQ,CAAI,EAAQ,EAAiB,iBAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAGQ,GAAMD,EAAM,OAAOE,EAAsB,gBAAKR,EAAU,CAAC,GAAGO,EAAc,WAAa,MAAa,UAAQ,CAAC,EAAe,gBAAK,MAAM,CAAC,GAAGA,EAAS,MAAa,UAAQ,CAAC,CAAE,CAAC,EAAQ,EAAI,8rCAAosC,GAAU,CAAC,QAAM,QAAM,SAAO,KAAG,QAAM,SAAO,GAAGD,MAAgB,CAAC,GAAGA,EAAM,UAAUG,GAAOH,EAAM,WAAW,eAAe,UAAUI,GAAQJ,EAAM,WAAW,IAAI,UAAUK,GAAOL,EAAM,SAAS,GAUnhE,EAAKV,EAV+iEb,kBAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,YAAU,YAAU,GAAG6B,GAAWT,EAASG,CAAK,EAAQO,EAAKpB,EAAe,aAAaS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