1import{u as co,r as u}from"./index.83338d42.js";import{u as Be,F as Ue,a as uo,g as mo}from"./FormFrame.e0a66e56.js";import{u as po}from"./useUserContext.686828ff.js";import{C as re}from"./CheckboxFrame.68efb64b.js";import{C as Q}from"./CheckboxField.cc57dc15.js";import{R as vo,a as ho}from"./RadioField.e1d8eaca.js";import{u as Ye}from"./BaseStore.3052e45f.js";import{a3 as G,a4 as Ke,a5 as y,a6 as K,a7 as j,a8 as M,S as $,a as e,L as Ze,j as r,F as S,a1 as fo,a2 as yo}from"./Loader.0d40e272.js";import{O as ie,z as je}from"./PlatbyStore.1868cbde.js";import{h as bo,F as O}from"./platbaUtils.6c71a759.js";import{T as le,a as se}from"./TextFieldFrame.f3355b4b.js";import{F as ko}from"./FilterPopup.59486e27.js";import{C as Eo}from"./CheckboxGroupFrame.1905daa7.js";import{u as No}from"./useForceUpdate.93490fd4.js";import{O as Oe}from"./ObchodnyPartneriStore.8001181f.js";import{f as Me,S as Ie}from"./dateUtils.a05ee805.js";import{u as we,d as Oo,b as xo}from"./formatUtils.39ba9bda.js";import{P as go}from"./ProduktOmComp.88221cc9.js";import{B as ze}
1from"./ButtonFrameDouble.6b033162.js";import{B as _,c as Do}from"./Button.86052f17.js";import{M as J}from"./MojDomovStore.6eeaf516.js";import{a as xe}from"./googleAnalyticsUtils.fb5b34f6.js";import"./_commonjsHelpers.42a8abc7.js";import"./B_cancel.bbf10e6a.js";var Po=Object.defineProperty,Ao=Object.defineProperties,So=Object.getOwnPropertyDescriptors,Ce=Object.getOwnPropertySymbols,Vo=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,Fe=(a,d,p)=>d in a?Po(a,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):a[d]=p,qe=(a,d)=>{for(var p in d||(d={}))Vo.call(d,p)&&Fe(a,p,d[p]);if(Ce)for(var p of Ce(d))To.call(d,p)&&Fe(a,p,d[p]);return a},$e=(a,d)=>Ao(a,So(d));const Re=[{name:G.BYVANIE,value:"B\xFDvam tu"},{name:G.PRENAJOM,value:"Na pren\xE1jom"},{name:G.PODNAJOM,value:"Som v podn\xE1jme"}],ce=[{name:Ke.MENEJ_10,value:"Menej ako 10 rokov"},{name:Ke.VIAC_10,value:"Viac ako 10 rokov"}],_o=[{name:y.DOM,value:"Rodinn\xFD dom",optionName:"vyuzitieDom",options:Re},{name:y.BYT,value:"Byt",optionName:"vyuzitieByt",options:Re},{name:y.GARAZ,value:"Gar\xE1\u017E"},{name:y.CHATA,value:"Chata"},{name:y.INE,value:"In\xE9"}],Ko=[{name:K.PLYNOVY_KOTOL,value:"Plynov\xFD kotol",optionName:"kureniePlynovyKotol",options:ce},{name:K.ELEKTRICKY_KOTOL,value:"Elektrick\xFD kotol",optionName:"kurenieElektrickyKotol",options:ce},{name:K.TEPELNE_CERPADLO,value:"Tepeln\xE9 \u010Derpadlo"},{name:K.TUHE_PALIVO,value:"Tuh\xE9 palivo"},{name:K.CENTRALNE_VYKUROVANIE,value:"Centr\xE1lne vykurovanie"},{name:K.INE,value:"In\xE9"}],jo=[{name:j.PLYNOVY_KOTOL,value:"Plynov\xFD kotol",optionName:"ohrevPlynovyKotol",options:ce},{name:j.ELEKTRICKY_KOTOL,value:"Elektrick\xFD kotol",optionName:"ohrevElektrickyKotol",options:ce},{name:j.TEPELNE_CERPADLO,value:"Tepeln\xE9 \u010Derpadlo"},{name:j.TUHE_PALIVO,value:"Tuh\xE9 palivo"},{name:j.CENTRALNE_VYKUROVANIE,value:"Centr\xE1lne vykurovanie"},{name:j.INE,value:"In\xE9"}],Mo=[{name:M.CENTRALNA,value:"Centr\xE1lna klimatiz\xE1cia"},{name:M.TEPELNE_CERPADLO,value:"Tepeln\xE9 \u010Derpadlo"},{name:M.IZBA_SPLIT,value:"Izbov\xE9 klimatiza\u010Dn\xE9 jednotky"},{name:M.ZIADNA,value:"\u017Diadnu"}],Le=5;function Io({odberneMiesta:a,vyberOMCallback:d}){const{status:p}=Ye([Oe,je]),H=No(),[b,I]=u.exports.useState([]),[x,B]=u.exports.useState(""),[P,D]=u.exports.useState(Le),U=Be({mode:"all",context:{check:{required:{value:!1}}}}),{setValue:W,watch:ue}=U,k=ue("check");if(u.exports.useEffect(()=>{H(),(!x||x.length===0)&&I([])},[x]),u.exports.useEffect(()=>{let s;if(Array.isArray(k)&&k[0]?s=k[0]:!Array.isArray(k)&&k&&(s=k),s&&x&&x.length){const n=a.findIndex(h=>h.cisloOdbernehoMiesta===s)+1;n>P&&D(n)}},[k]),p===$.LOADING)return e(Ze,{status:p});const X=s=>{var n;return(n=je.getZUList())==null?void 0:n.find(h=>h.cisloZmluvnehoUctu===s.cisloZmluvnehoUctu)},de=s=>{var n;return(n=Oe.getObchodnyPartneri())==null?void 0:n.find(h=>h.cisloObchodnehoPartnera===s.cisloObchodnehoPartnera)},g={},me=()=>{a.forEach((s,n)=>{var h,f,z;const he=s.cisloZmluvnehoUctu,fe=s.cisloOdbernehoMiesta,oe=Oo(s.adresa),ye=xo((h=Oe.getObchodnyPartneri())==null?void 0:h.find(te=>te.cisloObchodnehoPartnera===s.cisloObchodnehoPartnera));g[n]=`${he}${fe}${oe}${ye}${Me((f=s.obdobie)==null?void 0:f.datumOd,Ie)}${Me((z=s.obdobie)==null?void 0:z.datumDo,Ie)}`})},i=s=>{me();const n=[];if(Object.keys(g).forEach(h=>{g[h].toLowerCase().includes(s.toLowerCase())&&n.push(h)}),n&&n.length>0){const h=a==null?void 0:a.filter((f,z)=>n.includes(String(z)));I(h)}else I([])},Y=s=>{const n=s.target.value;B(n.toLowerCase()),i(n)},ee=()=>b.length?b:a.slice(0,P),pe=(s,n)=>{n?(d&&d(void 0),W("check",[])):(d&&d(s),W("check",[s]))},w=()=>{if(x.length&&!(b!=null&&b.length))return e("div",{children:"Vyh\u013Ead\xE1vaniu nezodpovedaj\xFA \u017Eiadne produkty"});const s=ee();return e(Eo,{inputName:"check",useBottomBorder:!1,optionalStyle:"checkbox-items no-border",hidePadding:!0,children:s.map((n,h)=>{const f=Array.isArray(k)&&n.cisloOdbernehoMiesta===k[0]||k&&k===n.cisloOdbernehoMiesta;return e(Q,{labelOptionalStyle:h!==0?"checkbox flex-align-center flex-grow-1 border-top":"checkbox flex-align-center flex-grow-1",
1name:"check",value:n.cisloOdbernehoMiesta,onChange:()=>pe(n.cisloOdbernehoMiesta,f),children:e(go,{zmluvnyUcet:X(n),odberneMiesto:n,obchodnyPartner:de(n)})},n.cisloOdbernehoMiesta)})})};function T(){return a.length<5?null:e("div",{className:"grid-3 btm32 top32",children:e("input",{type:"text",id:"filter",className:"form-control",name:"filter",placeholder:"Adresa, variabiln\xFD symbol, meno...",onChange:Y})})}const ve=()=>x.length!==0;return e("div",{className:"grid-full wrapper",children:r(Ue,{formMethods:U,handleRegistration:()=>{},optionalStyle:"vyber-zu produkt-vyber-checkbox",children:[T(),w(),a.length>P&&!ve()&&e("button",{className:"left-svg-secondary show-more-arrow-button",onClick:s=>{s.preventDefault(),s.stopPropagation(),D(P+Le)},children:e("span",{className:"icon-V_down"})})]})})}function wo({inputName:a,sectionTitle:d,sectionStyle:p,errorStyle:H,children:b,className:I,registerOptions:x}){const B=Do("form-control","form-select",I),{register:P,formState:{errors:D},control:V}=uo(),U=mo(a,V,x);return r(S,{children:[d&&e("p",{className:`cl fs17 pad16-bottom ${p}`,children:d}),e("select",$e(qe({className:B},P(a,U)),{children:b})),(D==null?void 0:D[a])&&e("p",{className:`error fs17 ${H}`,children:D==null?void 0:D[a].message})]})}function zo({children:a,value:d}){return e("option",{value:d,children:a})}const Co={cisloOdbernehoMiesta:{required:{value:!0,message:O}},ulica:{required:{value:!0,message:O}},cisloDomu:{required:{value:!0,message:O}},psc:{required:{value:!0,message:O}},obec:{required:{value:!0,message:O}},typNehnutelnosti:{required:{value:!0,message:O}},vyuzitieByt:{required:{value:!0,message:O}},vyuzitieDom:{required:{value:!0,message:O}},jeVlastnik:{required:{value:!1}},akoKurite:{required:{value:!1}},akoOhrievateVodu:{required:{value:!1}},kureniePlynovyKotol:{required:{value:!0,message:O}},kurenieElektrickyKotol:{required:{value:!0,message:O}},ohrevPlynovyKotol:{required:{value:!0,message:O}},ohrevElektrickyKotol:{required:{value:!0,message:O}},typKlimatizacie:{required:{value:!1,message:O}}};function ct(){const[a]=we("id"),[d]=we("step"),p=co(),{user:H}=po(),{status:b}=Ye(a?[ie,J]:[ie]),[I,x]=u.exports.useState(void 0),[B,P]=u.exports.useState(!1),[D,V]=u.exports.useState(!1),[U,W]=u.exports.useState(!1),[ue,k]=u.exports.useState(!1),[X,de]=u.exports.useState([]),[g,me]=u.exports.useState(),[i,Y]=u.exports.useState(),[ee,pe]=u.exports.useState(!1),[w,T]=u.exports.useState(!1),[ve,s]=u.exports.useState(!0),[n,h]=u.exports.useState(!0),[f,z]=u.exports.useState(d?2:1),[he,fe]=u.exports.useState(!1),oe=Be({mode:"all",context:Co,defaultValues:{typNehnutelnosti:a?void 0:y.DOM,vyuzitieDom:a?void 0:G.BYVANIE,jeVlastnik:!a}}),{handleSubmit:ye,formState:{isSubmitting:te},watch:Z,getValues:v,setValue:l}=oe,be=Z("cisloOdbernehoMiesta"),A=Z("typNehnutelnosti"),ge=Z("vyuzitieByt"),De=Z("vyuzitieDom"),C=Z("akoKurite"),F=Z("akoOhrievateVodu"),Ge=[y.GARAZ,y.INE],Pe=ge===G.PODNAJOM,Ae=De===G.PODNAJOM,He=!Pe&&!Ae,E=A&&!Ge.includes(A),q=u.exports.useMemo(()=>{var o;return b===$.DONE?(o=J.getMojDomov().items)==null?void 0:o.find(t=>(t==null?void 0:t.id)===a&&t):void 0},[b]),Je=()=>ie.getOdberneMiesta().filter(t=>t.platne===!0).length>0;if(u.exports.useEffect(()=>{b===$.DONE&&(Je()&&fe(!0),me(ie.getOdberneMiesta().filter(o=>bo(o.obdobie))),a?Y(q):de(J.getMojDomov().items))},[b]),u.exports.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[f]),u.exports.useEffect(()=>{var o,t,m,c;if(a&&i&&!ee){pe(!0);const N=i.nehnutelnostTyp===y.DOM,L=i.nehnutelnostTyp===y.BYT;l("cisloOdbernehoMiesta",i.cisloOdbernehoMiesta),l("typNehnutelnosti",i.nehnutelnostTyp),l("vyuzitieDom",N?i==null?void 0:i.nehnutelnostVyuzitie:void 0),l("vyuzitieByt",L?i==null?void 0:i.nehnutelnostVyuzitie:void 0),l("jeVlastnik",i.vlastnik),l("akoKurite",i.kurenie),l("akoOhrievateVodu",i.teplaVoda),l("kureniePlynovyKotol",i.kureniePlynovyKotolVek),l("kurenieElektrickyKotol",i.kurenieElektrickyKotolVek),l("ohrevPlynovyKotol",i.teplaVodaPlynovyKotolVek),l("ohrevElektrickyKotol",i.teplaVodaElektrickyKotolVek),l("typKlimatizacie",i.klimatizacia),i.cisloOdbernehoMiesta||(l("ulica",(o=i.adresa)==null?void 0:o.ulica),l("cisloDomu",(t=i.adresa)==null?void 0:t.cisloDomu),l("psc",(m=i.adresa)==null?void 0:m.psc),l("obec",(c=i.adresa)==null?void 0:c.obec),T(!0))}},[i,ee]),u.exports.useEffect(()=>{if(be){const o=g==null?void 0:g.find(t=>(t==null?void 0:t.cisloOdbernehoMiesta)===be);T(!1),Y(a?$e(qe({},i),{cisloOdbernehoMiesta:o==null?void 0:o.cisloOdbernehoMiesta,cisloObchodnehoPartnera:o==null?void 0:o.cisloObchodnehoPartnera,adresa:o==null?void 0:o.adresa}):o)}else Y(void 0)},[be]),u.exports.useEffect(()=>{const o=A===y.DOM,t=A===y.BYT;if(A&&(o||l("vyuzitieDom",void 0),t||l("vyuzitieByt",void 0)),!E||Pe||Ae){s(!1);return}s(!0)},[A,De,ge]),u.exports.useEffect(()=>
1{C&&!C.includes(K.PLYNOVY_KOTOL)&&l("kureniePlynovyKotol",void 0),C&&!C.includes(K.ELEKTRICKY_KOTOL)&&l("kurenieElektrickyKotol",void 0),F&&!F.includes(j.PLYNOVY_KOTOL)&&l("ohrevPlynovyKotol",void 0),F&&!F.includes(j.ELEKTRICKY_KOTOL)&&l("ohrevElektrickyKotol",void 0)},[F,C]),u.exports.useEffect(()=>{if(!E){h(!1);return}h(!0)},[A]),u.exports.useEffect(()=>{if(te){const o=document.getElementById("error-adresa");o&&o.scrollIntoView({behavior:"smooth",block:"center"})}},[te,D]),u.exports.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[]),b===$.LOADING||U)return e(Ze,{status:$.LOADING});const ke=o=>e("main",{children:e("section",{className:"grid-full responsive-width",children:e("section",{className:"top32 btm50",children:e("h1",{className:"large-title title-padding-bottom",children:o})})})});if(!H)return ke("Nastala chyba");if(a&&!q)return ke("Nehnutelnost sa nepodarilo n\xE1js\u0165");if(ue)return ke("Nepodarilo sa ulo\u017Ei\u0165 d\xE1ta, sk\xFAste to znova");if(b===$.ERROR&&!he)return e("main",{children:e("section",{className:"grid-full responsive-width",children:r("section",{className:"top32 btm50",children:[e("h1",{className:"fs23 pad16-top pad16-bottom",children:"Na Va\u0161om \xFA\u010Dte nebolo n\xE1jden\xE9 \u017Eiadne odbern\xE9 miesto. Ak si chcete z\xEDska\u0165 pr\xEDstup k benefitom M\xF4j domov, mus\xEDte si ho najprv prida\u0165."}),e(_,{className:"top10",type:"button",color:"primary",onClick:o=>{o.preventDefault(),o.stopPropagation(),p("/AppBox/PridanieOdbernehoMiesta")},children:"Prida\u0165 odbern\xE9 miesto"})]})})});const R=()=>({ulica:v("ulica")||"",cisloDomu:v("cisloDomu")||"",psc:v("psc")||"",obec:v("obec")||""}),ae=()=>{const o=g==null?void 0:g.find(m=>m.cisloOdbernehoMiesta===v("cisloOdbernehoMiesta")),t=R().cisloDomu&&R().ulica&&R().psc&&R().obec;return!!(o||t)},Qe=()=>{var o,t;const m=R();return{id:a,cisloOdbernehoMiesta:v("cisloOdbernehoMiesta"),cisloObchodnehoPartnera:i==null?void 0:i.cisloObchodnehoPartnera,nehnutelnostTyp:v("typNehnutelnosti"),nehnutelnostVyuzitie:(o=v("vyuzitieDom"))!=null?o:v("vyuzitieByt"),nehnutelnostTypIne:JSON.stringify(!E),kurenieIne:JSON.stringify(!E),teplaVodaIne:JSON.stringify(!E),vlastnik:He&&E?v("jeVlastnik"):!1,kurenie:E?v("akoKurite")||[]:[],teplaVoda:E?v("akoOhrievateVodu")||[]:[],kureniePlynovyKotolVek:E?v("kureniePlynovyKotol"):void 0,kurenieElektrickyKotolVek:E?v("kurenieElektrickyKotol"):void 0,teplaVodaPlynovyKotolVek:E?v("ohrevPlynovyKotol"):void 0,teplaVodaElektrickyKotolVek:E?v("ohrevElektrickyKotol"):void 0,klimatizacia:E?v("typKlimatizacie")||[]:void 0,adresa:(t=i==null?void 0:i.adresa)!=null?t:m}},Ee=(o,t)=>{fo({datumUpravy:o,items:t}).then(()=>{if(a){p(`/AppBox/SuvisiaceProduktyPage?id=${a}`);return}yo().then(m=>{var c,N;const L=R(),ne=(c=i==null?void 0:i.adresa)!=null?c:L,Se=(N=m.items)==null?void 0:N.find(Ve=>{var Te,_e;return((Te=Ve.adresa)==null?void 0:Te.ulica)===ne.ulica&&((_e=Ve.adresa)==null?void 0:_e.cisloDomu)===ne.cisloDomu});return J.dispatchCleanEvent("MojDomovStore"),p(Se?`/AppBox/SuvisiaceProduktyPage?id=${Se.id}`:"/AppBox/MojDomovPage",{replace:!0})})}).catch(()=>{W(!1),k(!0)})},We=()=>{var o;if(!ae()){V(!0);return}const t=Qe();if(f===1&&t.nehnutelnostTyp!==y.INE&&t.nehnutelnostTyp!==y.GARAZ)xe({event:"moj_domov_nehnutelnost"}),z(2);else if(a){const m=(o=J.getMojDomov().items)!=null?o:[];if(m){const c=m==null?void 0:m.findIndex(N=>(N==null?void 0:N.id)===a);c!==-1&&(m[c]=t,Ee(new Date,m))}}else X?(xe({event:"moj_domov_energie"}),Ee(new Date,[...X,t])):(xe({event:"moj_domov_energie"}),Ee(new Date,[t]))},Xe=o=>{const t=o.target.value;let c=[...[...v("typKlimatizacie")]];t===M.ZIADNA?c.length===1&&c[0]===M.ZIADNA?c=[]:c=[M.ZIADNA]:(c=c.filter(N=>N!==M.ZIADNA),c.includes(t)?c=c.filter(N=>N!==t):c.push(t)),l("typKlimatizacie",c)},Ne=({optionName:o,options:t},m,c)=>{if(!o||!t)return null;const N=()=>(o==="vyuzitieDom"||o==="vyuzitieByt")&&ve;return e(S,{children:e("div",{className:c!=null?c:"pad40-left pad24-bottom",children:r("div",{className:c?"":"pad16-left",children:[e(wo,{inputName:o,sectionTitle:m,sectionStyle:"color-gray",children:t.map((L,ne)=>e(zo,{value:L.name,children:L.value},L.name+ne))}),N()&&e(re,{sectionTitle:"Ste vlastn\xEDkom / spoluvlastn\xEDkom nehnute\u013Enosti?",optionalStyle:"checkbox-items grid-full border no-border",innerStyle:"pad0",sectionStyle:"color-gray top32",children:e(Q,{name:"jeVlastnik",children:"\xC1no"})})]})})})},eo=()=>{var o,t;return f===2?"Vyu\u017E\xEDvanie energi\xED":a?`${(o=q==null?void 0:q.adresa)==null?void 0:o.ulica} ${(t=q==null?void 0:q.adresa)==null?void 0:t.cisloDomu} - O nehnute\u013Enosti`:"O nehnute\u013Enosti"},oo=()=>f===1?"Pokra\u010Dova\u0165":a?"Ulo\u017Ei\u0165":"Prida\u0165",to=o=>{const{name:t,optionName:m,options:c}=o;return!m||!c?null:A&&A.includes(t)?Ne(o,"Ako vyu\u017E\xEDvate nehnute\u013Enos\u0165?"):null},ao=o=>{const{name:t,optionName:m,options:c}=o;return!m||!c?null:C&&C.includes(t)?Ne(o,"Ak\xFD je vek V\xE1\u0161ho kotla?","pad38-left pad24-bottom"):null},no=o=>{const{name:t,optionName:m,options:c}=o;return!m||!c?null:F&&F.includes(t)?Ne(o,"Ak\xFD je vek V\xE1\u0161ho kotla?","pad38-left pad24-bottom"):null},ro=()=>r(S,{children:[r("div",{className:"flex moj-domov-field-wrapper",children:[e(le,{optionalStyle:"top16 width-full",children:e(se,{className:"",label:"Ulica",name:"ulica"})}),e(le,{optionalStyle:"top16 width-full",children:e(se,{label:"\u010C\xEDslo",name:"cisloDomu"})})]}),r("div",{className:"flex moj-domov-field-wrapper",children:[e(le,{optionalStyle:"top16 width-full",children:e(se,{label:"PS\u010C",name:"psc"})}),e(le,{optionalStyle:"top16 width-full pad16-bottom",children:e(se,{label:"Obec",name:"obec"})})]})]}),io=()=>
1{l("cisloOdbernehoMiesta",void 0),l("ulica",void 0),l("psc",void 0),l("obec",void 0),l("cisloDomu",void 0),T(!1),V(!1)},lo=()=>{const o=g==null?void 0:g.find(m=>m.cisloOdbernehoMiesta===v("cisloOdbernehoMiesta"));if(o&&o.adresa)return r("p",{className:"cl fs17 light w-100",children:[o.adresa.ulica," ",o.adresa.cisloDomu,", ",e("br",{})," ",o.adresa.psc," ",o.adresa.obec]});const t=R();return t.cisloDomu&&t.ulica&&t.psc&&t.obec?r("p",{className:"cl fs17 light w-100",children:[t.ulica," ",t.cisloDomu,", ",e("br",{})," ",t.psc," ",t.obec]}):e(S,{})},so=()=>B?e("div",{className:"pad16-left pad16-right mar16-bottom pad32-top",children:e("div",{className:"platba-opened pad16",children:e(ko,{filterTitle:"V\xFDber adresy",show:B,hide:()=>P(!1),confirmText:"Vybra\u0165 adresu",discardText:"Zru\u0161i\u0165 v\xFDber",confirmHandler:()=>w?null:l("cisloOdbernehoMiesta",I||""),children:e(Io,{vyberOMCallback:o=>x(o),odberneMiesta:g||[]})})})}):e("div",{className:"pad16-top",children:r("div",{className:"content-block",children:[e("p",{className:"title-1 secondary plabta-container",children:"Adresa"}),r("div",{className:"border-top platby-button",children:[w&&ro(),e(ze,{showMargin:w,children:ae()?r(S,{children:[lo(),e(_,{type:"button",color:"secondary",text:"Zmeni\u0165",onClick:()=>{io()}})]}):r(S,{children:[!w&&r(S,{children:[e(_,{type:"button",color:"primary",text:"Vybra\u0165 z mojich adries",onClick:()=>{P(!0)}}),e(_,{type:"button",color:"secondary",text:"Prida\u0165",onClick:()=>{l("cisloOdbernehoMiesta",void 0),V(!1),T(!0)}})]}),w&&r(S,{children:[e(_,{type:"button",color:"primary",text:"Sp\xE4\u0165",onClick:()=>{T(!1)}}),e(_,{type:"button",color:"secondary",text:"Prida\u0165",onClick:()=>{l("cisloOdbernehoMiesta",void 0),V(!1),T(!1)}})]})]})}),!ae()&&D&&e("p",{id:"error-adresa",className:"error fs17",children:"Pole je povinn\xE9"})]})]})});return r(S,{children:[r("div",{className:"moj-domov-pb",children:[e("div",{className:"progress-bar",children:e("div",{className:f===1?"progress-bar-step1":"progress-bar-step2"})}),r("div",{className:"flex moj-domov-header-icon-wrapper",children:[r("div",{className:"moj-domov-icon-wrapper active",children:[e("span",{className:"cb fr-headline",children:"O NEHNUTE\u013DNOSTI"}),e("div",{className:"moj-domov-icon",children:e("span",{className:"icon-store fs23"})})]}),r("div",{className:f===1?"moj-domov-icon-wrapper":"moj-domov-icon-wrapper active",children:[e("span",{className:"cb fr-headline",children:"VYU\u017D\xCDVANIE ENERGI\xCD"}),e("div",{className:"moj-domov-icon",children:e("span",{className:"icon-power fs23"})})]}),r("div",{className:"moj-domov-icon-wrapper",children:[e("span",{className:"cb fr-headline",children:"PRODUKTY A SLU\u017DBY"}),e("div",{className:"moj-domov-icon",children:e("span",{className:"icon-clean fs23"})})]})]}),e("div",{className:"grid-full responsive-width pc-width",children:r("div",{className:"btm32",children:[e("h1",{className:"large-title top32",children:"M\xF4j domov"}),e("h2",{className:"title-1 secondary top16",children:eo()})]})})]}),e("div",{className:"background-grey",children:e("section",{className:"grid-full pc-width responsive-width moj-domov-pridanie-nehnutelnosti",children:e("section",{className:"pad32-bottom",children:r(Ue,{formMethods:oe,handleRegistration:ye(We),optionalStyle:"pad0",children:[f===1&&r("div",{className:"wrapper",children:[so(),r("div",{className:"content-block",children:[e("p",{className:"title-1 secondary plabta-container",children:"Typ nehnute\u013Enosti"}),e("div",{className:"border-top plabta-container",children:e(vo,{inputName:"typNehnutelnosti",optionalStyle:"checkbox-items grid-full border no-border",sectionStyle:"color-gray mar16-top",children:_o.map((o,t)=>r("div",{children:[e(ho,{name:"typNehnutelnosti",value:o.name,children:o.value}),to(o)]},o.name+t))})})]})]}),f===2&&r("div",{className:"wrapper",children:[n&&e("div",{className:"pad16-top",children:r("div",{className:"content-block mar16-bottom",children:[e("p",{className:"title-1 secondary plabta-container",children:"Ak\xFD sp\xF4sob k\xFArenia vyu\u017E\xEDvate?"}),e("div",{className:"plabta-container border-top",children:e(re,{optionalStyle:"checkbox-items grid-full border no-border",innerStyle:"pad0",sectionStyle:"color-gray mar16-top",children:Ko.map((o,t)=>r("div",{children:[e(Q,{name:"akoKurite",value:o.name,children:o.value}),ao(o)]},o.name+t))})})]})}),n&&r("div",{className:"content-block mar16-bottom",children:[e("p",{className:"title-1 secondary plabta-container",children:"Ako ohrievate vodu?"}),e("div",{className:"plabta-container border-top",children:e(re,{optionalStyle:"checkbox-items grid-full border no-border",innerStyle:"pad0",sectionStyle:"color-gray top32",children:jo.map((o,t)=>r("div",{children:[e(Q,{name:"akoOhrievateVodu",value:o.name,children:o.value}),no(o)]},o.name+t))})})]}),n&&r("div",{className:"content-block mar16-bottom",children:[e("p",{className:"title-1 secondary plabta-container",children:"Ak\xFD typ klimatiz\xE1cie vyu\u017E\xEDvate?"}),e("div",{className:"plabta-container border-top",children:e(re,{optionalStyle:"checkbox-items grid-full border no-border",innerStyle:"pad0",sectionStyle:"color-gray top32",children:Mo.map((o,t)=>e(Q,{name:"typKlimatizacie",onChange:Xe,value:o.name,children:o.value},o.name+t))})})]})]}),r(ze,{optionalStyle:"grid-full top32",children:[e(_,{type:"submit",color:"primary",onClick:()=>{ae()||V(!0)},text:oo()}),e(_,{type:"button",color:"secondary",onClick:()=>
1f===2?z(1):p("/AppBox/MojDomovPage"),text:"Sp\xE4\u0165"})]})]})})})})]})}export{ct as default};
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.