1import{a as K}from"./chunk-Z5KLOMHA.js";import{t as U}from"./chunk-2JNQDMKS.js";import{b as P,c as E}from"./chunk-IMK5WATV.js";import{c as F}from"./chunk-UNUMHETD.js";import{d as $,e as J}from"./chunk-CR7TG7L7.js";import{b as B,c as G,d as j,i as H,j as Y}from"./chunk-UMSIPUPB.js";import{a as L}from"./chunk-W7IWSIT2.js";import{D as A,I as R,c as I,f as s,i as T,k as O,n as h,u as V}from"./chunk-UYHH6E4C.js";import{b as q,c as z}from"./chunk-YREJNHQQ.js";import{j as N,l as k}from"./chunk-H44CII3F.js";import{p as D}from"./chunk-J2J2F6UT.js";import{Dc as g,Eb as y,Fc as S,Uc as i,Vc as w,Wc as x,cc as c,ec as p,jc as m,kc as t,lc as o,mc as u,ob as r,pa as d,qc as f,rc as C,uc as M,va as _,wa as v}from"./chunk-TG5FOCBJ.js";function Q(n,b){n&1&&(t(0,"mat-error"),i(1," Please enter your name "),o())}function W(n,b){n&1&&(t(0,"mat-error"),i(1," Name must be at least 3 characters "),o())}function X(n,b){if(n&1){let a=M();t(0,"button",13),g("click",function(){_(a);let e=S();return v(e.cancel())}),i(1,"Cancel"),o()}}var ve=(()=>{class n{dialogRef=d(q);auth=d(U);data=d(z);isCompleted=this.data.task.completed;currentUser=F(this.auth.currentUser$);email=this.currentUser()?.email?.trim()||"";fullNameControl=new h("",[s.required,s.minLength(3),s.maxLength(200)]);passwordControl=new h("",[s.required]);profileForm=new O({fullName:this.fullNameControl,password:this.passwordControl});constructor(){let a=this.currentUser();a?.fullName&&this.fullNameControl.setValue(a.fullName)}cancel(){this.dialogRef.close()}save(){this.profileForm.invalid||this.dialogRef.close({completed:!0,taskId:this.data.task.id,data:{fullName:this.fullNameControl.value,password:this.passwordControl.value}})}static \u0275fac=function(l){return new(l||n)};static \u0275cmp=y({type:n,selectors:[["ih-set-profile-dialog"]],decls:26,vars:9,consts:[["ih-header",""],["ih-content",""],[1,"dialog-description"],[1,"breadcrumb-hint"],["svgIcon","information"],["appearance","outline",1,"full-width"],["dir","auto","matInput","","autocomplete","name","type","text","required","",3,"formControl"],["align","end"],["hidden","","type","text","id","username","name","username","autocomplete","username",3,"value"],["label","Create a password","appearance","outline","autocomplete","new-password",3,"formControl"],["ih-footer",""],["mat-button","","type","button"],["mat-raised-button","","color","primary","type","button",3,"click","disabled"],["mat-button","","type","button",3,"click"]],template:function(l,e){l&1&&(t(0,"ih-basic-dialog"),f(1,0),i(2),C(),f(3,1),t(4,"p",2),i(5," Complete your profile by setting your name and password. This helps secure your account and personalizes your experience. "),o(),t(6,"div",3),u(7,"mat-icon",4),t(8,"span")(9,"strong"),i(10,"To edit later, go to:"),o(),i(11," Profile editor to change your name, or Security settings to reset your password"),o()(),t(12,"mat-form-field",5)(13,"mat-label"),i(14,"Your full name"),o(),u(15,"input",6),c(16,Q,2,0,"mat-error"),c(17,W,2,0,"mat-error"),t(18,"mat-hint",7),i(19),o()(),u(20,"input",8)(21,"ih-password-strength",9),C(),f(22,10),c(23,X,2,0,"button",11),t(24,"button",12),g("click",function(){return e.save()}),i(25," Save "),o(),C(),o()),l&2&&(r(2),w(e.data.task.title),r(13),m("formControl",e.fullNameControl),r(),p(e.fullNameControl.hasError("required")?16:-1),r(),p(e.fullNameControl.hasError("minlength")?17:-1),r(2),x("",(e.fullNameControl.value==null?null:e.fullNameControl.value.length)||0," / 200"),r(),m("value",e.email),r(),m("formControl",e.passwordControl),r(2),p(e.isCompleted?23:-1),r(),m("disabled",e.profileForm.invalid))},dependencies:[k,D,N,Y,H,B,j,G,E,P,J,$,R,I,T,A,V,L,K],styles:[".dialog-description[_ngcontent-%COMP%]{margin:0 0 1.5rem;color:var(--color-text-secondary, rgba(0, 0, 0, .6));font-size:.95rem;line-height:1.5}.breadcrumb-hint[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.5rem;padding:.75rem;margin-bottom:1.5rem;background:var(--color-background-secondary, #f5f5f5);border-radius:4px;font-size:.875rem}.breadcrumb-hint[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:20px;height:20px;font-size:20px;color:var(--color-primary, #1976d2);flex-shrink:0}.breadcrumb-hint[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{line-height:1.5}.full-width[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}mat-spinner[_ngcontent-%COMP%]{display:inline-block;margin:0 8px}"],changeDetection:0})}return n})();export{ve as a}; 2/**i18n:0f1fade16046009adad02f3fd9ac957882d03995a783f16776cfd917e99ccbcd*/
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.