PageSourceSearch

https://softserverapp.com/_next/static/chunks/1460-788e3a6082bb797e.js

js softserverapp.com collected 2026-09-24 11:06:03 UTC 9,620 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="96bc6c3b-9a4b-49c0-a71a-68c58c1ac6df",e._sentryDebugIdIdentifier="sentry-dbid-96bc6c3b-9a4b-49c0-a71a-68c58c1ac6df")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1460],{4527:(e,t,r)=>{r.d(t,{ToastProvider:()=>x,d:()=>u});var n=r(95155),s=r(12115),i=r(12651),a=r(13545),l=r(68822),o=r(33210),c=r(17459);let d=(0,s.createContext)(null);function u(){let e=(0,s.useContext)(d);if(!e)throw Error("useToast must be used inside ToastProvider");return e}let m={success:i.A,error:a.A,info:l.A},f={success:"bg-surface border-primary text-ink",error:"bg-surface border-red-400 text-ink",info:"bg-surface border-accent text-ink"};function x({children:e}){let[t,r]=(0,s.useState)([]),[i,a]=(0,s.useState)(()=>new Set),l=(0,s.useRef)(0),o=(0,s.useCallback)(e=>{a(t=>{if(t.has(e))return t;let r=new Set(t);return r.add(e),r}),window.setTimeout(()=>{r(t=>t.filter(t=>t.id!==e)),a(t=>{if(!t.has(e))return t;let r=new Set(t);return r.delete(e),r})},220)},[]),c=(0,s.useCallback)(e=>{let t=++l.current;r(r=>[...r,{id:t,...e}])},[]),u=(0,s.useMemo)(()=>({show:c,dismiss:o}),[c,o]);return(0,n.jsxs)(d.Provider,{value:u,children:[e,(0,n.jsx)("div",{"aria-live":"polite",className:"fixed top-4 left-1/2 -translate-x-1/2 z-50 w-full max-w-sm px-4 flex flex-col gap-2 pointer-events-none safe-top",children:t.map(e=>(0,n.jsx)(h,{toast:e,dismissing:i.has(e.id),onDismiss:()=>o(e.id)},e.id))})]})}function h({toast:e,dismissing:t,onDismiss:r}){let i=m[e.variant],[a,l]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>l(!0))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}},[]),(0,s.useEffect)(()=>{let e=window.setTimeout(r,2200);return()=>window.clearTimeout(e)},[r]);let d=a&&!t;return(0,n.jsxs)("div",{role:"error"===e.variant?"alert":"status",className:`pointer-events-auto flex items-center gap-3 rounded-2xl border-2 shadow-bubble px-4 py-3 motion-reduce:transition-none ${f[e.variant]}`,style:{opacity:+!!d,transform:`translate3d(0, ${d?0:-12}px, 0) scale(${d?1:.94})`,transition:"opacity var(--dur-base) var(--ease-out), transform 220ms var(--ease-smooth)",willChange:"transform, opacity"},children:[(0,n.jsx)(i,{size:20,className:"error"===e.variant?"text-red-500 shrink-0":"info"===e.variant?"text-accent shrink-0":"text-primary shrink-0","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,n.jsx)("p",{className:"text-sm font-extrabold",children:e.title}),e.description&&(0,n.jsx)("p",{className:"text-xs text-ink-muted mt-0.5",children:e.description})]}),(0,n.jsx)("button",{type:"button",onClick:r,"aria-label":(0,c.t)("ui.toast.aria.dismiss"),className:"shrink-0 -mr-1 p-1 rounded-md text-ink-muted hover:text-ink hover:bg-muted/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary",children:(0,n.jsx)(o.A,{size:16})})]})}},10141:(e,t,r)=>{r.d(t,{a:()=>d});var n=r(95155),s=r(12115),i=r(47650),a=r(33210),l=r(6318),o=r(17459);let c={sm:"24rem",md:"28rem",lg:"32rem"};function d({open:e,onClose:t,title:r,subtitle:u,size:m="sm",tall:f=!1,dismissOnBackdrop:x=!0,children:h}){let[v,b]=(0,s.useState)(!1),[p,w]=(0,s.useState)("closed"),y=(0,s.useRef)(null),g=(0,s.useRef)(null),k=(0,s.useRef)(null),j=(0,s.useId)();if((0,s.useEffect)(()=>b(!0),[]),(0,s.useEffect)(()=>{if(e){w("enter");let e=0,t=requestAnimationFrame(()=>{e=requestAnimationFrame(()=>w("show"))});return()=>{cancelAnimationFrame(t),cancelAnimationFrame(e)}}w(e=>"closed"===e?"closed":"exit");let t=window.setTimeout(()=>w("closed"),220);return()=>window.clearTimeout(t)},[e]),(0,s.useEffect)(()=>{e?(y.current=document.activeElement,requestAnimationFrame(()=>k.current?.focus())):y.current&&(y.current.focus?.(),y.current=null)},[e]),(0,s.useEffect)(()=>{if(!e)return;function r(e){if("Escape"===e.key)return void t();if("Tab"===e.key){let t=g.current;if(!t)return;let r=t.querySelectorAll('a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not
1([tabindex="-1"])');if(0===r.length)return;let n=r[0],s=r[r.length-1];e.shiftKey&&document.activeElement===n?(e.preventDefault(),s.focus()):e.shiftKey||document.activeElement!==s||(e.preventDefault(),n.focus())}}window.addEventListener("keydown",r);let n=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{window.removeEventListener("keydown",r),document.body.style.overflow=n}},[e,t]),!v||"closed"===p)return null;let N="show"===p;return(0,i.createPortal)((0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"data-testid":"modal-backdrop","aria-hidden":"true",onClick:x?t:void 0,className:"fixed inset-0 z-40 bg-ink/40 backdrop-blur-sm motion-reduce:transition-none",style:{WebkitBackdropFilter:"blur(4px)",backdropFilter:"blur(4px)",isolation:"isolate",opacity:+!!N,transition:"opacity var(--dur-base) var(--ease-out)"}}),(0,n.jsx)("div",{ref:g,role:"dialog","aria-modal":"true","aria-labelledby":j,className:"fixed inset-0 z-50 flex items-center justify-center p-4 overscroll-contain pointer-events-none",children:(0,n.jsxs)("div",{className:"relative w-full bg-surface border border-border shadow-bubble rounded-3xl overflow-hidden flex flex-col pointer-events-auto motion-reduce:transition-none",style:{maxWidth:`min(100%, ${c[m]})`,...f?{height:"85vh"}:{maxHeight:"85vh"},opacity:+!!N,transform:`scale(${N?1:.96})`,transition:`opacity ${N?260:220}ms var(--ease-out), transform ${N?260:220}ms var(--ease-smooth)`,willChange:"transform, opacity"},children:[(0,n.jsx)("div",{className:"px-4 py-3 border-b border-border shrink-0",children:(0,n.jsxs)("div",{className:`flex ${u?"items-start":"items-center"} justify-between gap-2`,children:[(0,n.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,n.jsx)("h2",{id:j,className:"font-extrabold text-lg leading-tight",children:r}),u&&(0,n.jsx)("p",{className:"text-xs text-ink-muted mt-1 leading-snug",children:u})]}),(0,n.jsx)("button",{ref:k,type:"button",onClick:t,"aria-label":(0,o.t)("ui.modal.aria.close"),className:`w-9 h-9 rounded-full flex items-center justify-center text-ink-muted hover:bg-muted/60 shrink-0 cursor-pointer ${l.bG.icon} ${l.Rg}`,children:(0,n.jsx)(a.A,{size:18})})]})}),f?h:(0,n.jsx)("div",{style:{overflowY:"auto",maxHeight:"calc(85vh - 4.5rem)"},children:h})]})})]}),document.body)}},33261:(e,t,r)=>{r.d(t,{u:()=>a});var n=r(95155),s=r(10141),i=r(34426);function a({open:e,title:t,description:r,confirmLabel:l="Confirm",cancelLabel:o="Cancel",destructive:c=!1,onConfirm:d,onCancel:u,loading:m=!1}){return(0,n.jsxs)(s.a,{open:e,onClose:()=>!m&&u(),title:t,children:[(0,n.jsx)("div",{className:"px-5 py-4",children:r&&(0,n.jsx)("p",{className:"text-sm text-ink-muted",children:r})}),(0,n.jsxs)("div",{className:"px-5 pb-4 pt-1 flex gap-2 justify-end",children:[(0,n.jsx)(i.Button,{variant:"secondary",size:"sm",onClick:u,disabled:m,children:o}),(0,n.jsx)(i.Button,{variant:c?"destructive":"primary",size:"sm",onClick:d,loading:m,children:l})]})]})}},85224:(e,t,r)=>{r.d(t,{PageTitleProvider:()=>a,l:()=>i});var n=r(95155),s=r(12115);let i=(0,s.createContext)(null);function a({children:e}
1){let[t,r]=(0,s.useState)(null),[l,o]=(0,s.useState)(!1),c=(0,s.useCallback)(e=>r(e),[]),d=(0,s.useCallback)(e=>o(e),[]),u=(0,s.useMemo)(()=>({title:t,collapsed:l,setTitle:c,setCollapsed:d}),[t,l,c,d]);return(0,n.jsx)(i.Provider,{value:u,children:e})}},94448:(e,t,r)=>{r.d(t,{NativeHeader:()=>o});var n=r(95155),s=r(12115),i=r(73321),a=r(85224);let l=new Set(["/flavors","/feed","/profile"]);function o({title:e,left:t,right:r,largeTitle:c=!1,className:d="",onTitleDoubleTap:u,contentClassName:m="max-w-2xl px-4",titleAs:f="h1"}){let x=(0,s.useContext)(a.l),h=(0,i.usePathname)(),v=(0,s.useRef)(0),b=(0,s.useRef)(0),[p,w]=(0,s.useState)(!1),y=l.has(h);return(0,s.useEffect)(()=>{if(x)return x.setTitle(e??null),()=>x.setTitle(null)},[x,e]),(0,s.useEffect)(()=>{if(!y)return void w(!1);let e=window.matchMedia("(max-width: 767px)"),t=!1;function r(){t||(t=!0,requestAnimationFrame(()=>{let r=window.scrollY,n=r-b.current;!e.matches||r<16?w(!1):n>6?w(!0):n<-6&&w(!1),b.current=r,t=!1}))}function n(){e.matches||w(!1)}return b.current=window.scrollY,window.addEventListener("scroll",r,{passive:!0}),e.addEventListener("change",n),()=>{window.removeEventListener("scroll",r),e.removeEventListener("change",n)}},[y]),(0,n.jsxs)("header",{className:`sticky z-30 transition-transform duration-300 ease-out will-change-transform motion-reduce:transition-none ${p?"max-md:-translate-y-full":""} ${d}`,style:{top:"var(--native-header-top, 0px)",width:"100vw",marginInline:"calc((100% - 100vw) / 2)",paddingTop:"max(env(safe-area-inset-top, 0px), 6px)"},children:[(0,n.jsx)("div",{"aria-hidden":!0,className:"absolute inset-0 bg-bg"}),(0,n.jsx)("div",{className:`relative mx-auto w-full ${m}`,children:(0,n.jsxs)("div",{className:"relative flex items-center min-h-11 gap-2 pt-1.5 pb-2.5",children:[(0,n.jsx)("div",{className:"flex items-center shrink-0 basis-0 flex-1 justify-start",children:t}),e&&(0,n.jsx)(f,{className:`font-extrabold tracking-tight truncate text-center ${u?"cursor-pointer select-none":""}`,style:{fontSize:c?"30px":"18px",lineHeight:c?"34px":"22px"},onPointerDown:u?()=>{if(!u)return;let e=Date.now();e-v.current<350?(v.current=0,u()):v.current=e}:void 0,children:e}),(0,n.jsx)("div",{className:"flex items-center shrink-0 basis-0 flex-1 justify-end",children:r})]})})]})}}}]);

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.