1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5431],{34451:function(e,t,n){"use strict";n.d(t,{y:function(){return p}});var a=n(16835),r=n(50029),l=n(64687),i=n.n(l),d=n(9008),o=n.n(d),c=n(67294),s=n(57460),u=n.n(s),h=[{name:n(16054).S.name,type:"AggregateRating",ratingValue:"3.4",reviewRating:"5",bestRating:"5",worstRating:"1",ratingCount:"438"}],m=n(35944),p=function(){var e=(0,c.useState)([]),t=e[0],n=e[1];(0,c.useEffect)(function(){var e;(e=(0,r.Z)(i().mark(function e(){var t,r;return i().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 r=e.sent,e.next=9,a(r);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 a=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)}})})},l=h[0],d=l.name,s=l.type,p=l.reviewRating,v=l.ratingValue,y=l.bestRating,b=l.worstRating,S=l.ratingCount,f=t.map(function(e){return{"@type":"Review",reviewBody:e["Review Body"],author:{"@type":e.type,name:e.name},datePublished:Z(e.datePublished)}});return(0,m.tZ)(o(),{children:(0,m.tZ)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Product",name:d,aggregateRating:{"@type":s,ratingValue:v,reviewRating:p,bestRating:y,worstRating:b,ratingCount:S},reviews:f})}})})},Z=function(e){var t=e.split("/"),n=(0,a.Z)(t,3),r=n[0],l=n[1],i=n[2];return"".concat(i,"-").concat(l.padStart(2,"0"),"-").concat(r.padStart(2,"0"))}},66112:function(e,t,n){"use strict";n.d(t,{d:function(){return d}});var a=n(16054),r=a.S.name,l=a.S.seotitle,i=a.S.seodescription,d={title:l,description:i,openGraph:{type:"website",locale:"en-GB",url:a.S.website,siteName:r,title:l,description:i,images:[{url:a.S.logo_url,width:1200,height:630,alt:r,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 k}});var a,r=n(4730),l=n(59499),i=n(67294),d=n(90512),o=n(94317),c=n(79566),s=n(55245),u=n(62718),h=n(38396),m=n(62947),p=n(75913),Z=n(25685),v=n(57967),y=n(98230);function b(e){return(0,y.ZP)("MuiInputAdornment",e)}var S=(0,v.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),f=n(85893),g=["children","className","component","disablePointerEvents","disableTypography","position","variant"];function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach(function(t){(0,l.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var R=function(e){var t=e.classes,n=e.disablePointerEvents,a=e.hiddenLabel,r=e.position,l=e.size,i=e.variant,d={root:["root",n&&"disablePointerEvents",r&&"position".concat((0,c.Z)(r)),i,a&&"hiddenLabel",l&&"size".concat((0,c.Z)(l))]};return(0,o.Z)(d,b,t)},N=(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,p.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,l.Z)({},"&.".concat(S.positionStart,"&:not(.").concat(S.hiddenLabel,")"),{marginTop:16})},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}})),k=i.forwardRef(function(e,t){var n=(0,Z.i)({props:e,name:"MuiInputAdornment"}),l=n.children,o=n.className,c=n.component,m=n.disablePointerEvents,p=n.disableTypography,v=n.position,y=n.variant,b=(0,r.Z)(n,g),S=(0,h.Z)()||{},P=y;y&&S.variant,S&&!P&&(P=S.variant);var k=x(x({},n),{},{hiddenLabel:S.hiddenLabel,size:S.size,disablePointerEvents:void 0!==m&&m,position:v,variant:P}),B=R(k);return(0,f.jsx)(u.Z.Provider,{value:null,children:(0,f.jsx)(N,x(x({as:void 0===c?"div":c,ownerState:k,className:(0,d.Z)(B.root,o),ref:t},b),{},{children:"string"!=typeof l||void 0!==p&&p?(0,f.jsxs)(i.Fragment,{children:["start"===v?a||(a=(0,f.jsx)("span",{className:"notranslate",children:"â"})):null,l]}):(0,f.jsx)(s.Z,{color:"textSecondary",children:l})}))})})},26192:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return W}});var a=n(59499),r=n(16054),l=n(34451),i=n(67294),d=n(27812),o=n(16835),c=n(7738),s=n(43634),u=n(35384),h=n(19479),m=n(41411),p=n(6620),Z=n(31745),v=n(48583),y=n(58480),b=n(35944);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?S(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var g=function(e,t){return"Masjid Construction"===e?"Sadaqah/Lillah":"Water Pumps"===e&&"Pakistan"===t?"Zakat":"Water Pumps"===e&&"Pakistan"!==t&&""!==t?"Sadaqah/Lillah":"Zakat"},P=function(e){var t={tenure:"Single Donation",SelectedReason:e,amount:0,SelectedSubReason:"",message:"",country:"",quantity:1};return"Food Parcels"===e?(t.country="India",t.amount=35,t.SelectedSubReason=g(e,t.country)):"Masjid Construction"===e?(t.country="DR Congo",t.amount=12e3,t.SelectedSubReason=g(e,t.country)):"Shelter Homes"===e?(t.country="Pakistan",t.amount=750,t.SelectedSubReason=g(e,t.country)):"Water Pumps"===e?(t.country="Bangladesh",t.amount=250,t.SelectedSubReason=g(e,t.country)):"General Zakat"===e?(t.amount=0,t.SelectedSubReason="Zakat"):t.SelectedSubReason=g(e,""),t},x=P("Emergency Aid"),R=function(e){var t=e.state,n=e.handleChange,a=e.handleSubmit;return(0,b.BX)(b.HY,{children:[(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.BX)("div",{children:["Amount ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(u.Z,{required:!0,id:"outlined-number",name:"amount",value:t.amount,fullWidth:!0,placeholder:"Other Amount",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,b.tZ)(h.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})]})}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Donation Type ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:t.SelectedSubReason||"Zakat",onChange:n,displayEmpty:!1,children:[(0,b.tZ)(m.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"}),(0,b.tZ)(m.Z,{value:"Zakat",children:"Zakat"}),(0,b.tZ)(m.Z,{value:"General Charity",children:"General Charity"})]})]}),(0,b.tZ)("div",{children:(0,b.tZ)(p.Z,{fullWidth:!0,onClick:a,className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})})]})},N=function(e){var t=e.state,n=e.handleChange,a=e.handleSubmit;return(0,b.BX)(b.HY,{children:[(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.BX)("div",{children:["Amount ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(u.Z,{required:!0,id:"outlined-number",name:"amount",value:t.amount,fullWidth:!0,placeholder:"Enter Amount",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,b.tZ)(h.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})]})}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Donation Type ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(Z.Z,{required:!0,labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:"Zakat",disabled:!0,displayEmpty:!1,children:(0,b.tZ)(m.Z,{value:"Zakat",children:"Zakat"})})]}),(0,b.tZ)("div",{children:(0,b.tZ)(p.Z,{fullWidth:!0,onClick:a,className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})})]})},k=function(e){var t=e.state,n=e.handleChange,a=e.handleSubmit;return(0,b.BX)(b.HY,{children:[(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.BX)("div",{children:["Amount ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(u.Z,{required:!0,id:"outlined-number",name:"amount",value:t.amount,fullWidth:!0,placeholder:"Other Amount",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,b.tZ)(h.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})]})}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Donation Type ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:t.SelectedSubReason||"Zakat",onChange:n,displayEmpty:!1,children:[(0,b.tZ)(m.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"}),(0,b.tZ)(m.Z,{value:"Zakat",children:"Zakat"})]})]}),(0,b.tZ)("div",{children:(0,b.tZ)(p.Z,{fullWidth:!0,onClick:a,className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})})]})},B=function(e){var t=e.state,n=e.handleChange,a=e.handleSubmit,r=(e.calculateAmou
1nt,e.getPriceNote);return(0,b.BX)(b.HY,{children:[(0,b.BX)("div",{className:"space-y-5",children:[(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.tZ)("div",{children:"Amount"}),(0,b.tZ)(u.Z,{id:"outlined-number",name:"amount",disabled:!0,value:t.amount,fullWidth:!0,placeholder:"Other Amount",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,b.tZ)(h.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})]})}),(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.BX)("div",{children:["Quantity ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(u.Z,{required:!0,id:"outlined-number",name:"quantity",value:t.quantity,fullWidth:!0,placeholder:"Quantity",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:1}})]})})]}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Country ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-demo",fullWidth:!0,placeholder:"Select Country",id:"demo-simple-select",name:"country",value:t.country||"",onChange:n,displayEmpty:!0,children:[(0,b.tZ)(m.Z,{value:"India",children:"India"}),(0,b.tZ)(m.Z,{value:"Indonesia",children:"Indonesia"}),(0,b.tZ)(m.Z,{value:"Sierra Leone",children:"Sierra Leone"}),(0,b.tZ)(m.Z,{value:"Syria",children:"Syria"})]})]}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Donation Type ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:t.SelectedSubReason||g(t.SelectedReason,t.country)||"Zakat",onChange:n,displayEmpty:!1,children:[(0,b.tZ)(m.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"}),(0,b.tZ)(m.Z,{value:"Zakat",children:"Zakat"})]})]}),(0,b.tZ)("div",{children:(0,b.tZ)(p.Z,{fullWidth:!0,onClick:a,className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})}),r()&&(0,b.tZ)("div",{className:"text-center text-primary font-semibold mt-4 text-xl",children:r()})]})},C=function(e){var t=e.state,n=e.handleChange,a=e.handleSubmit,r=(e.calculateAmount,e.getPriceNote);return(0,b.BX)(b.HY,{children:[(0,b.BX)("div",{className:"space-y-5",children:[(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.tZ)("div",{children:"Amount"}),(0,b.tZ)(u.Z,{id:"outlined-number",name:"amount",disabled:!0,value:t.amount,fullWidth:!0,placeholder:"Other Amount",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,b.tZ)(h.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})]})}),(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.BX)("div",{children:["Quantity ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(u.Z,{required:!0,id:"outlined-number",name:"quantity",value:t.quantity,fullWidth:!0,placeholder:"Quantity",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:1}})]})})]}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Country ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-demo",fullWidth:!0,placeholder:"Select Country",id:"demo-simple-select",name:"country",value:t.country||"",onChange:n,displayEmpty:!0,children:[(0,b.tZ)(m.Z,{value:"DR Congo",children:"DR Congo"}),(0,b.tZ)(m.Z,{value:"Indonesia",children:"Indonesia"}),(0,b.tZ)(m.Z,{value:"Sierra Leone",children:"Sierra Leone"}),(0,b.tZ)(m.Z,{value:"Pakistan",children:"Pakistan"})]})]}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Donation Type ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:t.SelectedSubReason||"Sadaqah/Lillah",onChange:n,displayEmpty:!1,children:[(0,b.tZ)(m.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"}),(0,b.tZ)(m.Z,{value:"General Charity",children:"General Charity"})]})]}),(0,b.tZ)("div",{children:(0,b.tZ)(p.Z,{fullWidth:!0,onClick:a,className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})}),r()&&(0,b.tZ)("div",{className:"text-center text-primary font-semibold mt-4 text-xl",children:r()})]})},O=function(e){var t=e.state,n=e.handleChange,a=e.handleSubmit,r=(e.calculateAmou
1nt,e.getPriceNote);return(0,b.BX)(b.HY,{children:[(0,b.BX)("div",{className:"space-y-5",children:[(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.tZ)("div",{children:"Amount"}),(0,b.tZ)(u.Z,{id:"outlined-number",name:"amount",disabled:!0,value:t.amount,fullWidth:!0,placeholder:"Other Amount",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,b.tZ)(h.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})]})}),(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.BX)("div",{children:["Quantity ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(u.Z,{required:!0,id:"outlined-number",name:"quantity",value:t.quantity,fullWidth:!0,placeholder:"Quantity",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:1}})]})})]}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Country ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-demo",fullWidth:!0,placeholder:"Select Country",id:"demo-simple-select",name:"country",value:t.country||"",onChange:n,displayEmpty:!0,children:[(0,b.tZ)(m.Z,{value:"Pakistan",children:"Pakistan"}),(0,b.tZ)(m.Z,{value:"Sierra Leone",children:"Sierra Leone"})]})]}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Donation Type ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:t.SelectedSubReason||g(t.SelectedReason,t.country)||"Zakat",onChange:n,displayEmpty:!1,children:[(0,b.tZ)(m.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"}),(0,b.tZ)(m.Z,{value:"Zakat",children:"Zakat"}),(0,b.tZ)(m.Z,{value:"General Charity",children:"General Charity"})]})]}),(0,b.tZ)("div",{children:(0,b.tZ)(p.Z,{fullWidth:!0,onClick:a,className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})}),r()&&(0,b.tZ)("div",{className:"text-center text-primary font-semibold mt-4 text-xl",children:r()})]})},X=function(e){var t=e.state,n=e.handleChange,a=e.handleSubmit,r=(e.calculateAmount,e.getPriceNote);return(0,b.BX)(b.HY,{children:[(0,b.BX)("div",{className:"space-y-5",children:[(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.tZ)("div",{children:"Amount"}),(0,b.tZ)(u.Z,{id:"outlined-number",name:"amount",disabled:!0,value:t.amount,fullWidth:!0,placeholder:"Other Amount",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,b.tZ)(h.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})]})}),(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.BX)("div",{children:["Quantity ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(u.Z,{required:!0,id:"outlined-number",name:"quantity",value:t.quantity,fullWidth:!0,placeholder:"Quantity",onChange:n,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:1}})]})})]}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Country ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.BX)(Z.Z,{required:!0,labelId:"demo-simple-select-demo",fullWidth:!0,placeholder:"Select Country",id:"demo-simple-select",name:"country",value:t.country||"",onChange:n,displayEmpty:!0,children:[(0,b.tZ)(m.Z,{value:"Bangladesh",children:"Bangladesh"}),(0,b.tZ)(m.Z,{value:"Myanmar",children:"Myanmar"}),(0,b.tZ)(m.Z,{value:"Pakistan",children:"Pakistan"}),(0,b.tZ)(m.Z,{value:"Sri Lanka",children:"Sri Lanka"})]})]}),(0,b.BX)("div",{children:[(0,b.BX)("div",{children:["Donation Type ",(0,b.tZ)("span",{className:"text-red-500",children:"*"})]}),(0,b.tZ)(Z.Z,{required:!0,labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:t.SelectedSubReason||g(t.SelectedReason,t.country)||"Sadaqah/Lillah",onChange:n,displayEmpty:!1,children:"Pakistan"===t.country?(0,b.BX)(b.HY,{children:[(0,b.tZ)(m.Z,{value:"Zakat",children:"Zakat"}),(0,b.tZ)(m.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"})]}):(0,b.tZ)(m.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"})})]}),(0,b.tZ)("div",{children:(0,b.BX)("div",{className:"w-full",children:[(0,b.tZ)("div",{children:"Personal Message"}),(0,b.tZ)(u.Z,{id:"outlined-number",name:"message",value:t.message,fullWidth:!0,placeholder:"Personal Message",onCh
1ange:n,type:"text",InputLabelProps:{shrink:!0}})]})}),(0,b.tZ)("div",{children:(0,b.tZ)(p.Z,{fullWidth:!0,onClick:a,className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})}),r()&&(0,b.tZ)("div",{className:"text-center text-primary font-semibold mt-4 text-xl",children:r()})]})},w=function(){var e=(0,y.dF)(),t=(0,v.KO)(c.cartItemsAtom),n=(0,o.Z)(t,2),r=n[0],l=n[1],u=(0,i.useRef)(null),h=(0,i.useState)(x),p=h[0],S=h[1],w=function(e,t,n){var a=parseInt(n)||0,r=0;return"Food Parcels"===e?r=35*a:"Masjid Construction"===e?r=a*(({"DR Congo":12e3,Indonesia:1e4,"Sierra Leone":15e3,Pakistan:11e3})[t]||0):"Shelter Homes"===e?r=a*(({Pakistan:750,"Sierra Leone":2e3})[t]||0):"Water Pumps"===e&&(r=a*(({Bangladesh:250,Myanmar:280,Pakistan:150,"Sri Lanka":130})[t]||0)),r},q=function(e){if("SelectedReason"===e.target.name)S(P(e.target.value));else if("country"===e.target.name){var t=f(f({},p),{},{country:e.target.value,quantity:1});("Food Parcels"===p.SelectedReason||"Masjid Construction"===p.SelectedReason||"Shelter Homes"===p.SelectedReason||"Water Pumps"===p.SelectedReason)&&(t.amount=w(p.SelectedReason,e.target.value,1),t.SelectedSubReason=g(p.SelectedReason,e.target.value)),S(t)}else if("quantity"===e.target.name){var n=parseInt(e.target.value)||0,r=w(p.SelectedReason,p.country,n);S(function(e){return f(f({},e),{},{quantity:n,amount:r})})}else if("SelectedSubReason"===e.target.name){var l=e.target.value;S(function(e){return f(f({},e),{},{SelectedSubReason:l})})}else S(function(t){return f(f({},t),{},(0,a.Z)({},e.target.name,e.target.value))})},L=function(){var t,n,a,i,o,c=!1,s="";p.SelectedReason&&""!==p.SelectedReason&&null!==p.SelectedReason||(s="Please select a reason for donation",c=!0);var h=["Sadaqah/Lillah","Zakat","General Charity"],m=p.SelectedSubReason&&""!==p.SelectedSubReason&&null!==p.SelectedSubReason&&void 0!==p.SelectedSubReason&&"string"==typeof p.SelectedSubReason,Z=m&&h.includes(p.SelectedSubReason),v=!1;if(Z&&(v="Masjid Construction"===p.SelectedReason?["Sadaqah/Lillah","General Charity"].includes(p.SelectedSubReason):"Water Pumps"===p.SelectedReason&&"Pakistan"===p.country?["Zakat","Sadaqah/Lillah"].includes(p.SelectedSubReason):"Water Pumps"===p.SelectedReason&&"Pakistan"!==p.country?"Sadaqah/Lillah"===p.SelectedSubReason:"General Zakat"===p.SelectedReason?"Zakat"===p.SelectedSubReason:h.includes(p.SelectedSubReason)),m&&Z&&v||(s="Please select your Dontation Type (Zakat/Sadaqah/Lillah/General Charity)",c=!0),"Emergency Aid"!==p.SelectedReason&&"Education"!==p.SelectedReason&&"General Zakat"!==p.SelectedReason||p.amount&&""!==p.amount&&!(p.amount<=0)||c||(s="Minimum 1 pound amount is required",c=!0),"Food Parcels"!==p.SelectedReason&&"Masjid Construction"!==p.SelectedReason&&"Shelter Homes"!==p.SelectedReason&&"Water Pumps"!==p.SelectedReason||(p.country&&""!==p.country?!p.quantity||p.quantity<=0?c||(s="Quantity must be at least 1",c=!0):p.amount&&!(p.amount<=0)||c||(s="Amount must be greater than 0",c=!0):c||(s="Please select a country",c=!0)),c){e(s,"error");return}var y=null!==(t=null===(n=u.current)||void 0===n||null===(a=n.getPayload)||void 0===a?void 0:a.call(n))&&void 0!==t?t:{donationType:"oneTime"};("recurring"!==y.donationType||null!==(i=u.current)&&void 0!==i&&null!==(o=i.validateRecurring)&&void 0!==o&&o.call(i))&&("Emergency Aid"===p.SelectedReason||"Education"===p.SelectedReason||"General Zakat"===p.SelectedReason?l([].concat((0,d.Z)(r),[f(f({},p),y)])):l([].concat((0,d.Z)(r),[f(f({},p),{},{amount:p.amount/p.quantity},y)])),e("Added to cart successfully!","success"),S(P(p.SelectedReason)))},E=function(){return"Food Parcels"===p.SelectedReason?"Price of one Food Parcel is \xa335":"Masjid Construction"===p.SelectedReason?p.country?"Price of one Masjid Construction in ".concat(p.country," is ").concat({"DR Congo":"\xa312,000",Indonesia:"\xa310,000","Sierra Leone":"\xa315,000",Pakistan:"\xa311,000"}[p.country]):"":"Shelter Homes"===p.SelectedReason?p.country?"Price of one Shelter Home in ".concat(p.country," is ").concat({Pakistan:"\xa3750","Sierra Leone":"\xa32,000"}[p.country]):"":"Water Pumps"===p.SelectedReason&&p.country?"Price of one Water Pump in ".concat(p.country," is ").concat({Bangladesh:"\xa3250",Myanmar:"\xa3280",Pakistan:"\xa3150","Sri Lanka":"\xa3130"}[p.country]):""};return(0,b.tZ)(b.HY,{children:(0,b.BX)("div",{className:"bg-white/90 rounded-lg py-7 space-y-5 px-7 w-[370px] md:w-[600px] items-center gap-5",children:[(0,b.tZ)("div",{className:"text-3xl font-bold",children:"Ramadhan Appeals"}),(0,b.tZ)("div",{children:"I would like to make a "}),(0,b.BX)("div",{children:[(0,b.tZ)("div",{children:"Projects"}),(0,b.BX)(Z.Z,{labelId:"demo-simple-select-demo",fullWidth:!0,id:"demo-simple-select",name:"SelectedReason",value:p.SelectedReason,onChange:q,children:[(0,b.tZ)(m.Z,{value:"Emergency Aid",children:"Emergency Aid"}),(0,b.tZ)(m.Z,{value:"Food Parcels",children:"Food Parcels"}),(0,b.tZ)(m.Z,{value:"Education",children:"Education"}),(0,b.tZ)(m.Z,{value:"Masjid Construction",children:"Masjid Construction"}),(0,b.tZ)(m.Z,{value:"Shelter Homes",children:"Shelter Homes"}),(0,b.tZ)(m.Z,{value:"Water Pumps",children:"Water Pumps"}),(0,b.tZ)(m.Z,{value:"General Zakat",children:"General Zakat"})]})]}),(0,b.tZ)("div",{children:(0,b.tZ)(s.Z,{ref:u})}),function(){var e={state:p,handleChange:q,handleSubmit:L,calculateAmou
1nt:w,getPriceNote:E};switch(p.SelectedReason){case"Emergency Aid":default:return(0,b.tZ)(R,f({},e));case"Education":return(0,b.tZ)(k,f({},e));case"Food Parcels":return(0,b.tZ)(B,f({},e));case"Masjid Construction":return(0,b.tZ)(C,f({},e));case"Shelter Homes":return(0,b.tZ)(O,f({},e));case"Water Pumps":return(0,b.tZ)(X,f({},e));case"General Zakat":return(0,b.tZ)(N,f({},e))}}()]})})},q=function(){return(0,b.BX)("div",{className:"",children:[(0,b.tZ)("div",{className:"bg-Ramadhan2026Banner bg-cover bg-center",children:(0,b.tZ)("div",{className:" md:py-60 py-20 px-5 md:px-20 md:flex-row flex-col flex items-center justify-end",children:(0,b.tZ)("div",{className:" px-2 md:px-0 overflow-visible",children:(0,b.tZ)(w,{})})})}),(0,b.BX)("div",{className:"md:px-40 px-5 md:text-4xl text-center py-20",children:[(0,b.tZ)("h1",{className:"text-5xl font-bold mb-5",children:"Ramadhan Appeals"}),(0,b.tZ)("h2",{className:"text-3xl mb-10",children:"Spread Mercy this Ramadhan"})]})]})},L=n(2962),E=n(66112);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function W(){return(0,b.BX)("div",{children:[(0,b.tZ)(L.PB,{canonical:"".concat(r.S.url,"/ramadhan2026")}),(0,b.tZ)(L.lX,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},E.d)),(0,b.tZ)(l.y,{}),(0,b.tZ)(L.ns,{}),(0,b.tZ)(q,{})]})}},51588:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/ramadhan20000026",function(){return n(26192)}])}},function(e){e.O(0,[1947,1864,5495,555,1082,1745,6339,6410,3893,2888,9774,179],function(){return e(e.s=51588)}),_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.