PageSourceSearch

https://previly.com/_next/static/chunks/3vzupmq-q8zhq.js

js previly.com collected 2026-10-04 08:08:27 UTC 11,485 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,40459,e=>{"use strict";var t=e.i(89788),s=e.i(38122),l=e.i(12714),r=e.i(98443),a=e.i(55672),n=e.i(28129);let i="https://downloads.previly.com/desktop",o={windows:"",mac:"",macArm:"",linux:"",linuxDeb:"",version:""};async function c(){try{let e=await fetch(`${i}/latest.yml`,{cache:"no-store"});if(!e.ok)throw Error("Failed to fetch latest.yml");let t=await e.text(),s=function(e){try{let t=e.match(/^version:\s*(.+)$/m),s=e.match(/^path:\s*(.+)$/m);if(t&&s)return{version:t[1].trim(),path:s[1].trim()}}catch(e){console.error("Failed to parse latest.yml:",e)}return null}(t);if(s){let e=s.version;return{windows:`${i}/previly-setup-${e}.exe`,mac:`${i}/previly-x64-${e}.dmg`,macArm:`${i}/previly-arm64-${e}.dmg`,linux:`${i}/previly-${e}.AppImage`,linuxDeb:`${i}/previly-${e}.deb`,version:e}}}catch(e){console.error("Failed to fetch download links:",e)}return o}function x(e){switch(e){case"windows":return(0,t.jsx)("svg",{className:"w-8 h-8",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M0 3.449L9.75 2.1v9.451H0m10.949-9.602L24 0v11.4H10.949M0 12.6h9.75v9.451L0 20.699M10.949 12.6H24V24l-12.9-1.801"})});case"mac":return(0,t.jsx)("svg",{className:"w-8 h-8",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})});case"linux":return(0,t.jsx)("svg",{className:"w-8 h-8",fill:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{d:"M12.504 0c-.155 0-.315.008-.48.021-4.226.333-3.105 4.807-3.17 6.298-.076 1.092-.3 1.953-1.05 3.02-.885 1.051-2.127 2.75-2.716 4.521-.278.832-.41 1.684-.287 2.489a.424.424 0 00-.11.135c-.26.268-.45.6-.663.839-.199.199-.485.267-.797.4-.313.136-.658.269-.864.68-.09.189-.136.394-.132.602 0 .199.027.4.055.536.058.399.116.728.04.97-.249.68-.28 1.145-.106 1.484.174.334.535.47.94.601.81.2 1.91.135 2.774.6.926.466 1.866.67 2.616.47.526-.116.97-.464 1.208-.946.587.26 1.156.59 1.764.808.576.2 1.143.341 1.735.27.366-.042.772-.2 1.228-.528 2.544-2.548-.368-5.097-.382-6.543-.01-1.023.083-1.9.264-2.645.173-.733.356-1.405.56-2.056.158-.48.324-.952.505-1.43.113-.299.238-.596.343-.89.088-.244.198-.5.259-.698.095-.336.203-.68.296-1.036.135-.468.245-.95.354-1.444.11-.503.225-1.035.33-1.595.066-.288.109-.574.178-.873.07-.303.15-.61.21-.906.125-.602.24-1.21.315-1.8.125-.95.22-1.98.107-2.832-.123-.968-.5-1.818-1.102-2.412-.568-.548-1.376-.886-2.274-.886zm-.045 1c.625 0 1.186.276 1.612.67.478.445.78 1.085.88 1.843.095.714.002 1.584-.12 2.517-.075.577-.19 1.17-.31 1.755-.058.29-.099.565-.165.846-.068.29-.146.59-.216.884-.102.426-.207.848-.327 1.28-.09.335-.195.668-.288.997-.056.179-.16.42-.24.645-.1.28-.222.572-.332.863-.18.47-.35.942-.5 1.402-.2.635-.38 1.294-.547 2.007-.175.72-.26 1.568-.25 2.552.013 1.255 2.52 3.368.696 5.21-.27.263-.55.447-.836.55-.404.14-.806.07-1.25-.106-.444-.178-.9-.445-1.4-.706-.532-.28-1.088-.557-1.733-.693-.442-.09-.9-.117-1.314-.09.098-.16.187-.33.27-.505.063-.134.133-.282.183-.43.05-.148.098-.304.13-.47.065-.333.04-.724-.05-1.11l-.03-.096c-.038-.138-.046-.352-.04-.535a.75.75 0 01.03-.206c.017-.04.05-.082.097-.138.115-.132.26-.31.43-.514.165-.195.325-.43.456-.71.105-.227.188-.5.196-.803.008-.33-.066-.688-.206-1.084-.14-.396-.31-.81-.505-1.254-.37-.854-.797-1.797-1.116-2.728-.32-.934-.53-1.86-.437-2.634.094-.773.41-1.437.916-2.054.88-1.058 1.075-2.062 1.154-3.188.036-.502.042-.996.062-1.455.02-.46.05-.885.092-1.245.118-1.018.332-1.72.703-2.168.36-.436.834-.7 1.457-.7z"})});default:return(0,t.jsx)("svg",{className:"w-8 h-8",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})})}}e.s(["default",0,function(){let{t:e}
1=(0,r.useTranslations)("download"),[d,m]=(0,s.useState)("unknown"),[p,h]=(0,s.useState)(!1),[u,f]=(0,s.useState)(o),[v,w]=(0,s.useState)(!0);(0,s.useEffect)(()=>{let e;h(!0),m((e=window.navigator.userAgent.toLowerCase()).includes("win")?"windows":e.includes("mac")?"mac":e.includes("linux")?"linux":"unknown"),c().then(e=>{f(e),w(!1)})},[]);let j=(()=>{switch(d){case"windows":return{url:u.windows,label:e("platforms.windows.button")};case"mac":return{url:u.mac,label:e("platforms.mac.button")};case"linux":return{url:u.linux,label:e("platforms.linux.button")};default:return{url:"",label:e("allDownloads")}}})(),b=""!==u.version,g=(s,l,r)=>(0,t.jsxs)("div",{className:"bg-white rounded-[22px] p-8 text-center border border-lavender-pale",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-lavender-pale rounded-2xl flex items-center justify-center mx-auto mb-4 text-royal",children:x(s)}),(0,t.jsx)("h3",{className:"font-display text-xl text-royal mb-2",children:e(`platforms.${s}.title`)}),(0,t.jsx)("p",{className:"text-ink-muted text-sm mb-5",children:e(`platforms.${s}.requirements`)}),(0,t.jsx)("div",{className:"flex flex-col gap-2 items-center",children:l?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("a",{href:l,className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-royal text-white rounded-full font-semibold text-[15px] hover:bg-coral transition-colors",children:[(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})}),e(`platforms.${s}.button`)]}),r&&(0,t.jsx)("a",{href:r.url,className:"text-sm text-royal hover:text-coral transition-colors",children:r.label})]}):(0,t.jsx)("span",{className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-lavender-pale text-ink-muted rounded-full font-medium cursor-not-allowed",children:e("hero.loading")})})]}),y=[{key:"autoUpdate",icon:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})},{key:"secure",icon:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})},{key:"fast",icon:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M13 10V3L4 14h7v7l9-11h-7z"})},{key:"offline",icon:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9"})}];return(0,t.jsxs)("main",{className:"min-h-screen bg-cream",children:[(0,t.jsx)(a.default,{}),(0,t.jsxs)("section",{className:"max-w-[1220px] mx-auto px-4 sm:px-8 pt-14 sm:pt-[90px] pb-12 text-center",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-4 mb-2.5",children:[(0,t.jsx)("span",{className:"h-px w-10 bg-lavender"}),(0,t.jsx)("span",{className:"text-[13px] font-bold tracking-[0.14em] uppercase text-coral",children:e("kicker")}),(0,t.jsx)("span",{className:"h-px w-10 bg-lavender"})]}),(0,t.jsx)("h1",{className:"font-display text-[clamp(42px,5vw,64px)] leading-[1.02] tracking-[-0.03em] text-royal mb-4",children:e("hero.title")}),(0,t.jsx)("p",{className:"text-[17.5px] leading-relaxed text-ink-soft mb-8 max-w-2xl mx-auto text-pretty",children:e("hero.description")}),p&&(0,t.jsxs)("div",{children:[v?(0,t.jsxs)("div",{className:"inline-flex items-center gap-3 px-8 py-4 bg-lavender-pale text-ink-muted rounded-full font-semibold text-lg cursor-wait",children:[(0,t.jsxs)("svg",{className:"animate-spin h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e("hero.loading")]}):b?(0,t.jsxs)("a",{href:j.url,className:"inline-flex items-center gap-3 px-8 py-4 bg-coral text-white rounded-full font-semibold text-lg shadow-[0_10px_30px_rgba(255,107,107,0.35)] hover:bg-royal transition-colors",children:[x(d),j.label]}):(0,t.jsx)("p",{className:"text-ink-muted",children:e("hero.unavailable")}),b&&(0,t.jsxs)("p",{className:"mt-4 text-sm text-ink-muted",children:["v",u.version," • ",e("hero.free")]})]})]}),(0,t.jsxs)("section",{className:"max-w-[1220px] mx-auto px-4 sm:px-8 py-10",children:[(0,t.jsx)("h2",{className:"font-display text-[clamp(28px,3.2vw,38px)] tracking-[-0.02em] text-royal text-center mb-9",children:e("platforms.title")}),(0,t.jsxs)("div",{className:"grid md:grid-cols-3 gap-5.5",children:[g("windows",u.windows),g("mac",u.mac,{url:u.macArm,label:e("platforms.mac.arm")}),g("linux",u.linux,{url:u.linuxDeb,label:e("platforms.linux.deb")})]}),(0,t.jsx)("div",{className:"text-center mt-10",children:(0,t.jsxs)("a",{href:i,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-royal hover:text-coral transition-colors",children:[e("allDownloads")," →"]})})]}),(0,t.jsxs)("section",{className:"max-w-[1000px] mx-auto px-4 sm:px-8 py-12",children:[(0,t.jsx)("h2",{className:"font-display text-[clamp(28px,3.2vw,38px)] tracking-[-0.02em] text-royal text-center mb-9",children:e("features.title")}),(0,t.jsx)("div",{className:"grid md:grid-cols-2 gap-5",children:y.map(({key:s,icon:l})=>(0,t.jsxs)("div",{className:"flex gap-4 p-6 bg-white rounded-[22px] border border-lavender-pale",children:[(0,t.jsx)("div",{className:"w-12 h-12 bg-lavender-pale rounded-2xl flex items-center justify-center flex-shrink-0",children:(0,t.jsx)("svg",{className:"w-6 h-6 text-royal",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"font-display text-lg text-royal mb-1",children:e(`features.${s}.title`)}),(0,t.jsx)("p",{className:"text-[14.5px] leading-relaxed text-pretty",children:e(`features.${s}.description`)})]})]},s))})]}),(0,t.jsx)("section",{className:"max-w-[1220px] mx-auto px-4 sm:px-8 pb-16 sm:pb-[90px]",children:(0,t.jsxs)("div",{className:"bg-royal rounded-[30px] p-8 sm:p-14 text-center shadow-[0_26px_60px_rgba(18,24,150,0.28)]",children:[(0,t.jsx)("h2",{className:"font-display text-2xl sm:text-3xl text-white mb-3",children:e("webApp.title")}),(0,t.jsx)("p",{className:"text-lavender mb-8 max-w-xl mx-auto text-pretty",children:e("webApp.description")}),(0,t.jsxs)(l.default,{href:"https://app.previly.com",className:"inline-flex items-center gap-2 px-8 py-4 bg-coral text-white rounded-full font-semibold hover:bg-white hover:text-royal transition-colors",children:[e("webApp.button"),(0,t.jsx)("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})})]})]})}),(0,t.jsx)(n.default,{})]})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.