{
  "version": 3,
  "sources": ["src/app/user/user-profile/user-profile.component.ts", "src/app/user/user-profile/user-profile.component.html"],
  "sourcesContent": ["import { CommonModule } from '@angular/common';\r\nimport { Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormBuilder, FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { _MatCheckboxRequiredValidatorModule, MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatOptionModule } from '@angular/material/core';\r\nimport { MAT_DIALOG_DATA, MatDialog, MatDialogModule, MatDialogRef } from '@angular/material/dialog';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { MatSnackBar } from '@angular/material/snack-bar';\r\nimport { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';\r\nimport { Store } from '@ngrx/store';\r\nimport { TranslateModule, TranslateService } from '@ngx-translate/core';\r\nimport { Observable } from 'rxjs';\r\nimport { tap } from 'rxjs/operators';\r\nimport { BackendService } from 'src/app/core/backend.service';\r\nimport { CustomLabelsService } from 'src/app/core/custom-labels.service';\r\nimport { selectCatalogSettings } from 'src/app/root-store/catalog-store/selectors';\r\nimport { CatalogSettings } from 'src/app/root-store/catalog-store/state';\r\nimport { RootState } from 'src/app/root-store/root-state.model';\r\nimport * as UserActions from 'src/app/root-store/user-store/actions';\r\nimport { selectUserProfile } from 'src/app/root-store/user-store/selectors';\r\nimport { SubSink } from 'subsink';\r\nimport { UserResult } from '../user.interfaces';\r\n\r\nexport enum UserProfileFormMode {\r\n  Registration = 'registration',\r\n  EditProfile = 'edit-profile'\r\n}\r\n\r\nexport interface UserProfileDialogData {\r\n  formMode: UserProfileFormMode\r\n  email: string\r\n}\r\n\r\n@Component({\r\n  selector: 'app-user-profile',\r\n  templateUrl: './user-profile.component.html',\r\n  styleUrl: './user-profile.component.scss',\r\n  imports: [\r\n    CommonModule, MatIconModule, FormsModule, ReactiveFormsModule, _MatCheckboxRequiredValidatorModule, TranslateModule,\r\n    MatDialogModule, MatButtonModule, MatFormFieldModule, MatSelectModule, MatOptionModule, MatInputModule,\r\n    MatCheckboxModule\r\n  ]\r\n})\r\nexport class UserProfileComponent implements OnInit, OnDestroy {\r\n\r\n  profileForm = this.fb.group({\r\n    greeting: [''],\r\n    company: [''],\r\n    firstName: [''],\r\n    lastName: [''],\r\n    street: [''],\r\n    zip: [''],\r\n    city: [''],\r\n    email: [''],\r\n    phone: [''],\r\n    password: [''],\r\n    privacyAccepted: [false]\r\n  })\r\n  isSubmitting = false\r\n  formMode!: UserProfileFormMode\r\n\r\n  private subs = new SubSink()\r\n  settings!: CatalogSettings\r\n\r\n  constructor(\r\n    private fb: FormBuilder,\r\n    private store: Store<RootState>,\r\n    private dialogRef: MatDialogRef<UserProfileComponent>,\r\n    private dialog: MatDialog,\r\n    @Inject(MAT_DIALOG_DATA) private data: UserProfileDialogData,\r\n    private backend: BackendService,\r\n    private translate: TranslateService,\r\n    private snackBar: MatSnackBar,\r\n    public customLabels: CustomLabelsService,\r\n  ) { }\r\n\r\n  ngOnInit() {\r\n    this.settings = this.store.selectSignal(selectCatalogSettings)()\r\n\r\n    this.formMode = this.data.formMode\r\n\r\n    if (this.data.email)\r\n      this.profileForm.controls.email.setValue(this.data.email)\r\n\r\n    if (this.formMode === UserProfileFormMode.EditProfile) {\r\n      const profile = this.store.selectSignal(selectUserProfile)()\r\n      this.profileForm.patchValue(profile!)\r\n    }\r\n  }\r\n\r\n  ngOnDestroy() {\r\n    this.subs.unsubscribe()\r\n  }\r\n\r\n  async openLogin(): Promise<void> {\r\n    this.dialogRef.close()\r\n\r\n    this.dialog.open(\r\n      (await import('../login/login.component')).LoginComponent,\r\n      {\r\n        data: { email: this.profileForm.controls.email.value }\r\n      })\r\n  }\r\n\r\n  onSubmit() {\r\n    this.isSubmitting = true\r\n\r\n    let result$: Observable<UserResult>\r\n    let successMsgKey: string\r\n\r\n    switch (this.formMode) {\r\n      case UserProfileFormMode.Registration:\r\n        result$ = this.backend.registerUser(this.profileForm.value)\r\n        successMsgKey = _('PROFILE.REGISTRATION_SUCCESS')\r\n        break\r\n      case UserProfileFormMode.EditProfile:\r\n        result$ = this.backend.updateMyProfile(this.profileForm.value)\r\n        successMsgKey = _('PROFILE.UPDATE_SUCCESS')\r\n        break\r\n    }\r\n\r\n    result$\r\n      .pipe(tap(() => this.isSubmitting = false))\r\n      .subscribe({\r\n        next: res => {\r\n          if (res.identityResult!.succeeded) {\r\n            this.store.dispatch(UserActions.LoadUser())\r\n            this.dialogRef.close()\r\n\r\n            this.snackBar.open(this.translate.instant(successMsgKey), undefined, { duration: 5000 })\r\n          } else\r\n            this.profileForm.setErrors({ serverError: res.identityResult!.errors.map(e => e.description || e.code).join(' ') })\r\n        }, error: error => {\r\n          this.profileForm.setErrors({ serverError: error })\r\n        }\r\n      })\r\n  }\r\n}\r\n", "<div mat-dialog-title>\r\n  <div>\r\n    <h1 *ngIf=\"formMode === 'registration'\">{{ 'LOGIN.REGISTER' | translate }}</h1>\r\n    <h1 *ngIf=\"formMode === 'edit-profile'\">{{ 'PROFILE_MENU.EDIT_PROFILE' | translate }}</h1>\r\n  </div>\r\n  <button mat-icon-button mat-dialog-close [disabled]=\"isSubmitting\">\r\n    <mat-icon>close</mat-icon>\r\n  </button>\r\n</div>\r\n\r\n<form [formGroup]=\"profileForm\" (ngSubmit)=\"onSubmit()\">\r\n  <mat-dialog-content>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'PROFILE.GREETING' | translate }}</mat-label>\r\n      <mat-select formControlName=\"greeting\" [required]=\"settings.Checkout.RequireGreeting\">\r\n        <mat-option *ngIf=\"!settings.Checkout.RequireGreeting\">-</mat-option>\r\n        <mat-option value=\"Herr\">{{ 'PROFILE.GREETING_OPTIONS.HERR' | translate }}</mat-option>\r\n        <mat-option value=\"Frau\">{{ 'PROFILE.GREETING_OPTIONS.FRAU' | translate }}</mat-option>\r\n        <mat-option *ngIf=\"settings.Checkout.GreetingCompany\" value=\"Firma\">{{ 'PROFILE.COMPANY' | translate }}</mat-option>\r\n      </mat-select>\r\n    </mat-form-field>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'PROFILE.COMPANY' | translate }}</mat-label>\r\n      <input matInput formControlName=\"company\" maxlength=\"100\" autocomplete=\"organization\" />\r\n    </mat-form-field>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'PROFILE.FIRST_NAME' | translate }}</mat-label>\r\n      <input matInput formControlName=\"firstName\" maxlength=\"25\" autocomplete=\"given-name\" required />\r\n    </mat-form-field>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'PROFILE.LAST_NAME' | translate }}</mat-label>\r\n      <input matInput formControlName=\"lastName\" maxlength=\"25\" autocomplete=\"family-name\" required />\r\n    </mat-form-field>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'PROFILE.STREET' | translate }}</mat-label>\r\n      <input matInput formControlName=\"street\" maxlength=\"255\" autocomplete=\"street-address\" required />\r\n    </mat-form-field>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'PROFILE.ZIP' | translate }}</mat-label>\r\n      <input matInput formControlName=\"zip\" maxlength=\"20\" autocomplete=\"postal-code\" required />\r\n    </mat-form-field>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'PROFILE.CITY' | translate }}</mat-label>\r\n      <input matInput formControlName=\"city\" maxlength=\"50\" autocomplete=\"address-level2\" required />\r\n    </mat-form-field>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'EMAIL' | translate }}</mat-label>\r\n      <input matInput type=\"email\" formControlName=\"email\" [email]=\"true\" maxlength=\"100\" autocomplete=\"email\" required />\r\n    </mat-form-field>\r\n    <mat-form-field>\r\n      <mat-label>{{ 'PROFILE.PHONE' | translate }}</mat-label>\r\n      <input matInput type=\"tel\" formControlName=\"phone\" maxlength=\"50\" autocomplete=\"tel\" required />\r\n    </mat-form-field>\r\n    <mat-form-field *ngIf=\"formMode === 'registration'\">\r\n      <mat-label>{{ 'PASSWORD' | translate }}</mat-label>\r\n      <input matInput type=\"password\" formControlName=\"password\" minlength=\"6\" autocomplete=\"new-password\" required />\r\n      <mat-error *ngIf=\"profileForm.controls.password.hasError('minlength')\">\r\n        {{ 'INPUT.MIN_LENGTH' | translate : { n: 6 } }}\r\n      </mat-error>\r\n    </mat-form-field>\r\n    <div *ngIf=\"formMode === 'registration'\">\r\n      <mat-checkbox formControlName=\"privacyAccepted\" required>{{ 'PROFILE.PRIVACY_ACCEPT' | translate }}</mat-checkbox>\r\n    </div>\r\n  </mat-dialog-content>\r\n  <div class=\"form-errors\" *ngIf=\"profileForm.errors\">\r\n    <mat-error *ngIf=\"profileForm.hasError('serverError')\">{{ profileForm.errors['serverError'] }}</mat-error>\r\n  </div>\r\n  <mat-dialog-actions align=\"end\">\r\n    <div *ngIf=\"formMode === 'registration'\" class=\"already-registered\">\r\n      {{ 'PROFILE.ALREADY_REGISTERED' | translate }}?\r\n      <a href=\"javascript:void(0)\" (click)=\"openLogin()\">{{ 'SIGN_IN' | translate }}</a>\r\n    </div>\r\n    <button type=\"submit\" mat-raised-button color=\"primary\" [disabled]=\"!profileForm.valid || isSubmitting\">\r\n      {{ (formMode === 'registration' ? 'PROFILE.CREATE_ACCOUNT' : 'PROFILE.UPDATE_ACCOUNT') | translate }}\r\n    </button>\r\n  </mat-dialog-actions>\r\n</form>\r\n"],
  "mappings": "ksCCEIA,EAAA,EAAA,IAAA,EAAwCC,EAAA,CAAA,mBAAkCC,EAAA,SAAlCC,EAAA,EAAAC,EAAAC,EAAA,EAAA,EAAA,gBAAA,CAAA,0BACxCL,EAAA,EAAA,IAAA,EAAwCC,EAAA,CAAA,mBAA6CC,EAAA,SAA7CC,EAAA,EAAAC,EAAAC,EAAA,EAAA,EAAA,2BAAA,CAAA,0BAYpCL,EAAA,EAAA,YAAA,EAAuDC,EAAA,EAAA,GAAA,EAACC,EAAA,0BAGxDF,EAAA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AAAmG,EAAAvD,WAAA,cAAA,EAIkBtD,EAAA,EAAAU,EAAA,OAAAmG,EAAAjG,YAAAI,MAAA,EAIlBhB,EAAA,CAAA,EAAAU,EAAA,OAAAmG,EAAAvD,WAAA,cAAA,EAIkDtD,EAAA,EAAAU,EAAA,WAAA,CAAAmG,EAAAjG,YAAA6G,OAAAZ,EAAA9D,YAAA,EACtD/C,EAAA,EAAAG,EAAA,IAAAD,EAAA,GAAA,GAAA2G,EAAAvD,WAAA,eAAA,yBAAA,wBAAA,EAAA,GAAA,kBD/BFoE,EAAYC,EAAEC,GAAaC,GAAEC,EAAWC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAEC,EAAmBC,EAAAC,EAAEC,GAAmCC,GAAEC,EAAeC,EACnHC,GAAeC,GAAAC,GAAAC,GAAAC,GAAEC,EAAeC,EAAAC,EAAEC,GAAkBC,GAAAC,GAAAC,GAAEC,GAAeC,GAAAC,EAAEC,EAAiBC,GAAcC,GACtGC,GAAiBC,EAAA,EAAAC,OAAA,CAAA;gEAAA,CAAA,CAAA,EAGf,IAAOzI,EAAP0I,SAAO1I,CAAoB,GAAA",
  "names": ["\u0275\u0275elementStart", "\u0275\u0275text", "\u0275\u0275elementEnd", "\u0275\u0275advance", "\u0275\u0275textInterpolate", "\u0275\u0275pipeBind1", "\u0275\u0275textInterpolate1", "\u0275\u0275pipeBind2", "\u0275\u0275pureFunction0", "_c0", "\u0275\u0275element", "\u0275\u0275template", "UserProfileComponent_mat_form_field_62_mat_error_5_Template", "\u0275\u0275property", "ctx_r0", "profileForm", "controls", "password", "hasError", "errors", "UserProfileComponent_div_64_mat_error_1_Template", "\u0275\u0275listener", "\u0275\u0275restoreView", "_r2", "\u0275\u0275nextContext", "\u0275\u0275resetView", "openLogin", "UserProfileFormMode", "UserProfileComponent", "constructor", "fb", "store", "dialogRef", "dialog", "data", "backend", "translate", "snackBar", "customLabels", "group", "greeting", "company", "firstName", "lastName", "street", "zip", "city", "email", "phone", "privacyAccepted", "isSubmitting", "subs", "SubSink", "ngOnInit", "settings", "selectSignal", "selectCatalogSettings", "formMode", "setValue", "EditProfile", "profile", "selectUserProfile", "patchValue", "ngOnDestroy", "unsubscribe", "__async", "close", "open", "LoginComponent", "value", "onSubmit", "result$", "successMsgKey", "Registration", "registerUser", "updateMyProfile", "pipe", "tap", "subscribe", "next", "res", "identityResult", "succeeded", "dispatch", "LoadUser", "instant", "undefined", "duration", "setErrors", "serverError", "map", "e", "description", "code", "join", "error", "\u0275\u0275directiveInject", "FormBuilder", "Store", "MatDialogRef", "MatDialog", "MAT_DIALOG_DATA", "BackendService", "TranslateService", "MatSnackBar", "CustomLabelsService", "selectors", "decls", "vars", "consts", "template", "rf", "ctx", "UserProfileComponent_h1_2_Template", "UserProfileComponent_h1_3_Template", "UserProfileComponent_mat_option_14_Template", "UserProfileComponent_mat_option_21_Template", "UserProfileComponent_mat_form_field_62_Template", "UserProfileComponent_div_63_Template", "UserProfileComponent_div_64_Template", "UserProfileComponent_div_66_Template", "Checkout", "RequireGreeting", "GreetingCompany", "valid", "CommonModule", "NgIf", "MatIconModule", "MatIcon", "FormsModule", "\u0275NgNoValidate", "DefaultValueAccessor", "NgControlStatus", "NgControlStatusGroup", "RequiredValidator", "MinLengthValidator", "MaxLengthValidator", "EmailValidator", "ReactiveFormsModule", "FormGroupDirective", "FormControlName", "_MatCheckboxRequiredValidatorModule", "MatCheckboxRequiredValidator", "TranslateModule", "TranslatePipe", "MatDialogModule", "MatDialogClose", "MatDialogTitle", "MatDialogActions", "MatDialogContent", "MatButtonModule", "MatButton", "MatIconButton", "MatFormFieldModule", "MatFormField", "MatLabel", "MatError", "MatSelectModule", "MatSelect", "MatOption", "MatOptionModule", "MatInputModule", "MatInput", "MatCheckboxModule", "MatCheckbox", "styles", "_UserProfileComponent"]
}