PageSourceSearch

https://bith.ai/_next/static/chunks/pages/studio/account/ChangePassword-f5beb85675e83075.js

js bith.ai collected 2026-10-05 11:53:53 UTC 6,845 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[42254],{66597:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/studio/account/ChangePassword",function(){return t(54753)}])},9290:function(e,s,t){"use strict";var a=t(85893),r=t(46321);t(67294);var o=t(98388),n=t(47020);s.Z=e=>{let{iconSrc:s,label:t,htmlFor:i,muted:l=!1,className:d}=e;return(0,a.jsxs)("label",{htmlFor:i,className:(0,o.m6)("flex items-center gap-2 text-start",l?"text-t-shade-1":"text-custom-white",d),children:[(0,a.jsx)(r.Z,{src:s,width:20,height:20,color:l?"var(--text-shade-1)":n.x,stroke:l?"var(--text-shade-1)":n.x,className:"shrink-0"}),(0,a.jsx)("span",{className:"text-sm font-medium leading-5",children:t})]})}},35078:function(e,s,t){"use strict";var a=t(85893);t(67294),s.Z=e=>{let{title:s,children:t,id:r}=e;return(0,a.jsxs)("section",{id:r,className:"studio-account-section-card studio-glass-card flex flex-col gap-6 p-6",children:[s?(0,a.jsx)("h2",{className:"text-start text-base font-semibold leading-[22px] text-custom-white",children:s}):null,t]})}},47020:function(e,s,t){"use strict";t.d(s,{x:function(){return a}});let a="var(--custom-white)"},92272:function(e,s,t){"use strict";t.d(s,{IF:function(){return i},_$:function(){return r},pc:function(){return n},tC:function(){return o}});var a=t(5405);let r=a.ZP.div.withConfig({componentId:"sc-c6d77ab6-0"})(["background:var(--glass-fill-strong);border:1px solid ",";opacity:",';[data-theme="light"] &{background:',";border-color:",";opacity:",";box-shadow:none;}"],e=>{let{$error:s}=e;return s?"var(--danger-red-1)":"var(--glass-stroke)"},e=>{let{$locked:s}=e;return s?.5:1},e=>{let{$locked:s}=e;return s?"var(--shade-2)":"var(--studio-canvas)"},e=>{let{$error:s}=e;return s?"var(--danger-red-1)":"rgba(146, 146, 146, 0.15)"},e=>{let{$locked:s}=e;return s?.5:1}),o=a.ZP.button.withConfig({componentId:"sc-c6d77ab6-1"})(['background:var(--glass-fill);border:none;box-shadow:inset 0 0 16px 0 rgba(255,255,255,0.08);[data-theme="light"] &{background:rgba(246,246,246,0.05);border:none;box-shadow:inset 0 0 16px 0 rgba(0,0,0,0.08);}']),n=a.ZP.div.withConfig({componentId:"sc-c6d77ab6-2"})(['background:var(--glass-fill-strong);[data-theme="light"] &{background:var(--studio-canvas);border:none;}']),i=a.ZP.div.withConfig({componentId:"sc-c6d77ab6-3"})(['display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border-radius:16px;background:var(--glass-fill-strong);border:1px solid var(--glass-stroke);[data-theme="light"] &{background:var(--studio-canvas);border-color:rgba(146,146,146,0.15);}'])},13444:function(e,s,t){"use strict";t.d(s,{R:function(){return o}});var a=t(90238),r=t(71494);function o(e,s){a.ZP.track(r.nS.CTA_CLICKED,{page_type:"account",page_name:"Account Settings",position:"account_page",...s,cta_name:e})}},13545:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return v}});var a=t(85893),r=t(50384),o=t(96946),n=t(82821),i=t(9290),l=t(67294),d=t(92272);let c=l.forwardRef((e,s)=>{let{trailing:t,error:r,className:o,...n}=e;return(0,a.jsxs)(d._$,{as:"label",$error:r,className:"flex h-11 w-full items-center gap-3 rounded-xl px-4 ".concat(null!=o?o:""),children:[(0,a.jsx)("input",{ref:s,className:"min-w-0 flex-1 bg-transparent text-start text-sm font-medium leading-5 text-custom-white outline-none placeholder:text-t-shade-2",...n}),t?(0,a.jsx)("span",{className:"shrink-0 text-custom-white",children:t}):null]})});c.displayName="StudioAccountTextField";var u=t(68419),p=t(31155),f=t(87251),g=t(13444),m=t(41609),x=t.n(m),w=t(35161),h=t.n(w),b=t(87536),_=t(25617),v=()=>{let e=(0,f.Z)(),s=e.studio.account.changePassword,[t,d]=l.useState(!1),[,m]=l.useContext(p.kn),w=(0,_.I0)(),{register:v,handleSubmit:j,formState:{errors:k,isDirty:Z,touchedFields:N,dirtyFields:C},setError:y}=(0,b.cI)();return(0,a.jsxs)("form",{autoComplete:"off",onSubmit:j(e=>{if(!Z)return;(0,g.R)("save_password",{button_text:s.action});let t={};h()(N,(s,a)=>{C[a]&&(t[a]=e[a])}),d(!0),w((0,u.gS)(t,()=>{m({type:p.BT.TOAST_STATE_CHANGED,payload:{open:!0,type:"success",position:"right-bottom",message:s.success.message,time:5e3}}),d(!1)},e=>{var s;d(!1),h()(null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.errors,(e,s)=>{y(s,{message:e[0]})})}))}),className:"flex flex-col gap-6",children:[(0,a.jsxs)("div",{className:"grid gap-6 md:grid-cols-3",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(i.Z,{iconSrc:"/icons/studio-account/lock-keyhole.svg",htmlFor:"old_password",muted:!0,label:s.formFields.password.label}),(0,a.jsx)(c,{autoComplete:"off",autoCorrect:"off",id:"old_password",type:"password",error:!!k.old_password,trailing:(0,a.jsx)(r.Z,{inputRef:"old_password"}),...v("old_password",{required:e.global.validations.required})}),k.old_password?(0,a.jsx)(o.Z,{errorMessage:k.old_password.message}):null]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(i.Z,{iconSrc:"/icons/studio-account/lock-keyhole.svg",htmlFor:"new_password",muted:!0,label:s.formFields.newPassword.label}),(0,a.jsx)(c,{autoComplete:"off",autoCorrect:"off",id:"new_password",type:"password",error:!!k.new_password,trailing:(0,a.jsx)(r.Z,{inputRef:"new_password"}),...v("new_password",{required:e.global.validations.required,pattern:{value:/^(?=.*[a-zA-Z])(?=.*\d)[A-Za-z\d!@#$%^&*]{8,}$/g,message:e.signUp.fields.password.password_illegal_chars}})}),k.new_password?(0,a.jsx)(o.Z,{errorMessage:k.new_password.message}):null]}),(0,a.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,a.jsx)(i.Z,{iconSrc:"/icons/studio-account/lock-keyhole.svg",htmlFor:"new_password_confirmation",muted:!0,label:s.formFields.confirmNewPassword.label}),(0,a.jsx)(c,{autoComplete:"off",autoCorrect:"off",id:"new_password_confirmation",type:"password",error:!!k.new_password_confirmation,trailing:(0,a.jsx)(r.Z,{inputRef:"new_password_confirmation"}),...v("new_password_confirmation",{required:e.global.validations.required,pattern:{value:/^(?=.*[a-zA-Z])(?=.*\d)[A-Za-z\d!@#$%^&*]{8,}$/,message:e.signUp.fields.password.password_illegal_chars}})}),k.new_password_confirmation?(0,a.jsx)(o.Z,{errorMessage:k.new_password_confirmation.message}):null]})]}),(0,a.jsx)("button",{type:"submit",disabled:t||x()(C),className:"flex h-11 w-full items-center justify-center self-start rounded-xl px-8 text-sm font-medium text-white transition hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50 [background:var(--cta-gradient)] md:w-[140px]",children:t?(0,a.jsx)(n.Z,{size:"small"}):s.action})]})}},54753:function(e,s,t){"use strict";t.r(s);var a=t(85893),r=t(35078),o=t(87251);t(67294);var n=t(13545);s.default=()=>{let e=(0,o.Z)("studio.account.changePassword");return(0,a.jsx)(r.Z,{title:e.title,children:(0,a.jsx)(n.default,{})})}}},function(e){e.O(0,[92888,49774,40179],function(){return e(e.s=66597)}),_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.