PageSourceSearch

https://swiftin.dev/_next/static/chunks/a390a3677b556e84.js?dpl=dpl_FStZs86hosd5vQup79MP8jkuaqUH

js swiftin.dev collected 2026-09-24 14:59:56 UTC 18,733 bytes, 17 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="cdc6737f-48c4-be79-e54b-141b719c620f")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,892262,(e,t,n)=>{t.exports=e.r(619571)},517517,e=>{"use strict";let t=null,n=!1,i="phc_w8GD4bqzkMqep3Fw4VXDwEeNxwU4YXE7ZzQjaYGEx95A";async function r(){if(n||!i)return null;try{let r=(await e.A(17660)).default;return r.init(i,{api_host:"https://us.i.posthog.com",person_profiles:"identified_only",capture_pageview:!0,capture_pageleave:!0,persistence:"localStorage+cookie"}),t=r,n=!0,r}catch{return null}}function s(){return t}e.s(["getPostHog",()=>s,"initPostHog",()=>r])},214175,e=>{"use strict";var t=e.i(517517);function n(){let e=new URLSearchParams(window.location.search),t=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"];if(t.some(t=>e.has(t))){let n={};for(let i of t){let t=e.get(i);t&&(n[i]=t)}localStorage.setItem("swiftin_utm",JSON.stringify(n))}}function i(e,n){let i=(0,t.getPostHog)();i&&i.capture(e,{...n,...function(){try{return JSON.parse(localStorage.getItem("swiftin_utm")||"{}")}catch{return{}}}(),...function(){let e=new URLSearchParams(window.location.search),t={};for(let n of["utm_source","utm_medium","utm_campaign","utm_content","utm_term"]){let i=e.get(n);i&&(t[n]=i)}return t}()})}e.s(["persistUtmParams",()=>n,"track",()=>i])},779814,e=>{"use strict";e.i(293618);var t=e.i(439376),n=e.i(15826),i=e.i(165349),r=e.i(698158),s=e.i(622999),a=e.i(331380),o=e.i(436263),c=n,l=e.i(241);function u(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends c.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,o.isHTMLElement)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,i=(0,o.isHTMLElement)(e)&&e.offsetHeight||0,r=getComputedStyle(t),s=this.props.sizeRef.current;s.height=parseFloat(r.height),s.width=parseFloat(r.width),s.top=t.offsetTop,s.left=t.offsetLeft,s.right=n-s.width-s.left,s.bottom=i-s.height-s.top}return null}componentDidUpdate(){}render(){return this.props.children}}function m({children:e,isPresent:i,anchorX:r,anchorY:s,root:a,pop:o}){let m=(0,c.useId)(),f=(0,c.useRef)(null),h=(0,c.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=(0,c.useContext)(l.MotionConfigContext),g=function(...e){return n.useCallback(function(...e){return t=>{let n=!1,i=e.map(e=>{let i=u(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():u(e[t],null)}}}}(...e),e)}(f,e.props?.ref??e?.ref);return(0,c.useInsertionEffect)(()=>{let{width:e,height:t,top:n,left:c,right:l,bottom:u}=h.current;if(i||!1===o||!f.current||!e||!t)return;let d="left"===r?`left: ${c}`:`right: ${l}`,g="bottom"===s?`bottom: ${u}`:`top: ${n}`;f.current.dataset.motionPopId=m;let w=document.createElement("style");p&&(w.nonce=p);let v=a??document.head;return v.appendChild(w),w.sheet&&w.sheet.insertRule(`
3          [data-motion-pop-id="${m}"] {
4            position: absolute !important;
5            width: ${e}px !important;
6            height: ${t}px !important;
7            ${d}px !important;
8            ${g}px !important;
9          }
10        `),()=>{f.current?.removeAttribute("data-motion-pop-id"),v.contains(w)&&v.removeChild(w)}},[i]),(0,t.jsx)(d,{isPresent:i,childRef:f,sizeRef:h,pop:o,children:!1===o?e:c.cloneElement(e,{ref:g})})}let f=({children:e,initial:i,isPresent:s,onExitComplete:o,custom:c,presenceAffectsLayout:l,mode:u,anchorX:d,anchorY:f,root:p})=>{let g=(0,r.useConstant)(h),w=(0,n.useId)(),v=!0,y=(0,n.useMemo)(()=>(v=!1,{id:w,initial:i,isPresent:s,custom:c,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;o&&o()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[s,g,o]);return l&&v&&(y={...y}),(0,n.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[s]),n.useEffect(()=>{s||g.size||!o||o()},[s]),e=(0,t.jsx)(m,{pop:"popLayout"===u,isPresent:s,anchorX:d,anchorY:f,root:p,children:e}),(0,t.jsx)(a.PresenceContext.Provider,{value:y,children:e})};function h(){return new Map}var p=e.i(940012);let g=e=>e.key||"";function w(e){let t=[];
10return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}let v=({children:e,custom:a,initial:o=!0,onExitComplete:c,presenceAffectsLayout:l=!0,mode:u="sync",propagate:d=!1,anchorX:m="left",anchorY:h="top",root:v})=>{let[y,x]=(0,p.usePresence)(d),b=(0,n.useMemo)(()=>w(e),[e]),k=d&&!y?[]:b.map(g),S=(0,n.useRef)(!0),E=(0,n.useRef)(b),L=(0,r.useConstant)(()=>new Map),_=(0,n.useRef)(new Set),[P,C]=(0,n.useState)(b),[j,A]=(0,n.useState)(b);(0,s.useIsomorphicLayoutEffect)(()=>{S.current=!1,E.current=b;for(let e=0;e<j.length;e++){let t=g(j[e]);k.includes(t)?(L.delete(t),_.current.delete(t)):!0!==L.get(t)&&L.set(t,!1)}},[j,k.length,k.join("-")]);let z=[];if(b!==P){let e=[...b];for(let t=0;t<j.length;t++){let n=j[t],i=g(n);k.includes(i)||(e.splice(t,0,n),z.push(n))}return"wait"===u&&z.length&&(e=z),A(w(e)),C(b),null}let{forceRender:M}=(0,n.useContext)(i.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:j.map(e=>{let n=g(e),i=(!d||!!y)&&(b===j||k.includes(n));return(0,t.jsx)(f,{isPresent:i,initial:(!S.current||!!o)&&void 0,custom:a,presenceAffectsLayout:l,mode:u,root:v,onExitComplete:i?void 0:()=>{if(_.current.has(n)||!L.has(n))return;_.current.add(n),L.set(n,!0);let e=!0;L.forEach(t=>{t||(e=!1)}),e&&(M?.(),A(E.current),d&&x?.(),c&&c())},anchorX:m,anchorY:h,children:e},n)})})};e.s(["AnimatePresence",()=>v],779814)},216490,e=>{"use strict";e.s(["BACKEND_URL",0,"https://api.swiftin.dev"])},162128,e=>{"use strict";var t=e.i(216490);let n="swiftin_ext_handoff",i=["iaigckbhcnmpenajggaegcohkglooflp","fhfnfmakgcoolkaalffgdijedkdgegad"];function r(e){window.dispatchEvent(new CustomEvent("swiftin-auth-success",{detail:{access_token:e.access_token,refresh_token:e.refresh_token}}));if(window.chrome?.runtime?.sendMessage)for(let t of i)try{window.chrome.runtime.sendMessage(t,{type:"SUPABASE_AUTH_CALLBACK",payload:{access_token:e.access_token,refresh_token:e.refresh_token}},e=>{if(window.chrome?.runtime?.lastError)return})}catch(e){}}async function s(e){if(!e)return!1;try{let r=await fetch(`${t.BACKEND_URL}/api/v1/auth/ext-handoff`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}),s=await r.json().catch(()=>null);if(!r.ok||!s?.success||!s.code)return!1;let a=s.code;window.dispatchEvent(new CustomEvent("swiftin-connect-code",{detail:{code:a}}));try{localStorage.setItem(n,JSON.stringify({code:a,ts:Date.now()}))}catch{}if(window.chrome?.runtime?.sendMessage)for(let e of i)try{window.chrome.runtime.sendMessage(e,{type:"EXT_HANDOFF_CODE",code:a},()=>{if(window.chrome?.runtime?.lastError)return})}catch{}return!0}catch{return!1}}function a(){try{localStorage.removeItem(n)}catch{}}function o(){a(),window.dispatchEvent(new CustomEvent("swiftin-logout")),localStorage.setItem("swiftin_logout",Date.now().toString()),setTimeout(()=>localStorage.removeItem("swiftin_logout"),2e3)}function c(e){window.dispatchEvent(new CustomEvent("swiftin-subscription-updated",{detail:e?{mode:"push",snapshot:e}:{mode:"pull"}}))}function l(){if(window.chrome?.runtime?.sendMessage)for(let e of i)try{window.chrome.runtime.sendMessage(e,{type:"LOGOUT"},()=>{if(window.chrome?.runtime?.lastError)return})}catch(e){}}e.s(["broadcastAuthEvent",()=>r,"broadcastLogoutEvent",()=>o,"broadcastLogoutToExtensionDirect",()=>l,"broadcastSubscriptionUpdate",()=>c,"clearExtHandoffCode",()=>a,"mintAndDeliverExtCode",()=>s])},247086,e=>{"use strict";var t=e.i(439376),n=e.i(15826),i=e.i(892262);let r=(0,n.createContext)(void 0),s=n.useLayoutEffect;function a({children:e}
10){let[a,o]=(0,n.useState)("system"),[c,l]=(0,n.useState)(!1),u=(0,i.usePathname)();s(()=>{try{let e=localStorage.getItem("swiftin-theme");e&&o(e)}catch{}l(!0)},[]);let d=n.default.useMemo(()=>c?"system"===a?window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark":a:"u">typeof document&&document.documentElement.classList.contains("light")?"light":"dark",[a,c]),m=n.default.useRef(!0);return s(()=>{if(!c)return;let e=document.documentElement,t=u&&u.startsWith("/dashboard")?d:"dark",n="dark"===t?"light":"dark";if(e.setAttribute("data-theme",t),e.classList.contains(t)&&!e.classList.contains(n)){m.current=!1;return}if(m.current||e.classList.add("theme-transitioning"),e.classList.remove(n),e.classList.add(t),e.style.colorScheme=t,!m.current){let t=setTimeout(()=>{e.classList.remove("theme-transitioning")},300);return m.current=!1,()=>clearTimeout(t)}m.current=!1},[d,c,u]),(0,n.useEffect)(()=>{if("system"!==a)return;let e=window.matchMedia("(prefers-color-scheme: light)"),t=()=>{if(o(e=>"system"===e?"system":e),c){let t=document.documentElement,n=e.matches?"light":"dark",i="dark"===n?"light":"dark";t.setAttribute("data-theme",n),t.classList.add("theme-transitioning"),t.classList.remove(i),t.classList.add(n),t.style.colorScheme=n,setTimeout(()=>t.classList.remove("theme-transitioning"),300)}};return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[a,c,u]),(0,t.jsx)(r.Provider,{value:{theme:a,setTheme:e=>{o(e);try{localStorage.setItem("swiftin-theme",e)}catch{}},resolvedTheme:d},children:e})}function o(){let e=(0,n.useContext)(r);if(void 0===e)throw Error("useTheme must be used within a ThemeProvider");return e}e.s(["ThemeProvider",()=>a,"useTheme",()=>o])},70293,e=>{"use strict";var t=e.i(439376),n=e.i(15826),i=e.i(892262),r=e.i(517517),s=e.i(214175);function a(){let e=(0,i.usePathname)(),t=(0,i.useSearchParams)();return(0,n.useEffect)(()=>{let t=(0,r.getPostHog)();t&&t.capture("$pageview",{$current_url:e})},[e,t]),null}function o({children:e}){return(0,n.useEffect)(()=>{try{(0,s.persistUtmParams)();let e=localStorage.getItem("swiftin_analytics_consent");"granted"===e&&(0,r.initPostHog)()}catch{}},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.Suspense,{fallback:null,children:(0,t.jsx)(a,{})}),e]})}e.s(["PostHogProvider",()=>o])},57964,e=>{"use strict";var t=e.i(439376),n=e.i(15826),i=e.i(169698),r=e.i(892262),s=e.i(517517),a=e.i(967051),o=e.i(946168);let c={en:{ariaLabel:"Cookie consent",title:"Analytics cookies",descShort:"Analytics to improve Swiftin. No ads. ",descLong:"We use analytics and masked session recordings to improve Swiftin. No ads, no data selling. ",privacyPolicy:"Privacy Policy",decline:"Decline",accept:"Accept"},ru:{ariaLabel:"Согласие на куки",title:"Аналитические куки",descShort:"Аналитика, чтобы улучшать Swiftin. Без рекламы. ",descLong:"Мы используем аналитику и обезличенные записи сессий, чтобы улучшать Swiftin. Без рекламы и продажи данных. ",privacyPolicy:"Политика конфиденциальности",decline:"Отклонить",accept:"Принять"},es:{ariaLabel:"Consentimiento de cookies",title:"Cookies de analítica",descShort:"Analítica para mejorar Swiftin. Sin anuncios. ",descLong:"Usamos analítica y grabaciones de sesión enmascaradas para mejorar Swiftin. Sin anuncios ni venta de datos. ",privacyPolicy:"Política de privacidad",decline:"Rechazar",accept:"Aceptar"},de:{ariaLabel:"Cookie-Zustimmung",title:"Analyse-Cookies",descShort:"Analyse, um Swiftin zu verbessern. Keine Werbung. ",descLong:"Wir verwenden Analyse und maskierte Sitzungsaufzeichnungen, um Swiftin zu verbessern. Keine Werbung, kein Datenverkauf. ",privacyPolicy:"Datenschutzerklärung",decline:"Ablehnen",accept:"Akzeptieren"},fr:{ariaLabel:"Consentement aux cookies",title:"Cookies d'analyse",descShort:"Analyse pour améliorer Swiftin. Sans publicité. ",descLong:"Nous utilisons l'analyse et des enregistrements de session masqués pour améliorer Swiftin. Sans publicité ni vente de données. ",privacyPolicy:"Politique de confidentialité",decline:"Refuser",accept:"Accepter"},pt:{ariaLabel:"Consentimento de cookies",title:"Cookies de análise",descShort:"Análise para melhorar o Swiftin. Sem anúncios. ",descLong:"Usamos análise e gravações de sessão mascaradas para melhorar o Swiftin. Sem anúncios nem venda de dados. ",privacyPolicy:"Política de Privacidade",decline:"Recusar",accept:"Aceitar"},ja:{ariaLabel:"Cookie の同意",title:"分析用 Cookie",descShort:"Swiftin を改善するための分析。広告なし。",descLong:"Swiftin を改善するために分析とマスクされたセッション記録を使用します。広告なし、データ販売なし。",privacyPolicy:"プライバシーポリシー",decline:"拒否",accept:"同意する"},tr:{ariaLabel:"Çerez izni",title:"Analiz çerezleri",descShort:"Swiftin'i iyileştirmek için analiz. Reklam yok. ",descLong:"Swiftin'i iyileştirmek için analiz ve maskelenmiş oturum kayıtları kullanıyoruz. Reklam yok, veri satışı yok. ",privacyPolicy:"Gizlilik Politikası",decline:"Reddet",accept:"Kabul et"}};
10function l(){let[e,l]=(0,n.useState)(!1),u=(0,r.usePathname)(),{language:d}=(0,o.useLocale)(),m=c[d]||c.en;async function f(){try{localStorage.setItem("swiftin_analytics_consent","granted")}catch{}let e=await (0,s.initPostHog)();e&&e.opt_in_capturing(),(0,a.enableSessionReplay)(),l(!1)}return((0,n.useEffect)(()=>{let e=null;try{e=localStorage.getItem("swiftin_analytics_consent")}catch{return}if(e)return;let t=!1,n=()=>{t||(t=!0,l(!0))},i=setTimeout(n,1e4),r=()=>{window.scrollY>.8*window.innerHeight&&n()};return window.addEventListener("scroll",r,{passive:!0}),()=>{clearTimeout(i),window.removeEventListener("scroll",r)}},[u]),e)?(0,t.jsxs)("div",{className:"fixed bottom-3 right-3 left-3 sm:bottom-6 sm:right-6 sm:left-auto sm:max-w-sm z-[9999]",role:"dialog","aria-label":m.ariaLabel,style:{animation:"fadeSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1)"},children:[(0,t.jsx)("style",{children:`
11                @keyframes fadeSlideUp {
12                    from { opacity: 0; transform: translateY(16px); }
13                    to { opacity: 1; transform: translateY(0); }
14                }
15            `}),(0,t.jsxs)("div",{className:"rounded-xl sm:rounded-2xl border border-border-subtle bg-bg-panel p-3 sm:p-5",style:{backdropFilter:"blur(20px)",boxShadow:"0 8px 32px rgba(0,0,0,0.18), 0 0 0 1px var(--border-subtle) inset"},children:[(0,t.jsxs)("div",{className:"flex items-start gap-2.5 sm:gap-3 mb-2.5 sm:mb-4",children:[(0,t.jsx)("div",{className:"w-7 h-7 sm:w-8 sm:h-8 rounded-lg flex items-center justify-center shrink-0 mt-0.5",style:{background:"rgba(var(--accent-rgb), 0.12)",border:"1px solid rgba(var(--accent-rgb), 0.15)"},children:(0,t.jsxs)("svg",{width:"14",height:"14",className:"sm:w-4 sm:h-4",viewBox:"0 0 24 24",fill:"none",stroke:"var(--accent)",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5"}),(0,t.jsx)("path",{d:"M8.5 8.5v.01"}),(0,t.jsx)("path",{d:"M16 15.5v.01"}),(0,t.jsx)("path",{d:"M12 12v.01"}),(0,t.jsx)("path",{d:"M11 17v.01"}),(0,t.jsx)("path",{d:"M7 14v.01"})]})}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-text-main leading-tight",children:m.title}),(0,t.jsxs)("p",{className:"text-xs text-text-muted mt-1 sm:mt-1.5 leading-snug sm:leading-relaxed",children:[(0,t.jsx)("span",{className:"sm:hidden",children:m.descShort}),(0,t.jsx)("span",{className:"hidden sm:inline",children:m.descLong}),(0,t.jsx)(i.default,{href:"/privacy",className:"text-text-main underline underline-offset-2 hover:no-underline",children:m.privacyPolicy}),"."]})]})]}),(0,t.jsxs)("div",{className:"flex gap-2 sm:gap-2.5",children:[(0,t.jsx)("button",{onClick:function(){try{localStorage.setItem("swiftin_analytics_consent","denied")}catch{}l(!1)},className:"flex-1 px-3 sm:px-4 py-2 sm:py-2.5 rounded-lg sm:rounded-xl text-[13px] sm:text-sm font-medium transition-all border border-border-subtle text-text-muted hover:text-text-main hover:bg-bg-hover bg-transparent cursor-pointer",children:m.decline}),(0,t.jsx)("button",{onClick:f,className:"flex-1 px-3 sm:px-4 py-2 sm:py-2.5 rounded-lg sm:rounded-xl text-[13px] sm:text-sm font-semibold transition-all cursor-pointer",style:{background:"rgba(var(--accent-rgb), 0.12)",border:"1px solid rgba(var(--accent-rgb), 0.15)",color:"var(--accent)"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(var(--accent-rgb), 0.2)"},onMouseLeave:e=>{e.currentTarget.style.background="rgba(var(--accent-rgb), 0.12)"},children:m.accept})]})]})]}):null}e.s(["CookieBanner",()=>l])},821538,e=>{"use strict";var t=e.i(439376),n=e.i(15826),i=e.i(839480),r=e.i(779814);let s=(0,e.i(225830).default)("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);function a(){let[e,a]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{function e(){a(window.scrollY>600)}return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,t.jsx)(r.AnimatePresence,{children:e&&(0,t.jsx)(i.motion.button,{initial:{opacity:0,scale:.8}
15,animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),"aria-label":"Scroll to top",className:"fixed bottom-6 right-6 z-50 flex h-10 w-10 items-center justify-center rounded-full border border-zinc-700/50 bg-zinc-900/80 backdrop-blur-sm text-zinc-400 hover:text-white hover:border-zinc-500/60 hover:bg-zinc-800/90 transition-colors duration-200 shadow-lg shadow-black/20",children:(0,t.jsx)(s,{className:"h-4 w-4"})})})}e.s(["default",()=>a],821538)},278057,e=>{"use strict";var t=e.i(15826),n=e.i(162128);function i(){return(0,t.useEffect)(()=>{let t=!1,i=0;async function r(){try{let{createClient:t}=await e.A(754111),n=t(),{data:i}=await n.auth.getSession();if(i.session?.access_token)return i.session.access_token}catch{}try{let e=localStorage.getItem("swiftin_auth_tokens");if(e){let t=JSON.parse(e);if(t?.access_token)return t.access_token}}catch{}return null}async function s(){if(t||Date.now()-i<3e3)return;let e=await r();if(e){t=!0;try{await (0,n.mintAndDeliverExtCode)(e),i=Date.now()}finally{t=!1}}}return window.addEventListener("swiftin-connect-request",s),()=>window.removeEventListener("swiftin-connect-request",s)},[]),null}e.s(["default",()=>i])},17660,e=>{e.v(t=>Promise.all(["static/chunks/99beab28bdea6e00.js"].map(t=>e.l(t))).then(()=>t(207951)))},754111,e=>{e.v(e=>Promise.resolve().then(()=>e(583590)))}]);
16
17//# debugId=cdc6737f-48c4-be79-e54b-141b719c620f

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.