1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3468],{34451:function(e,t,n){"use strict";n.d(t,{y:function(){return v}});var r=n(16835),i=n(50029),a=n(64687),o=n.n(a),l=n(9008),s=n.n(l),c=n(67294),d=n(57460),u=n.n(d),p=[{name:n(16054).S.name,type:"AggregateRating",ratingValue:"3.4",reviewRating:"5",bestRating:"5",worstRating:"1",ratingCount:"438"}],m=n(35944),v=function(){var e=(0,c.useState)([]),t=e[0],n=e[1];(0,c.useEffect)(function(){var e;(e=(0,i.Z)(o().mark(function e(){var t,i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/reviews.csv");case 3:return t=e.sent,e.next=6,t.text();case 6:return i=e.sent,e.next=9,r(i);case 9:n(e.sent),e.next=16;break;case 13:e.prev=13,e.t0=e.catch(0),console.error("Error fetching reviews:",e.t0);case 16:case"end":return e.stop()}},e,null,[[0,13]])})),function(){return e.apply(this,arguments)})()},[]);var r=function(e){return new Promise(function(t,n){u().parse(e,{header:!0,complete:function(e){t(e.data)},error:function(e){console.error("Error parsing CSV:",e),n(e)}})})}
1,a=p[0],l=a.name,d=a.type,v=a.reviewRating,f=a.ratingValue,g=a.bestRating,b=a.worstRating,y=a.ratingCount,Z=t.map(function(e){return{"@type":"Review",reviewBody:e["Review Body"],author:{"@type":e.type,name:e.name},datePublished:h(e.datePublished)}});return(0,m.tZ)(s(),{children:(0,m.tZ)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Product",name:l,aggregateRating:{"@type":d,ratingValue:f,reviewRating:v,bestRating:g,worstRating:b,ratingCount:y},reviews:Z})}})})},h=function(e){var t=e.split("/"),n=(0,r.Z)(t,3),i=n[0],a=n[1],o=n[2];return"".concat(o,"-").concat(a.padStart(2,"0"),"-").concat(i.padStart(2,"0"))}},66112:function(e,t,n){"use strict";n.d(t,{d:function(){return l}});var r=n(16054),i=r.S.name,a=r.S.seotitle,o=r.S.seodescription,l={title:a,description:o,openGraph:{type:"website",locale:"en-GB",url:r.S.website,siteName:i,title:a,description:o,images:[{url:r.S.logo_url,width:1200,height:630,alt:i,type:"image/png"}]},twitter:{handle:"@handle",site:"@site",cardType:"summary_large_image"}}},19479:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r,i=n(4730),a=n(59499),o=n(67294),l=n(90512),s=n(94317),c=n(79566),d=n(55245),u=n(62718),p=n(38396),m=n(62947),v=n(75913),h=n(25685),f=n(57967),g=n(98230);function b(e){return(0,g.ZP)("MuiInputAdornment",e)}var y=(0,f.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Z=n(85893),P=["children","className","component","disablePointerEvents","disableTypography","position","variant"];function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var w=function(e){var t=e.classes,n=e.disablePointerEvents,r=e.hiddenLabel,i=e.position,a=e.size,o=e.variant,l={root:["root",n&&"disablePointerEvents",i&&"position".concat((0,c.Z)(i)),o,r&&"hiddenLabel",a&&"size".concat((0,c.Z)(a))]};return(0,s.Z)(l,b,t)},j=(0,m.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,c.Z)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((0,v.Z)(function(e){var t=e.theme;return{display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:(0,a.Z)({},"&.".concat(y.positionStart,"&:not(.").concat(y.hiddenLabel,")"),{marginTop:16})},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}})),x=o.forwardRef(function(e,t){var n=(0,h.i)({props:e,name:"MuiInputAdornment"}),a=n.children,s=n.className,c=n.component,m=n.disablePointerEvents,v=n.disableTypography,f=n.position,g=n.variant,b=(0,i.Z)(n,P),y=(0,p.Z)()||{},O=g;g&&y.variant,y&&!O&&(O=y.variant);var x=S(S({},n),{},{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:void 0!==m&&m,position:f,variant:O}),R=w(x);return(0,Z.jsx)(u.Z.Provider,{value:null,children:(0,Z.jsx)(j,S(S({as:void 0===c?"div":c,ownerState:x,className:(0,l.Z)(R.root,s),ref:t},b),{},{children:"string"!=typeof a||void 0!==v&&v?(0,Z.jsxs)(o.Fragment,{children:["start"===f?r||(r=(0,Z.jsx)("span",{className:"notranslate",children:"â"})):null,a]}):(0,Z.jsx)(d.Z,{color:"textSecondary",children:a})}))})})},90935:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var r=n(59499),i=n(16054),a=n(34451),o=n(27812),l=n(16835),s=n(7738),c=n(43634),d=n(41411),u=n(35384),p=n(19479),m=n(6620),v=n(31745),h=n(48583),f=n(67294),g=n(58480),b=n(35944);function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?y(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var P={tenure:"Single Donation",SelectedReason:"Home in Sierra Leone",amount:0,SelectedSubReason:"Sadaqah/Lillah",message:""},O=function(){var e=(0,g.dF)(),t=(0,h.KO)(s.cartItemsAtom),n=(0,l.Z)(t,2),i=n[0],a=n[1],y=(0,f.useRef)(null),O=(0,f.useState)(P),S=O[0],w=O[1],j=function(e){"SelectedReason"===e.target.name&&"Home in Pakistan"===e.target.value&&w(function(e){return Z(Z({},e),{},{amount:0})}),w(function(t){return Z(Z({},t),{},(0,r.Z)({},e.target.name,e.target.value))})},x=function(){var t=!1;if((""===S.amount||S.amount<=0)&&(e("Please enter an amount (at least \xa31)","error"),t=!0),""===S.SelectedReason&&(e("Please select a reason","error"),t=!0),""===S.SelectedSubReason&&(e("Please select a giving category","error"),t=!0),!t){var n,r,l,s,c,d=null!==(n=null===(r=y.current)||void 0===r||null===(l=r.getPayload)||void 0===l?void 0:l.call(r))&&void 0!==n?n:{donationType:"oneTime"};if("recurring"===d.donationType&&!(null!==(s=y.current)&&void 0!==s&&null!==(c=s.validateRecurring)&&void 0!==c&&c.call(s)))return;a([].concat((0,o.Z)(i),[Z(Z({},S),d)])),e("Added to cart successfully!","success"),w(P)}};return(0,b.tZ)(b.HY,{children:(0,b.BX)("div",{className:"bg-white py-7 grid grid-cols-1 px-4 lg:px-20 items-center gap-5 overflow-y-scroll overflow-visible",children:[(0,b.tZ)("div",{className:"text-3xl font-bold",children:"Homes"}),(0,b.tZ)("div",{children:"I would like to make a "}),(0,b.tZ)("div",{children:(0,b.tZ)(v.Z,{labelId:"demo-simple-select-demo",fullWidth:!0,id:"demo-simple-select",name:"tenure",value:S.tenure,onChange:j,children:(0,b.tZ)(d.Z,{value:"Single Donation",children:"Single Donation"})})}),(0,b.tZ)("div",{children:(0,b.BX)(v.Z,{labelId:"demo-simple-select-demo",fullWidth:!0,id:"demo-simple-select",name:"SelectedReason",value:S.SelectedReason,onChange:j,children:[(0,b.tZ)(d.Z,{value:"Home in Sierra Leone",children:"Home in Sierra Leone"}),(0,b.tZ)(d.Z,{value:"Home in Pakistan",children:"Home in Pakistan"})]})}),(0,b.tZ)("div",{children:(0,b.tZ)("div",{className:"w-full",children:(0,b.tZ)(u.Z,{id:"outlined-number",name:"amount",value:S.amount,fullWidth:!0,placeholder:"Other Amount",onChange:j,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,b.tZ)(p.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})})}),(0,b.tZ)("div",{children:(0,b.BX)(v.Z,{labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:S.SelectedSubReason,placeholder:"Select your givings category",onChange:j,children:[(0,b.tZ)(d.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"}),(0,b.tZ)(d.Z,{value:"Zakat",children:"Zakat"}),(0,b.tZ)(d.Z,{value:"General Charity",children:"General Charity"})]})}),(0,b.tZ)("div",{children:S.amount>=1e3&&(0,b.tZ)("div",{className:"w-full",children:(0,b.tZ)(u.Z,{id:"outlined-number",name:"message",value:S.message,fullWidth:!0,placeholder:"Personal Message",onChange:j,type:"text",InputLabelProps:{shrink:!0}})})}),(0,b.tZ)("div",{children:(0,b.tZ)(c.Z,{ref:y})}),(0,b.tZ)("div",{children:(0,b.tZ)(m.Z,{onClick:function(){x()},className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})}),(0,b.tZ)("div",{className:"text-center text-primary font-semibold w-[250px] mt-4 text-xl",children:"Home in Morocco"===S.SelectedReason?"Price of building Shelter Home in Morocco is 1000 Pounds":"Home in Sierra Leone"===S.SelectedReason?"Price of building Shelter Home in Sierra Leone is 2000 Pounds":"Home in Pakistan"===S.SelectedReason?"Price of building Shelter Home in Pakistan is 750 Pounds":""})]})})},S=function(){return(0,b.tZ)("div",{children:(0,b.BX)("div",{children:[(0,b.tZ)("div",{className:"bg-Homes bg-no-repeat bg-cover py-12 bg-center md:px-20",children:(0,b.BX)("div",{className:"flex justify-between items-center",children:[(0,b.tZ)("div",{}),(0,b.tZ)("div",{children:(0,b.tZ)(O,{})})]})}),(0,b.tZ)("div",{className:"md:px-40 px-5 md:text-4xl text-center py-20",children:"Building shelter homes serves as a crucial initiative to address homelessness and provide refuge for individuals and families in need. The importance of constructing shelter homes lies in its social, humanitarian, and community-building aspects"})]})})},w=n(2962),j=n(66112);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R(){return(0,b.BX)("div",{children:[(0,b.tZ)(w.PB,{canonical:"".concat(i.S.url)}),(0,b.tZ)(w.lX,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?x(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},j.d)),(0,b.tZ)(a.y,{}),(0,b.tZ)(w.ns,{}),(0,b.tZ)(S,{})]})}},87583:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/appeals/homes",function(){return n(90935)}])}},function(e){e.O(0,[1947,1864,5495,555,1082,1745,6339,6410,3893,2888,9774,179],function(){return e(e.s=87583)}),_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.