1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[826],{5247:function(e,t,n){"use strict";n.d(t,{ZP:function(){return l}});let a={_origin:"https://api.emailjs.com"},r=(e,t,n)=>{if(!e)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!n)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates";return!0};class s{constructor(e){this.status=e?e.status:0,this.text=e?e.responseText:"Network Error"}}let i=(e,t,n={})=>new Promise((r,i)=>{let o=new XMLHttpRequest;o.addEventListener("load",({target:e})=>{let t=new s(e);200===t.status||"OK"===t.text?r(t):i(t)}),o.addEventListener("error",({target:e})=>{i(new s(e))}),o.open("POST",a._origin+e,!0),Object.keys(n).forEach(e=>{o.setRequestHeader(e,n[e])}),o.send(t)}),o=e=>{let t;if(!(t="string"==typeof e?document.querySelector(e):e)||"FORM"!==t.nodeName)throw"The 3rd parameter is expected to be the HTML form element or the style selector of form";return t};var l={init:(e,t="https://api.emailjs.com")=>{a._userID=e,a._origin=t},send:(e,t,n,s)=>{let o=s||a._userID;return r(o,e,t),i("/api/v1.0/email/send",JSON.stringify({lib_version:"3.11.0",user_id:o,service_id:e,template_id:t,template_params:n}),{"Content-type":"application/json"})},sendForm:(e,t,n,s)=>{let l=s||a._userID,d=o(n);r(l,e,t);let u=new FormData(d);return u.append("lib_version","3.11.0"),u.append("service_id",e),u.append("template_id",t),u.append("user_id",l),i("/api/v1.0/email/send-form",u)}}},4503:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/what-we-offer/personal-financing",function(){return n(7981)}])},7185:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var a=n(5893),r=n(3369),s=n.n(r);function i(e){let{title:t,text:n,imageUrl:r}=e;return(0,a.jsxs)("div",{className:s().container,children:[(0,a.jsxs)("div",{className:s().leftContainer,"data-aos":"fade-zoom-in","data-aos-easing":"ease-in-back","data-aos-delay":100,"data-aos-offset":0,children:[(0,a.jsx)("h1",{children:t}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:n}})]}),(0,a.jsx)("div",{className:s().rightContainer,"data-aos":"fade-zoom-in","data-aos-easing":"ease-in-back","data-aos-delay":400,"data-aos-offset":0,children:(0,a.jsx)("img",{src:r,alt:""})})]})}},8232:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var a=n(5893),r=n(7294),s=n(7632),i=n(5247),o=n(2491),l=n(5581),d=n.n(l);function u(e){let{type:t}=e,[n,l]=(0,r.useState)(""),[u,c]=(0,r.useState)(""),[m,h]=(0,r.useState)(""),[f,p]=(0,r.useState)(!1),[_,g]=(0,r.useState)(!1),x=()=>{l(""),c(""),h("")},b=async e=>{if(e.preventDefault(),!_)try{g(!0);let e=(0,s.Z)(),a={id:e,name:n,email:m,phonenumber:u,message:t,timestamp:o.AB};await o.db.collection("whatWeOfferForm").doc(e).set(a),i.ZP.send("itrust_main_website","template_fn1v1j7",{...a,type:t},"gExUBMcubrGiZb8Zz").then(e=>{"OK"===e.text&&i.ZP.send("itrust_main_website","template_rfybmhs",{...a,type:t},"gExUBMcubrGiZb8Zz").then(e=>{"OK"===e.text&&(g(!1),x(),p(!0),setTimeout(()=>{p(!1)},12e3))},e=>{console.log({errormessage:e.message}),g(!1),alert("Something went wrong!")})},e=>{console.log(e.message),g(!1),alert("Something went wrong!")})}catch(e){console.log(null==e?void 0:e.message),alert("Something went wrong!"),g(!1)}};return(0,a.jsxs)("div",{className:d().container,children:[(0,a.jsx)("div",{className:d().leftContainer,"data-aos":"fade-zoom-in","data-aos-easing":"ease-in-back","data-aos-offset":0,children:(0,a.jsxs)("h1",{children:[(0,a.jsx)("span",{children:"Fill the form below for"})," next steps"]})}),(0,a.jsxs)("div",{className:d().rightContainer,"data-aos":"fade-zoom-in","data-aos-easing":"ease-in-back","data-aos-offset":0,children:[(0,a.jsxs)("form",{onSubmit:b,children:[(0,a.jsxs)("div",{className:d().formGroup,children:[(0,a.jsx)("label",{children:"Name"}),(0,a.jsx)("input",{type:"text",placeholder:"e.g; John Smith",required:!0,value:n,onChange:e=>l(e.target.value)})]}),(0,a.jsxs)("div",{className:d().formGroup,children:[(0,a.jsx)("label",{children:"Phone Number"}),(0,a.jsx)("input",{type:"text",placeholder:"+255 123 456 789",required:!0,value:u,onChange:e=>c(e.target.value)})]}),(0,a.jsxs)("div",{className:d().formGroup,children:[(0,a.jsx)("label",{children:"Email Address"}),(0,a.jsx)("input",{type:"email",placeholder:"e.g; [email protected]",required:!0,value:m,onChange:e=>h(e.target.value)})]}),(0,a.jsx)("button",{type:"submit",className:d().submitButton,style:{cursor:_?"progress":"pointer"},children:_?"Submitting...":"Submit"})]}
1),f&&(0,a.jsx)("p",{className:d().bottomText,children:"Thank you for your interest in working with us; we have received your submission and our representative will contact you soon to discuss further steps."})]})]})}},7981:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var a=n(5893),r=n(7185),s=n(8232);function i(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r.Z,{title:"Personal Financing",text:"<p>Every person has a unique need! We are committed to providing fair and ethical personal financing products tailored to your unique needs, making your wishes come to reality in the easiest way possible.</p>",imageUrl:"/whatWeOffer/header3.webp"}),(0,a.jsx)(s.Z,{type:"Personal Financing"})]})}},3369:function(e){e.exports={container:"TopHeader_container__0Ql39",leftContainer:"TopHeader_leftContainer__5XE2n",rightContainer:"TopHeader_rightContainer__CAZFS"}},5581:function(e){e.exports={container:"WhatWeOfferForm_container__HB_xY",leftContainer:"WhatWeOfferForm_leftContainer__rIbTJ",rightContainer:"WhatWeOfferForm_rightContainer__TFx9N",formGroup:"WhatWeOfferForm_formGroup__SNZkj",submitButton:"WhatWeOfferForm_submitButton__llZkp",bottomText:"WhatWeOfferForm_bottomText__Vuiqr"}}},function(e){e.O(0,[774,888,179],function(){return e(e.s=4503)}),_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.