PageSourceSearch

https://www.foerch.de/chunk-MWFGEKXY.js

js foerch.de collected 2026-10-07 08:40:39 UTC 6,746 bytes, 1 lines download raw bytes

1import{c as oe}from"./chunk-LFBEE2XP.js";import{a as Z}from"./chunk-SSYWQ7NA.js";import{e as ee}from"./chunk-J5CFSPOG.js";import{a as S}from"./chunk-SUCSVOUD.js";import{a as $}from"./chunk-UH62HCTJ.js";import{d as W,e as X}from"./chunk-6MZQVTP4.js";import{C as K,F as Q,e as y,f as j,g as Y,n as H,u as z,v as J}from"./chunk-GE7A26O5.js";import{Yb as L,Zb as R,nd as I,od as q}from"./chunk-WGYJ4VNB.js";import{a as U}from"./chunk-HTNLXQUD.js";import{W as B}from"./chunk-N56O2TJA.js";import{Dc as c,Ea as l,Ec as n,Fc as d,Gc as m,Ib as i,Ma as M,Na as x,Nd as a,Od as s,Pa as N,Qc as T,Ra as k,Ya as A,_c as h,ac as g,ad as p,cb as E,fc as V,hc as C,pc as P,pd as u,qd as G,rc as b,rd as w,uc as O,wc as v,yc as _}from"./chunk-WI74XH4H.js";var F=class e{icons=$;isLoading=A(!1);modalForm;modalService=l(Z);globalMessageService=l(L);userService=l(oe);fb=l(K);injector=l(N);destroyRef=l(k);submitClicked=!1;isInvalidControl(t){let o=this.modalForm.get(t);return o.invalid&&(this.submitClicked||o.touched&&o.dirty)}dismissModal(){this.modalService.dismissActiveModal()}onSuccess(t,o,r=R.MSG_TYPE_CONFIRMATION){this.isLoading.set(!1),this.globalMessageService.add({key:t},r),this.modalService.closeActiveModal(),o&&this.userService.logoutAndTakeToLoginPage()}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=g({type:e,selectors:[["foerch-generic-user-profile-modal"]],decls:1,vars:0,template:function(o,r){o&1&&u(0,"DO NOT USE THIS COMPONENT DIRECTLY. USE A SUBCLASS INSTEAD.")},encapsulation:2})};var D=()=>[import("./chunk-X2GLQNE5.js").then(e=>e.FoerchPasswordComponent),j,z,I];function ne(e,t){if(e&1&&(n(0,"h4"),u(1),a(2,"cxTranslate"),d()),e&2){let o=p();i(),G(s(2,1,o.extraInfo))}}function ae(e,t){if(e&1){let o=T();n(0,"button",11),a(1,"cxTranslate"),h("click",function(){M(o);let f=p();return x(f.dismissModal())}),n(2,"span",12),m(3,"cx-icon",13),d()()}if(e&2){let o=p();O("aria-label",s(1,2,"common.close")),i(3),c("type",o.icons.CLOSE)}}function se(e,t){if(e&1&&(m(0,"foerch-password",14),a(1,"cxTranslate")),e&2){let o=p();c("autofocus",!0)("errorMsg",o.isInvalidOldPassword?"userProfileView.passwordDialog.oldPasswordIsRequired":"")("invalid",o.isInvalidOldPassword)("labelAndPlaceholder",s(1,4,"userProfileView.passwordDialog.oldPassword")+" *")}}function le(e,t){e&1&&m(0,"span")}function de(e,t){if(e&1&&(m(0,"foerch-password",15),a(1,"cxTranslate")),e&2){let o=p();c("autocomplete","new-password")("errorMsg",o.isInvalidNewPassword?"common.passwordMinRequirements":"")("invalid",o.isInvalidNewPassword)("labelAndPlaceholder",s(1,5,"userProfileView.passwordDialog.newPassword")+" *")("livePassCheck",!0)}}function ce(e,t){e&1&&m(0,"span")}function me(e,t){if(e&1&&(m(0,"foerch-password",16),a(1,"cxTranslate")),e&2){let o=p();c("autocomplete","new-password")("errorMsg",o.isDifferentPassword?"common.bothPasswordsMustMatch":"")("invalid",o.isDifferentPassword)("labelAndPlaceholder",s(1,4,"userProfileView.passwordDialog.confirmNewPassword")+" *")}}function pe(e,t){e&1&&m(0,"span")}function ue(e,t){if(e&1){let o=T();n(0,"div",8)(1,"button",17),h("click",function(){M(o);let f=p();return x(f.dismissModal())}),u(2),a(3,"cxTranslate"),d()()}e&2&&(i(2),w(" ",s(3,1,"common.dismiss")," "))}var te=class e extends F{allowCancel=!0;extraInfo;_userPasswordService=l(ee);get isInvalidOldPassword(){return this.isInvalidControl("oldPassword")}get isInvalidNewPassword(){if(this.submitClicked)return this.isInvalidControl("newPassword");{let t=this.modalForm.get("newPassword");return t.invalid&&t.dirty}}get isDifferentPassword(){if(this.submitClicked)return this.isInvalidControl("confirmedNewPassword");if(this.modalForm.get("confirmedNewPassword").dirty){let t=this.matchPassword(this.modalForm);return t&&t.NotEqual}return!1}ngOnInit(){this.modalForm=this.fb.group({oldPassword:["",[y.required]],newPassword:["",[y.required,S.passwordValidator]],confirmedNewPassword:["",[y.required,S.passwordValidator]]},{validators:this.matchPassword})}changePassword(){this.submitClicked=!0,this.modalForm.markAllAsTouched(),this.modalForm.updateValueAndValidity(),this.modalForm.valid&&(this.isLoading.set(!0),this._userPasswordService.update(this.modalForm.get("oldPassword").value,this.modalForm.get("newPassword").value).pipe(U(this.destroyRef)).subscribe({next:()=>{this.onSuccess("userProfileView.passwordDialog.passwordUpdateSuccess",!0)},complete:()=>{this.isLoading.set(!1)}}))}logoutAndTakeToForgotPasswordPage(){this.userService.logoutAndTakeToForgotPasswordPage()}matchPassword(t){return t.get("newPassword").value!==t.get("confirmedNewPassword").value?{NotEqual:!0}:null}static \u0275fac=(()=>{let t;return function(r){return(t||(t=E(e)))(r||e)}})();static \u0275cmp=g({type:e,selectors:[["foerch-change-password-modal"]],features:[V],decls:30,vars:15,consts:[[1,"modal-header"],[1,"modal-title"],["type","button",1,"close"],[1,"modal-body"],["autocomplete","off",3,"formGroup"],["aria-controls","reset-password",1,"btn","btn-link_secondary","mt-n2",3,"click"],[1,"modal-footer"],[1,"row"],[1,"col-sm-6"],[3,"ngClass"],["type","button",1,"btn","btn-primary","btn-block",3,"click","disabled"],["type","button",1,"close",3,"click"],["aria-hidden","true"],[3,"type"],["formControlName","oldPassword","inputId","oldPassword",3,"autofocus","errorMsg","invali
1d","labelAndPlaceholder"],["formControlName","newPassword","inputId","newPassword",3,"autocomplete","errorMsg","invalid","labelAndPlaceholder","livePassCheck"],["formControlName","confirmedNewPassword","inputId","confirmedNewPassword",3,"autocomplete","errorMsg","invalid","labelAndPlaceholder"],["type","button",1,"btn","btn-secondary","btn-block",3,"click"]],template:function(o,r){o&1&&(n(0,"div",0)(1,"h3",1),u(2),a(3,"cxTranslate"),d(),v(4,ne,3,3,"h4"),v(5,ae,4,4,"button",2),d(),n(6,"div",3)(7,"form",4),C(8,se,2,6)(9,le,1,0),P(10,8,D,null,9),b(),n(12,"button",5),h("click",function(){return r.logoutAndTakeToForgotPasswordPage()}),u(13),a(14,"cxTranslate"),d(),C(15,de,2,7)(16,ce,1,0),P(17,15,D,null,16),b(),C(19,me,2,6)(20,pe,1,0),P(21,19,D,null,20),b(),d()(),n(23,"div",6)(24,"div",7),v(25,ue,4,3,"div",8),n(26,"div",9)(27,"button",10),h("click",function(){return r.changePassword()}),u(28),a(29,"cxTranslate"),d()()()()),o&2&&(i(2),w(" ",s(3,9,"userProfileView.passwordDialog.header")," "),i(2),_(r.extraInfo?4:-1),i(),_(r.allowCancel?5:-1),i(2),c("formGroup",r.modalForm),i(6),w(" ",s(14,11,"loginForm.forgotPassword")," "),i(12),_(r.allowCancel?25:-1),i(),c("ngClass",r.allowCancel?"col-sm-6":"col-sm-12"),i(),c("disabled",r.isLoading()||r.modalForm.invali
1d),i(),w(" ",s(29,13,"common.save")," "))},dependencies:[q,X,W,B,Q,H,Y,J,I],styles:["[_nghost-%COMP%]     form>*:last-child .form-group{margin-bottom:0}"],changeDetection:0})};export{F as a,te as b};

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.