1"use strict";(self.webpackChunkenergy_tcm=self.webpackChunkenergy_tcm||[]).push([[5056],{57786:(y,g,e)=>{e.d(g,{a:()=>t});var r=e(89417),u=e(52693);class t extends r.k0{static exactLength(c){return a=>a.value&&a.value.length!==c?{exactlength:{value:a.value}}:null}static fullnameValidator(){const c=u.Yl;return a=>a.value&&!c.test(a.value+"")?{fullname:{value:a.value}}:null}static nonEmptyValidator(){const c=u.oi;return a=>a.value&&!c.test(a.value+"")?{nonEmpty:{value:a.value}}:null}static moRequiredValidator(c=!1){return a=>c||a.value?null:{moRequired:{value:a.value}}}static passwordMatchValidator(c){const a=c?.controls?.password,p=c?.controls?.password_again;return!a?.value||!p?.value||p.value!==a.value&&p.setErrors({match:!0}),null}static daysEmptyValidator(){return c=>{const a=c.value;return["monday","tuesday","wednesday","thursday","friday","saturday","sunday"].every(p=>!a[p]?.length)?{daysEmpty:!0}:null}}}},25056:(y,g,e)=>{e.r(g),e.d(g,{RegisterModule:()=>U});var r=e(60177),u=e(63040),t=e(54438),v=e(6985),c=e(82318),a=e(22474),p=e(48033),E=e(22193),s=e(89417),x=e(52693),l=e(45286),h=e(49748),i=e(57786),d=e(76965),_=e(97519),C=e(63649),R=e(73955);function b(o,M){if(1&o){const n=t.RV6();t.j41(0,"form",0)(1,"div",1)(2,"h2"),t.EFF(3,"P\u0159ihla\u0161ovac\xed \xfadaje"),t.k0s(),t.nrm(4,"mcrai-input",2)(5,"mcrai-input",3)(6,"mcrai-input",4),t.k0s(),t.j41(7,"div",1)(8,"h2"),t.EFF(9,"Osobn\xed \xfadaje"),t.k0s(),t.nrm(10,"mcrai-input",5)(11,"mcrai-input",6),t.k0s(),t.j41(12,"div",1)(13,"h2"),t.EFF(14,"Faktura\u010dn\xed \xfadaje"),t.k0s(),t.nrm(15,"mcrai-input",7)(16,"mcrai-input",8)(17,"mcrai-input",9)(18,"mcrai-input",10)(19,"mcrai-input",11)(20,"mcrai-input",12),t.k0s(),t.j41(21,"div",13)(22,"button",14),t.bIt("click",function(){t.eBV(n);const f=t.XpG();return t.Njj(f.register())}),t.EFF(23),t.nI1(24,"translate"),t.k0s()()()}if(2&o){const n=t.XpG();t.R7$(4),t.Y8G("control",n.registrationForm.controls.username)("errors",n.registrationErrors.username),t.R7$(),t.Y8G("control",n.registrationForm.controls.password)("errors",n.registrationErrors.password),t.R7$(),t.Y8G("control",n.registrationForm.controls.password_again)("errors",n.registrationErrors.password_again),t.R7$(4),t.Y8G("control",n.registrationForm.controls.email)("errors",n.registrationErrors.email),t.R7$(),t.Y8G("control",n.registrationForm.controls.phone)("errors",n.registrationErrors.phone),t.R7$(4),t.Y8G("control",n.registrationForm.controls.fullname)("errors",n.registrationErrors.fullname),t.R7$(),t.Y8G("control",n.registrationForm.controls.street),t.R7$(),t.Y8G("control",n.registrationForm.controls.city),t.R7$(),t.Y8G("control",n.registrationForm.controls.postal_code)("errors",n.registrationErrors.postal_code),t.R7$(),t.Y8G("control",n.registrationForm.controls.tin),t.R7$(),t.Y8G("control",n.registrationForm.controls.vat),t.R7$(2),t.Y8G("disabled",n.registrationForm.invalid),t.R7$(),t.SpI(" ",t.bMT(24,20,"registration.register")," ")}}function F(o,M){1&o&&(t.nrm(0,"div",15),t.nI1(1,"translate")),2&o&&t.Y8G("innerHTML",t.bMT(1,1,"registration.contact_text"),t.npT)}let D=(()=>{class o{static validateRegistrationForm(n){return n.controls.password_again.value&&n.controls.password.value!==n.controls.password_again.value&&n.controls.password_again.setErrors({match:!0}),null}constructor(n){this.store=n,this.NAME_CHARS_GREG=/^[^,:&@]*$/,this.NAME_MIN_2_PARTS_GREG=/\S+\s+\S+/,this.registrationErrors={username:{required:"Zadejte login pro p\u0159ihl\xe1\u0161en\xed k \xfa\u010dtu",pattern:"Login mus\xed b\xfdt e-mail"},password:{required:"Zadejte heslo pro p\u0159ihl\xe1\u0161en\xed k \xfa\u010dtu",minlength:"Heslo mus\xed b\xfdt minim\xe1ln\u011b 8 znak\u016f dlouh\xe9"},password_again:{required:"Zopakujte heslo",match:"Zadan\xe1 hesla se neshoduj\xed"},fullname:{required:"Jm\xe9no a p\u0159\xedjmen\xed nen\xed vypl\u011bno",pattern:"Jm\xe9no a p\u0159\xedjmen\xed nesm\xed obsahovat znaky .,:&@",name:"Jm\xe9no mus\xed m\xedt minim\xe1ln\u011b 2 \u010d\xe1sti"},email:{email:"Zadejte e-mail se spr\xe1vn\xe9m form\xe1tu: xxx@xxx nebo [email protected]",required:"Zadejte svoj\xed e-mailovou adresu"},phone:{pattern:"Telefon nen\xed ve form\xe1tu (+420) 123 456 789"},postal_code:{pattern:"PS\u010c m\u016f\u017ee obsahovat pouze \u010d\xedslice 0-9",exactlength:"PS\u010c mus\xed m\xedt 5 \u010d\xedslic"}},this.destroy=new l.B7,this.registrationAllowed=!0,this.registrationForm=new s.J3({username:new s.hs(null,[s.k0.required,s.k0.pattern(x.Ec)]),password:new s.hs(null,[s.k0.required,s.k0.minLength(8)]),password_again:new s.hs(null,[s.k0.required]),nickname:new s.hs,fullname:new s.hs(null,[
1i.a.required,i.a.pattern(this.NAME_CHARS_GREG),this.nameValidator()]),phone:new s.hs(null,i.a.pattern(x.Nm)),street:new s.hs(null),city:new s.hs(null),postal_code:new s.hs(null,[i.a.pattern(x.j8),i.a.exactLength(5)]),tin:new s.hs,vat:new s.hs},o.validateRegistrationForm.bind(this))}ngOnInit(){}ngOnDestroy(){this.destroy.next(),this.destroy.complete()}register(){return this.store.dispatch(new h.cH({body:{...this.registrationForm.value,nickname:this.registrationForm.value.fullname}})),!1}nameValidator(){const n=this.NAME_MIN_2_PARTS_GREG;return m=>m.value&&!n.test(m.value+"")?{name:{value:m.value}}:null}static#t=this.\u0275fac=function(m){return new(m||o)(t.rXU(d.il))};static#r=this.\u0275cmp=t.VBU({type:o,selectors:[["shop-register-form"]],decls:2,vars:1,consts:[["id","registration",1,"form"],[1,"form-section"],["placeholder","U\u017eivatelsk\xe9 jm\xe9no (e-mail) *","type","text",3,"control","errors"],["placeholder","Heslo *","type","password",3,"control","errors"],["placeholder","Heslo znovu *","type","password",3,"control","errors"],["placeholder","E-mail *","type","text",3,"control","errors"],["placeholder","Telefon","type","text",3,"control","errors"],["placeholder","Jm\xe9no a p\u0159\xedjmen\xed *","type","text",3,"control","errors"],["placeholder","Ulice a \u010d.p.","type","text",3,"control"],["placeholder","M\u011bsto","type","text",3,"control"],["placeholder","PS\u010c","type","text",3,"control","errors"],["placeholder","I\u010cO","type","text",3,"control"],["placeholder","DI\u010c","type","text",3,"control"],[1,"form-footer"],["mcrai-button","positive","size","large","form","registration",3,"click","disabled"],[3,"innerHTML"]],template:function(m,f){1&m&&t.DNE(0,b,25,22,"form",0)(1,F,2,3),2&m&&t.vxM(0,f.registrationAllowed?0:1)},dependencies:[_.N,C.Q,R.D9],styles:[".form[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:40px;padding:40px 32px 32px 40px;border-radius:4px;border:1px solid #ddd}.form-section[_ngcontent-%COMP%]{flex:0 1 420px}.form-footer[_ngcontent-%COMP%]{flex:1 1 100%;display:flex;justify-content:flex-end}"]})}return o})();function P(o,M){1&o&&t.nrm(0,"shop-header")}function T(o,M){1&o&&t.nrm(0,"mcrai-breadcrumbs",0)}function O(o,M){1&o&&t.nrm(0,"shop-footer",5)}const G=[{path:"",component:(()=>{class o{constructor(n){this.mobileApp=n}ngOnInit(){}static#t=this.\u0275fac=function(m){return new(m||o)(t.rXU("MOBILE_APP"))};static#r=this.\u0275cmp=t.VBU({type:o,selectors:[["shop-register"]],decls:15,vars:12,consts:[["current","Registrace"],["centering-container","",1,"page-content"],[1,"h1-style","h1-style--align-left"],[1,"text"],[3,"safeHTML"],[1,"pt32"]],template:function(m,f){1&m&&(t.DNE(0,P,1,0,"shop-header"),t.j41(1,"shop-content"),t.DNE(2,T,1,0,"mcrai-breadcrumbs",0),t.j41(3,"div",1)(4,"h1",2),t.EFF(5," Registrace "),t.k0s(),t.j41(6,"div",3),t.nrm(7,"div",4),t.nI1(8,"translate"),t.nrm(9,"div",4),t.nI1(10,"translate"),t.nrm(11,"div",4),t.nI1(12,"translate"),t.k0s(),t.nrm(13,"shop-register-form"),t.k0s()(),t.DNE(14,O,1,0,"shop-footer",5)),2&m&&(t.vxM(0,f.mobileApp?-1:0),t.R7$(2),t.vxM(2,f.mobileApp?-1:2),t.R7$(5),t.Y8G("safeHTML",t.bMT(8,6,"registration.text.paragraph1")),t.R7$(2),t.Y8G("safeHTML",t.bMT(10,8,"registration.text.points")),t.R7$(2),t.Y8G("safeHTML",t.bMT(12,10,"registration.text.paragraph2")),t.R7$(3),t.vxM(14,f.mobileApp?-1:14))},dependencies:[v.m,c.I,a.I,p.m,E.B,D,R.D9],styles:[".page-content[_ngcontent-%COMP%]{padding-block:40px}"]})}return o})()}];let j=(()=>{class o{static#t=this.\u0275fac=function(m){return new(m||o)};static#r=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[u.iI.forChild(G),u.iI]})}return o})();var A=e(50289),w=e(68339),I=e(70842),$=e(86464),B=e(29262),k=e(94831),L=e(91316);let U=(()=>{class o{static#t=this.\u0275fac=function(m){return new(m||o)};static#r=this.\u0275mod=t.$C({type:o});static#e=this.\u0275inj=t.G2t({imports:[r.MD,j,A.G,w.k,I.G,$.X,B.LU,k.f,L.U]})}return o})()},86464:(y,g,e)=>{e.d(g,{X:()=>c});var r=e(60177),u=e(50289),t=e(29262),v=e(54438);let c=(()=>{class a{static#t=this.\u0275fac=function(s){return new(s||a)};static#r=this.\u0275mod=v.$C({type:a});static#e=this.\u0275inj=v.G2t({imports:[r.MD,u.G,t.o6]})}return a})()},48033:(y,g,e)=>{e.d(g,{m:()=>x});var r=e(54438),u=e(87173),t=e(7165),v=e(63040);function c(l,h){1&l&&r.EFF(0," Homepage ")}function a(l,h){if(1&l&&r.EFF(0),2&l){const i=r.XpG().$implicit;r.SpI(" ",null==i.info[0]?null:i.info[0].name," ")}}function p(l,h){if(1&l&&(r.j41(0,"li",2)(1,"a",4),r.DNE(2,c,1,0)(3,a,1,1),r.k0s(),r.nrm(4,"img",5),r.k0s()),2&l){const i=h.$implicit,d=h.$index;r.R7$(),r.Y8G("mcraiLink",i),r.R7$(),r.vxM(2,0===d?2:3)}}function E(l,h){1&l&&r.nrm(0,"img",5)}function s(l,h){if(1&l&&(r.j41(0,"li",2)(1,"a",6),r.EFF(2," Homepage "),r.k0s(),r.DNE(3,E,1,0,"img",5),r.k0s()),2&l){const i=r.XpG();r.R7$(),r.Y8G("routerLink",i.linkService.getHomepageLink()),r.R7$(2),r.vxM(3,i.current?3:-1)}}let x=(()=>{class l{set path(i){Array.isArray(i)&&(this._path=i)}get path(){return this._path}constructor(i){this.linkService=i,this._path=[]}ngOnInit(){}static#t=this.\u0275fac=function(d){return new(d||l)(r.rXU(u._))};static#r=this.\u0275cmp=r.VBU({type:l,selectors:[["mcrai-breadcrumbs"]],hostVars:2,hostBindings:function(d,_){2&d&&r.AVh("mcrai-breadcrumbs",!0)},inputs:{path:"path",current:"current"},decls:7,vars:2,consts:[["centering-container",""],[1,"mcrai-breadcrumbs__list"],[1,"mcrai-breadcrumbs__item"],[1,"mcrai-breadcrumbs__item","mcrai-breadcrumbs__item--current"],[1,"mcrai-breadcrumbs__link",3,"mcraiLink"],["src","/assets/images/energy-tcm-only/decorative-symbol.svg","alt","decorative",1,"separator"],[1,"mcrai-breadcrumbs__link",3,"routerLink"]],template:function(d,_){1&d&&(r.j41(0,"div",0)(1,"ul",1),r.Z7z(2,p,5,2,"li",2,r.fX1),r.DNE(4,s,4,2,"li",2),r.j41(5,"li",3),r.EFF(6),r.k0s()()()),2&d&&(r.R7$(2),r.Dyx(_.path),r.R7$(2),r.vxM(4,_.path.length?-1:4),r.R7$(2),r.SpI(" ",_.current," "))},dependencies:[t.g,v.Wk],styles:["[_nghost-%COMP%]{display:block;background-color:#f6f6f6}.mcrai-breadcrumbs__list[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:16px;margin:0;padding:10px 0 11px;word-break:break-word;overflow-wrap:break-word;text-transform:lowercase}.mcrai-breadcrumbs__item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px;max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.mcrai-breadcrumbs__item--current[_ngcontent-%COMP%]{font-weight:700}.mcrai-breadcrumbs__link[_ngcontent-%COMP%]{transition:.2s color;text-transform:none;text-decoration:none;font-weight:400;color:inherit}.mcrai-breadcrumbs__link[_ngcontent-%COMP%]:hover{color:#a1135e}.mcrai-icon.mcrai-breadcrumbs__icon[_ngcontent-%COMP%]{font-size:18px}@media (max-width: 479px){.mcrai-breadcrumbs__item[_ngcontent-%COMP%]{max-width:100%}}"],changeDetection:0})}return l})()}}]);
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.