PageSourceSearch

https://manifest-code.com/chunk-HXSA5UEX.js

js manifest-code.com collected 2026-10-02 01:37:20 UTC 16,024 bytes, 3 lines download raw bytes

1import{a as ue}from"./chunk-BWOA3O75.js";import{a as oe}from"./chunk-QRDMA6DI.js";import{a as ne}from"./chunk-MIYFCTQ4.js";import"./chunk-IIXF7SBY.js";import"./chunk-PUN4APJN.js";import"./chunk-SZWPQOPO.js";import"./chunk-VT5ZPQML.js";import"./chunk-PUPRFTQE.js";import"./chunk-WPEK75LG.js";import{a as ie}from"./chunk-5A256VPV.js";import{b as te}from"./chunk-6ZMNKWZS.js";import"./chunk-73DAJ7S6.js";import"./chunk-2DI2KIVN.js";import"./chunk-UX4MQNMZ.js";import"./chunk-GNSDLL5C.js";import{B as X,S as Z,T as ee,a as K,j as Q}from"./chunk-4U4ML4TW.js";import{C as J,g as L,i as j,o as Y,r as W,v as H}from"./chunk-VBF2GIEK.js";import{k as I}from"./chunk-CEWHAWND.js";import{$ as q,B as U,D as _,F as A,G as B,K as T,M as V,N,O as z,P as R,Q as $,Y as G,n as k,r as O}from"./chunk-3GQPMSWI.js";import{$b as E,Ab as d,Jb as w,Ma as a,Ob as p,Qb as s,Zb as P,ab as M,ba as b,cc as o,dc as f,ec as D,ia as m,ja as c,rb as h,sb as g,vc as S,xb as x,xc as y,yb as i,zb as n}from"./chunk-B6BX7UR2.js";import"./chunk-T7S4UQRR.js";import"./chunk-QUJFQN2Y.js";import"./chunk-C47BX2NK.js";import"./chunk-QM4HJ7EF.js";import"./chunk-5FEFXGVO.js";import"./chunk-NXA6OUW7.js";import"./chunk-MTHZ7MWU.js";import"./chunk-WI5MSH4N.js";import"./chunk-YDWYQHVT.js";import"./chunk-KECZPZFP.js";import"./chunk-LTWXMWG5.js";import"./chunk-H6OOK2WT.js";import"./chunk-2V3V3YIG.js";import"./chunk-CKP3SGE2.js";import"./chunk-4WFVMWDK.js";import"./chunk-DVVH2KKN.js";import"./chunk-NV3QH4JK.js";import"./chunk-X6S6HNUM.js";import"./chunk-7KGURMOZ.js";import"./chunk-TDK4HUGW.js";import"./chunk-7G7AMD4F.js";import"./chunk-FCX3RDSO.js";import"./chunk-FSOYKJLJ.js";import"./chunk-VIMCRFDB.js";import"./chunk-4R3VVVOU.js";import"./chunk-FW2RO4O5.js";import"./chunk-LRFGNCHE.js";import"./chunk-M2X7KQLB.js";import"./chunk-NL7IECSO.js";import"./chunk-42C7ZIID.js";import"./chunk-OZYWYLNK.js";import{a as v,k as F}from"./chunk-STXFOC7T.js";function le(u,l){if(u&1&&(i(0,"div",13),o(1),n()),u&2){let r=s(2);a(),f(r.getFieldError("email"))}}function se(u,l){if(u&1&&(i(0,"div",13),o(1),n()),u&2){let r=s(2);a(),f(r.getFieldError("name"))}}function de(u,l){u&1&&o(0," \u0417\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435... ")}function me(u,l){u&1&&o(0," \u0417\u0430\u043F\u0430\u0437\u0438 \u043F\u0440\u043E\u043C\u0435\u043D\u0438\u0442\u0435 ")}function ce(u,l){if(u&1){let r=w();i(0,"app-custom-title",2),p("click",function(){m(r);let t=s();return c(t.toggleEditMode())}),n(),i(1,"div",3)(2,"div",4)(3,"div",5),d(4,"div",6),i(5,"div")(6,"div",7)(7,"strong"),o(8,"\u0410\u043A\u0442\u0438\u0432\u0435\u043D \u0430\u0431\u043E\u043D\u0430\u043C\u0435\u043D\u0442:"),n(),o(9),n()()(),i(10,"form",8),p("ngSubmit",function(){m(r);let t=s();return c(t.onSubmit())}),i(11,"div",9)(12,"div")(13,"label",10),o(14,"\u0418\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441"),n(),i(15,"div",11),d(16,"input",12),h(17,le,2,1,"div",13),n()(),i(18,"div")(19,"label",10),o(20,"\u041F\u043E\u043B"),n(),i(21,"div",11)(22,"select",14)(23,"option",15),o(24,"\u0418\u0437\u0431\u0435\u0440\u0438 \u043F\u043E\u043B..."),n(),i(25,"option",16),o(26,"\u0416\u0435\u043D\u0430"),n(),i(27,"option",17),o(28,"\u041C\u044A\u0436"),n(),i(29,"option",18),o(30,"\u0414\u0440\u0443\u0433\u043E"),n()(),d(31,"ion-icon",19),n()()(),i(32,"div",9)(33,"div")(34,"label",10),o(35,"\u0418\u043C\u0435"),n(),d(36,"input",20),h(37,se,2,1,"div",13),n(),i(38,"div")(39,"label",10),o(40,"\u0420\u043E\u0436\u0434\u0435\u043D \u0434\u0435\u043D"),n(),i(41,"div",11),d(42,"input",21,0),i(44,"button",22),p("click",function(){m(r);let t=P(43);return c(t.showPicker())}),d(45,"ion-icon",23),n()()()(),i(46,"div",24)(47,"div")(48,"app-gradient-button",25),h(49,de,1,0)(50,me,1,0),n()(),i(51,"div",26)(52,"app-gradient-button",27),p("buttonClick",function(){m(r);let t=s();return c(t.navigateToChangePassword())}),o(53," \u041F\u0440\u043E\u043C\u0435\u043D\u0438 \u043F\u0430\u0440\u043E\u043B\u0430 "),n()()()()()()}if(u&2){let r=s();x("backRoute",null),a(9),D(" ",r.currentSubscription||"\u041D\u044F\u043C\u0430 \u0430\u043A\u0442\u0438\u0432\u0435\u043D \u0430\u0431\u043E\u043D\u0430\u043C\u0435\u043D\u0442"," "),a(),x("formGroup",r.profileForm),a(6),E("border-red-400",r.getFieldError("email")),a(),g(r.getFieldError("email")?17:-1),a(19),E("border-red-400",r.getFieldError("name")),a(),g(r.getFieldError("name")?37:-1),a(11),x("disabled",r.profileForm.invali
1d||r.isSubmitting),a(),g(r.isSubmitting?49:50)}}function pe(u,l){u&1&&o(0," \u0416\u0435\u043D\u0430 ")}function fe(u,l){u&1&&o(0," \u041C\u044A\u0436 ")}function be(u,l){u&1&&o(0," \u0414\u0440\u0443\u0433\u043E ")}function he(u,l){u&1&&o(0," \u041D\u0435 \u0435 \u0437\u0430\u0434\u0430\u0434\u0435\u043D\u043E ")}function ge(u,l){if(u&1){let r=w();d(0,"app-custom-title",28),i(1,"ion-grid",29)(2,"ion-row",30)(3,"ion-col",31)(4,"ion-label",32),o(5,"\u0414\u0430\u0442\u0430 \u043D\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044F"),n()(),i(6,"ion-col",33)(7,"ion-label",32),o(8),S(9,"date"),n()()(),i(10,"ion-row",30)(11,"ion-col",31)(12,"ion-label",32),o(13,"\u0418\u043C\u0435"),n()(),i(14,"ion-col",33)(15,"ion-label",34),o(16),n()()(),i(17,"ion-row",30)(18,"ion-col",31)(19,"ion-label",32),o(20,"\u0418\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441"),n()(),i(21,"ion-col",33)(22,"ion-label",35),o(23),n()()(),i(24,"ion-row",30)(25,"ion-col",31)(26,"ion-label",32),o(27,"\u0420\u043E\u0436\u0434\u0435\u043D \u0434\u0435\u043D"),n()(),i(28,"ion-col",33)(29,"ion-label",32),o(30),S(31,"date"),n()()(),i(32,"ion-row",30)(33,"ion-col",31)(34,"ion-label",32),o(35,"\u041F\u043E\u043B"),n()(),i(36,"ion-col",33)(37,"ion-label",32),h(38,pe,1,0)(39,fe,1,0)(40,be,1,0)(41,he,1,0),n()()(),i(42,"ion-row",36)(43,"ion-col",31)(44,"ion-label",32),o(45,"\u0410\u043A\u0442\u0438\u0432\u0435\u043D \u0430\u0431\u043E\u043D\u0430\u043C\u0435\u043D\u0442"),n()(),i(46,"ion-col",33)(47,"ion-label",32),o(48),n()()(),i(49,"ion-row")(50,"ion-col",37)(51,"app-gradient-button",38),p("buttonClick",function(){m(r);let t=s();return c(t.toggleEditMode())}),o(52," \u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u0439 "),n()()(),i(53,"ion-row")(54,"ion-col",37)(55,"p",39),p("click",function(){m(r);let t=s();return c(t.deleteAccount())}),o(56," \u0418\u0437\u0442\u0440\u0438\u0439 \u0441\u0432\u043E\u044F \u043F\u0440\u043E\u0444\u0438\u043B "),n()()()()}if(u&2){let r,e=s();x("showBackButton",!1),a(8),f(y(9,7,e.user==null?null:e.user.createdAt,"mediumDate")),a(8),f((e.user==null?null:e.user.name)||"\u041D\u0435 \u0435 \u0437\u0430\u0434\u0430\u0434\u0435\u043D\u043E"),a(7),f((e.user==null?null:e.user.email)||"\u041D\u0435 \u0435 \u0437\u0430\u0434\u0430\u0434\u0435\u043D\u043E"),a(7),D(" ",e.user!=null&&e.user.dateOfBirth?y(31,10,e.user==null?null:e.user.dateOfBirth,"mediumDate"):"\u041D\u0435 \u0435 \u0437\u0430\u0434\u0430\u0434\u0435\u043D\u043E"," "),a(8),g((r=e.user==null?null:e.user.gender)==="female"?38:r==="male"?39:r==="other"?40:41),a(10),f(e.currentSubscription||"\u041D\u044F\u043C\u0430 \u0430\u043A\u0442\u0438\u0432\u0435\u043D \u0430\u0431\u043E\u043D\u0430\u043C\u0435\u043D\u0442")}}var Ue=(()=>{let l=class l{constructor(){this.authService=b(te),this.modalCtrl=b(H),this.fb=b(G),this.subscriptionService=b(ne),this.router=b(I),this.isEditMode=!1,this.user=null,this.showPassword=!1,this.originalUser=null,this.isSubmitting=!1,this.currentRoute="",K({eyeOff:ee,eye:Z,calendar:Q,chevronDown:X}),this.profileForm=this.fb.group({email:this.fb.control({value:"",disabled:!0},[_.required,_.email]),password:this.fb.control({value:"",disabled:!0},[_.required,_.minLength(6)]),name:["",[_.required]],birthDate:[""],gender:[""]})}ngOnInit(){this.currentRoute=this.router.url,this.userSubscription=this.authService.user$.subscribe(e=>{e&&(this.user=e,this.originalUser=v({},e),this.profileForm.patchValue({email:e.email||"",name:e.name||"",birthDate:this.formatDateForInput(e.dateOfBirth),gender:e.gender||"",password:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"}),this.profileForm.markAsUntouched()),this.subscriptionSubscription=this.subscriptionService.getCurrentSubscription().subscribe({next:t=>{this.currentSubscription=t.data.subscription?.name},error:t=>{console.error("Failed to fetch subscription:",t)}})})}ngOnDestroy(){this.userSubscription?.unsubscribe()}togglePassword(){this.showPassword=!this.showPassword}onSubmit(){if(this.profileForm.valid&&this.user&&!this.isSubmitting){this.isSubmitting=!0;let e=this.profileForm.value,t={name:e.name};e.birthDate&&e.birthDate.trim()!==""&&(t.dateOfBirth=e.birthDate),e.gender&&e.gender.trim()!==""&&(t.gender=e.gender),this.authService.updateProfile(t).subscribe({next:C=>{this.user&&(this.originalUser=v({},this.user)),this.isEditMode=!1,this.profileForm.markAsUntouched(),this.profileForm.markAsPristine()},error:C=>{this.profileForm.markAllAsTouched()},complete:()=>{this.isSubmitting=!1}})}else this.profileForm.markAllAsTouched()}toggleEditMode(){this.isEditMode?this.originalUser&&(this.profileForm.patchValue({email:this.originalUser.email||"",name:this.originalUser.name||"",birthDate:this.formatDateForInput(this.originalUser.dateOfBirth),gender:this.originalUser.gender||"",password:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"}),this.profileForm.markAsUntouched(),this.profileForm.markAsPristine()):this.user&&this.profileForm.patchValue({email:this.user.email||"",name:this.user.n
1ame||"",birthDate:this.formatDateForInput(this.user.dateOfBirth),gender:this.user.gender||"",password:"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022"}),this.isEditMode=!this.isEditMode}navigateToChangePassword(){this.router.navigate(["/change-pass"])}formatDateForInput(e){if(!e)return"";if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e;let t=new Date(e);if(isNaN(t.getTime()))return"";let C=t.getFullYear(),re=String(t.getMonth()+1).padStart(2,"0"),ae=String(t.getDate()).padStart(2,"0");return`${C}-${re}-${ae}`}getFieldError(e){let t=this.profileForm.get(e);if(t&&t.errors&&(t.touched||t.dirty)){if(t.errors.required)return`${this.getFieldDisplayName(e)} is required`;if(t.errors.email)return"Please enter a valid email";if(t.errors.minlength)return`${this.getFieldDisplayName(e)} must be at least ${t.errors.minlength.requiredLength} characters`}return null}getFieldDisplayName(e){return{email:"Email",password:"Password",name:"Name",birthDate:"Birth Date",gender:"Gender"}[e]||e}hasUnsavedChanges(){if(!this.isEditMode||!this.user)return!1;let e=this.profileForm.value;return e.name!==(this.user.name||"")||e.birthDate!==(this.user.dateOfBirth||"")||e.gender!==(this.user.gender||"")}deleteAccount(){return F(this,null,function*(){let e=yield this.modalCtrl.create({component:oe,componentProps:{redirectRoute:["/"]}});yield e.present(),yield e.onWillDismiss()})}};l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=M({type:l,selectors:[["app-user-info"]],decls:3,vars:1,consts:[["dateInput",""],[1,"mt-6","mb-6","rounded-lg","bg-white","p-6","shadow-md"],["title","\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u0430\u043D\u0435 \u043D\u0430 \u043B\u0438\u0447\u043D\u0430 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",3,"click","backRoute"],[1,"px-4"],[1,"py-6"],[1,"mb-6","flex","items-center"],[1,"mr-4","flex","h-12","w-12","items-center","justify-center","rounded-full","bg-[#2C9030]"],[1,"mb-1","text-sm","font-medium","text-gray-800"],[3,"ngSubmit","formGroup"],[1,"mb-4","grid","grid-cols-1","gap-4","md:grid-cols-2"],[1,"mb-2","block","text-sm","font-medium","text-gray-700"],[1,"relative"],["type","email","formControlName","email","placeholder","[email protected]",1,"w-full","rounded-full","border-2","border-yellow-400","bg-white","px-4","py-3","text-sm","focus:border-yellow-500","focus:outline-none"],[1,"mt-1","text-xs","text-red-500"],["formControlName","gender",1,"w-full","appearance-none","rounded-full","border-2","border-yellow-400","bg-white","px-4","py-3","pr-10","text-sm","focus:border-yellow-500","focus:outline-none"],["value",""],["value","female"],["value","male"],["value","other"],["name","chevron-down",1,"pointer-events-none","absolute","top-1/2","right-4","-translate-y-1/2","transform","text-lg","text-gray-400"],["type","text","formControlName","name","placeholder","\u0412\u044A\u0432\u0435\u0434\u0435\u0442\u0435 \u0438\u043C\u0435",1,"w-full","rounded-full","border-2","border-yellow-400","bg-white","px-4","py-3","text-sm","focus:border-yellow-500","focus:outline-none"],["type","date","formControlName","birthDate","placeholder","dd-mm-yyyy",1,"custom-date-input","w-full","rounded-full","border-2","border-yellow-400","bg-white","px-4","py-3","pr-12","text-sm","focus:border-yellow-500","focus:outline-none"],["type","button",1,"absolute","top-1/2","right-4","-translate-y-1/2","transform","cursor-pointer",3,"click"],["name","calendar",1,"text-lg","text-purple-500"],[1,"mt-8","grid","grid-cols-1","gap-4","md:grid-cols-2"],["variant","primary","size","default","shape","round","expand","block","type","submit",1,"save-button","flex-1",3,"disabled"],[1,"flex","w-full","items-end"],["variant","secondary","size","default","shape","round","expand","block","type","button",1,"flex-1",3,"buttonClick"],["title","\u041B\u0438\u0447\u043D\u0430 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044F",3,"showBackButton"],[1,"form-grid","md:px-4","md:py-6"],[1,"mb-4"],["size","12","size-md","6",1,"pb-2","md:pb-0"],[1,"text-base","font-medium","text-[#040303]"],["size","12","size-md","6",1,"pb-6","md:pb-0"],[1,"text-base","font-normal","text-[#040303]"],[1,"text-base","font-medium","wrap-anywhere","text-[#040303]"],[1,"mb-6"],["size","12",1,"pb-6","md:pb-0"],["variant","primary","width","full","type","button",3,"buttonClick"],[1,"text-mc-red","mt-8","font-bold","cursor-pointer",3,"click"]],template:function(t,C){t&1&&(i(0,"div",1),h(1,ce,54,11)(2,ge,57,13),n()),t&2&&(a(),g(C.isEditMode?1:2))},dependencies:[j,W,L,q,T,R,$,U,z,A,B,V,N,O,J,ue,ie,Y,k],styles:[`.form-field[_ngcontent-%COMP%]{position:relative}input[_ngcontent-%COMP%]:focus, select[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 3px #fbbf241a}select[_ngcontent-%COMP%]{background-image:none}.save-button[_ngcontent-%COMP%]{flex:1;padding:none;margin:none;box-shadow:none}.custom-date-input[_ngcontent-%COMP%]{position:relative}.custom-date-input[_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{opacity:0;pointer-events:none;position:absolute;right:0;width:20px;height:20px}.custom-date-input[_ngcontent-%COMP%]::-webkit-inner-spin-button, .custom-date-input[_ngcontent-%COMP%]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.custom-date-input[_ngcontent-%COMP%]::-moz-calendar-picker-indicator{opacity:0;pointer-events:none}.custom-date-input[_ngcontent-%COMP%]:invalid{color:#9ca3af}.custom-date-input[_ngcontent-%COMP%]:valid{color:#374151}.custom-date-input[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{z-index:10}.custom-date-input[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]:hover   ion-icon[_ngcontent-%COMP%]{transform:scale(1.1);transition:transform .2s ease-in-out}.custom-date-input[_ngcontent-%COMP%]:disabled{background-color:#f3f4f6;color:#9ca3af;cursor:not-allowed}.custom-date-input[_ngcontent-%COMP%]:disabled + button[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}.custom-date-input[_ngcontent-%COMP%]::-webkit-datetime-edit-fields-wrapper{padding:0}.custom-date-input[_ngcontent-%COMP%]::-webkit-datetime-edit-text{color:#6b7280;padding:0 1px}.custom-date-input[_ngcontent-%COMP%]::-webkit-datetime-edit-month-field, .custom-date-input[_ngcontent-%COMP%]::-webkit-datetime-edit-d
1ay-field, .custom-date-input[_ngcontent-%COMP%]::-webkit-datetime-edit-year-field{color:#374151}.custom-date-input[_ngcontent-%COMP%]:focus{outline:none;border-color:#f59e0b;box-shadow:0 0 0 1px #f59e0b}.custom-date-input[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]{transition:all .2s ease-in-out}.custom-date-input[_ngcontent-%COMP%] + button[_ngcontent-%COMP%]:active{transform:translateY(1px)}
2
3`]});let u=l;return u})();export{Ue as UserInfoComponent};

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.