PageSourceSearch

https://www.manuscriptorium.com/hub/chunk-ADOGMH2X.js

js manuscriptorium.com collected 2026-10-01 12:00:52 UTC 6,968 bytes, 7 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2ddebea8-dff3-5955-b707-b0097262a919")}catch(e){}}();
3import{b as ce,d as Ce}from"./chunk-EIYSIKDH.js";import"./chunk-CJQ2WUWG.js";import{a as de,b as fe}from"./chunk-Q7HO4EIY.js";import{a as ue,b as pe}from"./chunk-4EMHEHJ6.js";import"./chunk-OLRWZBLG.js";import"./chunk-3HJQ4TOJ.js";import"./chunk-PVZKWQQE.js";import{e as me,i as le,k as se}from"./chunk-RS4OAOOQ.js";import"./chunk-CAZIV44N.js";import"./chunk-XIEPXTT7.js";import{a as ne,b as ae}from"./chunk-Z5SC3XPW.js";import"./chunk-C7TPGH4O.js";import"./chunk-OCEDQH3D.js";import{a as K}from"./chunk-QCZFMUQ2.js";import{a as P,b as Q,i as Z}from"./chunk-FYEFAVDI.js";import"./chunk-V32LTTP3.js";import"./chunk-CDLPTF5L.js";import"./chunk-JXYUH2JJ.js";import"./chunk-75MSKHQ5.js";import"./chunk-DBAVNV7D.js";import"./chunk-LZANT4A3.js";import"./chunk-2IL73E45.js";import"./chunk-VQTNL4J6.js";import"./chunk-NXGCLNSX.js";import"./chunk-6GTHYMO6.js";import"./chunk-LQWW6DAP.js";import"./chunk-QVMKUOA2.js";import{D as ie,E as oe,F as re,c as W,e as C,h as H,i as J,o as X,s as Y,t as ee,v as te}from"./chunk-DUEKGWVE.js";import"./chunk-SV4QHZ6R.js";import"./chunk-J7WPYGOY.js";import{a as G}from"./chunk-WZYMWVAN.js";import{a as w,d as V,e as q,f as z,g as A,h as O}from"./chunk-WO2N3BGC.js";import"./chunk-WHTYCSAG.js";import"./chunk-MIRAE4HP.js";import{b as R,f as L}from"./chunk-LKCBMZWZ.js";import"./chunk-VMBK3ESP.js";import"./chunk-VQM3N5YY.js";import"./chunk-U2S4Q5VS.js";import"./chunk-7B3DFEIE.js";import"./chunk-QFRXUKCK.js";import{$b as T,Bb as x,Ec as r,Fc as B,P as y,Rd as I,Wb as s,Yb as u,Z as N,Zc as f,_b as $,_c as c,_d as j,ac as U,bc as E,cc as o,dc as t,ec as d,g as S,jb as a,ma as p,md as k,nc as v,s as M,t as D,ya as F}from"./chunk-MPV5Q6GW.js";import"./chunk-THKSGHO2.js";function Ee(i,m){i&1&&(o(0,"mat-error"),r(1," Toto pole je povinn\xE9"),t())}function ve(i,m){i&1&&(o(0,"mat-error"),r(1," Toto pole je povinn\xE9"),t())}function he(i,m){i&1&&(o(0,"mat-error"),r(1," Toto pole je povinn\xE9"),t())}function _e(i,m){i&1&&(o(0,"span"),r(1,"Toto pole je povinn\xE9"),t())}function be(i,m){i&1&&(o(0,"span"),r(1,"Nen\xED ve form\xE1tu e-mailu"),t())}function Se(i,m){if(i&1&&(o(0,"mat-error"),s(1,_e,2,0,"span"),s(2,be,2,0,"span"),t()),i&2){let e=m;a(),u(e.required?1:-1),a(),u(e.email?2:-1)}}function Me(i,m){if(i&1&&(o(0,"mat-option",11),r(1),t()),i&2){let e=m.$implicit;E("value",e.path),a(),B(e.name)}}function ge(i){return i.reduce((m,e)=>m.concat([e]).concat(e.subGroups?ge(e.subGroups):[]),[])}var He=(()=>{class i{constructor(){this.dialogRef=p(w),this.builder=p(ie),this.destroyRef=p(F),this.groupService=p(ce),this.userService=p(Ce),this.groups=[],this.formSubmit=k(),this._loading=new S(!1),this.loading$=this._loading.asObservable(),this.userCreateForm=this.builder.group({firstName:[null,C.required],lastName:[null,C.required],username:[null,C.required],email:[null,[C.required,C.email]],groups:[null],attributes:this.builder.group({company:[null]}),sendLoginEmail:[!1]}),this.firstNameErrors$=this.fieldErrors$("firstName"),this.lastNameErrors$=this.fieldErrors$("lastName"),this.usernameErrors$=this.fieldErrors$("username"),this.emailErrors$=this.fieldErrors$("email")}ngOnInit(){this.groupService.fetchAll().subscribe(e=>{this.groups=ge(e)}),D([this.userCreateForm.get("firstName").valueChanges,this.userCreateForm.get("lastName").valueChanges]).pipe(G(this.destroyRef)).subscribe(e=>{!e[0]||!e[1]||this.userCreateForm.patchValue({username:`${this.normalizeString(e[0])}.${this.normalizeString(e[1])}`})})}onSubmit(e){this._loading.next(!0),this.userService.create(e).pipe(y(()=>{this._loading.next(!1)})).subscribe(()=>{this.dialogRef.close()})}fieldErrors$(e){let l=this.userCreateForm.get(e);return l.statusChanges.pipe(N(l.status),M(()=>l.errors))}normalizeString(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}static{this.\u0275fac=function(l){return new(l||i)}}static{this.\u0275cmp=x({type:i,selectors:[["km-user-create"]],outputs:{formSubmit:"formSubmit"},decls:56,vars:17,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex","flex-col",3,"ngSubmit","formGroup"],[1,"row"],[1,"col"],[1,"mb-2"],["formControlName","firstName","matInput",""],["formControlName","lastName","matInput",""],["formControlName","username","matInput",""],["formControlName","email","matInput","","type","email"],["formControlName","groups","multiple",""],[3,"value"],["formGroupName","attributes"],["formControlName","company","matInput",""],["formControlName","sendLoginEmail",1,"mb-3"],["mat-dialog-actions","",1,"p-3","flex","justify-between"],["mat-button","","mat-dialog-close","",1,"error-button"],["mat-raised-button","",1,"primary-button",3,"click","disabled","loading"]],template:function(l,n){if(l&1&&(o(0,"h1",0),r(1,"Vytvo\u0159it u\u017Eivatele"),t(),o(2,"div",1)(3,"form",2),v("ngSubmit",function(){return n.formSubmit.emit(n.userCreateForm.value)}),o(4,"div",3)(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),r(8,"K\u0159estn\xED jm\xE9no"),t(),d(9,"input",6),s(10,Ee,2,0,"mat-error"),f(11,"async"),t()(),o(12,"div",4)(13,"mat-form-field",5)(14,"mat-label"),r(15,"P\u0159\xEDjmen\xED"),t(),d(16,"input",7),s(17,ve,2,0,"mat-error"),f(18,"async"),t()()(),o(19,"div",3)(20,"div",4)(21,"mat-form-field",5)(22,"mat-label"),r(23,"U\u017Eivatelsk\xE9 jm\xE9no"),t(),d(24,"input",8),s(25,he,2,0,"mat-error"),f(26,"async"),t()(),o(27,"div",4)(28,"mat-form-field",5)(29,"mat-label"),r(30,"E-mail"),t(),d(31,"input",9),s(32,Se,3,2,"mat-error"),f(33,"async"),t()()(),o(34,"div",3)(35,"div",4)(36,"mat-form-field",5)(37,"mat-label"),r(38,"Skupiny"),t(),o(39,"mat-select",10),T(40,Me,2,2,"mat-option",11,$),t()()(),o(42,"div",4)(43,"div",12)(44,"mat-form-field")(45,"mat-label"),r(46,"Firma"),t(),d(47,"input",13),t()()()(),o(48,"mat-checkbox",14),r(49," Poslat p\u0159ihla\u0161ovac\xED e-mail"),t()()(),o(50,"div",15)(51,"button",16),r(52,"Zru\u0161it"),t(),o(53,"button",17),f(54,"async"),v("click",function(){return n.onSubmit(n.userCreateForm.value)}),r(55," Vytvo\u0159it "),t()()),l&2){let g,h,_,b;a(3),E("formGroup",n.userCreateForm),a(7),u((g=c(11,7,n.firstNameErrors$))?10:-1,g),a(7),u((h=c(18,9,n.lastNameErrors$))?17:-1,h),a(8),u((_=c(26,11,n.usernameErrors$))?25:-1,_),a(7),u((b=c(33,13,n.emailErrors$))?32:-1,b),a(8),U(n.groups),a(13),E("disabled",!n.userCreateForm.valid)("loading",c(54,15,n.loading$))}},dependencies:[j,O,V,q,A,z,L,R,se,Z,P,Q,le,me,ae,ne,fe,de,K,oe,X,W,H,J,re,Y,te,ee,pe,ue,I],styles:[`mat-form-field[_ngcontent-%COMP%]{width:100%}
4/*# sourceMappingURL=user-create-dialog.component-DEZIABQQ.css.map */`]})}}return i})();export{He as UserCreateDialogComponent};
5//# sourceMappingURL=chunk-ADOGMH2X.js.map
6
7//# debugId=2ddebea8-dff3-5955-b707-b0097262a919

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.