1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6214],{4260:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return N}});var r=n(59499),o=n(16054),a=n(34451),i=n(27812),l=n(16835),c=n(7738),s=n(43634),u=n(41411),d=n(35384),p=n(19479),m=n(6620),h=n(31745),f=n(99754),b=n(48583),v=n(67294),g=n(58480),Z=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 O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%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 S={tenure:"Single Donation",SelectedReason:"Imam Support",amount:0,SelectedSubReason:"Sadaqah/Lillah"},P=function(){var e=(0,g.dF)(),t=(0,b.KO)(c.cartItemsAtom),n=(0,l.Z)(t,2),o=n[0],a=n[1],y=(0,v.useRef)(null),P=(0,v.useState)(S),w=P[0],j=P[1],x=function(e){"SelectedReason"===e.target.name&&"Imam Support"===e.target.value&&j(function(e){return O(O({},e),{},{amount:0})}),"SelectedReason"===e.target.name&&"Imam Sponsorship"===e.target.value&&j(function(e){return O(O({},e),{},{amount:600})}),j(function(t){return O(O({},t),{},(0,r.Z)({},e.target.name,e.target.value))})},I=function(){var t=!1;if((""===w.amount||w.amount<=0)&&(e("Please enter an amount (at least \xa31)","error"),t=!0),""===w.SelectedReason&&(e("Please select a reason","error"),t=!0),""===w.SelectedSubReason&&(e("Please select a giving category","error"),t=!0),!t){var n,r,l,c,s,u=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"===u.donationType&&!(null!==(c=y.current)&&void 0!==c&&null!==(s=c.validateRecurring)&&void 0!==s&&s.call(c)))return;a([].concat((0,i.Z)(o),[O(O({},w),u)])),e("Added to cart successfully!","success"),j(S)}};return(0,Z.tZ)(Z.HY,{children:(0,Z.BX)("div",{className:"bg-white py-5 grid grid-cols-1 px-4 lg:px-20 items-center gap-7 overflow-visible",children:[(0,Z.tZ)("div",{children:"I would like to make a "}),(0,Z.tZ)("div",{children:(0,Z.tZ)(f.Z,{state:w,setState:j,monthly:!1})}),(0,Z.tZ)("div",{children:(0,Z.BX)(h.Z,{labelId:"demo-simple-select-demo",fullWidth:!0,id:"demo-simple-select",name:"SelectedReason",value:w.SelectedReason,onChange:x,children:[(0,Z.tZ)(u.Z,{value:"Imam Sponsorship",children:"Imam Sponsorship"}),(0,Z.tZ)(u.Z,{value:"Imam Support",children:"Imam Support"})]})}),(0,Z.tZ)("div",{children:(0,Z.tZ)("div",{className:"w-full",children:(0,Z.tZ)(d.Z,{id:"outlined-number",name:"amount",disabled:"Imam Sponsorship"===w.SelectedReason,value:"Imam Sponsorship"===w.SelectedReason?600:w.amount,fullWidth:!0,placeholder:"Other Amount",onChange:x,type:"number",InputLabelProps:{shrink:!0},inputProps:{min:0},InputProps:{startAdornment:(0,Z.tZ)(p.Z,{position:"start",children:"\xa3"}),className:"text-xl"}})})}),(0,Z.tZ)("div",{children:(0,Z.tZ)(h.Z,{labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:w.SelectedSubReason,placeholder:"Select your givings category",onChange:x,children:["General Charity","Sadaqah/Lillah","Zakat"].map(function(e,t){return(0,Z.tZ)(u.Z,{value:e,children:e},t)})})}),(0,Z.tZ)("div",{children:(0,Z.tZ)(s.Z,{ref:y})}),(0,Z.tZ)("div",{children:(0,Z.tZ)(m.Z,{onClick:function(){I()},className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})}),(0,Z.tZ)("div",{className:"text-center text-[#14b8a6] font-semibold mt-4 text-xl max-w-[250px]",children:"Imam Sponsorship"===w.SelectedReason?"Price for sponsoring an Imam for 1 year is \xa3600":""})]})})},w=function(){return(0,Z.BX)("div",{children:[(0,Z.tZ)("div",{className:"bg-ImamSponsorship py-12 bg-center bg-no-repeat bg-cover px-5 md:px-20",children:(0,Z.BX)("div",{className:"flex justify-center md:justify-between items-center",children:[(0,Z.tZ)("div",{}),(0,Z.tZ)("div",{children:(0,Z.tZ)(P,{})})]})}),(0,Z.tZ)("div",{className:"md:px-40 px-5 md:text-4xl text-center py-20",children:"Supporting Imams is a noble cause that can make a significant positive impact on the lives of communities. There are various ways to contribute to Imams, through sponsorship, educational needs and other ongoing support."})]})},j=n(2962),x=n(66112);function I(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 N(){return(0,Z.BX)("div",{children:[(0,Z.tZ)(j.PB,{canonical:"".concat(o.S.url,"/appeals/imam-sponsorship")}),(0,Z.tZ)(j.lX,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?I(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},x.d)),(0,Z.tZ)(a.y,{}),(0,Z.tZ)(j.ns,{}),(0,Z.tZ)(w,{})]})}},72719:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/appeals/imam-sponsorship",function(){return n(4260)}])}},function(e){e.O(0,[1947,1864,5495,555,1082,1745,6339,6410,3893,9163,2888,9774,179],function(){return e(e.s=72719)}),_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.