<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[768],{7855:function(t,a,e){Promise.resolve().then(e.bind(e,3397))},6786:function(t,a,e){"use strict";var c=e(7437),n=e(4819),i=e.n(n),r=e(6800),o=e.n(r),l=e(3617),s=e.n(l);a.Z=t=&gt;{let{color:a,text:e,disabled:n,...r}=t;return(0,c.jsxs)("button",{disabled:n,className:o()(s().className,i()["c-button"],{[i()["c-button--black"]]:"black"===a},{[i()["c-button--white"]]:"white"===a},{[i()["c-button--brown"]]:"brown"===a},{[i()["c-button--transparent"]]:"transparent"===a},{[i()["c-button--gray"]]:"gray"===a}),...r,children:[e,(0,c.jsx)("span",{className:"".concat(i()["c-button__text"]," ").concat(i()["c-button__text--primary"]),children:e}),(0,c.jsx)("span",{className:"".concat(i()["c-button__text"]," ").concat(i()["c-button__text--secondary"]),children:e})]})}},2518:function(t,a,e){"use strict";var c=e(7437),n=e(8198),i=e.n(n),r=e(9481),o=e.n(r),l=e(6800),s=e.n(l);a.Z=t=&gt;{let{text:a,alignment:e,color:n}=t;return(0,c.jsxs)("h2",{className:s()(i()["c-h2-heading"],o().className,{[i()["c-h2-heading--right-align"]]:"right"===e},{[i()["c-h2-heading--left-align"]]:"left"===e},{[i()["c-h2-heading--center-align"]]:"center"===e},{[i()["c-h2-heading--black"]]:"black"===n},{[i()["c-h2-heading--white"]]:"white"===n}),children:[a," "]})}},1964:function(t,a,e){"use strict";var c=e(7437),n=e(6800),i=e.n(n),r=e(326),o=e.n(r),l=e(9481),s=e.n(l),_=e(2265),h=e(3463);a.Z=t=&gt;{let{color:a,text:e,alignment:n,onClick:r,responsive:l}=t,[d,p]=(0,_.useState)(!1);return(0,_.useEffect)(()=&gt;{p(!0)},[]),(0,c.jsx)("h3",{onClick:r,className:i()(o()["c-h3-heading"],s().className,{[o()["c-h3-heading--right-align"]]:"right"===n},{[o()["c-h3-heading--responsive"]]:l},{[o()["c-h3-heading--left-align"]]:"left"===n},{[o()["c-h3-heading--center-align"]]:"center"===n},{[o()["c-h3-heading--black"]]:"black"===a},{[o()["c-h3-heading--white"]]:"white"===a}),children:e&amp;&amp;d&amp;&amp;(0,h.ZP)(e)})}},8446:function(t,a,e){"use strict";var c=e(7437),n=e(7138),i=e(4819),r=e.n(i),o=e(6800),l=e.n(o);a.Z=t=&gt;{let{color:a,linkTitle:e,linkTo:i,onClick:o,openInNewTab:s}=t;return(0,c.jsxs)(n.default,{onClick:o,href:i,target:s?"_blank":"_self",rel:s?"noopener noreferrer":void 0,className:l()(r()["c-button"],{[r()["c-button--black"]]:"black"===a},{[r()["c-button--white"]]:"white"===a},{[r()["c-button--brown"]]:"brown"===a},{[r()["c-button--gray"]]:"gray"===a}),children:[e,(0,c.jsx)("span",{className:"".concat(r()["c-button__text"]," ").concat(r()["c-button__text--primary"]),children:e}),(0,c.jsx)("span",{className:"".concat(r()["c-button__text"]," ").concat(r()["c-button__text--secondary"]),children:e})]})}},7581:function(t,a,e){"use strict";var c=e(7437),n=e(6648),i=e(5134),r=e(2573),o=e(9827),l=e.n(o);a.Z=()=&gt;(0,c.jsx)("div",{className:l()["c-loading"],children:(0,c.jsxs)("div",{className:l()["c-loading__content"],children:[(0,c.jsx)(n.default,{src:i.default,alt:"logo",width:200,height:100,priority:!0}),(0,c.jsx)(n.default,{src:r.Z,alt:"spinner",width:50,height:50,priority:!0})]})})},948:function(t,a,e){"use strict";var c=e(7437),n=e(2245),i=e.n(n),r=e(2265),o=e(6800),l=e.n(o),s=e(3463);a.Z=t=&gt;{let{text:a,color:e,size:n,maxWidth:o,alignment:_}=t,[h,d]=(0,r.useState)(!1);return(0,r.useEffect)(()=&gt;{d(!0)},[]),(0,c.jsx)("p",{className:l()(i()["c-paragraph"],{[i()["c-paragraph--white"]]:"white"===e,[i()["c-paragraph--gray"]]:"gray"===e,[i()["c-paragraph--size-18"]]:18===n,[i()["c-paragraph--size-20"]]:20===n,[i()["c-paragraph--size-24"]]:24===n,[i()["c-paragraph--right-align"]]:"right"===_,[i()["c-paragraph--left-align"]]:"left"===_,[i()["c-paragraph--center-align"]]:"center"===_,[i()["c-paragraph--max-width-516"]]:516===o}),children:a&amp;&amp;h&amp;&amp;(0,s.ZP)(a)})}},9448:function(t,a,e){"use strict";var c=e(7437),n=e(180),i=e.n(n),r=e(6800),o=e.n(r);a.Z=t=&gt;{let{text:a,color:e,size:n,bold:r,noSpacing:l}=t;return(0,c.jsx)("span",{className:o()(i()["c-pre-h1-text"],{[i()["c-pre-h1-text--white"]]:"white"===e},{[i()["c-pre-h1-text--size-20"]]:20===n},{[i()["c-pre-h1-text--bold"]]:r},{[i()["c-pre-h1-text--no-spacing"]]:l},{[i()["c-pre-h1-text--black"]]:"black"===e}),children:a})}},1929:function(t,a,e){"use strict";var c=e(7437),n=e(2518),i=e(948),r=e(7840),o=e.n(r);a.Z=t=&gt;{let{h2Text:a,h2Color:e,h2Alignment:r,paragraphText:l,paragraphColor:s,paragraphAlignment:_,paragraphSize:h,preH1text:d}=t;return(0,c.jsxs)("div",{className:o()["c-section-title"],children:[d&amp;&amp;(0,c.jsxs)("span",{children:[d," "]}),(0,c.jsx)(n.Z,{text:a,color:e,alignment:r}),l&amp;&amp;(0,c.jsx)(i.Z,{size:h,color:s,text:l,alignment:_})]})}},1125:function(t,a,e){"use strict";e.d(a,{_:function(){return c}});let c=t=&gt;fetch(t).then(t=&gt;t.json())},3397:function(t,a,e){"use strict";e.d(a,{default:function(){return O}});var c=e(7437),n=e(4287),i=e.n(n),r=e(1929),o=e(9448),l=e(8185),s=e.n(l),_=e(6648),h=e(7727),d=e.n(h),p={src:"/_next/static/media/contactIcon.9dad1460.svg",height:28,width:28,blurWidth:0,blurHeight:0},g={src:"/_next/static/media/locationIcon.b85e2cf0.svg",height:29,width:24,blurWidth:0,blurHeight:0},m={src:"/_next/static/media/mailIcon.8d2cabbf.svg",height:24,width:28,blurWidth:0,blurHeight:0},u=t=&gt;{let{type:a,text:e,mapLink:n}=t;return(0,c.jsxs)("a",{className:d()["c-contact-info-box"],href:"".concat("phone"===a?"tel:":"mail"===a?"mailto:":"").concat("location"===a?n:e),target:"location"===a?"_blank":"",children:[(0,c.jsx)("div",{className:d()["c-contact-info-box__image"],children:(0,c.jsx)(_.default,{src:"phone"===a?p:"location"===a?g:m,alt:"Contact icon",width:"phone"===a?26:"mail"===a?26:22,height:"phone"===a?26:"mail"===a?21:27})}),(0,c.jsx)("span",{children:e})]})},x=t=&gt;{let{phone:a,email:e,location:n,mapLink:i}=t;return(0,c.jsxs)("div",{className:s()["c-contact-info"],children:[(0,c.jsxs)("div",{className:s()["c-contact-info__top-boxes"],children:[(0,c.jsx)(u,{type:"phone",text:a}),(0,c.jsx)(u,{type:"mail",text:e})]}),(0,c.jsx)(u,{type:"location",text:n,mapLink:i})]})},f=e(1964),b=e(2265),A=e(9343),j=e(7753),v=e(6800),w=e.n(v),k=e(6761),N=e.n(k),y=e(3617),E=e.n(y),Z=t=&gt;{let{id:a,label:e,type:n="text",register:i,trigger:r,error:o,isTextArea:l=!1}=t;return(0,c.jsxs)("div",{className:N()["c-form-field"],children:[(0,c.jsxs)("label",{htmlFor:a,children:[e," ",(0,c.jsx)("span",{children:"*"})]}),(0,c.jsxs)("div",{className:w()(N()["c-form-field__input"],{[N()["c-form-field__input--error"]]:o}),children:[l?(0,c.jsx)("textarea",{className:E().className,id:a,...i(a,{onBlur:()=&gt;r(a)}),placeholder:e}):(0,c.jsx)("input",{className:E().className,placeholder:e,type:n,id:a,...i(a,{onBlur:()=&gt;r(a)})}),o&amp;&amp;(0,c.jsx)("p",{className:N()["c-form-field__error"],children:o.message})]})]})},T=e(524),C=e.n(T),S=e(6786),z=e(4245);let B=z.Ry().shape({name:z.Z_().required("Ovo polje je obavezno!").min(3,"Ime mora bit duže od 3 karaktera!"),email:z.Z_().email("Pogrešan format emaila. Ispravite greške i pokušajte ponovo!").required("Vaš email je obavezno polje"),message:z.Z_().required("Vaša poruka je obavezno polje!")});var I=e(2573),L=t=&gt;{let{phone:a,email:e,location:n,mapLink:i}=t,{register:r,handleSubmit:o,formState:{errors:l},trigger:s,reset:h}=(0,A.cI)({resolver:(0,j.X)(B),mode:"onBlur"}),[d,p]=(0,b.useState)(""),[g,m]=(0,b.useState)(!1),[u,f]=(0,b.useState)(""),v=t=&gt;t.split("@")[0],w=async t=&gt;{m(!0),f(""),p("");let a=v(null==t?void 0:t.email),e={subject:"Upit - ".concat(a),...t};try{(await fetch("https://admin.hannachairs.com/api/contact_i",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).ok?(h(),m(!1),p("Email uspješno poslat!")):f("Došlo je do greške, molimo vas pokušajte ponovo!"),setTimeout(()=&gt;{p(""),f("")},6e3)}catch(t){console.error("Error:",t),f("Došlo je do greške, molimo vas pokušajte ponovo!")}finally{m(!1)}},k=Object.keys(l).length&gt;0;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("form",{onSubmit:o(w),noValidate:!0,className:C()["c-contact-form"],children:[(0,c.jsx)(Z,{id:"name",label:"Vaše Ime",register:r,trigger:s,error:l.name}),(0,c.jsx)(Z,{id:"email",label:"Vaš Email",type:"email",register:r,trigger:s,error:l.email}),(0,c.jsx)(Z,{id:"message",label:"Vaša poruka",isTextArea:!0,register:r,trigger:s,error:l.message}),(0,c.jsxs)("div",{className:C()["c-contact-form__actions"],children:[(0,c.jsx)(S.Z,{disabled:k||g,color:"brown",type:"submit",text:"Pošalji email"}),g&amp;&amp;(0,c.jsx)(_.default,{src:I.Z,width:30,height:30,alt:"spinner"}),u&amp;&amp;(0,c.jsx)("p",{className:C()["c-contact-form__general-error"],children:u}),d&amp;&amp;(0,c.jsx)("p",{className:C()["c-contact-form__success"],children:d})]})]}),(0,c.jsx)("div",{className:C()["c-contact-form__info-boxes"],children:(0,c.jsx)(x,{phone:a,email:e,location:n,mapLink:i})})]})},V=e(885),U=e(8446),P=e(7581),R=e(9039),F=e(1125),H=e(2071),M=t=&gt;{let{data:a,isLoading:e}=(0,R.ZP)("https://admin.hannachairs.com/api/contacts?page=1",F._,{fallbackData:t});return{contactPageData:(0,H.Y)(a["hydra:member"],"first"),isLoading:e}},O=t=&gt;{let{contactData:a}=t,{contactPageData:e,isLoading:n}=M(a);return(0,c.jsx)(c.Fragment,{children:n?(0,c.jsx)(P.Z,{}):(0,c.jsxs)("div",{className:i()["c-contact"],children:[(0,c.jsxs)("div",{className:i()["c-contact__content"],children:[(0,c.jsxs)("div",{className:i()["c-contact__left-side"],children:[(0,c.jsx)("div",{className:i()["c-contact__image"],children:(0,c.jsx)(_.default,{src:V.Z,width:1341,height:970,alt:"Contact background"})}),(0,c.jsxs)("div",{className:i()["c-contact__heading"],children:[(null==e?void 0:e.mainTitlePreText)&amp;&amp;(0,c.jsx)(o.Z,{color:"black",text:null==e?void 0:e.mainTitlePreText,size:20}),(null==e?void 0:e.mainTitle)&amp;&amp;(0,c.jsx)(r.Z,{h2Color:"black",h2Text:null==e?void 0:e.mainTitle,paragraphText:null==e?void 0:e.paragraph,paragraphColor:"gray",paragraphSize:20})]}),(0,c.jsx)("div",{className:i()["c-contact__info-boxes"],children:(0,c.jsx)(x,{phone:null==e?void 0:e.phone,email:null==e?void 0:e.email,location:null==e?void 0:e.location,mapLink:null==e?void 0:e.mapLink})})]}),(0,c.jsx)("div",{className:i()["c-contact__form-wrapper"],children:(0,c.jsxs)("div",{className:i()["c-contact__form"],children:[(0,c.jsx)(f.Z,{text:null==e?void 0:e.howCanWeHelp,color:"black"}),(0,c.jsx)(L,{phone:null==e?void 0:e.phone,email:null==e?void 0:e.email,location:null==e?void 0:e.location,mapLink:(null==e?void 0:e.mapLink)?e.mapLink:""})]})})]}),(0,c.jsxs)("div",{className:i()["c-contact__map"],children:[(0,c.jsxs)("div",{className:i()["c-contact__map-left-side"],children:[(0,c.jsxs)("div",{className:i()["c-contact__map-heading"],children:[(null==e?void 0:e.mapSectionPreText)&amp;&amp;(0,c.jsx)(o.Z,{color:"black",text:null==e?void 0:e.mapSectionPreText,size:20}),(null==e?void 0:e.mapSectionTitle)&amp;&amp;(0,c.jsx)(r.Z,{h2Color:"black",h2Text:null==e?void 0:e.mapSectionTitle})]}),(null==e?void 0:e.mapLink)&amp;&amp;(0,c.jsx)(U.Z,{linkTitle:null==e?void 0:e.directionsToUs,openInNewTab:!0,linkTo:(null==e?void 0:e.mapLink)?e.mapLink:"",color:"brown"})]}),(0,c.jsx)("div",{className:i()["c-contact__map-frame"],children:(0,c.jsx)("iframe",{src:null==e?void 0:e.mapHtmlEmbed,width:600,height:450,style:{border:0,filter:"grayscale(100%)",outline:"none"},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",tabIndex:-1})})]})]})})}},2071:function(t,a,e){"use strict";e.d(a,{Y:function(){return c}});let c=(t,a)=&gt;"first"===a?(null==t?void 0:t.find(t=&gt;1===t.id))||null:"all"===a?t.filter(t=&gt;t.id):null},4819:function(t){t.exports={"c-button":"button_c-button__6WRHP","c-button__text--primary":"button_c-button__text--primary__owgkQ","c-button__text--secondary":"button_c-button__text--secondary__1Ypte","c-button--white":"button_c-button--white__vO5ZY","c-button--brown":"button_c-button--brown__FQCye","c-button__text":"button_c-button__text__oMUKt","c-button--gray":"button_c-button--gray__cURdC","c-button--black":"button_c-button--black__9UF2j","c-button--transparent":"button_c-button--transparent__eGceN"}},524:function(t){t.exports={"c-contact-form":"contact-form_c-contact-form__9vELb","c-contact-form__info-boxes":"contact-form_c-contact-form__info-boxes__zQt8s","c-contact-form__actions":"contact-form_c-contact-form__actions__V7_3I","c-contact-form__general-error":"contact-form_c-contact-form__general-error__CfUdn","c-contact-form__success":"contact-form_c-contact-form__success__4ndiE"}},7727:function(t){t.exports={"c-contact-info-box":"contact-info-box_c-contact-info-box__mLBTF","c-contact-info-box__image":"contact-info-box_c-contact-info-box__image__xn9VD"}},8185:function(t){t.exports={"c-contact-info":"contact-info_c-contact-info__jH7C0","c-contact-info__top-boxes":"contact-info_c-contact-info__top-boxes__x_vEz"}},6761:function(t){t.exports={"c-form-field":"form_field_c-form-field__oaDM0","c-form-field__input":"form_field_c-form-field__input__yOl5K","c-form-field__input--error":"form_field_c-form-field__input--error__YD5UN"}},8198:function(t){t.exports={"c-h2-heading":"h2-heading_c-h2-heading__ksIYN","c-h2-heading--white":"h2-heading_c-h2-heading--white__VBQNR","c-h2-heading--black":"h2-heading_c-h2-heading--black__PCSlI","c-h2-heading--right-align":"h2-heading_c-h2-heading--right-align__w5BoO","c-h2-heading--left-align":"h2-heading_c-h2-heading--left-align__sTmaS","c-h2-heading--center-align":"h2-heading_c-h2-heading--center-align__YYLaa"}},326:function(t){t.exports={"c-h3-heading":"h3-heading_c-h3-heading__gR5Tt","c-h3-heading--responsive":"h3-heading_c-h3-heading--responsive__FhxrO","c-h3-heading--white":"h3-heading_c-h3-heading--white__kVFjH","c-h3-heading--black":"h3-heading_c-h3-heading--black__TKYo0","c-h3-heading--right-align":"h3-heading_c-h3-heading--right-align__nAdlV","c-h3-heading--left-align":"h3-heading_c-h3-heading--left-align__lifXQ","c-h3-heading--center-align":"h3-heading_c-h3-heading--center-align__JOEJH"}},9827:function(t){t.exports={"c-loading":"loading_c-loading__gkeBY","c-loading__content":"loading_c-loading__content__J5d_2"}},2245:function(t){t.exports={"c-paragraph--size-18":"paragraph_c-paragraph--size-18__7aH6F","c-paragraph--size-20":"paragraph_c-paragraph--size-20__QpTSx","c-paragraph--size-24":"paragraph_c-paragraph--size-24__pCWc1","c-paragraph--white":"paragraph_c-paragraph--white__xPBJ8","c-paragraph--black":"paragraph_c-paragraph--black__ENWE4","c-paragraph--gray":"paragraph_c-paragraph--gray__8a_m_","c-paragraph--max-width-516":"paragraph_c-paragraph--max-width-516__C2zwt","c-paragraph--right-align":"paragraph_c-paragraph--right-align__Eg4gw","c-paragraph--left-align":"paragraph_c-paragraph--left-align__INLDa","c-paragraph--center-align":"paragraph_c-paragraph--center-align__rDDAe","c-paragraph":"paragraph_c-paragraph__s0SWN"}},180:function(t){t.exports={"c-pre-h1-text":"pre-h1-text_c-pre-h1-text__iXPFE","c-pre-h1-text--white":"pre-h1-text_c-pre-h1-text--white__YQRLQ","c-pre-h1-text--bold":"pre-h1-text_c-pre-h1-text--bold__B2MqL","c-pre-h1-text--no-spacing":"pre-h1-text_c-pre-h1-text--no-spacing___uy1F","c-pre-h1-text--black":"pre-h1-text_c-pre-h1-text--black__QgRMG","c-pre-h1-text--size-20":"pre-h1-text_c-pre-h1-text--size-20__iI4Am"}},7840:function(t){t.exports={"c-section-title":"section-heading_c-section-title__dVzZI"}},4287:function(t){t.exports={"c-contact":"contact_c-contact__GGqgT","c-contact__image":"contact_c-contact__image__7rM4Z","c-contact__content":"contact_c-contact__content__gyJLm","c-contact__left-side":"contact_c-contact__left-side__1IZ0x","c-contact__info-boxes":"contact_c-contact__info-boxes__c2Em6","c-contact__form-wrapper":"contact_c-contact__form-wrapper__kerpk","c-contact__form":"contact_c-contact__form__fwuOS","c-contact__map":"contact_c-contact__map__WfhL1","c-contact__map-left-side":"contact_c-contact__map-left-side__63bFW","c-contact__map-heading":"contact_c-contact__map-heading__IsjOf","c-contact__map-frame":"contact_c-contact__map-frame__SPsd6"}},885:function(t,a){"use strict";a.Z={src:"/_next/static/media/contactBg.bd0bf5dd.png",height:970,width:1164,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAJFBMVEVMaXGKiIWtqKGPf2mzrauLd3eFbU57Ti+mo57Fv7mniXZGUUYd8hWXAAAADHRSTlMACRQ1HAQVIDQpIUVBQowSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAMUlEQVR4nB3FxxHAMAwEsT1mSv33q7HxAQCS/uxEGCjWZw3szPUtsnrcQ6DqNiWQ+noVzwC+TfJ5mwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:7}},2573:function(t,a){"use strict";a.Z={src:"/_next/static/media/spinner.4552d75d.svg",height:200,width:200,blurWidth:0,blurHeight:0}},5134:function(t,a,e){"use strict";e.r(a),a.default={src:"/_next/static/media/logo.67d996fa.png",height:132,width:297,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAFVBMVEVDQzE0LyouKSkgIB4pJyUYGBpBPTWOGNDOAAAAB3RSTlMBGwslTjg+1sR8MwAAAAlwSFlzAAALEwAACxMBAJqcGAAAACJJREFUeJw1wcERACAMwzC7Sdl/ZI4HEnzKPJxusykYR3MBAywAO5G2YfEAAAAASUVORK5CYII=",blurWidth:8,blurHeight:4}}},function(t){t.O(0,[616,225,359,724,911,441,884,560,252,196,280,971,23,744],function(){return t(t.s=7855)}),_N_E=t.O()}]);</pre></body></html>