1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f2c24e38-0f09-4947-a981-2b76d7c6e8d1",e._sentryDebugIdIdentifier="sentry-dbid-f2c24e38-0f09-4947-a981-2b76d7c6e8d1")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[861],{4620:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/share-page-details",function(){return a(8793)}])},3953:function(e,t){"use strict";t.Z={src:"/_next/static/media/check-circle-filled.b8e20463.svg",height:20,width:20,blurWidth:0,blurHeight:0}},6297:function(e,t){"use strict";t.Z={src:"/_next/static/media/facebook.d0a30a13.svg",height:18,width:18,blurWidth:0,blurHeight:0}},9754:function(e,t){"use strict";t.Z={src:"/_next/static/media/fg-logo.aea14680.svg",height:21,width:172,blurWidth:0,blurHeight:0}},6806:function(e,t){"use strict";t.Z={src:"/_next/static/media/copy.c762c75b.svg",height:42,width:36,blurWidth:0,blurHeight:0}},6994:function(e,t){"use strict";t.Z={src:"/_next/static/media/mail.bc90d30c.svg",height:18,width:18,blurWidth:0,blurHeight:0}},9481:function(e,t){"use strict";t.Z={src:"/_next/static/media/twitter.277a8711.svg",height:18,width:18,blurWidth:0,blurHeight:0}},2150:function(e,t){"use strict";t.Z={src:"/_next/static/media/whatsapp.0717cc9d.svg",height:18,width:18,blurWidth:0,blurHeight:0}},8087:function(e,t,a){"use strict";a.d(t,{E:function(){return n}});var s=a(8001),r=a(9222),l=a.n(r),i={src:"/_next/static/media/EvergiveLogo.c98586d6.svg",height:21,width:124,blurWidth:0,blurHeight:0};let n=e=>{let{amount:t,firstPaymentDate:a}=e;return(0,s.jsx)("div",{className:"flex flex-col items-center",children:(0,s.jsxs)("div",{className:"w-full bg-eg-green-100 text-white p-4 rounded-xl items-center",children:[(0,s.jsx)("div",{children:(0,s.jsx)(l(),{className:"w-20",src:i,alt:"evergive logo"})}),(0,s.jsxs)("div",{className:"flex mt-2 flex-row items-end text-fg-body-small justify-between",children:[(0,s.jsxs)("div",{className:"font-bold",children:[t,"\xa0",(0,s.jsx)("span",{className:"font-normal",children:"Monthly"})]}),(0,s.jsxs)("div",{children:["From\xa0",(0,s.jsx)("span",{className:"font-bold",children:a})]})]})]})})}},1556:function(e,t,a){"use strict";a.d(t,{o:function(){return r},v:function(){return h}});var s,r,l=a(8001),i=a(2781),n=a(9896),o=a.n(n),c=a(8121);(s=r||(r={})).PaymentFlow="PaymentFlow",s.Login="Login";let d=e=>{let{variant:t,navigation:a}=e;return"PaymentFlow"===t||"Login"===t?(0,l.jsx)("footer",{className:"mx-auto max-w-fg-page flex items-center justify-center flex-row w-full p-6",children:(0,l.jsxs)("p",{className:`${"Login"===t?"text-white":"text-mtn-blue-550"} text-fg-tiny-body-text leading-none`,children:["\xa9 Copyright ",new Date().getFullYear()," MyFridays. All rights reserved."]})}):(0,l.jsxs)("footer",{className:"blue-background mx-auto max-w-fg-page flex flex-col justify-between w-full px-6 lg:px-0 py-8",children:[(0,l.jsx)("div",{className:"flex items-center font-medium lg:items-start",children:(0,l.jsx)("nav",{className:"flex flex-row flex-wrap justify-center gap-x-7 md:justify-between md:flex-grow font-bold",children:a&&!i.Q&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o(),{className:"mb-4 hover:text-fg-yellow text-fg-small-body-text-v1 text-white",href:"https://about.shamaazi.com/myfridays/about-us",target:"_blank",children:"About Us"}),(0,l.jsx)(o(),{className:"mb-4 hover:text-gm-yellow text-fg-small-body-text-v1 text-white",href:"https://about.shamaazi.com/myfridays/fees",target:"_blank",children:"Fees"}),(0,l.jsx)(o(),{className:"mb-4 hover:text-gm-yellow text-fg-small-body-text-v1 text-white",href:"https://about.shamaazi.com/myfridays/faq",target:"_blank",children:"FAQ"}),(0,l.jsx)(o(),{className:"mb-4 hover:text-gm-yellow text-fg-small-body-text-v1 text-white",href:"https://about.shamaazi.com/myfridays/terms-and-conditions",target:"_blank",children:"Terms & Conditions"}),(0,l.jsx)(o(),{className:"mb-4 hover:text-gm-yellow text-fg-small-body-text-v1 text-white",href:"https://about.shamaazi.com/myfridays/privacy-policy",target:"_blank",children:"Privacy Policy"}),(0,l.jsx)(o(),{className:"mb-4 hover:text-gm-yellow text-fg-small-body-text-v1 text-white",href:"/cookie-preferences",target:"_blank",children:"Cookie Preferences"}),(0,l.jsx)(o(),{className:"mb-4 hover:text-gm-yellow text-fg-small-body-text-v1 text-white",href:"https://about.shamaazi.com/myfridays/fund-terms-and-conditions",target:"_blank",children:"MTN Fund"}),(0,l.jsx)(o(),{className:"mb-4 hover:text-gm-yellow text-fg-small-body-text-v1 text-white",href:"https://about.shamaazi.com/myfridays/zakat-policy",target:"_blank",children:"Zakat Policy"}),(0,l.jsx)(o(),{className:"mb-4 hover:text-gm-yellow text-fg-small-body-text-v1 text-white",href:"https://about.shamaazi.com/myfridays/contact-us",target:"_blank",children:"Contact Us"}),(0,l.jsx)("a",{className:"hover:text-fg-yellow text-fg-small-body-text-v1 text-white mb-4",href:"https://charity.shamaazi.com",target:"_blank",rel:"noopener noreferrer",children:"Charity Registration"})]})})}),(0,l.jsx)("div",{className:"flex flex-col items-center md:items-start mt-10 sm:flex-row",children:a&&(0,l.jsxs)("div",{className:"text-fg-tiny-body-text text-fg-gray-820 text-center md:text-left",children:["MyFridays is a trading name of THE SHAMAAZI PROJECT LTD.",(0,l.jsxs)(o(),{className:"footer-links text-fg-yellow-200",href:c.W.privacyPolicy,children:[" ","Privacy Statement"]}),","," ",(0,l.jsx)(o(),{className:"footer-links text-fg-yellow-200",href:c.W.termsAndConditions,children:"Terms & Conditions"}),", Company Registration No: 16665293. Head Office: 6-8 Great Eastern Street, London, EC2A 3NT, United Kingdom. Disclaimer: Shamaazi is not affiliated with any external web sites. Shamaazi is not responsible for the content of external internet sites and any links from external web sites to this site do not constitute an endorsement of that site by Shamaazi."]})})]})},h=e=>{let{variant:t,navigation:a=!0,children:s}=e;return(0,l.jsxs)("div",{className:`${"PaymentFlow"===t?"":"blue-background"} flex flex-col`,children:[(0,l.jsx)("main",{className:"max-w-full flex-1",children:s}),(0,l.jsx)(d,{variant:t,navigation:a})]})}},696:function(e,t,a){"use strict";a.d(t,{h:function(){return p},Z:function(){return w}});var s,r,l=a(8001),i=a(2880);(s=r||(r={})).myProfile="myProfile",s.logout="logout";var n=a(722),o=a(9222),c=a.n(o),d=a(9896),h=a.n(d),m=a(3293),x=a(8624),u=a(9754),f={src:"/_next/static/media/arrow_left_white.a6bac1c5.svg",height:10,width:6,blurWidth:0,blurHeight:0},g={src:"/_next/static/media/powered-by-mf.0df7ee8f.svg",height:24,width:115,blurWidth:0,blurHeight:0}
1,b=a(8121),y={src:"/_next/static/media/burgermenu.17102bfe.svg",height:24,width:24,blurWidth:0,blurHeight:0};let p=e=>{let{displayMenu:t=!1,displayBack:a=!1,charity:s}=e,[o,d]=(0,x.useState)(!1),{user:p,logout:w}=(0,i.aC)(),j=(0,m.useRouter)();function v(){d(!1),w(),j.push(b.W.home)}let N=null!==p||t,k=null!==p,C=()=>(0,l.jsxs)("div",{className:`md:hidden overflow-y-scroll bg-white text-center px-8 fixed min-h-screen w-full z-40 font-medium transform transition-all duration-500 left-full ${o?"-translate-x-full":""}`,children:[(0,l.jsx)("button",{type:"button","aria-label":"Close menu",tabIndex:-1,className:"absolute inset-0 h-full w-full cursor-default",onClick:()=>d(!1)}),(0,l.jsxs)("div",{className:"relative flex flex-col",children:[!k&&(0,l.jsx)(h(),{href:b.W.schedules,className:"py-5 border-b w-full text-center transition-colors duration-500",children:"LOGIN"}),(0,l.jsx)(h(),{href:b.W.blog,className:"py-5 border-b w-full text-center transition-colors duration-500",children:"Blog"}),(0,l.jsx)(h(),{href:b.W.charityRegistration,className:"py-5 border-b w-full text-center transition-colors duration-500",children:"Charities"}),(0,l.jsx)(h(),{href:"https://about.shamaazi.com/myfridays/campaigns/never-miss-the-hour/donate",target:"_blank",className:"py-5 border-b w-full text-center transition-colors duration-500",children:"Students"}),k&&(0,l.jsx)(h(),{onClick:()=>{d(!1)},className:"py-5 border-b w-full text-center transition-colors duration-500",href:b.W.schedules,children:"My Donations"}),k&&(0,l.jsx)(h(),{onClick:()=>v(),className:"py-5 border-b w-full text-center transition-colors duration-500",href:b.W.home,children:"Log Out"})]})]});return s&&(0,n.wX)(s.type)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("header",{className:"relative flex h-16 flex-col items-center justify-center bg-fg-blue-320 px-4 py-2 text-fg-menu-item shadow-lg",children:[(0,l.jsx)("span",{className:"text-fg-body font-bold text-white",children:s.charity_name}),(0,l.jsx)(h(),{href:b.W.home,"aria-label":"Go to MyFridays home",children:(0,l.jsx)(c(),{src:g,alt:"Powered by MyFridays",className:"mt-1 h-4"})}),(0,l.jsx)("button",{type:"button","aria-label":"Toggle menu",className:`tham tham-e-squeeze tham-w-8 absolute right-4 top-1/2 -translate-y-1/2 md:hidden ${o?"tham-active":""}`,onClick:()=>d(!o),children:(0,l.jsx)(c(),{alt:"burger-icon",src:y,width:38})})]}),C()]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("header",{className:`flex flex-row h-16 p-4 font-normal text-fg-menu-item bg-fg-blue-320 shadow-lg items-center ${N?"justify-between":a?"justify-start":"justify-center md:px-20"}`,children:[a?(0,l.jsxs)("button",{type:"button","aria-label":"Back to home",className:"text-white float-start flex items-center gap-x-3",onClick:()=>j.push(b.W.home),children:[(0,l.jsx)(c(),{src:f,alt:"Back to home",className:"h-5 my-2"}),"Home"]}):(0,l.jsx)(h(),{href:b.W.home,children:(0,l.jsx)(c(),{src:u.Z,alt:"FG sunset with man",className:"h-5 my-2"})}),N&&(0,l.jsxs)("div",{className:"hidden flex-1 text-right md:block",children:[(0,l.jsx)(h(),{href:b.W.blog,className:"text-white",children:"Blog"}),(0,l.jsx)(h(),{href:b.W.charityRegistration,className:"ml-8 text-white",children:"Charities"}),(0,l.jsx)(h(),{href:"https://about.shamaazi.com/myfridays/campaigns/never-miss-the-hour/donate",target:"_blank",className:"ml-8 text-white",children:"Students"}),k&&(0,l.jsx)(h(),{"data-test-id":r.myProfile,className:"ml-8 text-white",href:b.W.schedules,children:"My Donations"}),k&&(0,l.jsx)(h(),{"data-test-id":r.logout,onClick:()=>v(),className:"ml-8 text-white",href:b.W.home,children:"Log Out"}),!k&&(0,l.jsx)(h(),{href:b.W.schedules,className:"ml-8 text-white text-fg-body",children:"LOGIN"})]}),N&&(0,l.jsx)("button",{type:"button","aria-label":"Toggle menu",className:`md:hidden ml-auto tham tham-e-squeeze tham-w-8 my-2 ${o?"tham-active":""}`,onClick:()=>d(!o),children:(0,l.jsx)(c(),{alt:"burger-icon",src:y,width:38})})]}),C()]})};var w=p},6659:function(e,t,a){"use strict";a.d(t,{M:function(){return n}});var s=a(5900),r=a(3217),l=a(7951);let i=()=>({weeklyTotal:0,shareCode:"",email:"",currency:r.F.GBP,giftAid:!1,fridayGivingAmount:0,timezone:"",paymentMethod:"",tipAmount:0,processingFee:0,wakfOptIn:"",payTip:!1,wakf:0,charity:l.mo,matchPotBalance:0}),n=()=>{let[e,t]=(0,s.Xs)("share_page_details",i());return{sharePageDetails:e,setSharePageDetails:t}}},5077:function(e,t,a){"use strict";a.d(t,{v:function(){return r}});var s=a(8001);let r=e=>{let{slitClassName:t}=e;return(0,s.jsxs)("svg",{width:"46",height:"29",viewBox:"0 0 40 25",fill:"none","aria-hidden":"true",children:[(0,s.jsx)("path",{d:"M4 22 A16 16 0 0 1 36 22 Z",className:"fill-fg-orange"}),(0,s.jsx)("rect",{x:"0",y:"14.5",width:"40",height:"2.4",rx:"1.2",className:t}),(0,s.jsx)("rect",{x:"7",y:"18.6",width:"26",height:"2.2",rx:"1.1",className:t}),(0,s.jsx)("circle",{cx:"31",cy:"9",r:"1.3",fill:"#F7B27E"})]})}},8793:function(e,t,a){"use strict";a.r(t),a.d(t,{SharePage:function(){return G},default:function(){return R}});var s=a(8001),r=a(5218),l=a(4125),i=a(722),n=a(2263),o=a(1433),c=a(8624),d=a(8688),h=a(9222),m=a.n(h);a(8087);var x=a(1556),u=a(696),f=a(5762),g=a(3293),b=a(6806),y=a(8121),p=a(4384),w=a(6297),j=a(6994),v=a(9481),N=a(2150);let k=[{icon:w.Z,platform:"facebook",channel:"facebook"},{icon:v.Z,platform:"twitter",channel:"twitter"},{icon:N.Z,platform:"whatsapp",channel:"whatsapp"},{icon:j.Z,platform:"mail",channel:"email"}],C=e=>{let{getShareUrl:t,details:a,processingDate:r,weeklyTotal:i,theme:c="light",page:d}=e;return(0,s.jsx)("div",{className:"flex justify-between",children:k.map(e=>{let{icon:h,platform:x,channel:u}=e;return(0,s.jsx)("button",{type:"button",className:`w-10 h-10 rounded-full border ${"animated"===c?"bg-white":""} border-gray-300 flex items-center justify-center`,onClick:()=>{(0,p.Bf)(x,t(u)),n.j.mfSocialShareButton(a.email,x,!1,o.CN.myFridays,(0,l.p6)(r[0]),a.timezone,i,a.shareCode,d)},children:(0,s.jsx)(m(),{src:h,alt:x,className:"w-6 h-6"})},x)})})},A=e=>{let{shareCode:t,details:a,processingDate:r,weeklyTotal:c,theme:d="light",charity:h}=e,x=(0,g.useRouter)(),u=h&&(0,i.wX)(h.type),p=e=>u?(0,f.Wn)(h,e):t?(0,f.Rf)(t,e):"",w=e=>n.j.mfSocialShareButton(a.email,e,!1,o.CN.myFridays,(0,l.p6)(r[0]),a.timezone,c,a.shareCode,"Mosque share page",a.charity);if(u)return(0,s.jsx)("button",{type:"button",onClick:()=>{w("share"),x.push({pathname:y.W.shareLinkPage,query:t?{link:t}:void 0})},className:"w-full rounded-lg bg-fg-orange px-6 py-3 text-center font-bold uppercase text-white",children:"Share with your community"});let j=p("link");return(0,s.jsxs)("div",{className:`flex ${"animated"===d?"flex-col-reverse":"flex-col"} gap-y-8`,children:[(0,s.jsxs)("div",{className:"flex items-center mb-4 gap-x-2",children:[(0,s.jsx)("input",{type:"text",value:j,readOnly:!0,className:`flex-grow border ${"animated"===d?"bg-fg-orange/60 text-white rounded-full border-orange-300":"text-gray-500 rounded-lg border-gray-300"} p-3 truncate`}),(0,s.jsx)("button",{type:"button",className:`text-white p-3 ${"animated"===d?"bg-fg-orange-100 rounded-full":"bg-fg-orange rounded-lg"}`,onClick:()=>{navigator.clipboard.writeText(j),w("copy")},children:(0,s.jsx)(m(),{src:b.Z,alt:"copy",className:"w-6 h-6"})})]}),(0,s.jsx)(C,{getShareUrl:p,details:a,processingDate:r,weeklyTotal:c,theme:d,page:"Confirmation page"})]})};var _=a(3217);let S=e=>{let{details:t,processingDate:a,weeklyTotal:r}=e;return(0,s.jsxs)("div",{className:"bg-white rounded-xl w-full max-w-xl mx-auto p-5 border text-fg-blue-320",children:[(0,s.jsxs)("div",{className:"mb-1",children:[(0,s.jsx)("h2",{className:"text-fg-h3 font-bold mb-0",children:"My receipt"}),(0,s.jsxs)("p",{className:"text-fg-label-1 font-semibold",children:["to ",t.charity.charity_name]})]}),(0,s.jsxs)("div",{className:"mt-4",children:[(0,s.jsxs)("div",{className:"flex justify-between py-1",children:[(0,s.jsx)("p",{className:"text-fg-lable font-medium",children:"Start Date"}),(0,s.jsx)("p",{className:"text-fg-lable-1 font-semibold",children:(0,l.p6)(a[0])})]}),(0,s.jsxs)("div",{className:"flex justify-between py-1",children:[(0,s.jsx)("p",{className:"text-fg-lable font-medium",children:"Timezone"}),(0,s.jsx)("p",{className:"text-fg-lable-1 font-semibold",children:t.timezone})]}),(0,s.jsxs)("div",{className:"flex justify-between py-1",children:[(0,s.jsx)("p",{className:"text-fg-lable font-medium",children:"Payment Method"}),(0,s.jsx)("p",{className:"text-fg-lable-1 font-semibold",children:"Card"})]}),(0,s.jsxs)("div",{className:"flex justify-between py-4 mt-4 border-t border-fg-blue-600 border-opacity-20",children:[(0,s.jsx)("p",{className:"font-bold text-fg-h3",children:"TOTAL"}),(0,s.jsx)("p",{className:"font-bold text-fg-h3",children:(0,_.O5)({amount:r,currency:t.currency})})]})]})]})};var F=a(3622),D=a(2062),W=a(3953),z=a(5077);let T=e=>{let{shareCode:t,details:a,processingDate:r}=e,i=(0,g.useRouter)(),[d,h]=(0,c.useState)(!1),w=(0,f.Rf)(t,"whatsapp"),j=window.location.origin+f.p4+t,v="Salaam, there's an hour every Friday when Allah never refuses our du'a. I've just set my giving for to catch this hour every week, you can do the same too.",k=`${v} ${w}`,C=e=>n.j.mfSocialShareButton(a.email,e,!1,o.CN.myFridays,(0,l.p6)(r[0]),a.timezone,a.weeklyTotal,t,"Confirmation page",a.charity);return(0,s.jsxs)("div",{className:"flex flex-col min-h-screen bg-fg-gray-10",children:[(0,s.jsx)(c.Suspense,{fallback:(0,s.jsx)(s.Fragment,{children:"Loading"}),children:(0,s.jsx)(u.Z,{charity:a.charity})}),(0,s.jsx)("div",{className:"flex-1 px-4",children:(0,s.jsxs)("div",{className:"flex flex-col items-center max-w-fg-screen-small mx-auto pt-10 pb-4",children:[(0,s.jsx)("h2",{className:"text-fg-h5 font-bold text-center",children:"Itâs set."}),(0,s.jsxs)("p",{className:"mt-3 text-fg-body text-fg-gray-100 text-center leading-relaxed max-w-xs ",children:["Your Friday habit begins on"," ",(0,s.jsx)("span",{className:"text-fg-blue-650 font-semibold",children:(0,l.p6)(r[0])}),"."]}),(0,s.jsx)("div",{className:"w-full h-px bg-fg-gray-820 my-7"}),(0,s.jsx)("h3",{className:"text-fg-h4 font-bold text-center mb-7",children:"Share the hour. Multiply your reward."}),(0,s.jsx)("div",{className:"w-full rounded-2xl border border-fg-gray-820 overflow-hidden mb-4",children:(0,s.jsx)("div",{className:"p-3.5",style:{backgroundColor:"#E5DDD5",backgroundImage:"radial-gradient(rgba(255,255,255,.4) 1px, transparent 1.4px), radial-gradient(rgba(120,106,86,.09) 1px, transparent 1.4px)",backgroundSize:"20px 20px, 28px 28px",backgroundPosition:"0 0, 10px 14px"},children:(0,s.jsxs)("div",{className:"bg-white rounded-lg rounded-tl-sm px-2.5 pt-2 pb-1.5 text-left",children:[(0,s.jsxs)("p",{className:"text-[12px] leading-relaxed text-fg-blue-500",children:[v," ",(0,s.jsx)("a",{href:w,target:"_blank",rel:"noreferrer",className:"text-fg-blue-400 underline break-all",children:j})]}),(0,s.jsxs)("div",{className:"bg-fg-gray-800 rounded-lg overflow-hidden mt-2",children:[(0,s.jsx)("div",{className:"h-[62px] flex items-center justify-center bg-gradient-to-b from-fg-blue-320 to-fg-orange",children:(0,s.jsx)(z.v,{slitClassName:"fill-transparent"})}),(0,s.jsxs)("div",{className:"px-2.5 py-2",children:[(0,s.jsx)("p",{className:"text-[11.5px] font-semibold text-fg-blue-500",children:"MyFridays"}),(0,s.jsx)("p",{className:"mt-1.5 pt-1.5 border-t border-fg-gray-820 text-[11.5px] font-semibold text-center text-fg-blue-400",children:"Start your Friday giving"})]})]}),(0,s.jsx)("p",{className:"mt-1 text-[9.5px] text-fg-gray-100 text-right",children:"12:41"})]})})}),(0,s.jsxs)(F.zx,{variant:"fg-primary",className:"w-full flex gap-x-2 justify-center items-center font-bold",onClick:()=>{C("whatsapp"),(0,p.Bf)("whatsapp",k)},"data-test-id":D.z.confirmationWhatsAppButton,children:[(0,s.jsx)(m(),{src:N.Z,alt:"",className:"w-4 h-4"}),"Send via WhatsApp"]}),(0,s.jsxs)("button",{type:"button",className:"w-full mt-2.5 min-h-12 flex items-center justify-center gap-x-2 rounded-xl border border-fg-gray-820 bg-white font-semibold text-fg-blue-500",onClick:()=>{C("copy"),navigator.clipboard.writeText((0,f.Rf)(t,"link")),h(!0),setTimeout(()=>h(!1),1500)},"data-test-id":D.z.confirmationCopyLinkButton,children:[(0,s.jsx)(m(),{src:d?W.Z:b.Z,alt:"",className:"w-4 h-4"}),d?"Link copied":"Copy link"]}),(0,s.jsx)("button",{type:"button",className:"mt-4 mb-8 text-fg-body text-fg-blue-100 underline",onClick:()=>i.push(y.W.myGivingPage),"data-test-id":D.z.confirmationDoneButton,children:"Continue"})]})}),(0,s.jsx)(x.v,{variant:x.o.PaymentFlow})]})};
1var P=a(9390),B={src:"/_next/static/media/blueBackground.78c7bb38.png",height:2400,width:3200,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAABlBMVEUGHDkFGzY7SguSAAAACXBIWXMAAAsSAAALEgHS3X78AAAAEklEQVQImWNgwAsYYTSMAREBAABvAAXurkRvAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:6};let M=e=>{let{shareCode:t,details:a,processingDate:r,weeklyTotal:l,hero:i,cardContent:n,afterShare:o,afterReceipt:c,charity:d}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"relative font-montserrat",children:[(0,s.jsx)(u.Z,{}),(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)("div",{className:"w-full bg-fg-blue-320 absolute top-0 left-0",children:(0,s.jsx)(m(),{src:B,alt:"mfbackground",className:"w-full h-full object-cover opacity-60",style:{height:"290px"}})}),(0,s.jsx)("div",{className:"min-h-screen relative z-10 max-w-fg-screen-small mx-auto",children:(0,s.jsx)("div",{className:"items-center mx-5 md:mx-0",children:(0,s.jsxs)("div",{className:"flex flex-col md:w-full",children:[(0,s.jsxs)("div",{className:"relative z-10 flex flex-col items-center py-10",children:[i,(0,s.jsxs)("div",{className:"bg-white text-fg-blue-320 rounded-xl border w-full mb-6 p-5",children:[n,(0,s.jsx)(A,{shareCode:t,details:a,processingDate:r,weeklyTotal:l,charity:d}),o]}),(0,s.jsx)(S,{details:a,processingDate:r,weeklyTotal:l})]}),c]})})})]})]}),(0,s.jsx)(x.v,{variant:x.o.PaymentFlow})]})},E=e=>{let{shareCode:t,details:a,processingDate:r,weeklyTotal:l,charity:i,fundraiser:n}=e,o=(0,g.useRouter)();return(0,s.jsx)(M,{shareCode:t,details:a,processingDate:r,weeklyTotal:l,charity:i,hero:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(P.ix,{charity:i,size:80,className:"mb-4 border-4 border-white"}),(0,s.jsx)("p",{className:"mb-8 max-w-sm text-center text-xl font-bold text-white",children:"JazÄk AllÄhu khayran. Youâre part of something that lasts"})]}),cardContent:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("h1",{className:"mb-4 text-center text-3xl font-bold",children:["Share the khayr,",(0,s.jsx)("br",{}),(0,s.jsx)("span",{className:"text-fg-orange",children:"double the reward!"})]}),(0,s.jsx)("p",{className:"text-center text-fg-body font-medium",children:"Share the blessings and we'll match your first weekly donation amount whenever you invite someone and they become a Friday Giver."}),n?.donorGoal?(0,s.jsx)("div",{className:"mt-6 pb-7",children:(0,s.jsx)(P.hV,{fundraiser:n,charity:i,hideHeading:!0})}):n&&n.donorCount>=P.fF?(0,s.jsx)("div",{className:"mt-6 flex justify-center",children:(0,s.jsx)(P.Gx,{count:n.donorCount})}):null]}),afterShare:(0,s.jsx)("div",{className:"mt-6",children:(0,s.jsx)(P.PA,{quote:"The one who guides to something good has a reward similar to the one doing it.",citation:"á¹¢aḥīḥ Muslim 1893"})}),afterReceipt:(0,s.jsx)("div",{className:"flex justify-center",children:(0,s.jsx)("button",{type:"button",className:"mt-4 mb-8 text-fg-body text-fg-blue-100 underline",onClick:()=>o.push(y.W.myGivingPage),"data-test-id":D.z.confirmationDoneButton,children:"Continue"})})})};var L=a(7352),Z=a(6659);let G=()=>{let e=(0,l.Vy)(),{sharePageDetails:t}=(0,Z.M)(),a=Number(t.fridayGivingAmount)+Number(t.processingFee)+Number(t.tipAmount),{data:h}=(0,d.useQuery)(["charity",t.charity.charity_id],async()=>await (0,i.iq)(r.CG.fridayGiving,t.charity.charity_id),{enabled:!!t.charity.charity_id,retry:!1}),m=h&&(0,i.wX)(h.type),x=(0,L.Gi)(t.charity);return(0,c.useEffect)(()=>{t&&n.j.mfConfirmationPage(t.email,"Share Page Loaded",!1,o.CN.myFridays,(0,l.p6)(e[0]),t.timezone,a,t.shareCode,t.charity)},[t,e,a]),(0,s.jsx)("div",{className:"bg-fg-gray-900",children:m?(0,s.jsx)(E,{shareCode:t.shareCode,details:t,processingDate:e,weeklyTotal:a,charity:h,fundraiser:x}):(0,s.jsx)(T,{shareCode:t.shareCode,details:t,processingDate:e})})};var R=G},4125:function(e,t,a){"use strict";a.d(t,{Vy:function(){return i},Wt:function(){return n},p6:function(){return o}});let s=e=>e.toISOString().split("T")[0],r=e=>e.toLocaleDateString("en-GB",{day:"numeric",month:"short"}),l=e=>{let t=e;for(;5!==t.getDay();)t=new Date(t.getTime()+864e5);return t},i=()=>{let e=[],t=new Date;5===t.getDay()&&(t=new Date(t.getTime()+864e5)),t=l(t);for(let a=0;a<4;
1a++)e.push(s(t)),t=new Date(t.getTime()+6048e5);return e},n=function(){let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],t=new Date,a=new Date(t.getFullYear(),t.getMonth(),3,12,0,0);return t.getDate()>=3&&(a=new Date(t.getFullYear(),t.getMonth()+1,3,12,0,0)),e?r(a):s(a)},o=e=>{let t=new Date(e),a=t.toLocaleDateString("en-US",{weekday:"short"}),s=t.getDate(),r=t.toLocaleDateString("en-US",{month:"short"});return`${a}, ${s} ${r}`}},4384:function(e,t,a){"use strict";a.d(t,{Bf:function(){return s}});let s=(e,t)=>{switch(e){case"whatsapp":window.open(`https://wa.me/?text=${encodeURIComponent(t)}`,"_blank");break;case"facebook":window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(t)}`,"_blank");break;case"twitter":window.open(`https://twitter.com/intent/tweet?url=${encodeURIComponent(t)}`,"_blank");break;case"mail":window.open(`mailto:?subject=My Fridays&body=${encodeURIComponent(t)}`,"_blank")}}}},function(e){e.O(0,[9222,9390,2888,9774,179],function(){return e(e.s=4620)}),_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.