1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6929],{57343:(e,s,t)=>{"use strict";t.d(s,{A:()=>p});var a=t(6029),l=t(82203),r=t.n(l),i=t(81278),n=t(55729),c=t(14187),d=t(2871),o=t(1525),u=t(35270),h=t(45933);function p(e){let{links:s,className:t,toggleSidebar:l,sidebarIsCollapsed:p}=e,{t:x}=(0,c.Bd)(),f=(0,i.useRouter)(),[m,g]=(0,n.useState)("");return(0,n.useEffect)(()=>{g(f.asPath)},[f]),(0,a.jsx)(d.A,{className:t,toggleSidebar:l,sidebarIsCollapsed:p,children:e=>{let{collapsed:t}=e,l=(0,a.jsx)("div",{className:(0,h.cn)("flex flex-col gap-2",t&&"gap-3"),children:s.map(e=>(0,a.jsx)(o.A,{title:e.title,href:e.href,icon:e.icon,active:m===e.href,sidebarIsCollapsed:t},e.href))});return(0,a.jsxs)(a.Fragment,{children:[t?(0,a.jsx)("div",{className:"flex flex-col items-center shrink-0",children:(0,a.jsx)(d.M,{icon:"bi-chevron-left",variant:"ghost",label:x("back_to_dashboard"),tooltipSide:"right",onClick:()=>f.push("/dashboard")})}):(0,a.jsx)("div",{className:"shrink-0 pt-1 px-1",children:(0,a.jsx)(u.$,{asChild:!0,size:"sm",variant:"ghost",className:"justify-start w-full h-8",children:(0,a.jsxs)(r(),{href:"/dashboard",children:[(0,a.jsx)("i",{className:"bi-chevron-left text-md"}),(0,a.jsx)("p",{children:x("back_to_dashboard")})]})})}),t?(0,a.jsx)("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center",children:l}):(0,a.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto mt-1 p-1",children:l})]})}})}},58241:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/settings/password",function(){return t(95626)}])},83248:(e,s,t)=>{"use strict";t.d(s,{A:()=>i});var a=t(6029),l=t(23994);let r=(0,t(55729).forwardRef)((e,s)=>{let{className:t,type:r="text",...i}=e;return(0,a.jsx)("input",{ref:s,type:r,className:(0,l.cn)("w-full rounded-md p-2 border-neutral-content border-solid border outline-none focus:border-primary duration-100",t),...i})});r.displayName="TextInput";let i=r},95626:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>p,default:()=>x});var a=t(6029),l=t(98558),r=t(55729),i=t(58578),n=t(83248),c=t(14187),d=t(38544),o=t(35270),u=t(36919);let h=()=>{let{t:e}=(0,c.Bd)(),[s,t]=(0,r.useState)(""),[l,h]=(0,r.useState)(""),[p,x]=(0,r.useState)(!1),{data:f}=(0,d.Jd)(),m=(0,d.Qc)(),g=!!(null==f?void 0:f.hasOAuthAccount)&&!(null==f?void 0:f.hasPassword),b=async()=>{if(!(null==f?void 0:f.id))return;if(""===l||!g&&""===s)return i.oR.error(e("fill_all_fields"));if(l.length<8)return i.oR.error(e("password_length_error"));x(!0);let a=i.oR.loading(e("applying_settings"));await m.mutateAsync({id:f.id,username:f.username,email:f.email,newPassword:l,oldPassword:g?void 0:s},{onSettled:(s,l)=>{x(!1),i.oR.dismiss(a),l?i.oR.error(l.message):(h(""),t(""),i.oR.success(e("settings_applied")))}})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("i",{className:"bi-lock text-primary text-2xl"}),(0,a.jsx)("p",{className:"capitalize text-3xl font-thin inline",children:g?e("create_password"):e("change_password")})]}),(0,a.jsx)(u.w,{className:"my-3"}),(0,a.jsx)("p",{className:"mb-3",children:g?e("password_create_instructions"):e("password_change_instructions")}),(0,a.jsxs)("div",{className:"w-full flex flex-col gap-2 justify-between max-w-screen-sm",children:[!g&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("p",{children:e("old_password")}),(0,a.jsx)(n.A,{value:s,className:"bg-base-200",onChange:e=>t(e.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢",type:"password"})]}),(0,a.jsx)("p",{className:g?"":"mt-3",children:e("new_password")}),(0,a.jsx)(n.A,{value:l,className:"bg-base-200",onChange:e=>h(e.target.value),placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢â¢",type:"password"}),(0,a.jsx)(o.$,{onClick:b,disabled:p||!l||!g&&!s,variant:"primary",className:"mt-3 w-full sm:w-fit",children:e("save_changes")})]})]})};h.getLayout=function(e){return(0,a.jsx)(l.A,{children:e})};var p=!0;let x=h},98558:(e,s,t)=>{"use strict";t.d(s,{A:()=>o});var a=t(6029),l=t(14187),r=t(38544),i=t(43003),n=t(57343);function c(e){let{className:s,toggleSidebar:t,sidebarIsCollapsed:c}=e,{t:d}=(0,l.Bd)(),{data:o}=(0,r.Jd)(),{data:u}=(0,i.UK)(),h=[{title:d("account"),href:"/settings/account",icon:"bi-person"},{title:d("preference"),href:"/settings/preference",icon:"bi-sliders"},{title:"RSS Subscriptions",href:"/settings/rss-subscriptions",icon:"bi-rss"},{title:d("access_tokens"),href:"/settings/access-tokens",icon:"bi-key"},{title:d("password"),href:"/settings/password",icon:"bi-lock"}];return(null==u?void 0:u.STRIPE_ENABLED)&&!(null==o?void 0:o.parentSubscriptionId)&&h.push({title:d("billing"),href:"/settings/billing",icon:"bi-credit-card"}),(0,a.jsx)(n.A,{className:s,toggleSidebar:t,sidebarIsCollapsed:c,links:h})}t(55729);var d=t(62127);function o(e){let{children:s}=e,{sidebarIsCollapsed:t,toggleSidebar:l}=(0,d.A)();return(0,a.jsxs)("div",{className:"flex","data-testid":"settings-wrapper",children:[(0,a.jsx)(c,{toggleSidebar:l,sidebarIsCollapsed:t}),(0,a.jsx)("div",{className:"".concat(t?"":"lg:w-[calc(100%-288px)]"," w-[c
1alc(100%-56px)] sm:pb-0 pb-20 flex flex-col h-screen overflow-y-auto"),children:(0,a.jsx)("div",{className:"p-3 mx-auto w-full max-w-3xl min-[2000px]:max-w-6xl",children:s})})]})}}},e=>{e.O(0,[8986,2203,3458,7129,7113,5051,636,6593,8792],()=>e(e.s=58241)),_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.