PageSourceSearch

https://takeitup.ai/chunk-J7NXQPRP.js

js takeitup.ai collected 2026-10-05 16:25:19 UTC 23,451 bytes, 1 lines download raw bytes

1import{a as O}from"./chunk-HWKOBQHD.js";import{a as We}from"./chunk-CFB6Y2TF.js";import{a as je}from"./chunk-D7IIYPSI.js";import{a as Pe,c as ye,d as we,g as Ee,h as Se}from"./chunk-JDYHCKCL.js";import{a as he,d as xe}from"./chunk-OA5647SH.js";import{a as U}from"./chunk-DVZO5V34.js";import{d as _e,k as X,l as ve,s as ge}from"./chunk-IPHOQUAT.js";import"./chunk-NWU7FECX.js";import{a as Ae,b as Ne,e as Te,i as Ie}from"./chunk-XUM5TRKM.js";import{Aa as $,Ba as q,Bb as Me,Fb as Fe,Jb as Ve,Ob as Ge,Pb as Be,Sa as Le,Za as Ue,h as Ce,pb as Q,r as ke,t as Re,ya as De,zb as Oe}from"./chunk-HFUAMYUL.js";import{b as de,c as pe}from"./chunk-O6FHKKX6.js";import{a as L}from"./chunk-JLRCENAR.js";import{d as be}from"./chunk-U6MR7ILR.js";import"./chunk-AL6BAHEL.js";import{F as D,L as K,q as ue,s as me,x as fe}from"./chunk-MOSFGYNE.js";import"./chunk-RNDEH3LZ.js";import"./chunk-KZ7O3UVX.js";import"./chunk-5KBJRCJV.js";import{Ab as S,Bb as b,Dc as R,Eb as B,Fb as j,Gb as _,Hb as o,Ib as s,Jb as P,Ob as y,Qb as x,Sb as l,Va as I,Wb as re,Xb as W,Yb as H,_ as E,_a as a,bc as z,cc as C,da as c,dc as d,ec as A,fc as m,ga as Z,ha as ee,ia as v,ic as ae,ja as g,jc as oe,kc as se,mb as ie,oa as te,qc as le,sc as k,ua as h,uc as ce,vc as p,wc as u,yb as ne}from"./chunk-3SJGPUSV.js";import"./chunk-FL5ZKMHP.js";import"./chunk-DQ2W24MV.js";import{a as w,b as J}from"./chunk-LSIHGRHO.js";var M=class n{functions=c(he);injector=c(Z);async requestDeletion(){return(await this.runInFirebase(()=>xe(this.functions,"requestAccountDeletion"))()).data}runInFirebase(t){return ee(this.injector,t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=E({token:n,factory:n.\u0275fac,providedIn:"root"})};var He=1*1024*1024,V=class n{auth=c(D);storage=c(Pe);authService=c(L);userService=c(O);async uploadAvatar(t){let e=this.requireUser(),i=this.getAvatarRef(e.uid);await Se(i,t,{contentType:t.type||void 0});let r=await we(i);return await K(e,{photoURL:r}),this.userService.invalidateAvatarUrl(),this.authService.notifyCurrentUserChanged(),await this.forceAuthRefresh(e),r}async deleteAvatar(){let t=this.requireUser(),e=this.getAvatarRef(t.uid);try{await ye(e)}catch{}await K(t,{photoURL:""}),this.userService.invalidateAvatarUrl(),this.authService.notifyCurrentUserChanged(),await this.forceAuthRefresh(t)}requireUser(){let t=this.auth.currentUser;if(!t)throw new Error("User is not authenticated.");return t}getAvatarRef(t){return Ee(this.storage,`users/${t}/profile/avatar`)}async forceAuthRefresh(t){await t.getIdToken(!0)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=E({token:n,factory:n.\u0275fac,providedIn:"root"})};var N={emailUpdates:!0,productNews:!0,tips:!0},G=class n{auth=c(D,{optional:!0});firestore=c(_e,{optional:!0});async loadNotificationPreferences(){if(!this.auth||!this.firestore)return w({},N);let t=this.auth.currentUser;if(!t)return w({},N);let e=X(this.firestore,`users/${t.uid}/settings/notifications`),i=await ve(e);if(!i.exists())return w({},N);let r=i.data();return{emailUpdates:r.emailUpdates??!0,productNews:r.productNews??!0,tips:r.tips??!0}}async saveNotificationPreferences(t){if(!this.auth||!this.firestore)return;let e=this.auth.currentUser;if(!e)return;let i=X(this.firestore,`users/${e.uid}/settings/notifications`);await ge(i,t,{merge:!0})}async changePassword(t,e){let i=this.auth?.currentUser;if(!i||!i.email)return{ok:!1,reason:"not-authenticated"};try{let r=ue.credential(i.email,t);return await me(i,r),await fe(i,e),{ok:!0}}catch(r){let f=r;return f.code==="auth/wrong-password"||f.code==="auth/invalid-credential"?{ok:!1,reason:"wrong-password"}:{ok:!1,reason:"failed"}}}static \u0275fac=function(e){return new(e||n)};static \u0275prov=E({token:n,factory:n.\u0275fac,providedIn:"root"})};var T=class n{repo=c(G);snackbar=c(U);notificationsLoading=h(!0);notificationsSaving=h(!1);notifications=h(w({},N));showPasswordModal=h(!1);isChangingPassword=h(!1);currentPassword=h("");newPassword=h("");confirmPassword=h("");constructor(){this.loadNotificationPreferences()}updateNotification(t,e){this.notifications.update(i=>J(w({},i),{[t]:e})),this.saveNotificationPreferences()}openPasswordModal(){this.resetPasswordFields(),this.showPasswordModal.set(!0)}closePasswordModal(){this.showPasswordModal.set(!1),this.resetPasswordFields()}async changePassword(){let t=this.currentPassword(),e=this.newPassword(),i=this.confirmPassword();if(!t||!e||!i){this.snackbar.open("SETTINGS_PAGE_PROFILE_PASSWORD_FIELDS_REQUIRED",{variant:"error"});return}if(e!==i){this.snackbar.open("SETTINGS_PAGE_PROFILE_PASSWORD_MISMATCH",{variant:"error"});return}if(e.length<6){this.snackbar.open("SETTINGS_PAGE_PROFILE_PASSWORD_TOO_SHORT",{variant:"error"});return}this.isChangingPassword.set(!0);try{let r=await this.repo.changePassword(t,e);if(r.ok){this.snackbar.open("PASSWORD_CHANGED_SUCCESSFULLY",{variant:"success"}),this.closePasswordModal();return}if(r.reason==="wrong-password"){this.snackbar.open("SETTINGS_PAGE_PROFILE_PASSWORD_WRONG_CURRENT",{variant:"error"});return}if(r.reason==="not-authenticated"){this.snackbar.open("SETTINGS_PAGE_PROFILE_PASSWORD_CHANGE_FAILED",{variant:"error"});return}this.snackbar.open("SETTINGS_PAGE_PROFILE_PASSWORD_CHANGE_FAILED",{variant:"error"})}finally{this.isChangingPassword.set(!1)}}async loadNotificationPreferences(){try{let t=await this.repo.loadNotificationPreferences();this.notifications.set(t)}catch{this.notifications.set(w({},N))}finally{this.notificationsLoading.set(!1)}}async saveNotificationPreferences(){this.notificationsSaving.set(!0);try{await this.repo.saveNotificationPreferences(this.notifications())}finally{this.notificationsSaving.set(!1)}}resetPasswordFields(){this.currentPassword.set(""),this.newPassword.set(""),this.confirmPassword.set("")}static \u0275fac=function(e){return new(e||n)};static \u0275prov=E({token:n,factory:n.\u0275fac})};var Ke=["avatarInput"],Xe=["editNameButton"],$e=n=>({id:"curr",label:"CURRENT_PASSWORD",model:n}),qe=n=>({id:"new",label:"NEW_PASSWORD",model:n}),Qe=n=>({id:"conf",label:"CONFIRM_NEW_PASSWORD",model:n}),Ye=(n,t,e)=>[n,t,e],Je=(n,t)=>t.key,Ze=(n,t)=>t.id;function et(n,t){if(n&1&&P(0,"img",8),n&2){let e=l();_("src",e.avatarPreviewUrl(),I)}}function tt(n,t){if(n&1&&P(0,"img",9),n&2){let e=l();_("src",e.userService.avatarUrl(),I)}}function it(n,t){if(n&1&&(o(0,"div",10),d(1),s()),n&2){let e=l();a(),m(" ",e.userService.initials()," ")}}function nt(n,t){if(n&1&&(o(0,"div",11),P(1,"lucide-icon",38),s()),n&2){let e=l();a(),_("img",e.icons.User)}}function rt(n,t){n&1&&P(0,"div",14)}function at(n,t){if(n&1){let e=y();o(0,"button",39),x("click",function(){v(e);let r=l(2);return g(r.removeAvatar())}),P(1,"lucide-icon",40),s()}if(n&2){let e=l(2);a(),_("img",e.icons.Trash2)}}function ot(n,t){if(n&1){let e=y();o(0,"button",39),x("click",function(){v(e);let r=l();return g(r.openAvatarPicker())}),P(1,"lucide-icon",40),s(),S(2,at,2,1,"button",41)}if(n&2){let e=l();a(),_("img",e.icons.Camera),a(),b(e.hasAvatar()?2:-1)}}function st(n,t){if(n&1){let e=y();o(0,"div",17)(1,"input",42),se("ngModelChange",function(r){v(e);let f=l();return oe(f.editedName,r)||(f.editedName=r),g(r)}),x("keydown.enter",function(){v(e);let r=l();return g(r.saveName())})("keydown.escape",function(){v(e);let r=l();return g(r.cancelEditingName())}),s(),o(2,"button",43),x("click",function(){v(e);let r=l();return g(r.saveName())}),P(3,"lucide-icon",44),s(),o(4,"button",45),x("click",function(){v(e);let r=l();return g(r.cancelEditingName())}),P(5,"lucide-icon",44),s()()}if(n&2){let e=l();a(),ae("ngModel",e.editedName),_("disabled",e.isSavingName()),a(),_("disabled",e.isSavingName()),a(),_("img",e.icons.Check),a(),_("disabled",e.isSavingName()),a(),_("img",e.icons.X)}}function lt(n,t){if(n&1){let e=y();o(0,"h2",46),d(1),s(),o(2,"button",47,1),x("click",function(){v(e);let r=l();return g(r.startEditingName())}),P(4,"lucide-icon",48),s()}if(n&2){let e=l();a(),m(" ",e.userService.displayName()," "),a(3),_("img",e.icons.Pencil)}}function ct(n,t){if(n&1){let e=y();o(0,"section",21)(1,"h3",22),d(2),p(3,"translate"),s(),o(4,"div",25)(5,"div",26),P(6,"lucide-icon",27),o(7,"div")(8,"div",28),d(9),p(10,"translate"),s(),o(11,"p",49),d(12,"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"),s()()(),o(13,"button",50),x("click",function(){v(e);let r=l();return g(r.openPasswordModal())}),d(14),p(15,"translate"),s()()()}if(n&2){let e=l();
1a(2),m(" ",u(3,4,"SECURITY")," "),a(4),_("img",e.icons.Lock),a(3),A(u(10,6,"PASSWORD")),a(5),m(" ",u(15,8,"CHANGE_PASSWORD")," ")}}function dt(n,t){if(n&1){let e=y();o(0,"div",51),x("click",function(){let r=v(e).$implicit,f=l();return g(f.updateNotification(r.key,!f.notifications()[r.key]))})("keydown.space",function(r){let f=v(e).$implicit,Y=l();return r.preventDefault(),g(Y.updateNotification(f.key,!Y.notifications()[f.key]))})("keydown.enter",function(){let r=v(e).$implicit,f=l();return g(f.updateNotification(r.key,!f.notifications()[r.key]))}),P(1,"lucide-icon",52),o(2,"div",53)(3,"div",28),d(4),p(5,"translate"),s(),o(6,"p",54),d(7),p(8,"translate"),s()(),o(9,"span",55),P(10,"span",56),s()()}if(n&2){let e=t.$implicit,i=l();ne("aria-checked",i.notifications()[e.key]),a(),_("img",e.icon),a(3),A(u(5,8,e.label)),a(3),m(" ",u(8,10,e.desc)," "),a(2),C(i.notifications()[e.key]?"bg-primary":"bg-gray-300 dark:bg-gray-700"),a(),z("translate-x-5",i.notifications()[e.key])}}function pt(n,t){if(n&1){let e=y();o(0,"div",63)(1,"label",67),d(2),p(3,"translate"),s(),o(4,"input",68),x("ngModelChange",function(r){let f=v(e).$implicit;return g(f.model.set(r))}),s()()}if(n&2){let e=t.$implicit;a(2),A(u(3,2,e.label)),a(2),_("ngModel",e.model())}}function ut(n,t){if(n&1){let e=y();o(0,"div",57),x("click",function(){v(e);let r=l();return g(r.closePasswordModal())}),o(1,"div",58),x("click",function(r){return r.stopPropagation()}),o(2,"div",59)(3,"header",33)(4,"h3",60),d(5),p(6,"translate"),s(),o(7,"p",61),d(8),p(9,"translate"),s()(),o(10,"div",62),B(11,pt,5,4,"div",63,Ze),s(),o(13,"div",64)(14,"button",65),x("click",function(){v(e);let r=l();return g(r.closePasswordModal())}),d(15),p(16,"translate"),s(),o(17,"button",66),x("click",function(){v(e);let r=l();return g(r.changePassword())}),d(18),p(19,"translate"),s()()()()()}if(n&2){let e=l();a(5),A(u(6,4,"CHANGE_PASSWORD")),a(3),m(" ",u(9,6,"SETTINGS_PAGE_PROFILE_PASSWORD_HINT")," "),a(3),j(ce(18,Ye,k(12,$e,e.currentPassword),k(14,qe,e.newPassword),k(16,Qe,e.confirmPassword))),a(4),m(" ",u(16,8,"CANCEL")," "),a(3),m(" ",u(19,10,"SAVE")," ")}}var mt="bg-amber-500",ft="bg-violet-600",_t="bg-gray-300 dark:bg-gray-600",vt="bg-amber-500 text-white",gt="bg-violet-600 text-white",ht="bg-gray-200 text-gray-600 dark:bg-gray-700 dark:text-gray-300",ze=class n{avatarInput;editNameButton;userService=c(O);subscriptionService=c(je);avatarRepo=c(V);snackbar=c(U);destroyRef=c(te);authService=c(L);deleteAccountService=c(M);settingsState=c(T);confirmation=c(We);translate=c(de);effectivePlanId=this.subscriptionService.effectivePlanId;planLabelKey=R(()=>{switch(this.effectivePlanId()){case"max":return"MAX";case"pro":return"PRO";default:return"FREE"}});isUploading=h(!1);isRemoving=h(!1);avatarPreviewUrl=h(null);isDeletingAccount=h(!1);isEditingName=h(!1);isSavingName=h(!1);editedName=h("");showPasswordModal=this.settingsState.showPasswordModal;isChangingPassword=this.settingsState.isChangingPassword;currentPassword=this.settingsState.currentPassword;newPassword=this.settingsState.newPassword;confirmPassword=this.settingsState.confirmPassword;notificationsLoading=this.settingsState.notificationsLoading;notificationsSaving=this.settingsState.notificationsSaving;notifications=this.settingsState.notifications;icons={Camera:ke,User:Fe,AlertTriangle:Me,X:Ve,Pencil:Le,Check:Re,Trash2:Oe,Lock:De,Bell:Ce,Mail:$,Megaphone:q,Sparkles:Q,Puzzle:Ue};chromeExtensionUrl=`https://chromewebstore.google.com/detail/takeitupai-ai-communicati/${be[0]}`;notificationItems=[{key:"emailUpdates",label:"ACCOUNT_UPDATES",desc:"SETTINGS_PAGE_NOTIFICATIONS_EMAIL_UPDATES_DESC",icon:$},{key:"productNews",label:"PRODUCT_NEWS",desc:"SETTINGS_PAGE_NOTIFICATIONS_PRODUCT_NEWS_DESC",icon:q},{key:"tips",label:"TIPS_&_RESOURCES",desc:"SETTINGS_PAGE_NOTIFICATIONS_TIPS_DESC",icon:Q}];isEmailPasswordUser=R(()=>(this.authService.user()?.providerData||[]).some(e=>e.providerId==="password"));hasAvatar=R(()=>!!this.userService.avatarUrl());constructor(){this.destroyRef.onDestroy(()=>{this.revokeAvatarPreviewUrl()})}updateNotification(t,e){this.settingsState.updateNotification(t,e)}startEditingName(){this.editedName.set(this.userService.displayName()),this.isEditingName.set(!0)}cancelEditingName(){this.isEditingName.set(!1),this.editedName.set("")}async saveName(){let t=this.editedName().trim();if(!t||t===this.userService.displayName()){this.cancelEditingName();return}this.isSavingName.set(!0);let e=await this.authService.updateDisplayName(t);this.isSavingName.set(!1),e?(this.snackbar.open("NAME_UPDATED",{variant:"success"}),this.isEditingName.set(!1)):this.snackbar.open("SETTINGS_PAGE_PROFILE_ALERTS_NAME_UPDATE_FAILED",{variant:"error"})}async confirmDeleteAccount(){if(await this.confirmation.confirm({title:this.translate.instant("DELETE_ACCOUNT"),message:this.translate.instant("SETTINGS_PAGE_PROFILE_DELETE_CONFIRM"),confirmText:this.translate.instant("DELETE"),cancelText:this.translate.instant("CANCEL"),confirmColor:"red"})){this.isDeletingAccount.set(!0);
1try{(await this.deleteAccountService.requestDeletion()).success?(this.authService.logout(),this.snackbar.open("DELETE_REQUEST_SUBMITTED",{variant:"success"})):this.snackbar.open("SETTINGS_PAGE_PROFILE_DELETE_FAILED",{variant:"error"})}catch{this.snackbar.open("SETTINGS_PAGE_PROFILE_DELETE_FAILED",{variant:"error"})}finally{this.isDeletingAccount.set(!1)}}}openAvatarPicker(){this.avatarInput?.nativeElement.click()}async onAvatarSelected(t){let e=t.target,i=e?.files?.[0]??null;if(e&&(e.value=""),!!i){if(this.setAvatarPreviewUrl(i),!i.type.startsWith("image/")){this.snackbar.open("SETTINGS_PAGE_PROFILE_AVATAR_ERROR_INVALID_TYPE",{variant:"error"});return}if(i.size>=He){this.snackbar.open("SETTINGS_PAGE_PROFILE_AVATAR_ERROR_TOO_LARGE",{variant:"error"});return}this.isUploading.set(!0);try{await this.avatarRepo.uploadAvatar(i),this.snackbar.open("AVATAR_UPDATED",{variant:"success"}),this.revokeAvatarPreviewUrl()}catch{this.snackbar.open("SETTINGS_PAGE_PROFILE_AVATAR_UPLOAD_ERROR",{variant:"error"})}finally{this.isUploading.set(!1)}}}async removeAvatar(){if(this.hasAvatar()){this.isRemoving.set(!0);try{await this.avatarRepo.deleteAvatar(),this.snackbar.open("SETTINGS_PAGE_PROFILE_AVATAR_REMOVED",{variant:"success"})}catch{this.snackbar.open("SETTINGS_PAGE_PROFILE_AVATAR_REMOVE_ERROR",{variant:"error"})}finally{this.isRemoving.set(!1)}}}openPasswordModal(){this.settingsState.openPasswordModal()}closePasswordModal(){this.settingsState.closePasswordModal()}async changePassword(){await this.settingsState.changePassword()}avatarRingClass(){let t=this.effectivePlanId();return t==="max"?mt:t==="pro"?ft:_t}planPillClass(){let t=this.effectivePlanId();return t==="max"?vt:t==="pro"?gt:ht}setAvatarPreviewUrl(t){let e=URL.createObjectURL(t);this.revokeAvatarPreviewUrl(),this.avatarPreviewUrl.set(e)}revokeAvatarPreviewUrl(){let t=this.avatarPreviewUrl();t&&URL.revokeObjectURL(t),this.avatarPreviewUrl.set(null)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=ie({type:n,selectors:[["profile-page"]],viewQuery:function(e,i){if(e&1&&re(Ke,5)(Xe,5),e&2){let r;W(r=H())&&(i.avatarInput=r.first),W(r=H())&&(i.editNameButton=r.first)}},features:[le([T])],decls:65,vars:45,consts:[["avatarInput",""],["editNameButton",""],[1,"mx-auto","max-w-4xl","animate-fadeIn","space-y-12","px-4","py-8","md:px-8"],[1,"flex","flex-col","items-center","gap-10","border-b","border-text-primary/5","pb-12","md:flex-row"],[1,"group","relative","flex-shrink-0"],["type","file","accept","image/*",1,"hidden",3,"change"],[1,"relative","flex","h-28","w-28","items-center","justify-center","overflow-hidden","rounded-full","p-1","md:h-32","md:w-32"],[1,"h-full","w-full","overflow-hidden","rounded-full","bg-white","dark:bg-card"],[1,"h-full","w-full","object-cover",3,"src"],["referrerpolicy","no-referrer",1,"h-full","w-full","object-cover",3,"src"],[1,"flex","h-full","w-full","items-center","justify-center","text-3xl","font-black","text-text-primary"],[1,"flex","h-full","w-full","items-center","justify-center","bg-gray-50","text-gray-400"],[1,"absolute","-bottom-2","left-1/2","flex","-translate-x-1/2","items-center","gap-1","whitespace-nowrap","rounded-full","border-2","border-white","px-3","py-1","text-[10px]","font-black","uppercase","tracking-widest","shadow-lg","dar
1k:border-sidebar"],[1,"absolute","inset-0","flex","items-center","justify-center","gap-2","rounded-full","bg-black/40","opacity-0","transition-opacity","group-hover:opacity-100"],[1,"h-6","w-6","animate-spin","rounded-full","border-2","border-white/30","border-t-white"],[1,"flex-1","space-y-2","text-center","md:text-left"],[1,"flex","flex-col","items-center","gap-3","md:flex-row"],[1,"flex","items-center","gap-2"],[1,"text-xl","font-medium","text-text-muted"],[1,"text-xs","font-medium","text-text-muted/70"],[1,"space-y-16"],[1,"space-y-6"],[1,"text-sm","font-bold","uppercase","tracking-[0.2em]","text-text-muted","opacity-60"],[1,"divide-y","divide-text-primary/5"],["role","switch","tabindex","0",1,"group","flex","cursor-pointer","items-center","gap-6","py-6"],[1,"flex","items-center","justify-between","py-2"],[1,"flex","items-center","gap-6"],[1,"h-6","w-6","text-text-muted",3,"img"],[1,"text-base","font-bold","text-text-primary"],[1,"max-w-xl","text-sm","font-medium","text-text-muted"],["target","_blank","rel","noopener noreferrer",1,"shrink-0","rounded-full","border","border-border-subtle","px-6","py-2.5","text-sm","font-bold","text-text-primary","transition-all","hover:bg-text-primary/[0.04]",3,"href"],[1,"border-t","border-text-primary/5","pt-8"],[1,"flex","items-center","justify-between"],[1,"space-y-1"],[1,"text-sm","font-bold","text-red-600","dark:text-red-400"],[1,"text-sm","font-medium","text-text-muted"],[1,"rounded-full","border","border-red-200","px-6","py-2.5","text-sm","font-bold","text-red-600","transition-all","hover:bg-red-50","dark:border-red-500/20","dark:hover:bg-red-500/10",3,"click","disabled"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/60","p-4","backdrop-blur-sm"],[1,"h-12","w-12",3,"img"],[1,"flex","h-10","w-10","items-center","justify-center","rounded-full","text-white","hover:bg-white/20",3,"click"],[1,"h-5","w-5",3,"img"],[1,"flex","h-10","w-10","items-center","justify-center","rounded-full","text-white","hover:bg-white/20"],["type","text","autofocus","",1,"rounded-xl","border-2","border-primary","bg-white","px-4","py-2","text-2xl","font-bold","focus:outline-none","dark:bg-card",3,"ngModelChange","keydown.enter","keydown.escape","ngModel","disabled"],[1,"rounded-full","p-2","text-green-500","hover:bg-green-500/10",3,"click","disabled"],[1,"h-7","w-7",3,"img"],[1,"rounded-full","p-2","text-gray-400","hover:bg-gray-500/10",3,"click","disabled"],[1,"text-4xl","font-black","tracking-tight","text-text-primary"],[1,"rounded-full","p-2","text-text-muted","transition-colors","hover:bg-primary/10","hover:text-primary",3,"click"],[1,"h-4","w-4",3,"img"],[1,"text-sm","text-text-muted"],[1,"rounded-full","border","border-border-subtle","px-6","py-2.5","text-sm","font-bold","text-text-primary","transition-all","hover:bg-text-primary/[0.04]",3,"click"],["role","switch","tabindex","0",1,"group","flex","cursor-pointer","items-center","gap-6","py-6",3,"click","keydown.space","keydown.enter"],[1,"h-6","w-6","text-text-muted","transition-colors","group-hover:text-primary",3,"img"],[1,"min-w-0","flex-1"],[1,"max-w-xl","text-sm","font-medium","leading-relaxed","text-text-muted"],["aria-hidden","true",1,"relative","h-7","w-12","flex-shrink-0","rounded-full","transition-colors"],[1,"pointer-events-none","absolute","left-1","top-1","h-5","w-5","rounded-full","bg-white","shadow-sm","transition-transform"],[1,"fixed","inset-0","z-50","flex","items-center","justify-center","bg-black/60","p-4","backdrop-blur-sm",3,"click"],[1,"w-full","max-w-md","animate-scaleIn","rounded-[40px]","bg-white","p-10","shadow-2xl","dark:bg-card",3,"click"],[1,"flex","flex-col","space-y-8"],[1,"text-2xl","font-black","text-text-primary"],[1,"text-sm","font-medium","leading-relaxed","text-text-muted"],[1,"space-y-5"],[1,"space-y-1.5"],[1,"flex","gap-3","pt-4"],[1,"flex-1","rounded-full","bg-gray-100","px-6","py-4","font-bold","text-text-primary","hover:bg-gray-200",3,"click"],[1,"flex-1","rounded-full","bg-primary","px-6","py-4","font-bold","text-white","shadow-lg","shadow-primary/20","transition-all","hover:bg-primary-hover","active:scale-95",3,"click"],[1,"px-1","text-xs","font-black","uppercase","tracking-[0.1em]","text-text-muted","opacity-60"],["type","password",1,"w-full","rounded-2xl","border","border-border-subtle","bg-text-primary/[0.02]","px-5","py-4","text-sm","font-bold","transition-all","focus:border-transparent","focus:outline-none","focus:ring-2","focus:ring-primary",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(o(0,"div",2)(1,"section",3)(2,"div",4)(3,"input",5,0),x("change",function(f){return i.onAvatarSelected(f)}),s(),o(5,"div",6)(6,"div",7),S(7,et,1,1,"img",8)(8,tt,1,1,"img",9)(9,it,2,1,"div",10)(10,nt,2,1,"div",11),s()(),o(11,"div",12),d(12),p(13,"translate"),s(),o(14,"div",13),S(15,rt,1,0,"div",14)(16,ot,3,2),s()(),o(17,"div",15)(18,"div",16),S(19,st,6,6,"div",17)(20,lt,5,2),s(),o(21,"p",18),d(22),s(),o(23,"p",19),d(24),p(25,"translate"),s()()(),o(26,"div",20),S(27,ct,16,10,"section",21),o(28,"section",21)(29,"h3",22),d(30),p(31,"translate"),s(),o(32,"div",23),B(33,dt,11,12,"div",24,Je),s()(),o(35,"section",21)(36,"h3",22),d(37),p(38,"translate"),s(),o(39,"div",25)(40,"div",26),P(41,"lucide-icon",27),o(42,"div")(43,"div",28),d(44),p(45,"translate"),s(),o(46,"p",29),d(47),p(48,"translate"),s()()(),o(49,"a",30),d(50),p(51,"translate"),s()()(),o(52,"section",31)(53,"div",32)(54,"div",33)(55,"h3",34),d(56),p(57,"translate"),s(),o(58,"p",35),d(59),p(60,"translate"),s()(),o(61,"button",36),x("click",function(){return i.confirmDeleteAccount()}),d(62),p(63,"translate"),s()()()()(),S(64,ut,20,22,"div",37)),e&2&&(a(5),C(i.avatarRingClass()),a(2),b(i.avatarPreviewUrl()?7:i.userService.avatarUrl()?8:i.userService.initials()?9:10),a(4),C(i.planPillClass()),a(),m(" ",u
1(13,25,i.planLabelKey())," "),a(2),z("opacity-100",i.isUploading()||i.isRemoving()),a(),b(i.isUploading()||i.isRemoving()?15:16),a(4),b(i.isEditingName()?19:20),a(3),A(i.userService.email()),a(2),m(" ",u(25,27,"SETTINGS_PAGE_PROFILE_AVATAR_HINT")," "),a(3),b(i.isEmailPasswordUser()?27:-1),a(3),m(" ",u(31,29,"NOTIFICATIONS")," "),a(3),j(i.notificationItems),a(4),m(" ",u(38,31,"BROWSER_EXTENSION")," "),a(4),_("img",i.icons.Puzzle),a(3),m(" ",u(45,33,"CHROME_EXTENSION")," "),a(3),m(" ",u(48,35,"SIDEBAR_EXTENSION_PROMO_SUBTITLE")," "),a(2),_("href",i.chromeExtensionUrl,I),a(),m(" ",u(51,37,"INSTALL")," "),a(6),m(" ",u(57,39,"DELETE_ACCOUNT")," "),a(3),m(" ",u(60,41,"SETTINGS_PAGE_PROFILE_DELETE_CONFIRM")," "),a(2),_("disabled",i.isDeletingAccount()),a(),m(" ",u(63,43,"DELETE_ACCOUNT")," "),a(2),b(i.showPasswordModal()?64:-1))},dependencies:[Be,Ge,Ie,Ae,Ne,Te,pe],encapsulation:2,changeDetection:0})};export{ze as ProfilePage};

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.