PageSourceSearch

https://superwise.chat/_next/static/chunks/1475.ee90fc9ded53dffe.js

js superwise.chat collected 2026-10-04 01:53:48 UTC 5,535 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1475],{11475:(e,t,a)=>{a.r(t),a.d(t,{TABS_BASE:()=>U,UserSettingsShell:()=>P});var s=a(95155),l=a(12115),n=a(20508),r=a(66630),i=a(48055),c=a(76907),d=a(54485),u=a(1473),o=a(3473),h=a(23838),m=a(40051),x=a(72289),y=a(50486),f=a(16220),p=a(71449),b=a(99708),j=a(31166),v=a(77979),k=a(85349),g=a(71137);let w=e=>{let{state:t,children:a,variant:l="panel",className:n,testId:r="feature-lock"}=e,i=(0,g.rP)();if((0,k.kx)(t))return(0,s.jsx)(s.Fragment,{children:a});let c=(0,k.hF)(t);if(!c)return(0,s.jsx)(s.Fragment,{children:a});let d="upgrade"===c.kind&&!!c.cta;if("inline"===l){var u;return(0,s.jsxs)("div",{"data-testid":r,"data-locked-kind":c.kind,role:"status",className:(0,v.cn)("flex flex-wrap items-center gap-2 text-sw-caption text-sw-text-muted",n),children:[(0,s.jsx)(b.A,{size:12,className:"shrink-0","aria-hidden":"true"}),(0,s.jsx)("span",{children:null!=(u=c.detail)?u:c.label}),d&&(0,s.jsx)(j.$,{variant:"ghost",size:"sm",testId:"".concat(r,"-cta"),onClick:i,className:"h-auto py-0.5",children:c.cta})]})}return(0,s.jsxs)("div",{"data-testid":r,"data-locked-kind":c.kind,role:"status",className:(0,v.cn)("flex flex-col items-center justify-center gap-2 rounded-sw-md border border-sw-border-subtle bg-sw-surface/50 py-10 px-4 text-center",n),children:[(0,s.jsx)("div",{className:"w-12 h-12 rounded-sw-xl bg-sw-surface flex items-center justify-center mb-1",children:(0,s.jsx)(b.A,{size:22,className:"text-sw-text-muted","aria-hidden":"true"})}),(0,s.jsx)("p",{className:"text-sw-body font-semibold text-sw-text",children:c.label}),c.detail&&(0,s.jsx)("p",{className:"text-sw-caption text-sw-text-muted max-w-sm",children:c.detail}),d&&(0,s.jsx)(j.$,{variant:"primary",size:"sm",testId:"".concat(r,"-cta"),onClick:i,className:"mt-2",children:c.cta})]})},S=l.lazy(()=>a.e(403).then(a.bind(a,62784)).then(e=>({default:e.UserProfile}))),A=l.lazy(()=>a.e(403).then(a.bind(a,62784)).then(e=>({default:e.UserDataPrivacy}))),N=l.lazy(()=>a.e(9790).then(a.bind(a,9790)).then(e=>({default:e.UserSettings}))),z=l.lazy(()=>a.e(9670).then(a.bind(a,69670)).then(e=>({default:e.MemoryManager}))),M=l.lazy(()=>a.e(8206).then(a.bind(a,28206)).then(e=>({default:e.UserTokenUsage}))),C=l.lazy(()=>a.e(7460).then(a.bind(a,47460)).then(e=>({default:e.ConversationViewer}))),U=[{value:"profile",label:"Profile",icon:n.A},{value:"preferences",label:"Preferences",icon:r.A},{value:"usage",label:"Usage",icon:i.A},{value:"privacy",label:"Data & Privacy",icon:c.A},{value:"history",label:"History",icon:d.A}],E={value:"memories",label:"Memories",icon:u.A},I=(0,s.jsxs)("div",{className:"space-y-4 p-6",children:[(0,s.jsx)(m.EA,{className:"h-8 w-48"}),(0,s.jsx)(m.EA,{className:"h-4 w-full"}),(0,s.jsx)(m.EA,{className:"h-4 w-3/4"})]});function P(e){let{initialSettings:t,onDirtyChange:a,initialTab:n="preferences"}=e,{enableMemory:r}=(0,x.h)(),i=function(){let e=(0,y.E8)(),t=(0,f.o7)();return l.useMemo(()=>{if("envelope"===e.source){var a;return null!=(a=e.capabilities.memory)?a:null}return t.loading?null:!0===t.entitlements["memory.enabled"]?{determinacy:"resolved",capability:"memory",enabled:!0,domain:"CHATS",reason:null,remedy:"none"}:{determinacy:"resolved",capability:"memory",enabled:!1,domain:"CHATS",reason:{code:"not_entitled",entitlement:"memory.enabled",requiredSku:null},remedy:"upgrade"}},[e.source,e.capabilities,t.loading,t.entitlements])}(),[c,d]=l.useState(()=>(0,p.OT)()?"memories":n),u=[...U,...r?[E]:[]];return(0,s.jsx)(o.u,{title:"My Account",subtitle:"Manage your profile, preferences, usage, and data.",children:(0,s.jsxs)(h.tU,{value:c,onValueChange:e=>d(e),children:[(0,s.jsx)(h.WQ,{children:u.map(e=>{let{value:t,label:a,icon:l}=e;return(0,s.jsxs)(h.Wy,{value:t,children:[(0,s.jsx)(l,{size:15,"aria-hidden":"true"}),a]},t)})}),(0,s.jsxs)("div",{className:"mt-6",children:[(0,s.jsx)(h.av,{value:"profile",children:(0,s.jsx)(l.Suspense,{fallback:I,children:(0,s.jsx)(S,{})})}),(0,s.jsx)(h.av,{value:"preferences",children:(0,s.jsx)(l.Suspense,{fallback:I,children:(0,s.jsx)(N,{initialSettings:t,onDirtyChange:a})})}),(0,s.jsx)(h.av,{value:"usage",children:(0,s.jsx)(l.Suspense,{fallback:I,children:(0,s.jsx)(M,{})})}),(0,s.jsx)(h.av,{value:"privacy",children:(0,s.jsx)(l.Suspense,{fallback:I,children:(0,s.jsx)(A,{})})}),(0,s.jsx)(h.av,{value:"history",children:(0,s.jsx)(l.Suspense,{fallback:I,children:(0,s.jsx)(C,{})})}),r&&(0,s.jsx)(h.av,{value:"memories",children:i?(0,s.jsx)(w,{state:i,testId:"memories-tab-lock",children:(0,s.jsx)(l.Suspense,{fallback:I,children:(0,s.jsx)(z,{})})}):I})]})]})})}},48055:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(5121).A)("coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]])},54485:(e,t,a)=>{a.d(t,{A:()=>s});let s=(0,a(5121).A)("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]])},71449:(e,t,a)=>{a.d(t,{OT:()=>n,eW:()=>r,qC:()=>l});let s="memory:focus-intent";function l(e){try{window.sessionStorage.setItem(s,JSON.stringify(e))}catch(e){}}function n(){try{return null!==window.sessionStorage.getItem(s)}catch(e){return!1}}function r(){try{let e=window.sessionStorage.getItem(s);if(null===e)return null;window.sessionStorage.removeItem(s);let t=JSON.parse(e);if(!t||"string"!=typeof t.query)return null;return t}catch(e){return null}}}}]);

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.