PageSourceSearch

https://aid4ummah.org/_next/static/chunks/pages/appeals/mauritania-9eb95ad62cc54249.js

js aid4ummah.org collected 2026-10-04 02:11:35 UTC 9,991 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5287],{34451:function(e,t,n){"use strict";n.d(t,{y:function(){return f}});var r=n(16835),i=n(50029),a=n(64687),o=n.n(a),c=n(9008),l=n.n(c),s=n(67294),u=n(57460),d=n.n(u),p=[{name:n(16054).S.name,type:"AggregateRating",ratingValue:"3.4",reviewRating:"5",bestRating:"5",worstRating:"1",ratingCount:"438"}],v=n(35944),f=function(){var e=(0,s.useState)([]),t=e[0],n=e[1];(0,s.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){d().parse(e,{header:!0,complete:function(e){t(e.data)},error:function(e){console.error("Error parsing CSV:",e),n(e)}})})},a=p[0],c=a.name,u=a.type,f=a.reviewRating,m=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,v.tZ)(l(),{children:(0,v.tZ)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify({"@context":"https://schema.org","@type":"Product",name:c,aggregateRating:{"@type":u,ratingValue:m,reviewRating:f,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 c}});var r=n(16054),i=r.S.name,a=r.S.seotitle,o=r.S.seodescription,c={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 R}});var r,i=n(4730),a=n(59499),o=n(67294),c=n(90512),l=n(94317),s=n(79566),u=n(55245),d=n(62718),p=n(38396),v=n(62947),f=n(75913),h=n(25685),m=n(57967),g=n(98230);function b(e){return(0,g.ZP)("MuiInputAdornment",e)}var y=(0,m.Z)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Z=n(85893),O=["children","className","component","disablePointerEvents","disableTypography","position","variant"];function w(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 P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach(function(t){(0,a.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var S=function(e){var t=e.classes,n=e.disablePointerEvents,r=e.hiddenLabel,i=e.position,a=e.size,o=e.variant,c={root:["root",n&&"disablePointerEvents",i&&"position".concat((0,s.Z)(i)),o,r&&"hiddenLabel",a&&"size".concat((0,s.Z)(a))]};return(0,l.Z)(c,b,t)},j=(0,v.ZP)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t["position".concat((0,s.Z)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((0,f.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"}}]}})),R=o.forwardRef(function(e,t){var n=(0,h.i)({props:e,name:"MuiInputAdornment"}),a=n.children,l=n.className,s=n.component,v=n.disablePointerEvents,f=n.disableTypography,m=n.position,g=n.variant,b=(0,i.Z)(n,O),y=(0,p.Z)()||{},w=g;g&&y.variant,y&&!w&&(w=y.variant);var R=P(P({},n),{},{hiddenLabel:y.hiddenLabel,size:y.size,disablePointerEvents:void 0!==v&&v,position:m,variant:w}),E=S(R);return(0,Z.jsx)(d.Z.Provider,{value:null,children:(0,Z.jsx)(j,P(P({as:void 0===s?"div":s,ownerState:R,className:(0,
1c.Z)(E.root,l),ref:t},b),{},{children:"string"!=typeof a||void 0!==f&&f?(0,Z.jsxs)(o.Fragment,{children:["start"===m?r||(r=(0,Z.jsx)("span",{className:"notranslate",children:"​"})):null,a]}):(0,Z.jsx)(u.Z,{color:"textSecondary",children:a})}))})})},12105:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(59499),i=n(16054),a=n(34451),o=n(27812),c=n(16835),l=n(7738),s=n(43634),u=n(41411),d=n(35384),p=n(19479),v=n(6620),f=n(31745),h=n(48583),m=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]:{};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 O={tenure:"Single Donation",SelectedReason:"Most in Need in Mauritania",amount:0,SelectedSubReason:"Sadaqah/Lillah"},w=function(){var e=(0,g.dF)(),t=(0,h.KO)(l.cartItemsAtom),n=(0,c.Z)(t,2),i=n[0],a=n[1],y=(0,m.useRef)(null),w=(0,m.useState)(O),P=w[0],S=w[1],j=function(e){"SelectedReason"===e.target.name&&"Most in Need in Mauritania"===e.target.value&&S(function(e){return Z(Z({},e),{},{amount:0})}),S(function(t){return Z(Z({},t),{},(0,r.Z)({},e.target.name,e.target.value))})},R=function(){var t=!1;if((""===P.amount||P.amount<=0)&&(e("Please enter an amount (at least \xa31)","error"),t=!0),""===P.SelectedReason&&(e("Please select a reason","error"),t=!0),""===P.SelectedSubReason&&(e("Please select a giving category","error"),t=!0),!t){var n,r,c,l,s,u=null!==(n=null===(r=y.current)||void 0===r||null===(c=r.getPayload)||void 0===c?void 0:c.call(r))&&void 0!==n?n:{donationType:"oneTime"};if("recurring"===u.donationType&&!(null!==(l=y.current)&&void 0!==l&&null!==(s=l.validateRecurring)&&void 0!==s&&s.call(l)))return;a([].concat((0,o.Z)(i),[Z(Z({},P),u)])),e("Added to cart successfully!","success"),S(O)}};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-7 overflow-visible",children:[(0,b.tZ)("div",{className:"text-3xl font-bold",children:"Mauritania"}),(0,b.tZ)("div",{children:"I would like to make a "}),(0,b.tZ)("div",{children:(0,b.tZ)(f.Z,{labelId:"demo-simple-select-demo",fullWidth:!0,id:"demo-simple-select",name:"tenure",value:P.tenure,onChange:j,children:(0,b.tZ)(u.Z,{value:"Single Donation",children:"Single Donation"})})}),(0,b.tZ)("div",{children:(0,b.tZ)(f.Z,{labelId:"demo-simple-select-demo",fullWidth:!0,id:"demo-simple-select",name:"SelectedReason",value:P.SelectedReason,onChange:j,children:(0,b.tZ)(u.Z,{value:"Most in Need in Mauritania",children:"Most in Need in Mauritania"})})}),(0,b.tZ)("div",{children:(0,b.tZ)("div",{className:"w-full",children:(0,b.tZ)(d.Z,{id:"outlined-number",name:"amount",value:P.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)(f.Z,{labelId:"demo-simple-select-label",fullWidth:!0,id:"demo-simple-select",name:"SelectedSubReason",value:P.SelectedSubReason,placeholder:"Select your givings category",onChange:j,children:[(0,b.tZ)(u.Z,{value:"Sadaqah/Lillah",children:"Sadaqah/Lillah"}),(0,b.tZ)(u.Z,{value:"Zakat",children:"Zakat"}),(0,b.tZ)(u.Z,{value:"Most in Need",children:"Most in Need"})]})}),(0,b.tZ)("div",{children:(0,b.tZ)(s.Z,{ref:y})}),(0,b.tZ)("div",{children:(0,b.tZ)(v.Z,{onClick:function(){R()},className:"bg-secondary text-black hover:bg-secondary/50 transition-all px-8 py-3 rounded font-semibold",children:"DONATE NOW"})})]})})},P=function(){return(0,b.tZ)("div",{children:(0,b.tZ)("div",{className:"bg-mauritania 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)(w,{})})]})})})},S=n(2962),j=n(66112);function R(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 E(){return(0,b.BX)("div",{children:[(0,b.tZ)(S.PB,{canonical:"".concat(i.S.url)}),(0,b.tZ)(S.lX,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?R(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(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)(S.ns,{}),(0,b.tZ)(P,{})]})}},3818:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/appeals/mauritania",function(){return n(12105)}])}},function(e){e.O(0,[1947,1864,5495,555,1082,1745,6339,6410,3893,2888,9774,179],function(){return e(e.s=3818)}),_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.