PageSourceSearch

https://www.sen.com/_next/static/chunks/pages/settings/account-e21e657f0c294030.js

js sen.com collected 2026-10-02 05:14:51 UTC 9,947 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[858],{6464:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/account",function(){return r(8794)}])},8002:function(e,t,r){"use strict";r.d(t,{d:function(){return b}});var n=r(2322),a=r(4477),o=r(5599),i=r(2749),l=r(7077),s=r(1126),c=r(4114),d=r(474),u=r(2872),f=r(7729),p=r.n(f),m=r(9097),x=r.n(m),g=r(5632),h=r(2784),y=r(5570),S=r(738),j=r(7409),w=r(2233);let v=[{Icon:s.fr,key:"account",label:"Account",path:"/settings/account"},{Icon:s.ci,key:"plan",label:"Plan",path:"/settings/plan"}],b=e=>{let{activeKey:t,children:r,title:s}=e,{state:d}=(0,a.aC)(),u=(0,g.useRouter)(),{theme:f}=(0,c.Fg)(),{ids:m,styles:S}=D(f);return(0,h.useEffect)(()=>{d.status===o.t.SignedOut&&u.push(w.zB.path)},[d.status,u]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(p(),{children:[(0,n.jsx)("title",{children:`${s} | Sen`}),(0,n.jsx)("link",{rel:"canonical",href:`${j.v.BASE_URL}${w.Xd.path}`},"canonical")]}),(0,n.jsxs)(y.Z,{dataSet:{media:m.container},style:S.container,testID:"settings",children:[(0,n.jsx)(y.Z,{style:S.header,children:(0,n.jsx)(i.h,{title:s,eyebrow:"Settings",variant:"large"})}),(0,n.jsxs)(y.Z,{dataSet:{media:m.body},style:S.body,children:[(0,n.jsx)(y.Z,{dataSet:{media:m.nav},style:S.nav,children:v.map(e=>{let{Icon:r,key:a,label:o,path:i}=e,s=a===t,c=[S.navItem,s?S.navItemActive:null],d=[S.navLabel,s?S.navLabelActive:null];return(0,n.jsx)(x(),{href:i,style:Z,children:(0,n.jsxs)(y.Z,{style:c,testID:`settings-nav-${a}`,children:[(0,n.jsx)(r,{color:s?f.colors.onSurface:f.colors.onSurfaceVariant,height:16,title:o,width:16}),(0,n.jsx)(l.x,{style:d,children:o})]})},a)})}),(0,n.jsx)(y.Z,{dataSet:{media:m.content},style:S.content,testID:"settings-content",children:r})]})]})]})},Z={textDecoration:"none"},D=e=>{let{ids:t,styles:r}=S.Z.create({container:{gap:e.space.xl,marginHorizontal:"auto",paddingHorizontal:e.space.md,paddingVertical:e.space.xxl,width:"100%"},header:{borderBottomColor:(0,d.f)(e.colors.onSurface,e.alpha.hairline),borderBottomWidth:1,paddingBottom:e.space.xl},body:{flexDirection:"column",gap:e.space.lg,[u.Uo.Large]:{flexDirection:"row",gap:e.space.xxl}},nav:{flexDirection:"row",flexGrow:0,flexWrap:"wrap",gap:e.space.xs,[u.Uo.Large]:{flexDirection:"column",flexWrap:"nowrap",gap:e.space.xxs,width:220}},navItem:{alignItems:"center",borderLeftColor:"transparent",borderLeftWidth:2,borderRadius:e.roundness,flexDirection:"row",gap:e.space.sm,paddingHorizontal:e.space.md,paddingVertical:e.space.sm,[u.Uo.Large]:{width:"100%"}},navItemActive:{backgroundColor:e.colors.surfaceVariant,borderLeftColor:e.colors.secondary},navLabel:{...e.fonts.bodyMedium,color:e.colors.onSurfaceVariant},navLabelActive:{color:e.colors.onSurface},content:{flex:1}});return{ids:t,styles:r}}},8794:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return S}});var n=r(2322),a=r(4477),o=r(5599),i=r(6951),l=r(2026),s=r(4114),c=r(2784),d=r(5570),StyleSheet=r(5767);let u=e=>{let{onSuccess:t,signOut:r}=e,[a,o]=(0,c.useState)(""),{theme:u}=(0,s.Fg)(),p=f(u),m=async()=>{try{await r(),t(),console.info("Signed out successfully")}catch(e){o(e.message)}};return(0,n.jsxs)(d.Z,{style:p.container,testID:"sign-out-form",children:[(0,n.jsx)(i.z,{onPress:m,testID:"sign-out-button",children:"Sign out"}),!!a&&(0,n.jsx)(l.p,{style:p.text,testID:"sign-out-error",type:l.f.Error,children:a})]})},f=e=>StyleSheet.Z.create({container:{gap:e.space.sm},text:{...e.fonts.bodyMedium,textAlign:"center"}});var Text=r(7077),p=r(2869),m=r(2872),x=r(5632),g=r(738),h=r(8002),y=r(2233);function S(){let e=(0,x.useRouter)(),{state:t,signOut:r}=(0,a.aC)(),{theme:i}=(0,s.Fg)(),{ids:l,styles:c}=j(i);if(t.status!==o.t.SignedIn)return null;let f=t.user;return(0,n.jsx)(h.d,{activeKey:"account",title:"Account",children:(0,n.jsxs)(d.Z,{style:c.container,children:[(0,n.jsxs)(d.Z,{dataSet:{media:l.row},style:c.row,testID:"sign-out-row",children:[(0,n.jsx)(Text.x,{style:c.rowLabel,children:`Signed in as ${f.email}`}),(0,n.jsx)(d.Z,{style:c.rowAction,children:(0,n.jsx)(u,{onSuccess:()=>e.push(y.LE.path),signOut:r})})]}),(0,n.jsxs)(d.Z,{dataSet:{media:l.row},style:c.row,testID:"delete-account-row",children:[(0,n.jsx)(Text.x,{style:c.rowLabel,children:"Permanently delete your account and all associated data."}),(0,n.jsx)(d.Z,{style:c.rowAction,children:(0,n.jsx)(p.h,{onPress:()=>e.push(y.tm.path),style:c.delete,testID:"delete-account-button",children:"Delete account"})})]})]})})}let j=e=>{let{ids:t,styles:r}=g.Z.create({container:{gap:e.space.xl},delete:{...e.fonts.titleSmall,color:e.colors.error},row:{alignItems:"center",flexDirection:"row",gap:e.space.sm,[m.Uo.Medium]:{gap:e.space.md,justifyContent:"space-between"}},rowAction:{flexShrink:0},rowLabel:{...e.fonts.bodyMedium,color:e.colors.onSurface,flex:1}});return{ids:t,styles:r}}},2526:function(e,t,r){"use strict";r.d(t,{Z:function(){return u}});var n=r(2784),a=r(6162),StyleSheet=r(5767),o=r(5214),i=r.n(o),l=r(7941),s=r(8568);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}
1).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let d=StyleSheet.Z.create({text:{fontSize:12,paddingVertical:4},padding:{paddingHorizontal:12}});var u=e=>{let{style:t,type:r="info",visible:o=!0,theme:u,onLayout:f,padding:p="normal",disabled:m,...x}=e,g=(0,l.Rf)(u),{current:h}=n.useRef(new a.Z.Value(o?1:0)),{current:y}=n.useRef(0),{scale:S}=g.animation,{maxFontSizeMultiplier:j=1.5}=x;n.useEffect(()=>{o?a.Z.timing(h,{toValue:1,duration:150*S,useNativeDriver:!0}).start():a.Z.timing(h,{toValue:0,duration:180*S,useNativeDriver:!0}).start()},[o,S,h]);let w=function(e){var t;let{theme:r,disabled:n,type:a}=e,{colors:o,dark:l}=r;return"error"===a?null==o?void 0:o.error:r.isV3?n?r.colors.onSurfaceDisabled:r.colors.onSurfaceVariant:i()(null==r||null===(t=r.colors)||void 0===t?void 0:t.text).alpha(l?.7:.54).rgb().string()}({theme:g,disabled:m,type:r});return n.createElement(s.Z,c({onLayout:e=>{null==f||f(e),y=e.nativeEvent.layout.height},style:[d.text,"none"!==p?d.padding:{},{color:w,opacity:h,transform:o&&"error"===r?[{translateY:h.interpolate({inputRange:[0,1],outputRange:[-y/2,0]})}]:[]},t],maxFontSizeMultiplier:j},x),x.children)}},5603:function(e,t,r){"use strict";r.d(t,{G:function(){return c}});var n=r(2322),a=r(4114),o=r(474),i=r(5570),l=r(5767),s=r(7077);let c=e=>{let{items:t,size:r="small",testID:o}=e,{theme:l}=(0,a.Fg)(),c=d(l);if(0===t.length)return null;let u={small:c.itemSmall,medium:c.itemMedium}[r];return(0,n.jsx)(i.Z,{style:c.container,testID:o,children:t.flatMap((e,t)=>{let r=(0,n.jsx)(s.x,{style:u,children:e},`item-${e}-${t}`);return 0===t?[r]:[(0,n.jsx)(i.Z,{style:c.dot},`dot-${t}`),r]})})},d=e=>l.Z.create({container:{alignItems:"center",flexDirection:"row",flexWrap:"wrap",columnGap:e.space.xs,rowGap:0},dot:{backgroundColor:(0,o.f)(e.colors.onSurfaceVariant,e.alpha.emphasis),borderRadius:e.radii.pill,height:4,width:4},itemMedium:{...e.fonts.bodyMedium,color:e.colors.onSurfaceVariant},itemSmall:{...e.fonts.bodySmall,color:e.colors.onSurfaceVariant}})},1882:function(e,t,r){"use strict";r.d(t,{j:function(){return s}});var n=r(2322),a=r(4114),o=r(5570),i=r(5767),l=r(7077);let s=e=>{let{icon:t,testID:r="eyebrow",text:i}=e,{theme:s}=(0,a.Fg)(),d=c(s);return(0,n.jsxs)(o.Z,{style:d.container,testID:r,children:[t??(0,n.jsx)(o.Z,{style:d.separator}),(0,n.jsx)(l.x,{style:d.text,children:i})]})},c=e=>i.Z.create({container:{alignItems:"center",flexDirection:"row",gap:e.space.xs},separator:{backgroundColor:e.colors.secondary,height:1,opacity:.6,width:18},text:{...e.fonts.labelLarge,color:e.colors.secondary,letterSpacing:2,textShadowColor:e.colors.inverseSurface,textShadowOffset:{width:0,height:0},textShadowRadius:8,textTransform:"uppercase"}})},2026:function(e,t,r){"use strict";r.d(t,{f:function(){return a},p:function(){return s}});var n,a,o=r(2322),i=r(5767),l=r(2526);(n=a||(a={})).Error="error",n.Info="info";let s=e=>{let{children:t,style:r,testID:n,type:a="info"}=e;return(0,o.jsx)(l.Z,{style:[c.text,r],testID:n,type:a,children:t})},c=i.Z.create({text:{paddingVertical:0}})},2869:function(e,t,r){"use strict";r.d(t,{h:function(){return o}});var n=r(2322),a=r(6633);let o=e=>{let{children:t,numberOfLines:r=0,onPress:o,style:i,testID:l}=e;return(0,n.jsx)(a.Z,{maxFontSizeMultiplier:2,numberOfLines:r,onPress:o,style:[i],testID:l,children:t})}},2749:function(e,t,r){"use strict";r.d(t,{h:function(){return u}});var n=r(2322),a=r(4114),o=r(2872),i=r(5570),l=r(738),s=r(5603),c=r(1882),d=r(7077);let u=e=>{let{asHeader:t="h1",description:r,eyebrow:o,testID:l="header",title:u,variant:p="medium"}=e,{theme:m}=(0,a.Fg)(),{ids:x,styles:g}=f(m),h={large:g.titleLarge,medium:g.titleMedium,small:g.titleSmall}[p],y={large:x.titleLarge,medium:x.titleMedium,small:x.titleSmall}[p];return(0,n.jsxs)(i.Z,{style:g.container,testID:l,children:[!!o&&(0,n.jsx)(c.j,{text:o}),(0,n.jsxs)(i.Z,{style:g.titleWrap,children:[(0,n.jsx)(d.x,{asHeader:t,dataSet:{media:y},style:h,children:u}),Array.isArray(r)?(0,n.jsx)(i.Z,{style:g.descriptionSpacing,children:(0,n.jsx)(s.G,{items:r,size:"medium",testID:"header-description"})}):!!r&&(0,n.jsx)(d.x,{style:g.description,testID:"header-description",children:r})]})]})},f=e=>{let{ids:t,styles:r}=l.Z.create({container:{width:"100%"},description:{...e.fonts.bodyMedium,color:e.colors.onSurfaceVariant,marginTop:e.space.xs},descriptionSpacing:{marginTop:e.space.xs},titleLarge:{...e.fonts.displayMedium,color:e.colors.onSurface,marginBottom:0,[o.Uo.Large]:{...e.fonts.displayLarge}},titleMedium:{...e.fonts.titleLarge,color:e.colors.onSurface,marginBottom:0,[o.Uo.Large]:{...e.fonts.displayMedium}},titleSmall:{...e.fonts.titleLarge,color:e.colors.onSurface,marginBottom:0,[o.Uo.Medium]:{...e.fonts.displaySmall}},titleWrap:{marginTop:e.space.xs}});return{ids:t,styles:r}}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=6464)}),_N_E=e.O()}]);

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.