1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[746],{3017:function(e,a,t){Promise.resolve().then(t.bind(t,468)),Promise.resolve().then(t.bind(t,1285)),Promise.resolve().then(t.bind(t,7186))},468:function(e,a,t){"use strict";t.d(a,{default:function(){return g}});var s,n=t(7437),r=t(2833),l=t.n(r),i=t(519),o=t(3993),c=t(4422);let d=c.Ry().shape({firstname:c.Z_().required(),lastname:c.Z_().required(),number:c.Z_().required(),email:c.Z_().email().required(),subject:c.Z_().required(),message:c.Z_().required()});var u=t(257);let m=(s=u.env.NEXT_PUBLIC_API_BASE_URL||u.env.API_BASE_URL||"https://firuze-back.jis.az/api").endsWith("/")?s.slice(0,-1):s;async function h(e,a){try{let t=await fetch("".concat(m,"/").concat(e),{method:"POST",body:a});if(!t.ok)return null;return await t.json()}catch(e){return console.error("Error fetching data:",e),null}}var p=t(2265),f=JSON.parse('[{"key":"I want to make a donation","value":"I want to make a donation"},{"key":"I want to ask for funding","value":"I want to ask for funding"},{"key":"I want to discuss a collaboration opportunity","value":"I want to discuss a collaboration opportunity"},{"key":"I want to learn more about the Firuza Foundation","value":"I want to learn more about the Firuza Foundation"}]'),x=t(4800),g=function(e){let{text:a}=e,[t,s]=(0,p.useState)(!1),[r,c]=(0,p.useState)(!1),[u,m]=(0,p.useState)(!1),[g,v]=(0,p.useState)(!1),[_,j]=(0,p.useState)(!1),{executeRecaptcha:b}=(0,x.xX)(),w=(0,o.TA)({initialValues:{firstname:"",lastname:"",number:"",email:"",subject:"",message:"",makeDonation:"no",makeDonationDesc:""},validationSchema:d,onSubmit:async e=>{if(b){m(!0),j(!1),v(!1);try{let a=await b("contact_form"),t=new FormData;t.append("firstname",e.firstname),t.append("lastname",e.lastname),t.append("number",e.number),t.append("email",e.email),t.append("subject",e.subject),t.append("message",e.message),t.append("makeDonation",e.makeDonation),e.makeDonationDesc&&t.append("makeDonationDesc",e.makeDonationDesc),t.set("recaptcha_token",a);let s=await h("contact/save",t);(null==s?void 0:s.success)?v(!0):j(!0)}catch(e){console.log(e),j(!0)}}}});return(0,n.jsxs)("div",{className:l().inner,children:[(0,n.jsx)("div",{className:l().card,children:(0,n.jsx)("h3",{children:a})}),g&&(0,n.jsxs)("div",{className:"text-center py-10 grow flex flex-col items-center justify-center",children:[(0,n.jsx)("h3",{className:"text-green-600 text-xl font-semibold",children:"Your message has been successfully sent"}),(0,n.jsx)("p",{className:"text-gray-600 mt-2",children:"We will contact you soon."})]}),_&&(0,n.jsxs)("div",{className:"text-center py-10 grow flex flex-col items-center justify-center",children:[(0,n.jsx)("h3",{className:"text-red-600 text-xl font-semibold",children:"Something went wrong"}),(0,n.jsx)("p",{className:"text-gray-600 mt-2",children:"Please try again later."})]}),!_&&!g&&(0,n.jsx)("div",{className:l().form,children:(0,n.jsxs)("form",{onSubmit:w.handleSubmit,className:"grid md:grid-cols-2 gap-4 w-full lg:max-w-2xl mx-auto",children:[(0,n.jsx)("div",{className:"w-full col-span-2 sm:col-span-1",children:(0,n.jsx)("input",{name:"firstname",className:"w-full ".concat(w.touched.firstname&&w.errors.firstname?l().error:""),onChange:w.handleChange,value:w.values.firstname,type:"text",placeholder:"First Name*"})}),(0,n.jsx)("div",{className:"w-full col-span-2 sm:col-span-1",children:(0,n.jsx)("input",{name:"lastname",className:"w-full ".concat(w.touched.lastname&&w.errors.lastname?l().error:""),onChange:w.handleChange,value:w.values.lastname,type:"text",placeholder:"Last Name*"})}),(0,n.jsx)("div",{className:"w-full col-span-2 sm:col-span-1",children:(0,n.jsx)("input",{name:"number",className:"w-full ".concat(w.touched.number&&w.errors.number?l().error:""),onChange:w.handleChange,value:w.values.number,type:"text",placeholder:"Phone number"})}),(0,n.jsx)("div",{className:"w-full col-span-2 sm:col-span-1",children:(0,n.jsx)("input",{name:"email",className:"w-full ".concat(w.touched.email&&w.errors.email?l().error:""),onChange:w.handleChange,value:w.values.email,type:"email",placeholder:"E-mail*"})}),(0,n.jsxs)("div",{className:"col-span-2 relative",children:[(0,n.jsxs)("select",{name:"subject",className:"w-full ".concat(w.touched.subject&&w.errors.subject?l().error:""),onChange:w.handleChange,value:w.values.subject,children:[(0,n.jsx)("option",{value:"",disabled:!0,children:"Subject*"}),f.map((e,a)=>(0,n.jsx)("option",{value:e.value,children:e.key},a))]}),(0,n.jsx)("div",{className:"absolute right-[16px] top-1/3 pointer-events-none",children:(0,n.jsx)(i.Z,{name:"right-arrow-tab",size:{width:20,height:20}})})]}),(0,n.jsx)("div",{className:"col-span-2",children:(0,n.jsx)("textarea",{name:"message",className:"w-full p-3 h-[130px] ".concat(w.touched.message&&w.errors.message?l().error:""),onChange:w.handleChange,value:w.values.message,placeholder:"Please briefly explain"})}),(0,n.jsxs)("div",{className:"col-span-2 flex items-center gap-2 ".concat(l().checkbox),children:[(0,n.jsx)("input",{name:"makeDonation",className:"w-5 h-5 ".concat(w.touched.makeDonation&&w.errors.makeDonation?l().error:""),onChange:e=>{e.target.checked?(s(!0),w.setValues({...w.values,makeDonation:"yes"})):(s(!1),w.setValues({...w.values,makeDonation:"no"}))},value:w.values.makeDonation,id:"check",type:"checkbox"}),(0,n.jsx)("label",{htmlFor:"check",children:"I want to make a donation"})]}),(0,n.jsx)("div",{className:"col-span-2",children:(0,n.jsx)("textarea",{placeholder:"Please briefly explain",className:"w-full border border-gray-300 rounded-md p-3 h-[130px] ".concat(!t&&l().disabled)})}),(0,n.jsxs)("div",{className:"col-span-2 flex items-start gap-2 ".concat(l().confirmInput),children:[(0,n.jsx)("input",{id:"confirm",onCh
1ange:()=>{c(!r)},type:"checkbox",className:"w-5 h-5 mt-1 flex-shrink-0"}),(0,n.jsx)("label",{htmlFor:"confirm",className:"text-sm",children:"I have read Privacy Policy and I agree for collection, use/processing, storage and transfer of my personal data"})]}),(0,n.jsx)("div",{className:"col-span-2",children:(0,n.jsxs)("button",{className:"w-full ".concat(!r||u?l().disabled:""),children:[u&&(0,n.jsx)("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}),u?"Sending...":"Submit Information"]})})]})})]})}},1285:function(e,a,t){"use strict";var s=t(7437),n=t(3739),r=t.n(n),l=t(1964),i=t(2265),o=t(257);a.default=function(e){let{lat:a,lon:t}=e,[n,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)(15),[m,h]=(0,i.useState)({lat:+a,lng:+t}),[p,f]=(0,i.useState)({height:"590px",minWidth:"250px",borderRadius:"12px",transition:"all 3s linear"});return(0,i.useEffect)(()=>{let e=()=>{window.innerWidth<768?f({height:"250px",minWidth:"250px",borderRadius:"12px",transition:"all 0.3s ease"}):f({height:"590px",minWidth:"250px",borderRadius:"12px",transition:"all 0.3s ease"})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,s.jsx)("div",{className:r().map,children:(0,s.jsx)(l.KJ,{googleMapsApiKey:"".concat(o.env.NEXT_PUBLIC_MAP_KEY),children:(0,s.jsxs)("div",{className:"w-full h-full",children:[!n&&(0,s.jsx)("div",{className:"absolute top-0 left-0 w-full h-full flex justify-center items-center bg-white opacity-75 z-50",children:"loading"}),(0,s.jsx)(l.b6,{mapContainerStyle:p,zoom:d,center:m,options:{disableDefaultUI:!0,minZoom:10,maxZoom:18},onLoad:()=>c(!0),children:(0,s.jsx)(l.Jx,{position:{lat:+a,lng:+t},title:"Firuza"})})]})})})}},7186:function(e,a,t){"use strict";t.d(a,{default:function(){return h}});var s=t(7437),n=t(2370),r=t.n(n),l=t(3145),i=t(3810),o=t(1428),c=t.n(o),d=e=>{let{children:a}=e;return(0,s.jsx)("div",{className:c().wrapper,children:(0,s.jsx)(i.E.div,{initial:{clipPath:"inset(80% 0 0% 0)",o
1pacity:0,y:100},animate:{clipPath:"inset(0% 0 0% 0)",opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},className:c().text,children:a})})},u=t(2265),m=t(6498),h=function(e){let{img:a,title:t,desc:n,breadCrumbs:i,mobile_img:o,descImg:c}=e,[h,p]=(0,u.useState)(!1),f=(0,u.useRef)(null),x=(0,u.useRef)(null);return(0,u.useEffect)(()=>{if(p(!0),f.current){let e=f.current.getTotalLength();m.p8.set(f.current,{strokeDasharray:e,strokeDashoffset:e}),m.p8.to(f.current,{strokeDashoffset:0,duration:1.5,delay:1,ease:"power1.inOut"})}if(x.current){let e=x.current.getTotalLength();m.p8.set(x.current,{strokeDasharray:e,strokeDashoffset:e}),m.p8.to(x.current,{strokeDashoffset:0,duration:1.5,ease:"power1.inOut"})}},[]),(0,s.jsx)("div",{className:r().section,children:(0,s.jsxs)("div",{className:r().image,children:[(0,s.jsx)("div",{className:r().desktopImage,children:(0,s.jsx)(l.default,{placeholder:"blur",blurDataURL:a.placeholder,src:a.src,alt:c,fill:!0})}),(0,s.jsx)("div",{className:r().mobileImage,children:o.src?(0,s.jsx)(l.default,{placeholder:"blur",blurDataURL:o.placeholder,src:o.src,alt:c,fill:!0}):(0,s.jsx)(l.default,{placeholder:"blur",blurDataURL:a.placeholder,src:a.src,alt:c,fill:!0})}),(0,s.jsxs)("div",{className:r().text,children:[(0,s.jsx)(d,{children:(0,s.jsx)("h1",{children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:t}})})}),(0,s.jsx)(d,{children:(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:n}})})]}),(0,s.jsx)("div",{className:"".concat(r().icon," ").concat(h?r().show:""),children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"220",height:"325",viewBox:"0 0 220 325",fill:"none",children:(0,s.jsx)("path",{ref:f,d:"M-268.965 483.244C-146.667 133.19 311.328 315.467 399.078 562.05C528.514 925.769 -579.054 349.682 38.3367 30.2921",stroke:"#3BBFAD",strokeWidth:"45",strokeLinecap:"round"})})}),(0,s.jsx)("div",{className:"".concat(r().rightIcon," ").concat(h?r().show:""),children:(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"373",height:"785",viewBox:"0 0 373 785",fill:"none",children:(0,s.jsx)("path",{ref:x,d:"M30.0648 192.753C349.369 4.23297 581.651 439.008 489.583 684.011C353.78 1045.4 -120.655 -109.369 557.101 44.9947",stroke:"#3BBFAD",strokeWidth:"60",strokeLinecap:"round"})})})]})})}},519:function(e,a,t){"use strict";var s=t(7437);a.Z=e=>{let{name:a,size:t={width:24,height:24},className:n=""}=e;return(0,s.jsx)("svg",{className:"svg-icon-".concat(a)+n,style:{width:null==t?void 0:t.width,height:null==t?void 0:t.height},children:(0,s.jsx)("use",{xlinkHref:"/svg.svg#".concat(a)})})}},2833:function(e){e.exports={inner:"form-area_inner__UgdZ8",card:"form-area_card__JH_i7",form:"form-area_form__alOsy",checkbox:"form-area_checkbox__Pdin_",confirmInput:"form-area_confirmInput__2BXzD",error:"form-area_error__QSbjn",disabled:"form-area_disabled__MOLPT"}},3739:function(e){e.exports={map:"map_map__tEnFG"}},2370:function(e){e.exports={section:"first-section_section__ZMzxS",image:"first-section_image__w_1SR",text:"first-section_text__METMs",icon:"first-section_icon__8wETR",rightIcon:"first-section_rightIcon__dSce_",mobileImage:"first-section_mobileImage__er8kk",de
1sktopImage:"first-section_desktopImage__2lWv_",show:"first-section_show__nb_R_"}},1428:function(e){e.exports={wrapper:"masked_wrapper___c2XT"}}},function(e){e.O(0,[475,922,910,105,146,971,117,744],function(){return e(e.s=3017)}),_N_E=e.O()}]);
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.